]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
sync.c: Move to ../libgcc.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
c6412d86
RO
12011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * config/sync.c: Move to ../libgcc.
4 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC,
5 LIBGCC_SYNC_CFLAGS.
6 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
7 Remove.
8
6e9ee54c
AS
92011-08-09 Anatoly Sokolov <aesok@post.ru>
10
11 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
12 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
13 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
14 Change 'from' and 'to' arguments type to reg_class_t.
15 (TARGET_REGISTER_MOVE_COST): Define.
16
394b1520
VM
172011-08-09 Vladimir Makarov <vmakarov@redhat.com>
18
19 PR target/50026
20 Revert:
21 PR rtl-optimization/49990
22 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
23 ignore classes which can not change mode.
24 (find_costs_and_classes): Ditto.
25
4001900f
RG
262011-08-09 Richard Guenther <rguenther@suse.de>
27
28 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
29 information for ranges with only negative values.
30 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
31 BIT_AND_EXPR handling to handle ranges with negative values.
32
6cf9eb27
KY
332011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
34
35 * config/i386/i386.c: Remove traling spaces.
36 * config/i386/sse.md: Likewise.
bbb20f2f 37 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
6cf9eb27
KY
38 (*fma_fmsub_<mode>): Likewise.
39 (*fma_fnmadd_<mode>): Likewise.
40 (*fma_fnmsub_<mode>): Likewise.
41
d6257cf0
NC
422011-08-09 Nick Clifton <nickc@redhat.com>
43
44 * config/rx/rx.md: Disable extender peepholes at -O3.
45
3968b050
UB
462011-08-09 Uros Bizjak <ubizjak@gmail.com>
47
48 PR target/49781
49 * config/i386/i386.md (reload_noff_load): New.
50 (reload_noff_store): Ditto.
51 * config/i386/i386.c (ix86_secondary_reload): Use
52 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
53 double-word moves from/to non-offsetable addresses instead of
54 generating XMM temporary.
55
2292df60
AS
562011-08-09 Anatoly Sokolov <aesok@post.ru>
57
58 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
59
1684ca6b
IR
602011-08-09 Ira Rosen <ira.rosen@linaro.org>
61
62 PR tree-optimization/50014
63 * tree-vect-loop.c (vectorizable_reduction): Get def type before
64 calling vect_get_vec_def_for_stmt_copy ().
65
40118062
VM
662011-08-08 Vladimir Makarov <vmakarov@redhat.com>
67
68 PR rtl-optimization/49990
69 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
70 ignore classes which can not change mode.
71 (find_costs_and_classes): Ditto.
72
8714c21f
RH
732011-08-08 Richard Henderson <rth@redhat.com>
74
75 PR middle-end/49990
76 * config/i386/i386.c (ix86_expand_prologue): Call
77 for SEH target gen_prologue_use instead of gen_blockage
78 at prologue's end.
79
1ad663a8
MJ
802011-08-08 Martin Jambor <mjambor@suse.cz>
81
82 PR middle-end/49923
83 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
84 memory alignment.
85
f0efc7aa
DN
862011-08-08 Diego Novillo <dnovillo@google.com>
87
88 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
89 (DATA_STREAMER_H): New.
90 (GIMPLE_STREAMER_H): New.
91 (TREE_STREAMER_H): New.
92 (STREAMER_HOOKS_H): New.
93 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
94 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
95 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
96 (data-streamer.o): New.
97 (data-streamer-in.o): New.
98 (data-streamer-out.o): New.
99 (gimple-streamer-in.o): New.
100 (gimple-streamer-out.o): New.
101 (streamer-hooks.o): New.
102 (tree-streamer.o): New.
103 (tree-streamer-in.o): New.
104 (tree-streamer-out.o): New.
3968b050 105 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
f0efc7aa
DN
106 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
107 GIMPLE_STREAMER_H and TREE_STREAMER_H.
108 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
109 GIMPLE_STREAMER_H and TREE_STREAMER_H.
110 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3968b050 111 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
f0efc7aa
DN
112 (ipa-inline-analysis.o): Likewise.
113 (ipa-pure-const.o): Likewise.
114 * data-streamer-in.c: New.
115 * data-streamer-out.c: New.
116 * data-streamer.c: New.
117 * data-streamer.h: New.
118 * gimple-streamer-in.c: New.
119 * gimple-streamer-out.c: New.
120 * gimple-streamer.h: New.
121 * ipa-inline-analysis.c: Include data-streamer.h.
122 * ipa-prop.c: Include data-streamer.h.
123 * ipa-pure-const.c: Include data-streamer.h.
124 * lto-cgraph.c: Include data-streamer.h.
125 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
126 (lto_input_widest_uint_uleb128): Likewise.
127 (lto_input_sleb128): Likewise.
128 (bp_unpack_var_len_unsigned): Likewise.
129 (bp_unpack_var_len_int): Likewise.
130 * lto-section-out.c (lto_output_uleb128_stream): Move to
131 data-streamer-out.c.
132 (lto_output_widest_uint_uleb128_stream): Likewise.
133 (lto_output_sleb128_stream): Likewise.
134 (bp_pack_var_len_unsigned): Likewise.
135 (bp_pack_var_len_int): Likewise.
3968b050 136 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
f0efc7aa
DN
137 (struct string_slot): Remove. Update all users.
138 (lto_tag_check_set): Make extern.
139 (lto_tag_check_range): Move to lto-streamer.h.
140 (lto_tag_check): Likewise.
141 (hash_string_slot_node): Remove. Update all users.
142 (eq_string_slot_node): Remove. Update all users.
143 (string_for_index): Move to data-streamer-in.c
144 (input_string_internal): Likewise.
145 (input_string_cst): Move to tree-streamer-in.c.
146 (input_identifier): Likewise.
147 (lto_input_string): Move to data-streamer-in.c
148 (input_record_start): Move to data-streamer.h
149 (canon_file_name): Use new definition of struct string_slot
3968b050 150 from data-streamer.h. Set S_SLOT.LEN.
f0efc7aa
DN
151 (lto_input_location): Make extern.
152 (lto_input_chain): Move to tree-streamer-in.c.
153 (lto_init_eh): Make extern.
154 (input_phi): Move to gimple-streamer-in.c.
155 (input_gimple_stmt): Likewise.
156 (input_bb): Likewise.
157 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
158 (unpack_ts_real_cst_value_fields): Likewise.
159 (unpack_ts_fixed_cst_value_fields): Likewise.
160 (unpack_ts_decl_common_value_fields): Likewise.
161 (unpack_ts_decl_wrtl_value_fields): Likewise.
162 (unpack_ts_decl_with_vis_value_fields): Likewise.
163 (unpack_ts_function_decl_value_fields): Likewise.
164 (unpack_ts_type_common_value_fields): Likewise.
165 (unpack_ts_block_value_fields): Likewise.
166 (unpack_ts_translation_unit_decl_value_fields): Likewise.
167 (unpack_value_fields): Likewise.
168 (lto_materialize_tree): Likewise.
169 (lto_input_ts_common_tree_pointers): Likewise.
170 (lto_input_ts_vector_tree_pointers): Likewise.
171 (lto_input_ts_complex_tree_pointers): Likewise.
172 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
173 (lto_input_ts_decl_common_tree_pointers): Likewise.
174 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
175 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
176 (lto_input_ts_field_decl_tree_pointers): Likewise.
177 (lto_input_ts_function_decl_tree_pointers): Likewise.
178 (lto_input_ts_type_common_tree_pointers): Likewise.
179 (lto_input_ts_type_non_common_tree_pointers): Likewise.
180 (lto_input_ts_list_tree_pointers): Likewise.
181 (lto_input_ts_vec_tree_pointers): Likewise.
182 (lto_input_ts_exp_tree_pointers): Likewise.
183 (lto_input_ts_block_tree_pointers): Likewise.
184 (lto_input_ts_binfo_tree_pointers): Likewise.
185 (lto_input_ts_constructor_tree_pointers): Likewise.
186 (lto_input_ts_target_option): Likewise.
187 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
188 (lto_input_tree_pointers): Likewise.
189 (lto_get_pickled_tree): Likewise.
190 (lto_get_builtin_tree): Likewise.
191 (lto_read_tree): Likewise.
192 (lto_input_integer_cst): Likewise.
193 (lto_input_tree): Likewise.
194 * lto-streamer-out.c: Include data-streamer.h,
195 gimple-streamer.h and streamer-hooks.h.
196 (struct string_slot): Move to data-streamer.h.
197 (hash_string_slot_node): Likewise.
198 (eq_string_slot_node): Likewise.
199 (lto_string_index): Move to data-streamer-out.c.
200 (lto_output_string_with_length): Likewise.
201 (lto_output_string): Likewise.
202 (output_string_cst): Move to tree-streamer-out.c.
203 (output_identifier): Likewise.
204 (output_zero): Move to data-streamer-out.c
205 (output_uleb128): Likewise.
206 (output_sleb128): Likewise.
207 (output_record_start): Move to data-streamer.h
208 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
209 (pack_ts_real_cst_value_fields): Likewise.
210 (pack_ts_fixed_cst_value_fields): Likewise.
211 (pack_ts_decl_common_value_fields): Likewise.
212 (pack_ts_decl_wrtl_value_fields): Likewise.
213 (pack_ts_decl_with_vis_value_fields): Likewise.
214 (pack_ts_function_decl_value_fields): Likewise.
215 (pack_ts_type_common_value_fields): Likewise.
216 (pack_ts_block_value_fields): Likewise.
217 (pack_ts_translation_unit_decl_value_fields): Likewise.
218 (pack_value_fields): Likewise.
219 (lto_output_chain): Likewise.
220 (lto_output_ts_common_tree_pointers): Likewise.
221 (lto_output_ts_vector_tree_pointers): Likewise.
222 (lto_output_ts_complex_tree_pointers): Likewise.
223 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
224 (lto_output_ts_decl_common_tree_pointers): Likewise.
225 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
226 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
227 (lto_output_ts_field_decl_tree_pointers): Likewise.
228 (lto_output_ts_function_decl_tree_pointers): Likewise.
229 (lto_output_ts_type_common_tree_pointers): Likewise.
230 (lto_output_ts_type_non_common_tree_pointers): Likewise.
231 (lto_output_ts_list_tree_pointers): Likewise.
232 (lto_output_ts_vec_tree_pointers): Likewise.
233 (lto_output_ts_exp_tree_pointers): Likewise.
234 (lto_output_ts_block_tree_pointers): Likewise.
235 (lto_output_ts_binfo_tree_pointers): Likewise.
236 (lto_output_ts_constructor_tree_pointers): Likewise.
237 (lto_output_ts_target_option): Likewise.
238 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
239 (lto_output_tree_pointers): Likewise.
240 (lto_output_tree_header): Likewise.
241 (lto_output_builtin_tree): Likewise.
242 (lto_write_tree): Likewise.
243 (lto_output_integer_cst): Likewise.
244 (lto_output_tree): Likewise.
245 (output_phi): Move to gimple-streamer-out.c.
246 (output_gimple_stmt): Likewise.
247 (output_bb): Likewise.
248 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
249 (streamer_hooks): Move to streamer-hooks.c.
250 (check_handled_ts_structures): Move to tree-streamer.c
251 (lto_streamer_cache_add_to_node_array): Likewise.
252 (lto_streamer_cache_insert_1): Likewise.
253 (lto_streamer_cache_insert): Likewise.
254 (lto_streamer_cache_insert_at): Likewise.
255 (lto_streamer_cache_append): Likewise.
256 (lto_streamer_cache_lookup): Likewise.
257 (lto_streamer_cache_get): Likewise.
258 (lto_record_common_node): Likewise.
259 (lto_preload_common_nodes): Likewise.
260 (lto_streamer_cache_create): Likewise.
261 (lto_streamer_cache_delete): Likewise.
262 (streamer_hooks_init): Move to streamer-hooks.c.
263 * lto-streamer.h: Include diagnostic.h
264 (struct output_block, struct lto_input_block,
3968b050 265 struct data_in, struct bitpack_d): Remove forward declarations.
f0efc7aa
DN
266 (struct bitpack_d): Move to data-streamer.h.
267 (struct lto_streamer_cache_d): Move to tree-streamer.h.
268 (struct streamer_hooks): Move to streamer-hooks.h.
269 (bp_pack_var_len_unsigned): Move to data-streamer.h.
270 (bp_pack_var_len_int): Likewise.
271 (bp_unpack_var_len_unsigned): Likewise.
272 (bp_unpack_var_len_int): Likewise.
273 (lto_input_location): Declare.
274 (lto_tag_check_set): Declare.
275 (lto_init_eh): Declare.
276 (lto_output_tree_ref): Declare.
277 (lto_output_location): Declare.
278 (bitpack_create): Move to data-streamer.h.
279 (bp_pack_value): Likewise.
280 (lto_output_bitpack): Likewise.
281 (lto_input_bitpack): Likewise.
282 (bp_unpack_value): Likewise.
283 (lto_output_1_stream): Likewise.
284 (lto_input_1_unsigned): Likewise.
285 (lto_output_int_in_range): Likewise.
286 (lto_input_int_in_range): Likewise.
287 (bp_pack_int_in_range): Likewise.
288 (bp_unpack_int_in_range): Likewise.
289 (lto_output_enum): Likewise.
290 (lto_input_enum): Likewise.
291 (bp_pack_enum): Likewise.
292 (bp_unpack_enum): Likewise.
293 * streamer-hooks.c: New.
294 * streamer-hooks.h: New.
295 * tree-streamer-in.c: New.
296 * tree-streamer-out.c: New.
297 * tree-streamer.c: New.
298 * tree-streamer.h: New.
299
ddaad3c8
RO
3002011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
301
302 * gthr-posix95.h: Remove.
303 * gthr.h [_PTHREADS95]: Remove.
304 * configure.ac (enable_threads): Remove posix95.
305 * configure: Regenerate.
3968b050 306 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
ddaad3c8 307
3968b050 3082011-08-08 Uros Bizjak <ubizjak@gmail.com>
473b30ce
UB
309
310 PR target/49781
311 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
312 SImode addresses.
313 (ix86_print_operand_address): Handle zero-extended addresses.
314 (memory_address_length): Add length of addr32 prefix for
315 zero-extended addresses.
316 (ix86_secondary_reload): Handle moves to/from double-word general
317 registers from/to zero-extended addresses.
318 * config/i386/predicates.md (lea_address_operand): Reject
319 zero-extended operands.
320
cca2207a
L
3212011-08-08 H.J. Lu <hongjiu.lu@intel.com>
322
323 PR other/48007
473b30ce 324 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
cca2207a
L
325
326 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
327 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
328
329 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
330 (_Unwind_Context_Reg_Val): Likewise.
331 (_Unwind_Get_Unwind_Word): Likewise.
332 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
333 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
334 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
335 for EXTENDED_CONTEXT_BIT.
336 (__frame_state_for): Likewise.
337 (uw_init_context_1): Likewise.
338 (_Unwind_GetGR): Updated.
339 (_Unwind_SetGR): Likewise.
340 (_Unwind_GetGRPtr): Likewise.
341 (_Unwind_SetGRPtr): Likewise.
342 (_Unwind_SetGRValue): Likewise.
343 (_Unwind_GRByValue): Likewise.
344 (uw_install_context_1): Likewise.
345
346 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
347 ASSUME_EXTENDED_UNWIND_CONTEXT.
348 * doc/tm.texi: Regenerated.
349
b6ee5bef
RO
3502011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
351
352 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
353
46135ba7
RO
3542011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
355
356 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
357 Linux/GNU-specific.
358 (DEC Alpha Options, -mtune): Likewise.
359 (MIPS Options, -march): native is supported on IRIX.
360
e3b3fa45
RO
3612011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
362
363 * config/sparc/driver-sparc.c: New file.
364 * config/sparc/x-sparc: New file.
473b30ce
UB
365 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
366 * config/sparc/sparc.opt (native): New value for enum processor_type.
e3b3fa45
RO
367 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
368 * config/sparc/sparc.c (sparc_option_override): Abort if
369 PROCESSOR_NATIVE gets here.
370 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
371 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
372 DRIVER_SELF_SPECS): Define.
373 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
374 (SPARC Options, -mtune): Likewise.
375 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
376 Substitute result.
377 * configure: Regenerate.
378 * Makefile.in (EXTRA_GCC_LIBS): Set.
379 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
380 (cpp$(exeext)): Likewise.
381
ce6bfa50
RG
3822011-08-08 Richard Guenther <rguenther@suse.de>
383
384 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
385 split out from ...
386 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
387 by composition.
388
daae4650
MP
3892011-08-08 Mikael Pettersson <mikpe@it.uu.se>
390
391 PR tree-optimization/50005
392 * ipa-inline-analysis (remap_predicate): Add cast to
393 silence signed/unsigned comparison warning.
394
3e762578
RS
3952011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
396
397 * modulo-sched.c (get_sched_window): Use a table for the debug output.
398 Print the current ii.
399 (sms_schedule_by_order): Reduce whitespace in dump line.
400
fe43febc
RS
4012011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
402
403 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
404 and one loop for successors. Fix upper bound of memory range.
405
1e46eb2a
UB
4062011-08-06 Uros Bizjak <ubizjak@gmail.com>
407
408 PR target/50001
409 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
410 (TARGET_INSTANTIATE_DECLS): New define.
411
cc3801b0 4122011-08-06 Paolo Bonzini <bonzini@gnu.org>
473b30ce 413 Mikael Morin <mikael.morin@sfr.fr>
cc3801b0
PB
414
415 * Makefile.in (INCLUDES_FOR_TARGET): New.
416 (LIBGCC2_CFLAGS): Use it.
1e46eb2a 417 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
cc3801b0 418
f68c9aa8
UB
4192011-08-06 Uros Bizjak <ubizjak@gmail.com>
420
421 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
422 frame->save_regs_using_mov calculation.
423
cd7c6bc5
UB
4242011-08-06 Uros Bizjak <ubizjak@gmail.com>
425
426 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
427 * config/i386/sse.md (castmode): New mode attribute.
428 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
429 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
430
9911e25a
JH
4312011-08-05 Jan Hubicka <jh@suse.cz>
432
433 PR middle-end/49494
434 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
435
75d3e6e3
JH
4362011-08-05 Jan Hubicka <jh@suse.cz>
437
438 PR middle-end/49500
439 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
440 handle aliases.
441 (create_emultls_var):New function.
442 (ipa_lower_emutls): Handle aliases correctly.
443
f791d333
JH
4442011-08-05 Jan Hubicka <jh@suse.cz>
445
446 PR middle-end/49735
447 * ipa-inline.c (recursive_inlining): Look through aliases.
448
f93b21e2
JM
4492011-08-05 Jason Merrill <jason@redhat.com>
450
451 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
452 declarations to beginning of function.
453
2c331232
BS
4542011-08-05 Bernd Schmidt <bernds@codesourcery.com>
455
456 PR rtl-optimization/49900
457 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
458 ensure basic blocks stay in the same order.
459
44e95206
AH
4602011-08-05 Aldy Hernandez <aldyh@redhat.com>
461
462 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
463 store_bit_field.
464 (s390_expand_atomic): Same.
465
6fe818aa
RH
4662011-08-05 Richard Henderson <rth@redhat.com>
467
468 PR rtl-opt/49977
469 * dwarf2cfi.c (scan_insn_after): Split out of ...
470 (scan_trace): ... here. Correctly place notes wrt sequences.
471
7ac17442
KK
4722011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
473 Richard Henderson <rth@redhat.com>
474
475 PR rtl-opt/49982
476 * expr.c (fixup_args_size_notes): Look through no-op moves.
477
24911a50
UB
4782011-08-05 Uros Bizjak <ubizjak@gmail.com>
479
480 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
481 of "m" for operand 0. Add type and mode attribute.
482 (*pushxf_nointeger"): Use "<" constraint for operand 0.
483 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
484 constraint instead of "o" for opreand 1.
485 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
42443bdb
UB
486 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
487 operand 0, alternative 4.
488 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
24911a50
UB
489
4902011-08-05 Uros Bizjak <ubizjak@gmail.com>
491
492 * config/i386/predicates.md (lea_address_operand): Rename from
493 no_seg_address_operand.
494 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
495 (*lea_1_zext): Ditto.
496 (*lea_2): Ditto.
497 (*lea_2_zext): Ditto.
498
4992011-08-05 Uros Bizjak <ubizjak@gmail.com>
500
501 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
502 parts.base and parts.index.
503 * config/i386/predicates.md (aligned_operand): Ditto.
504 (cmpxchg8b_pic_memory_operand): Ditto.
505
aca0b0b3
RO
5062011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
507
508 * config/soft-fp: Move to ../libgcc.
509 * Makefile.in (SFP_MACHINE): Remove.
510 (libgcc-support): Remove $(SFP_MACHINE) dependency.
511 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
512 * config/arm/t-arm-softfp: Move to
513 ../libgcc/config/arm/t-softfp.
514 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
515 * config/c6x/t-c6x-softfp: Remove.
516 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
517 * config/i386/t-fprules-softfp: Move to
518 ../libgcc/config/t-softfp-tf.
519 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
520 * config/ia64/t-fprules-softfp: Remove.
521 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
522 * config/lm32/t-fprules-softfp: Remove.
523 * config/moxie/sfp-machine.h: Remove.
524 * config/moxie/t-moxie-softfp: Remove.
525 * config/rs6000/darwin-ldouble-format: Move to
526 ../libgcc/config/rs6000/ibm-ldouble-format.
527 * config/rs6000/darwin-ldouble.c: Move to
528 ../libgcc/config/rs6000/ibm-ldouble.c
529 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
530 * config/rs6000/libgcc-ppc64.ver: Likewise.
531 * config/rs6000/sfp-machine.h: Likewise.
532 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
533 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
534 (LIB2FUNCS_EXTRA): Remove.
535 (TARGET_LIBGCC2_CFLAGS): Remove.
536 * config/rs6000/t-aix52: Likewise
537 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
538 $(srcdir)/config/rs6000/darwin-ldouble.c.
539 (SHLIB_MAPFILES): Remove.
540 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
541 $(srcdir)/config/rs6000/darwin-ldouble.c.
542 * config/rs6000/t-fprules-softfp: Move to
543 ../libgcc/config/t-softfp-sfdf.
544 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
545 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
546 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
547 $(srcdir)/config/rs6000/darwin-ldouble.c.
548 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
549 * config/score/t-score-softfp: Remove.
550 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
551 soft-fp/t-softfp from tmake_file.
552 (arm*-*-uclinux*): Likewise.
553 (arm*-*-ecos-elf): Likewise.
554 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
555 (arm*-*-rtems*): Likewise.
556 (arm*-*-elf): Likewise.
557 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
558 tmake_file.
559 (moxie-*-uclinux*): Likewise.
560 (moxie-*-rtems*): Likewise.
561 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
562 tmake_file.
563 (lm32-*-rtems*): Likewise.
564 (lm32-*-uclinux*): Likewise.
565 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
566 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
567 (powerpc-*-linux*, powerpc64-*-linux*): Remove
568 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
569 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
570 tmake_file.
571 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
572 tmake_file.
573 (tic6x-*-uclinux): Likewise.
574 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
575 soft-fp/t-softfp from tmake_file.
576 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
577 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
578 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
24911a50 579 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
aca0b0b3
RO
580 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
581
569dc494
RO
5822011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
583
584 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
24911a50 585 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
569dc494
RO
586 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
587 TPBIT, TPBIT_FUNCS.
588 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
589 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
590 Remove.
591 * config/arm/t-vxworks: Likewise.
592 * config/arm/t-wince-pe: Likewise.
593 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
594 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
595 * config/bfin/t-bfin-elf: Likewise.
596 * config/bfin/t-bfin-linux: Likewise.
597 * config/bfin/t-bfin-uclinux: Likewise.
598 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
599 Remove.
600 * config/fr30/t-fr30: Likewise.
601 * config/frv/t-frv: Likewise.
602 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
603 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
604 * config/m32c/t-m32c: Likewise.
605 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
606 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
607 * config/mcore/t-mcore: Likewise.
608 * config/mep/t-mep: Likewise.
609 * config/microblaze/t-microblaze: Likewise.
610 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
611 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
612 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
613 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
614 * config/mn10300/t-linux: Remove.
615 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
616 * config/pdp11/t-pdp11: Likewise.
617 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
618 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
619 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
620 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
621 * config/rs6000/t-aix52: Likewise.
622 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
623 $(srcdir)/config/rs6000/ppc64-fp.c.
624 * config/rs6000/t-fprules-fpbit: Remove.
625 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
626 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
627 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
628 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
629 * config/sparc/t-elf: Likewise.
630 * config/sparc/t-leon: Likewise.
631 * config/sparc/t-leon3: Likewise.
632 * config/spu/t-spu-elf: Likewise.
633 (DPBIT_FUNCS): Remove.
634 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
635 * config/v850/t-v850: Likewise.
636 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
637 (avr-*-*): Likewise.
638 (h8300-*-rtems*): Set libgcc_tm_file.
639 (h8300-*-elf*): Likewise.
640 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
641 tmake_file.
642 (powerpc-*-eabisim*): Likewise.
643 (powerpc-*-elf*): Likewise.
644 (powerpc-*-eabialtivec*): Likewise.
645 (powerpc-xilinx-eabi*): Likewise.
646 (powerpc-*-eabi*): Likewise.
647 (powerpc-*-rtems*): Likewise.
648 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
649 (powerpcle-*-elf*): Likewise.
650 (powerpcle-*-eabisim*): Likewise.
651 (powerpcle-*-eabi*): Likewise.
652 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
653 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
654 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
655 Remove.
656
201cdb74
RO
6572011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
658
659 * Makefile.in (UNWIND_H): Remove.
660 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
661 ../libgcc/Makefile.in.
662 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
663 (LIBUNWINDDEP): Remove.
664 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
665 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
666 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
667 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
668 Don't copy $(UNWIND_H).
24911a50 669 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
201cdb74
RO
670 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
671 * aclocal.m4: Regenerate.
672 * configure: Regenerate.
673 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
674 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
675 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
676 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
677 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
678 * config/arm/libunwind.S, config/arm/pr-support.c,
679 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
680 ../libgcc/config/arm.
681 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
682 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
683 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
684 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
685 ($(T)frvend$(objext)): Likewise.
686 * config/ia64/t-glibc (LIB2ADDEH): Remove.
687 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
688 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
689 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
690 ../libgcc/config/ia64.
691 * config/ia64/t-hpux (LIB2ADDEH): Remove.
692 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
693 * config/ia64/t-vms (LIB2ADDEH): Remove.
694 * config/ia64/vms.h (UNW_IVMS_MODE,
695 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
696 * config/picochip/t-picochip (LIB2ADDEH): Remove.
697 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
698 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
699 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
700 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
701 $(srcdir)/../libgcc to refer to unwinder sources.
702 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
703 * config/t-darwin (LIB2ADDEH): Remove.
704 * config/t-freebsd (LIB2ADDEH): Remove.
705 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
706 * config/t-libunwind-elf: Move to ../libgcc/config.
707 * config/t-linux (LIB2ADDEH): Remove.
708 * config/t-sol2 (LIB2ADDEH): Remove.
709 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
710 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
711
cee0d6d2
L
7122011-08-05 H.J. Lu <hongjiu.lu@intel.com>
713
714 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
715
716 * doc/invoke.texi: Document core-avx-i.
717
96c891b3
RO
7182011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
719
720 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
721
2aacf3c3
IR
7222011-08-05 Ira Rosen <ira.rosen@linaro.org>
723
724 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
725 result of multiple results reduction when extracting the final
726 value using scalar code.
727
0f36b2da
RG
7282011-08-05 Richard Guenther <rguenther@suse.de>
729
730 PR tree-optimization/49984
731 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
732
8b201bc5
RG
7332011-08-05 Richard Guenther <rguenther@suse.de>
734
735 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
736 return true for constant integer ranges.
737 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
738 BIT_IOR_EXPR handling.
739
c1ea7f07
KT
7402011-08-04 Kai Tietz <ktietz@redhat.com>
741
742 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
743 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
744
1107f3ae
IR
7452011-08-04 Ira Rosen <ira.rosen@linaro.org>
746
747 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
748 pattern def statement, and its access macro.
749 (NUM_PATTERNS): Set to 5.
750 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
751 pattern def statement.
752 (vect_transform_loop): Likewise.
753 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
754 function vect_recog_over_widening_pattern ().
755 (vect_operation_fits_smaller_type): New function.
756 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
757 Likewise.
758 (vect_pattern_recog_1): Move the code that marks pattern
759 statements to vect_mark_pattern_stmts (), and call it. Update
760 documentation.
761 * tree-vect-stmts.c (vect_supportable_shift): New function.
762 (vect_analyze_stmt): Handle pattern def statement.
763 (new_stmt_vec_info): Initialize pattern def statement.
764
6394830f
RH
7652011-08-04 Richard Henderson <rth@redhat.com>
766
767 PR target/49964
768 * config/i386/i386.c (ix86_expand_call): Don't create nested
769 PARALLELs for TARGET_VZEROUPPER.
770 (ix86_split_call_vzeroupper): Fix extraction of the original call.
771 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
772 recognize nested PARALLELs.
773 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
774 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
775 *sibcall_value_pop_vzeroupper): Likewise.
776
faf7a23d
RH
7772011-08-04 Richard Henderson <rth@redhat.com>
778
779 PR middle-end/49968
780 * calls.c (expand_call): Use fixup_args_size_notes for
781 emit_stack_restore.
782 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
783 in non-standard modes.
784
84f405a1
JJ
7852011-08-04 Jakub Jelinek <jakub@redhat.com>
786
787 * gcc.c (self_spec): New variable.
788 (static_specs): Add self_spec.
789 (main): Call do_self_spec on "self_spec" specs after reading
790 user specs files. Move compare_debug handling right after that.
791
4d320da4
RG
7922011-08-04 Richard Guenther <rguenther@suse.de>
793
794 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
795 (value_range_nonnegative_p): New function.
796 (ssa_name_nonnegative_p): Use it.
797 (value_range_constant_singleton): New function.
798 (op_with_constant_singleton_value_range): Use it.
799 (extract_range_from_binary_expr_1): New function, split out from ...
800 (extract_range_from_binary_expr): ... this. Remove fallback
801 constant folding done here.
802
7e29ba60
RG
8032011-08-04 Richard Guenther <rguenther@suse.de>
804
805 PR tree-optimization/49806
806 * tree-vrp.c (op_with_boolean_value_range_p): New function.
807 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
808 a new statement for a final conversion to bool.
809
f142b5bc
RG
8102011-08-04 Romain Geissler <romain.geissler@gmail.com>
811
812 * gengtype-state.c: Include "bconfig.h" if
813 GENERATOR_FILE is defined, "config.h" otherwise.
814 * gengtype.c: Likewise.
815 * gengtype-lex.l: Likewise.
816 * gengtype-parse.c: Likewise.
817 * Makefile.in (gengtype-lex.o-warn): New variable.
818 (plugin_resourcesdir): Likewise.
819 (plugin_bindir): Likewise.
820 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
821 (MOSTLYCLEANFILES): Add gengtype$(exeext).
822 (native): Depend on gengtype$(exeext) is $enable_plugin
823 is set to "yes".
824 (gtype.state): Depend on s-gtype. Use temporary file.
825 (gengtype-lex.o): New rule.
826 (gengtype-parse.o): Likewise.
827 (gengtype-state.o): Likewise.
828 (gengtype$(exeext)): Likewise.
829 (install-gengtype): Likewise.
830 (gengtype.o): Likewise.
831 (build/gengtype.o): Depend on version.h.
832 (build/gengtype-state): Depend on double-int.h, version.h,
833 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
834 (install-plugin): Depend on install-gengtype.
835
8dd00781
JJ
8362011-08-04 Jakub Jelinek <jakub@redhat.com>
837
838 PR middle-end/49905
839 * tree.h (init_attributes): New prototype.
840 * attribs.c (init_attributes): No longer static.
841
6eb9142a
RR
8422011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
843
844 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
845 maybe_suffix.
846
63a73071
DL
8472011-08-03 David Li <davidxl@google.com>
848
849 * tree-optimize.c (execute_fixup_cfg): Fix up entry
850 outgoing edge counts after inlining.
851
90037898
DL
8522011-08-03 David Li <davidxl@google.com>
853
854 * profile.c (compute_branch_probabilities): Compute
855 function frequency after profile annotation.
856
ea6c2b0e
AM
8572011-08-04 Alan Modra <amodra@gmail.com>
858
859 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
860 use_backchain_to_restore_sp initialisation.
861 (rs6000_legitimate_offset_address_p): Simplify offset test.
862
4b39813a
RH
8632011-08-03 Richard Henderson <rth@redhat.com>
864
865 * config/spu/spu.md: Use define_c_enum instead of define_constants.
866 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
867 (UNSPECV_NOP): New.
868
a6365e99
RH
8692011-08-03 Richard Henderson <rth@redhat.com>
870
871 PR target/34888
872 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
873
cb3d2e33
JJ
8742011-08-03 Jakub Jelinek <jakub@redhat.com>
875
876 PR tree-optimization/49948
877 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
878
35bdbc69
AS
8792011-08-03 Anatoly Sokolov <aesok@post.ru>
880
881 * config/m32c/m32c.c (class_sizes): Remove.
882 (reduce_class): Change arguments and return type to reg_class_t.
883 Change type cc var to HARD_REG_SET. Change type best var to
884 reg_class_t. Change type best_size var to unsigned int. Remove
885 initialization class_sizes var. Use reg_class_size array instead
886 of class_sizes. Use reg_class_contents array instead
887 of class_contents.
888
a130fb24
RG
8892011-08-03 Richard Guenther <rguenther@suse.de>
890
891 PR middle-end/49958
892 * fold-const.c (fold_binary_loc): Only associate
893 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
894 overflow wraps.
895
276e0224
AM
8962011-08-03 Alan Modra <amodra@gmail.com>
897
898 PR rtl-optimization/49941
899 * jump.c (mark_jump_label): Comment.
900 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
901 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
902 (mark_used_flags): Don't mark RETURN.
903
eb723fa3
RG
9042011-08-03 Richard Guenther <rguenther@suse.de>
905
906 PR tree-optimization/49938
907 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
908 deal with a POLYNOMIAL_CHREC.
909
edc429ff
RE
9102011-08-03 Revital Eres <revital.eres@linaro.org>
911
912 * modulo-sched.c (calculate_stage_count,
913 calculate_must_precede_follow, get_sched_window,
914 try_scheduling_node_in_cycle, remove_node_from_ps): Add
915 declaration.
916 (update_node_sched_params, set_must_precede_follow, optimize_sc):
917 New functions.
918 (reset_sched_times): Call update_node_sched_params.
919 (sms_schedule): Call optimize_sc.
920 (get_sched_window): Change function arguments.
921 (sms_schedule_by_order): Update call to get_sched_window.
922 Call set_must_precede_follow.
923 (calculate_stage_count): Add function argument.
924
9a08d230
RH
9252011-08-02 Richard Henderson <rth@redhat.com>
926
927 PR target/49864
a3fef928 928 PR target/49879
9a08d230
RH
929 * reg-notes.def (REG_ARGS_SIZE): New.
930 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
931 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
932 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
933 different stack levels.
934 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
935 (maybe_move_args_size_note): New.
936 (combine_stack_adjustments_for_block): Use it.
937 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
938 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
939 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
940 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
941 (cur_cfa): New.
942 (queued_args_size): Remove.
943 (add_cfi_args_size): Assert size is non-negative.
944 (stack_adjust_offset, dwarf2out_args_size): Remove.
945 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
946 (notice_args_size, notice_eh_throw): New.
947 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
948 (dwarf2out_frame_debug_adjust_cfa): Likewise.
949 (dwarf2out_frame_debug_cfa_offset): Likewise.
950 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
951 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
952 (change_cfi_row): Don't emit args_size.
953 (maybe_record_trace_start_abnormal): Split out from ...
954 (maybe_record_trace_start): Here. Set args_size_undefined.
955 (create_trace_edges): Update to match.
956 (scan_trace): Handle REG_ARGS_SIZE.
957 (connect_traces): Connect args_size between EH insns.
958 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
959 * explow.c (suppress_reg_args_size): New.
960 (adjust_stack_1): Split out from ...
961 (adjust_stack): ... here.
962 (anti_adjust_stack): Use it.
963 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
964 * expr.c (mem_autoinc_base): New.
965 (fixup_args_size_notes): New.
966 (emit_single_push_insn_1): Rename from emit_single_push_insn.
967 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
968 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
969 * reload1.c (reload_as_needed): Likewise.
970 * rtl.h (fixup_args_size_notes): Declare.
971
9f813990
PC
9722011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
973
974 PR bootstrap/49914
975 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
976 of abs.
977 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
978 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
979
8f1594b2
RH
9802011-08-02 Richard Henderson <rth@redhat.com>
981
982 * config/h8300/h8300.c (push, pop): Return the insn.
983 (h8300_swap_into_er6): Generate correct unwind info.
984 (h8300_swap_out_of_er6): Likewise.
cde7b553
RH
985 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
986 complex cfa expression.
987 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8f1594b2 988
3ed2c643
L
9892011-08-02 H.J. Lu <hongjiu.lu@intel.com>
990
991 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
992
f9b4f8c1
RH
9932011-08-02 Richard Henderson <rth@redhat.com>
994
995 PR target/49878
996 * config/h8300/h8300.c (h8300_move_ok): New.
997 * config/h8300/h8300-protos.h: Declare it.
998 * config/h8300/h8300.md (P): New mode iterator.
999 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
1000 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
1001 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
1002 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
1003 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
1004 and pushqi1_h8300hs_normal; use PRE_MODIFY and
1005 register_no_sp_elim_operand.
1006 (*pushhi1_h8300hs_<P>): Similarly.
1007 (pushqi1, pushhi1, pushhi1_h8300): Remove.
1008 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
1009
b7cef595
RH
10102011-08-02 Richard Henderson <rth@redhat.com>
1011
1012 PR target/49881
1013 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
1014
20906c66
JJ
10152011-08-02 Jakub Jelinek <jakub@redhat.com>
1016
1017 * c-parser.c (enum c_parser_prec): New enum, moved from within
1018 c_parser_binary_expression.
1019 (c_parser_binary_expression): Add PREC argument. Stop parsing
1020 if operator has lower or equal precedence than PREC.
1021 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
1022 callers.
1023 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
1024 Adjust c_finish_omp_atomic caller.
1025 (c_parser_omp_taskyield): New function.
1026 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
1027 (c_parser_omp_clause_name): Handle final and mergeable clauses.
1028 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
1029 functions.
1030 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
1031 and PRAGMA_OMP_CLAUSE_MERGEABLE.
1032 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
1033 (c_parser_omp_clause_reduction): Handle min and max.
1034 * c-typeck.c (c_finish_omp_clauses): Don't complain about
1035 const qualified predetermined vars in firstprivate clause.
1036 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
1037 Handle MIN_EXPR and MAX_EXPR.
1038 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
1039 and OMP_CLAUSE_MERGEABLE.
1040 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
1041 and OMP_ATOMIC_CAPTURE_NEW.
1042 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
1043 OMP_CLAUSE_MERGEABLE.
1044 (omp_clause_code_name): Likewise.
1045 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
1046 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
1047 and OMP_CLAUSE_MERGEABLE.
1048 (OMP_CLAUSE_FINAL_EXPR): Define.
1049 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
1050 OMP_CLAUSE_MERGEABLE.
1051 (expand_task_call): Likewise.
1052 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
1053 (expand_omp_atomic_fetch_op): Handle cases where old or new
1054 value is needed afterwards.
1055 (expand_omp_atomic): Call expand_omp_atomic_load resp.
1056 expand_omp_atomic_store.
1057 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
1058 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
1059 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
1060 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
1061 * tree-nested.c (convert_nonlocal_omp_clauses,
1062 convert_local_omp_clauses): Likewise.
1063 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
1064 OMP_ATOMIC_CAPTURE_NEW): New.
1065 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
1066 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
1067 New inlines.
1068 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
1069 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
1070 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
1071
9b80d091
KT
10722011-08-02 Kai Tietz <ktietz@redhat.com>
1073
1074 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
1075 boolean-type.
1076 (ssa_forward_propagate_and_combine): Interprete result of
1077 forward_propagate_comparison.
1078 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
1079 boolean-typed operands for comparisons.
1080
7ea56b23 10812011-08-02 Georg-Johann Lay <avr@gjlay.de>
276e0224 1082
7ea56b23
GJL
1083 * config/avr/libgcc.S: Gather related function in the
1084 same input section.
276e0224 1085 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
7ea56b23
GJL
1086 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
1087 references.
1088 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
1089 __udivmodsi4, __divmodsi4, __prologue_saves__,
1090 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
1091 __do_copy_data, __do_clear_bss, __do_global_ctors,
1092 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
1093
643e867f
UB
10942011-08-02 Uros Bizjak <ubizjak@gmail.com>
1095
1096 PR target/47766
1097 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
1098 (stack_protect_test): The pattern compares ptr_mode value.
1099
390fa588
AM
11002011-08-02 Alan Modra <amodra@gmail.com>
1101
1102 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
1103 note for save_LR_around_toc_setup sequence.
1104
d4be16f6
L
11052011-08-01 H.J. Lu <hongjiu.lu@intel.com>
1106
643e867f 1107 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
d4be16f6 1108
3c67fd9c
SP
11092011-08-01 Sebastian Pop <sebastian.pop@amd.com>
1110 Joseph Myers <joseph@codesourcery.com>
1111
1112 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
1113 * hwint.c: Include diagnostic-core.h.
1114 (abs_hwi): New.
1115 (gcd): Moved here...
1116 (pos_mul_hwi): New.
1117 (mul_hwi): New.
1118 (least_common_multiple): Moved here...
1119 * hwint.h (gcd): ... from here.
1120 (least_common_multiple): ... from here.
1121 (HOST_WIDE_INT_MIN): New.
1122 (HOST_WIDE_INT_MAX): New.
1123 (abs_hwi): Declared.
1124 (gcd): Declared.
1125 (pos_mul_hwi): Declared.
1126 (mul_hwi): Declared.
1127 (least_common_multiple): Declared.
1128 * omega.c (check_pos_mul): Removed.
1129 (check_mul): Removed.
1130 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
1131 mul_hwi instead of check_mul.
1132
172c08a5
RH
11332011-08-01 Richard Henderson <rth@redhat.com>
1134
1135 PR target/49881
1136 * config/avr/avr.h (PUSH_ROUNDING): New.
1137 * config/avr/avr.md (pushqi1): Rename from *pushqi.
1138 (*pushhi, *pushsi, *pushsf): Remove.
1139 (MPUSH): New mode iterator.
1140 (push<MPUSH>1): New expander.
1141
0d5e496f
AS
11422011-08-01 Anatoly Sokolov <aesok@post.ru>
1143
1144 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
1145 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
1146 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
1147 mmix_preferred_output_reload_class): Remove.
1148 * config/mmix/mmix.c (mmix_preferred_reload_class,
1149 mmix_preferred_output_reload_class): Make static. Change rclass
1150 argument and return type to reg_class_t.
1151 (TARGET_PREFERRED_RELOAD_CLASS,
1152 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1153
a44250f4
JR
11542011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
1155
1156 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
1157 handling.
1158
efd7630c
L
11592011-08-01 H.J. Lu <hongjiu.lu@intel.com>
1160
1161 PR target/47766
1162 * config/i386/i386.md (PTR): New.
1163 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
1164 (stack_protect_test): Likewise.
1165 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
1166 (stack_tls_protect_set_<mode>): Likewise.
1167 (stack_tls_protect_test_<mode>): Likewise.
1168
03acddfe
UB
11692011-08-01 Uros Bizjak <ubizjak@gmail.com>
1170
1171 PR target/49927
1172 * config/i386/i386.c (ix86_address_subreg_operand): New.
1173 (ix86_decompose_address): Use ix86_address_subreg_operand.
1174 (ix86_legitimate_address_p): Do not assert that subregs satisfy
1175 register_no_elim_operand in DImode.
1176
67f2d54f
IR
11772011-08-01 Ira Rosen <ira.rosen@linaro.org>
1178
1179 PR tree-optimization/49926
1180 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
1181 in a chain doesn't have uses both inside and outside the loop.
1182
f2c308fa 11832011-08-01 Georg-Johann Lay <avr@gjlay.de>
03acddfe 1184
f2c308fa
GJL
1185 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
1186 * config/avr/avr-devices.c (avr_mcu_types): Use it.
1187 * config/avr/avr-mcus.def (AVR_MCU): Use it.
1188 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
1189 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
1190 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
1191 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
1192 to detect if XJMP must not be skipped.
1193
bd15e32c
AM
11942011-08-02 Alan Modra <amodra@gmail.com>
1195
03acddfe
UB
1196 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
1197 Delete.
bd15e32c
AM
1198 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
1199 (rs6000_emit_prologue): Don't prematurely return when
1200 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
1201 save_toc_in_prologue case.
1202 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
1203 calls_alloca.
1204
d80de9e1 12052011-08-01 Georg-Johann Lay <avr@gjlay.de>
bd15e32c 1206
d80de9e1
GJL
1207 * config/avr/avr-devices.c: Delete SVN property svn:executable.
1208 * config/avr/predicates.md: Ditto.
1209 * config/avr/driver-avr.c: Ditto.
1210 * config/avr/genopt.sh: Set SVN property svn:executable to *.
1211
ee222ce0
L
12122011-08-01 H.J. Lu <hongjiu.lu@intel.com>
1213
1214 * calls.c (emit_library_call_value_1): Declare size only if
1215 BLOCK_REG_PADDING is defined.
1216
5fcafa60
KY
12172011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
1218
1219 PR target/49547
03acddfe 1220 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
5fcafa60
KY
1221 (x86_64-*-*): Likewise.
1222 * config/i386/i386.opt (mlzcnt): New.
1223 * config/i386/abmintrin.h: File removed.
1224 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
03acddfe 1225 * config/i386/lzcntintrin.h: ... here. New file.
5fcafa60
KY
1226 (__lzcnt): Rename to ...
1227 (__lzcnt32): ... this.
1228 * config/i386/bmiintrin.h (head): Update copyright year.
1229 (__lzcnt_u16): Removed.
1230 (__lzcnt_u32): Likewise.
1231 (__lzcnt_u64): Likewise.
1232 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
1233 is defined, remove abmintrin.h.
1234 * config/i386/cpuid.h (bit_LZCNT): New.
1235 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1236 LZCNT feature.
1237 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1238 __LZCNT__ if needed.
1239 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
1240 (ix86_option_override_internal): Handle LZCNT option.
1241 (ix86_valid_target_attribute_inner_p): Likewise.
1242 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
1243 * config/i386/i386.h (TARGET_LZCNT): New.
1244 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
1245 * config/i386/i386.md (clz<mode>2): Update insn constraint.
1246 (clz<mode>2_lzcnt): Likewise.
1247 * doc/invoke.texi: Mention -mlzcnt option.
1248 * doc/extend.texi: Likewise.
1249
655b30bf
JB
12502011-08-01 Julian Brown <julian@codesourcery.com>
1251
1252 * configure.ac (fixed-point): Add ARM support.
1253 * configure: Regenerate.
1254 * config/arm/arm.c (arm_fixed_mode_set): New struct.
1255 (arm_set_fixed_optab_libfunc): New.
1256 (arm_set_fixed_conv_libfunc): New.
1257 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
1258 ARM-specific names.
1259 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
1260 return values in SImode.
1261 (arm_return_in_msb): Return fixed-point types in the msb.
1262 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
1263 upwards.
1264 (arm_scalar_mode_supported_p): Support fixed-point modes.
1265 (arm_vector_mode_supported_p): Support vector fixed-point modes.
1266 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
1267 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
1268 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
1269 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
1270 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
1271 New mode iterators.
1272 (qaddsub_suf): New mode attribute.
1273 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
1274 vector modes.
1275 * config/arm/predicates.md (sat_shift_operator): New predicate.
1276 * config/arm/arm-fixed.md: New.
1277 * config/arm/arm.md: Include arm-fixed.md.
1278 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
1279
460b171d
JB
12802011-08-01 Julian Brown <julian@codesourcery.com>
1281
1282 * calls.c (emit_library_call_value_1): Support padding for libcall
1283 arguments and return values.
1284 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
1285 downwards in big-endian mode.
1286
b6193c94
RO
12872011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1288
1289 PR debug/49887
1290 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
1291 * config/sol2-protos.h: Likewise.
1292 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
1293 solaris_code_end.
1294 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
1295 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
1296 solaris_file_end.
1297 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
1298
0747aae4
JB
12992011-08-01 Julian Brown <julian@codesourcery.com>
1300
1301 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
1302
848fac28
JB
13032011-08-01 Julian Brown <julian@codesourcery.com>
1304
1305 * final.c (output_addr_const): Print fixed-point constants as
1306 decimal not hex.
1307
e62a2b6e
RG
13082011-08-01 Richard Guenther <rguenther@suse.de>
1309
1310 * stor-layout.c (initialize_sizetypes): Properly sign-extend
1311 bitsiztype TYPE_MAX_VALUE.
1312
f64398b5
JB
13132011-08-01 Julian Brown <julian@codesourcery.com>
1314
1315 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
1316 comparison helpers.
1317
c469244e
RH
13182011-07-31 Richard Henderson <rth@redhat.com>
1319
1320 * config/h8300/crti.asm: Add flags to .section directive.
1321 * config/h8300/crtn.asm: Likewise.
1322
b87ac615
RH
13232011-07-31 Richard Henderson <rth@redhat.com>
1324
1325 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
1326 * tree.c (build_common_tree_nodes): Likewise.
1327
05eb5cc3
KK
13282011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
1329
1330 PR target/49880
1331 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
1332 (divsi3_i1): Likewise.
1333
a3059635
BS
13342011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1335
1336 PR tree-optimization/49749
1337 * tree-ssa-reassoc.c (get_rank): New forward declaration.
1338 (PHI_LOOP_BIAS): New macro.
1339 (phi_rank): New function.
1340 (loop_carried_phi): Likewise.
1341 (propagate_rank): Likewise.
1342 (get_rank): Add calls to phi_rank and propagate_rank.
bd15e32c 1343
3ee7be4c
L
13442011-07-31 H.J. Lu <hongjiu.lu@intel.com>
1345
1346 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
1347 of TARGET_64BIT.
1348 (PTRDIFF_TYPE): Likewise.
1349
deb1f617
UB
13502011-07-31 Uros Bizjak <ubizjak@gmail.com>
1351
1352 PR target/49920
1353 * config/i386/i386.md (strset): Do not expand strset_singleop
1354 when %eax or $edi are fixed.
1355 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
1356 (*strsetsi_1): Ditto.
1357 (*strsethi_1): Ditto.
1358 (*strsetqi_1): Ditto.
1359 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
1360 (*rep_stossi): Ditto.
1361 (*rep_stosqi): Ditto.
03acddfe 1362 (*strlenqi_1): Ditto.
deb1f617
UB
1363 (cmpstrnsi): Also fail when %ecx is fixed.
1364 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
1365 (*cmpstrnqi_1): Ditto.
deb1f617
UB
1366 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
1367 (*strmovsi_1): Ditto.
1368 (*strmovhi_1): Ditto.
1369 (*strmovqi_1): Ditto.
1370 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
1371 (*rep_movsi): Ditto.
1372 (*rep_movqi): Ditto.
1373
03e69b12
MP
13742011-07-31 Mikael Pettersson <mikpe@it.uu.se>
1375
1376 PR target/47908
1377 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
1378 Disable instruction scheduling for non-ColdFire targets.
1379 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
1380
dcaac07d
RE
13812011-07-31 Revital Eres <revital.eres@linaro.org>
1382
1383 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
1384 of anti-dep edge from a branch.
1385 (add_cross_iteration_register_deps): Create anti-dep edge from
1386 a branch.
1387
413e50a2
RE
13882011-07-31 Revital Eres <revital.eres@linaro.org>
1389
1390 * modulo-sched.c: Change comment.
1391 (reset_sched_times): Fix print message.
1392 (print_partial_schedule): Add print info.
1393
f047e518
TV
13942011-07-31 Tom de Vries <tom@codesourcery.com>
1395
1396 PR middle-end/43513
1397 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
1398 get_object_alignment and TYPE_ALIGN.
1399
b3421a06
TV
14002011-07-30 Tom de Vries <tom@codesourcery.com>
1401
1402 PR middle-end/43513
1403 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
1404 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
1405
cc822cc1
RO
14062011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1407
1408 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
1409 <sys/sbd.h>.
1410 (cpu_types): New array.
1411 (cputype): New function.
1412 (host_detect_local_cpu): Only define buf, f if !__sgi__.
1413 Use scaninvent instead of /proc/cpuinfo if __sgi__.
1414 * config.host: Also use driver-native.o, mips/x-native on
1415 mips-sgi-irix*.
deb1f617 1416 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
cc822cc1
RO
1417 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
1418 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
1419
25142650
JJ
14202011-07-29 Jakub Jelinek <jakub@redhat.com>
1421
1422 PR middle-end/49897
1423 PR middle-end/49898
1424 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
1425 in nested parallel and outer is a gimple_reg, mark it as addressable
1426 and set its bit in task_shared_vars bitmap too.
1427
89840058
UB
14282011-07-29 Uros Bizjak <ubizjak@gmail.com>
1429
1430 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
1431
d2da41f5
RO
14322011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1433
1434 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
1435 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
1436 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
1437 AMASK_LOCKPFTCHOK): Define.
1438 (host_detect_local_cpu): Remove buf, f, cpu_names.
1439 Define cpu_types, implver, amask.
1440 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
1441 native CPU.
1442 * config.host: Also use driver-alpha.o, alpha/x-alpha on
1443 alpha*-dec-osf*.
1444 * config/alpha/osf5.h [__alpha__ || __alpha]
1445 (host_detect_local_cpu): Declare.
1446 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
1447 (DRIVER_SELF_SPECS): Define.
1448
dadecee2
UB
14492011-07-29 Uros Bizjak <ubizjak@gmail.com>
1450
1451 PR target/47715
1452 * config/i386/i386.md (*load_tp_x32): New.
1453 (*load_tp_x32_zext): Ditto.
1454 (*add_tp_x32): Ditto.
1455 (*add_tp_x32_zext): Ditto.
1456 (*load_tp_<mode>): Disable for TARGET_X32 targets.
1457 (*add_tp_<mode>): Ditto.
1458 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
1459 ptr_mode and convert to Pmode if needed.
1460
db7ccee2 14612011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 1462
db7ccee2
GJL
1463 PR target/49687
1464 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
1465 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
1466 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
1467 Add X to register footprint: Clobber r26/r27.
1468
96d03496
RG
14692011-07-29 Richard Guenther <rguenther@suse.de>
1470
1471 * builtins.c (fold_builtin_signbit): Build the comparison
1472 with a proper type.
1473
64fb0d3a
RG
14742011-07-29 Richard Guenther <rguenther@suse.de>
1475
1476 PR tree-optimization/49893
1477 * tree-predcom.c (suitable_reference_p): Volatile references
1478 are not suitable.
1479
6130646b 14802011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 1481
6130646b
GJL
1482 PR target/49313
1483 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
1484 (__ctzsi2): Result for 0 may be undefined.
1485 (__ctzhi2): Result for 0 may be undefined.
1486 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
1487 (__popcountsi2): Ditto. And don't clobber r26.
1488 (__popcountdi2): Ditto. And don't clobber r27.
1489 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
1490 (parityhi2): New expand.
1491 (paritysi2): New expand.
1492 (popcounthi2): New expand.
1493 (popcountsi2): New expand.
1494 (clzhi2): New expand.
1495 (clzsi2): New expand.
1496 (ctzhi2): New expand.
1497 (ctzsi2): New expand.
1498 (ffshi2): New expand.
1499 (ffssi2): New expand.
1500 (copysignsf3): New insn.
1501 (bswapsi2): New expand.
1502 (*parityhi2.libgcc): New insn.
1503 (*parityqihi2.libgcc): New insn.
1504 (*paritysihi2.libgcc): New insn.
1505 (*popcounthi2.libgcc): New insn.
1506 (*popcountsi2.libgcc): New insn.
1507 (*popcountqi2.libgcc): New insn.
1508 (*popcountqihi2.libgcc): New insn-and-split.
1509 (*clzhi2.libgcc): New insn.
1510 (*clzsihi2.libgcc): New insn.
1511 (*ctzhi2.libgcc): New insn.
1512 (*ctzsihi2.libgcc): New insn.
1513 (*ffshi2.libgcc): New insn.
1514 (*ffssihi2.libgcc): New insn.
1515 (*bswapsi2.libgcc): New insn.
1516
a9b332d4
RG
15172011-07-29 Richard Guenther <rguenther@suse.de>
1518
1519 * tree-vrp.c (get_value_range): Only set parameter default
1520 definitions to varying, leave others at undefined.
1521 (extract_range_from_binary_expr): Fix undefined handling.
1522 (vrp_visit_phi_node): Handle merged undefined state.
1523
154516d9
WG
15242011-07-29 Wei Guozhi <carrot@google.com>
1525
1526 PR rtl-optimization/49799
1527 * combine.c (make_compound_operation): Check if the bit field is valid
1528 before change it to bit field extraction.
1529
e40a0b69
BS
15302011-07-29 Bernd Schmidt <bernds@codesourcery.com>
1531
1532 PR rtl-optimization/49891
1533 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
1534 newly created returnjumps.
1535
13a23442
DD
15362011-07-28 DJ Delorie <dj@redhat.com>
1537
69135c94
DD
1538 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
1539 local frame in a naked function, and produce a suitable error for
1540 that specific case.
1541
13a23442
DD
1542 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
1543 registers to be reloaded in HI classes when the target is HI.
1544
6c6c79a9
SP
15452011-07-28 Sebastian Pop <sebastian.pop@amd.com>
1546
1547 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
1548 bound_one, bound_two.
1549
0c43dbaf
SP
15502011-07-28 Sebastian Pop <sebastian.pop@amd.com>
1551
1552 PR middle-end/48648
1553 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
1554 CLAST assignments.
1555 (translate_clast): Same.
1556 (translate_clast_assignment): New.
1557
60cf26cc
SP
15582011-07-28 Sebastian Pop <sebastian.pop@amd.com>
1559
1560 PR tree-optimization/49876
1561 * sese.c (rename_uses): Do not return false on gloog_error: set
1562 the new_expr to integer_zero_node and continue code generation.
1563 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
1564
4fe249e7
JJ
15652011-07-28 Jakub Jelinek <jakub@redhat.com>
1566
1567 PR debug/49846
1568 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
1569 arguments also check if they aren't initialized with a MODE_INT
1570 mode of the same size.
1571
86f98641
AH
15722011-07-28 Aldy Hernandez <aldyh@redhat.com>
1573
1574 * expr.c (get_bit_range): Handle *MEM_REF's.
1575
dc0ff1c8
BS
15762011-07-28 Bernd Schmidt <bernds@codesourcery.com>
1577
1578 * rtlanal.c (tablejump_p): False for returns.
1579 * reorg.c (first_active_target_insn): New static function.
1580 (find_end_label): Set JUMP_LABEL for a new returnjump.
1581 (optimize_skip, get_jump_flags, rare_destination,
1582 mostly_true_jump, get_branch_condition,
1583 steal_delay_list_from_target, own_thread_p,
1584 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
1585 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
1586 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
1587 * jump.c (delete_related_insns): Likewise.
1588 (jump_to_label_p): New function.
1589 (redirect_target): New static function.
1590 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
1591 (redirect_jump_1): Assert that the new label is nonnull.
1592 (redirect_jump): Likewise.
1593 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
1594 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
1595 exit block.
1596 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
1597 changed. Ensure that the right label is passed to redirect_jump.
1598 * function.c (emit_return_into_block,
1599 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
1600 ret_rtx in their JUMP_LABEL.
1601 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
1602 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
1603 pass ret_rtx as label.
1604 * cfglayout.c (fixup_reorder_chain): Use
1605 force_nonfallthru_and_redirect rather than force_nonfallthru.
1606 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
1607 * rtl.h (ANY_RETURN_P): New macro.
1608 (jump_to_label_p): Declare.
1609 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
1610 JUMP_LABELs.
1611 (mark_target_live_regs): Likewise.
1612 * basic-block.h (force_nonfallthru_and_redirect): Declare.
1613 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
1614 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
1615 alpha_tablejump_best_label): Remove functions.
1616 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
1617 alpha_tablejump_best_label): Remove declarations.
1618 * config/sh/sh.c (barrier_align, split_branches): Adjust for
1619 ret_rtx in JUMP_LABELs.
1620 * config/arm/arm.c (is_jump_table): Likewise.
1621
a2e49bb2
UB
16222011-07-28 Uros Bizjak <ubizjak@gmail.com>
1623
1624 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
1625 special predicate. Remove explicit mode checks.
1626
64153cce
JJ
16272011-07-28 Jakub Jelinek <jakub@redhat.com>
1628
a2e49bb2
UB
1629 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
1630 DW_AT_data_member_location containing just DW_OP_plus_uconst.
b3882148 1631
64153cce
JJ
1632 PR debug/49871
1633 * dwarf2out.c (size_of_die, value_format, output_die): Use
1634 DW_FORM_udata instead of DW_FORM_data[48] for
1635 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
1636
0465f4f8
L
16372011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1638
844bf05b
UB
1639 * config/i386/i386.md (*tls_global_dynamic_64): Update
1640 length attribute.
0465f4f8 1641
f51c4a8a
UB
16422011-07-28 Uros Bizjak <ubizjak@gmail.com>
1643
1644 PR target/47715
1645 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
1646 tls_symbolic_operand check. Update code sequence for TARGET_X32.
1647 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
1648 (tls_dynamic_gnu2_64): Ditto.
1649 (*tls_dynamic_gnu2_lea_64): Ditto.
1650 (*tls_dynamic_gnu2_call_64): Ditto.
1651 (*tls_dynamic_gnu2_combine_64): Ditto.
1652
5e9627ca
L
16532011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1654
1655 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
1656
40b9321d
L
16572011-07-28 H.J. Lu <hongjiu.lu@intel.com>
1658
1659 PR target/47364
1660 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
1661
95f89bb3
RR
16622011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1663
1664 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
1665 before the core constraints. Adjust attributes.
a2e49bb2 1666 ("*thumb2_movdf_vfp"): Likewise.
95f89bb3 1667
98958241
KT
16682011-07-28 Kai Tietz <ktietz@redhat.com>
1669
f51c4a8a 1670 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
98958241
KT
1671 (simplify_truth_ops_using_ranges): Likewise.
1672 (build_assert_expr_for): Likewise.
1673 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
1674 and handle BIT_NOT_EXPR for truth-operation.
1675
f627fef2 16762011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 1677
f627fef2
GJL
1678 PR target/49313
1679 Undo r176835 from trunk
1680 2011-07-27 Georg-Johann Lay
1681
296799ba 16822011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 1683
296799ba
GJL
1684 PR target/49687
1685 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
1686 Add _muluhisi3, _mulshisi3, _usmulhisi3.
1687 * config/avr/libgcc.S (__mulsi3): Rewrite.
1688 (__mulhisi3): Rewrite.
1689 (__umulhisi3): Rewrite.
1690 (__usmulhisi3): New.
1691 (__muluhisi3): New.
1692 (__mulshisi3): New.
1693 (__mulohisi3): New.
1694 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
1695 declare.
1696 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
1697 (pseudo_register_or_const_int_operand): New.
1698 (combine_pseudo_register_operand): New.
1699 (u16_operand): New.
1700 (s16_operand): New.
1701 (o16_operand): New.
1702 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
1703 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
1704 (any_extend, any_extend2): New code iterators.
1705 (extend_prefix): New code attribute.
1706 (mulsi3): Rewrite. Turn insn to expander.
1707 (mulhisi3): Ditto.
1708 (umulhisi3): Ditto.
1709 (usmulhisi3): New expander.
1710 (*mulsi3): New insn-and-split.
1711 (mulu<mode>si3): New insn-and-split.
1712 (muls<mode>si3): New insn-and-split.
1713 (mulohisi3): New insn-and-split.
1714 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
1715 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
1716 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
1717 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
1718 insn-and-split.
1719 (*mulsi3_call): Rewrite.
1720 (*mulhisi3_call): Rewrite.
1721 (*umulhisi3_call): Rewrite.
1722 (*usmulhisi3_call): New insn.
1723 (*muluhisi3_call): New insn.
1724 (*mulshisi3_call): New insn.
1725 (*mulohisi3_call): New insn.
1726 (extendqihi2): Use combine_pseudo_register_operand as predicate
1727 for operand 1.
1728 (extendqisi2): Ditto.
1729 (zero_extendqihi2): Ditto.
1730 (zero_extendqisi2): Ditto.
1731 (zero_extendhisi2): Ditto.
1732 (extendhisi2): Ditto. Don't early-clobber operand 0.
1733
d8fa1b73
UB
17342011-07-28 Uros Bizjak <ubizjak@gmail.com>
1735
1736 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
1737
3689198d
SP
17382011-07-27 Sebastian Pop <sebastian.pop@amd.com>
1739
1740 PR tree-optimization/49471
1741 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
1742 iv only when the largest type is unsigned. Do not call
1743 lang_hooks.types.type_for_size.
1744
27165edd
SP
17452011-07-27 Sebastian Pop <sebastian.pop@amd.com>
1746
1747 PR middle-end/45450
1748 * graphite-poly.c (apply_poly_transforms): Disable legality check
1749 after an openscop read.
1750
bd4a54da
SP
17512011-07-27 Sebastian Pop <sebastian.pop@amd.com>
1752
1753 PR middle-end/47691
1754 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
1755 copy_bb_and_scalar_dependences.
1756 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
1757 (graphite_copy_stmts_from_block): Update call to rename_uses.
1758 (copy_bb_and_scalar_dependences): Update call to
1759 graphite_copy_stmts_from_block.
1760 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1761
04c9ea12 17622011-07-27 Georg-Johann Lay <avr@gjlay.de>
bd4a54da 1763
04c9ea12
GJL
1764 PR target/49313
1765 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
1766 (__ctzsi2): Result for 0 may be undefined.
1767 (__ctzhi2): Result for 0 may be undefined.
1768 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
1769 (__popcountsi2): Ditto. And don't clobber r26.
1770 (__popcountdi2): Ditto. And don't clobber r27.
1771 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
1772 (parityhi2): New expand.
1773 (paritysi2): New expand.
1774 (popcounthi2): New expand.
1775 (popcountsi2): New expand.
1776 (clzhi2): New expand.
1777 (clzsi2): New expand.
1778 (ctzhi2): New expand.
1779 (ctzsi2): New expand.
1780 (ffshi2): New expand.
1781 (ffssi2): New expand.
1782 (copysignsf3): New insn.
1783 (bswapsi2): New expand.
1784 (*parityhi2.libgcc): New insn.
1785 (*parityqihi2.libgcc): New insn.
1786 (*paritysihi2.libgcc): New insn.
1787 (*popcounthi2.libgcc): New insn.
1788 (*popcountsi2.libgcc): New insn.
1789 (*popcountqi2.libgcc): New insn.
1790 (*popcountqihi2.libgcc): New insn-and-split.
1791 (*clzhi2.libgcc): New insn.
1792 (*clzsihi2.libgcc): New insn.
1793 (*ctzhi2.libgcc): New insn.
1794 (*ctzsihi2.libgcc): New insn.
1795 (*ffshi2.libgcc): New insn.
1796 (*ffssihi2.libgcc): New insn.
1797 (*bswapsi2.libgcc): New insn.
1798
479a4921
UB
17992011-07-27 Uros Bizjak <ubizjak@gmail.com>
1800
1801 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
1802 the mode of symbolic_opreand RTXes.
1803
7aecd4e8
UB
18042011-07-27 Uros Bizjak <ubizjak@gmail.com>
1805
a2e49bb2
UB
1806 * config/i386/predicates.md (x86_64_movabs_operand): Return false
1807 for pic_32bit_operand RTXes.
7aecd4e8
UB
1808 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
1809 in DImode.
1810
eb9820c0
KT
18112011-07-27 Kai Tietz <ktietz@redhat.com>
1812
2fe83a0c
KT
1813 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
1814 for 32-bit, too.
1815 (ix86_handle_abi_attribute): Allow function attributes
1816 ms_abi/sysv_abi in 32-bit mode, too.
1817 * doc/extend.texi: Adjust attribute documentation.
1818
eb9820c0
KT
1819 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
1820 expression handling.
1821 (and_var_with_comparison_1): Likewise.
1822
1169e45d
AH
18232011-07-27 Aldy Hernandez <aldyh@redhat.com>
1824
1825 * params.h (ALLOW_STORE_DATA_RACES): New.
1826 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
1827 * Makefile.in (expr.o): Depend on PARAMS_H.
1828 * machmode.h (get_best_mode): Add argument.
1829 * fold-const.c (optimize_bit_field_compare): Add argument to
1830 get_best_mode.
1831 (fold_truthop): Same.
1832 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
1833 * expr.c (emit_group_store): Same.
1834 (copy_blkmode_from_reg): Same.
1835 (write_complex_part): Same.
1836 (optimize_bitfield_assignment_op): Add argument.
1837 Add argument to get_best_mode.
1838 (get_bit_range): New.
7aecd4e8 1839 (expand_assignment): Calculate maxbits and pass it down accordingly.
1169e45d 1840 (store_field): New argument.
7aecd4e8 1841 (expand_expr_real_2): New argument to store_field. Include params.h.
1169e45d
AH
1842 * expr.h (store_bit_field): New argument.
1843 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
1844 into account maxbits.
1845 * calls.c (store_unaligned_arguments_into_pseudos): New argument
1846 to store_bit_field.
1847 * expmed.c (store_bit_field_1): New argument. Use it.
1848 (store_bit_field): Same.
1849 (store_fixed_bit_field): Same.
1850 (store_split_bit_field): Same.
1851 (extract_bit_field_1): Pass new argument to get_best_mode.
1852 (extract_bit_field): Same.
1853 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
1854 * doc/invoke.texi: Document parameter allow-store-data-races.
1855
7bbdd4e9
JJ
18562011-07-27 Jakub Jelinek <jakub@redhat.com>
1857
7aecd4e8 1858 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7bbdd4e9 1859
aebf4828
KT
18602011-07-27 Kai Tietz <ktietz@redhat.com>
1861
1862 * tree-vrp.c (extract_range_from_binary_expr): Remove
1863 TRUTH-binary cases and add new bitwise-cases.
1864 (extract_range_from_assignment): Likewise.
1865 (register_edge_assert_for_1): Likeiwise.
1866 (register_edge_assert_for): Likewise.
1867 (simplify_truth_ops_using_ranges): Likewise.
1868 (simplify_stmt_using_ranges): Likewise.
1869
65ceed36
L
18702011-07-26 H.J. Lu <hongjiu.lu@intel.com>
1871
1872 PR target/47372
1873 * config/i386/i386.c (ix86_delegitimize_address): Call
1874 simplify_gen_subreg for PIC with mode of x only if modes of
1875 x and orig_x are different.
1876
b56bc05b
JJ
18772011-07-26 Jakub Jelinek <jakub@redhat.com>
1878
1879 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
1880 to GC allocated copy of the string.
1881 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
1882 before .debug_line, not after it.
1883
bce26def
SP
18842011-07-26 Sebastian Pop <sebastian.pop@amd.com>
1885
1886 PR middle-end/47046
1887 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
1888 evolution_function_is_affine_p on CHREC_RIGHT.
1889
5f72e02d
SP
18902011-07-26 Sebastian Pop <sebastian.pop@amd.com>
1891
1892 * tree-data-ref.c (max_stmt_executions_tree): Do not call
1893 lang_hooks.types.type_for_size.
1894
cbc1994b
SP
18952011-07-26 Sebastian Pop <sebastian.pop@amd.com>
1896
1897 PR middle-end/47653
1898 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
1899 loops using wrapping semantics.
1900
4c7d6755
SP
19012011-07-26 Sebastian Pop <sebastian.pop@amd.com>
1902
1903 PR middle-end/48805
1904 * tree-scalar-evolution.c (instantiate_scev_r): Return
1905 chrec_dont_know for ADDR_EXPR.
1906
e207e41f
UB
19072011-07-26 Uros Bizjak <ubizjak@gmail.com>
1908 H.J. Lu <hongjiu.lu@intel.com>
1909
1910 PR target/47369
1911 PR target/49853
1912 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
1913 if legitimize_tls_address returned operand in wrong mode. Allow
1914 SImode and DImode symbolic operand for PIC. Call convert_to_mode
1915 if legitimize_pic_address returned operand in wrong mode.
1916
842eeb9b
MJ
19172011-07-26 Martin Jambor <mjambor@suse.cz>
1918
1919 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
1920 return false for invariants.
1921
98d2c0ad
UB
19222011-07-26 Uros Bizjak <ubizjak@gmail.com>
1923
1924 * config/i386/i386.md (add->lea splitter): Implement using SWI
1925 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
1926 (add->lea zext splitter): Change operand 2 predicate to
1927 x86_64_nonmemory_operand.
1928
c21510a9
RG
19292011-07-26 Richard Guenther <rguenther@suse.de>
1930
1931 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
1932 frequency makes everything hot.
1933
9f61fd17
RG
19342011-07-26 Richard Guenther <rguenther@suse.de>
1935
1936 PR tree-optimization/49840
1937 * tree-vrp.c (range_fits_type_p): Properly handle full
1938 double-int precision.
1939
5bf3d50d
MJ
19402011-07-26 Martin Jambor <mjambor@suse.cz>
1941
1942 PR bootstrap/49786
1943 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
1944 counts.
1945 (update_specialized_profile): Likewise.
1946
536e3f49
UB
19472011-07-26 Uros Bizjak <ubizjak@gmail.com>
1948 H.J. Lu <hongjiu.lu@intel.com>
1949
1950 PR target/47381
1951 PR target/49832
1952 PR target/49833
1953 * config/i386/i386.md (i): Change SImode attribute to "e".
1954 (g): Change SImode attribute to "rme".
1955 (di): Change SImode attribute to "nF".
1956 (general_operand): Change SImode attribute to x86_64_general_operand.
1957 (general_szext_operand): Change SImode attribute to
1958 x86_64_szext_general_operand.
1959 (immediate_operand): Change SImode attribute to
1960 x86_64_immediate_operand.
1961 (nonmemory_operand): Change SImode attribute to
1962 x86_64_nonmemory_operand.
1963 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
1964 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
1965 (*lea_1): Use SWI48 mode iterator.
1966 (*lea_1_zext): New insn pattern.
1967 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
1968 (*bt<mode>): Ditto.
1969 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
1970 Update operand constraints.
1971 (addsi_1_zext): Ditto.
1972 (*add<mode>2): Ditto.
1973 (*addsi_3_zext): Ditto.
1974 (*subsi_1_zext): Ditto.
1975 (*subsi_2_zext): Ditto.
1976 (*subsi_3_zext): Ditto.
1977 (*addsi3_carry_zext): Ditto.
1978 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
1979 (*mulsi3_1_zext): Ditto.
1980 (*andsi_1): Ditto.
1981 (*andsi_1_zext): Ditto.
1982 (*andsi_2_zext): Ditto.
1983 (*<any_or:code>si_1_zext): Ditto.
1984 (*<any_or:code>si_2_zext): Ditto.
1985 (*test<mode>_1): Use <general_operand> predicate for operand 1.
1986 (*and<mode>_2): Ditto.
1987 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
1988 (add->lea splitter): Check operand modes in insn constraint. Extend
1989 operands less than SImode wide to SImode.
1990 (add->lea zext splitter): Do not extend input operands to DImode.
1991 (*lea_general_1): Handle only QImode and HImode operands.
1992 (*lea_general_2): Ditto.
1993 (*lea_general_3): Ditto.
1994 (*lea_general_1_zext): Remove.
1995 (*lea_general_2_zext): Ditto.
1996 (*lea_general_3_zext): Ditto.
1997 (*lea_general_4): Check operand modes in insn constraint. Extend
1998 operands less than SImode wide to SImode.
1999 (ashift->lea splitter): Ditto.
2000 * config/i386/i386.c (ix86_print_operand_address): Print address
2001 registers with 'q' modifier on 64bit targets.
2002 * config/i386/predicates.md (pic_32bit_opreand): Define as special
2003 predicate. Reject non-SI and non-DI modes.
2004
0de204de
AP
20052011-07-25 Andrew Pinski <apinski@cavium.com>
2006
2007 PR tree-opt/49671
2008 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
2009 TREE_THIS_NOTRAP into the inner most MEM_REF.
2010 Always copy TREE_THIS_VOLATILE.
2011 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
2012 arguments are not volatile references.
2013
104fcc7a
RH
20142011-07-25 Richard Henderson <rth@redhat.com>
2015
2016 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
2017 * final.c (final_scan_insn): Don't test for it.
2018 (rest_of_clean_state): Likewise.
2019
c24a6738
RH
20202011-07-25 Richard Henderson <rth@redhat.com>
2021
2022 PR debug/49841
2023 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
2024 (emit_frame_save): Likewise.
2025 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
2026 insn onto a dummy blockage insn after the join label.
2027
200e10dc
RH
20282011-07-25 Richard Henderson <rth@redhat.com>
2029
2030 * dwarf2cfi.c (dw_trace_info): Add ID member.
2031 (get_trace_index): Remove. Change users to use ID member.
2032 (before_next_cfi_note): New.
2033 (connect_traces): Remove unreachable traces before the main loop.
2034 Look across one trace and generate remember/restore_state if needed.
2035
a5d0ce89
RH
20362011-07-25 Richard Henderson <rth@redhat.com>
2037
2038 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
2039
c344a866
JR
20402011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
2041
2042 * genattr.c (write_upcase, gen_attr <enum definition writing>):
2043 Move to ...
2044 * genattr-common.c ... here.
2045 (main): Call gen_attr.
2046 * optc-gen.awk: Make generated program include insn-attr-common.h .
2047 * Makefile.in (oprions.o): Depend on insn-attr-common.h
2048
4645179e
AS
20492011-07-25 Anatoly Sokolov <aesok@post.ru>
2050
2051 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2052 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
2053 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
2054 m32c_print_operand, m32c_print_operand_address): Remove.
2055 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
2056 Change return type to bool. Change argument type to bool.
2057 (m32c_print_operand, m32c_print_operand_address): Make static.
2058 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
2059 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2060
8175c19c
RO
20612011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2062
2063 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2064 attributes): Document mmap.
2065
5057fa13
AS
20662011-07-25 Anatoly Sokolov <aesok@post.ru>
2067
2068 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2069 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
2070 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
2071 mmix_print_operand, mmix_print_operand_address): Remove.
2072 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
2073 Change return type to bool. Change argument type to bool.
2074 (mmix_print_operand, mmix_print_operand_address): Make static.
536e3f49 2075 (mmix_intval, mmix_output_condition): Change 'x' argument type
5057fa13
AS
2076 to const_rtx.
2077 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
2078 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2079
f4da258f 20802011-07-25 Georg-Johann Lay <avr@gjlay.de>
536e3f49 2081
f4da258f
GJL
2082 PR target/39386
2083 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
2084 shift counter for x << x and x >> x shifts.
2085
1500b428
RO
20862011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2087
2088 PR target/47124
2089 * config.gcc: Reject *-*-solaris2 configuration.
2090
59daeef4
RS
20912011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
2092
2093 PR tree-optimization/49809
2094 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
2095 gimple_get_lhs instead of gimple_assign_lhs.
2096
4d1c7421
RO
20972011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2098
2099 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
2100
7fdab8d4
RG
21012011-07-25 Richard Guenther <rguenther@suse.de>
2102
2103 PR tree-optimization/49822
2104 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
2105 more. Make sure to preserve stmts with side-effects. Properly
2106 handle virtual defs, follow a longer def chain.
2107
1baae426
RG
21082011-07-22 Romain Geissler <romain.geissler@gmail.com>
2109
2110 PR plugins/45348
2111 PR plugins/48425
2112 PR plugins/46577
2113 * Makefile.in: Do not flatten c-family directory when installing
2114 plugin headers.
2115
264b47b0
EB
21162011-07-25 Eric Botcazou <ebotcazou@adacore.com>
2117
2118 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
2119 original nodes if we are dealing with virtual clones.
2120
3d02ae65
BS
21212011-07-25 Bernd Schmidt <bernds@codesourcery.com>
2122
2123 * common/config/c6x/c6x-common.c: New file.
2124
2eaa698b
RZ
21252011-07-25 Roman Zhuykov <zhroma@ispras.ru>
2126
2127 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
2128
ebeadd91
RG
21292011-07-25 Richard Guenther <rguenther@suse.de>
2130
2131 PR tree-optimization/49715
2132 * tree-vrp.c: Include expr.h and optabs.h.
2133 (range_fits_type_): New function.
2134 (simplify_float_conversion_using_ranges): Likewise.
2135 (simplify_stmt_using_ranges): Call it.
2136 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
2137 * optabs.c (can_float_p): Export.
2138 * optabs.h (can_float_p): Declare.
2139
d9256277
RG
21402011-07-25 Richard Guenther <rguenther@suse.de>
2141
2142 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
2143 (get_value_range): For out-of-range SSA names or names created
2144 after propagation return a read-only varying range.
2145 (dump_all_value_ranges): Adjust.
2146 (vrp_initialize): Likewise.
2147 (vrp_finalize): Likewise.
2148
149e741d
RH
21492011-07-24 Richard Henderson <rth@redhat.com>
2150
2151 PR debug/49831
2152 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
2153 them entirely.
2154
981dc735
RH
21552011-07-24 Richard Henderson <rth@redhat.com>
2156
2157 PR debug/49825
2158 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
2159 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
2160
3382318a
RH
21612011-07-24 Richard Henderson <rth@redhat.com>
2162
2163 PR debug/49827
2164 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
2165
2f23f97a
RH
21662011-07-24 Richard Henderson <rth@redhat.com>
2167
2168 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
2169 Zero args_size for abnormal edges. Adjust all callers.
2170
2edb462e
RH
21712011-07-24 Richard Henderson <rth@redhat.com>
2172
2173 PR debug/49825
2174 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
2175
96d5384b
L
21762011-07-24 H.J. Lu <hongjiu.lu@intel.com>
2177
2178 PR bootstrap/49835
2179 * collect2.c (demangle_flag): Removed.
2180
df45fc34
SL
21812011-07-24 Sandra Loosemore <sandra@codesourcery.com>
2182
2183 * configure.ac (demangler_in_ld): Default to yes.
2184 * configure: Regenerated.
2185 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
2186 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
2187 --no-demangle options straight through to ld. When
2188 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
2189 way that has the intended effect on Windows.
2190
829bdd4b
RH
21912011-07-23 Richard Henderson <rth@redhat.com>
2192
2193 * dwarf2cfi.c: Include basic-block.h.
2194 (dw_label_info): Remove.
2195 (trace_work_list, trace_index): New.
2196 (remember_row, emit_cfa_remember): Remove.
2197 (dw_trace_info_hash, dw_trace_info_eq): New.
2198 (get_trace_index, get_trace_info): New.
2199 (save_point_p): New.
2200 (free_cfi_row): Remove.
2201 (add_cfi): Do not emit DW_CFA_remember_state.
2202 (cfa_row_equal_p): New.
2203 (barrier_args_size): Remove.
2204 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
2205 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
2206 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
2207 (dwarf2out_cfi_begin_epilogue): Remove.
2208 (dwarf2out_frame_debug_restore_state): Remove.
2209 (connect_traces, create_pseudo_cfg): New.
2210 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
2211 * Makefile.in (dwarf2cfi.o): Update.
2212
43215a89
RH
22132011-07-23 Richard Henderson <rth@redhat.com>
2214
2215 * dwarf2cfi.c (dw_trace_info): New.
2216 (dw_label_info): New.
2217 (cie_return_save): New.
2218 (cur_trace): New.
2219 (queued_args_size): Rename from args_size. Update all users.
2220 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
2221 (def_cfa_1): Use cur_trace instead of cfa_*.
2222 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
2223 (clobbers_queued_reg_save, reg_saved_in): Likewise.
2224 (dwarf2out_frame_debug_expr): Likewise.
2225 (create_cie_data): Split out from ...
2226 (execute_dwarf2_frame): ... here. Initialize cur_trace.
2227
6ffc63e1
RH
22282011-07-23 Richard Henderson <rth@redhat.com>
2229
2230 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
2231 Update all users to match.
2232 (execute_dwarf2_frame): Free reg_saved_in_data.
2233
999646c1
RH
22342011-07-23 Richard Henderson <rth@redhat.com>
2235
2236 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
2237 (queued_reg_saves): Don't GTY. Change to a VEC.
2238 (queue_reg_save): Update to match.
2239 (dwarf2out_flush_queued_reg_saves): Likewise.
2240 (clobbers_queued_reg_save): Likewise.
2241 (reg_saved_in): Likewise.
2242 (execute_dwarf2_frame): Free queued_reg_saves.
2243
ce363ef2
RH
22442011-07-23 Richard Henderson <rth@redhat.com>
2245
2246 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
2247
57e16c96
RH
22482011-07-23 Richard Henderson <rth@redhat.com>
2249
2250 * dwarf2cfi.c (add_cfi_args_size): Split out from...
2251 (dwarf2out_args_size): ... here.
2252 (add_cfi_restore): Split out from ...
2253 (dwarf2out_frame_debug_cfa_restore): ... here.
2254 (def_cfa_0): Split out from ...
2255 (def_cfa_1): ... here.
2256 (cfi_oprnd_equal_p, cfi_equal_p): New.
2257 (change_cfi_row): New.
2258 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
2259 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
2260 (output_cfis): Remove.
2261 * dwarf2out.c (output_fde): Simplify output_cfi loop.
2262 (dwarf2out_switch_text_section): Don't call output_cfis.
2263 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
2264 * dwarf2out.h: Update decls.
2265 (enum dw_val_class): Add dw_val_class_none.
2266
f1a0e830
RH
22672011-07-23 Richard Henderson <rth@redhat.com>
2268
2269 * dwarf2cfi.c (update_row_reg_save): New.
2270 (dwarf2out_frame_debug_cfa_expression): Use it.
2271 (dwarf2out_frame_debug_cfa_restore): Likewise.
2272 (reg_save): Likewise. Do not emit DW_CFA_same_value.
2273
141618e2
RH
22742011-07-23 Richard Henderson <rth@redhat.com>
2275
2276 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
2277
f17d3401
RH
22782011-07-23 Richard Henderson <rth@redhat.com>
2279
2280 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
2281 (cie_cfi_row): New.
2282 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
2283 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
2284 (cur_row, remember_row): New.
2285 (def_cfa_1): Use cur_row instead of the old_* variables.
2286 (dwarf2out_frame_debug_restore_state): Similarly.
2287 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
2288 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
2289 (dwarf2out_frame_debug_adjust_cfa): Likewise.
2290 (dwarf2out_frame_debug_cfa_offset): Likewise.
2291 (dwarf2out_frame_debug_expr): Likewise.
2292 (execute_dwarf2_frame): Set up cur_row.
2293 * dwarf2out.h (struct cfa_loc): Mark for GTY.
2294
0be7e7a6
RH
22952011-07-23 Richard Henderson <rth@redhat.com>
2296
2297 * basic-block.h (EDGE_PRESERVE): New.
2298 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
2299 * bb-reorder.c: Include except.h.
2300 (fix_up_crossing_landing_pad): New.
536e3f49 2301 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
0be7e7a6
RH
2302 landing pads in the right partition. Duplicate as necessary.
2303 (partition_hot_cold_basic_blocks): Fix up DF info after
2304 duplicating landing pads.
2305 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
2306 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
2307 is set properly. Validate that EH edges are not CROSSING.
2308 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
2309 (dw2_build_landing_pads): ... here.
2310 (convert_to_eh_region_ranges): Remove code to fixup crossing
2311 landing pads.
2312 * except.h (expand_dw2_landing_pad_for_region): Declare.
2313 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
2314
e0170551
RE
23152011-07-23 Richard Earnshaw <rearnsha@arm.com>
2316
2317 PR target/49816
2318 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
2319
15c2ccba
JM
23202011-07-22 Jason Merrill <jason@redhat.com>
2321
2322 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
2323
295331a4
RH
23242011-07-22 Richard Henderson <rth@redhat.com>
2325
2326 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
2327
5f93b30a
RH
23282011-07-22 Richard Henderson <rth@redhat.com>
2329
2330 * jump.c (maybe_propagate_label_ref): Split out of...
2331 (mark_all_labels): ... here. Do not attempt label_ref
2332 propagation while in cfglayout mode.
2333
e967adf4
JJ
23342011-07-22 Jakub Jelinek <jakub@redhat.com>
2335
520cda8c
JJ
2336 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
2337 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
2338 (dwarf_attr_name): Handle DW_AT_GNU_macros.
2339 (dwarf2out_define): If the vector is empty and
2340 lineno is 0, emit a dummy entry first.
2341 (dwarf2out_undef): Likewise. Remove redundant semicolon.
2342 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
2343 optimize_macinfo_range): New functions.
2344 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
2345 mergeable, optimize longer strings using
2346 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
2347 optimize longer sequences of define/undef ops from headers
2348 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
2349 emit a section headers.
2350 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
2351 and macinfo_section_label to DEBUG_MACRO_SECTION
2352 resp. DEBUG_MACRO_SECTION_LABEL.
2353 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
2354 instead of DW_AT_macro_info.
2355
e967adf4
JJ
2356 PR other/32998
2357 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
2358 options.
2359 * dwarf2out.c: Include opts.h.
2360 (dchar_p): New typedef. Define heap VEC for it.
2361 (producer_string): New variable.
2362 (gen_producer_string): New function.
2363 (gen_compile_unit_die): Use it.
536e3f49 2364 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
e967adf4
JJ
2365 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
2366 * doc/invoke.texi: Document -grecord-gcc-switches and
2367 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
2368 to -frecord-gcc-switches description.
2369
3a636414
JM
23702011-07-22 Jason Merrill <jason@redhat.com>
2371
2372 PR c++/30112
2373 * c-decl.c (c_linkage_bindings): Define.
2374
8b9b2275
EB
23752011-07-22 Eric Botcazou <ebotcazou@adacore.com>
2376
2377 PR debug/49815
2378 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
2379
3de69514
L
23802011-07-22 H.J. Lu <hongjiu.lu@intel.com>
2381
2382 * config/i386/i386.c (ix86_option_override_internal): Disallow
2383 MS ABI in x32 mode.
2384 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
2385 only for TARGET_LP64.
536e3f49 2386 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
3de69514 2387
49f6f4f7 23882011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
e56fa6bb
MM
2389
2390 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
2391 avoid warnings when GCC is built with a C++ compiler.
2392
b75d1e21
MJ
23932011-07-22 Martin Jambor <mjambor@suse.cz>
2394
2395 PR lto/49796
2396 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
536e3f49 2397 if decl node is in another partition, call cgraph_get_node only once.
b75d1e21 2398
63708bf5
UB
23992011-07-22 Uros Bizjak <ubizjak@gmail.com>
2400
e3c666fd 2401 * config.gcc (x86_64-*-linux*): Set
63708bf5
UB
2402 default_gnu_indirect_function to yes.
2403
27315aa6
RG
24042011-07-22 Richard Guenther <rguenther@suse.de>
2405
2406 PR tree-optimization/45819
2407 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
2408 preserve volatile and notrap flags.
2409
5b6d595b
RO
24102011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2411 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2412
2413 PR bootstrap/49794
2414 * configure.ac: Test AM_ICONV with CXX.
2415 * configure: Regenerate.
2416 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
2417
7e2fe488
RO
24182011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2419
2420 PR bootstrap/49797
2421 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
2422 (set_cloog_options): Use it.
2423
d423df48
JJ
24242011-07-22 Jakub Jelinek <jakub@redhat.com>
2425
2426 PR c++/49756
2427 * gcc.c (main): Call stack_limit_increase (64MB).
2428 * toplev.c (toplev_main): Likewise.
2429
7fd72c6f
L
24302011-07-21 H.J. Lu <hongjiu.lu@intel.com>
2431
2432 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
2433 instead of force_reg.
2434
96f0b772
L
24352011-07-21 H.J. Lu <hongjiu.lu@intel.com>
2436
2437 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
2438 needed and use force_reg after convert.
2439 (ix86_expand_call): Likewise.
2440 (ix86_expand_special_args_builtin): Likewise.
2441 (ix86_expand_builtin): Likewise.
2442
ef74e2ba
SP
24432011-07-21 Sebastian Pop <sebastian.pop@amd.com>
2444
2445 PR middle-end/47654
2446 PR middle-end/49649
2447 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
2448 in parameter. Initialize v1 and v2 based on the values returned
2449 by clast_name_to_lb_ub.
2450 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
2451 values.
2452 (type_for_clast_bin): Same.
2453 (type_for_clast_expr): Same.
2454 (type_for_clast_eq): Update calls to type_for_clast_expr.
2455 (type_for_clast_for): Same.
2456 (build_iv_mapping): Same.
2457 * graphite-ppl.h (value_min): New.
2458
84f2ffea
SP
24592011-07-21 Sebastian Pop <sebastian.pop@amd.com>
2460
2461 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
2462 types whenever possible.
2463
3d9784cb
SP
24642011-07-21 Sebastian Pop <sebastian.pop@amd.com>
2465
2466 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
2467 and ub fields.
2468 (new_clast_name_index): Add lb and ub parameters.
2469 (free_clast_name_index): New.
2470 (clast_name_to_lb_ub): New.
2471 (save_clast_name_index): Add lb and ub parameters.
2472 (compute_bounds_for_param): New.
2473 (type_for_level): Removed.
2474 (type_for_clast_for): Removed level parameter. Do not call
2475 type_for_level.
2476 (graphite_create_new_loop): Store the lb and ub for the clast_name
2477 of the iterator of the loop that has been generated.
2478 (graphite_create_new_loop_guard): Remove parameter level.
2479 (create_params_index): Store the lb and ub of each parameter.
2480 (gloog): Use free_clast_name_index. Pass to create_params_index
2481 the current scop.
2482
12b30e6d
SP
24832011-07-21 Sebastian Pop <sebastian.pop@amd.com>
2484
2485 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
2486 (max_precision_type): Inline max_signed_precision_type.
2487 (type_for_clast_red): Use max_precision_type.
2488 (type_for_clast_bin): Same.
2489 (type_for_clast_for): Same.
2490
0cdd9dcf
SP
24912011-07-21 Sebastian Pop <sebastian.pop@amd.com>
2492
2493 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
2494 type_for_interval.
2495 (gcc_type_for_value): Renamed type_for_value.
2496 (gcc_type_for_clast_term): Renamed type_for_clast_term.
2497 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
2498 (gcc_type_for_clast_red): Renamed type_for_clast_red.
2499 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
2500 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
2501 (graphite_translate_clast_equation): Update calls.
2502 (compute_type_for_level): Renamed type_for_level.
2503 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
2504 (build_iv_mapping): Update calls.
2505 (graphite_create_new_loop_guard): Same.
2506
8aab43a0
SP
25072011-07-21 Sebastian Pop <sebastian.pop@amd.com>
2508
2509 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
2510 comment.
2511
cf7eab7d
SP
25122011-07-21 Sebastian Pop <sebastian.pop@amd.com>
2513
2514 * graphite-clast-to-gimple.c (struct ivs_params): New.
2515 (clast_name_to_gcc): Use ivs_params to pass around parameters.
2516 (clast_to_gcc_expression): Same.
2517 (clast_to_gcc_expression_red): Same.
2518 (gcc_type_for_clast_term): Same.
2519 (gcc_type_for_clast_expr): Same.
2520 (gcc_type_for_clast_red): Same.
2521 (gcc_type_for_clast_bin): Same.
2522 (gcc_type_for_clast_eq): Same.
2523 (graphite_translate_clast_equation): Same.
2524 (graphite_create_guard_cond_expr): Same.
2525 (graphite_create_new_guard): Same.
2526 (graphite_create_new_loop): Same.
2527 (build_iv_mapping): Same.
2528 (translate_clast_user): Same.
2529 (graphite_create_new_loop_guard): Same.
2530 (translate_clast): Same.
2531 (translate_clast_for_loop): Same.
2532 (translate_clast_for): Same.
2533 (translate_clast_guard): Same.
2534 (initialize_cloog_names): Fix typo.
2535 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
2536
7b1e9596
SP
25372011-07-21 Sebastian Pop <sebastian.pop@amd.com>
2538
2539 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
2540 (new_clast_name_index): Add level parameter.
2541 (clast_name_to_level): New.
2542 (save_clast_name_index): Add level parameter.
2543 (newivs_to_depth_to_newiv): Removed.
2544 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
2545 (graphite_create_new_loop): Add level parameter. Pass level to
2546 save_clast_name_index.
2547 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
2548 (create_params_index): Pass level to save_clast_name_index.
2549
6e6568db
SP
25502011-07-21 Sebastian Pop <sebastian.pop@amd.com>
2551
2552 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
2553 recompute type, lb, and ub. Get them from...
2554 (graphite_create_new_loop_guard): ...here. Pass in parameter
2555 pointers to type, lb, and ub.
2556 (translate_clast_for_loop): Update function calls.
2557 (translate_clast_for): Same.
2558
dff62090
SP
25592011-07-21 Sebastian Pop <sebastian.pop@amd.com>
2560
2561 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
2562 psct_dynamic_dim.
2563 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
2564 (gcc_type_for_iv_of_clast_loop): Update use of level.
2565 (gloog): Start counting nesting level from 0.
2566 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
2567 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
2568 psct_dynamic_dim on level.
2569
628c1ac9
L
25702011-07-21 H.J. Lu <hongjiu.lu@intel.com>
2571
2572 * config/i386/i386.c (ix86_legitimize_address): Convert to
2573 Pmode if needed.
2574
08a8923e
L
25752011-07-21 H.J. Lu <hongjiu.lu@intel.com>
2576
2577 * config/i386/i386.c (function_value_64): Always return pointers
2578 in Pmode.
2579 (ix86_promote_function_mode): New.
2580 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
2581
777a4e9a
BS
25822011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2583
2584 PR tree-optimization/49749
2585 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
2586 remove no-longer-used maxrank variable.
63708bf5 2587
e9514725 25882011-07-21 Georg-Johann Lay <avr@gjlay.de>
63708bf5 2589
e9514725
GJL
2590 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
2591
9ca1483b
JM
25922011-07-21 Jason Merrill <jason@redhat.com>
2593
2594 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
2595 * recog.h (struct insn_data_d): Check it instead of
2596 HAVE_DESIGNATED_INITIALIZERS.
2597 * genoutput.c (output_insn_data): Likewise.
2598
3ceaf2f5
RG
25992011-07-21 Richard Guenther <rguenther@suse.de>
2600
2601 PR tree-optimization/49770
2602 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
2603 valueized any operand. Renamed from ...
2604 (valueize_refs): ... this. New wrapper around valueize_refs_1.
2605 (valueize_shared_reference_ops_from_ref): Return whether we
2606 valueized any operand.
2607 (vn_reference_lookup): Only when we valueized any operand
2608 use the valueized reference for alias analysis. Do not preserve
2609 the original reference tree in this case.
2610
7c53a140
UB
26112011-07-21 Uros Bizjak <ubizjak@gmail.com>
2612
2613 * config/i386/i386.c (ix86_decompose_address): Reject all but
a4235495 2614 register operands and subregs of DImode hard registers in index.
7c53a140 2615
7f3ff782
KT
26162011-07-21 Kai Tietz <ktietz@redhat.com>
2617
2618 * fold-const.c (fold_unary_loc): Preserve indirect
2619 comparison cast to none-boolean type.
2620 * tree-ssa.c (useless_type_conversion_p): Preserve cast
2621 from/to boolean-type.
7c53a140
UB
2622 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
2623 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7f3ff782
KT
2624 * tree-cfg.c (verify_gimple_comparison): Check result
2625 type of comparison expression.
7c53a140
UB
2626 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
2627 of condition result and disallow type-cast sinking into comparison.
7f3ff782 2628
91bc6112
RG
26292011-07-21 Richard Guenther <rguenther@suse.de>
2630
2631 * tree-ssa-forwprop.c (combine_conversions): Return whether
2632 we have to run cfg-cleanup. Properly remove dead stmts.
2633 (ssa_forward_propagate_and_combine): Adjust.
2634
d6f23738
RS
26352011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
2636
2637 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
2638
fec3cad3
KT
26392011-07-21 Kai Tietz <ktietz@redhat.com>
2640
2641 * tree-ssa-propagate.c (substitute_and_fold): Use
2642 do_dce flag to deside, if BB's statements are scanned
2643 in last to first, or first to last order.
2644
21f3ae2f 26452011-07-21 Georg-Johann Lay <avr@gjlay.de>
7c53a140 2646
21f3ae2f
GJL
2647 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
2648
6025b127
L
26492011-07-20 H.J. Lu <hongjiu.lu@intel.com>
2650 Uros Bizjak <ubizjak@gmail.com>
2651 Richard Henderson <rth@redhat.com>
2652
2653 * config/i386/constraints.md (w): New.
2654
2655 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
2656 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
2657
2658 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
2659 instead of TARGET_64BIT.
2660
2661 * config/i386/i386.md (indirect_jump): Replace
2662 nonimmediate_operand with indirect_branch_operand.
2663 (*indirect_jump): Likewise. Replace constraint "m" with "w".
a4235495
UB
2664 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
2665 Convert operand 0 to Pmode for x32 if not PIC.
6025b127
L
2666 (*tablejump_1): Replace nonimmediate_operand with
2667 indirect_branch_operand. Replace constraint "m" with "w".
2668 (*call_vzeroupper): Replace constraint "m" with "w".
2669 (*call): Likewise.
2670 (*call_rex64_ms_sysv_vzeroupper): Likewise.
2671 (*call_rex64_ms_sysv): Likewise.
2672 (*call_value_vzeroupper): Likewise.
2673 (*call_value): Likewise.
2674 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
2675 (*call_value_rex64_ms_sysv): Likewise.
a4235495 2676 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6025b127
L
2677
2678 * config/i386/predicates.md (indirect_branch_operand): New.
2679 (call_insn_operand): Support x32.
2680
7f8925a1
ME
26812011-07-20 Michael Eager <eager@eagercon.com>
2682
2683 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
2684
510a442a
RH
26852011-07-20 Richard Henderson <rth@redhat.com>
2686
2687 * cfg.c (dump_bb_info): Dump basic_block->flags.
2688 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
2689
00b40d0d
UB
26902011-07-20 Uros Bizjak <ubizjak@gmail.com>
2691
2692 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
2693 of DImode hard registers in index.
2694 (ix86_legitimate_address_p): Allow subregs of base and index to span
2695 more than a word. Assert that subregs of base and index satisfy
2696 register_no_elim_operand predicates. Reject addresses where
2697 base and index have different modes.
2698
87f53554
RM
26992011-07-20 Robert Millan <rmh@gnu.org>
2700
2701 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
2702
742f29ab
UW
27032011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2704
2705 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
2706 removing now-unnecessary assignment.
2707
d05f3564
UW
27082011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2709
2710 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
2711 memory address space to the type's address space.
2712
8c352fa8 27132011-07-20 Georg-Johann Lay <avr@gjlay.de>
00b40d0d 2714
8c352fa8
GJL
2715 PR target/36467
2716 PR target/49687
00b40d0d
UB
2717 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
2718 and expand appropriately if there is a CONST_INT in operand2.
8c352fa8
GJL
2719 (usmulqihi3): New insn.
2720 (*sumulqihi3): New insn.
2721 (*osmulqihi3): New insn.
2722 (*oumulqihi3): New insn.
2723 (*muluqihi3.uconst): New insn_and_split.
2724 (*muluqihi3.sconst): New insn_and_split.
2725 (*mulsqihi3.sconst): New insn_and_split.
2726 (*mulsqihi3.uconst): New insn_and_split.
2727 (*mulsqihi3.oconst): New insn_and_split.
2728 (*ashifthi3.signx.const): New insn_and_split.
2729 (*ashifthi3.signx.const7): New insn_and_split.
2730 (*ashifthi3.zerox.const): New insn_and_split.
2731 (mulsqihi3): New insn.
2732 (muluqihi3): New insn.
2733 (muloqihi3): New insn.
2734 * config/avr/predicates.md (const_2_to_7_operand): New.
2735 (const_2_to_6_operand): New.
2736 (u8_operand): New.
2737 (s8_operand): New.
2738 (o8_operand): New.
2739 (s9_operand): New.
2740 (register_or_s9_operand): New.
2741
be31603a
KT
27422011-07-20 Kai Tietz <ktietz@redhat.com>
2743
2744 * builtins.c (fold_builtin_expect): See through the cast
2745 from truthvalue_type_node to long.
2746
c36193c6
MM
27472011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2748
2749 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
2750 where we can use them from the standard and altivec instruction
2751 sets, instead of always using the 3 operand VSX forms that require
2752 the destination to overlap one of the inputs.
2753 (vsx_fms*): Ditto.
2754 (vsx_fnma*): Ditto.
2755 (vsx_fnms*): Ditto.
2756
2757 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
2758 for DF types.
2759 (fmsdf4_fpr): Ditto.
2760 (nfmadf4_fpr): Ditto.
2761 (nfmsdf4_fpr): Ditto.
2762
02aec184
SL
27632011-07-20 Sandra Loosemore <sandra@codesourcery.com>
2764
2765 * genrecog.c (make_insn_sequence): Correct position numbering
2766 when filtering out match_scratch and match_dup.
2767
f8ecf734
RG
27682011-07-20 Richard Guenther <rguenther@suse.de>
2769
2770 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
2771 against already removed statements.
2772 (forward_propagate_into_comparison): Remove dead defining stmts.
2773 (forward_propagate_into_gimple_cond): Likewise.
2774 (forward_propagate_into_cond): Simplify.
2775 (ssa_forward_propagate_and_combine): Handle changed cfg from
2776 forward_propagate_into_comparison.
2777 * tree-ssa-phiopt.c (conditional_replacement): Use proper
2778 locations for newly built statements.
2779
73451ae7
GJL
27802011-07-20 Georg-Johann Lay <avr@gjlay.de>
2781
2782 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
2783
c4100a35
AK
27842011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2785
2786 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
2787 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
2788
dca412a1
RG
27892011-07-20 Richard Guenther <rguenther@suse.de>
2790
2791 PR middle-end/18908
2792 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
2793 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
2794 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
2795
73d7e266
VM
27962011-07-20 Vladimir Makarov <vmakarov@redhat.com>
2797
2798 * config/frv/frv.c (frv_register_move_cost): Define explicitly
2799 costs for subclasses of GR_REGS.
2800
5e27a6d4
UB
28012011-07-20 Uros Bizjak <ubizjak@gmail.com>
2802
2803 PR target/49780
2804 * config/i386/predicates.md (no_seg_addres_operand): No more special.
2805 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
2806 of DImode hard registers in base.
2807 (ix86_legitimate_address_p): Allow SImode and DImode base and index
2808 registers.
2809
74d8fa44
RG
28102011-07-20 Richard Guenther <rguenther@suse.de>
2811
5e27a6d4 2812 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
74d8fa44
RG
2813 (unify_nodes): Deal with that.
2814 (solve_graph): Likewise.
2815
b0e43da8
CLT
28162011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
2817
2818 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
2819 canonicalize left operand from ZERO_EXTEND to AND.
2820
a8c44c52
AS
28212011-07-20 Anatoly Sokolov <aesok@post.ru>
2822
2823 * target.def (class_max_nregs): New hook.
2824 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
2825 * doc/tm.texi: Regenerate.
2826 * targhooks.c (default_class_max_nregs): New function.
2827 * targhooks.h (default_class_max_nregs): Declare.
2828 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
2829 x_ira_reg_class_min_nregs arrays to unsigned char.
2830 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
2831 hook instead of CLASS_MAX_NREGS macro.
2832 * reginfo.c (restore_register_info): Ditto.
2833 * ira-conflicts.c (process_regs_for_copy): Use
2834 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
2835 Change type rclass and aclass vars to reg_class_t.
2836 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
2837 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
2838 reg_class_t.
2839 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
2840 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
2841
2842 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
2843 * config/i386/i386.c (ix86_class_max_nregs): New function.
2844 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
2845 instead of CLASS_MAX_NREGS macro.
2846 (TARGET_CLASS_MAX_NREGS): Define.
2847 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
2848 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
2849 * config/avr/avr.c (class_max_nregs): Remove function.
2850 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
2851 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
2852 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
2853 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
2854 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
2855 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
2856 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
2857 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
2858 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
2859 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
2860 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
2861 * config/score/score.h (CLASS_MAX_NREGS): Remove.
2862 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
2863 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
2864 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
2865
fd811f03
EB
28662011-07-19 Eric Botcazou <ebotcazou@adacore.com>
2867
2868 * cif-code.def (OVERWRITABLE): Fix typo and move around.
2869 (TARGET_OPTIMIZATION_MISMATCH): Delete.
2870 (EH_PERSONALITY): Fix typo.
2871 (NON_CALL_EXCEPTIONS): Fix message.
2872 (OPTIMIZATION_MISMATCH): Adjust message.
2873 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
2874
78767fd9
ILT
28752011-07-19 Ian Lance Taylor <iant@google.com>
2876
2877 * doc/install.texi (Configuration): Document
2878 --enable-build-poststage1-with-cxx.
2879
0baeec1b
RM
28802011-07-19 Robert Millan <rmh@gnu.org>
2881
2882 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
2883 (GLIBC_DYNAMIC_LINKER): Remove.
2884
2885 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
2886 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
2887 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
2888 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
2889 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
2890 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
2891
2892 * config/mips/linux.h: Remove everything except for ...
2893 (GLIBC_DYNAMIC_LINKER): ... this macro.
2894
2895 * config/mips/linux64.h: Remove everything except for ...
2896 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
2897 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
2898 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
2899 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
2900 (GNU_USER_LINK_EMULATIONN32): New macros.
2901
5e27a6d4
UB
2902 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
2903 Use the new headers.
0baeec1b 2904
754c3d5d
RS
29052011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
2906
2907 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
2908 Add offset_known_p and size_known_p fields.
2909 (MEM_OFFSET_KNOWN_P): Update accordingly.
2910 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
2911 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
2912 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
2913 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
2914 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
2915 (init_emit_regs): Likewise.
2916
527210c4
RS
29172011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
2918
2919 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
2920 (MEM_OFFSET): Change from returning an rtx to returning a
2921 HOST_WIDE_INT.
2922 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
2923 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
2924 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
2925 (clear_mem_offset): Declare.
2926 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
2927 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
2928 MEM_OFFSET to get a HOST_WIDE_INT offset.
2929 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
2930 (adjust_offset_for_component_ref): Take a bool "known_p"
2931 parameter and a HOST_WIDE_INT "offset" parameter.
2932 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
2933 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
2934 than an rtx. Use clear_mem_offset to clear the offset.
2935 * cfgcleanup.c (merge_memattrs): Likewise.
2936 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
2937 * function.c (assign_parm_find_stack_rtl): Likewise.
2938 (assign_parm_setup_stack): Likewise.
2939 * print-rtl.c (print_rtx): Likewise.
2940 * reload.c (find_reloads_subreg_address): Likewise.
2941 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2942 * var-tracking.c (INT_MEM_OFFSET): Likewise.
2943 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
2944 (get_mem_align_offset): Likewise.
2945 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
2946 (clear_mem_offset): New function.
2947 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
2948 offset rather than an rtx. Assume both the expressio and offset
2949 are available.
2950 (r10k_needs_protection_p_1): Update accordingly, checking the
2951 expression and offset availability here instead.
2952
f5541398
RS
29532011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
2954
2955 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
2956 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
2957 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
2958 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
2959 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
2960 (clear_mem_size): Declare.
2961 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
2962 (clear_mem_size): New function.
2963 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
2964 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
2965 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
2966 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
2967 to clear the size.
2968 (nonoverlapping_memrefs_p): Likewise.
2969 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
2970 (expand_builtin_init_trampoline): Likewise.
2971 * calls.c (compute_argument_addresses): Likewise.
2972 * cfgcleanup.c (merge_memattrs): Likewise.
2973 * dce.c (find_call_stack_args): Likewise.
2974 * dse.c (record_store, scan_insn): Likewise.
2975 * dwarf2out.c (dw_sra_loc_expr): Likewise.
2976 * expr.c (emit_block_move_hints): Likewise.
2977 * function.c (assign_parm_find_stack_rtl): Likewise.
2978 * print-rtl.c (print_rtx): Likewise.
2979 * reload.c (find_reloads_subreg_address): Likewise.
2980 * rtlanal.c (may_trap_p_1): Likewise.
2981 * var-tracking.c (track_expr_p): Likewise.
2982 * varasm.c (assemble_trampoline_template): Likewise.
2983 * config/arm/arm.c (arm_print_operand): Likewise.
2984 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
2985 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
2986 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
2987 (expand_constant_setmem_prologue): Likewise.
2988 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
2989 * config/rs6000/rs6000.c (expand_block_move): Likewise.
2990 (adjacent_mem_locations): Likewise.
2991 * config/s390/s390.c (s390_expand_setmem): Likewise.
2992 (s390_expand_insv): Likewise.
2993 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
2994 (*extendqi<mode>2_short_displ): Likewise.
2995 * config/sh/sh.c (expand_block_move): Likewise.
2996 * config/sh/sh.md (extv, extzv): Likewise.
2997
f12144dd
RS
29982011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
2999
3000 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
3001 (mem_attrs_htab_eq): ...here.
3002 (find_mem_attrs): Replace with...
3003 (set_mem_attrs): ...this function. Take a mem_attrs structure
3004 rather than individual fields.
3005 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
3006 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
3007 (set_mem_size, change_address, adjust_address_1, offset_address)
3008 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
3009 Update accordingly.
3010
1c3f523e
RS
30112011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
3012
3013 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
3014 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
3015 Provide a dummy definition of MEM_ADDR_SPACE for generators.
3016 (target_rtl): Add x_mode_mem_attrs.
3017 (mode_mem_attrs): New macro.
3018 (get_mem_attrs): New function.
3019 * emit-rtl.c (get_mem_attrs): Rename to...
3020 (find_mem_attrs): ...this.
3021 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
3022 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
3023 (set_mem_size, change_address, adjust_address_1, offset_address)
3024 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
3025 Update accordingly.
3026 (init_emit_regs): Initialize mode_mem_attrs.
3027
3046b1a9
RG
30282011-07-19 Richard Guenther <rguenther@suse.de>
3029
3030 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
3031 TRUTH_*_EXPR handling.
3032 * tree-ssa-operands.c (get_expr_operands): Likewise.
3033 * tree-ssa-pre.c (fully_constant_expression): Likewise.
3034 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
3035 Likewise.
3036 (is_and_or_or): Likewise.
3037 (is_norm_cond_subset_of): Likewise.
3038
5d49b6a7
RG
30392011-07-19 Richard Guenther <rguenther@suse.de>
3040
3041 * tree.h (fold_build_pointer_plus_loc): New helper function.
3042 (fold_build_pointer_plus_hwi_loc): Likewise.
3043 (fold_build_pointer_plus): Define.
3044 (fold_build_pointer_plus_hwi): Likewise.
3045 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
3046 (fold_builtin_memory_op): Likewise.
3047 (fold_builtin_stpcpy): Likewise.
3048 (fold_builtin_memchr): Likewise.
3049 (fold_builtin_strstr): Likewise.
3050 (fold_builtin_strchr): Likewise.
3051 (fold_builtin_strrchr): Likewise.
3052 (fold_builtin_strpbrk): Likewise.
3053 (fold_builtin_strcat): Likewise.
3054 (expand_builtin_memory_chk): Likewise.
3055 (fold_builtin_memory_chk): Likewise.
3056 * c-typeck.c (build_unary_op): Likewise.
3057 * cgraphunit.c (thunk_adjust): Likewise.
3058 * fold-const.c (build_range_check): Likewise.
3059 (fold_binary_loc): Likewise.
3060 * omp-low.c (extract_omp_for_data): Likewise.
3061 (expand_omp_for_generic): Likewise.
3062 (expand_omp_for_static_nochunk): Likewise.
3063 (expand_omp_for_static_chunk): Likewise.
3064 * tree-affine.c (add_elt_to_tree): Likewise.
3065 * tree-data-ref.c (split_constant_offset_1): Likewise.
3066 * tree-loop-distribution.c (generate_memset_zero): Likewise.
3067 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
3068 * tree-predcom.c (ref_at_iteration): Likewise.
3069 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
3070 (add_to_parts): Likewise.
3071 (create_mem_ref): Likewise.
3072 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
3073 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
3074 (number_of_iterations_le): Likewise.
3075 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
3076 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
3077 (vect_create_addr_base_for_vector_ref): Likewise.
3078 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
3079 (vect_create_cond_for_alias_checks): Likewise.
3080 * tree-vrp.c (extract_range_from_assert): Likewise.
3081 * config/alpha/alpha.c (alpha_va_start): Likewise.
3082 (alpha_gimplify_va_arg_1): Likewise.
3083 * config/i386/i386.c (ix86_va_start): Likewise.
3084 (ix86_gimplify_va_arg): Likewise.
3085 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
3086 * config/mep/mep.c (mep_expand_va_start): Likewise.
3087 (mep_gimplify_va_arg_expr): Likewise.
3088 * config/mips/mips.c (mips_va_start): Likewise.
3089 (mips_gimplify_va_arg_expr): Likewise.
3090 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
3091 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
3092 (rs6000_gimplify_va_arg): Likewise.
3093 * config/s390/s390.c (s390_va_start): Likewise.
3094 (s390_gimplify_va_arg): Likewise.
3095 * config/sh/sh.c (sh_va_start): Likewise.
3096 (sh_gimplify_va_arg_expr): Likewise.
3097 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
3098 * config/spu/spu.c (spu_va_start): Likewise.
3099 (spu_gimplify_va_arg_expr): Likewise.
3100 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
3101 Likewise.
3102 (xstormy16_gimplify_va_arg_expr): Likewise.
3103 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
3104 (xtensa_gimplify_va_arg_expr): Likewise.
3105
d906fd7f
RG
31062011-07-19 Richard Guenther <rguenther@suse.de>
3107
3108 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
3109 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
3110 handling.
3111
3112 PR middle-end/18908
3113 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
3114 result of BIT_*_EXPR to bitfield precision.
3115
1b14d815
RS
31162011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
3117
3118 PR tree-optimization/49742
3119 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
3120 as a potential write.
3121
d906fd7f
RG
31222011-07-19 Richard Guenther <rguenther@suse.de>
3123
3124 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
3125 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
3126 (forward_propagate_comparison): Simplify, remove obsolete code.
3127
53020648
RG
31282011-07-19 Richard Guenther <rguenther@suse.de>
3129
3130 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
3131 BIT_XOR_EXPR, same as the RTL expander does.
3132 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
3133 (verify_gimple_assign_unary): Likewise.
3134 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
3135 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
3136 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
3137
b8b2b009
JJ
31382011-07-19 Jakub Jelinek <jakub@redhat.com>
3139
3140 PR tree-optimization/49768
3141 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
3142 if offset is smaller than bitoffset, but offset+size is bigger
3143 than bitoffset.
3144
338f655d
IR
31452011-07-19 Ira Rosen <ira.rosen@linaro.org>
3146
3147 PR tree-optimization/49771
3148 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
3149 zero step, set segment length to the size of the data-ref's type.
3150
310bc633
MJ
31512011-07-18 Martin Jambor <mjambor@suse.cz>
3152
3153 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
3154 comments.
3155 (ipcp_values_pool): Declare.
3156 (ipcp_sources_pool): Likewise.
3157 (ipcp_lattice): Changed to forward declaration.
3158 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
3159 cannot_devirtualize.
3160 (ipa_node_params): New fields descriptors, lattices, known_vals,
3161 clone_for_all_contexts and node dead, removed fields params and
3162 count_scale.
3163 (ipa_set_param_count): Removed.
3164 (ipa_get_param_count): Made to work with descriptors vector.
3165 (ipa_get_param): Updated.
3166 (ipa_param_cannot_devirtualize_p): Removed.
3167 (ipa_param_types_vec_empty): Likewise.
3168 (ipa_set_param_used): New function.
3169 (ipa_get_param_used): Updated to use descriptors vector.
3170 (ipa_func_list): Removed.
3171 (ipa_init_func_list): Removed declaration.
3172 (ipa_push_func_to_list_1): Likewise.
3173 (ipa_pop_func_from_list): Likewise.
3174 (ipa_push_func_to_list): Removed.
3175 (ipa_lattice_from_jfunc): Remove declaration.
3176 (ipa_get_jf_pass_through_result): Declare.
3177 (ipa_get_jf_ancestor_result): Likewise.
3178 (ipa_value_from_jfunc): Likewise.
3179 (ipa_get_lattice): Update.
3180 (ipa_lat_is_single_const): New function.
3181 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
3182 (ipa_init_func_list): Likewise.
3183 (ipa_pop_func_from_list): Likewise.
3184 (ipa_get_param_decl_index): Fix coding style.
3185 (count_formal_params): Removed.
3186 (count_formal_params_1): Renamed to count_formal_params.
3187 (ipa_populate_param_decls): Update to use descriptors vector.
3188 (ipa_initialize_node_params): Likewise.
3189 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
3190 (ipa_analyze_params_uses): Likewise.
3191 (ipa_free_node_params_substructures): Likewise and free also lattices
3192 and known values.
3193 (duplicate_array): Removed.
3194 (ipa_edge_duplication_hook): Add the new edge to the list of edge
3195 clones.
3196 (ipa_node_duplication_hook): Update to use new lattices.
3197 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
3198 (ipa_free_all_structures_after_iinln): Likewise.
3199 (ipa_write_node_info): Update to use new lattices.
3200 (ipa_read_node_info): Likewise.
3201 (ipa_get_jf_pass_through_result): New function.
3202 (ipa_get_jf_ancestor_result): Likewise.
3203 (ipa_value_from_jfunc): Likewise.
3204 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
3205 * ipa-cp.c: Reimplemented.
3206 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
3207 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
3208 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
3209 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
3210 * doc/invoke.texi (devirt-type-list-size): Removed description.
3211 (ipa-cp-value-list-size): Added description.
3212
6774a66f
RH
32132011-07-18 Richard Henderson <rth@redhat.com>
3214
3215 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
3216 before calling create_basic_block.
3217
8b316874
JJ
32182011-07-18 Jakub Jelinek <jakub@redhat.com>
3219
3220 PR middle-end/49675
3221 * tree.c (build_common_builtin_nodes): Register
3222 __builtin_return_address, __cyg_profile_func_enter
3223 and __cyg_profile_func_exit.
3224
9f68560b
RH
32252011-07-18 Richard Henderson <rth@redhat.com>
3226
3227 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
3228 (add_labels_and_missing_jumps): ... here.
3229 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
3230
03126412
UB
32312011-07-18 Uros Bizjak <ubizjak@gmail.com>
3232
3233 PR target/47744
3234 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3235 of DImode hard registers in PLUS address chains.
3236
fbf80ef7
RO
32372011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3238
3239 PR bootstrap/49769
3240 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
3241 (alpha*-*-freebsd*): Likewise.
3242 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3243 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
3244 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
3245 crtprec80.o, crtfastmath.o to extra_parts for all targets.
3246 (ia64*-*-elf*): Remove extra_parts.
3247 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
3248 (sparc64-*-linux*): Likewise.
3249 (sparc64-*-freebsd*): Likewise.
3250
3251 Revert:
3252 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
3253 (ia64*-*-linux*): Likewise.
3254 (mips64*-*-linux*): Likewise.
3255 (mips*-*-linux*): Likewise.
3256
daf633ba
DE
32572011-07-18 David Edelsohn <dje.gcc@gmail.com>
3258
3259 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
3260
4b4455e5
RG
32612011-07-18 Richard Guenther <rguenther@suse.de>
3262
3263 * gimplify.c (gimplify_expr): Use input_location, not saved_location
3264 when building new trees.
3265
e002c7cb
RG
32662011-07-18 Richard Guenther <rguenther@suse.de>
3267
3268 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
3269 expansion result to bitfield precision if required.
3270
e44dbbe1
RO
32712011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3272
3273 * config.gcc (i[3456x]86-*-netware*): Remove.
3274
3275 * gthr-nks.h: Remove.
3276 * configure.ac (enable_threads): Remove nks.
3277 * configure: Regenerate.
3278
3279 * config/i386/i386.c (ix86_encode_section_info): Remove netware
3280 reference.
3281 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
3282 <netware.h> reference.
3283
3284 * config/i386/netware-libgcc.c,
3285 gcc/config/i386/netware-libgcc.def,
3286 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
3287 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
3288 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
3289 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
3290
3291 * doc/extend.texi (Function Attributes,
3292 callee_pop_aggregate_return): Remove i?86-netware reference.
3293 * doc/install.texi (Configuration, --enable-threads): Remove nks.
3294
fd862017
JDA
32952011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3296
3297 PR target/49746
3298 Revert:
3299 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3300
3301 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
3302 patterns.
3303
1ff24749
EB
33042011-07-17 Eric Botcazou <ebotcazou@adacore.com>
3305
3306 PR middle-end/49732
3307 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
3308
a4a2c37d
MK
33092011-07-16 Matthias Klose <doko@ubuntu.com>
3310
3311 * doc/install.texi: Document --enable-static-libjava.
3312
ea6136a2
RH
33132011-07-15 Richard Henderson <rth@redhat.com>
3314
3315 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3316 Replace all three arguments by returning a VEC of edges.
3317 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
3318 pointers and counts.
3319 (fix_edges_for_rarely_executed_code): Merge ...
3320 (rest_of_handle_partition_blocks): ... into...
3321 (partition_hot_cold_basic_blocks): ... here. Return todo items if
3322 any work was performed.
3323 (pass_partition_blocks): Clear todo_flags_finish.
3324
6545e33e
PC
33252011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
3326 Jakub Jelinek <jakub@redhat.com>
3327 Jonathan Wakely <jwakely.gcc@gmail.com>
3328
3329 PR libstdc++/49745
3330 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
3331 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
3332
6feeed06
JM
33332011-07-15 Jason Merrill <jason@redhat.com>
3334
3335 PR testsuite/49741
3336 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
3337 rather than --tool_opts.
3338
44762055
BS
33392011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
3340
3341 * doc/plugins.texi (Building GCC plugins): gengtype needs its
0fa71447 3342 corresponding gtype.state.
44762055 3343
1be0310c
JDA
33442011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3345
3346 PR target/49723
3347 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
3348
12c5ffe5
EB
33492011-07-15 Eric Botcazou <ebotcazou@adacore.com>
3350
3351 PR target/48220
3352 * doc/md.texi (Standard Names): Document window_save.
3353 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
3354 expand_debug_expr and expand_debug_source_expr. If the target has
3355 a window_save instruction, adjust the ENTRY_VALUE_EXP.
3356 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
3357 SSA_NAME_VAR is a parameter.
3358 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
3359 * var-tracking.c (parm_reg_t): New type and associated vector type.
3360 (windowed_parm_regs): New variable.
3361 (adjust_insn): If the target has a window_save instruction and this
3362 is the instruction, make its effect on parameter registers explicit.
3363 (next_non_note_insn_var_location): New function.
3364 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
3365 (vt_add_function_parameter): If the target has a window_save insn,
3366 adjust the incoming RTL and record that in windowed_parm_regs.
3367 (vt_finalize): Free windowed_parm_regs.
3368
bcead286
BS
33692011-07-15 Bernd Schmidt <bernds@codesourcery.com>
3370
3371 * doc/invoke.texi (C6X Options): New section.
3372 * doc/md.texi (TI C6X family): New section.
3373 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
3374 tic6x-*-uclinux.
3375 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
3376 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
3377 Provide C6X definitions.
3378 * config/c6x/c6x.md: New file.
3379 * config/c6x/constraints.md: New file.
3380 * config/c6x/predicates.md: New file.
3381 * config/c6x/c6x-sched.md.in: New file.
3382 * config/c6x/c6x-sched.md: New file.
3383 * config/c6x/gensched.sh: New file.
3384 * config/c6x/c6x-mult.md.in: New file.
3385 * config/c6x/genmult.sh: New file.
3386 * config/c6x/c6x-mult.md: New file.
3387 * config/c6x/sync.md: New file.
3388 * config/c6x/c6x-protos.h: New file.
3389 * config/c6x/sfp-machine.h: New file.
3390 * config/c6x/c6x.c: New file.
3391 * config/c6x/c6x.h: New file.
3392 * config/c6x/crti.s: New file.
3393 * config/c6x/crtn.s: New file.
3394 * config/c6x/lib1funcs.asm: New file.
3395 * config/c6x/c6x-modes.def: New file.
3396 * config/c6x/genopt.sh: New file.
3397 * config/c6x/c6x.opt: New file.
3398 * config/c6x/c6x-tables.opt: New file.
3399 * config/c6x/c6x-opts.h: New file.
3400 * config/c6x/c6x-isas.def: New file.
3401 * config/c6x/elf.h: New file.
3402 * config/c6x/elf-common.h: New file.
3403 * config/c6x/uclinux-elf.h: New file.
3404 * config/c6x/t-c6x: New file.
3405 * config/c6x/t-c6x-elf: New file.
3406 * config/c6x/t-c6x-uclinux: New file.
3407 * config/c6x/t-c6x-softfp: New file.
3408 * config/c6x/gtd.c: New file.
3409 * config/c6x/gtf.c: New file.
3410 * config/c6x/ltd.c: New file.
3411 * config/c6x/ltf.c: New file.
3412 * config/c6x/ged.c: New file.
3413 * config/c6x/gef.c: New file.
3414 * config/c6x/led.c: New file.
3415 * config/c6x/lef.c: New file.
3416 * config/c6x/eqd.c: New file.
3417 * config/c6x/eqf.c: New file.
3418 * config/c6x/libgcc-c6xeabi.ver: New file.
3419
aef0e7a8
BS
3420 Revert
3421 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3422 PR rtl-optimization/11320
3423 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
3424 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
3425 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
3426 current_sched_info->compute_jump_reg_dependencies. Record which
3427 registers are used and which registers are set by the jump.
3428 Clear deps->reg_conditional_sets after a barrier.
3429 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
3430 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
3431 (init_deps): Initialize reg_conditional_sets.
3432 (free_deps): Clear reg_conditional_sets.
3433 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
3434 Mark registers live on entry of the fallthrough block and conditionally
3435 set as set by the jump. Mark registers live on entry of non-fallthrough
3436 blocks as used by the jump.
3437 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
3438 Mark new parameters as unused.
3439
9bed2f0d
AP
34402011-07-14 Andrew Pinski <pinskia@gmail.com>
3441
3442 PR tree-opt/49309
3443 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
3444 Use fold_build2_loc instead of build2.
3445 Use the correct type for the new tree.
3446
1f88caaa
BS
34472011-07-14 Bernd Schmidt <bernds@codesourcery.com>
3448
3449 PR rtl-optimization/11320
3450 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
3451 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
3452
d772f97c 34532011-07-14 Georg-Johann Lay <avr@gjlay.de>
1f88caaa 3454
d772f97c
GJL
3455 PR target/49487
3456 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
3457 of REG.
3458 (*rotw<mode>): Use const_int_operand for operand2.
3459 Use match_scatch for operand3.
3460 (*rotb<mode>): Ditto
3461 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
3462
1a5d20a4
RG
34632011-07-14 Richard Guenther <rguenther@suse.de>
3464
3465 PR tree-optimization/49651
3466 * tree-ssa-structalias.c (get_constraint_for_1): Properly
3467 handle dereferences with subvariables.
3468
5fbcc0ed
RG
34692011-07-14 Richard Guenther <rguenther@suse.de>
3470
3471 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
3472 (fold_stmt_1): Do it here directly on gimple and as a first thing.
3473
fbf3fee2
RG
34742011-07-14 Richard Guenther <rguenther@suse.de>
3475
3476 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
3477 not bool_var when folding bool_var != 1 or bool_var == 0.
3478
b953c2b8
BS
34792011-07-14 Bernd Schmidt <bernds@codesourcery.com>
3480
3481 * haifa-sched.c (schedule_insns): Remove outdated comment.
3482 (schedule_block): When computing a known value for TODO_SPEC,
3483 just set it rather than using logical operations.
3484 (try_ready): Likewise. Use a local variable rather than a
3485 pointer to TODO_SPEC. Reorder an if statement to move the
3486 easy case to the then block.
3487 * sched-deps.c (dep_spec_p): New static function.
3488 (update_dep): Use it to decide whether to call
3489 change_spec_dep_to_hard.
3490 (get_back_and_forw_lists): Use it.
3491 (sd_resolve_dep): Likewise.
3492 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
3493 (haifa_note_mem_dep): Likewise.
3494 (check_dep): Likewise.
3495 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
3496 (sched_free_deps): Free in two passes.
3497
1f098f07
RS
34982011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
3499
3500 PR middle-end/49736
3501 * expr.c (all_zeros_p): Undo bogus part of last change.
3502
73059910
MK
35032011-07-14 Matthias Klose <doko@ubuntu.com>
3504
3505 * doc/extend.texi (optimize attribute): Fix typo.
3506
bd5d002e
RG
35072011-07-14 Richard Guenther <rguenther@suse.de>
3508
3509 * gimplify.c (gimplify_expr): Only do required conversions.
3510
eb1dcdff
GJL
35112011-07-14 Georg-Johann Lay <avr@gjlay.de>
3512
3513 PR target/43746
3514 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
3515 i.e. use default_elf_select_section.
3516 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
3517 (READONLY_DATA_SECTION_ASM_OP): Remove.
3518 (TARGET_ASM_NAMED_SECTION): Move from here...
3519 * config/avr/avr.c: ...to here.
03126412 3520 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
eb1dcdff
GJL
3521 (avr_asm_named_section): Make static.
3522
d31fb329
RO
35232011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3524
3525 PR bootstrap/49739
03126412
UB
3526 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
3527 and crtfastmath.o for Linux/x86.
d31fb329 3528
26965010
BS
35292011-07-14 Bernd Schmidt <bernds@codesourcery.com>
3530
3531 * haifa-sched.c: Include "hashtab.h"
3532 (sched_no_dce): New global variable.
3533 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
3534 SHADOW_P): New macros.
3535 (last_clock_var, cycle_issued_insns): Move declarations.
3536 (must_backtrack): New static variable.
3537 (struct delay_pair): New structure.
3538 (delay_htab, delay_htab_i2): New static variables.
3539 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
3540 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
3541 functions.
3542 (dep_cost_1): If delay pairs exist, try to look up the insns and
3543 use the correct pair delay if we find them.
3544 (rank-for_schedule): Tweak priority for insns that must be scheduled
3545 soon to avoid backtracking.
3546 (queue_insn): Detect conditions which force backtracking.
3547 (ready_add): Likewise.
3548 (struct sched_block_state): Add member shadows_only_p.
3549 (struct haifa_save_data): New structure.
3550 (backtrack_queue): New static variable.
3551 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
3552 unschedule_insns_until, restore_last_backtrack_point,
3553 free_topmost_backtrack_point, free_backtrack_queue,
3554 estimate_insn_tick, estimate_shadow_tick): New functions.
3555 (prune_ready_list): New arg shadows_only_p. All callers changed.
3556 If true, remove everything that isn't SHADOW_P. Look up delay
03126412 3557 pairs and estimate ticks to avoid scheduling the first insn too early.
26965010
BS
3558 (verify_shadows): New function.
3559 (schedule_block): Add machinery to enable backtracking.
3560 (sched_init): Take sched_no_dce into account when setting
3561 DF_LR_RUN_DCE.
3562 (free_delay_pairs): New function.
3563 (init_h_i_d): Initialize INSN_EXACT_TICK.
3564 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
3565 * sched-deps.c (sd_unresolve_dep): New function.
3566 * sched-int. (struct haifa_sched_info): New fields save_state
3567 and restore_state.
3568 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
3569 feeds_backtrack_insn and shadow_p.
3570 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
3571 (sched_no_dce): Declare variable.
3572 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
3573 sd_unresolve_dep): Declare functions.
3574 * modulo-sched.c (sms_sched_info): Clear the two new fields.
3575 * sched-rgn.c (rgn_const_sched_info): Likewise.
3576 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3577 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
3578 (ebb_sched_info): Add them for the two new fields.
3579 (add_deps_for_risky_insns): Call add_delay_dependencies.
3580
1db75f6c
MM
35812011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3582
3583 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
3584 Rename -mr11.
3585 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
3586 (rs6000_call_indirect_aix): Ditto.
3587 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
3588 (call_indirect_aix<ptrsize>_internal): Ditto.
3589 (call_indirect_aix<ptrsize>_nor11): Ditto.
3590 (call_indirect_aix<ptrsize>_internal2): Ditto.
3591 (call_value_indirect_aix<ptrsize>): Ditto.
3592 (call_value_indirect_aix<ptrsize>_internal): Ditto.
3593 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3594 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3595 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
3596
e2995714
JM
35972011-07-13 Jason Merrill <jason@redhat.com>
3598
3599 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
3600
4dfe3ad5
UW
36012011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3602
3603 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
3604 * config/spu/spu.md ("clrsb<mode>2"): New expander.
3605
dddc6762
TS
36062011-07-13 Thomas Schwinge <thomas@schwinge.name>
3607
3608 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
3609 * configure: Regenerate.
3610
b4d80e56
UW
36112011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3612
3613 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
3614 (asm_file_start): Remove.
3615 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
3616 free_bb_for_insn around code that modifies insns before
3617 restarting df analysis.
3618
9e34e53f
RO
36192011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3620
3621 PR target/49541
03126412 3622 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
9e34e53f
RO
3623 (LINK_SPEC): ... here.
3624
51564684
BS
36252011-07-13 Bernd Schmidt <bernds@codesourcery.com>
3626
3627 * haifa-sched.c (struct sched_block_state): New.
3628 (schedule_block): Move some local variables into such a structure.
3629
b3fe1584
RO
36302011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3631
3632 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
3633 * config/i386/t-crtpc: Remove.
3634 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
3635 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
3636 tmake_file.
3637 (x86_64-*-darwin*): Likewise.
3638 (i[34567]86-*-linux*): Likewise.
3639 (x86_64-*-linux*): Likewise.
3640
3641 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
3642 Handle -mpc32, -mpc64, -mpc80.
3643
35d8090d
RO
36442011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3645
3646 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
3647 * config/alpha/t-crtfm: Remove.
3648 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
3649 * config/i386/t-crtfm: Remove.
3650 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
3651 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
3652 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
3653 * config/sparc/t-crtfm: Remove.
3654
3655 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
3656 (alpha*-*-freebsd*): Likewise.
3657 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
3658 (x86_64-*-darwin*): Likewise.
3659 (i[34567]86-*-linux*): Likewise.
3660 (x86_64-*-linux*): Likewise.
3661 (x86_64-*-mingw*): Likewise.
3662 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
3663 (ia64*-*-freebsd*): Likewise.
3664 (ia64*-*-linux*): Likewise.
3665 (mips64*-*-linux*): Likewise.
3666 (mips*-*-linux*): Likewise.
3667 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
3668 (sparc64-*-linux*): Likewise.
3669 (sparc64-*-freebsd*): Likewise.
3670
e141542e
RO
36712011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3672
3673 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
3674 * config/darwin-crt3.c: Move to ../libgcc/config.
3675 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
3676 ($(T)crt3$(objext)): Remove.
3677 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
3678 ($(T)crt2$(objext)): Remove.
3679 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
3680 (powerpc64-*-darwin*): Likewise.
3681
72fbc381
L
36822011-07-13 H.J. Lu <hongjiu.lu@intel.com>
3683
03126412 3684 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
72fbc381
L
3685
3686 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
3687 (addsi_1_zext): This.
3688
727a65e6
BS
36892011-07-13 Bernd Schmidt <bernds@codesourcery.com>
3690
3691 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
3692 * doc/tm.texi: Regenerate.
73451ae7 3693 * target.def (mergeable_rodata_prefix): New defhookpod.
727a65e6
BS
3694 * varasm.c (mergeable_string_section, mergeable_constant_section):
3695 Use it. Allocate name with alloca.
3696
cb77b6cf
L
36972011-07-13 H.J. Lu <hongjiu.lu@intel.com>
3698
3699 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
3700
36fc3799
RS
37012011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
3702
3703 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
3704 overlap check.
3705
953d0c90
RS
37062011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
3707
3708 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
3709 (count_type_elements): Delete.
3710 (complete_ctor_at_level_p): Declare.
3711 * expr.c (flexible_array_member_p): New function, split out from...
3712 (count_type_elements): ...here. Make static. Replace allow_flexarr
3713 parameter with for_ctor_p. When for_ctor_p is true, return the
3714 number of elements that should appear in the top-level constructor,
3715 otherwise return an estimate of the number of scalars.
3716 (categorize_ctor_elements): Replace p_must_clear with p_complete.
3717 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
3718 (complete_ctor_at_level_p): New function, borrowing union logic
3719 from old categorize_ctor_elements_1.
3720 (mostly_zeros_p): Return true if the constructor is not complete.
3721 (all_zeros_p): Update call to categorize_ctor_elements.
3722 * gimplify.c (gimplify_init_constructor): Update call to
3723 categorize_ctor_elements. Don't call count_type_elements.
3724 Unconditionally prevent clearing for variable-sized types,
3725 otherwise rely on categorize_ctor_elements to detect
3726 incomplete initializers.
3727
9111c715
RG
37282011-07-13 Richard Guenther <rguenther@suse.de>
3729
3730 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
3731 the final type is integral.
3732
a19af9c4
BS
37332011-07-13 Bernd Schmidt <bernds@codesourcery.com>
3734
3735 * sched-int.h (struct _dep): Add member cost.
3736 (DEP_COST, UNKNOWN_DEP_COST): New macros.
3737 * sched-deps.c (init_dep_1): Initialize DEP_COST.
3738 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
3739 (sched_change_pattern): Reset it for dependent insns.
3740
2d1efe2d
RO
37412011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3742
3743 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
3744 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
3745 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
3746 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
3747 (CRT0_S, MCRT0_S): Remove.
3748 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
3749 Remove.
3750 (s-crt0): Remove.
3751 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
3752
e84a58ff
EB
37532011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3754
3755 * cse.c (insert_with_costs): Put semi-colon after empty loop body
3756 on the next line.
3757 * emit-rtl.c (push_to_sequence): Likewise.
3758 * haifa-sched.c (max_issue): Likewise.
3759 * matrix-reorg.c (add_allocation_site): Likewise.
3760 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3761 * reload.c (alternative_allows_const_pool_ref): Likewise.
3762 * sched-rgn.c (rgn_add_block): Likewise.
3763 (rgn_fix_recovery_cfg): Likewise.
3764 * tree.c (attribute_list_contained): Likewise.
3765
3a4ffde6
UB
37662011-07-12 Uros Bizjak <ubizjak@gmail.com>
3767
3768 * config/i386/i386.c: Tidy processor feature bitmasks.
3769 (m_P4_NOCONA): New.
3770
10b75750
AP
37712011-07-12 Andrew Pinski <pinskia@gmail.com>
3772
3773 PR rtl-opt/49474
3774 * cprop.c (find_implicit_sets): Correct the condition.
3775
4f42d714
RH
37762011-07-12 Richard Henderson <rth@redhat.com>
3777
3778 PR target/49713
3779 * dwarf2out.h (dwarf_frame_regnum): Remove.
3780 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
3781 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
3782 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
3783 (execute_dwarf2_frame): Initialize them.
3784 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
3785 users of the macros with the variables.
3786 (expand_builtin_dwarf_sp_column): Revert last change.
3787 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
3788 result of DWARF_FRAME_REGNUM into a local variable.
3789
3a5e4ad6
RH
37902011-07-12 Richard Henderson <rth@redhat.com>
3791
3792 PR target/49714
3793 * config/i386/i386.c (x86_output_mi_thunk): Use
3794 machopic_indirect_call_target instead of machopic_indirection_name
3795 directly.
3796
9e9bd455
LG
37972011-07-12 Laurent GUERBY <laurent@guerby.net>
3798 Eric Botcazou <ebotcazou@adacore.com>
3799
3800 * prefix.h: Wrap up in extern "C" block.
3801
4d652a18
HJ
38022011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
3803
3804 AMD bdver2 Enablement
3805 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
3806 (case ${target}): Add bdver2.
3807 * config/i386/driver-i386.c (host_detect_local_cpu): Let
3808 -march=native recognize bdver2 processors.
3809 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3810 bdver2 def_and_undef
3811 * config/i386/i386.c (struct processor_costs bdver2_cost): New
3812 bdver2 cost table.
3813 (m_BDVER2): New definition.
3814 (m_AMD_MULTIPLE): Includes m_BDVER2.
3815 (initial_ix86_tune_features): Add bdver2 tuning.
3816 (processor_target_table): Add bdver2 entry.
3817 (static const char *const cpu_names): Add bdver2 entry.
3818 (ix86_option_override_internal): Add bdver2 instruction sets.
3819 (ix86_issue_rate): Add bdver2.
3820 (ix86_adjust_cost): Add bdver2.
3821 (has_dispatch): Add bdver2.
3822 * config/i386/i386.h (TARGET_BDVER2): New definition.
3823 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
3824 (enum processor_type): Add PROCESSOR_BDVER2.
3825 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
3826 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
3827 description.
3828
5756d08c
RH
38292011-07-12 Richard Henderson <rth@redhat.com>
3830
3831 PR target/49714
3832 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
3833 destination address in memory on some paths.
3834
123148b5
BS
38352011-07-12 Bernd Schmidt <bernds@codesourcery.com>
3836
3837 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
3838 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
3839 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
3840 * function.c (locate_and_pad_parm): Take it into account.
3841 * target.def (function_arg_round_boundary): New hook.
3842 * targhooks.c (default_function_arg_round_boundary): New function.
3843 * targhooks.h (default_function_arg_round_boundary): Declare.
3844 * doc/tm.texi: Regenerate.
3845
b7a83ad8
RG
38462011-07-12 Richard Guenther <rguenther@suse.de>
3847
3848 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
3849 Do not perform no-op changes.
3850
12c4ecb1
RS
38512011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
3852
3853 * config/arm/predicates.md (neon_struct_operand): Make a normal
3854 predicate.
3855 (neon_struct_or_register_operand): New predicate.
3856 * config/arm/neon.md (movmisalign<mode>): Replace predicates
3857 with neon_struct_or_register_operand.
3858 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
3859 neon_struct_operand instead of memory_operand.
3860
ab079773
MJ
38612011-07-12 Martin Jambor <mjambor@suse.cz>
3862
3863 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
3864 * cgraph.c (cgraph_get_node_or_alias): Removed.
3865 (change_decl_assembler_name): Changed all calls to
3866 cgraph_get_node_or_alias to a call to cgraph_get_node.
3867 (cgraph_make_decl_local): Likewise.
3868 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
3869 * varasm.c (default_binds_local_p_1): Likewise.
3870 (decl_binds_to_current_def_p): Likewise.
3871
d5fed62d
JJ
38722011-07-12 Jakub Jelinek <jakub@redhat.com>
3873
3874 PR tree-optimization/49712
3875 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
3876
c0b6224a
BS
38772011-07-11 Bernd Schmidt <bernds@codesourcery.com>
3878
3879 * genautomata.c (add_arc): Return void. All callers changed.
3880 (make_automaton): Remove dead code.
3881
7263c6d7
RH
38822011-07-11 Richard Henderson <rth@redhat.com>
3883
3884 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
3885 (DW_FRAME_POINTER_REGNUM): New.
3886 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
3887 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
3888 (dwf_regno): New.
3889 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
3890 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
3891 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
3892 Use it.
3893 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
3894 * dwarf2out.h (dwarf_frame_regnum): New.
3895 (struct cfa_loc): Document the domain of the reg member.
3896
f9610d20
UB
38972011-07-11 Uros Bizjak <ubizjak@gmail.com>
3898
3899 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
3900 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
3901
96ae7458
JJ
39022011-07-11 Jakub Jelinek <jakub@redhat.com>
3903
3904 PR debug/49676
3905 * dwarf2out.c (int_shift_loc_descriptor): New function.
3906 (int_loc_descriptor): If shorter, emit i as
3907 (i >> shift), shift, DW_OP_shl for suitable shift value.
3908 Similarly, try to optimize large negative values using
3909 DW_OP_neg of a positive value if shorter.
3910 (size_of_int_shift_loc_descriptor): New function.
3911 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
3912 changes.
3913 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
3914 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
3915 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
3916 is shorter.
3917 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
3918 addend as added DW_OP_plus if it is shorter.
3919
feffaec4
RO
39202011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3921
3922 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
3923 (DTORS_SECTION_ASM_OP): Define.
3924
2d8d5935
RO
39252011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3926
3927 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
3928 * config/t-dfprules: Move to ../libgcc/config.
3929 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3930 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
3931 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
3932 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
3933 Likewise.
3934 (i[34567]86-*-cygwin*): Likewise.
3935 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3936 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
3937 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
3938 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
3939 D64PBIT_FUNCS, D128PBIT_FUNCS.
3940
dcc95c20
RG
39412011-07-11 Richard Guenther <rguenther@suse.de>
3942
3943 * tree-vrp.c (simplify_conversion_using_ranges): Manually
3944 translate the source value-range through the conversion chain.
3945
28164eed
RS
39462011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
3947
3948 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
3949
f3054223
AL
39502011-07-11 Arthur Loiret <aloiret@debian.org>
3951
3952 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
3953 a bi-arch compiler defaulting to 31-bit. In this case:
3954 (tmake_file): Add s390/t-linux64.
3955 * doc/install.texi: Add s390-linux to the list of targets supporting
3956 --enable-targets=all.
3957
bd5ab709
AL
39582011-07-11 Arthur Loiret <aloiret@debian.org>
3959 Matthias Klose <doko@debian.org>
3960
3961 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
3962 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
3963 (tm_file): Add mips/linux64.h.
3964 (tmake_file): Add mips/t-linux64.
3965 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3966 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
3967 instead of hardcoded mabi=n32.
3968 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3969 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3970 convention.
3971
d3b7e946
AK
39722011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3973
3974 * passes.c (init_optimization_passes): Add invariant motion pass
3975 after induction variable optimization.
3976
7e4ec472 39772011-07-11 Georg-Johann Lay <avr@gjlay.de>
f9610d20 3978
7e4ec472
GJL
3979 PR target/39633
3980 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
3981 offsets 1..5 set cc0 in a usable way.
3982
0e65e631
RG
39832011-07-11 Romain Geissler <romain.geissler@gmail.com>
3984
3985 * tree.h (call_expr_arg): Remove.
3986 (call_expr_argp): Likewise.
3987
18970372
EB
39882011-07-11 Eric Botcazou <ebotcazou@adacore.com>
3989
3990 * config/sparc/sparc.md (save_register_window_1): Rename to...
3991 (window_save): ...this.
3992 * config/sparc/sparc.c (emit_save_register_window): Rename to...
3993 (emit_window_save): ...this.
3994 (sparc_expand_prologue): Adjust to above renaming.
3995
9e419e38
L
39962011-07-10 H.J. Lu <hongjiu.lu@intel.com>
3997
3998 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
3999 of movabs for x32.
4000
3db72de3
RH
40012011-07-10 Richard Henderson <rth@redhat.com>
4002
4003 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
4004 run final, instead of emitting text directly.
4005
a1f91bca
L
40062011-07-10 H.J. Lu <hongjiu.lu@intel.com>
4007
4008 * config/i386/i386.c (ix86_option_override_internal): Turn on
4009 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
4010 small PIC models for TARGET_X32.
4011
a50023f9
HPN
40122011-07-10 Hans-Peter Nilsson <hp@axis.com>
4013
9a0b29f0
HPN
4014 PR target/49684
4015 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
4016 $(LIBGCC2_CFLAGS).
4017
a50023f9
HPN
4018 PR bootstrap/49680
4019 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
4020 stray notes and debug insns by using prev_nonnote_nondebug_insn
4021 instead of PREV_INSN.
4022
948d330e
RH
40232011-07-09 Richard Henderson <rth@redhat.com>
4024
4025 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
4026 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
4027 * dwarf2out.c: ... here.
4028 (output_all_cfis): Remove.
4029 (dwarf2out_switch_text_section): Use output_cfis directly.
4030 (size_of_locs): Export.
4031 (output_loc_sequence, output_loc_sequence_raw): Export.
4032 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
4033 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
4034 output_cfa_loc_raw): Move to ...
4035 * dwarfcfi.c: ... here.
4036 * dwarf2out.h: Update decls.
4037
db42e39d
RH
40382011-07-09 Richard Henderson <rth@redhat.com>
4039
4040 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
4041 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
4042 * dwarf2cfi.c: ... here.
4043 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
4044 (DWARF_ROUND, DWARF_CIE_ID): Remove.
4045 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
4046 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
4047 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
4048
a8e5c0e7
RH
40492011-07-09 Richard Henderson <rth@redhat.com>
4050
4051 * dwarf2cfi.c (cie_return_save): New.
4052 (queue_reg_save): Use compare_reg_or_pc.
4053 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
4054 (dwarf2out_frame_debug_expr): Likewise.
4055 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
4056 (initial_return_save): Likewise.
4057 (execute_dwarf2_frame): Save and restore initial return save from
4058 the cie to the fde.
4059 * config/mips/mips.c (mips_frame_set): Remove special case for
4060 DWARF_FRAME_RETURN_COLUMN.
4061
4a8ee122
RH
40622011-07-09 Richard Henderson <rth@redhat.com>
4063
4064 * dwarf2cfi.c (lookup_cfa): Remove.
4065 (execute_dwarf2_frame): Assert queues are empty on entry.
4066 Setup initial cfa directly, not via lookup_cfa.
4067 Don't clear args_size state here.
4068
3edb53aa
RH
40692011-07-09 Richard Henderson <rth@redhat.com>
4070
4071 * dwarf2cfi.c (add_cfi_vec): New.
4072 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
4073 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
4074 (execute_dwarf2_frame): Set add_cfi_vec.
4075
ded49a7f
RH
40762011-07-09 Richard Henderson <rth@redhat.com>
4077
4078 * defaults.h (ASM_COMMENT_START): Move here...
4079 * dwarf2asm.c: ... from here.
4080 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
4081 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
4082 * varasm.c: Likewise.
4083
45fba6d1
RH
40842011-07-09 Richard Henderson <rth@redhat.com>
4085
4086 PR debug/49686
4087 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
4088 (create_cfi_notes): ... do it here instead.
4089
5b696ba2
JJ
40902011-07-09 Jakub Jelinek <jakub@redhat.com>
4091
4092 PR debug/49676
4093 * dwarf2out.c (size_of_int_loc_descriptor): New function.
4094 (address_of_int_loc_descriptor): Use it.
f9610d20 4095 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5b696ba2 4096
8662b2ba
RH
40972011-07-09 Richard Henderson <rth@redhat.com>
4098
4099 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
4100 (prologue, epilogue): New.
4101 (return, *rts): New.
4102 (blockage, setd, seti): New.
4103 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
4104 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
4105 (pdp11_saved_regno): New.
4106 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
4107 generate rtl instead of text.
4108 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
4109 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
4110 * config/pdp11/pdp11-protos.h: Update.
4111
28b21ebb
RH
41122011-07-09 Richard Henderson <rth@redhat.com>
4113
4114 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
4115 try to insert an rtl prologue here.
4116 (rs6000_output_function_epilogue): Similarly.
4117 * config/rs6000/rs6000.md (prologue): Emit a barrier to
4118 satisfy !TARGET_SCHED_PROLOG.
4119 (epilogue, sibcall_epilogue): Likewise.
4120
0a222ba7
EB
41212011-07-09 Eric Botcazou <ebotcazou@adacore.com>
4122
4123 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
4124 (FP_REG_P): Delete.
4125 (IN_OR_GLOBAL_P): Likewise.
4126
2fda8e14
JM
41272011-07-08 Jason Merrill <jason@redhat.com>
4128
4063e61b
JM
4129 PR c++/45437
4130 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
4131 compound assignment.
4132
2fda8e14
JM
4133 * cgraph.c (cgraph_add_to_same_comdat_group): New.
4134 * cgraph.h: Declare it.
4135 * ipa.c (function_and_variable_visibility): Make sure thunks
4136 have the right visibility.
4137
830f11fe
RH
41382011-07-08 Richard Henderson <rth@redhat.com>
4139
4140 PR bootstrap/49680
4141 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
4142 any tablejump vector.
4143
965b2557
RH
4144 PR bootstrap/49680
4145 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
4146 end of the prologue.
4147
70db9095
JJ
41482011-07-08 Jakub Jelinek <jakub@redhat.com>
4149
4150 PR target/49621
4151 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
f9610d20 4152 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
70db9095
JJ
4153 * config/rs6000/vector.md (vector_select_<mode>,
4154 vector_select_<mode>_uns): Change second operand of NE to
4155 CONST0_RTX (<MODE>mode) instead of const0_rtx.
4156 * config/rs6000/altivec.md (*altivec_vsel<mode>,
4157 *altivec_vsel<mode>_uns): Expect second operand of NE to be
4158 zero_constant of the corresponding vector mode.
4159 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
4160 Likewise.
4161
e92c5020
SP
41622011-07-08 Sebastian Pop <sebastian.pop@amd.com>
4163
4164 * graphite-dependences.c (build_alias_set_powerset): Remove
4165 continue from loop, add one more assert.
4166
3e4f8484 41672011-07-08 Georg-Johann Lay <avr@gjlay.de>
f9610d20 4168
3e4f8484
GJL
4169 PR target/46779
4170 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
4171 In particular, allow 8-bit values in r28 and r29.
4172 (avr_hard_regno_scratch_ok): Disallow any register that might be
4173 part of the frame pointer.
4174 (avr_hard_regno_rename_ok): Same.
4175 (avr_legitimate_address_p): Don't allow SUBREGs.
4176
0094f21b
JB
41772011-07-08 Julian Brown <julian@codesourcery.com>
4178
4179 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
4180 big-endian mode.
4181 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
4182 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
4183 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
4184 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
4185 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
4186 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
4187 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
4188 registers in big-endian mode.
4189
9ae60101
BS
41902011-07-08 Bernd Schmidt <bernds@codesourcery.com>
4191
4192 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
4193 in terms of another.
4194 (write_attr_value): Write a cast if necessary.
4195
c0a6a1ef
BS
4196 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
4197 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
4198 (REG_WORDS_BIG_ENDIAN): Document.
4199 * doc/tm.texi: Regenerate.
4200 * reload.c (operands_match_p): Take it into account.
4201 (reload_adjust_reg_for_mode): Likewise.
4202 * rtlanal.c (subreg_get_info): Likewise.
4203
b862187a
RG
42042011-07-08 Richard Guenther <rguenther@suse.de>
4205
4206 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
4207 folding.
4208
e8e8c74b
KT
42092011-07-08 Kai Tietz <ktietz@redhat.com>
4210
4211 * fold-const.c (fold_truth_andor): Factored out truth_andor
4212 label from fold_binary as function.
4213 (fold_binary_loc): Replace truth_andor lable
4214 by function fold_truth_andor.
4215
6c3cb698
KY
42162011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
4217
4218 PR middle-end/49519
4219 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
4220 check if address is stored in register. If so - give up.
4221 (check_sibcall_argument_overlap_1): Do not perform check of
4222 overlapping when it is call to address.
4223
7d8d6d73 42242011-07-08 Georg-Johann Lay <avr@gjlay.de>
9ae60101 4225
7d8d6d73
GJL
4226 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
4227 of magic '31'.
4228
69660a70
BS
42292011-07-08 Bernd Schmidt <bernds@codesourcery.com>
4230
4231 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
4232 GET_MODE_BITSIZE where appropriate.
4233 (widen_leading, expand_parity, expand_ctz, expand_ffs,
4234 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
4235 expand_float, expand_fix): Likewise.
4236 * expr.c (convert_move, convert_modes, expand_expr_real_2,
4237 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
4238 * stor-layout.c (get_mode_bounds): Likewise.
4239 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
4240 Likewise.
4241 * convert.c (convert_to_integer): Likewise.
4242 * expmed.c (expand_shift_1): Likewise.
4243
86cdf393
BS
4244 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
4245 a bitsize.
4246
0d44736e
BS
4247 * optabs.c (expand_binop): Tighten conditions for doubleword
4248 expansions.
f9610d20 4249 (widen_bswap): Assert that mode bitsize and precision are the same.
0d44736e
BS
4250 * stor-layout.c (get_best_mode): Skip modes that have lower
4251 precision than bitsize.
4252 * recog.c (simplify_while_replacing): Assert that bitsize and
4253 precision are the same.
4254
2c50b2c3
RO
42552011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4256
4257 * Makefile.in (LIBGCOV): Remove.
4258 (libgcc.mvars): Remove LIBGCOV.
4259 * libgov.c: Move to ../libgcc.
4260
a039d7c2
RO
42612011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4262
4263 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
4264
e923ef41
MJ
42652011-07-08 Martin Jambor <mjambor@suse.cz>
4266
4267 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
4268 is too big for total scalarization.
4269
b709e189
RH
42702011-07-07 Richard Henderson <rth@redhat.com>
4271
4272 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
4273 (DBX_DEBUGGING_INFO): Undef.
4274
2867fa7c
RH
42752011-07-07 Richard Henderson <rth@redhat.com>
4276
4277 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
4278 Handle some opcodes specially for debugging.
4279 * print-rtl.c: Include dwarf2out.h
4280 (print_rtx): Handle NOTE_INSN_CFI.
4281 * Makefile.in (print-rtl.o): Update.
4282
7644b3c7
RH
42832011-07-07 Richard Henderson <rth@redhat.com>
4284
4285 * tree-pass.h (pass_dwarf2_frame): Declare.
4286 * passes.c (init_optimization_passes): Add it.
4287 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
4288 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
4289 make static, do not call add_cfis_to_fde.
4290 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
4291 dwarf2out_frame_init): Merge into...
4292 (execute_dwarf2_frame): ... here. New function.
4293 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
4294 saved_do_cfi_asm to a tri-state variable.
4295 (gate_dwarf2_frame, pass_dwarf2_frame): New.
4296 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
4297 if it has yet to be done. Don't call dwarf2cfi_function_init.
4298 * dwarf2out.h, debug.h: Update decls.
4299 * final.c (final_start_function): Don't call
4300 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
4301 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
4302 * toplev.c (lang_dependent_init): Likewise.
4303
a518b996
RH
43042011-07-07 Richard Henderson <rth@redhat.com>
4305
4306 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
4307 FDE_TABLE_INCREMENT): Replace with...
4308 (fde_vec): ... this, a new vector.
4309 (current_fde): Remove. Replace all users with cfun->fde.
4310 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
4311 (size_of_aranges, dwarf2out_finish): Likewise.
4312 (dwarf2out_alloc_current_fde): Break out from ...
4313 (dwarf2out_begin_prologue): ... here.
4314 (dwarf2out_frame_init): Remove.
4315 * dwarf2cfi.c: Update all users of current_fde.
4316 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
4317 * dwarf2out.h: Update decls.
4318 (dw_fde_node): Add fde_index member.
4319 * function.h (struct function): Add fde member.
4320
89e25f95
BS
43212011-07-07 Bernd Schmidt <bernds@codesourcery.com>
4322 Richard Henderson <rth@redhat.com>
4323
4324 * dwarf2cfi.c (add_cfi): Remove.
4325 (dwarf2out_cfi_label): Remove force argument. Only generate the
4326 label name.
4327 (add_fde_cfi): Simplify the different code paths.
4328 (add_cie_cfi): New.
4329 (old_cfa, old_cfa_remember): New.
4330 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
4331 (last_reg_save_label): Remove.
4332 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
4333 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
4334 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
4335 dwarf2out_frame_debug_cfa_expression,
4336 dwarf2out_frame_debug_cfa_restore,
4337 dwarf2out_frame_debug_cfa_window_save,
4338 dwarf2out_frame_debug_expr): Remove label parameter.
4339 (cfi_label_required_p, add_cfis_to_fde): New.
4340 (dwarf2out_frame_debug_after_prologue): New.
4341 (dwarf2cfi_frame_init): Initialize old_cfa.
4342 (dwarf2out_frame_debug_restore_state): Likewise.
4343 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
4344 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
4345 * final.c (final_start_function): Call
4346 dwarf2out_frame_debug_after_prologue.
4347
bc5612ed
BS
43482011-07-07 Bernd Schmidt <bernds@codesourcery.com>
4349 Richard Henderson <rth@redhat.com>
4350
4351 * dwarf2cfi.c (cfi_insn): New.
4352 (dwarf2out_cfi_label): Don't emit cfi label here.
4353 (add_fde_cfi): Create a NOTE_INSN_CFI.
4354 (dwarf2out_frame_debug): Setup cfi_insn.
4355 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
4356 (dwarf2out_cfi_begin_epilogue): Make static.
4357 (dwarf2out_frame_debug_restore_state): Make static.
4358 * dwarf2out.c (output_cfi_directive): Make static.
4359 (dwarf2out_emit_cfi): New.
4360 * dwarf2out.h: Update.
4361 * final.c (final): Remove CFI notes.
4362 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
4363 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
4364 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
4365 * insn-notes.def (NOTE_INSN_CFI): New.
4366 (NOTE_INSN_CFI_LABEL): New.
4367 * rtl.h (union rtunion_def): Add rt_cfi member.
4368 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
4369
647a1567
RH
43702011-07-07 Richard Henderson <rth@redhat.com>
4371
4372 * dwarf2cfi.c: New file.
4373 * Makefile.in (OBJS): Add it.
4374 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
4375 * gengtype.c (open_base_files): Include dwarf2out.h.
4376 * coretypes.h (enum var_init_status): Move from ...
4377 * rtl.h: ... here.
4378 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
4379 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
4380 expand_builtin_dwarf_sp_column, init_return_column_size,
4381 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
4382 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
4383 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
4384 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
4385 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
4386 compute_barrier_args_size, dwarf2out_args_size,
4387 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
4388 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
4389 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
4390 queue_reg_save, dwarf2out_flush_queued_reg_saves,
4391 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
4392 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
4393 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
4394 dwarf2out_frame_debug_cfa_expression,
4395 dwarf2out_frame_debug_cfa_restore,
4396 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
4397 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
4398 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
4399 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
4400 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
4401 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
4402 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
4403 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
4404 dw_loc_descr_node): Move to dwarf2out.h.
4405 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
4406 mem_loc_descriptor): Export.
4407 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
4408 (dwarf2out_frame_init): Extract CIE generation code to
4409 dwarf2cfi_frame_init.
4410
b286d9ed
EB
44112011-07-07 Eric Botcazou <ebotcazou@adacore.com>
4412
4413 PR target/49660
4414 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
4415 MASK_V8PLUS, remove commented out flag and reorder.
4416
c4603e7c
JJ
44172011-07-07 Jakub Jelinek <jakub@redhat.com>
4418
4419 PR c/49644
4420 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
4421 one non-complex and one complex argument, call c_save_expr on both
4422 operands.
4423
81361831
MJ
44242011-07-07 Martin Jambor <mjambor@suse.cz>
4425
4426 PR middle-end/49495
4427 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
4428 (verify_cgraph_node): Some functinality moved to
4429 verify_edge_corresponds_to_fndecl, call it.
4430
1e4b2746
JM
44312011-07-07 Joseph Myers <joseph@codesourcery.com>
4432
4433 * config.gcc (*local*): Remove.
4434 * doc/install-old.texi: Don't mention local configurations.
4435
d7ff1e11
JJ
44362011-07-07 Jakub Jelinek <jakub@redhat.com>
4437
4438 PR debug/49522
4439 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
4440 referencing debug insns that have been reset.
4441 (dead_debug_insert_before): Don't assert reg is non-NULL,
4442 instead return immediately if it is NULL.
4443
2492731a
JM
44442011-07-07 Joseph Myers <joseph@codesourcery.com>
4445
f9610d20 4446 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2492731a 4447
9d9c740d
BS
44482011-07-07 Bernd Schmidt <bernds@codesourcery.com>
4449
4450 * hw-doloop.c: New file.
4451 * hw-doloop.h: New file.
4452 * Makefile.in (OBJS): Add hw-doloop.o.
4453 (hw-doloop.o): New rule.
4454 ($(obj_out_file)): Add hw-doloop.h dependency.
4455 * config/bfin/bfin.c: Include "hw-doloop.h".
4456 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
4457 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
4458 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
4459 type changed to hwloop_info. Return bool, true if the loop was
4460 successfully optimized. Remove code that was moved to
4461 hw-doloop.c, and adjust other parts.
4462 (hwloop_fail): New static function, containing parts that used
4463 to be in bfin_optimize_loop.
4464 (bfin_discover_loop, bfin_discover_loops, free_loops,
4465 bfin_reorder_loops): Remove.
4466 (hwloop_pattern_reg): New static function.
4467 (bfin_doloop_hooks): New variable.
4468 (bfin_reorg_loops): Remove most code, call reorg_loops.
4469 * config/bfin/bfin.md (doloop_end splitter): Also enable if
4470 loop counter is a memory_operand.
4471
f0ea7581
L
44722011-07-07 H.J. Lu <hongjiu.lu@intel.com>
4473
f9610d20 4474 * config.gcc: Support --with-multilib-list for x86 Linux targets.
f0ea7581
L
4475
4476 * configure.ac: Mention x86-64 for --with-multilib-list.
4477 * configure: Regenerated.
4478
4479 * config/i386/gnu-user64.h (SPEC_64): Support x32.
4480 (SPEC_32): Likewise.
4481 (ASM_SPEC): Likewise.
4482 (LINK_SPEC): Likewise.
4483 (TARGET_THREAD_SSP_OFFSET): Likewise.
4484 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
4485 (SPEC_X32): New.
4486
4487 * config/i386/i386.h (TARGET_X32): New.
4488 (TARGET_LP64): New.
4489 (LONG_TYPE_SIZE): Likewise.
4490 (POINTER_SIZE): Likewise.
4491 (POINTERS_EXTEND_UNSIGNED): Likewise.
4492 (OPT_ARCH64): Support x32.
4493 (OPT_ARCH32): Likewise.
4494
4495 * config/i386/i386.opt (mx32): New.
4496
4497 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
4498 (GLIBC_DYNAMIC_LINKERX32): Likewise.
4499 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
4500 (GLIBC_DYNAMIC_LINKERX32): Likewise.
4501
4502 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
4503 (BIONIC_DYNAMIC_LINKERX32): Likewise.
4504 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
4505
4506 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
4507
f9610d20 4508 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
f0ea7581
L
4509
4510 * doc/invoke.texi: Document -mx32.
4511
38460025
RS
45122011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
4513
4514 * doc/invoke.texi (mwords-little-endian): Deprecate.
4515 * config/arm/arm.opt (mwords-little-endian): Likewise.
4516 * config/arm/arm.c (arm_option_override): Warn about the deprecation
4517 of -mwords-little-endian.
4518
3f125532
RS
45192011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
4520
4521 * reload1.c (choose_reload_regs): Use mode sizes to check whether
4522 an old reload register completely defines the required value.
4523
bbc210ab
RG
45242011-07-07 Richard Guenther <rguenther@suse.de>
4525
4526 * fold-const.c (fold_unary_loc): Do not strip sign-changes
4527 for NEGATE_EXPR.
4528
29c5134a
RG
45292011-07-07 Richard Guenther <rguenther@suse.de>
4530
4531 * tree-vrp.c (simplify_conversion_using_ranges): New function.
4532 (simplify_stmt_using_ranges): Call it.
4533
0816a42a
KT
45342011-07-07 Kai Tietz <ktietz@redhat.com>
4535
4536 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
4537 (lookup_logical_inverted_value): Likewise.
4538 (simplify_bitwise_binary_1): Likewise.
4539 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
4540
3ce9f090
JM
45412011-07-07 Joseph Myers <joseph@codesourcery.com>
4542
4543 * gcc.c (%[Spec]): Don't document.
4544 (struct spec_list): Update comment.
4545 (do_spec_1): Don't handle %[Spec].
4546 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
4547
41dfca87
JM
45482011-07-07 Joseph Myers <joseph@codesourcery.com>
4549
4550 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
4551 default based on TARGET_ASM_NAMED_SECTION.
4552 * common/common-target.def (have_named_sections): Default to true.
4553 * common/config/default-common.c: Don't include tm.h.
4554 * common/config/picochip/picochip-common.c
4555 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
4556 * common/config/m32c/m32c-common.c: Remove.
4557 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
f9610d20
UB
4558 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
4559 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
4560 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 4561 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
f9610d20
UB
4562 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
4563 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 4564
19c44640
JJ
45652011-07-07 Jakub Jelinek <jakub@redhat.com>
4566
4567 PR middle-end/49640
f9610d20
UB
4568 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
4569 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19c44640 4570
891a2e42
RO
45712011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4572
4573 PR libmudflap/49550
4574 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
4575
fbdd5d87
RO
45762011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4577
4578 PR target/39150
4579 * configure.ac (gcc_cv_as_hidden): Also accept
4580 x86_64-*-solaris2.1[0-9]*.
4581 (gcc_cv_as_cfi_directive): Likewise.
4582 (gcc_cv_as_comdat_group_group): Likewise.
4583 (set_have_as_tls): Likewise.
4584 * configure: Regenerate.
4585 * config.gcc (i[34567]86-*-solaris2*): Also handle
4586 x86_64-*-solaris2.1[0-9]*.
4587 * config.host (i[34567]86-*-solaris2*): Likewise.
4588 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
4589 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
4590 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
4591 (TARGET_LD_EMULATION): Use it.
4592 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
4593 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
4594 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
4595 (ASM_CPU64_DEFAULT_SPEC): Define.
4596 (ASM_CPU_SPEC): Use %(asm_cpu_default).
4597 (ASM_SPEC): Redefine.
4598 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
4599 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
f9610d20 4600 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
fbdd5d87
RO
4601 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
4602 configuration.
4603 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
4604
fcf7471a
RO
46052011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4606
4607 * config/sol2.h (ASM_SPEC): Split into ...
4608 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
4609 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
4610 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
4611 (ASM_SPEC): Use ASM_SPEC_BASE.
4612 * config/sparc/sol2.h (ASM_SPEC): Redefine.
4613
1e6a67d1 46142011-07-07 Georg-Johann Lay <avr@gjlay.de>
f9610d20 4615
1e6a67d1
GJL
4616 * config/avr/avr.md (*reload_insi): Change predicate #1 to
4617 const_int_operand. Ditto for peep2 producing this insn.
4618 Add argument to output_reload_insisf call.
4619 (*movsi,*movsf): Add argument to output_movsisf call.
4620 (*reload_insf): New insn and new peep2 to produce it.
4621 * config/avr/avr-protos.h (output_movsisf): Change prototype.
4622 (output_reload_insisf): Change prototype.
4623 * config/avr/avr.c (avr_asm_len): New function.
4624 (output_reload_insisf): Rewrite.
4625 (output_movsisf): Change prototype. output_reload_insisf for
4626 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
4627 (adjust_insn_length): Add argument to output_movsisf and
4628 output_reload_insisf call.
4629
6a4bdc79
BS
46302011-07-07 Bernd Schmidt <bernds@codesourcery.com>
4631
4632 * emit-rtl.c (paradoxical_subreg_p): New function.
4633 * rtl.h (paradoxical_subreg_p): Declare.
4634 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
4635 apply_distributive_law, simplify_comparison, simplify_set): Use it.
4636 * cse.c (record_jump_cond, cse_insn): Likewise.
4637 * expr.c (force_operand): Likewise.
4638 * rtlanal.c (num_sign_bit_copies1): Likewise.
4639 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
4640 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
4641 (push_reload): Use precision to check for paradoxical subregs.
4642 * expmed.c (extract_bit_field_1): Likewise.
4643
46c9550f
BS
4644 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
4645 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
4646 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
4647 simplify_set, simplify_logical, expand_compound_operation,
4648 make_extraction, force_to_mode, if_then_else_cond, extended_count,
4649 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
4650 record_value_for_reg): Likewise.
4651 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
4652 * simplify-rtx. c (simplify_unary_operation_1,
4653 simplify_binary_operation_1, simplify_const_relational_operation):
4654 Likewise.
4655
5511bc5a
BS
4656 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
4657 instead of GET_MODE_BITSIZE where appropriate.
4658 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
4659 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
4660 init_num_sign_bit_copies_in_rep): Likewise.
4661 * cse.c (fold_rtx, cse_insn): Likewise.
4662 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
4663 * simplify-rtx.c (simplify_unary_operation_1,
4664 simplify_const_unary_operation, simplify_binary_operation_1,
4665 simplify_const_binary_operation, simplify_ternary_operation,
4666 simplify_const_relational_operation, simplify_subreg): Likewise.
4667 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
4668 simplify_if_then_else, simplify_set, expand_compound_operation,
4669 expand_field_assignment, make_extraction, if_then_else_cond,
4670 make_compound_operation, force_to_mode, make_field_assignment,
4671 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
4672 extended_count, try_widen_shift_mode, simplify_shift_const_1,
4673 simplify_comparison, record_promoted_value, simplify_compare_const,
4674 record_dead_and_set_regs_1): Likewise.
4675
d58c1a38
BS
4676 Revert:
4677 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
4678 shift_truncation_mask hook instead of performing modulo by width.
4679 Compare against mode precision, not bitsize.
d58c1a38 4680 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 4681 Use shift_truncation_mask instead of constructing the value manually.
d58c1a38 4682
76594d53
MM
46832011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4684
4685 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
4686 declaration.
4687 (rs6000_save_toc_in_prologue_p): Ditto.
4688
4689 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
4690 up the static chain (r11) during indirect function calls.
4691 (-msave-toc-indirect): New undocumented debug switch.
4692
4693 * config/rs6000/rs6000.c (struct machine_function): Add
4694 save_toc_in_prologue field to note whether the prologue needs to
4695 save the TOC value in the reserved stack location.
4696 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
4697 to save the TOC in the prologue, do so.
4698 (rs6000_trampoline_init): Don't allow creating AIX style
4699 trampolines if -mno-r11 is in effect.
4700 (rs6000_call_indirect_aix): New function to create AIX style
4701 indirect calls, adding support for -mno-r11 to suppress loading
4702 the static chain, and saving the TOC in the prologue instead of
4703 the call body.
4704 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
4705 TOC in the prologue.
4706
4707 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
4708 register numbers.
4709 (TOC_REGNUM): Ditto.
4710 (STATIC_CHAIN_REGNUM): Ditto.
4711 (ARG_POINTER_REGNUM): Ditto.
4712 (SFP_REGNO): Delete, unused.
4713 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
4714 function descriptor offsets.
4715 (TOC_SAVE_OFFSET_64BIT): Ditto.
4716 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
4717 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
4718 (AIX_FUNC_DESC_SC_32BIT): Ditto.
4719 (AIX_FUNC_DESC_SC_64BIT): Ditto.
f9610d20
UB
4720 (ptrload): New mode attribute for the appropriate load of a pointer.
4721 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
76594d53
MM
4722 (call_indirect_aix64): Ditto.
4723 (call_value_indirect_aix32): Ditto.
4724 (call_value_indirect_aix64): Ditto.
4725 (call_indirect_nonlocal_aix32_internal): Ditto.
4726 (call_indirect_nonlocal_aix32): Ditto.
4727 (call_indirect_nonlocal_aix64_internal): Ditto.
4728 (call_indirect_nonlocal_aix64): Ditto.
4729 (call): Rewrite AIX indirect function calls. Add support for
4730 eliminating the static chain, and for moving the save of the TOC
4731 to the function prologue.
4732 (call_value): Ditto.
4733 (call_indirect_aix<ptrsize>): Ditto.
4734 (call_indirect_aix<ptrsize>_internal): Ditto.
4735 (call_indirect_aix<ptrsize>_internal2): Ditto.
4736 (call_indirect_aix<ptrsize>_nor11): Ditto.
4737 (call_value_indirect_aix<ptrsize>): Ditto.
4738 (call_value_indirect_aix<ptrsize>_internal): Ditto.
4739 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
4740 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
4741 (call_nonlocal_aix32): Relocate in the rs6000.md file.
4742 (call_nonlocal_aix64): Ditto.
4743
4744 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
4745 -mno-r11 documentation.
4746
49d6830d
JW
47472011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4748
4749 PR other/49658
4750 * doc/extend.texi (Compound Literals): Fix typo.
4751
c884924f
JG
47522011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
4753
f9610d20 4754 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
c884924f 4755
bf588455
BS
47562011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
4757
4758 * configure.ac (plugin-version.h): Generate
4759 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
4760 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
4761 macros.
4762
4763 * configure: Regenerate.
4764
4765 * doc/plugins.texi (Building GCC plugins): Mention
4766 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
4767
d0edd768
BS
47682011-07-06 Bernd Schmidt <bernds@codesourcery.com>
4769
4770 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
4771 * combine.c (make_extraction, gen_lowpart_or_truncate,
4772 apply_distributive_law, simplify_comparison,
4773 reg_truncated_to_mode, record_truncated_value): Use it.
4774 * cse.c (notreg_cost): Likewise.
4775 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4776 * expr.c (convert_move, convert_modes): Likewise.
4777 * optabs.c (expand_binop, expand_unop): Likewise.
4778 * postreload.c (move2add_last_label): Likewise.
4779 * regmove.c (optimize_reg_copy_3): Likewise.
4780 * rtlhooks.c (gen_lowpart_general): Likewise.
4781 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4782
e5cabdfb
JM
47832011-07-06 Joseph Myers <joseph@codesourcery.com>
4784
4785 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
4786
2d0c270f
BS
47872011-07-06 Bernd Schmidt <bernds@codesourcery.com>
4788
4789 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
4790 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
4791 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
4792 (simplify_const_unary_operation, simplify_binary_operation_1,
f9610d20
UB
4793 simplify_const_binary_operation, simplify_const_relational_operation):
4794 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2d0c270f
BS
4795 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
4796 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
4797 simplify_shift_const_1, simplify_comparison): Likewise.
4798 * expr.c (convert_modes): Likewise.
4799 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
f9610d20 4800 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2d0c270f
BS
4801 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
4802
f9c08345
BS
4803 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
4804
6d6c9525
RG
48052011-07-06 Richard Guenther <rguenther@suse.de>
4806
4807 PR tree-optimization/49645
4808 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
4809 register variables.
4810 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
4811 in type qualification here ...
4812 (copy_reference_ops_from_ref): ... not here.
4813 (vn_reference_lookup_3): ... or here.
4814 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
4815 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
4816
d1a6ec10
ILT
48172011-07-06 Ian Lance Taylor <iant@google.com>
4818
4819 * doc/install.texi (Configuration): It's
4820 --enable-gnu-indirect-function, not --enable-indirect-function.
4821
ff3e08af
BS
48222011-07-06 Bernd Schmidt <bernds@codesourcery.com>
4823
4824 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
4825 shift_truncation_mask hook instead of performing modulo by width.
4826 Compare against mode precision, not bitsize.
ff3e08af 4827 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 4828 Use shift_truncation_mask instead of constructing the value manually.
ff3e08af 4829
a369b639
L
48302011-07-06 H.J. Lu <hongjiu.lu@intel.com>
4831
4832 PR middle-end/47383
4833 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
4834 address computation and convert to address_mode if needed.
4835
1a072294
RG
48362011-07-06 Richard Guenther <rguenther@suse.de>
4837
4838 * tree.c (build_common_tree_nodes_2): Merge with
4839 build_common_tree_nodes.
4840 * tree.h (build_common_tree_nodes): Adjust prototype.
4841 (build_common_tree_nodes_2): Remove.
4842 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
4843 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
4844
f2c3a8ce
JJ
48452011-07-05 Jakub Jelinek <jakub@redhat.com>
4846
4847 PR tree-optimization/49618
4848 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
4849 t recurse on the decl.
4850 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
4851 return true if expr isn't known to be defined in current
4852 TU or some other LTO partition.
4853
3aa439ed
MM
48542011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4855
4856 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
4857 override CASE_VALUES_THRESHOLD.
4858
4859 * stmt.c (toplevel): Include params.h.
4860 (case_values_threshold): Use the --param case-values-threshold
4861 value if non-zero, otherwise use machine dependent value.
4862 (expand_case): Use case_values_threshold.
4863
4864 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
4865
4866 * doc/invoke.texi (--param case-values-threshold): Document.
4867
49956667
RH
48682011-07-05 Richard Henderson <rth@redhat.com>
4869
4870 * dwarf2out.c (dwarf2out_cfi_label): Make static.
4871 (dwarf2out_flush_queued_reg_saves): Make static.
4872 (dwarf2out_reg_save): Remove.
4873 (dwarf2out_return_save): Remove.
4874 (dwarf2out_return_reg): Remove.
4875 (dwarf2out_reg_save_reg): Remove.
4876 (dwarf2out_def_cfa): Merge into ...
4877 (dwarf2out_frame_init): ... here.
4878 * dwarf2out.h, tree.h: Remove declarations as necessary.
4879
9f2ff8e5
RH
48802011-07-05 Richard Henderson <rth@redhat.com>
4881
c2b40eba
RH
4882 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
4883 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
4884 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
4885 the alloc insn.
4886
7d3c6cd8
RH
4887 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
4888 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
4889 (process_epilogue): Don't call dwarf2out_def_cfa.
4890
5f740973
RH
4891 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
4892 indicate the return address save.
4893 (process_cfa_register): Likewise.
4894
a1880147
RH
4895 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
4896 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
4897
9f2ff8e5
RH
4898 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
4899 for ar.pfs save at alloc insn.
4900
ddc6e7d6
RH
49012011-07-05 Richard Henderson <rth@redhat.com>
4902
4903 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
4904 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
4905 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
4906 stack pointer save.
4907 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
4908 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
4909 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
4910 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
4911
a3515605
RH
49122011-07-05 Richard Henderson <rth@redhat.com>
4913
4914 * config/vax/vax.md (define_c_enum unspecv): New. Define the
4915 VUNSPEC_* constants here instead of via define_constants.
4916 (VUNSPEC_PEM): New constant.
4917 (procedure_entry_mask): New insn.
4918 (prologue): New expander.
4919 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
4920 (vax_expand_prologue): Rename from vax_output_function_prologue;
4921 emit rtl instead of text.
4922 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
4923 (print_operand): Add 'x' prefix.
4924
a7adbbcb
L
49252011-07-05 H.J. Lu <hongjiu.lu@intel.com>
4926
4927 PR middle-end/47715
4928 * calls.c (precompute_register_parameters): Promote the function
4929 argument before checking non-legitimate constant.
4930
cec11ec4
SP
49312011-07-05 Sebastian Pop <sebastian.pop@amd.com>
4932
4933 PR tree-optimization/47654
4934 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
4935 (lst_do_strip_mine_loop): Return an int.
4936 (lst_do_strip_mine): Same.
4937 (scop_do_strip_mine): Same.
4938 (scop_do_block): Loop blocking should strip-mine at least two loops.
4939 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
4940 (scop_do_interchange): Same.
4941 * graphite-poly.h (scop_do_interchange): Update declaration.
4942 (scop_do_strip_mine): Same.
4943
9b0d314a
SP
49442011-07-05 Sebastian Pop <sebastian.pop@amd.com>
4945
4946 * graphite-clast-to-gimple.c (precision_for_value): Removed.
4947 (precision_for_interval): Removed.
4948 (gcc_type_for_interval): Use mpz_sizeinbase.
4949
81d6d080
SP
49502011-07-05 Sebastian Pop <sebastian.pop@amd.com>
4951
4952 * graphite-ppl.h (value_max): Correct computation of max.
4953
369e3430
SP
49542011-07-05 Sebastian Pop <sebastian.pop@amd.com>
4955
4956 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
4957
fce5dddd
RG
49582011-07-05 Richard Guenther <rguenther@suse.de>
4959
4960 * c-decl.c (c_init_decl_processing): Defer building common
4961 tree nodes to c_common_nodes_and_builtins.
4962
12037899
RL
49632011-07-05 Razya Ladelsky <razya@il.ibm.com>
4964
4965 PR tree-optimization/49580
f9610d20 4966 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12037899 4967 the loop's number of iterations.
f9610d20
UB
4968 * tree-parloops.c (transform_to_exit_first_loop): Add the
4969 handling of the loop's number of iterations before the call
12037899 4970 to gimple_duplicate_sese_tail.
28b21ebb 4971 Insert the stmt caclculating the new rhs of the loop's
12037899
RL
4972 condition stmt to the preheader instead of iters_bb.
4973
509a31f8
L
49742011-07-05 H.J. Lu <hongjiu.lu@intel.com>
4975
4976 PR rtl-optimization/47449
4977 * fwprop.c (forward_propagate_subreg): Don't propagate hard
4978 register nor zero/sign extended hard register.
4979
39becbac
RG
49802011-07-05 Richard Guenther <rguenther@suse.de>
4981
4982 PR tree-optimization/49518
4983 PR tree-optimization/49628
4984 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
4985 irrelevant and invariant data-references.
4986 (vect_analyze_data_ref_access): For invariant loads clear the
4987 group association.
4988
15923c25
JJ
49892011-07-04 Jakub Jelinek <jakub@redhat.com>
4990
af421d9c
JJ
4991 PR rtl-optimization/49619
4992 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
4993 pass VOIDmode as op0_mode to recursive call, and return temp even
4994 when different from tor, just if it is not IOR of the original
4995 PLUS arguments.
4996
707f9919
JJ
4997 PR rtl-optimization/49472
4998 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
4999 negating MULT, negate the second operand instead of first.
5000 (simplify_binary_operation_1) <case MULT>: If one operand is
f9610d20
UB
5001 a NEG and the other is MULT, don't attempt to optimize by negation
5002 of the MULT operand if it only moves the NEG operation around.
707f9919 5003
15923c25
JJ
5004 PR debug/49602
5005 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
5006 get_current_def return value if it can't be trusted to be
5007 the current value of the variable in the current bb.
5008
0d5e0c1b
UB
50092011-07-04 Uros Bizjak <ubizjak@gmail.com>
5010
5011 PR target/49600
5012 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
5013 general register to memory for !TARGET_INTER_UNIT_MOVES.
5014
db297e20
GJL
50152011-07-04 Georg-Johann Lay <avr@gjlay.de>
5016
5017 PR target/44643
5018 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
5019 instead of TREE_READONLY.
5020
f451d14d
GJL
50212011-07-04 Georg-Johann Lay <avr@gjlay.de>
5022
5023 * doc/extend.texi (AVR Built-in Functions): Update documentation
5024 of __builtin_avr_fmul*.
0d5e0c1b 5025 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
5026 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
5027 * config/avr/avr.md (fmul): Rename to fmul_insn.
5028 (fmuls): Rename to fmuls_insn.
5029 (fmulsu): Rename to fmulsu_insn.
5030 (fmul,fmuls,fmulsu): New expander.
5031 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
5032 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
5033 * config/avr/libgcc.S (__fmul): New function.
5034 (__fmuls): New function.
5035 (__fmulsu,__fmulsu_exit): New function.
5036
30f1e6de
RG
50372011-07-04 Richard Guenther <rguenther@suse.de>
5038
5039 PR tree-optimization/49615
5040 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
5041 basic-block index check.
5042
6dab9931
GJL
50432011-07-04 Georg-Johann Lay <avr@gjlay.de>
5044
5045 * longlong.h (count_leading_zeros, count_trailing_zeros,
5046 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
5047 resp. 64.
5048
b5066d8b
IR
50492011-07-03 Ira Rosen <ira.rosen@linaro.org>
5050
5051 PR tree-optimization/49610
5052 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
5053 a basic block.
5054
bc712852
EB
50552011-07-02 Eric Botcazou <ebotcazou@adacore.com>
5056 Olivier Hainque <hainque@adacore.com>
5057 Nicolas Setton <setton@adacore.com>
5058
5059 * tree.h (TYPE_ARTIFICIAL): New flag.
5060 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
5061 the DIE of the type if it is artificial.
5062 (gen_array_type_die): Likewise.
5063 (gen_enumeration_type_die): Likewise.
5064 (gen_struct_or_union_type_die): Likewise.
5065 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
5066 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
5067
8b1bdcc5
JJ
50682011-07-01 Jakub Jelinek <jakub@redhat.com>
5069
5070 * tree-object-size.c (pass_through_call): Handle
5071 BUILT_IN_ASSUME_ALIGNED.
5072
06e88d73
MJ
50732011-07-01 Martin Jambor <mjambor@suse.cz>
5074
5075 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
5076
6bbec3e1
L
50772011-07-01 H.J. Lu <hongjiu.lu@intel.com>
5078
5079 PR middle-end/48016
5080 * explow.c (update_nonlocal_goto_save_area): Use proper mode
5081 for stack save area.
5082 * function.c (expand_function_start): Likewise.
5083
e8fdf1cd
RG
50842011-07-01 Richard Guenther <rguenther@suse.de>
5085
5086 PR middle-end/49596
5087 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
5088 may have unknown refs.
5089
80d3dd38
KT
50902011-07-01 Kai Tietz <ktietz@redhat.com>
5091
5092 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
5093
179fc656
RO
50942011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5095
5096 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
5097 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
5098 (Specific, mips-sgi-irix6): Likewise.
5099
14a393a3
RO
51002011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5101
5102 PR libmudflap/49549
5103 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
5104
3aecd443
JJ
51052011-07-01 Jakub Jelinek <jakub@redhat.com>
5106
5107 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
5108 [idx]= and [idx1 ... idx2]= before initializers if needed for
5109 array initializers.
5110
7474f719
CL
51112011-07-01 Chen Liqin <liqin.gcc@gmail.com>
5112
5113 * config.gcc (score-*-elf): Remove score7.o.
5114 * config/score/t-score-elf: Likewise.
5115 * config/score/score.c: Merge score7 to score.c and
5116 remove forwarding functions.
5117 * config/score/score7.c: Deleted.
5118 * config/score/score7.h: Deleted.
5119
ab70d825
RG
51202011-07-01 Richard Guenther <rguenther@suse.de>
5121
5122 PR tree-optimization/49603
0d5e0c1b 5123 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 5124
1ac93f10
MJ
51252011-06-30 Martin Jambor <mjambor@suse.cz>
5126
5127 * tree-sra.c (struct access): Rename total_scalarization to
5128 grp_total_scalarization
5129 (completely_scalarize_var): New function.
5130 (sort_and_splice_var_accesses): Set total_scalarization in the
5131 representative access.
5132 (analyze_access_subtree): Propagate total scalarization accross the
5133 tree, no holes in totally scalarized trees, simplify coverage
5134 computation.
5135 (analyze_all_variable_accesses): Call completely_scalarize_var instead
5136 of completely_scalarize_record.
5137
97f309c3
RH
51382011-06-30 Richard Henderson <rth@redhat.com>
5139
5140 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
5141 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
5142 * config/i386/i386.c: Don't include dwarf2out.h.
5143 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
5144 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
5145 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
5146 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
5147 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
5148
ef284364
RH
51492011-06-30 Richard Henderson <rth@redhat.com>
5150
5151 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
5152 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
5153 * final.c (final_scan_insn): Look for it, and invoke
5154 dwarf2out_frame_debug before the insn if found.
5155
c8412f97
RH
51562011-06-30 Richard Henderson <rth@redhat.com>
5157
5158 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
5159 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
5160
e3f903d8
RH
51612011-06-30 Richard Henderson <rth@redhat.com>
5162
5163 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
5164 Define a vector of this type.
5165 (regs_saved_in_regs): Use a VEC.
5166 (num_regs_saved_in_regs): Remove.
5167 (compare_reg_or_pc): New.
5168 (record_reg_saved_in_reg): Split out from...
5169 (dwarf2out_flush_queued_reg_saves): ... here.
5170 (clobbers_queued_reg_save): Update for VEC.
5171 (reg_saved_in): Likewise.
5172 (dwarf2out_frame_debug_init): Likewise.
5173 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
5174 (dwarf2out_frame_debug_cfa_register): Likewise.
5175
e2c9010a
EB
51762011-06-30 Eric Botcazou <ebotcazou@adacore.com>
5177
5178 PR tree-optimization/49572
5179 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
5180 type of the RHS instead of that of the LHS for the expression type.
5181
dbb07bbc
EB
51822011-06-30 Eric Botcazou <ebotcazou@adacore.com>
5183
5184 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
5185 unconditionally.
5186
1565af08
RG
51872011-06-30 Richard Guenther <rguenther@suse.de>
5188
5189 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
5190 * tree-ssa-structalias.c (create_variable_info_for): Do not
5191 add initial constraints for non-var-decls. Properly handle
5192 globals in other ltrans partitions.
5193 (intra_create_variable_infos): Manually create constraints for
5194 the fake no-alias parameter.
5195 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
5196 and assert there are no clones.
5197
42373e0b
RG
51982011-06-30 Richard Guenther <rguenther@suse.de>
5199
5200 PR tree-optimization/46787
5201 * tree-data-ref.c (dr_address_invariant_p): Remove.
5202 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 5203 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
5204 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
5205 invariant loads.
5206
7aa62ea1
MJ
52072011-06-30 Martin Jambor <mjambor@suse.cz>
5208
5209 PR tree-optimization/49094
5210 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
5211 (build_accesses_from_assign): Use it.
5212
f60f32b3
JJ
52132011-06-30 Jakub Jelinek <jakub@redhat.com>
5214
d9048d16
JJ
5215 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
5216 handling of BUILT_IN_ASSUME_ALIGNED.
5217
f60f32b3
JJ
5218 PR debug/49364
5219 * dwarf2out.c (output_abbrev_section): Don't return early
5220 if abbrev_die_table_in_use is 1.
5221 (dwarf2out_finish): Instead don't call output_abbrev_section
5222 nor emit abbrev_section_label in that case.
5223
7cce15d4
NC
52242011-06-30 Nick Clifton <nickc@redhat.com>
5225
5226 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
5227 for the V850E.
5228
ce7e54ff
JJ
52292011-06-30 Jakub Jelinek <jakub@redhat.com>
5230
5231 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
5232 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
5233
83197f37
IR
52342011-06-30 Ira Rosen <ira.rosen@linaro.org>
5235
5236 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
5237 both pattern and original statements if necessary.
5238 (vect_transform_loop): Likewise.
5239 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
5240 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
5241 Mark the pattern statement only if the original statement doesn't
5242 have its own uses.
5243 (process_use): Call vect_mark_relevant with additional parameter.
5244 (vect_mark_stmts_to_be_vectorized): Likewise.
5245 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
5246 (vect_analyze_stmt): Handle both pattern and original statements
5247 if necessary.
5248 (vect_transform_stmt): Don't store vectorized pattern statement
5249 in the original statement.
5250 (vect_is_simple_use_1): Use related pattern statement only if the
5251 original statement is irrelevant.
5252 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
5253
dbb07bbc 52542011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 5255
dbb07bbc
EB
5256 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
5257 option.
5258 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
5259 entry.
5c0d88e6
CF
5260 (TARGET_AVX128_OPTIMAL): New definition.
5261 * config/i386/i386.c (initial_ix86_tune_features): Initialize
5262 X86_TUNE_AVX128_OPTIMAL entry.
5263 (ix86_option_override_internal): Enable the generation
5264 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
5265 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
5266 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
5267
931050d0
EB
52682011-06-29 Eric Botcazou <ebotcazou@adacore.com>
5269
5270 PR tree-optimization/49539
5271 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
5272 names by means of stmt_references_abnormal_ssa_name.
5273 (associate_plusminus): Call can_propagate_from before propagating
5274 from definition statements.
5275 (ssa_forward_propagate_and_combine): Remove superfluous newline.
5276
dfedbe40
RG
52772011-06-29 Richard Guenther <rguenther@suse.de>
5278
5279 * doc/invoke.texi: Document -scev dump modifier.
5280 * tree-pass.h (TDF_SCEV): New dump flag.
5281 * tree-dump.c (dump_option_value_in): Add scev.
5282 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
5283 * tree-scalar-evolution.c: Likewise.
5284
3a86cfeb
NS
52852011-06-29 Nathan Sidwell <nathan@codesourcery.com>
5286
5287 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
5288 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
5289 (__gnu_unwind_pr_common): Reconstruct additional indirection
5290 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 5291
f3678bfb
UW
52922011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5293
5294 PR rtl-optimization/49114
5295 * reload.c (struct replacement): Remove SUBREG_LOC member.
5296 (push_reload): Do not set it.
5297 (push_replacement): Likewise.
5298 (subst_reload): Remove dead code.
5299 (copy_replacements): Remove assertion.
5300 (copy_replacements_1): Do not handle SUBREG_LOC.
5301 (move_replacements): Likewise.
5302 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
5303 Detect subregs via recursive descent instead of via SUBREG_LOC.
5304
433ba0a5 53052011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 5306
433ba0a5
GJL
5307 * config/avr/avr.c (avr_encode_section_info): Dispatch to
5308 default_encode_section_info.
5309
73f6eabc
RS
53102011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
5311
5312 PR tree-optimization/49545
5313 * builtins.c (get_object_alignment_1): Update function comment.
5314 Do not use DECL_ALIGN for functions, but test
5315 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
5316 * fold-const.c (get_pointer_modulus_and_residue): Don't check
5317 for functions here.
5318 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
5319
a0f33d3a
JJ
53202011-06-29 Jakub Jelinek <jakub@redhat.com>
5321
5322 PR debug/49567
0d5e0c1b
UB
5323 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
5324 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 5325
946c8b23 53262011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 5327
946c8b23 5328 PR target/34734
0d5e0c1b 5329 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
5330 about uninitialized data attributed 'progmem' from here...
5331 (avr_encode_section_info): ...to this new function.
5332 (TARGET_ENCODE_SECTION_INFO): New define.
5333 (avr_section_type_flags): For data in ".progmem.data", remove
5334 section flag SECTION_WRITE.
5335
9a63dee4 53362011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 5337
9a63dee4
GJL
5338 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
5339 _xmulhisi3_exit.
5340 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
5341 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
5342 (__umulhisi3): Ditto.
5343 * config/avr/avr.md (mulhisi3): New insn expender.
5344 (umulhisi3): New insn expender.
5345 (*mulhisi3_call): New insn.
5346 (*umulhisi3_call): New insn.
5347
4374ce45
JM
53482011-06-28 Joseph Myers <joseph@codesourcery.com>
5349
5350 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
5351
94759030
RH
53522011-06-28 Richard Henderson <rth@redhat.com>
5353
5354 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
5355 all code and arguments that handled pushes. Update all callers.
5356
d018b46e
RH
53572011-06-28 Richard Henderson <rth@redhat.com>
5358
5359 * config/arm/arm.c (arm_output_function_prologue): Don't call
5360 thumb1_output_function_prologue.
5361 (arm_expand_prologue): Avoid dead store.
5362 (number_of_first_bit_set): Use ctz_hwi.
5363 (thumb1_emit_multi_reg_push): New.
5364 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
5365 to emit the entire prologue as rtl.
5366 (thumb1_output_interwork): Split out from
5367 thumb1_output_function_prologue.
5368 (thumb1_output_function_prologue): Remove.
5369 (arm_attr_length_push_multi): Handle thumb1.
5370 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
5371 (prologue_thumb1_interwork): New.
5372 (*push_multi): Allow thumb1; use push_mult_memory_operand.
5373 * config/arm/predicates.md (push_mult_memory_operand): New.
5374
97269a23
EB
53752011-06-28 Eric Botcazou <ebotcazou@adacore.com>
5376
5377 * config/sparc/sync.md (*stbar): Delete.
5378 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
5379
4a9206ce
EB
53802011-06-28 Eric Botcazou <ebotcazou@adacore.com>
5381
5382 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
5383
6138f9bd
RO
53842011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5385
5386 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
5387 (TARGET_64BIT_DEFAULT): Define.
5388 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
5389 of tm_file.
5390 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
5391
a7d0d30f
JM
53922011-06-28 Joseph Myers <joseph@codesourcery.com>
5393
5394 * common.opt (in_lto_p): New Variable entry.
5395 * flags.h (in_lto_p): Move to common.opt.
5396 * gcc.c: Include params.h.
5397 (set_option_handlers): Also use common_handle_option and
5398 target_handle_option.
0d5e0c1b 5399 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
5400 * opts.c (debug_type_names): Move from toplev.c.
5401 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
5402 (common_handle_option): Return early in the driver for some options.
5403 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
5404 opts pointer.
a7d0d30f
JM
5405 * toplev.c (in_lto_p): Move to common.opt.
5406 (debug_type_names): Move to opts.c.
5407 * Makefile.in (OBJS): Remove opts.o.
5408 (OBJS-libcommon-target): Add opts.o.
5409 (gcc.o): Update dependencies.
5410
420863a9
KT
54112011-06-28 Kai Tietz <ktietz@redhat.com>
5412
0d5e0c1b 5413 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 5414
0498a2be
RR
54152011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5416
5417 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
5418 with '=' constraint modifier.
5419 (*divdf3_vfp): Likewise.
5420 ("*mulsf3_vfp"): Likewise.
5421 ("*muldf3_vfp"): Likewise.
5422 ("*mulsf3negsf_vfp"): Likewise.
5423 ("*muldf3negdf_vfp"): Likewise.
5424
4a68b724
NC
54252011-06-28 Nick Clifton <nickc@redhat.com>
5426
5427 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
5428 relaxation when performing an incremental link.
5429
72a32729
KT
54302011-06-28 Kai Tietz <ktietz@redhat.com>
5431
5432 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
5433 within BB from last to first.
5434
88a00ef7
JM
54352011-06-28 Joseph Myers <joseph@codesourcery.com>
5436
5437 * genattr-common.c: New. Based on genattr.c.
5438 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
5439 (MOSTLYCLEANFILES): Add insn-attr-common.h.
5440 (opts.o): Update dependencies.
5441 (.PRECIOUS): Add insn-attr-common.h.
5442 (simple_rtl_generated_h): Add insn-attr-common.h.
5443 (build/genattr-common.o): New.
5444 (genprogrtl): Add attr-common.
5445 * genattr.c (main): Include insn-attr-common.h. Don't generate
5446 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 5447 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 5448
880962ac
GJL
54492011-06-28 Georg-Johann Lay <avr@gjlay.de>
5450
4a68b724 5451 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 5452 avr-*-* and avr-*-rtems* targets.
4a68b724 5453
880962ac
GJL
5454 * config/avr/elf.h: New file.
5455 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
5456 (TARGET_ASM_SELECT_SECTION): Define.
5457 (INIT_SECTION_ASM_OP): Undefine.
5458 (FINI_SECTION_ASM_OP): Undefine.
5459 (READONLY_DATA_SECTION_ASM_OP): Undefine.
5460 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
5461 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
5462 * config/avr/avr.h:
5463 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
5464 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
5465 (MAX_OFILE_ALIGNMENT): Move to elf.h.
5466 (STRING_LIMIT): Move to elf.h.
5467 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
5468 (ASM_DECLARE_OBJECT_NAME): Remove.
5469 (ESCAPES): Remove.
5470 (ASM_OUTPUT_SKIP): Remove.
5471 (DWARF2_DEBUGGING_INFO): Remove.
5472 (OBJECT_FORMAT_ELF): Remove.
5473 (USER_LABEL_PREFIX): Remove.
5474 (ASM_OUTPUT_EXTERNAL): Remove.
5475 (ASM_OUTPUT_ASCII): Remove.
5476 (TYPE_ASM_OP): Remove.
5477 (SIZE_ASM_OP): Remove.
5478 (WEAK_ASM_OP): Remove.
5479 (STRING_ASM_OP): Remove.
5480 (SET_ASM_OP): Remove.
5481 (ASM_WEAKEN_LABEL): Remove.
5482 (TYPE_OPERAND_FMT): Remove.
5483 (ASM_DECLARE_FUNCTION_SIZE): Remove.
5484 (ASM_FINISH_DECLARE_OBJECT): Remove.
5485 (NO_DOLLAR_IN_LABEL): Remove.
5486 (ASM_GENERATE_INTERNAL_LABEL): Remove.
5487 (ASM_OUTPUT_CASE_LABEL): Remove.
5488 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
5489 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
5490 (gas_output_ascii): Remove.
5491 (gas_output_limited_string): Remove.
5492 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
5493 * config/avr/avr-protos.h
5494 (gas_output_ascii): Remove prototye.
5495 (gas_output_limited_string): Remove prototype.
5496
a1b5eb93
RE
54972011-06-27 Richard Earnshaw <rearnsha@arm.com>
5498
5499 PR target/48637
5500 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
5501 asm operands.
5502
310e71a8
JH
55032011-06-27 Jan Hubicka <jh@suse.cz>
5504
4a9206ce
EB
5505 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
5506 node instead of references in node.
310e71a8 5507
171da07a
RH
55082011-06-27 Richard Henderson <rth@redhat.com>
5509
5510 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
5511 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
5512 inside ifdef.
5513
dc2a58da
JJ
55142011-06-27 Jakub Jelinek <jakub@redhat.com>
5515
56300785
JJ
5516 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
5517
45d439ac
JJ
5518 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
5519 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
5520 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
5521 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
5522 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
5523 (evaluate_stmt, execute_fold_all_builtins): Handle
5524 BUILT_IN_ASSUME_ALIGNED.
5525 * tree-ssa-dce.c (propagate_necessity): Likewise.
5526 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
5527 call_may_clobber_ref_p_1): Likewise.
5528 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
5529 (expand_builtin_assume_aligned): New function.
5530 * doc/extend.texi (__builtin_assume_aligned): Document.
5531
dc2a58da
JJ
5532 PR debug/49544
5533 * cselib.c (promote_debug_loc): If cselib_preserve_constants
5534 and l has two DEBUG_INSN owned locs instead of just one, adjust
5535 the second location's setting_insn too.
5536
0d72f628
RO
55372011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5538
5539 PR libmudflap/38738
5540 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
5541
bebd619e
NC
55422011-06-27 Nick Clifton <nickc@redhat.com>
5543
0d5e0c1b
UB
5544 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
5545 bit position of highest bit set into a count of the high zero bits.
bebd619e 5546
353b39fa
EB
55472011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5548
5549 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
5550
a7af037b
EB
55512011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5552
5553 PR lto/48492
5554 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
5555 to a NULL parent.
5556
1c86160a
RG
55572011-06-27 Richard Guenther <rguenther@suse.de>
5558
5559 PR tree-optimization/49394
5560 * passes.c (execute_one_pass): Restore current_pass after
5561 applying IPA transforms.
5562
5da49a9d
KT
55632011-06-27 Kai Tietz <ktietz@redhat.com>
5564
5565 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
5566 out of type precision after operation.
0d5e0c1b
UB
5567 (find_bswap): Take for limit value the integer auto-promotion
5568 into account.
5da49a9d 5569
9242213f
EB
55702011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5571
5572 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
5573 forward scan as well.
5574
db8b22ef
TG
55752011-06-27 Tristan Gingold <gingold@adacore.com>
5576
5577 PR target/44241
5578 * config/vms/vms-protos.h: New file.
5579 * config/vms/vms-crtlmap.map: New file.
5580 * config/vms/vms.c: New file.
5581 * config/vms/make-crtlmap.awk: New file.
5582 * config/vms/vms-crtl.h: File removed.
5583 * config/vms/vms-crtl-64.h: File removed.
5584 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
5585 * config/alpha/vms64.h: Do not include vms-crtl-64.h
5586 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
5587 clear some builtins on VMS. Calls vms_patch_builtins.
5588 (avms_asm_output_external): Remove.
5589 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
5590 (struct crtl_name_spec): Remove
5591 (DO_CTRL_NAMES): Remove.
5592 * config/ia64/vms.h (struct crtl_name_spec): Remove
5593 (DO_CTRL_NAMES): Remove.
5594 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
5595 clear some builtins on VMS. Calls vms_patch_builtins.
5596 (ia64_asm_output_external): Remove DO_CRTL_NAME.
5597 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 5598 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 5599
b213221d
TG
56002011-06-27 Tristan Gingold <gingold@adacore.com>
5601
5602 * config/alpha/alpha.c (alpha_end_function): Always generate .end
5603 directive on VMS.
5604
157b9300
EB
56052011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5606
5607 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
5608 the function receives nonlocal gotos.
5609
ccbf5bb4
RG
56102011-06-27 Richard Guenther <rguenther@suse.de>
5611
5612 PR tree-optimization/49536
5613 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
5614 For non-scalar inner types use a scalar type according to
5615 the scalar inner mode.
5616
fe4cd14b
RG
56172011-06-27 Richard Guenther <rguenther@suse.de>
5618
5619 PR tree-optimization/49365
5620 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
5621
afc3f22f
RS
56222011-06-27 Richard Guenther <rguenther@suse.de>
5623
5624 PR tree-optimization/49169
5625 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
5626 the alignment of function decls.
5627
92590751 56282011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
5629
5630 PR target/47997
5631 * config/darwin.c (darwin_mergeable_string_section): Place string
5632 constants in '.cstring' rather than '.const' when CF/NSStrings are
5633 active.
5634
605354f3
EB
56352011-06-26 Eric Botcazou <ebotcazou@adacore.com>
5636
5637 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
5638 (emit_save_register_window): Likewise.
5639 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
5640 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
5641 Swap back %o7/%i7 in register naming.
5642
0e9197f5
IS
56432011-06-25 Iain Sandoe <iains@gcc.gnu.org>
5644
5645 PR driver/49371
5646 * config/darwin.c (darwin_override_options): Improve warning when
5647 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
5648 is given with fpie/fPIE.
5649 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
5650 * config/darwin9.h (PIE_SPEC): New.
53461199 5651
605354f3 56522011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
5653
5654 * timevar.c (timevar_print): Increase width for display of timevar
5655 name.
5656
f796c438
JJ
56572011-06-24 Jakub Jelinek <jakub@redhat.com>
5658
5659 PR c++/46400
5660 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
5661 instead of TYPE_CHAIN for chain_next for types.
5662
a7289eaf
RH
56632011-06-24 Richard Henderson <rth@redhat.com>
5664
5665 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
5666 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
5667 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
5668 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
5669 (sparc_flat_expand_prologue): Emit individual instructions
5670 instead of one of the above.
5671
c4b9a87e
ER
56722011-06-24 Easwaran Raman <eraman@google.com>
5673
5674 PR rtl-optimization/49429
5675 PR target/49454
5676 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
5677 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
5678 used to copy y into x.
5679 * calls.c (initialize_argument_information): Mark
5680 an argument addressable if it is passed by invisible reference.
5681 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
5682 if it is passed by reference.
5683
5ac6c59e
L
56842011-06-24 H.J. Lu <hongjiu.lu@intel.com>
5685
5686 PR rtl-optimization/49504
5687 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
5688 subtraction of a pointer in Pmode if pointers extend unsigned.
5689 (num_sign_bit_copies1): Likewise.
5ac6c59e 5690
b807e627
MJ
56912011-06-24 Martin Jambor <mjambor@suse.cz>
5692
5693 PR tree-optimizations/49516
5694 * tree-sra.c (sra_modify_assign): Choose the safe path for
5695 aggregate copies if we also did scalar replacements.
5696
9a1ea4b9
RR
56972011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5698
5699 PR target/49335
5700 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 5701 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 5702
949cfd0a
AK
57032011-06-24 Andi Kleen <ak@linux.intel.com>
5704
5705 * tree-sra.c (type_internals_preclude_sra_p): Add msg
5706 parameter. Split up ifs and report reason in *msg.
5707 (reject): Add.
5708 (find_var_candiate): Add msg variable.
5709 Split up ifs and report reason to reject.
5710 (find_param_candidates): Add msg variable.
5711 Pass msg to type_internals_preclude_sra_p.
5712
49e9c661 57132011-06-23 Jeff Law <law@redhat.com>
ad3577df 5714
b0c11403
JL
5715 PR middle-end/48770
5716 * reload.h (reload): Change to return a bool.
5717 * ira.c (ira): If requested by reload, run a fast DCE pass after
5718 reload has completed. Fix comment typo.
5719 * reload1.c (need_dce): New file scoped static.
5720 (reload): Set reload_completed here. Return whether or not a DCE
5721 pass after reload is needed.
5722 (delete_dead_insn): Set need_dce as needed.
5723
ad3577df
JL
5724 PR middle-end/49465
5725 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
5726 to detect threading through joiner block. If there was already
5727 an edge to the new target, then do not change the PHI nodes.
5728
7cf64710
JJ
57292011-06-23 Jakub Jelinek <jakub@redhat.com>
5730
5731 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
5732 get_pointer_alignment to see if base isn't sufficiently aligned.
5733
febb1302
JH
57342011-06-23 Jan Hubicka <jh@suse.cz>
5735
5736 PR tree-optimize/49373
5737 * tree-pass.h (all_late_ipa_passes): Declare.
5738 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
5739 (cgraph_optimize): Execute late passes; remove unreachable funcions
5740 after materialization.
5741 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
5742 LTOing.
febb1302
JH
5743 * passes.c (all_late_ipa_passes): Declare.
5744 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
5745 (init_optimization_passes): Move ipa_pta to late passes; schedule
5746 fixup_cfg at beggining of all_passes.
febb1302
JH
5747 (apply_ipa_transforms): New function.
5748 (execute_one_pass): When doing simple ipa pass, apply all transforms.
5749
4c77620d
JM
57502011-06-23 Joseph Myers <joseph@codesourcery.com>
5751
5752 * params.c: Include common/common-target.h. Don't include tm.h.
5753 (lang_independent_params): Move from toplev.c.
5754 (global_init_params): New.
5755 * params.h (global_init_params): Declare.
5756 * target.def (default_params): Move to common-target.def.
5757 * toplev.c (lang_independent_options): Remove.
5758 (lang_independent_params): Move to params.c.
5759 (general_init): Use global_init_params.
5760 * common/common-target.def (option_default_params): Move from
5761 target.def.
5762 * common/config/ia64/ia64-common.c: Include params.h.
5763 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5764 from ia64.c.
5765 * common/config/rs6000/rs6000-common.c: Include params.h.
5766 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5767 from rs6000.c.
5768 * common/config/sh/sh-common.c: Include params.h.
5769 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5770 from sh.c.
5771 * common/config/spu/spu-common.c: Include params.h.
5772 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5773 from spu.c.
5774 * config/ia64/ia64.c (ia64_option_default_params,
5775 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
5776 * config/rs6000/rs6000.c (rs6000_option_default_params,
5777 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
5778 * config/sh/sh.c (sh_option_default_params,
5779 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
5780 * config/spu/spu.c (spu_option_default_params,
5781 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
5782 * Makefile.in (OBJS): Remove params.o.
5783 (OBJS-libcommon-target): Add params.o.
5784 (params.o, $(common_out_object_file)): Update dependencies.
5785 * doc/tm.texi: Regenerate.
5786
6aad1e38
AM
57872011-06-23 Alan Modra <amodra@gmail.com>
5788
5789 PR bootstrap/49383
5790 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
5791 invocation for 2011-06-09 changes.
5792
4fb489e7
JJ
57932011-06-22 Jakub Jelinek <jakub@redhat.com>
5794
fb79f500
JJ
5795 PR libgomp/49490
5796 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
5797 use n ceil/ nthreads size for the first n % nthreads threads in the
5798 team instead of all threads except for the last few ones which
fb79f500
JJ
5799 get less work or none at all.
5800
4fb489e7
JJ
5801 PR debug/49496
5802 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
5803 uses.
5804
9c7c9f10
RG
58052011-06-22 Richard Guenther <rguenther@suse.de>
5806
5807 PR tree-optimization/49493
5808 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
5809 Refer to the alias target of variables.
5810 (associate_varinfo_to_alias_1): Remove.
5811 (ipa_pta_execute): Do not associate aliases with anything.
5812 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
5813 (cgraph_function_node): Likewise.
5814 (cgraph_function_or_thunk_node): Likewise.
5815 (varpool_variable_node): Likewise.
5816
7cf13d1f
NS
58172011-06-22 Nathan Sidwell <nathan@codesourcery.com>
5818
0d5e0c1b 5819 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
5820 * config.gcc (arm*-*-linux*): Default to gnu tls.
5821 (arm*-*-*): Add --with-tls option.
5822 (all_defaults): Add 'tls'.
5823
78a8eb4e
RH
58242011-06-22 Richard Henderson <rth@redhat.com>
5825
5826 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
5827 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
5828 (dwarf2out_frame_debug_cfa_window_save): Rename from
5829 dwarf2out_window_save; make static.
5830 * tree.h (dwarf2out_window_save): Don't declare.
5831
5832 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
5833 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
5834 (emit_save_register_window): Rename from gen_save_register_window;
5835 emit the insn and add REG_CFA_* notes.
5836 (sparc_expand_prologue): Update to match.
5837 * config/sparc/sparc.md (save_register_window_1): Simplify from
5838 save_register_window<P:mode>.
5839
3b4c46d7
L
58402011-06-22 H.J. Lu <hongjiu.lu@intel.com>
5841
5842 PR target/49497
5843 * config/i386/i386.md (*lea_general_2): Always allow SImode.
5844 (*lea_general_2_zext): Likewise.
5845 (imul to lea peepholes): Use const359_operand and check
5846 TARGET_PARTIAL_REG_STALL.
5847
5848 * config/i386/predicates.md (const359_operand): New.
5849
4399cf59
MM
58502011-06-22 Michael Matz <matz@suse.de>
5851
5852 * cgraphunit.c (assemble_thunk): Use correct return type.
5853
31a0c825 58542011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 5855 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
5856
5857 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
5858 (neon_output_shift_immediate): Ditto.
5859 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
5860 prototype.
5861 (neon_output_shift_immediate): Ditto.
5862 * config/arm/neon.md (vashl<mode>3): Modified constraint.
5863 (vashr<mode>3_imm): New insn pattern.
5864 (vlshr<mode>3_imm): Ditto.
5865 (vashr<mode>3): Modified constraint.
5866 (vlshr<mode>3): Ditto.
5867 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
5868 predicate.
5869 (imm_for_neon_rshift_operand): Ditto.
5870 (imm_lshift_or_reg_neon): Ditto.
5871 (imm_rshift_or_reg_neon): Ditto.
5872
5873 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
5874
ddb555ed
JJ
58752011-06-22 Jakub Jelinek <jakub@redhat.com>
5876
36dc1a88
JJ
5877 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
5878 builtin calls even if likelyvalue is not CONSTANT.
5879 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
5880 Return get_value_for_expr of first operand
5881 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
5882 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5883 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
5884 their non-checking counterparts.
5885 (call_may_clobber_ref_p_1): Likewise.
5886 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
5887 like their non-checking counterparts.
5888 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5889 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
5890 like their non-checking counterparts.
5891 (find_func_clobbers): Likewise.
5892 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
5893 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
5894
41cd4957
JJ
5895 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
5896 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
5897 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
5898 of base type reference as argument.
5899 (resolve_addr_in_expr): Likewise. Fix keep computation.
5900 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
5901 (convert_descriptor_to_mode): ... this. For wider types convert to
5902 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
5903 (typed_binop): New function.
5904 (scompare_loc_descriptor, ucompare_loc_descriptor,
5905 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
5906 default to unsigned type instead of signed.
5907
ddb555ed
JJ
5908 PR debug/47858
5909 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
5910 (gimple_build_debug_source_bind_stat): New prototype.
5911 (gimple_build_debug_source_bind): Define.
5912 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
5913 gimple_debug_source_bind_get_value,
5914 gimple_debug_source_bind_get_value_ptr,
5915 gimple_debug_source_bind_set_var,
5916 gimple_debug_source_bind_set_value): New inlines.
5917 * gimple.c (gimple_build_debug_source_bind_stat): New function.
5918 * gimple-pretty-print.c (dump_gimple_debug): Handle
5919 GIMPLE_DEBUG_SOURCE_BIND.
5920 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
5921 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5922 * tree-parloops.c (eliminate_local_variables,
5923 separate_decls_in_region): Likewise.
5924 (separate_decls_in_region_debug): Renamed from
5925 separate_decls_in_region_debug_bind. Handle
5926 gimple_debug_source_bind_p.
5927 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
5928 prototypes.
5929 (DECL_HAS_DEBUG_ARGS_P): Define.
5930 (struct tree_function_decl): Add has_debug_args_flag field.
5931 * tree.c (debug_args_for_decl): New variable.
5932 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
5933 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
5934 (rewrite_debug_stmt_uses): New function.
5935 (rewrite_stmt): Use it to rewrite debug stmt uses.
5936 * rtl.def (DEBUG_PARAMETER_REF): New.
5937 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
5938 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
5939 DEBUG_PARAMETER_REF.
5940 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
5941 * print-rtl.c (print_rtx): Likewise.
5942 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
5943 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
5944 debug stmts in the first bb.
5945 * tree-inline.c (remap_ssa_name): If remapping default def
5946 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
5947 a source bind debug stmt.
5948 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
5949 (maybe_move_debug_stmts_to_successors): Likewise.
5950 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
5951 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
5952 debug args vector from old_decl to new_decl.
5953 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
5954 or modified parameters, add debug bind stmts before call
0d5e0c1b 5955 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
5956 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
5957 on DECL_DEBUG_EXPRs from debug args vector.
5958 (expand_debug_source_expr): New function.
5959 (expand_debug_locations): Use it for source bind insns.
5960 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
5961 * var-tracking.c (prepare_call_arguments): Add debug args
5962 to call_arguments if any.
5963 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
5964 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
5965 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
5966 (get_ref_die_offset, parameter_ref_descriptor): New functions.
5967 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
5968 (gen_subprogram_die): Handle parameters identified by
5969 DEBUG_PARAMETER_REF.
5970
ccdc2164
NS
59712011-06-22 Nathan Sidwell <nathan@codesourcery.com>
5972
5973 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
5974 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
5975 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
5976 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
5977 (arm_tls_descseq_addr): New.
5978 (legitimize_tls_address): Add tlsdesc support.
5979 (arm_cannot_copy_insn_p): Check for tlscall.
5980 (arm_emit_tls_decoration): Likewise.
5981 * config/arm/arm.h (TARGET_GNU2_TLS): New.
5982 (OPTION_DEFAULT_SPECS): Add with-tls support.
5983 * config/arm/arm.md (R1_REGNUM): Define.
5984 (tlscall): New.
5985 * config/arm/arm.opt (tls_type): New enumeration type and values.
5986 (mtls-dialect): New switch.
5987 * config/arm/arm-opts.h (enum tls_type): New.
5988
70e41a6a
NP
59892011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
5990
5991 * attribs.c (register_attribute): Added assert to check that all
5992 attribute specs are registered with a name that is not empty and
5993 does not start with '_'.
5994 (decl_attributes): Avoid the lookup of the "naked" attribute spec
5995 if the function has no attributes.
5996 * tree.c (is_attribute_with_length_p): Removed.
5997 (is_attribute_p): Removed.
0d5e0c1b 5998 (private_is_attribute_p): New.
70e41a6a
NP
5999 (private_lookup_attribute): New.
6000 (lookup_attribute): Removed.
6001 (lookup_ident_attribute): New.
6002 (remove_attribute): Require the first argument to be in the form
6003 'text', not '__text__'. Updated asserts.
6004 (merge_attributes): Use lookup_ident_attributes instead of
6005 lookup_attribute.
6006 (merge_dllimport_decl_attributes): Use remove_attribute.
6007 (attribute_list_contained): Likewise.
6008 (attribute_list_equal): Immediately return 1 if the arguments are
6009 identical pointers.
6010 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
6011 'int'. Require the first argument to be in the form 'text', not
6012 '__text__'. Require the second argument to be an identifier.
6013 (lookup_attribute): Made inline. Require the first argument to be
6014 in the form 'text', not '__text__'.
6015 (private_is_attribute_p, private_lookup_attribute): New.
6016 Updated comments.
0d5e0c1b 6017
e0a8ecf2
AM
60182011-06-21 Andrew MacLeod <amacleod@redhat.com>
6019
6020 * builtins.c: Add sync_ or SYNC__ to builtin names.
6021 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
6022 * omp-low.c: Add sync_ or SYNC__ to builtin names.
6023
663827d3 60242011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 6025
663827d3
GJL
6026 PR target/33049
6027 * config/avr/avr.md (extzv): New expander.
6028 (*extzv): New insn.
6029 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
6030 * config/avr/constraints.md (C04): New constraint.
6031 * doc/md.texi (Machine Constraints): Document it.
6032
146aef0b
JJ
60332011-06-21 Jakub Jelinek <jakub@redhat.com>
6034
6035 PR middle-end/49489
6036 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
6037 unsignedp argument instead of 1 for clrsb_optab.
6038 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
6039 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
6040 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
6041 * optabs.c (widen_leading): Call widen_operand and expand_unop
6042 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 6043 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 6044
c0503294
GJL
60452011-06-21 Georg-Johann Lay <avr@gjlay.de>
6046
6047 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
6048
3801c801
BS
60492011-06-21 Bernd Schmidt <bernds@codesourcery.com>
6050
0bddee8e
BS
6051 * gensupport.c (add_define_attr): New static function.
6052 (is_predicable): Allow multi-alternative lists for the "predicable"
6053 attribute.
6054 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
6055 (process_one_cond_exec): Call alter_attrs_for_insn.
6056 * doc/md.texi (Defining Attributes): Mention some standard names.
6057 (Conditional Execution): Update documentation for "predicable".
6058
3801c801
BS
6059 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
6060 __builtin_clrsbll): Document.
6061 * doc/rtl.texi (clrsb): New entry.
6062 * optabs.c (widen_leading): Renamed from widen_clz. New argument
6063 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
6064 (expand_unop): Handle clrsb_optab.
6065 (init_optabs): Initialize it.
6066 * optabs.h (enum optab_index): New entry OTI_clrsb.
6067 (clrsb_optab): Define.
6068 * genopinit.c (optabs): Add an entry for it.
6069 * builtins.c (expand_builtin): Handle clrsb builtin functions.
6070 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
6071 BUILT_IN_CLRSBLL): New.
6072 * rtl.def (CLRSB): New code.
6073 * dwarf2out.c (mem_loc_descriptor): Handle it.
6074 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6075 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
6076 and popcount.
6077 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
6078 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
6079 (__ctzDI2): Move declaration.
6080 * config/bfin/bfin.md (clrsbsi2): New expander.
6081 (signbitssi2): Use the CLRSB rtx.
6082 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
6083 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
6084
55f01229
RG
60852011-06-21 Richard Guenther <rguenther@suse.de>
6086
637c11bd 6087 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 6088
5181cd6a
IR
60892011-06-21 Ira Rosen <ira.rosen@linaro.org>
6090
6091 PR tree-optimization/49478
6092 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
6093 with constant operand.
6094
e4ee3d70
RG
60952011-06-21 Richard Guenther <rguenther@suse.de>
6096
6097 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 6098
7b7ec6c5
RG
60992011-06-21 Richard Guenther <rguenther@suse.de>
6100
6101 PR tree-optimization/49483
6102 * tree-vect-stmts.c (vectorizable_assignment): Also handle
6103 VIEW_CONVERT_EXPR conversions.
6104
1b916ca6
JM
61052011-06-21 Joseph Myers <joseph@codesourcery.com>
6106
6107 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
6108 * config/avr/avr-tables.opt: New file (generated).
6109 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
6110 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
6111 avr-mcus.def.
6112 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
6113 (avr_option_override): Don't process -mmcu= argument here. Set
6114 avr_current_device using avr_mcu_index.
637c11bd 6115 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
6116 * config/avr/avr.opt (mmcu=): Use Enum.
6117 * config/avr/t-avr (avr-devices.o): Update dependencies.
6118 ($(srcdir)/config/avr/avr-tables.opt): New.
6119 * target.def (help): Remove.
6120 * doc/tm.texi.in (TARGET_HELP): Remove.
6121 * doc/tm.texi: Regenerate.
6122 * opts.c: Don't include target.h.
6123 (common_handle_option): Don't call targetm.help.
6124 * system.h (TARGET_HELP): Poison.
6125 * Makefile.in (opts.o): Update dependencies.
6126
7ecfa34f
RO
61272011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6128
6129 * config/usegld.h: New file.
6130 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
6131 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 6132 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
6133 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
6134 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
6135 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
6136 Define.
7ecfa34f
RO
6137 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
6138 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
6139 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
6140 (STACK_CHECK_STATIC_BUILTIN): Define.
6141 * config/sol2.opt (compat-bsd): Remove.
6142 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
6143 * config/sol2-bi.h: New file.
6144 * config/sol2-gld.h: Remove.
6145 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
6146 (NO_DBX_BNSYM_ENSYM): Remove.
6147 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
6148 (STACK_CHECK_STATIC_BUILTIN): Remove.
6149 Test USE_GLD instead of TARGET_GNU_LD.
6150 * config/i386/sol2-10.h: Rename to ...
6151 * config/i386/sol2-bi.h .. this.
6152 (SUBTARGET_EXTRA_SPECS): Redefine.
6153 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
6154 (MULTILIB_DEFAULTS): Remove.
6155 (DEFAULT_ARCH32_P): Define.
6156 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
6157 (ARCH64_SUBDIR): Define.
6158 Test USE_GLD instead of TARGET_GNU_LD.
6159 (I386_EMULATION): Rename to ...
6160 (ARCH32_EMULATION): ... this.
6161 (X86_64_EMULATION): Rename to ...
6162 (ARCH64_EMULATION): ... this.
6163 (TARGET_LD_EMULATION): Remove.
6164 (LINK_ARCH_SPEC): Remove.
6165 * config/i386/sol2-gas.h: Remove.
6166 * config/i386/t-sol2-10: Rename to ...
6167 * config/i386/t-sol2-64: ... this.
6168 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
6169 (AS_SPARC64_FLAG): Define.
6170 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
6171 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
6172 depending on TARGET_CPU_DEFAULT.
6173 (CPP_CPU_SPEC): Redefine.
6174 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
6175 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
6176 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
6177 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
6178 ASM_ARCH_DEFAULT_SPEC): Redefine.
6179 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
6180 LINK_ARCH_DEFAULT_SPEC.
6181 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
6182 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
6183 (ARCH64_SUBDIR): Define.
6184 (LINK_ARCH64_SPEC): Redefine.
6185 (CC1_SPEC): Redefine.
6186 (OPTION_DEFAULT_SPECS): Redefine.
6187 (MULTILIB_DEFAULTS): Define.
6188 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
6189 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
6190 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
6191 (NO_DBX_BNSYM_ENSYM): Remove.
6192 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
6193 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
6194 (TARGET_ASM_NAMED_SECTION): Likewise.
6195 (STACK_CHECK_STATIC_BUILTIN): Remove.
6196 * config/sparc/sol2-bi.h: Remove.
6197 * config/sparc/sol2-gas-bi.h: Remove.
6198 * config/sparc/sol2-gas.h: Remove.
6199 * config/sparc/sol2-gld-bi.h: Remove.
6200 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
6201 common parts ...
6202 (*-*-solaris2*): ... here.
6203
4b583c43 62042011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 6205
4b583c43 6206 PR other/43564
637c11bd
UB
6207 * ipa-inline.c (can_inline_edge_p): Check
6208 !DECL_DISREGARD_INLINE_LIMITS.
6209
3bb556ad 62102011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 6211
3bb556ad
CB
6212 PR middle-end/49139
6213 * cgraphunit.c (process_function_and_variable_attributes): warn when
6214 always_inline functions that are not inline.
637c11bd
UB
6215 * ipa-inline-transform.c (inline_transform): Always call
6216 optimize_inline.
6217 * tree-inline.c (tree_inlinable_function_p): Use error instead
6218 of sorry.
3bb556ad 6219 (expand_call_inline): Likewise.
637c11bd 6220
f1ee724c
JJ
62212011-06-21 Jakub Jelinek <jakub@redhat.com>
6222
6223 * Makefile.in (dg_target_exps): Set.
6224 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
6225 instead of 7, try to divide it more evenly.
6226
62272011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 6228
931050d0 6229 PR target/49089
97ef5ae6
CF
6230 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
6231 (avx256_split_unaligned_store): New definition.
6232 (ix86_option_override_internal): Enable avx256 unaligned load/store
6233 splitting only when avx256_split_unaligned_load/store is set.
6234
998c75b6
BS
62352011-06-20 Bernd Schmidt <bernds@codesourcery.com>
6236
6237 * regrename.c (scan_rtx_reg): Handle the case where we write to an
6238 open chain in a smaller mode without failing the entire block.
6239
3a769784
AM
62402011-06-21 Alan Modra <amodra@gmail.com>
6241
6242 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
6243 CONST high part large-toc address.
6244 (rs6000_tls_referenced_p): Make static.
6245 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
6246
c2954af9
RR
62472011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6248
6249 PR target/49385
6250 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
6251 one of the operands is a register.
6252
a95015b6
KT
62532011-06-20 Kai Tietz <ktietz@redhat.com>
6254
637c11bd
UB
6255 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
6256 operations in combination with binary and.
a95015b6 6257
49a30d00
BS
62582011-06-20 Bernd Schmidt <bernds@codesourcery.com>
6259
6260 * regrename.c (do_replace): Don't update notes.
6261
3bae1d98
AM
62622011-06-20 Alan Modra <amodra@gmail.com>
6263
6264 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
6265 of toc-relative address in CONST.
6266 (rs6000_delegitimize_address): Recognize changed address.
6267 (rs6000_legitimize_reload_address): Likewise.
6268 (rs6000_emit_move): Don't force these constants to memory.
6269 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
6270 toc-relative address in CONST.
6271 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
6272 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
6273
10937b0c
L
62742011-06-18 H.J. Lu <hongjiu.lu@intel.com>
6275
637c11bd 6276 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
6277 (count_trailing_zeros): Likewise.
6278
0c587260
L
62792011-06-18 H.J. Lu <hongjiu.lu@intel.com>
6280
6281 PR other/49325
6282 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
6283 .init_array can be used with .ctors on targets.
6284 * configure: Regenerated.
6285
c020c92b
EB
62862011-06-18 Eric Botcazou <ebotcazou@adacore.com>
6287
6288 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
6289 if the element type is volatile.
6290
cd35bcf7
JH
62912011-06-18 Jan Hubicka <jh@suse.cz>
6292
6293 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
6294 extra name aliases.
6295 (lto_symtab_resolve_can_prevail_p): Likewise.
6296 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
6297 * cgraphbuild.c (record_reference): Remove extra body alias code.
6298 (mark_load): Likewise.
6299 (mark_store): Likewise.
6300 * cgraph.h (varpool_node): Remove extra_name filed;
6301 add alias_of and extraname_alias.
6302 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
6303 (varpool_alias_aliased_node): New inline function.
6304 (varpool_variable_node): New function.
6305 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
6306 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
6307 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
6308 (input_varpool_node): Likewise.
6309 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
6310 (varpool_externally_visible_p): Remove extra body alias code.
6311 (function_and_variable_visibility): Likewise.
6312 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
6313 (ipa_pta_execute): Use it.
6314 * varpool.c (varpool_remove_node): Remove extra name alias code.
6315 (varpool_mark_needed_node): Likewise.
6316 (varpool_analyze_pending_decls): Analyze aliases.
6317 (assemble_aliases): New functoin.
6318 (varpool_assemble_decl): Use it.
6319 (varpool_create_variable_alias): New function.
6320 (varpool_extra_name_alias): Rewrite.
6321 (varpool_for_node_and_aliases): New function.
6322
c96b4102
JJ
63232011-06-18 Jakub Jelinek <jakub@redhat.com>
6324
6325 PR target/49411
6326 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
6327 last_arg_constant and last argument doesn't match its predicate,
6328 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
6329 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
6330 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
6331 spelling of error message.
6332 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
6333 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
6334 const_0_to_255_operand instead of const_int_operand.
6335
6336 Revert:
6337 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6338
6339 * config/i386/sse.md (blendbits): Remove mode attribute.
6340 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6341 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6342 Check integer value of operand 3 in insn constraint.
6343
9a2091cd
HPN
63442011-06-17 Hans-Peter Nilsson <hp@axis.com>
6345
6346 PR rtl-optimization/48542
6347 * reload.c (find_equiv_reg): Stop looking when finding a
6348 setjmp-type call.
6349 * reload1.c (reload_as_needed): Invalidate all reload
6350 registers when crossing a setjmp-type call.
6351
361b51c0
JL
63522011-06-16 Jeff Law <law@redhat.com>
6353
6354 * tree-ssa-threadupdate.c (struct redirection_data): New field
6355 intermediate_edge.
6356 (THREAD_TARGET2): Define.
637c11bd 6357 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
6358 (lookup_redirection_data): Drop useless argument. Extract the
6359 outgoing_edge and intermediate edge from E. Callers updated.
6360 (copy_phi_args, update_destination_phis): New functions.
6361 (fix_duplicate_block_edges): Likewise.
6362 (create_edge_and_update_destination_phis): Duplicate all the edges
6363 hung off e->aux. Use copy_phi_args.
6364 (create_duplicates): Use fix_duplicate_block_edges.
6365 (fixup_template_block): Likewise.
6366 (redirect_edges): If necessary, redirect the joiner block's incoming
6367 edge to the duplicate of the joiner block.
6368 (thread_block): Don't muck up loops when threading through a joiner
6369 block.
637c11bd 6370 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
6371 (mark_threaded_blocks, register_jump_thread): Likewise.
6372 * tree-flow.h (register_jump_thread): Add new argument. Callers
6373 updated.
6374 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
6375 (thread_across_edge): Handle threading through a joiner block.
637c11bd 6376
ee460e75
MJ
63772011-06-16 Martin Jambor <mjambor@suse.cz>
6378
6379 PR tree-optimization/49343
6380 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
6381 calculate offset, provide 2nd operand for the new COMPONENT_REF.
6382
a285ba2e
IS
63832011-06-16 Iain Sandoe <iains@gcc.gnu.org>
6384
6385 * config/darwin-protos.h (machopic_select_rtx_section): Move to
6386 inside RTX_CODE ifdef.
6387
0703f020
TV
63882011-06-16 Tom de Vries <tom@codesourcery.com>
6389
6390 PR target/45098
637c11bd
UB
6391 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
6392 Disallow NULL pointer for pointer arithmetic.
0703f020 6393
900c07da
RR
63942011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6395
6396 PR target/49398
6397 Revert.
6398 2011-06-10 Wei Guozhi <carrot@google.com>
6399
6400 PR target/45335
6401 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
6402 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
6403 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
6404 related peephole2.
6405 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
6406 related peephole2.
6407 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
6408 (arm_legitimate_ldrd_p): New prototype.
6409 (arm_output_ldrd): New prototype.
6410 * config/arm/arm.c (arm_check_ldrd_operands): New function.
6411 (arm_legitimate_ldrd_p): New function.
6412 (arm_output_ldrd): New function.
6413
c020c92b 64142011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
6415
6416 PR middle-end/46500
6417 * doc/tm.texi.in: Update Copyright date.
6418 * doc/tm.texi: Regenerate.
6419 * targhooks.c (default_setup_incoming_varargs): Replace
6420 CUMULATIVE_ARGS* argument type with cumulative_args_t.
6421 (default_pretend_outgoing_varargs_named): Likewise.
6422 (hook_pass_by_reference_must_pass_in_stack): Likewise.
6423 (hook_callee_copies_named): Likewise.
6424 (default_function_arg_advance): Likewise.
6425 (default_function_arg): Likewise.
6426 (default_function_incoming_arg): Likewise.
6427 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
6428 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
6429 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
6430 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6431 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
6432 * targhooks.h (default_setup_incoming_varargs): Likewise.
6433 (default_pretend_outgoing_varargs_named): Likewise.
6434 (hook_pass_by_reference_must_pass_in_stack): Likewise.
6435 (hook_callee_copies_named): Likewise.
6436 (default_function_arg_advance): Likewise.
6437 (default_function_arg): Likewise.
6438 (default_function_incoming_arg): Likewise.
6439 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
6440 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
6441 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
6442 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6443 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
6444 * target.def (pass_by_reference): Likewise.
6445 (setup_incoming_varargs, strict_argument_naming): Likewise.
6446 (pretend_outgoing_varargs_named, callee_copies): Likewise.
6447 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
6448 (function_incoming_arg): Likewise.
6449 * target.h: Don't include "tm.h" .
6450 (cumulative_args_t): New typedef.
6451 [GCC_TM_H] (get_cumulative_args): New static inline function.
6452 [GCC_TM_H] (pack_cumulative_args): Likewise.
6453 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
6454 argument type with cumulative_args_t.
6455 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
6456 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
6457 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6458 (frv_arg_partial_bytes, frv_function_arg): Likewise.
6459 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
6460 (frv_function_arg_1): Likewise.
6461 * config/s390/s390.c (s390_pass_by_reference): Likewise.
6462 (s390_function_arg_advance, s390_function_arg): Likewise.
6463 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6464 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
6465 (m32c_strict_argument_naming): Likewise.
6466 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
6467 (spu_function_arg_advance): Likewise.
6468 (spu_setup_incoming_varargs): Likewise. Make static.
6469 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
6470 Remove prototype.
6471 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
6472 CUMULATIVE_ARGS* argument type with cumulative_args_t.
6473 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
6474 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
6475 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
6476 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
6477 (mep_pass_by_reference, mep_function_arg): Likewise.
6478 (mep_function_arg_advance): Likewise.
6479 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6480 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
6481 (m32r_function_arg, m32r_function_arg_advance): Likewise.
6482 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
6483 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6484 (ix86_function_arg, ix86_pass_by_reference): Likewise.
6485 (ix86_setup_incoming_varargs): Likewise.
6486 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6487 (sh_strict_argument_naming): Likewise.
6488 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
6489 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
6490 (sh_function_arg_advance, sh_function_arg): Likewise.
6491 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6492 (pdp11_function_arg_advance): Likewise.
6493 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6494 Likewise.
6495 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
6496 * config/avr/avr.c (avr_function_arg): Likewise.
6497 (avr_function_arg_advance): Likewise.
6498 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6499 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
6500 (xtensa_function_arg_1): Likewise.
637c11bd
UB
6501 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
6502 Likewise.
d5cc9181
JR
6503 (xstormy16_function_arg): Likewise.
6504 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6505 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6506 (fr30_function_arg_advance): Likewise.
6507 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6508 (lm32_function_arg, lm32_function_arg_advance): Likewise.
6509 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6510 (moxie_function_arg, moxie_function_arg_advance): Likewise.
6511 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
6512 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6513 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
6514 (cris_function_arg, cris_function_incoming_arg): Likewise.
6515 (cris_function_arg_advance, cris_function_arg_1): Likewise.
6516 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6517 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
6518 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
6519 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6520 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
6521 (mn10300_arg_partial_bytes): Likewise.
6522 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6523 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
6524 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
6525 (ia64_function_arg_1): Likewise.
6526 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6527 (m68k_function_arg): Likewise.
6528 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
6529 (rs6000_function_arg, setup_incoming_varargs): Likewise.
6530 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
6531 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
6532 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
6533 (picochip_arg_advance): Likewise.
6534 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6535 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
6536 (mcore_function_arg_advance): Likewise.
6537 * config/score/score.c (score_pass_by_reference): Likewise.
6538 (score_function_arg_advance): Likewise.
6539 (score_arg_partial_bytes): Likewise. Make static.
6540 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
6541 * config/arm/arm.c (arm_arg_partial_bytes): Replace
6542 CUMULATIVE_ARGS* argument type with cumulative_args_t.
6543 (arm_function_arg, arm_function_arg_advance): Likewise.
6544 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
6545 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6546 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
6547 (pa_function_arg): Likewise.
6548 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
6549 (mips_function_arg, mips_function_arg_advance): Likewise.
6550 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
6551 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
6552 * config/vax/vax.c (vax_function_arg): Likewise.
6553 (vax_function_arg_advance): Likewise.
6554 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6555 (h8300_function_arg_advance): Likewise.
6556 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6557 (v850_strict_argument_naming, v850_function_arg): Likewise.
6558 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
6559 (v850_setup_incoming_varargs): Likewise.
6560 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6561 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
6562 (mmix_function_arg, mmix_pass_by_reference): Likewise.
6563 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
6564 with const void *.
6565 * config/bfin/bfin.c (setup_incoming_varargs): Replace
6566 CUMULATIVE_ARGS* argument type with cumulative_args_t.
6567 (bfin_function_arg_advance, bfin_function_arg): Likewise.
6568 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
6569 * calls.c (emit_call_1): Change type of args_so_far to
6570 cumulative_args_t. Changed all callers.
6571 (initialize_argument_information): Likewise.
6572 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
6573 * dse.c (get_call_args): Likewise.
6574 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6575 * function.c (pass_by_reference, reference_callee_copied): Likewise.
6576 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
6577 New member args_so_far_v. Changed all users.
6578 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
6579 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
6580 * config/mips/mips.c (mips_output_args_xfer): Likewise.
6581 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6582 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
6583 * config/microblaze/microblaze.c (microblaze_expand_prologue):
6584 Likewise.
d5cc9181
JR
6585 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
6586 m32r_pass_by_reference.
6587
51312233
IR
65882011-06-16 Ira Rosen <ira.rosen@linaro.org>
6589
6590 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
6591 argument to be a VEC of statements.
637c11bd
UB
6592 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
6593 assert that pattern statements have to have their vector type set.
51312233
IR
6594 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
6595 Change the first argument to be a VEC of statements. Update
6596 documentation.
6597 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
6598 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
6599 (vect_recog_widen_mult_pattern): Change the first argument to be a
6600 VEC of statements. Update documentation. Check that the constant is
6601 INTEGER_CST. Support multiplication by a constant that fits an
6602 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
6603 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
6604 call. Handle additional pattern statements if necessary.
6605
fd4df33d
NC
66062011-06-16 Nick Clifton <nickc@redhat.com>
6607
6608 PR target/49427
6609 * config.gcc: Set cpu_type to v850 for any V850 architecture.
6610 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
6611 md_file, extra_modes, out_file and extra_options are these are all
6612 deduced from cpu_type.
6613
fbd05da0
GJL
66142011-06-16 Georg-Johann Lay <avr@gjlay.de>
6615
6616 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
6617 truncation mask to 63.
6618
0ad8bb3b
GJL
66192011-06-16 Georg-Johann Lay <avr@gjlay.de>
6620
6621 PR target/49313
6622 PR target/29524
6623 * longlong.h: Add AVR support:
6624 (count_leading_zeros): New macro.
6625 (count_trailing_zeros): New macro.
6626 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
6627 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
6628 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
6629 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
6630 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
6631 (LIB2FUNCS_EXCLUDE): Add _clz.
6632 * config/avr/libgcc.S (XCALL): Move up in file.
6633 (XJMP): New C Macro.
6634 (DEFUN): New asm macro.
6635 (ENDF): New asm macro.
6636 (__ffssi2): New function.
6637 (__ffshi2): New function.
6638 (__loop_ffsqi2): New function.
6639 (__ctzsi2): New function.
6640 (__ctzhi2): New function.
6641 (__clzdi2): New function.
6642 (__clzsi2): New function.
6643 (__clzhi2): New function.
6644 (__paritydi2): New function.
6645 (__paritysi2): New function.
6646 (__parityhi2): New function.
59c1e10b 6647 (__parityqi2): New function.
0ad8bb3b
GJL
6648 (__popcounthi2): New function.
6649 (__popcountsi2): New function.
6650 (__popcountdi2): New function.
6651 (__popcountqi2): New function.
6652 (__bswapsi2): New function.
6653 (__bswapdi2): New function.
6654 (__ashldi3): New function.
6655 (__ashrdi3): New function.
6656 (__lshrdi3): New function.
6657 Fix suspicous lines.
6658
12430896
RG
66592011-06-16 Richard Guenther <rguenther@suse.de>
6660
6661 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
6662 the same as x != 0.
637c11bd
UB
6663 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
6664 to (bool) X & 1.
12430896
RG
6665 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
6666 equality compares against zero for the lower bit.
6667
09302442
JJ
66682011-06-16 Jakub Jelinek <jakub@redhat.com>
6669
6670 PR tree-optimization/49419
6671 * tree-vrp.c (execute_vrp): Call init_range_assertions
6672 before estimate_numbers_of_iterations, call
6673 free_number_of_iterations_estimates before calling
6674 remove_range_assertions.
6675
81c41166
RE
66762011-06-16 Revital Eres <revital.eres@linaro.org>
6677
6678 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
6679 (struct partial_schedule): Add rows_length field.
6680 (verify_partial_schedule): Check rows_length.
6681 (ps_insert_empty_row): Handle rows_length.
6682 (create_partial_schedule): Likewise.
6683 (free_partial_schedule): Likewise.
6684 (reset_partial_schedule): Likewise.
6685 (create_ps_insn): Remove rest_count argument.
6686 (remove_node_from_ps): Update rows_length.
6687 (add_node_to_ps): Update rows_length and call create_ps_insn
6688 without passing row_rest_count.
6689 (rotate_partial_schedule): Update rows_length.
6690
d24dc7b3
RE
66912011-06-16 Revital Eres <revital.eres@linaro.org>
6692
6693 * ddg.c (add_intra_loop_mem_dep): New function.
6694 (build_intra_loop_deps): Call it.
6695
361b51c0 66962011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
6697
6698 * df-problems.c (df_lr_local_compute): Manually CSE
6699 PIC_OFFSET_TABLE_REGNUM.
6700 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
6701 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
6702
85ce9375
JH
67032011-06-13 Jan Hubicka <jh@suse.cz>
6704
6705 * cgraphunit.c (handle_alias_pairs): New function.
6706 (cgraph_finalize_compilation_unit): Use it.
6707 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
6708 as externally visible.
6709
a577c405
RG
67102011-06-15 Richard Guenther <rguenther@suse.de>
6711
6712 * expr.c (expand_expr_real_2): Reduce all integral types to
6713 bitfield precision.
6714 (expand_expr_real_1): Likewise.
6715
93536c97
MJ
67162011-06-15 Martin Jambor <mjambor@suse.cz>
6717
6718 PR tree-optimization/48613
6719 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
6720 ipa_node_params_vector is NULL.
fd4df33d 6721
ba45cfc4
JJ
67222011-06-15 Jakub Jelinek <jakub@redhat.com>
6723
6724 PR debug/49382
6725 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
6726 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
6727 location in the list, even if it is modified before first real insn.
ba45cfc4 6728 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 6729 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 6730
6fc5966f
AM
67312011-06-15 Alexander Monakov <amonakov@ispras.ru>
6732
6733 PR target/49349
6734 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
6735 (fence_to_rewind). Use it to notice when bookkeeping will be placed
6736 above a fence. Update comments.
6737 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
6738 placed just above it. Do not allow NULL place_to_insert.
6739
9d5e7640
IR
67402011-06-15 Ira Rosen <ira.rosen@linaro.org>
6741
6742 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
6743 (slpeel_tree_peel_loop_to_edge): Don't call
6744 remove_dead_stmts_from_loop.
6745 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
6746 remove irrelevant pattern statements. For irrelevant statements
6747 check if it is the last statement of a detected pattern, use
6748 corresponding pattern statement instead.
6749 (destroy_loop_vec_info): No need to remove pattern statements,
6750 only free stmt_vec_info.
6751 (vect_transform_loop): For irrelevant statements check if it is
6752 the last statement of a detected pattern, use corresponding
6753 pattern statement instead.
6754 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
6755 pattern statements. Set basic block for the new statement.
6756 (vect_pattern_recog): Update documentation.
6757 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
6758 operands of pattern statements.
6759 (vectorizable_call): Fix printing. In case of a pattern statement
6760 use the lhs of the original statement when creating a dummy
6761 statement to replace the original call.
6762 (vect_analyze_stmt): For irrelevant statements check if it is
6763 the last statement of a detected pattern, use corresponding
6764 pattern statement instead.
6765 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
6766 statements use gsi of the original statement.
6767
677f3fa8
JM
67682011-06-14 Joseph Myers <joseph@codesourcery.com>
6769
6770 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
6771 common/common-target-def.h.
6772 * target.def (default_target_flags, handle_option,
6773 supports_split_stack, optimization_table, init_struct,
6774 except_unwind_info, unwind_tables_default, have_named_sections):
6775 Move to common/common-target.def.
6776 * target.h (enum opt_levels, struct default_options): Move to
6777 common/common-target.h.
6778 * targhooks.c (default_except_unwind_info,
6779 dwarf2_except_unwind_info, sjlj_except_unwind_info,
6780 default_target_handle_option, empty_optimization_table): Move to
6781 common/common-targhooks.c.
6782 * targhooks.h (default_except_unwind_info,
6783 dwarf2_except_unwind_info, sjlj_except_unwind_info,
6784 default_target_handle_option, empty_optimization_table): Move to
6785 common/common-targhooks.h.
6786 * common/common-target-def.h: Include common/common-targhooks.h.
6787 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
6788 defined.
6789 * common/common-target.def (handle_option, option_init_struct,
6790 option_optimization_table, default_target_flags,
6791 except_unwind_info, supports_split_stack, unwind_tables_default,
6792 have_named_sections): Move from target.def.
6793 (HOOK_PREFIX): Undefine at end of file.
6794 * common/common-target.h: Include input.h.
6795 (enum opt_levels, struct default_options): Move from target.h.
6796 * common/common-targhooks.c, common/common-targhooks.h: New.
6797 * config.gcc (target_has_targetm_common): Default to yes.
6798 (moxie*): Set target_has_targetm_common=no.
6799 (hppa*-*-*): Don't set target_has_targetm_common=yes.
6800 * doc/tm.texi: Regenerate.
6801 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
6802 (C_TARGET_DEF_H): Add common/common-targhooks.h.
6803 (GCC_OBJS): Remove vec.o.
6804 (OBJS): Remove hooks.o and vec.o.
6805 (OBJS-libcommon-target): Add vec.o, hooks.o and
6806 common/common-targhooks.o.
6807 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
6808 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
6809 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
6810 cfglayout.o, $(out_object_file), $(common_out_object_file)):
6811 Update dependencies.
6812 (common/common-targhooks.o): New.
637c11bd 6813 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
6814 * common/config/pa/pa-common.c: Include more headers. Take
6815 copyright dates from pa.c.
6816 (pa_option_optimization_table, pa_handle_option,
6817 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
6818 TARGET_HANDLE_OPTION): Move from pa.c.
6819 * common/config/alpha/alpha-common.c,
6820 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
6821 common/config/bfin/bfin-common.c,
6822 common/config/cris/cris-common.c,
6823 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
6824 common/config/h8300/h8300-common.c,
6825 common/config/i386/i386-common.c,
6826 common/config/ia64/ia64-common.c,
6827 common/config/iq2000/iq2000-common.c,
6828 common/config/lm32/lm32-common.c,
6829 common/config/m32c/m32c-common.c,
6830 common/config/m32r/m32r-common.c,
6831 common/config/m68k/m68k-common.c,
6832 common/config/mcore/mcore-common.c,
6833 common/config/mep/mep-common.c,
6834 common/config/microblaze/microblaze-common.c,
6835 common/config/mips/mips-common.c,
6836 common/config/mmix/mmix-common.c,
6837 common/config/mn10300/mn10300-common.c,
6838 common/config/pdp11/pdp11-common.c,
6839 common/config/picochip/picochip-common.c,
6840 common/config/rs6000/rs6000-common.c,
6841 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
6842 common/config/score/score-common.c, common/config/sh/sh-common.c,
6843 common/config/sparc/sparc-common.c,
6844 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
6845 common/config/vax/vax-common.c,
6846 common/config/xstormy16/xstormy16-common.c,
6847 common/config/xtensa/xtensa-common.c: New.
6848 * config/alpha/alpha.c: Include common/common-target.h.
6849 (alpha_option_optimization_table, alpha_handle_option,
6850 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6851 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
6852 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
6853 * config/arm/arm.c (arm_option_optimization_table,
6854 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6855 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
6856 arm-common.c.
6857 * config/avr/avr.c (avr_option_optimization_table,
6858 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
6859 to avr-common.c.
6860 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
6861 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
6862 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
6863 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
6864 * config/cris/cris.c (cris_option_optimization_table,
6865 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6866 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
6867 cris-common.c.
6868 * config/fr30/fr30.c (fr30_option_optimization_table,
6869 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
6870 to fr30-common.c.
6871 * config/frv/frv.c (frv_option_optimization_table,
6872 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
6873 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
6874 * config/h8300/h8300.c (h8300_option_optimization_table,
6875 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6876 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
6877 * config/i386/i386-protos.h (ix86_handle_option): Declare.
6878 * config/i386/i386.c: Include common/common-target.h.
6879 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
6880 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
6881 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
6882 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
6883 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
6884 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
6885 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
6886 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
6887 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
6888 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
6889 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
6890 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
6891 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
6892 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
6893 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
6894 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
6895 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
6896 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
6897 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
6898 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
6899 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
6900 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
6901 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
6902 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
6903 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
6904 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
6905 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
6906 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
6907 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
6908 ix86_option_optimization_table, ix86_option_init_struct,
6909 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
6910 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6911 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
6912 i386-common.c.
6913 * config/i386/t-i386 (i386.o): Update dependencies.
6914 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
6915 * config/ia64/ia64.c (ia64_option_optimization_table,
6916 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
6917 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6918 ia64_handle_option): Move to ia64-common.c.
6919 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
6920 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
6921 * config/lm32/lm32.c (lm32_option_optimization_table,
6922 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
6923 to lm32-common.c.
6924 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
6925 m32c-common.c.
6926 * config/m32r/m32r.c (m32r_option_optimization_table,
6927 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6928 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
6929 m32r_handle_option): Move to m32r-common.c.
6930 (m32r_memory_move_cost): Remove comment referring to
6931 TARGET_HANDLE_OPTION.
6932 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
6933 Move to m68k-common.c.
6934 * config/mcore/mcore.c (mcore_option_optimization_table,
6935 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6936 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
6937 * config/mep/mep.c (mep_option_optimization_table,
6938 mep_handle_option, TARGET_HANDLE_OPTION,
6939 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
6940 Move to mep-common.c.
6941 * config/microblaze/microblaze.c
6942 (microblaze_option_optimization_table,
6943 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6944 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
6945 * config/mips/mips.c (mips_handle_option,
6946 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
6947 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
6948 mips-common.c.
6949 * config/mmix/mmix.c (mmix_option_optimization_table,
6950 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
6951 Move to mmix-common.c.
6952 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
6953 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
6954 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6955 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
6956 * config/pa/pa.c: Include common/common-target.h.
6957 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
6958 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6959 pa_handle_option): Move to pa-common.c.
6960 (pa_option_override): Use targetm_common.except_unwind_info.
6961 (pa_asm_output_mi_thunk, pa_function_section): Use
6962 targetm_common.have_named_sections.
6963 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
6964 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6965 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
6966 pdp11_handle_option, pdp11_option_init_struct): Move to
6967 pdp11-common.c.
6968 * config/picochip/picochip.c (picochip_option_optimization_table,
6969 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
6970 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
6971 * config/rs6000/rs6000.c: Include common/common-target.h.
6972 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
6973 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
6974 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
6975 rs6000_handle_option): Move to rs6000-common.c.
6976 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6977 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
6978 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6979 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
6980 * config/s390/s390.c (processor_flags_table,
6981 s390_option_optimization_table, s390_option_init_struct,
6982 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
6983 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6984 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
6985 * config/s390/s390.h (processor_flags_table): Declare.
6986 * config/score/score.c (score_option_optimization_table,
6987 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6988 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
6989 score_handle_option): Move to score-common.c.
6990 * config/sh/sh.c (sh_option_optimization_table,
6991 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
6992 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6993 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
6994 * config/sparc/sparc.c: Include common/common-target.h.
6995 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
6996 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
6997 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
6998 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
6999 spu_option_init_struct): Move to spu-common.c.
7000 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
7001 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
7002 * config/v850/v850.c (small_memory_physical_max,
7003 v850_handle_memory_optionn v850_handle_option,
7004 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
7005 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
7006 v850-common.c.
637c11bd 7007 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
7008 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
7009 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
7010 Move to xtensa-common.c.
7011 * cfglayout.c: Include common/common-target.h.
7012 (fixup_reorder_chain): Use targetm_common.have_named_sections.
7013 * cfgrtl.c: Include common/common-target.h.
7014 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
7015 targetm_common.have_named_sections.
7016 * dbxout.c: Include common/common-target.h.
7017 (dbxout_function_end): Use targetm_common.have_named_sections.
7018 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
7019 targetm_common.except_unwind_info.
7020 * dwarf2out.c: Include common/common-target.h.
7021 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
7022 dwarf2out_begin_prologue, dwarf2out_frame_init,
7023 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
7024 targetm_common.except_unwind_info.
7025 * except.c: Include common/common-target.h.
7026 (init_eh, finish_eh_generation,
7027 output_one_function_exception_table): Use
7028 targetm_common.except_unwind_info.
637c11bd 7029 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
7030 * explow.c: Include common/common-target.h.
7031 * expr.c: Include common/common-target.h.
637c11bd 7032 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
7033 * function.c: Include common/common-target.h.
7034 (expand_function_end): Use targetm_common.except_unwind_info.
7035 * haifa-sched.c: Include common/common-target.h.
637c11bd 7036 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
7037 * lto-opts.c: Include common/common-target.h instead of target.h.
7038 (lto_reissue_options): Use targetm_common.handle_option.
7039 * opts.c: Include common/common-target.h.
7040 (target_handle_option): Use targetm_common.handle_option.
7041 (init_options_struct): Update comment referring to
7042 targetm.target_option.optimization. Use
7043 targetm_common.default_target_flags,
7044 targetm_common.unwind_tables_default and
7045 targetm_common.option_init_struct.
7046 (default_options_optimization): Use
7047 targetm_common.option_optimization_table.
7048 (finish_options): Use targetm_common.except_unwind_info,
7049 targetm_common.unwind_tables_default,
7050 targetm_common.have_named_sections and
7051 targetm_common.supports_split_stack.
7052 * toplev.c: Include common/common-target.h.
7053 (process_options): Use targetm_common.have_named_sections.
7054 * tree-tailcall.c: Include common/common-target.h.
637c11bd 7055 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 7056 * tree.c: Include common/common-target.h.
637c11bd 7057 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
7058 * varasm.c: Include common/common-target.h.
7059 (resolve_unique_section, hot_function_section,
7060 default_function_section): Use targetm_common.have_named_sections.
7061
d26c7090
ER
70622011-06-14 Easwaran Raman <eraman@google.com>
7063
7064 PR rtl-optimization/44194
7065 * dse.c: Include tree-flow.h
7066 (insn_info): Add new field non_frame_wild_read.
7067 (group_info): Add new fields escaped_n and escaped_p.
7068 (kill_on_calls): New variable.
7069 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
7070 (dse_step0): Initialize kill_on_calls.
7071 (can_escape): New function.
7072 (set_usage_bits): Add additional parameter; record information
7073 about escaped locations.
637c11bd 7074 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
7075 (dse_step2_nospill): Set kill_on_calls based on
7076 group->escaped_n and group->escaped_n.
7077 (add_wild_read): Refactor into...
7078 (reset_active_stores): ... New function, and
7079 (free_read_records): ... New function.
7080 (add_non_frame_wild_read): New function.
7081 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 7082 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
7083 (dse_step5_nospill): Call scan_reads_nospill for instructions
7084 marked as non_frame_wild_read.
637c11bd 7085 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 7086
c49a6962
JM
70872011-06-14 Joseph Myers <joseph@codesourcery.com>
7088
7089 * common/common-target-def.h, common/common-target.def,
7090 common/common-target.h, common/config/default-common.c,
7091 common/config/pa/pa-common.c: New files.
7092 * Makefile.in (common_out_file, common_out_object_file,
7093 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
7094 (OBJS-libcommon-target): Include $(common_out_object_file).
7095 (prefix.o): Update dependencies.
7096 ($(common_out_object_file), common/common-target-hooks-def.h,
7097 s-common-target-hooks-def-h): New.
7098 (s-tm-texi): Also check timestamp on common-target.def.
7099 (build/genhooks.o): Update dependencies.
7100 * config.gcc (common_out_file, target_has_targetm_common): Define.
7101 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
7102 TARGET_ALWAYS_STRIP_DOTDOT.
7103 * configure.ac (common_out_object_file): Define.
7104 (common_out_file, common_out_object_file): Substitute.
7105 (common): Create directory.
7106 * configure: Regenerate.
7107 * doc/tm.texi.in (targetm_common): Document.
7108 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
7109 * doc/tm.texi: Regenerate.
7110 * genhooks.c (hook_array): Also include common/common-target.def.
7111 * prefix.c (tm.h): Don't include.
7112 (common/common-target.h): Include.
7113 (ALWAYS_STRIP_DOTDOT): Don't define.
7114 (update_path): Use targetm_common.always_strip_dotdot instead of
7115 ALWAYS_STRIP_DOTDOT.
7116 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
7117
22c5fa5f
DL
71182011-06-14 David Li <davidxl@google.com>
7119
7120 * passes.c (execute_function_todo): Remove TODO_dump_func.
7121 (execute_one_pass): Remove TODO_dump_func.
7122 (execute_function_dump): New function.
7123 * tree-vrp.c: Remove TODO_dump_func.
7124 * regrename.c: Remove TODO_dump_func.
7125 * fwprop.c: Remove TODO_dump_func.
7126 * tree-into-ssa.c: Remove TODO_dump_func.
7127 * tree-complex.c: Remove TODO_dump_func.
7128 * tracer.c: Remove TODO_dump_func.
7129 * tree-loop-distribution.c: Remove TODO_dump_func.
7130 * postreload-gcse.c: Remove TODO_dump_func.
7131 * postreload.c: Remove TODO_dump_func.
7132 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
7133 * tree-tailcall.c: Remove TODO_dump_func.
7134 * ipa-cp.c: Remove TODO_dump_func.
7135 * final.c: Remove TODO_dump_func.
7136 * tree-emutls.c: Remove TODO_dump_func.
7137 * omp-low.c: Remove TODO_dump_func.
7138 * tree-ssa-dse.c: Remove TODO_dump_func.
7139 * tree-ssa-uncprop.c: Remove TODO_dump_func.
7140 * auto-inc-dec.c: Remove TODO_dump_func.
7141 * reorg.c: Remove TODO_dump_func.
7142 * tree-ssa-copyrename.c: Remove TODO_dump_func.
7143 * tree-ssa-ccp.c: Remove TODO_dump_func.
7144 * compare-elim.c: Remove TODO_dump_func.
7145 * mode-switching.c: Remove TODO_dump_func.
7146 * modulo-sched.c: Remove TODO_dump_func.
7147 * tree-call-cdce.c: Remove TODO_dump_func.
7148 * cse.c: Remove TODO_dump_func.
7149 * web.c: Remove TODO_dump_func.
7150 * tree-stdarg.c: Remove TODO_dump_func.
7151 * lto-streamer-out.c: Remove TODO_dump_func.
7152 * tree-ssa-math-opts.c: Remove TODO_dump_func.
7153 * tree-ssa-dom.c: Remove TODO_dump_func.
7154 * tree-nrv.c: Remove TODO_dump_func.
7155 * loop-init.c: Remove TODO_dump_func.
7156 * gimple-low.c: Remove TODO_dump_func.
7157 * ipa-inline.c: Remove TODO_dump_func.
7158 * tree-ssa-sink.c: Remove TODO_dump_func.
7159 * jump.c: Remove TODO_dump_func.
7160 * ifcvt.c: Remove TODO_dump_func.
7161 * tree-ssa-loop.c: Remove TODO_dump_func.
7162 * recog.c: Remove TODO_dump_func.
7163 * dse.c: Remove TODO_dump_func.
7164 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
7165 * matrix-reorg.c: Remove TODO_dump_func.
7166 * tree-eh.c: Remove TODO_dump_func.
7167 * regmove.c: Remove TODO_dump_func.
7168 * function.c: Remove TODO_dump_func.
7169 * tree-vectorizer.c: Remove TODO_dump_func.
7170 * ipa-split.c: Remove TODO_dump_func.
7171 * gcse.c: Remove TODO_dump_func.
7172 * tree-if-conv.c: Remove TODO_dump_func.
7173 * init-regs.c: Remove TODO_dump_func.
7174 * tree-ssa-phiopt.c: Remove TODO_dump_func.
7175 * implicit-zee.c: Remove TODO_dump_func.
7176 * lower-subreg.c: Remove TODO_dump_func.
7177 * bt-load.c: Remove TODO_dump_func.
7178 * tree-dfa.c: Remove TODO_dump_func.
7179 * except.c: Remove TODO_dump_func.
7180 * emit-rtl.c: Remove TODO_dump_func.
7181 * store-motion.c: Remove TODO_dump_func.
7182 * cfgexpand.c: Remove TODO_dump_func.
7183 * tree-cfgcleanup.c: Remove TODO_dump_func.
7184 * cfgcleanup.c: Remove TODO_dump_func.
7185 * tree-ssa-pre.c: Remove TODO_dump_func.
7186 * tree-sra.c: Remove TODO_dump_func.
7187 * tree-mudflap.c: Remove TODO_dump_func.
7188 * tree-ssa-copy.c: Remove TODO_dump_func.
7189 * cfglayout.c: Remove TODO_dump_func.
7190 * tree-ssa-forwprop.c: Remove TODO_dump_func.
7191 * tree-ssa-dce.c: Remove TODO_dump_func.
7192 * ira.c: Remove TODO_dump_func.
7193 * tree-ssa.c: Remove TODO_dump_func.
7194 * integrate.c: Remove TODO_dump_func.
7195 * tree-optimize.c: Remove TODO_dump_func.
7196 * tree-ssa-phiprop.c: Remove TODO_dump_func.
7197 * tree-object-size.c: Remove TODO_dump_func.
7198 * combine.c: Remove TODO_dump_func.
7199 * bb-reorder.c: Remove TODO_dump_func.
7200 * cprop.c: Remove TODO_dump_func.
7201 * var-tracking.c: Remove TODO_dump_func.
7202 * tree-profile.c: Remove TODO_dump_func.
7203 * tree-vect-generic.c: Remove TODO_dump_func.
7204 * reg-stack.c: Remove TODO_dump_func.
7205 * sched-rgn.c: Remove TODO_dump_func.
7206 * tree-ssa-structalias.c: Remove TODO_dump_func.
7207 * tree-switch-conversion.c: Remove TODO_dump_func.
7208 * tree-cfg.c: Remove TODO_dump_func.
7209 * tree-ssa-reassoc.c: Remove TODO_dump_func.
7210 * combine-stack-adj.c: Remove TODO_dump_func.
7211 * dce.c: Remove TODO_dump_func.
7212 * tree-ssanames.c: Remove TODO_dump_func.
7213 * regcprop.c: Remove TODO_dump_func.
7214
fa465762
L
72152011-06-14 H.J. Lu <hongjiu.lu@intel.com>
7216
7217 PR middle-end/47364
7218 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
7219 and properly handle result not in Pmode.
7220
7d8d16c3
RM
72212011-06-14 Robert Millan <rmh@gnu.org>
7222
7223 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
7224 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
7225 `config/linux.h'.
7226
7227 * config/i386/kfreebsd-gnu64.h: New file.
7228 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
7229 with `i386/kfreebsd-gnu64.h'.
7230
7231 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
7232 (GNU_USER_LINK_EMULATION64): New macros.
7233 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
7234 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
7235 of hardcoding `elf_i386' and `elf_x86_64'.
7236
0ccef3d2
NC
72372011-06-14 Nick Clifton <nickc@redhat.com>
7238
7239 PR target/49403
7240 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
7241
7242 PR target/49402
7243 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
7244
8a76c4a0
JJ
72452011-06-14 Jakub Jelinek <jakub@redhat.com>
7246
1ace6185
JJ
7247 PR fortran/49103
7248 * tree.h (DECL_NONSHAREABLE): Define.
7249 (struct tree_decl_common): Change decl_common_unused to
7250 decl_nonshareable_flag.
7251 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
7252 Ignore vars with DECL_NONSHAREABLE bit set.
7253 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
7254 on stores to automatic aggregate vars.
7255
8a76c4a0
JJ
7256 PR rtl-optimization/49390
7257 Revert:
7258 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
7259
7260 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7261 MEM_ALIAS_SET.
7262
b4a9343c
ZD
72632011-06-14 Zdenek Dvorak <ook@ucw.cz>
7264 Tom de Vries <tom@codesourcery.com>
7265
7266 PR target/45098
7267 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
7268 Document changed semantics.
7269 (max_stmt_executions, max_stmt_executions_int): Declare.
7270 * tree-data-ref.c (estimated_loop_iterations)
7271 (estimated_loop_iterations_int): Move functions...
7272 * tree-ssa-loop-niter.c (estimated_loop_iterations)
7273 (estimated_loop_iterations_int): here.
7274 (record_estimate): Change nb_iterations_upper_bound and
7275 nb_iterations_estimate semantics.
7276 (max_stmt_executions, max_stmt_executions_int): New function.
7277 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
7278 (max_stmt_executions_tree): this.
7279 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
7280 estimated_loop_iterations_tree.
7281 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
7282 max_stmt_executions_int instead of estimated_loop_iterations_int.
7283 * predict.c (predict_loops): Idem.
7284 * tree-parloops.c (parallelize_loops): Idem.
7285 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
7286 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
7287 (init_omega_for_ddr_1): Idem.
7288 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
7289 (loop_prefetch_arrays): Idem
7290 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
7291 max_stmt_executions instead of estimated_loop_iterations.
7292 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
7293 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
7294 instead of nb_iterations_upper_bound.
7295
d2640c43
JH
72962011-06-13 Jan Hubicka <jh@suse.cz>
7297
7298 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
7299
40873cdd
RH
73002011-06-14 Richard Henderson <rth@redhat.com>
7301
7302 PR debug/48459
7303 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
7304 (based_loc_descr): Assert it's true.
7305 (compute_frame_pointer_to_fb_displacement): Set it, rather than
7306 aborting immediately.
7307
73e8cb24
SL
73082011-06-14 Sanjin Liu <scliu@faraday-tech.com>
7309 Mingfeng Wu <mingfeng@faraday-tech.com>
7310
7311 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
7312
f835f0a7
JH
73132011-06-13 Jan Hubicka <jh@suse.cz>
7314
7315 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
7316
ee6f1177
JH
73172011-06-13 Jan Hubicka <jh@suse.cz>
7318
7319 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
7320 similarly to DECL_COMDAT.
7321 * cgraphunit.c (cgraph_analyze_function): Likewise.
7322 * ipa.c (function_and_variable_visibility): Likewise.
7323
618abf9a
JH
73242011-06-13 Jan Hubicka <jh@suse.cz>
7325
7326 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
7327 BINFO_VIRTUALS when streaming for ltrans unit.
7328
a45fe02f
DE
73292011-06-13 David Edelsohn <dje.gcc@gmail.com>
7330
7331 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
7332 (movdi_internal64): Same.
7333
73342011-06-13 Edmar Wienskoski <edmar@freescale.com>
7335
e641e495 7336 PR target/44618
7d8d16c3
RM
7337 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
7338 a set of similar patterns, where the MATCH_OPERAND for the function
7339 argument is replaced with individual references to hardware registers.
a45fe02f
DE
7340 (save_fpregs_<mode>): Ditto
7341 (restore_gpregs_<mode>): Ditto
7342 (return_and_restore_gpregs_<mode>): Ditto
7343 (return_and_restore_fpregs_<mode>): Ditto
7344 (return_and_restore_fpregs_aix_<mode>): Ditto
7345
8775a18b
JH
73462011-06-13 Jan Hubicka <jh@suse.cz>
7347
7348 * ipa-utils.c (postorder_stack): New structure.
7349 (ipa_reverse_postorder): Handle aliases.
7350
73512011-06-13 Jan Hubicka <jh@suse.cz>
7352
7353 * ipa-inline.c (reset_edge_caches): Walk aliases.
7354 (update_caller_keys): Do not test inlinability of aliases.
7355 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
7356 (do_estimate_growth): Fix typo.
7357
6c69a029
JH
73582011-06-13 Jan Hubicka <jh@suse.cz>
7359
7360 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
7361 (can_remove_node_now_p): ... here; handle same comdat groups.
7362 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
7363 (inline_call): Update use of can_remove_node_now_p.
7364
10c63ba4 73652011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 7366
10c63ba4 7367 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
7368 condition to disallow non-identical memory locations.
7369 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
7370 preference to bit manipulation instructions.
495f8c14 7371
9aa3f5c5
JH
73722011-06-13 Jan Hubicka <jh@suse.cz>
7373
7374 * cgraph.c (cgraph_for_node_thunks_and_aliases,
7375 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
7376 (nonremovable_p): New function.
7377 (cgraph_can_remove_if_no_direct_calls_p): New function.
7378 (used_from_object_file_p): New functoin.
10c63ba4
EB
7379 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
7380 references from aliases.
9aa3f5c5
JH
7381 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
7382 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
7383 (want_inline_function_called_once_p): Use it; accept aliases called
7384 once, too.
9aa3f5c5
JH
7385 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
7386
30cecf17
RR
73872011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7388
7389 PR target/48454
7390 * config/arm/neon.md (vec_pack_trunc): Set the lengths
7391 correctly for the case with Quad vectors.
7392
29f85237
JJ
73932011-06-13 Jakub Jelinek <jakub@redhat.com>
7394 Ira Rosen <ira.rosen@linaro.org>
7395
7396 PR tree-optimization/49352
7397 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
7398 all, make sure loop_use_stmt after the loop is a def stmt of a used
7399 SSA_NAME that is the only one defined inside of the loop. Don't
7400 check for COND_EXPR and GIMPLE_BINARY_RHS.
7401 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
7402 check_reduction is true.
7403
c3e3f090
JH
74042011-06-11 Jan Hubicka <jh@suse.cz>
7405
7406 PR middle-end/49373
7407 * ipa.c (cgraph_externally_visible_p): Check resolution info.
7408
516e0768
JH
74092011-06-11 Jan Hubicka <jh@suse.cz>
7410
7411 PR middle-end/48836
7412 * ipa-inline-transform.c: Include tree-pass.h
7413 (inline_transform): Set TODO_update_ssa_only_virtuals.
7414 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
7415
903b0a8b
JH
74162011-06-11 Jan Hubicka <jh@suse.cz>
7417
7418 PR middle-end/49378
7419 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
7420 aliases and thunks.
7421
44542f8e
IR
74222011-06-12 Ira Rosen <ira.rosen@linaro.org>
7423
7424 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
7425 Take number of iterations to peel into account for equally frequent
7426 misalignment values.
7427
ea89702b
JH
74282011-06-11 Jan Hubicka <jh@suse.cz>
7429
637c11bd
UB
7430 * lto-streamer-out.c (produce_symtab): Stream out the newly
7431 represented aliases.
ea89702b 7432
380ed5ed
JH
74332011-06-11 Jan Hubicka <jh@suse.cz>
7434
637c11bd
UB
7435 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
7436 varying args.
380ed5ed
JH
7437 (ipa_update_after_lto_read): Likewise.
7438 (ipa_write_node_info): Do not sream call_with_var_arguments.
7439 (ipa_read_node_info): Likewise.
7440
00cfc363
JH
74412011-06-11 Jan Hubicka <jh@suse.cz>
7442
7443 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
7444
39e2db00
JH
74452011-06-11 Jan Hubicka <jh@suse.cz>
7446
7447 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
7448 (lto_symtab_resolve_can_prevail_p): Likewise.
7449 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
7450 * cgraph.c (same_body_aliases_done): New global var.
7451 (cgraph_same_body_alias_1): Rename to ...
7452 (cgraph_create_function_alias): ... this one; reorg to new
7453 representation.
7454 (cgraph_same_body_alias): Use cgraph_create_function_alias;
7455 record references when asked to.
7456 (cgraph_add_thunk): Fix formating.
7457 (cgraph_get_node): Kill same body alias code.
7458 (cgraph_node_for_asm): Likewise.
7459 (cgraph_remove_same_body_alias): Remove.
7460 (cgraph_remove_node): Kill same body alias code.
7461 (cgraph_mark_address_taken_node): Mark also the aliased function
7462 as having address taken.
7463 (dump_cgraph_node): Dump same body aliases.
7464 (cgraph_for_node_thunks_and_aliases): Update for new alias
7465 representation.
7466 (cgraph_for_node_and_aliases): Likewise.
7467 * cgraph.h (same_body): Kll pointer.
7468 (same_body_alias): Update comment.
7469 (same_body_aliases_done): Declare.
7470 (cgraph_remove_same_body_alias): Remove declaration.
7471 (cgraph_create_function_alias): Declare.
7472 (cgraph_process_same_body_aliases): Declare.
7473 (cgraph_function_with_gimple_body_p): Check for alias.
7474 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
7475 (cgraph_alias_aliased_node): New function.
7476 (cgraph_function_node): Update for new aliases.
7477 (cgraph_function_or_thunk_node): Likewise.
7478 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
7479 (inline_call): Remove dead aliases.
10c63ba4
EB
7480 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
7481 name hack for same body aliases.
39e2db00
JH
7482 (clone_of_p): Look through aliases.
7483 (verify_cgraph_node): Verify aliases.
7484 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
7485 (cgraph_process_same_body_aliases): New function.
7486 (process_function_and_variable_attributes): Disable weakref warning on
7487 alias.
7488 (cgraph_analyze_functions): Handle aliases.
7489 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
7490 (assemble_thunks): Rename to ...
7491 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
7492 (cgraph_expand_function): Remove alias output code.
7493 (cgraph_output_in_order): Skip aliases.
7494 (cgraph_preserve_function_body_p): Aliases don't need preserving.
7495 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
7496 (ipa_record_reference): Do not assert on alias references.
7497 (ipa_ref_has_aliases_p): New function.
7498 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
7499 (ipa_ref_has_aliases_p): Declare.
7500 * lto-cgraph.c (lto_output_node): Handle aliases.
7501 (input_node): Likewise.
7502 * lto-streamer-out.c (lto_output): Skip aliases.
7503 (produce_symtab): Kill same_body_alias code.
7504 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
7505 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
7506 * ipa-inline.c (update_caller_keys): Walk aliases.
7507 (inline_small_functions): Fix thinko in previous patch.
7508 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
7509 (function_and_variable_visibility): Do not walk same body aliases.
7510 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
7511 (ipa_pta_execute): Use it.
7512
9ee65b55
UB
75132011-06-11 Uros Bizjak <ubizjak@gmail.com>
7514
7515 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
7516 (*vec_dupv2df): Rename from vec_dupv2df.
7517 (vec_dupv2df): New expander.
7518
75192011-06-11 Uros Bizjak <ubizjak@gmail.com>
7520
7521 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
7522
75232011-06-11 Uros Bizjak <ubizjak@gmail.com>
7524
7525 * config/i386/i386.md: Use default value in "isa" attribute.
7526 * config/i386/sse.md: Ditto.
7527 * config/i386/mmx.md: Ditto.
7528
ba68a139
WG
75292011-06-10 Wei Guozhi <carrot@google.com>
7530
7531 PR target/45335
7532 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
7533 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
7534 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
7535 related peephole2.
7536 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
7537 related peephole2.
7538 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
7539 (arm_legitimate_ldrd_p): New prototype.
7540 (arm_output_ldrd): New prototype.
7541 * config/arm/arm.c (arm_check_ldrd_operands): New function.
7542 (arm_legitimate_ldrd_p): New function.
7543 (arm_output_ldrd): New function.
7544
deced1e2
XDL
75452011-06-10 David Li <davidxl@google.com>
7546
7547 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
7548 * passes.c (passr_eq): New function.
7549 (create_pass_tab): New function.
7550 (pass_traverse): New function.
7551 (dump_one_pass): New function.
7552 (dump_pass_list): New function.
7553 (dump_passes): New function.
7554
71fb4f92
JH
75552011-06-10 Jan Hubicka <jh@suse.cz>
7556
7557 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
7558 setting the nothrow flag.
7559 * ipa-reference.c (propagate): Skip aliases.
7560 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
7561 (propagate_nothrow): Skip aliases; do not update cgraph.
7562 (local_pure_const): Do not update cgraph.
7563 * tree-profile.c (tree_profiling): Do fixup_cfg.
7564
41817394
JH
75652011-06-10 Jan Hubicka <jh@suse.cz>
7566
7567 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
7568 (cgraph_local_node_p): ... here; handle aliases.
7569 (has_addr_references_p): Break out from ...;
7570 (cgraph_remove_unreachable_nodes) ... here.
7571
fb37c1de
JH
75722011-06-10 Jan Hubicka <jh@suse.cz>
7573
7574 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
7575 * common.opt (flag_inline_functions_called_once): Do not
7576 initialize to 1.
fb37c1de 7577
0818c24c
JH
75782011-06-10 Jan Hubicka <jh@suse.cz>
7579
7580 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
7581 (ipcp_initialize_node_lattices): Do not deal with aliases;
7582 Do not try to propagate through thunks.
0818c24c
JH
7583 (ipcp_change_tops_to_bottom): Do not deal with aliases.
7584
c8246dbe
JH
75852011-06-10 Jan Hubicka <jh@suse.cz>
7586
9ee65b55
UB
7587 * ipa-prop.c (ipa_write_node_info): Stream jump functions
7588 for indirect calls.
c8246dbe
JH
7589 (ipa_read_node_info): Likewise.
7590
d7e2a1c1
BS
75912011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7592
7593 PR lto/49302
7594 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
7595 (build_and_insert_call): Likewise.
7596 (build_and_insert_ref): New.
7597 (gimple_expand_builtin_pow): Minor cleanup.
7598 (gimple_expand_builtin_cabs): New.
7599 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 7600
749f25d8
JH
76012011-06-10 Jan Hubicka <jh@suse.cz>
7602
7603 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
7604 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
7605 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
7606 (ipcp_propagate_stage): Skip aliases when propagating.
7607 (ipcp_need_redirect_p): Skip aliases.
7608 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
7609 collect_callers_of_node.
7610 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
7611 for aliases.
7612 (ipa_compute_jump_functions): Look through aliases.
7613
8340fbd7
RO
76142011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7615
7616 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
7617
9aaa7e47
HPN
76182011-06-10 Hans-Peter Nilsson <hp@axis.com>
7619
7620 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
7621 Adjust comments.
7622 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
7623
f1724940
JH
76242011-06-10 Jan Hubicka <jh@suse.cz>
7625
7626 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
7627 Update call of gimple_get_virt_method_for_binfo.
7628 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
7629 refuse_thunks parameter.
7630 (gimple_fold_call): Update.
7631 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
7632
a6f834c5
JH
76332011-06-10 Jan Hubicka <jh@suse.cz>
7634
7635 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
7636 (not_all_callers_have_enough_arguments_p): ... this one; turn into
7637 worker for cgraph_for_node_and_aliases.
7638 (convert_callers_for_node): Break out from ...
7639 (convert_callers): ... here.
7640 (modify_function): Use collect_callers_of_node.
7641 (ipa_early_sra): Use cgraph_for_node_and_aliases.
7642
7871eee3
RG
76432011-06-10 Richard Guenther <rguenther@suse.de>
7644
7645 PR tree-optimization/49361
7646 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
7647 when not already in gimple form.
7648
dae957ae
RG
76492011-06-10 Richard Guenther <rguenther@suse.de>
7650
7651 PR bootstrap/49344
7652 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
7653 FOR_EACH_PHI_OR_STMT_USE.
7654
a5b1779f
JH
76552011-06-10 Jan Hubicka <jh@suse.cz>
7656
7657 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
7658 (clone_inlined_nodes): ... here.
7659 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
7660 to real destination prior inlining.
7661 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
7662 can_early_inline_edge_p, want_early_inline_function_p,
7663 want_early_inline_function_p, want_inline_small_function_p,
7664 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
7665 edge_badness, update_all_callee_keys, lookup_recursive_calls,
7666 add_new_edges_to_heap, inline_small_functions, flatten_function,
7667 inline_always_inline_functions, early_inline_small_functions): Use
7668 cgraph_function_or_thunk_node.
7669 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
7670 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
7671 (do_estimate_edge_growth_1): Break out from ...
7672 (do_estimate_growth) ... here; walk aliases.
7673 (inline_generate_summary): Skip aliases.
7674
c1ae3ca5
RG
76752011-06-10 Richard Guenther <rguenther@suse.de>
7676
9ee65b55
UB
7677 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
7678 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 7679
b504a918
PC
76802011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
7681
7682 * tree.h (error_operand_p): Add.
7683 * dbxout.c (dbxout_type_fields): Use the latter.
7684 * c-decl.c (add_stmt): Likewise.
7685 * gimplify.c (omp_add_variable, omp_notice_variable,
7686 gimplify_scan_omp_clauses): Likewise.
7687
3f5ea9dc 76882011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 7689
3f5ea9dc
GJL
7690 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
7691 when a value is actually passed in regs.
7692
b11b0904 76932011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 7694 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
7695
7696 * doc/invoke.texi (SPARC options): Add -mflat.
7697 * config/sparc/sparc.opt: Likewise.
7698 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
7699 (sparc_flat_expand_prologue): Declare.
7700 (sparc_flat_expand_epilogue): Likewise.
7701 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
7702 (CPP_ENDIAN_SPEC): Replace with...
7703 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
7704 (CPP_SPEC): Adjust to above change.
7705 (EXTRA_SPECS): Likewise.
7706 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
7707 (INCOMING_REGNO): Likewise.
7708 (OUTGOING_REGNO): Likewise.
7709 (LOCAL_REGNO): Likewise.
7710 (SETUP_FRAME_ADDRESSES): Likewise.
7711 (FIXED_REGISTERS): Set 0 for %fp.
7712 (CALL_USED_REGISTERS): Likewise.
7713 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
7714 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
7715 (RETURN_ADDR_REGNUM): Define.
7716 (RETURN_ADDR_RTX): Use it.
7717 (INCOMING_RETURN_ADDR_REGNUM): Define.
7718 (INCOMING_RETURN_ADDR_RTX): Use it.
7719 (DWARF_FRAME_RETURN_COLUMN): Likewise.
7720 (EH_RETURN_REGNUM): Define.
7721 (EH_RETURN_STACKADJ_RTX): Use it.
7722 (EH_RETURN_HANDLER_RTX): Delete.
7723 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
7724 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
7725 Delete.
7726 (struct machine_function): Add frame_size, apparent_frame_size,
7727 frame_base_reg, frame_base_offset, n_global_fp_regs and
7728 save_local_in_regs_p fields.
7729 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
7730 sparc_frame_base_offset, sparc_n_global_fp_regs,
7731 sparc_save_local_in_regs_p): New macros.
7732 (sparc_option_override): Error out if -fcall-saved-REG is specified
7733 for Out registers.
7734 (eligible_for_restore_insn): Fix formatting.
7735 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
7736 (eligible_for_sibcall_delay): Likewise.
7737 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
7738 (sparc_legitimate_address_p): Adjust to above change.
7739 (save_global_or_fp_reg_p): New predicate.
7740 (return_addr_reg_needed_p): Likewise.
7741 (save_local_or_in_reg_p): Likewise.
7742 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
7743 (SORR_SAVE, SORR_RESTORE): Delete.
7744 (sorr_pred_t): New typedef.
7745 (sorr_act_t): New enum.
7746 (save_or_restore_regs): Rename to...
7747 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
7748 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
7749 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
7750 mechanism. Add CFI information for double-word saves in 32-bit mode.
7751 (emit_adjust_base_to_offset): New function extracted from...
7752 (emit_save_or_restore_regs): ...this. Rename the rest to...
7753 (emit_save_or_restore_regs_global_fp_regs): ...this.
7754 (emit_save_or_restore_regs_local_in_regs): New function.
7755 (gen_create_flat_frame_[123]): New functions.
7756 (sparc_expand_prologue): Use SIZE local variable. Adjust.
7757 (sparc_flat_expand_prologue): New function.
7758 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
7759 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
7760 (sparc_flat_expand_epilogue): New function.
7761 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
7762 (output_return): Likewise.
7763 (output_sibcall): Likewise.
7764 (sparc_output_mi_thunk): Likewise.
7765 (sparc_frame_pointer_required): Likewise.
7766 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
7767 function optimization.
7768 * config/sparc/sparc.md (flat): New attribute.
7769 (prologue): Add TARGET_FLAT handling.
7770 (save_register_window): Disable if TARGET_FLAT.
7771 (create_flat_frame_[123]): New patterns.
7772 (epilogue): Add TARGET_FLAT handling.
7773 (sibcall_epilogue): Likewise.
7774 (eh_return): New expander.
7775 (eh_return_internal): New insn and splitter.
7776 (return_internal): Add TARGET_FLAT handling.
7777 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
7778 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
7779 (nonlocal_goto): Add TARGET_FLAT handling.
7780 * config/sparc/t-elf: Add -mflat multilib.
7781 * config/sparc/t-leon: Likewise.
7782
fede8efa
JH
77832011-06-10 Jan Hubicka <jh@suse.cz>
7784
7785 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
7786 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
7787 (self_recursive_p): Use cgraph_function_node.
7788 (propagate_pure_const): Likewise.
7789 (propagate_nothrow): Likewise.
7790 * ipa-reference.c (ipa_reference_get_not_read_global): Use
7791 cgraph_function_node.
7792 (propagate_bits): Likewise.
7793 (propagate): Likewise.
7794
0127c76f
RR
77952011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7796 Richard Earnshaw <rearnsha@arm.com>
7797
9ee65b55 7798 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
7799 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
7800 (*thumb2_movdi_vfp): Delete.
7801 (*arm_movdi_vfp_cortexa8): Delete.
7802 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
7803 (*movdi_vfp_cortexa8): Likewise.
7804
f93fe5a0
RG
78052011-06-10 Richard Guenther <rguenther@suse.de>
7806
7807 * stor-layout.c (initialize_sizetypes): Give names to all
7808 sizetype kinds.
7809
f2164f87
IR
78102011-06-10 Ira Rosen <ira.rosen@linaro.org>
7811
7812 PR tree-optimization/49318
7813 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
7814 irrelevant pattern statements.
7815
3f91c962
HPN
78162011-06-10 Hans-Peter Nilsson <hp@axis.com>
7817
3d223145
HPN
7818 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
7819
3f91c962
HPN
7820 PR bootstrap/49354
7821 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
7822 to last assignment.
7823
b125ad45
JH
78242011-06-09 Jan Hubicka <jh@suse.cz>
7825
7826 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
7827 do not recompute reachable flag.
7828 (cgraph_finalize_function, cgraph_analyze_functions): Set
7829 redefined_extern_inline here.
7830
be330ed4
JH
78312011-06-09 Jan Hubicka <jh@suse.cz>
7832
7833 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
7834 (cgraph_only_called_directly_p): ... this one; bring offline.
7835 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
7836 varpool_used_from_object_file_p): Drop names from the declaratoin.
7837 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
7838 collect_callers_of_node): New.
7839 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
7840 (cgraph_edge_recursive_p): Use cgraph_function_node.
7841 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
7842 (cgraph_node_cannot_be_local_p_1): Break out from ...
7843 (cgraph_node_can_be_local_p): ... here; walk aliases.
7844 (cgraph_for_node_thunks_and_aliases): New function.
7845 (cgraph_for_node_and_aliases): New function.
7846 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
7847 (cgraph_make_node_local) ... here; use
7848 cgraph_for_node_thunks_and_aliases.
be330ed4 7849 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
7850 (cgraph_set_nothrow_flag) ... here;
7851 use cgraph_for_node_thunks_and_aliases.
be330ed4 7852 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
7853 (cgraph_set_const_flag) ... here;
7854 use cgraph_for_node_thunks_and_aliases.
be330ed4 7855 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
7856 (cgraph_set_pure_flag) ... here;
7857 use cgraph_for_node_thunks_and_aliases.
be330ed4 7858 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
7859 (cgraph_propagate_frequency) ... here; use
7860 cgraph_for_node_thunks_and_aliases.
be330ed4 7861 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
7862 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
7863 New functions.
be330ed4
JH
7864 (collect_callers_of_node_1, collect_callers_of_node): New functions.
7865
2ea91d6b
HPN
78662011-06-10 Hans-Peter Nilsson <hp@axis.com>
7867
7868 PR rtl-optimization/49154
7869 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
7870 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
7871 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
7872 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
7873 * config/cris/cris.h (cris_register_move_cost): Remove
7874 !TARGET_V32 code. Tweak comments.
7875
9cf4fb5a
JH
78762011-06-09 Jan Hubicka <jh@suse.cz>
7877
7878 * cgraphbuild.c (record_eh_tables): Mark personality function as having
7879 address taken.
7880
6049a4c8
HPN
78812011-06-10 Hans-Peter Nilsson <hp@axis.com>
7882
c577822e 7883 PR rtl-optimization/49154
9ee65b55
UB
7884 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
7885 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 7886
54e1e4f7 7887 PR rtl-optimization/49154
6049a4c8
HPN
7888 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
7889 register classes.
7890 * doc/tm.texi: Regenerate.
7891
3be68b64
KK
78922011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
7893
7894 PR target/49307
7895 * config/sh/sh.md (UNSPEC_CHKADD): New.
7896 (chk_guard_add): New define_insn_and_split.
7897 (symGOT_load): Use chk_guard_add instead of blockage.
7898
bf806a90
KT
78992011-06-09 Kai Tietz <ktietz@redhat.com>
7900
7901 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
7902
d5a9738b
EB
79032011-06-09 Eric Botcazou <ebotcazou@adacore.com>
7904
7905 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
7906
527e82c2
WG
79072011-06-09 Wei Guozhi <carrot@google.com>
7908
7909 PR target/46975
7910 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
7911 (peephole2 for conditional move): Generate 16 bit instructions.
7912
b8bc3a43
UB
79132011-06-09 Uros Bizjak <ubizjak@gmail.com>
7914
7915 * config/i386/i386.md (*movdi_internal_rex64): Merge
7916 alternatives 6 and 8.
7917
4745da6e
DL
79182011-06-09 David Li <davidxl@google.com>
7919
7920 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
7921 * passes.c (passr_eq): New function.
7922 (create_pass_tab): New function.
7923 (pass_traverse): New function.
7924 (dump_one_pass): New function.
7925 (dump_pass_list): New function.
7926 (dump_passes): New function.
7927
bdf67bcb
DL
79282011-06-09 David Li <davidxl@google.com>
7929
7930 * tree-complex.c (tree_lower_complex): Gate cleanup.
7931 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
7932 (execute_optimize_stdarg): Ditto.
7933 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
7934 (execute_cleanup_eh_1): Ditto.
7935 (execute_cleanup_eh): Ditto.
7936 * gcse.c (gate_rtl_pre): Ditto.
7937 (execute_rtl_pre): Ditto.
7938 * except.c (finish_eh_generation): Ditto.
7939 (convert_to_eh_region_ranges): Ditto.
7940 * cprop.c (one_cprop_pass): Ditto.
7941
547fdef8
BS
79422011-06-09 Bernd Schmidt <bernds@codesourcery.com>
7943
7944 PR target/48673
7945 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
7946 in all basic blocks.
7947
10e48e39
RO
79482011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7949
7950 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
7951 (HAVE_ENABLE_EXECUTE_STACK): Define.
7952 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
7953 (HAVE_ENABLE_EXECUTE_STACK): Define.
7954 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
7955 (HAVE_ENABLE_EXECUTE_STACK): Define.
7956 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
7957 (ENABLE_EXECUTE_STACK): Remove.
7958 (HAVE_ENABLE_EXECUTE_STACK): Define.
7959 [IN_LIBGCC2]: Don't include <windows.h>.
7960 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
7961 (HAVE_ENABLE_EXECUTE_STACK): Define.
7962 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
7963 (HAVE_ENABLE_EXECUTE_STACK): Define.
7964 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
7965 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
7966 (HAVE_ENABLE_EXECUTE_STACK): Define.
7967 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
7968 (HAVE_ENABLE_EXECUTE_STACK): Define.
7969 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
7970 (HAVE_ENABLE_EXECUTE_STACK): Define.
7971 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
7972 (HAVE_ENABLE_EXECUTE_STACK): Define.
7973 * config/alpha/alpha.c (alpha_trampoline_init): Test
7974 HAVE_ENABLE_EXECUTE_STACK.
7975 * config/i386/i386.c (ix86_trampoline_init): Likewise.
7976 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7977 (sparc64_initialize_trampoline): Likewise.
7978 * libgcc2.c [L_enable_execute_stack]: Remove.
7979 * system.h (ENABLE_EXECUTE_STACK): Poison.
7980 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
7981 * doc/tm.texi: Regenerate.
7982 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
7983
8ced31fe
JJ
79842011-06-09 Jakub Jelinek <jakub@redhat.com>
7985
7986 PR middle-end/49308
7987 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
7988 variable. After resetting and rescanning insn continue with previous
7989 statement.
7990
ee610fcd
RO
79912011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7992
7993 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
7994 (gcc_cv_ld_hidden): Likewise.
7995 * configure: Regenerate.
7996 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
7997 (ix86_stack_protect_fail): Mark unused.
7998 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
7999 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
8000 [TARGET_MACHO]: Don't define.
8001 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
8002 (TARGET_STACK_PROTECT_FAIL): Likewise.
8003 (rs6000_stack_protect_fail): Mark unused.
8004 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 8005 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 8006
8f2e22ff
AK
80072011-06-08 Andi Kleen <ak@linux.intel.com>
8008
8009 * varasm.c (get_section): Print location of other conflict
8010 for section conflicts.
8011
815cecbe
AK
80122011-06-08 Andi Kleen <ak@linux.intel.com>
8013
8014 * config/i386/driver-i386.c (host_detect_local_cpu):
8015 Add model 0x2d Intel CPU.
8016
1460ec5c
AK
80172011-06-08 Andi Kleen <ak@linux.intel.com>
8018
8019 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
8020 (globalize_reg): Add decl parameter. Compute location. Pass location
8021 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
8022 * rtl.h (globalize_reg): Update prototype.
8023 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
8024
df17530a
MX
80252011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
8026
8027 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
8028
409fed48
KK
80292011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
8030
8031 PR target/49305
8032 * config/sh/predicates.md (general_movsrc_operand): Check
8033 mode for memory with indexed address for QI and HImode.
8034 (general_movdst_operand): Likewise.
8035
87c16a45
NP
80362011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
8037
b8bc3a43 8038 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 8039
49931fcb
AO
80402011-06-08 Alexandre Oliva <aoliva@redhat.com>
8041
8042 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
8043 (num_ssa_operands): Likewise.
8044 (op_iter_init_phiuse): Forward-declare.
8045 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
8046
29494d1f
NC
80472011-06-08 Nick Clifton <nickc@redhat.com>
8048
8049 * doc/invoke.texi (ARM Options): Update description of
8050 -mthumb-interwork.
8051
4ffae7ff
L
80522011-06-08 H.J. Lu <hongjiu.lu@intel.com>
8053
8054 * config/i386/driver-i386.c (host_detect_local_cpu): Support
8055 unknown Intel family 0x6 CPUs.
8056
d9c77712
MJ
80572011-06-08 Martin Jambor <mjambor@suse.cz>
8058
8059 * tree-sra.c (mark_rw_status): Removed.
8060 (analyze_access_subtree): New parameter parent instead of
8061 mark_read and mark_write, propagate from that.
8062
b1def36c
JB
80632011-06-08 Julian Brown <julian@codesourcery.com>
8064
8065 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
8066 for double-precision helper functions in hard-float mode if only
8067 single-precision arithmetic is supported in hardware.
8068
6c8e9fc9
AM
80692011-06-08 Alexander Monakov <amonakov@ispras.ru>
8070
8071 PR rtl-optimization/49303
8072 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
8073 code_motion_path_driver returned 0 or 1.
8074 (sel_region_finish): Clear h_d_i_d.
8075
c2bbcb0d
KK
80762011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
8077
8078 * config/sh/sh.c (prepare_move_operands): Set pic register
8079 appropriately for global and local dynamic tls models even
8080 if flag_pic is unset.
8081
6976ae51
JM
80822011-06-07 Jason Merrill <jason@redhat.com>
8083
8084 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
8085
bb5b1f5e
XDL
80862011-06-07 Xinliang David Li <davidxl@google.com>
8087 * passes.c (enable_disable_pass): Handle assembler name.
8088 (is_pass_explicitly_enabled_or_disabled): Ditto.
8089
91ffe356
RO
80902011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8091
8092 PR tree-optimization/48497
8093 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
8094
06bc3ec7
BS
80952011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8096
8097 PR tree-optimization/46728
8098 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
8099 to use gimple_val_nonnegative_real_p.
8100 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
8101 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 8102
c074d740
L
81032011-06-07 H.J. Lu <hongjiu.lu@intel.com>
8104
8105 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
8106
8973b112
SG
81072011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
8108
8109 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
8110 constant vectors.
8111
67b88453
RG
81122011-06-07 Richard Guenther <rguenther@suse.de>
8113
8114 * stor-layout.c (initialize_sizetypes): Initialize all
8115 sizetypes based on target definitions.
8116 (set_sizetype): Remove.
8117 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
8118 * tree.h (set_sizetype): Remove.
8119
1dcad079
NC
81202011-06-07 Nick Clifton <nickc@redhat.com>
8121
8122 * config.gcc: Unify V850 architecture options and add support for
8123 newer V850 architectures.
8124 * config/v850/t-v850e: Delete.
8125
009db074
RG
81262011-06-07 Richard Guenther <rguenther@suse.de>
8127
8128 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
8129 Call set_sizetype from here.
8130
f373314f
AS
81312011-06-07 Andrew Stubbs <ams@codesourcery.com>
8132
8133 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
8134 (*maddhisi4tb, *maddhisi4tt): New define_insns.
8135
c536876e
AS
81362011-06-07 Bernd Schmidt <bernds@codesourcery.com>
8137 Andrew Stubbs <ams@codesourcery.com>
8138
8139 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
8140 multiplies.
8141 * doc/md.texi (Canonicalization of Instructions): Document widening
8142 multiply canonicalization.
8143
308dc890
JJ
81442011-06-07 Jakub Jelinek <jakub@redhat.com>
8145
8146 PR gcov-profile/49299
b8bc3a43 8147 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 8148
383d9c83
IR
81492011-06-07 Ira Rosen <ira.rosen@linaro.org>
8150
8151 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
8152 a pointer.
8153 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
8154 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
8155 vect_recog_pow_pattern): Likewise.
8156 (vect_pattern_recog_1): Remove declaration.
8157 (widened_name_p): Remove declaration. Add new argument to specify
8158 whether to check that both types are either signed or unsigned.
8159 (vect_recog_widen_mult_pattern): Update documentation. Handle
8160 unsigned patterns and multiplication by constants.
8161 (vect_pattern_recog_1): Update vect_recog_func references. Use
8162 statement information from the statement returned from pattern
8163 detection functions.
8164 (vect_pattern_recog): Update vect_recog_func reference.
8165 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
8166 multiplication by a constant use the type of the other operand.
8167
4de4b0f2
RS
81682011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8169
8170 PR rtl-optimization/49145
8171 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
8172
a9d24544
JJ
81732011-06-06 Jakub Jelinek <jakub@redhat.com>
8174
99a5e049
JJ
8175 PR debug/49262
8176 * dwarf2out.c (native_encode_initializer): Decrement count in each
8177 iteration.
8178
04902d4c
JJ
8179 PR debug/49294
8180 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
8181 non-MODE_INT modes.
8182
a9d24544
JJ
8183 PR c++/49264
8184 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
8185 if stmt folded into nothing.
b8bc3a43
UB
8186 * tree-inline.c (fold_marked_statements): If a builtin at the end of
8187 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
8188 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
8189 to be NULL. Don't compute count and frequency if new_call is NULL.
8190
47c79d56
DN
81912011-06-04 Diego Novillo <dnovillo@google.com>
8192
8193 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
8194 (cgraph.o): Likewise.
8195 (cgraphunit.o): Likewise.
8196 * cgraphunit.c: Include lto-streamer.h
8197 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
8198 if LTO is enabled.
8199 * lto-streamer-in.c (unpack_value_fields): Call
8200 streamer_hooks.unpack_value_fields if set.
8201 (lto_materialize_tree): For unhandled nodes, first try to
8202 call lto_streamer_hooks.alloc_tree, if it exists.
8203 (lto_input_ts_decl_common_tree_pointers): Move reading of
8204 DECL_INITIAL to lto_streamer_read_tree.
8205 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
8206 (lto_streamer_read_tree): New.
8207 (lto_reader_init): Rename from lto_init_reader.
8208 Move initialization code to lto/lto.c.
8209 * lto-streamer-out.c (pack_value_fields): Call
8210 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
8211 (lto_output_tree_ref): For tree nodes that are not normally indexable,
8212 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 8213 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
8214 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
8215 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
8216 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
8217 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
8218 (lto_streamer_write_tree): New.
8219 (lto_output): Call lto_streamer_init directly.
8220 (lto_writer_init): Remove.
8221 * lto-streamer.c (streamer_hooks): New.
8222 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
8223 instead of lto_preload_common_nodes.
8224 (lto_is_streamable): Move from lto-streamer.h
8225 (lto_streamer_hooks_init): New.
8226 (streamer_hooks): New.
8227 (streamer_hooks_init): New.
8228 * lto-streamer.h (struct output_block): Forward declare.
8229 (struct lto_input_block): Likewise.
8230 (struct data_in): Likewise.
8231 (struct bitpack_d): Likewise.
8232 (struct streamer_hooks): Declare.
8233 (streamer_hooks): Declare.
8234 (lto_streamer_hooks_init): Declare.
8235 (lto_streamer_write_tree): Declare.
8236 (lto_streamer_read_tree): Declare.
8237 (streamer_hooks_init): Declare.
8238 (lto_is_streamable): Move to lto-streamer.c
8239
22afe143
AK
82402011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8241
8242 * longlong.h (smul_ppmm): The resulting register pair contains the
8243 higher order word first.
8244
3906ea1b
BS
82452011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8246
8247 PR tree-optimization/46728
8248 * builtins.c (powi_table): Remove.
8249 (powi_lookup_cost): Remove.
8250 (powi_cost): Remove.
8251 (expand_powi_1): Remove.
8252 (expand_powi): Remove.
8253 (expand_builtin_pow_root): Remove.
8254 (expand_builtin_pow): Remove.
8255 (expand_builtin_powi): Eliminate handling of constant exponent.
8256 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 8257
3598cabd
AO
82582011-06-06 Alexandre Oliva <aoliva@redhat.com>
8259
8260 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
8261
a7a110bb
AO
82622011-06-06 Alexandre Oliva <aoliva@redhat.com>
8263
8264 * dce.c (reset_unmarked_insns_debug_uses): New.
8265 (delete_unmarked_insns): Skip debug insns.
8266 (prescan_insns_for_dce): Likewise.
8267 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
8268 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
8269 active reg can be found.
8270 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
8271 (convert_regs_1): Use it.
8272
6d8402ac
AO
82732011-06-06 Alexandre Oliva <aoliva@redhat.com>
8274
8275 * tree-pretty-print.c (dump_function_header): Add flags.
8276 Don't dump decl_uid with nouid.
8277 * tree-pretty-print.h (dump_function_header): Adjust.
8278 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
8279 * passes.c (pass_init_dump_file): Pass dump_flags on.
8280 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
8281
f75e1f1e
AO
82822011-06-06 Alexandre Oliva <aoliva@redhat.com>
8283
8284 PR bootstrap/49270
8285 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
8286
275311c4
MP
82872011-06-06 Mikael Pettersson <mikpe@it.uu.se>
8288
8289 PR tree-optimization/49243
8290 * calls.c (setjmp_call_p): Also check if fndecl has the
8291 returns_twice attribute.
8292
aa4203e7
RO
82932011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8294
8295 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
8296 -ffast-math etc.
8297
48f9d59a
RH
82982011-06-06 Richard Henderson <rth@redhat.com>
8299 Georg-Johann Lay <avr@gjlay.de>
8300
8301 PR target/42210
8302 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
8303 New predicates.
8304 * config/avr/avr.md ("insv"): New insn expander.
8305 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
8306 "*insv.not.io", "*insv.reg"): New insns.
8307
11494830
HPN
83082011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
8309
8310 PR target/49285
b8bc3a43
UB
8311 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
8312 to nonimmediate_operand from memory_operand for the operand that is to
8313 be forced to memory by the expander. Lose the constraints.
11494830 8314
679e70df
EB
83152011-06-05 Eric Botcazou <ebotcazou@adacore.com>
8316
8317 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
8318 EH return when delayed branches are disabled.
8319
4d3d7f15
UB
83202011-06-05 Uros Bizjak <ubizjak@gmail.com>
8321
8322 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
8323 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
8324 calculation.
8325 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
8326 Simplify MODE_V1DF and MODE_V2SF handling.
8327 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
8328 Simplify MODE_SF handling.
8329
a45c0557
JH
83302011-06-04 Jan Hubicka <jh@suse.cz>
8331
8332 PR tree-optimization/48893
8333 PR tree-optimization/49091
8334 PR tree-optimization/49179
8335 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
8336 Bounds check.
8337
26740835
JH
83382011-06-04 Jan Hubicka <jh@suse.cz>
8339
8340 PR lto/48954
b8bc3a43
UB
8341 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
8342 bitmaps.
26740835 8343
014ab419
JW
83442011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
8345
8346 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
8347
407bcba7
JJ
83482011-06-04 Jakub Jelinek <jakub@redhat.com>
8349
8350 PR target/49281
8351 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
8352 to be strictly smaller than 1 << shiftcount.
8353
e3195c52
JH
83542011-06-04 Jan Hubicka <jh@suse.cz>
8355
8356 PR tree-optimize/48929
8357 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
8358 of empty predicate.
8359
047d33a0
AO
83602011-06-04 Alexandre Oliva <aoliva@redhat.com>
8361
8362 PR debug/48333
8363 * calls.c (emit_call_1): Prefer the __builtin declaration of
8364 builtin functions.
8365
dc587809
DN
83662011-06-03 Diego Novillo <dnovillo@google.com>
8367
8368 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
8369 (lto_input_tree_pointers): Likewise.
8370 * lto-streamer-out.c (pack_value_fields): Likewise.
8371 (lto_output_tree_pointers): Likewise.
8372 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
8373 and OPTIMIZATION_NODE.
8374
58cd1d70
RO
83752011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8376
8377 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
8378 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
8379 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
8380 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
8381 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
8382 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
8383 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
8384 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
8385 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
8386 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
8387 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
8388 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
8389 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
8390 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
8391 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
8392 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
8393 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
8394 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
8395 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
8396 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
8397 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
8398 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
8399 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
8400 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
8401 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
8402 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
8403 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
8404 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
8405 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
8406 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
8407 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
8408 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
8409 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
8410 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
8411 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
8412 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
8413 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
8414 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
8415 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
8416 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
8417 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
8418 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
8419 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
8420 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
8421 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
8422 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
8423 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
8424 * system.h (MD_UNWIND_SUPPORT): Poison.
8425 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
8426 * doc/tm.texi: Regenerate.
8427 * unwind-dw2.c: Include md-unwind-support.h instead of
8428 MD_UNWIND_SUPPORT.
8429 * config/ia64/unwind-ia64.c: Likewise.
8430 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
8431
10c63ba4 84322011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
8433
8434 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
8435
1b7a0148
RH
84362011-06-03 Richard Henderson <rth@redhat.com>
8437 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8438
8439 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
8440 (sigill_hdlr): Correct insn, insn size.
8441 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
8442
737346fa
RO
84432011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8444
8445 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
8446 t-slibgcc-dummy.
8447 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
8448 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
8449 * config/mips/t-iris: Remove.
8450 * config/mips/t-irix6: New file.
8451 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
8452
c192cee6
RO
84532011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8454
8455 * Makefile.in (LIB2ADDEHDEP): Remove.
8456 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
8457 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
8458 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
8459 * config/t-darwin (LIB2ADDEHDEP): Remove.
8460 * config/t-freebsd (LIB2ADDEHDEP): Remove.
8461 * config/t-linux (LIB2ADDEHDEP): Remove.
8462
d5828cc7
DN
84632011-06-03 Diego Novillo <dnovillo@google.com>
8464
8465 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
8466 (lto_register_var_decl_in_symtab): Likewise.
8467 (lto_register_function_decl_in_symtab): Likewise.
8468 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 8469 logic to uniquify_nodes.
d5828cc7 8470
ee33b5f0
RO
84712011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8472
8473 * config/alpha/t-osf5: Remove.
8474 * config/alpha/t-osf-pthread: Remove.
8475 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
8476 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
8477
16868d84
JB
84782011-06-03 Julian Brown <julian@codesourcery.com>
8479
8480 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
8481 (strongarm1110): Use strongarm tuning.
4d3d7f15 8482 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
8483 * config/arm/arm.c (arm_strongarm_tune): New.
8484 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
8485 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
8486 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
8487 setting, using previous defaults or 1 for Cortex-A5.
8488 (arm_option_override): Set max_insns_skipped from current tuning.
8489
1cec1285
NS
84902011-06-03 Nathan Sidwell <nathan@codesourcery.com>
8491
8492 * doc/install.texi (Options specification): Document --with-specs.
8493
eed55426
RR
84942011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8495
8496 * config/arm/neon.md (orndi3_neon): Actually split it.
8497
d5b6cc25
AO
84982011-06-02 Alexandre Oliva <aoliva@redhat.com>
8499
8500 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
8501 * var-tracking.c (reverse_op): Limite recurse depth to 5.
8502
2ba42841
AO
85032011-06-02 Alexandre Oliva <aoliva@redhat.com>
8504
8505 PR debug/47590
8506 * target.def (delay_sched2, delay_vartrack): New.
8507 * doc/tm.texi.in: Update.
8508 * doc/tm.texi: Rebuild.
8509 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
8510 * var-tracking.c (gate_handle_var_tracking): Likewise.
8511 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
8512 (bfin_flag_var_tracking): Drop.
8513 (output_file_start): Don't save and override flag_var_tracking.
8514 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
8515 (bfin_reorg): Test original variables.
8516 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
8517 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
8518 (ia64_flag_var_tracking): Drop.
8519 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
8520 (ia64_file_start): Don't save and override flag_var_tracking.
8521 (ia64_override_options_after_change): Ditto
8522 flag_schedule_insns_after_reload.
8523 (ia64_reorg): Test original variables.
8524 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
8525 (picochip_flag_var_tracking): Drop.
8526 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
8527 (picochip_option_override): Don't save and override
8528 flag_schedule_insns_after_reload.
8529 (picochip_asm_file_start): Ditto flag_var_tracking.
8530 (picochip_reorg): Test original variables.
8531 * config/spu/spu.c (spu_flag_var_tracking): Drop.
8532 (TARGET_DELAY_VARTRACK): Define.
8533 (spu_var_tracking): New.
8534 (spu_machine_dependent_reorg): Call it.
8535 (asm_file_start): Don't save and override flag_var_tracking.
8536
a700b5f0
KK
85372011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
8538
8539 PR target/49163
8540 * config/sh/predicates.md (general_movsrc_operand): Return 0
8541 for memory and memory subreg of which address is an invalid
8542 indexed address for QI and HImode.
8543 (general_movdst_operand): Likewise.
8544
76015c34
EB
85452011-06-02 Eric Botcazou <ebotcazou@adacore.com>
8546
8547 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
8548 edges only, when there is a non-local label in the function.
8549 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
8550
4e76acd2
UB
85512011-06-02 Uros Bizjak <ubizjak@gmail.com>
8552
8553 * config/i386/constraints.md (Y3): New register constraint.
8554 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
8555 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
8556 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
8557 *sse2_interleave_lowv2df.
8558
288f605f
JB
85592011-06-02 Julian Brown <julian@codesourcery.com>
8560
8561 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
8562 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
8563 (arm_cortex_a5_tune): New.
8564
7ec70105
JB
85652011-06-02 Julian Brown <julian@codesourcery.com>
8566
153668ec
JB
8567 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
8568 * config/arm/arm.c (arm_default_branch_cost): New.
8569 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
8570 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
8571 (arm_fa726_tune): Set branch_cost field using
8572 arm_default_branch_cost.
8573 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
8574 current_tune structure.
8575 * dojump.c (tm_p.h): Include file.
8576
85772011-06-02 Julian Brown <julian@codesourcery.com>
8578
8579 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
8580 tuning.
7ec70105
JB
8581 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
8582 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
8583 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
8584 field.
8585 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
8586 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
8587 (arm_fa726te_tune): Add prefer_constant_pool setting.
8588 (arm_v6t2_tune, arm_cortex_tune): New.
8589 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
8590 prefer_constant_pool setting.
8591
aad61732
UB
85922011-06-02 Uros Bizjak <ubizjak@gmail.com>
8593
4e76acd2
UB
8594 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
8595 switch statement.
aad61732
UB
8596 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
8597 (*movdf_internal) <case 6,7,8>: Ditto.
8598
4e76acd2 8599 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
8600 * config/i386/sse.md (vec_set<mode>_0): Merge with
8601 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
8602 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
8603 *vec_extractv2di_1_sse.
8604 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
8605 and *vec_concatv2di_rex64_sse.
8606
6e588138
SH
86072011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
8608
8609 PR target/48807
8610 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
8611 of cgraph_local_info for null before attempting to use it.
8612
bc6d3f91
EB
86132011-06-02 Eric Botcazou <ebotcazou@adacore.com>
8614
8615 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
8616 (current_function_dynamic_alloc_count): Delete.
8617 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
8618 (expand_builtin_nonlocal_goto): Remove obsolete comment.
8619 (expand_builtin_update_setjmp_buf): Remove dead code.
8620 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
8621 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
8622 support.
8623 * function.c (instantiate_virtual_regs): Likewise.
8624 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
8625 for a block with a single abnormal incoming edge.
8626 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 8627 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
8628 * config/sparc/sparc-protos.h (load_got_register): Declare.
8629 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
8630 (load_got_register): Make global.
8631 (sparc_frame_pointer_required): Add 'static'.
8632 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
8633 (sparc_builtin_setjmp_frame_value): New function.
8634 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
8635 (save_stack_nonlocal): New expander.
8636 (restore_stack_nonlocal): Likewise.
8637 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
8638 (nonlocal_goto_internal): New insn.
8639 (goto_handler_and_restore): Delete.
8640 (builtin_setjmp_setup): Likewise.
8641 (do_builtin_setjmp_setup): Likewise.
8642 (setjmp): Likewise.
8643 (builtin_setjmp_receiver): New expander.
8644
69282fee
DL
86452011-06-01 David Li <davidxl@google.com>
8646
8647 PR middle-end/49261
8648 * tree-pretty-print.c (dump_function_header): Format cleanup.
8649
e95873dd
KK
86502011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
8651
8652 PR target/49238
8653 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
8654 needed when original operands are used for msw_skip comparison.
8655
88c15821
JJ
86562011-06-01 Jakub Jelinek <jakub@redhat.com>
8657
8658 PR debug/49250
8659 * var-tracking.c (add_uses, add_stores): Don't call
8660 cselib_subst_to_values on ENTRY_VALUE.
8661
07233947
DN
86622011-06-01 Diego Novillo <dnovillo@google.com>
8663
8664 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
8665 output_record_start with LTO_null instead of output_zero.
8666 (lto_output_ts_binfo_tree_pointers): Likewise.
8667 (lto_output_tree): Likewise.
8668 (output_eh_try_list): Likewise.
8669 (output_eh_region): Likewise.
8670 (output_eh_lp): Likewise.
8671 (output_eh_regions): Likewise.
8672 (output_bb): Likewise.
8673 (output_function): Likewise.
8674 (output_unreferenced_globals): Likewise.
8675 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
8676 instead of NUM_TREE_CODES.
8677 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
8678 (lto_output_int_in_range): Change << to >> when shifting VAL.
8679
4ee3537a
DN
86802011-06-01 Diego Novillo <dnovillo@google.com>
8681
8682 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
8683 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
8684
02972eaf
RS
86852011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
8686
8687 PR target/45074
8688 * optabs.h (valid_multiword_target_p): Declare.
8689 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
8690 doing multi-word operations.
8691 * optabs.c (expand_binop): Likewise.
8692 (expand_doubleword_bswap): Likewise.
8693 (expand_absneg_bit): Likewise.
8694 (expand_unop): Likewise.
8695 (expand_copysign_bit): Likewise.
8696 (multiword_target_p): New function.
8697
4d41c2d1
RS
86982011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
8699
8700 PR rtl-optimization/48830
8701 PR rtl-optimization/48808
8702 PR rtl-optimization/48792
8703 * reload.c (push_reload): Check contains_reg_of_mode.
8704 * reload1.c (strip_paradoxical_subreg): New function.
8705 (gen_reload_chain_without_interm_reg_p): Use it to handle
8706 paradoxical subregs.
8707 (emit_output_reload_insns, gen_reload): Likewise.
8708
5f57dccb
DL
87092011-06-01 David Li <davidxl@google.com>
8710
8711 * predict.c : Change pass name
8712 * ipa.c: Ditto.
8713 * dce.c: Ditto.
8714 * tree-profile.c: Ditto.
8715 * except.c: Ditto.
8716
ea6cf778
DL
87172011-06-01 David Li <davidxl@google.com>
8718
8719 * tree-pretty-print.c (dump_function_header): New function.
8720 * final.c (rest_of_clean_state): Use header dumper.
8721 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
8722 * passes.c (pass_init_dump_file): Use header dumper.
8723
ebdc0d4b
JJ
87242011-06-01 Jakub Jelinek <jakub@redhat.com>
8725
eeeb9b49
JJ
8726 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
8727 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
8728 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
8729 New functions.
8730 (mem_loc_descriptor): Use them.
8731
ebdc0d4b
JJ
8732 * var-tracking.c (create_entry_value): New function.
8733 (vt_add_function_parameter): Use it.
8734
0699e415
RO
87352011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8736
8737 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
8738 Include <signal.h>, <ucontext.h>.
8739 (sigill_caught): Define.
8740 (sigill_hdlr): New function.
8741 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
8742 insns can be executed.
aad61732 8743 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
8744 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
8745
ca24c5ad
RO
87462011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8747
8748 * config/t-slibgcc-darwin: Move to ...
aad61732 8749 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
8750 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
8751 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
8752 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 8753 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
8754 Remove i386/t-crtstuff from tmake_file.
8755 (i[34567]86-*-solaris2*): Remove t-svr4,
8756 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
8757 t-slibgcc-dummy.
8758 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
8759 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
8760 sparc/t-crtfm from tmake_file.
8761 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
8762 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
8763 Remove extra_parts.
8764 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
8765 * config/i386/t-nwld (SHLIB_LINK): Remove.
8766 * config/i386/t-rtems-i386: Rename to ...
8767 * config/i386/t-rtems: ... this.
8768 ($(T)crti.o, $(T)crtn.o): Remove.
8769 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
8770 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
8771 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
8772 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
8773 EXTRA_MULTILIB_PARTS): Remove.
8774 * config/sparc/t-sol2-64: Likewise.
8775 * config/sparc/t-sol2: Remove.
8776 * config/sparc/t-crtin: Remove.
8777 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
8778 * config/i386/gmon-sol2.c: Remove.
8779 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
8780 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
8781 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
8782 * config/i386/sol2-gc1.asm: Remove.
8783 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
8784 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
8785 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
8786 * config/t-slibgcc-sld: Remove.
8787
a78d13c3
JJ
87882011-06-01 Jakub Jelinek <jakub@redhat.com>
8789
8790 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
8791 base_type_for_mode with op_mode instead of mode.
8792
572070ef
PB
87932011-06-01 Paul Brook <paul@cpodesourcery.com>
8794
8795 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
8796 Cortex-A15.
8797 * config/arm/arm-tune.md: Regenerate.
8798 * config/arm/arm-tables.opt: Regenerate.
8799 * config/arm/arm.c (FL_DIV): Rename...
8800 (FL_THUMB_DIV): ... to this.
8801 (FL_ARM_DIV): Define.
8802 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
8803 (arm_arch_hwdiv): Remove.
8804 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
8805 (arm_issue_rate): Add cortexr5.
8806 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
8807 __ARM_ARCH_EXT_IDIV__.
8808 (TARGET_IDIV): Define.
8809 (arm_arch_hwdiv): Remove.
8810 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
8811 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
8812 (divsi3, udivsi3): New patterns.
8813 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
8814 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
8815
11026b51
MJ
88162011-06-01 Martin Jambor <mjambor@suse.cz>
8817
8818 * ipa-utils.c (ipa_dfs_info): New field scc_no.
8819 * ipa-utils.c (searchc): Set scc_no.
8820
b6156cf2
MJ
88212011-06-01 Martin Jambor <mjambor@suse.cz>
8822
8823 * ipa-utils.c (searchc_env): New field allow_overwritable.
8824 (searchc): do not ignore edges to overwritable nodes if indicated
8825 by env->allow_overwritable.
8826 (ipa_reduced_postorder): Set env.allow_overwritable.
8827
6807da97
RG
88282011-06-01 Richard Guenther <rguenther@suse.de>
8829
8830 * tree.c (free_lang_data): Do not reset boolean_type_node nor
8831 char_type_node.
8832 * lto-streamer.c (lto_record_common_node): Take node pointer,
8833 do not register types.
8834 (lto_preload_common_nodes): Explicitly skip preloading nodes
8835 that differ between frontends.
8836
66bd20e7 88372011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
8838
8839 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
8840 NON_FLOAT_REGS.
8841
66bd20e7 88422011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
8843
8844 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
8845 parameter value for dump. Dump cost on outermost call only.
8846 (rs6000_memory_move_cost): Dump cost on outermost call only.
8847
7351d8da
JJ
88482011-05-31 Jakub Jelinek <jakub@redhat.com>
8849
ead7c399
JJ
8850 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
8851 DW_OP_GNU_convert ops.
8852
509f4495
JJ
8853 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
8854 cselib_preserve_constants.
8855 (cselib_lookup_1): If cselib_preserve_constants,
8856 a new VALUE is being created for REG and there is a VALUE for the
8857 same register in wider mode, add another loc with lowpart SUBREG of
8858 the wider VALUE.
8859 (cselib_subst_to_values): Handle ENTRY_VALUE.
8860 * var-tracking.c (replace_expr_with_values): Return NULL for
8861 ENTRY_VALUE too.
8862 * dwarf2out.c (convert_descriptor_to_signed): New function.
8863 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
8864 instead of two shifts.
8865 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
8866 the right mode if needed.
8867 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
8868 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
8869 convert_descriptor_to_signed.
8870 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
8871 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
8872
7351d8da
JJ
8873 PR target/48688
8874 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
8875
5cc93ee0
UB
88762011-05-31 Uros Bizjak <ubizjak@gmail.com>
8877
8878 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
8879 of X87MODEI12 and SWI48x instead of SSEMODEI24.
8880 (SWI248x): New mode iterator, rename from X87MODEI.
8881 (X87MODEI): Remove mode iterator.
8882 (X87MODEI12): Ditto.
8883 (SSEMODEI24): Ditto.
8884
f0686e78
AO
88852011-05-31 Alexandre Oliva <aoliva@redhat.com>
8886
8887 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
8888 * doc/invoke.texi: Document max-vartrack-expr-depth.
8889 * var-tracking.c (EXPR_DEPTH): New.
8890 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
8891
f3308413
AO
88922011-05-31 Alexandre Oliva <aoliva@redhat.com>
8893
8894 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
8895 * config/i386/sse.md: Add n to negated FMA pattern names.
8896
28c14a04
AO
88972011-05-31 Alexandre Oliva <aoliva@redhat.com>
8898
8899 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
8900
70efc82d
AO
89012011-05-31 Alexandre Oliva <aoliva@redhat.com>
8902
5cc93ee0 8903 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 8904
6ba5d856
UB
89052011-05-31 Uros Bizjak <ubizjak@gmail.com>
8906
8907 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
8908 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
8909
89102011-05-31 Uros Bizjak <ubizjak@gmail.com>
8911
8912 * config/i386/i386.md (*movtf_internal): Avoid allocating general
8913 registers. Penalize F*r->o alternative to prevent partial memory
8914 stalls. Slightly penalize *roF->*r alternative. Generate SSE
8915 CONST_DOUBLE immediates when optimizing function for size. Do not move
8916 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
8917 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
8918 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
8919 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
8920 alternatives.
8921 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
8922
8923 (fp_register_operand splitters): Use fp_register_operand
8924 constraint. Do not use FP_REG_P in insn condition.
8925 (any_fp_register_operand splitters): Use any_fp_register_operand
8926 constraint. Do not use ANY_FP_REG_P in insn condition.
8927
533c07c5
JH
89282011-05-31 Jan Hubicka <jh@suse.cz>
8929
8930 * cgraph.h (cgraph_inline_failed_t): Give enum a name
8931 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
8932 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
8933 (lto_output_edge): Use output_enum and var_len_unsigned.
8934 (lto_output_varpool_node): Likewise.
8935 (input_overwrite_node): Do not take resolution parameter;
8936 extract it from a bitpack.
8937 (input_node): Do not read resolution; use input_enum and
8938 var_len_unsigned.
8939 (input_varpool_node): Likewise.
8940 (input_edge): Likewise.
8941 (input_cgraph_1): Likewise.
8942
2611db71
RG
89432011-05-31 Richard Guenther <rguenther@suse.de>
8944
8945 * gimple.c (gimple_register_canonical_type): Do not register
8946 any types via gimple_register_type.
8947
b9e57365
JH
89482011-05-31 Jan Hubicka <jh@suse.cz>
8949
8950 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
8951 of thunks.
8952
35979cc2
JJ
89532011-05-31 Jakub Jelinek <jakub@redhat.com>
8954
8955 PR rtl-optimization/49235
8956 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
8957 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
8958
8f7de592
IR
89592011-05-31 Ira Rosen <ira.rosen@linaro.org>
8960
8961 PR tree-optimization/49093
8962 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
8963 data references.
8964
8d8a3bda
DS
89652011-05-31 Dodji Seketeli <dodji@redhat.com>
8966
8967 PR debug/49047
8968 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 8969 for concrete functions containing the code of cloned functions.
8d8a3bda 8970
2e87621c
RG
89712011-05-31 Richard Guenther <rguenther@suse.de>
8972
8973 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
8974 to ...
8975 (forward_propagate_into_comparison_1): ... this.
8976 (forward_propagate_comparison): Rename to ...
8977 (forward_propagate_into_comparison): ... this. Split out
8978 real forward propagation code to ...
8979 (forward_propagate_comparison): ... this.
8980 (forward_propagate_into_gimple_cond): Remove looping.
8981 (forward_propagate_into_cond): Likewise.
8982 (simplify_not_neg_expr): Return whether we have done something.
8983 (simplify_gimple_switch): Likewise.
8984 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
8985 (ssa_forward_propagate_and_combine): ... this. Re-structure
8986 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 8987 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
8988 (pass_forwprop): Adjust.
8989
5a880d5d
ILT
89902011-05-30 Ian Lance Taylor <iant@google.com>
8991
8992 * godump.c (go_format_type): Correct length of name added to
8993 obstack for anonymous field.
8994
5f133038
KK
89952011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
8996
8997 PR target/49186
8998 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
8999 part of the second operand is 0.
9000
b17d5426
UB
90012011-05-30 Uros Bizjak <ubizjak@gmail.com>
9002
9003 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
9004 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
9005 to memory for !TARGET_MEMORY_MISMATCH_STALL.
9006 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 9007 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
9008 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
9009 when optimizing function for size. Do not move CONST_DOUBLEs
9010 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
9011 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
9012 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
9013 check for ANY_FP_REGNO_P instead.
9014 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
9015 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
9016 function for speed.
9017 * config/i386/i386.c (ix86_option_override_internal): Do not
9018 set TARGET_INTEGER_DFMODE_MOVES here.
9019
a0cd843f
L
90202011-05-30 H.J. Lu <hongjiu.lu@intel.com>
9021
9022 PR target/49168
aad61732 9023 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 9024
006a5f38
JJ
90252011-05-30 Jakub Jelinek <jakub@redhat.com>
9026
9027 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
9028 DW_TAG_rvalue_reference_type even for
9029 -gdwarf-4 -fno-debug-types-section.
9030
6e96f98a
BS
90312011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9032
9033 PR tree-optimization/46728
9034 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
9035 (build_and_insert_binop): New.
9036 (gimple_expand_builtin_pow): Reorder args for
9037 build_and_insert_call; use build_and_insert_binop; add more
9038 optimizations for fractional exponents.
b17d5426 9039
4f60111f
NF
90402011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
9041
9042 PR bootstrap/49190
9043
9044 Revert:
9045 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9046
9047 * tree.h (struct tree_identifier): Inherit from tree_typed, not
9048 tree_common.
9049 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
9050 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
9051 TS_BASE instead of TS_COMMON.
9052 * varasm.c (assemble_name): Remove assert.
9053
3fd7879d
RS
90542011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9055
9056 * config.gcc: Keep obselete list sorted.
9057
80060f7a
JJ
90582011-05-30 Jakub Jelinek <jakub@redhat.com>
9059 Eric Botcazou <ebotcazou@adacore.com>
9060
9061 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
9062 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
9063 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
9064 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
9065 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
9066
17e99cdb
RG
90672011-05-30 Richard Guenther <rguenther@suse.de>
9068
9069 * gimple.c (gimple_types_compatible_p_1): Compare record
9070 and union type members properly.
9071
42b05b6e
RG
90722011-05-30 Richard Guenther <rguenther@suse.de>
9073
9074 PR tree-optimization/49210
6ba5d856
UB
9075 * ipa-split.c (split_function): Care for the case where the call
9076 result is not trivially convertible to the result holding variable.
42b05b6e 9077
f3321158
RG
90782011-05-30 Richard Guenther <rguenther@suse.de>
9079
9080 PR tree-optimization/49218
9081 * tree-vrp.c (adjust_range_with_scev): Properly check whether
9082 overflow occured.
9083
d12d8efe
RG
90842011-05-30 Richard Guenther <rguenther@suse.de>
9085
9086 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
9087 New function split out from ...
9088 (forward_propagate_into_gimple_cond): ... here. Adjust.
9089 (forward_propagate_into_cond): Likewise.
9090 (forward_propagate_comparison): Also propagate into
9091 comparisons on assignment RHS. Change return value to
9092 behave similar to forward_propagate_into_cond.
9093 (tree_ssa_forward_propagate_single_use_vars): Handle
9094 strict-overflow warnings properly for forward_propagate_comparison.
9095
df33b41f
RO
90962011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9097
9098 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
9099 from plugin linker.
9100 * configure: Regenerate.
9101
69940d4d
IR
91022011-05-30 Ira Rosen <ira.rosen@linaro.org>
9103
9104 PR tree-optimization/49199
9105 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 9106 non-reduction operands are either defined in the loop or by induction.
69940d4d 9107
226c52aa
XDL
91082011-05-29 Xinliang David Li <davidxl@google.com>
9109
9110 * opts-global.c (handle_common_deferred_options): Handle new options.
9111 * passes.c (register_one_dump_file): Call register_pass_name.
9112 (execute_one_pass): Check explicit enable/disable flag.
9113 (passr_hash): New function.
9114 (passr_eq): Ditto.
9115 (register_pass_name): Ditto.
9116 (get_pass_by_name): Ditto.
9117 (pass_hash): Ditto.
9118 (pass_eq): Ditto.
9119 (enable_pass): Ditto.
9120 (disable_pass): Ditto.
9121 (is_pass_explicitly_enabled_or_disabled): Ditto.
9122
491d8eed
UB
91232011-05-29 Uros Bizjak <ubizjak@gmail.com>
9124
9125 * config/i386/i386.md (*movoi_internal_avx): Use
9126 standard_sse_constant_opcode for alternative 0.
9127 (*movti_internal_sse): Ditto.
9128 (*movti_internal_rex64): Use standard_sse_constant_opcode for
9129 alternative 2.
9130 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
9131 sselog1 type moves.
9132 (*movsi_internal): Ditto.
9133 (*movdi_internal): Ditto. Add ssecvt type moves.
9134
eb93b31f
EB
91352011-05-29 Eric Botcazou <ebotcazou@adacore.com>
9136
9137 PR target/48830
9138 * rtlanal.c (simplify_subreg_regno): Adjust comment.
9139
3f831b7d
JJ
91402011-05-29 Jakub Jelinek <jakub@redhat.com>
9141
9142 PR rtl-optimization/49095
9143 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
9144 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
9145
ee3ee488
RS
91462011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
9147
9148 PR target/43995
9149 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
9150 recurse_p argument. Only follow register copies if it is set,
9151 and prevent mips_find_pic_call_symbol from recursing.
9152 (mips_find_pic_call_symbol): Add a recurse_p argument.
9153 Pass it to mips_pic_call_symbol_from_set.
9154 (mips_annotate_pic_calls): Update accordingly.
9155
65f3dedb
RS
91562011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
9157
9158 * emit-rtl.c (try_split): Use a loop to search for
9159 NOTE_INSN_CALL_ARG_LOCATIONs.
9160
61e374ab
RG
91612011-05-29 Richard Guenther <rguenther@suse.de>
9162
9163 PR tree-optimization/49217
9164 * ipa-pure-const.c (propagate_pure_const): Fix typos.
9165
fac009a8
JH
91662011-05-28 Jan Hubicka <jh@suse.cz>
9167
9168 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
9169 length.
9170 (string_slot_free): Remove
9171 (create_output_block): Initialize obstack.
9172 (destroy_output_block): Free obstack.
9173 (lto_string_index): Add PERSISTENT parameter; do not duplicate
9174 the string unless it needs to be added into the hash.
9175 (lto_output_string_with_length): Add persistent attribute;
9176 handle NULL strings.
9177 (lto_output_string): Add PERSISTENT parameter.
9178 (output_string_cst, output_identifier): Simplify.
9179 (lto_output_location_bitpack): Update.
9180 (lto_output_builtin_tree): Update.
9181 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
9182 (lto_output_string, lto_output_string_with_length): Remove
9183 declarations; functions are static now.
fac009a8 9184
fa766006
JH
91852011-05-28 Jan Hubicka <jh@suse.cz>
9186
9187 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
9188 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
9189 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
9190 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
9191 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
9192 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
9193 unpack_ts_decl_with_vis_value_fields,
9194 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
9195 lto_get_builtin_tree): Use enum and variable length i/o.
9196 * basic-block.h (profile_status_d): Add PROFILE_LAST.
9197 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
9198 New functions.
9199 (bp_pack_enum, bp_unpack_enum): New macros.
9200
e092158b
RS
92012011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9202
9203 * genrecog.c: Remove redundant forward declarations.
9204
7ca2afa0
RS
92052011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9206
9207 * config.gcc: Deprecate mips*-*-openbsd*.
9208
a601a53a
RS
92092011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9210
9211 PR bootstrap/49195
9212 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
9213 for match_op_dup.
9214
fc64b448
AP
92152011-05-27 Andrew Pinski <pinskia@gmail.com>
9216
9217 PR middle-end/48981
9218 * gengtype.c (vec_prefix_type): New function.
9219 (note_def_vec): Use vec_prefix_type and change the length
9220 attribute to be based on the prefix.
9221 * vec.c: Include coretypes.h before vec.h.
9222 (struct vec_prefix): Remove.
9223 (vec_gc_p_reserve): Change the offsetof to sizeof.
9224 (vec_gc_p_reserve_exact): Likewise.
9225 (vec_heap_p_reserve): Likewise.
9226 (vec_heap_p_reserve_exact): Likewise.
9227 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
9228 (vec_stack_p_reserve): Change the offsetof to sizeof.
9229 (vec_stack_p_reserve_exact): Likewise.
9230 * vec.h (struct vec_prefix): New struct definition.
9231 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
9232 (VEC_T_GTY(T,B)): Likewise.
9233 (DEF_VEC_FUNC_P(T)): Use prefix field.
9234 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
9235 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
9236
ba869341
BS
92372011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9238
9239 PR tree-optimization/46728
9240 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
9241 (powi_as_mults): Add gimple_set_location.
9242 (build_and_insert_call): New.
9243 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
9244 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 9245
d296760d
AM
92462011-05-27 Alexander Monakov <amonakov@ispras.ru>
9247
9248 * doc/contrib.texi: Update copyright years.
9249 (Contributors): Add Zdenek Sojka.
9250
38e01f9e
NF
92512011-05-27 Nathan Froyd <froydnj@codesourcery.com>
9252
9253 * c-decl.c (c_push_function_context): Copy the current statement
9254 list stack.
9255 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
9256 (finish_struct): Call building_stmt_list_p instead of checking
9257 cur_stmt_list.
9258 * c-parser.c (c_parser_postfix_expression): Likewise.
9259 * c-typeck.c (c_end_compound_stmt): Likewise.
9260 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
9261 * tree-iterator.c (stmt_list_cache): Change to a VEC.
9262 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
9263 (free_stmt_list): Likewise.
9264 * tree.h (struct tree_statement_list): Include typed_tree instead
9265 of tree_common.
9266 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
9267 as TS_TYPED instead of TS_COMMON.
9268
8950516e 92692011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 9270 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
9271
9272 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
9273 (HAVE_AS_IX86_TLSGDPTL): Define.
9274 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
9275 (HAVE_AS_IX86_TLSLDMPLT): Define.
9276 * configure: Regenerate.
9277 * config.in: Regenerate.
9278 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
9279 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
9280 TARGET_SUN_TLS, use @tlsgdplt or @plt.
9281 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
9282 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
9283 @tlsldmplt or @plt.
9284 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
9285
b0bd15f7
BS
92862011-05-27 Bernd Schmidt <bernds@codesourcery.com>
9287
9288 * sched-int.h (struct _haifa_deps_insn_data): New members cond
9289 and reverse_cond.
9290 (INSN_COND, INSN_REVERSE_COND): New macros.
9291 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
9292 once.
9293 (sched_get_condition_with_rev): Cache the results, and look them up
9294 if possible.
9295 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
9296 are clobbered by the current insn.
9297 * target.def (exposed_pipline): New sched data hook.
9298 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
9299 * doc/tm.texi: Regenerate.
9300
fa65a9cf
BS
93012011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9302
9303 PR tree-optimization/49170
9304 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
9305 sincos or cexp.
b0bd15f7 9306
c2299dfe
RG
93072011-05-27 Richard Guenther <rguenther@suse.de>
9308
9309 PR middle-end/49189
9310 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
9311 of comparisons.
9312
a95b23b4
BS
93132011-05-27 Bernd Schmidt <bernds@codesourcery.com>
9314
9315 * haifa-sched.c (sched_scan_info): Remove.
9316 (schedule_block): Call sched_extend_luids rather than sched_init_luids
9317 with NULL args.
9318 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
9319 Remove functions.
9320 (sched_scan): Remove.
9321 (sched_extend_luids): Renamed from luids_extend_insn and no longer
9322 static. All callers changed.
9323 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
9324 static. All callers changed.
9325 (sched_init_luids): Remove all arguments except the first. All
9326 callers changed. Don't use sched_scan.
9327 (haifa_init_h_i_d): Likewise.
9328 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
9329 manually rather than using sched_init_luids. Likewise with
9330 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
9331 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
9332 rather than sched_init_luids with NULL args.
9333 * sel-sched-ir.c (new_insns): Remove variable.
9334 (sched_scan): New static function, previously in haifa-sched.c. Remove
9335 all arguments but the first two; all callers changed.
9336 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
9337 rather than sched_init_luids.
9338 (sel_init_bbs): Remove second argument. All callers changed.
9339 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
9340 with NULL arguments.
9341 (create_insn_rtx_from_pattern): Likewise.
9342 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
9343 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
9344 (sched_init_insn_luid, sched_extend_luids): Declare.
9345 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
9346 declarations.
9347
f8f972fc
RB
93482011-05-27 Richard Guenther <rguenther@suse.de>
9349
9350 PR middle-end/49177
9351 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
9352 A CMP B ? (T) true : (T) false for non-integral types T again.
9353
51a9ed47
JH
93542011-05-27 Jan Hubicka <jh@suse.cz>
9355
9356 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
9357 so 0 means NULL string.
9358 (lto_output_string_with_length): ... here.
f8f972fc
RB
9359 (lto_output_string, output_string_cst, output_identifier): Update
9360 handling of NULL strings.
51a9ed47
JH
9361 (lto_output_location_bitpack): New function.
9362 (lto_output_location): Use it.
9363 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
9364 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
9365 len values.
9366 * lto-streamer-in.c (string_for_index): Break out from ...; offset
9367 values by 1.
491d8eed 9368 (input_string_internal): ... here;
f8f972fc
RB
9369 (input_string_cst, input_identifier, lto_input_string): Update handling
9370 of NULL strings.
51a9ed47
JH
9371 (lto_input_location_bitpack): New function
9372 (lto_input_location): Use it.
f8f972fc
RB
9373 (unpack_ts_type_common_value_fields): Pack align & alias in var len
9374 values.
51a9ed47
JH
9375 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
9376 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
9377 (bp_pack_value): Sanity check the value range.
9378 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
9379 New functions.
9380 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
9381 New functions.
9382
66bd20e7 93832011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
9384
9385 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
9386 call_arg_location instructions down the floor.
9387
574e418a
VM
93882011-05-26 Vladimir Makarov <vmakarov@redhat.com>
9389
9390 PR rtl-optimization/49154
9391 * ira.c (setup_pressure_classes): Process class without sublcasses
9392 as a candidate for pressure classes.
9393
6a1a787e
RS
93942011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
9395
9396 PR rtl-optimization/48575
9397 * genrecog.c (position_type): New enum.
9398 (position): New structure.
9399 (decision): Use position structure instead of a string.
9400 (root_pos, peep2_insn_pos_list): New variables.
9401 (next_position, compare_positions): New functions.
9402 (new_decision): Use position structures instead of strings.
9403 (maybe_both_true): Likewise.
9404 (change_state): Likewise.
9405 (write_tree): Likewise.
9406 (make_insn_sequence): Likewise.
9407
92e948a8
NF
94082011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9409
9410 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
9411 TS_BASE instead of TS_COMMON.
9412 (find_decls_types_r): Check for TS_TYPED structure before looking at
9413 TREE_TYPE.
9414 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
9415 Add chain field.
9416 (BLOCK_CHAIN): Use new chain field.
9417
66bd20e7 94182011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
9419
9420 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
9421 moves expensive on Power7 also.
9422
1f498652
RG
94232011-05-26 Richard Guenther <rguenther@suse.de>
9424
9425 * fold-const.c (fold_unary_loc): Remove bogus code.
9426
a2fc3e63
NF
94272011-05-26 Nathan Froyd <froydnj@codesourcery.com>
9428
9429 * tree.h (struct tree_identifier): Inherit from tree_typed, not
9430 tree_common.
9431 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
9432 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
9433 TS_BASE instead of TS_COMMON.
9434 * varasm.c (assemble_name): Remove assert.
9435
d11bf18f
BS
94362011-05-26 Bernd Schmidt <bernds@codesourcery.com>
9437
9438 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
9439 substituted first.
9440 * libgcc-std.ver: Delete file.
9441
ac8e1875
RG
94422011-05-26 Richard Guenther <rguenther@suse.de>
9443
9444 PR tree-optimization/48702
9445 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
9446 only when we know the base address is within bounds.
9447 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
9448 assume the base address of TARGET_MEM_REFs is in bounds.
9449
7e32e652
RO
94502011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9451
9452 PR target/49099
9453 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
9454 declaration in TARGET_SOLARIS.
9455
66bd20e7 94562011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
9457
9458 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 9459 The instruction is then expanded explicitly.
43660e0b
HS
9460 (supported_compare): Callable instruction.
9461 (compare): Likewise.
9462
1537737f
JJ
94632011-05-26 Jakub Jelinek <jakub@redhat.com>
9464
9465 PR c++/49165
9466 * gimplify.c (shortcut_cond_r): Don't special case
9467 COND_EXPRs if they have void type on one of their arms.
9468
7b1ac803
BS
94692011-05-26 Bernd Schmidt <bernds@codesourcery.com>
9470
9471 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
9472 to reduce duplication, and to achieve a slightly more logical order
9473 of operations.
9474
1aa9438f
JJ
94752011-05-26 Jakub Jelinek <jakub@redhat.com>
9476
9477 PR tree-optimization/49161
9478 * tree-vrp.c (struct case_info): New type.
9479 (compare_case_labels): Sort case_info structs instead of
9480 trees, and not primarily by CASE_LABEL uids but by
9481 label_for_block indexes.
9482 (find_switch_asserts): Put case labels into struct case_info
9483 array instead of TREE_VEC, adjust sorting, compare label_for_block
9484 values instead of CASE_LABELs.
9485
50fed7bf
RR
94862011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9487
9488 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
9489 ("orndi3_neon"): Likewise.
9490 ("bic<mode>3_neon"): Likewise.
9491
48df3fa6
IR
94922011-05-26 Ira Rosen <ira.rosen@linaro.org>
9493
9494 PR tree-optimization/49038
9495 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
9496 Ensure at least one epilogue iteration if required by data
9497 accesses with gaps.
9498 * tree-vectorizer.h (struct _loop_vec_info): Add new field
9499 to mark loops that require peeling for gaps.
9500 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
9501 (vect_get_known_peeling_cost): Take peeling for gaps into
9502 account.
9503 (vect_transform_loop): Generate epilogue if required by data
9504 access with gaps.
9505 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
9506 loop as requiring an epilogue if there are gaps in the end of
9507 the strided group.
9508
53febcba
ILT
95092011-05-25 Ian Lance Taylor <iant@google.com>
9510
9511 * godump.c (go_format_type): Output the first field with a usable
9512 Go type, if any.
9513
dbbc4d4c
ILT
95142011-05-25 Ian Lance Taylor <iant@google.com>
9515
9516 * godump.c (go_format_type): Check for invalid type names, pointer
9517 target types, and struct field types.
9518
f03a5402
JM
95192011-05-25 Jason Merrill <jason@redhat.com>
9520
9521 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
9522
c497c412
UB
95232011-05-25 Uros Bizjak <ubizjak@gmail.com>
9524
9525 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
9526
e470affe
L
95272011-05-25 H.J. Lu <hongjiu.lu@intel.com>
9528
9529 * config/i386/i386.md (*movqi_extv_1)): Put back
9530 "register_operand" check in "type" calculation.
9531 (*movqi_extzv_2): Likewise.
9532
6c81b2bc
L
95332011-05-25 H.J. Lu <hongjiu.lu@intel.com>
9534
c497c412 9535 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 9536
0c007eb2
BS
95372011-05-25 Bernd Schmidt <bernds@codesourcery.com>
9538
9539 PR bootstrap/49160
9540 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
9541 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
9542 __divxc3, __divtc3): Wrap definitions in #ifndef.
9543
521ca78e
L
95442011-05-25 H.J. Lu <hongjiu.lu@intel.com>
9545
9546 PR target/49142
9547 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
9548 "register_operand" check and replace q_regs_operand with
9549 QIreg_operand in "type" calculation.
9550 (*movqi_extv_1): Likewise.
9551 (*movqi_extzv_2_rex64): Likewise.
9552 (*movqi_extzv_2): Likewise.
9553
9554 * config/i386/predicates.md (QIreg_operand): New.
9555
29f8b844
RG
95562011-05-25 Richard Guenther <rguenther@suse.de>
9557
9558 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
9559 type-based offset disambiguation, streamline MEM_REF and
9560 TARGET_MEM_REF handling.
9561
74838de3
L
95622011-05-25 H.J. Lu <hongjiu.lu@intel.com>
9563
9564 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
9565 (bdesc_special_args): Add pause intrinsic.
9566
9567 * config/i386/i386.md (UNSPEC_PAUSE): New.
9568 (pause): Likewise.
9569 (*pause): Likewise.
9570 * config/i386/ia32intrin.h (__pause): Likewise.
9571
9572 * doc/extend.texi (X86 Built-in Functions): Add documentation for
9573 pause intrinsic.
9574
d24ad7d6
BS
95752011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9576
9577 PR tree-optimization/46728
9578 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
9579 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 9580
d9f8303f
NF
95812011-05-25 Nathan Froyd <froydnj@codesourcery.com>
9582
9583 * tree.h (struct tree_exp): Inherit from struct tree_typed.
9584 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
9585 instead of TS_COMMON.
9586
cdbf4541
BS
95872011-05-25 Bernd Schmidt <bernds@codesourcery.com>
9588
9589 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
9590 LIBGCC2_GNU_PREFIX is defined.
9591 (__N): New macro.
9592 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
9593 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
9594 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
9595 __clz_tab): Define using __N.
9596 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
9597 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
9598 * target.def (libfunc_gnu_prefix): New hook.
9599 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
9600 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
9601 * doc/tm.texi: Regenerate.
9602 * system.h (LIBGCC2_GNU_PREFIX): Poison.
9603 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
9604 account.
9605 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
9606 (init_optabs): Likewise for the bswap libfuncs.
9607 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
9608 and divide.
9609 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
9610 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
9611 * libgcc-std.ver: Remove.
9612 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
9613 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
9614 libgcc-std.ver.
9615 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
9616 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
9617 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
9618 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
9619 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
9620 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
9621 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
9622 * config/fixed-bit.h (FIXED_OP): Define differently depending on
9623 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
9624 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
9625
f242c0a5
JH
96262011-05-25 Jan Hubicka <jh@suse.cz>
9627
9628 * lto-streamer-out.c (output_record_start): Use lto_output_enum
9629 (lto_output_tree): Use output_record_start.
9630 * lto-streamer-in.c (input_record_start): Use lto_input_enum
9631 (lto_get_pickled_tree): Use input_record_start.
9632 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
9633 (lto_value_range_error): New function.
9634 * lto-streamer.h (lto_value_range_error): Declare.
9635 (lto_output_int_in_range, lto_input_int_in_range): New functions.
9636 (lto_output_enum, lto_input_enum): New macros.
9637
a11e0df4
EB
96382011-05-25 Eric Botcazou <ebotcazou@adacore.com>
9639
9640 * common.opt (flag_stack_usage_info): New variable.
9641 (-Wstack-usage): New option.
9642 * doc/invoke.texi (Warning options): Document -Wstack-usage.
9643 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
9644 <OPT_fstack_usage>: Likewise.
9645 * toplev.c (output_stack_usage): Handle -Wstack-usage.
9646 * calls.c (expand_call): Test flag_stack_usage_info variable instead
9647 of flag_stack_usage.
9648 (emit_library_call_value_1): Likewise.
9649 * explow.c (allocate_dynamic_stack_space): Likewise.
9650 * function.c (instantiate_virtual_regs ): Likewise.
9651 (prepare_function_start): Likewise.
9652 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
9653 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
9654 * config/arm/arm.c (arm_expand_prologue): Likewise.
9655 (thumb1_expand_prologue): Likewise.
9656 * config/avr/avr.c (expand_prologue): Likewise.
9657 * config/i386/i386.c (ix86_expand_prologue): Likewise.
9658 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9659 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
9660 * config/mips/mips.c (mips_expand_prologue): Likewise.
9661 * config/pa/pa.c (hppa_expand_prologue): Likewise.
9662 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9663 * config/s390/s390.c (s390_emit_prologue): Likewise.
9664 * config/sh/sh.c (sh_expand_prologue): Likewise.
9665 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9666 * config/spu/spu.c (spu_expand_prologue): Likewise.
9667
e7cfe241
RG
96682011-05-25 Richard Guenther <rguenther@suse.de>
9669
9670 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
9671 (gimple_canonical_types_compatible_p): Likewise.
9672
c5235f4c
JH
96732011-05-25 Jan Hubicka <jh@suse.cz>
9674
9675 PR middle-end/49062
9676 * ipa.c (function_and_variable_visibility): Only add to same
9677 comdat group list if DECL_ONE_ONLY.
9678
8242a0f6
AB
96792011-05-25 Andrey Belevantsev <abel@ispras.ru>
9680
9681 PR rtl-optimization/49014
9682 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
9683
642a011d
JJ
96842011-05-25 Jakub Jelinek <jakub@redhat.com>
9685
9686 PR target/49128
9687 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
9688
30a435d8
VM
96892011-05-24 Vladimir Makarov <vmakarov@redhat.com>
9690
9691 PR rtl-optimization/48757
9692 * ira-build.c (loop_with_eh_edge_p): Rename to
9693 loop_with_complex_edge_p, check edges on complexity, make function
9694 conditional.
9695 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
9696 conditional.
9697
24d1bbc7
EB
96982011-05-24 Eric Botcazou <ebotcazou@adacore.com>
9699
9700 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
9701 force flag_ira_share_save_slots to 0.
9702
65773087
EB
97032011-05-24 Eric Botcazou <ebotcazou@adacore.com>
9704
9705 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
9706 (vt_initialize): Set PROLOGUE_BB unconditionally.
9707 Add block comment about CFA_BASE_RTX machinery.
9708 Reset FP_CFA_OFFSET to -1 on all invalid paths.
9709 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
9710
4e26ba90
NP
97112011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
9712
9713 PR objc/48187
9714 * c-parser.c (c_parser_objc_class_instance_variables): More robust
9715 parsing of syntax error in ObjC instance variable lists. In
9716 particular, avoid an infinite loop if there is a stray ']'.
9717 Updated error message.
9718
936fd13c
ILT
97192011-05-24 Ian Lance Taylor <iant@google.com>
9720
9721 * godump.c (go_define): Don't accept a string immediately after
9722 another operand.
9723
f17333e3
ILT
97242011-05-24 Ian Lance Taylor <iant@google.com>
9725
9726 * godump.c (struct godump_container): Add invalid_hash field.
9727 (go_format_type): Return false if type is found in invalid_hash.
9728 (go_output_typedef): Add invalid type to invalid_hash.
9729 (go_finish): Create and delete invalid_hash.
9730
d24ad7d6 97312011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 9732
78be79d5
BS
9733 PR tree-optimization/46728
9734 * tree-ssa-math-opts.c (powi_table): New.
9735 (powi_lookup_cost): New.
9736 (powi_cost): New.
9737 (powi_as_mults_1): New.
9738 (powi_as_mults): New.
9739 (gimple_expand_builtin_powi): New.
9740 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
9741 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 9742
caee412b
RO
97432011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9744
9745 PR target/3746
9746 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
9747 mips-tdump native.
9748 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
9749 * mips-tdump.c: Likewise.
9750
5eed4f27
L
97512011-05-24 H.J. Lu <hongjiu.lu@intel.com>
9752
9753 PR target/49128
9754 * config/i386/driver-i386.c (host_detect_local_cpu): Always
9755 add -mno-XXX. Handle FMA.
9756
8c5fdaae
VM
97572011-05-24 Vladimir Makarov <vmakarov@redhat.com>
9758
9759 PR rtl-optimization/48633
9760 * ira-build.c (loop_with_eh_edge_p): New function.
9761 (mark_loops_for_removal): Use it.
9762
97632011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
9764
9765 PR rtl-optimization/48971
9766 * ira.c (setup_pressure_classes): Don't check register move cost
9767 for classes with one registers. Don't add pressure class if there
9768 is a pressure class with the same available hard registers.
9769 Check contains_reg_of_mode. Fix a typo in collecting
9770 temp_hard_regset. Ignore hard registers not belonging to a class.
9771
df1f7315
UB
97722011-05-24 Uros Bizjak <ubizjak@gmail.com>
9773
9774 PR target/49133
9775 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
9776
ee0cb37c
EB
97772011-05-24 Eric Botcazou <ebotcazou@adacore.com>
9778 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9779
9780 PR gcov-profile/48845
9781 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
9782
6a20ce76
RG
97832011-05-24 Richard Guenther <rguenther@suse.de>
9784
9785 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
9786 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
9787 (gimple_types_compatible_p_1): Adjust.
9788 (iterative_hash_canonical_type): Do not bother about complete vs.
9789 incomplete types.
9790 (gimple_canonical_types_compatible_p): Likewise.
9791
2fcb858c
RO
97922011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9793
9794 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
9795
96d91dcf
RG
97962011-05-24 Richard Guenther <rguenther@suse.de>
9797
9798 PR bootstrap/49078
9799 * gimple.c (gimple_register_canonical_type): Revert
9800 previous change.
9801 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
9802 does not for a tree for the case where it matters. Cache
9803 pointer-type alias-sets.
9804
1ed1641d
JM
98052011-05-24 Joseph Myers <joseph@codesourcery.com>
9806
9807 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
9808 (OBJS): Remove options.o, opts-common.o and prefix.o.
9809 (OBJS-libcommon-target): New.
9810 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
9811 (BACKEND): Include libcommon-target.a.
9812 (MOSTLYCLEANFILES): Include libcommon-target.a.
9813 (libcommon-target.a): New.
9814 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
9815 prefix.o.
9816
57dfdff0
JM
98172011-05-23 Joseph Myers <joseph@codesourcery.com>
9818
9819 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
9820 parts of output shared with the driver.
9821 * optc-gen.awk: Don't generate parts of output not shared with the
9822 driver.
9823 * opth-gen.awk: Remove GCC_DRIVER conditionals.
9824 * doc/options.texi (SourcerInclude): Mention options-save.c.
9825 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
9826 (OBJS): Add options-save.o.
9827 (options-save.c, options-save.o): New.
9828 (options.o): Update dependencies.
9829 (gcc-options.o): Remove.
9830 (mostlyclean): Remove options-save.c.
9831
0e0d82a7
JJ
98322011-05-23 Jakub Jelinek <jakub@redhat.com>
9833
9166988f
JJ
9834 PR debug/49032
9835 * dbxout.c: Include cgraph.h.
9836 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
9837 and without value expr, return NULL if no varpool node exists for
9838 it or if it is not needed.
9839 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
9840
0e0d82a7
JJ
9841 PR c/49120
9842 * c-decl.c (start_decl): Convert expr to void_type_node.
9843
65712d5c
RS
98442011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
9845
9846 PR rtl-optimization/48826
9847 * emit-rtl.c (try_split): When splitting a call that is followed
9848 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
9849
9025085e
JJ
98502011-05-23 Jakub Jelinek <jakub@redhat.com>
9851
9852 * cfgexpand.c (expand_debug_expr): For unused non-addressable
9853 parameters passed in memory prefer using DECL_INCOMING_RTL over
9854 the pseudos it will be copied into.
9855
34a061be
L
98562011-05-23 H.J. Lu <hongjiu.lu@intel.com>
9857
9858 PR target/47315
9859 * config/i386/i386.c (ix86_option_override_internal): Save the
9860 initial options after checking vzeroupper.
9861
c375a3a4
DL
98622011-05-23 David Li <davidxl@google.com>
9863
9864 PR tree-optimization/48988
9865 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
9866 Initialize has_valid_pred for each pred chain.
9867
e1caba18
RG
98682011-05-23 Richard Guenther <rguenther@suse.de>
9869
9870 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
9871 (iterative_hash_gimple_type): Always hash type names.
9872
dde05067
NF
98732011-05-23 Nathan Froyd <froydnj@codesourcery.com>
9874
9875 * c-typeck.c (build_function_call_vec): Tweak call to
9876 check_function_arguments.
9877
094f6ab3
RG
98782011-05-23 Richard Guenther <rguenther@suse.de>
9879
9880 PR tree-optimization/49115
9881 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
9882 is not necessarily carried out, do not claim it kills the ref.
9883 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
9884
9a9822e1
RG
98852011-05-23 Richard Guenther <rguenther@suse.de>
9886
9887 PR middle-end/15419
9888 * builtins.c (fold_builtin_memory_op): Be less restrictive about
9889 what pointer types we accept for folding.
9890
c8028650
RO
98912011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9892
9893 * gthr-gnat.c: Remove.
9894 * gthr-gnat.h: Remove.
9895 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
9896 * config/t-freebsd (LIB2ADDEH): Likewise.
9897 * config/t-linux (LIB2ADDEH): Likewise.
9898 * config/t-sol2 (LIB2ADDEH): Likewise.
9899 * config/ia64/t-vms (LIB2ADDEH): Likewise.
9900 * configure.ac (target_thread_file): Remove gnat handling.
9901 * configure: Regenerate.
9902 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
9903
15882fe9
TG
99042011-05-23 Tristan Gingold <gingold@adacore.com>
9905 Eric Botcazou <ebotcazou@adacore.com>
9906
9907 * gcov.c (create_file_names): If no object directory is specified,
9908 keep the directory of the file.
9909
da90c957
RO
99102011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9911
9912 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
9913 * configure: Regenerate.
9914
7bba408b
JJ
99152011-05-23 Jakub Jelinek <jakub@redhat.com>
9916
9917 PR middle-end/48973
9918 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
9919 failed and the comparison has a single bit signed type, use
9920 constm1_rtx instead of const1_rtx for true value.
9921 (do_store_flag): If ops->type is single bit signed type, disable
9922 signel bit test optimization and pass -1 instead of 1 as last
9923 parameter to emit_store_flag_force.
9924
bc69f7ff
TV
99252011-05-23 Tom de Vries <tom@codesourcery.com>
9926
9927 PR target/45098
9928 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
9929 function.
9930 (infer_loop_bounds_from_undefined): Use new function.
9931
29cedf8e
RS
99322011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
9933
9934 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
9935 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
9936 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
9937 and -O0 otherwise.
9938 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
9939
afe8b6ec
EB
99402011-05-22 Eric Botcazou <ebotcazou@adacore.com>
9941
9942 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
9943 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
9944 returns true.
9945
872dab53
RS
99462011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
9947
9948 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
9949
145f6c5b
EB
99502011-05-22 Eric Botcazou <ebotcazou@adacore.com>
9951
9952 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
9953 UNSPEC_MOVE_PIC pattern.
9954
8ac79835
EB
99552011-05-22 Eric Botcazou <ebotcazou@adacore.com>
9956
9957 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
9958 (sparc-*-rtems*): Likewise.
9959 (sparc64-*-elf*): Likewise.
9960 (sparc64-*-rtems*): Likewise.
9961 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
9962 * config/sparc/t-crtin: New file.
9963 * config/sparc/t-sol2 (crti.o): Delete rule.
9964 (crtn.o): Likewise.
9965 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
9966 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
9967 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
9968 (ENDFILE_SPEC): Add crtn.o.
9969
5fb43dd8
TV
99702011-05-22 Tom de Vries <tom@codesourcery.com>
9971
9972 PR middle-end/48689
9973 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
9974 CODE_CONTAINS_STRUCT (TS_COMMON).
9975
ccb1b17b
JJ
99762011-05-22 Jakub Jelinek <jakub@redhat.com>
9977
9978 PR middle-end/49029
9979 * expmed.c (extract_fixed_bit_field): Test whether target can be used
9980 only after deciding which mode to use.
9981
50ad7db2
TV
99822011-05-22 Tom de Vries <tom@codesourcery.com>
9983
9984 PR target/45098
dc0a3366 9985 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
9986 for call to get_shiftadd_cost.
9987
ef230b38
UB
99882011-05-22 Uros Bizjak <ubizjak@gmail.com>
9989
9990 PR target/49104
9991 * config/i386/cpuid.h (bit_MMXEXT): New define.
9992
15f072f9
NC
99932011-05-22 Nick Clifton <nickc@redhat.com>
9994
9995 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
9996 initialisation of non-existant args[2] element. Use args[] array
9997 not arg[] array to pass arguments to build_function_type_list.
9998
e38fdc94
IR
99992011-05-22 Ira Rosen <ira.rosen@linaro.org>
10000
10001 PR tree-optimization/49087
ef230b38 10002 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 10003
5b018c65
JM
100042011-05-21 Jason Merrill <jason@redhat.com>
10005
10006 PR c++/49092
10007 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
10008 static storage duration.
10009
abd9a770
EB
100102011-05-21 Eric Botcazou <ebotcazou@adacore.com>
10011
10012 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
10013 frame pointer.
10014
bd9a3248
EB
100152011-05-21 Eric Botcazou <ebotcazou@adacore.com>
10016
10017 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
10018 false if there are call-saved registers here...
10019 (sparc_can_use_return_insn_p): ...but here instead.
10020 (save_or_restore_regs): Fix thinko.
10021 (sparc_expand_prologue): Use current_function_is_leaf.
10022 (sparc_frame_pointer_required): Likewise.
10023
a5dfec9a
NC
100242011-05-21 Nick Clifton <nickc@redhat.com>
10025
10026 PR target/49098
10027 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
10028
555c3771
NP
100292011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
10030
10031 * gengtype.c (walk_type): Implemented "atomic" GTY option.
10032 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
10033
86fa5de4
JM
100342011-05-21 Joseph Myers <joseph@codesourcery.com>
10035
10036 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
10037 * optc-gen.awk: Move common code to opt-read.awk.
10038 * opth-gen.awk: Likewise.
ef230b38 10039 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 10040
bce33ab2
NF
100412011-05-20 Nathan Froyd <froydnj@codesourcery.com>
10042
10043 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
10044
e6450c11
TV
100452011-05-20 Tom de Vries <tom@codesourcery.com>
10046
10047 PR target/45098
10048 * tree-ssa-loop-ivopts.c: Include expmed.h.
10049 (get_shiftadd_cost): New function.
10050 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
10051
0e8b84ec
JJ
100522011-05-20 Jakub Jelinek <jakub@redhat.com>
10053
10054 PR bootstrap/49086
10055 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
10056 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
10057
946bdf67
JM
100582011-05-20 Joseph Myers <joseph@codesourcery.com>
10059
10060 * Makefile.in: Update comment referring to $(OBJS-common).
10061
c53aafdf
ILT
100622011-05-20 Ian Lance Taylor <iant@google.com>
10063
10064 * godump.c (go_output_typedef): Put enum constants in the macro
10065 hash table to avoid duplicate Go const definitions.
10066
2691e6d7
JM
100672011-05-20 Joseph Myers <joseph@codesourcery.com>
10068
10069 * Makefile.in (LIBDEPS): Add libcommon.a.
10070 (LIBS): Likewise.
10071 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
10072 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
10073 pretty-print.o and version.o.
10074 (OBJS-libcommon): New.
10075 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
10076 (BACKEND): Add libcommon.a.
10077 (MOSTLYCLEANFILES): Likewise.
10078 (libcommon.a): New.
10079 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
10080 (cpp$(exeext)): Likewise.
10081 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
10082 pretty-print.o and input.o.
10083 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
10084 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
10085 (errors.o): Remove.
10086 (mips-tfile): Don't explicitly use version.o.
10087 (mips-tdump): Likewise.
10088 (gcov.o): Depend on $(DIAGNOSTIC_H).
10089 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
10090 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
10091 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
10092 * gcov-dump.c: Include intl.h and diagnostic.h.
10093 (main): Initialize diagnostics.
10094 * gcov.c: Include diagnostic.h.
10095 (fnotice): Remove.
10096 (main): Initialize diagnostics.
10097 * lto-wrapper.c: Include diagnostic.h.
10098 (main): Initialize diagnostics.
10099
252b3e8c
MM
101002011-05-20 Michael Matz <matz@suse.de>
10101
10102 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
10103
2ee36ba6
MM
101042011-05-20 Michael Matz <matz@suse.de>
10105 Richard Guenther <rguenther@suse.de>
10106
10107 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
10108 use lto_streamer_cache_append directly instead of returning a VEC.
10109 (preload_common_node): Remove.
10110 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
10111 track seen nodes.
10112 (lto_streamer_cache_create): Call lto_preload_common_nodes.
10113
90ff582f
RG
101142011-05-20 Richard Guenther <rguenther@suse.de>
10115
10116 PR tree-optimization/49079
10117 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
10118 MEM_REFs correctly for the trailing array access detection.
10119 Special case constants the same way as decls for overall size
10120 constraining.
10121
3cda91d8
UB
101222011-05-20 Uros Bizjak <ubizjak@gmail.com>
10123
10124 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
10125 argument expansion.
10126
6c66f733
JJ
101272011-05-20 Jakub Jelinek <jakub@redhat.com>
10128
10129 PR tree-optimization/49073
3cda91d8
UB
10130 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
10131 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
10132 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
10133
0ea80a16
RG
101342011-05-20 Richard Guenther <rguenther@suse.de>
10135
10136 PR middle-end/48849
10137 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
10138 of pointer types the same way the middle-end does.
10139
fb291a1e
RG
101402011-05-20 Richard Guenther <rguenther@suse.de>
10141
3cda91d8
UB
10142 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
10143 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 10144
37cb25ed
QN
101452011-05-19 Quentin Neill <quentin.neill@amd.com>
10146
10147 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
10148 (fma4_fmaddsub): Likewise
10149
a30726a4
JH
101502011-05-19 Jan Hubicka <jh@suse.cz>
10151
10152 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
10153 (GIMPLE_TYPE_PAIR_SIZE): New macro.
10154 (type_pair_cache): New static var.
10155 (lookup_type_pair): Use fixed sized custom hash; make inline.
10156 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
10157 calls of lookup_type_pair.
10158 (print_gimple_types_stats): Remove cache stats.
10159 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
10160 and gtc_ob.
10161
0955cf61
UB
101622011-05-19 Uros Bizjak <ubizjak@gmail.com>
10163
10164 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
10165 when TARGET_RDRND is active.
10166 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
10167 Generate dummy SImode target register when target is NULL.
10168
12d844c8
JM
101692011-05-19 Joseph Myers <joseph@codesourcery.com>
10170
10171 * config/arm/arm-fpus.def: New.
10172 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
10173 arm-fpus.def.
10174 * config/arm/arm-tables.opt: Regenerate.
10175 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
10176 (arm_option_override): Don't decode FPU name to string here.
10177 * config/arm/arm.opt (mfpu=): Use Enum.
10178 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
10179 Update dependencies.
10180
9e350e99
JM
101812011-05-19 Joseph Myers <joseph@codesourcery.com>
10182
10183 * collect2.c: Include diagnostic.h.
10184 (fatal_perror, fatal, error, fancy_abort): Remove.
10185 (main): Set progname. Call xmalloc_set_program_name and
10186 diagnostic_initialize.
10187 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
10188 scan_libraries, resolve_lib_name): Call fatal_error instead of
10189 fatal and fatal_perror.
10190 * collect2.h (error, fatal, fatal_perror): Don't declare.
10191 * tlink.c: Include diagnostic-core.h.
10192 (recompile_files): Call fatal_error instead of fatal_perror.
10193 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
10194 pretty-print.o and input.o.
10195 (collect2.o, tlink.o): Update dependencies.
10196
86ff4081
RO
101972011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10198
10199 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
10200
2ca48caa
RO
102012011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10202
10203 PR target/40483
10204 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
10205 COMDAT group syntax, both SPARC and x86 variants.
10206 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
10207 * configure: Regenerate.
10208 * config/sol2.h (TARGET_SOLARIS): Define.
10209 (PUSHSECTION_FORMAT): Remove.
10210 (SECTION_NAME_FORMAT): Define.
10211 * config/sol2.c: Include hashtab.h.
10212 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
10213 expansion, using SECTION_NAME_FORMAT.
10214 (solaris_comdat_htab): New variable.
10215 (struct comdat_entry): Define.
10216 (comdat_hash): New function.
10217 (comdat_eq): New function.
10218 (solaris_elf_asm_comdat_section): New function.
10219 (solaris_define_comdat_signature): New function.
10220 (solaris_code_end): New function.
10221 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
10222 (solaris_code_end): Declare.
10223 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
10224 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
10225 solaris_code_end.
10226 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
10227 Remove ATTRIBUTE_UNUSED.
10228 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
10229 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 10230 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
10231 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
10232 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
10233 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
10234 (PUSHSECTION_FORMAT): Remove.
10235 (SECTION_NAME_FORMAT): Redefine.
10236
da5fb469
KT
102372011-05-19 Kai Tietz <ktietz@redhat.com>
10238
10239 * tree-cfg.c (verify_gimple_assign_binary): Barf on
10240 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
10241 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
10242
1651e703 102432011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
10244 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10245
10246 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
10247
e497b9bd
RG
102482011-05-19 Richard Guenther <rguenther@suse.de>
10249
10250 PR middle-end/48985
10251 * tree-object-size.c (addr_object_size): If the pointed-to
10252 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
10253
31b3ca64
RG
102542011-05-19 Richard Guenther <rguenther@suse.de>
10255
10256 * gimple.c (gimple_types_compatible_p_1): Compare names of
10257 the types themselves.
10258 (iterative_hash_gimple_type): And hash them that way.
10259 (gimple_register_type_1): If we register a main variant properly
10260 initialize the leader to ourselves.
10261
bb8d292d
TV
102622011-05-19 Tom de Vries <tom@codesourcery.com>
10263
10264 PR target/45098
10265 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
10266 get_loop_invariant_expr_id.
10267 (get_loop_invariant_expr_id): Use get_expr_id.
10268 (parm_decl_cost): New function.
10269 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
10270 Improve bound cost estimation. Use different inv_expr_id for elim and
10271 express cases.
10272
a53c5024
TV
102732011-05-19 Tom de Vries <tom@codesourcery.com>
10274
10275 PR target/45098
10276 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
10277 cost_base.cost == 0.
10278
31f9eb59
L
102792011-05-18 H.J. Lu <hongjiu.lu@intel.com>
10280
10281 PR target/49002
66bd20e7
EB
10282 * config/i386/sse.md
10283 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
10284 load cast.
31f9eb59 10285
681056ae
JJ
102862011-05-18 Jakub Jelinek <jakub@redhat.com>
10287
10288 PR tree-optimization/49039
10289 * tree-vrp.c (extract_range_from_binary_expr): For
10290 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
10291 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
10292
b5ee6752
TV
102932011-05-18 Tom de Vries <tom@codesourcery.com>
10294
10295 PR target/45098
10296 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
10297
0bda47a3
UB
102982011-05-18 Uros Bizjak <ubizjak@gmail.com>
10299
10300 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
10301 (*tls_global_dynamic_64): Ditto.
10302 (*tls_local_dynamic_base_32_gnu): Ditto.
10303 (*tls_local_dynamic_base_64): Ditto.
10304 (tls_initial_exec_64_sun): Ditto.
10305
033b0805
SH
103062011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
10307
10308 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
10309 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
10310 bf592-none.
10311 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
10312 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
10313 * config/bfin/bfin.c (bfin_cpus): Add bf592.
10314 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 10315 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
10316 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
10317 * config/bfin/elf.h (LIB_SPEC): Add bf592.
10318
ba163417
JM
103192011-05-18 Joseph Myers <joseph@codesourcery.com>
10320
10321 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 10322 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
10323 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
10324 target_thread_pointer, arm_structure_size_boundary, struct
10325 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
10326 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
10327 (arm_option_override) Don't process most enumerated option values here.
10328 Don't process target_fpe_name here. Work with integer not string for
10329 structure size boundary; use separate diagnostics for each case.
ba163417
JM
10330 * config/arm/arm.h (enum float_abi_type, enum
10331 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
10332 to arm-opts.h.
10333 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
10334 arm_structure_size_boundary): Remove.
10335 * config/arm/arm.opt (mabi=): Use Enum and Init.
10336 (arm_abi_type): New Enum and EnumValue entries.
10337 (mfloat-abi=): Use Enum and Init.
10338 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 10339 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
10340 (mfp16-format=): Use Enum and Init.
10341 (arm_fp16_format_type): New Enum and EnumValue entries.
10342 (mstructure-size-boundary=): Use UInteger and Init.
10343 (mtp=): Use Enum and Init.
10344 (arm_tp_type): New Enum and EnumValue entries.
10345
179184e3
RG
103462011-05-18 Richard Guenther <rguenther@suse.de>
10347
10348 PR tree-optimization/49018
10349 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
10350 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
10351 gimple_has_side_effects.
10352
93b2a207
RG
103532011-05-18 Richard Guenther <rguenther@suse.de>
10354
10355 * gimple.c (gimple_register_type_1): New function, split out from ...
10356 (gimple_register_type): ... here. Avoid infinite recursion.
10357
b010117a
IR
103582011-05-18 Ira Rosen <ira.rosen@linaro.org>
10359
10360 PR tree-optimization/41881
10361 * tree-vectorizer.h (struct _loop_vec_info): Add new field
10362 reduction_chains along with a macro for its access.
10363 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
10364 (destroy_loop_vec_info): Free reduction chains.
10365 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
10366 (vect_is_slp_reduction): New function.
10367 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
10368 (vect_create_epilog_for_reduction): Support SLP reduction chains.
10369 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
10370 definition types for reduction chains.
10371 (vect_supported_load_permutation_p): Don't allow permutations for
10372 reduction chains.
10373 (vect_analyze_slp_instance): Support reduction chains.
10374 (vect_analyze_slp): Try to build SLP instance from reduction chains.
10375 (vect_get_constant_vectors): Handle reduction chains.
10376 (vect_schedule_slp_instance): Mark the first statement of the
10377 reduction chain as reduction.
10378
e14c1050
IR
103792011-05-18 Ira Rosen <ira.rosen@linaro.org>
10380
10381 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
10382 names for group elements access.
10383 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
10384 reduction chains as well. Remove data reference and interleaving
10385 related words from the fields names.
10386 * tree-vect-loop.c (vect_transform_loop): Use new names for group
10387 elements access.
10388 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
10389 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
10390 vect_update_interleaving_chain, vect_same_range_drs,
10391 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
10392 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
10393 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
10394 vect_analyze_group_access, vect_analyze_data_ref_access,
10395 vect_create_data_ref_ptr, vect_transform_strided_load,
10396 vect_record_strided_load_vectors): Likewise.
10397 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
10398 vect_model_load_cost, vectorizable_store, vectorizable_load,
10399 vect_remove_stores, new_stmt_vec_info): Likewise.
10400 * tree-vect-slp.c (vect_build_slp_tree,
10401 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
10402
51c213f7
RG
104032011-05-18 Richard Guenther <rguenther@suse.de>
10404
10405 PR middle-end/48989
10406 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
10407 operand verification.
10408 (verify_gimple_assign_binary): Likewise.
10409 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
10410 to non-1-precision BOOLEAN_TYPEs.
10411
8f5e5434
TV
104122011-05-18 Tom de Vries <tom@codesourcery.com>
10413
10414 PR target/45098
10415 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
10416
116bc3a4
JJ
104172011-05-18 Jakub Jelinek <jakub@redhat.com>
10418
10419 PR tree-optimization/49000
10420 * tree-ssa.c (execute_update_addresses_taken): Call
10421 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
10422 be rewritten and decl has been marked for renaming, reset
10423 the debug stmt.
10424
26a8964c
JM
104252011-05-17 Joseph Myers <joseph@codesourcery.com>
10426
10427 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
10428 enum_opts_set when testing if attributes have set -mfpmath=.
10429
82bd45d7
RS
104302011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10431
10432 * config/mips/mips.c (mips_handle_option): Remove unused variable.
10433
267ffce3
UB
104342011-05-17 Uros Bizjak <ubizjak@gmail.com>
10435
10436 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
10437 info->entry with 0
10438 * tree-inline.c (maybe_inline_call_in_expr): Initialize
10439 id.transform_lang_insert_block with NULL.
10440
104412011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
10442
10443 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
10444 (output_fp_compare): Change args 3 and 4 to bool.
10445 (ix86_expand_call): Change arg 6 to bool.
10446 (ix86_attr_length_immediate_default): Change arg 2 to bool.
10447 (ix86_attr_length_vex_default): Change arg 3 to bool.
10448 * config/i386/i386.md: Update all uses.
10449 * config/i386/i386.c: Ditto.
10450 (ix86_flags_dependent): Change return type to bool.
10451
5beaf664
RG
104522011-05-17 Richard Guenther <rguenther@suse.de>
10453
10454 * gimple.c (type_hash_pair_compare): Fix comparison.
10455
008bad7a
RG
104562011-05-17 Richard Guenther <rguenther@suse.de>
10457
10458 * gimple.c (iterative_hash_gimple_type): Simplify singleton
10459 case some more, fix final hash value of the non-singleton case.
10460
36461340
RG
104612011-05-17 Richard Guenther <rguenther@suse.de>
10462
10463 PR bootstrap/49013
10464 Revert
10465 2011-05-16 Richard Guenther <rguenther@suse.de>
10466
10467 * gimple.c (gimple_types_compatible_p_1): Use names of the
10468 type itself, not its main variant.
10469 (iterative_hash_gimple_type): Likewise.
10470
6b6a59f3
RG
104712011-05-17 Richard Guenther <rguenther@suse.de>
10472
10473 * gimple.c (gimple_register_canonical_type): Use the main-variant
10474 leader for computing the canonical type.
10475
4ffc4134
NC
104762011-05-17 Nick Clifton <nickc@redhat.com>
10477
a1d8754e
NC
10478 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
10479 moves.
10480
4ffc4134
NC
10481 * config/rx/rx.md: Add peephole to remove redundant extensions
10482 after loads.
39960f7a
NC
10483 (bitset_in_memory): Use rx_restricted_mem_operand.
10484 (bitinvert_in_memory): Likewise.
10485 (bitclr_in_memory): Likewise.
4ffc4134 10486
b3db92ac
KI
104872011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
10488 Nick Clifton <nickc@redhat.com>
10489
10490 * config/rx/rx.md: Add peepholes to match a register move followed
10491 by a comparison of the moved register. Replace these with an
10492 addition of zero that does both actions in one instruction.
10493
8637e32a
JJ
104942011-05-17 Jakub Jelinek <jakub@redhat.com>
10495
10496 PR target/48986
10497 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
10498 predicate to allow CONST_INT.
10499 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
10500
8023568e
JM
105012011-05-16 Joseph Myers <joseph@codesourcery.com>
10502
10503 * opts-common.c (opt_enum_arg_to_value): New.
10504 * opts.h (opt_enum_arg_to_value): Declare.
10505 * config/i386/i386.opt (fpmath): Remove.
10506 (mfpmath=): Use Enum, Init and Save.
10507 (fpmath_unit): New Enum and EnumValue entries.
10508 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
10509 name for function fpmath state.
10510 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
10511 * config/i386/i386.c: Include diagnostic.h.
10512 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 10513 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 10514 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 10515 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
10516 (x86_function_specific_save, ix86_function_specific_restore):
10517 Don't handle fpmath state specially.
10518 (ix86_function_specific_print): Pass fpmath state to
10519 ix86_target_string instead of printing in this function.
10520 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
10521 Handle enum attributes.
10522 (IX86_ATTR_ENUM, ix86_opt_enum): New.
10523 (ix86_valid_target_attribute_tree): Update option_strings
10524 handling. Handle fpmath as enum option.
10525 (ix86_can_inline_p): Update field names for function fpmath state.
10526 (ix86_expand_builtin): Update call to ix86_target_string.
10527 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
10528 (ix86_fpmath): Remove.
10529 * config/i386/t-i386 (i386.o): Update dependencies.
10530
9e8d926e
JM
105312011-05-16 Joseph Myers <joseph@codesourcery.com>
10532
10533 PR preprocessor/48677
10534 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
10535 from decoded_options[0], not from itself.
10536
f6449011
UB
105372011-05-16 Uros Bizjak <ubizjak@gmail.com>
10538
10539 * config/i386/constraints.md (z): New constraint.
10540 * config/i386/i386.c (c): New mode attribute.
10541 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
10542 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
10543 constraint for operand 0.
10544 (*call_vzeroupper): Ditto.
10545 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
10546 (*call_rex64_ms_sysv_vzeroupper): Ditto.
10547 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
10548 Use "lzm" constraint for operand 0.
10549 (*call_pop_vzeroupper): Ditto.
10550 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
10551 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
10552 constraint for operand 0.
10553 (*sibcall_vzeroupper): Ditto.
10554 (*sibcall_rex64_ms_sysv): Ditto.
10555 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
10556 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
10557 *sibcall_pop_1. Use "Uz" constraint for operand 0.
10558 (*sibcall_pop_vzeroupper): Ditto.
10559 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
10560 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
10561 mode iterator. Use "<c>zm" constraint for operand 1.
10562 (*call_value_vzeroupper): Ditto.
10563 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 10564 for operand 1.
f6449011
UB
10565 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
10566 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
10567 *call_value_pop_1. Use "lzm" constraint for operand 1.
10568 (*call_value_pop_vzeroupper): Ditto.
10569 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
10570 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
10571 mode iterator. Use "Uz" constraint for operand 1.
10572 (*sibcall_value_vzeroupper): Ditto.
10573 (*sibcall_value_rex64_ms_sysv): Ditto.
10574 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
10575 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
10576 constraint for operand 1.
10577 (*sibcall_value_pop_vzeroupper): Ditto.
10578 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
10579 and "z" constraint for operand 2.
10580 (*tls_global_dynamic_32_gnu): Ditto.
10581 (*tls_local_dynamic_base_32_gnu): Ditto.
10582 (*tls_local_dynamic_base_64): Ditto.
10583 (*tls_local_dynamic_32_once): Ditto.
10584 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
10585 Update all callers.
10586 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
10587
c11b6902
RG
105882011-05-16 Richard Guenther <rguenther@suse.de>
10589
10590 * gimple.c (gimple_types_compatible_p_1): Use names of the
10591 type itself, not its main variant.
10592 (iterative_hash_gimple_type): Likewise.
10593
1e83b5f1
RG
105942011-05-16 Richard Guenther <rguenther@suse.de>
10595
f6449011
UB
10596 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
10597 always visit pointer target and function result and argument types.
1e83b5f1 10598
62e36382
JM
105992011-05-16 Jason Merrill <jason@redhat.com>
10600
10601 PR c++/48999
10602 * tree-inline.c (copy_statement_list): Put back recursion.
10603
687027a4
GJL
106042011-05-16 Georg-Johann Lay <avr@gjlay.de>
10605
10606 PR target/27663
10607 PR target/41076
10608 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
10609 * config/avr/avr.md ("*ior<mode>qi.byte0",
10610 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
10611
f24a5190
GJL
106122011-05-16 Georg-Johann Lay <avr@gjlay.de>
10613
10614 PR target/45099
10615 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
10616 register is needed for a function argument.
10617
3066f593
RG
106182011-05-16 Richard Guenther <rguenther@suse.de>
10619
10620 * gimple.c (struct type_hash_pair): New type.
10621 (type_hash_pair_compare): New function.
f6449011 10622 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 10623
b2ab2cf4
RE
106242011-05-16 Revital Eres <revital.eres@linaro.org>
10625
f6449011 10626 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 10627
dfb737fc
UB
106282011-05-15 Uros Bizjak <ubizjak@gmail.com>
10629
10630 * config/i386/i386.md (floating point move splitters): Fix
10631 usage of standard_80387_constant_p.
f6449011 10632 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 10633
8caa1de0
UB
106342011-05-15 Uros Bizjak <ubizjak@gmail.com>
10635
10636 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
10637
8a519095
EB
106382011-05-14 Eric Botcazou <ebotcazou@adacore.com>
10639
10640 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
10641 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
10642 (tree_ssa_lim_finalize): Likewise.
10643
479fecd3
UB
106442011-05-14 Uros Bizjak <ubizjak@gmail.com>
10645
10646 * config/i386/constraint.md (Yd, Yx): New register constraints.
10647 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
10648 Yd conditional register constraint.
10649 (*movtf_internal): Use standard_sse_constant_opcode.
10650 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
10651 Yx conditional register constraint.
10652 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
10653 Yd conditional register constraint. Use standard_sse_constant_p to
10654 check for valid SSE constants and call standard_sse_constant_opcode to
10655 output SSE insn.
10656 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
10657 constants and call standard_sse_constant_opcode to output SSE insn.
10658 * config/i386/i386.c (ix86_option_ovverride_internal): Set
10659 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
10660 optimize_size is set.
10661 (standard_sse_constant_opcode): Output conditional AVX insn templates.
10662
2d8c9ad5
TB
106632011-05-14 Tobias Burnus <burnus@net-b.de>
10664
10665 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
10666
411a20d6
MJ
106672011-05-13 Martin Jambor <mjambor@suse.cz>
10668
10669 * ipa-prop.c (ipa_cst_from_jfunc): New function.
10670 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
10671 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
10672 (evaluate_conditions_for_ipcp_clone): Removed.
10673 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
10674 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
10675 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
10676
dc764d10
EB
106772011-05-13 Eric Botcazou <ebotcazou@adacore.com>
10678
10679 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
10680 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
10681 lieu of MAY_HAVE_DEBUG_STMTS.
10682 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
10683 debug statements if !MAY_HAVE_DEBUG_STMTS.
10684
9f47a24e
MT
106852011-05-13 Martin Thuresson <martint@google.com>
10686
10687 PR gcov-profile/47793
10688 * libgcov.c (gcov_exit): Support relative profile paths.
10689 * doc/invoke.texi (-fprofile-dir): Update for above change.
10690
b8a71aed
RG
106912011-05-13 Richard Guenther <rguenther@suse.de>
10692
10693 * gimple.c (gimple_canonical_types_compatible_p): Do not use
10694 type-pair caching, do not compare hashes.
10695
eb9f9259
NF
106962011-05-13 Nathan Froyd <froydnj@codesourcery.com>
10697
10698 PR middle-end/48965
10699 * tree-cfg.c (edge_to_cases_cleanup): Return true.
10700 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
10701
3c6cbf7a
KT
107022011-05-13 Kai Tietz <ktietz@redhat.com>
10703
10704 * gimplify.c (gimplify_expr): Make sure operand is boolified.
10705 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
10706 compatible type for TRUTH_NOT_EXPR.
10707
2e7f5dc0
L
107082011-05-13 H.J. Lu <hongjiu.lu@intel.com>
10709
dc764d10 10710 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
10711 (ix86_hard_regno_mode_ok): Change return value to bool. Use
10712 can_create_pseudo_p ().
10713
e834e95c
RG
107142011-05-13 Richard Guenther <rguenther@suse.de>
10715
10716 PR lto/48978
10717 * gimple.c (iterative_hash_gimple_type): Revert change in
10718 pointer target and function result and argument hashing.
10719
34203483
UB
107202011-05-13 Uros Bizjak <ubizjak@gmail.com>
10721
10722 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
10723 (*movxf_internal_nointeger): Ditto.
10724 (*movdf_internal_rex64): Ditto.
10725 (*movdf_internal): Ditto.
10726 (*movdf_internal_nointeger): Ditto.
10727 (*movsf_internal): Ditto.
10728 (sincos splitters): Use can_create_pseudo ().
10729
7eb68c06
JM
107302011-05-13 Joseph Myers <joseph@codesourcery.com>
10731
10732 * config/i386/i386-opts.h: New.
10733 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
10734 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
10735 ix86_section_threshold): Remove.
10736 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
10737 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
10738 OPT_mbranch_cost_.
10739 (ix86_option_override_internal): Don't decode strings for options
10740 other than -march=, -mtune= and -mfpmath=. Don't allow for
10741 __attribute__ uses in remaining diagnostics for options with
34203483 10742 string arguments. Don't check for integer arguments being negative.
7eb68c06 10743 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 10744 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
10745 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
10746 ix86_branch_cost, ix86_section_threshold): Remove.
10747 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
10748 HeaderInclude.
10749 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
10750 but not Var.
10751 (masm=): Use Enum and Init.
10752 (asm_dialect): New Enum and EnumValue entries.
10753 (mbranch-cost=): Use UInteger.
10754 (mlarge-data-threshold=): Use UInteger and Init.
10755 (mcmodel=): Use Enum and Init.
10756 (cmodel): New Enum and EnumValue entries.
10757 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
10758 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
10759 mregparm=): Use UInteger.
10760 (mstringop-strategy=): Use Enum and Init.
10761 (stringop_alg): New Enum and EnumValue entries.
10762 (mtls-dialect=): Use Enum and Init.
10763 (tls_dialect): New Enum and EnumValue entries.
10764 (mabi=): Use Enum and Init.
10765 (calling_abi): New Enum and EnumValue entries.
10766 (mveclibabi=): Use Enum and Init.
10767 (ix86_veclibabi): New Enum and EnumValue entries.
10768
f67e203c
NC
107692011-05-13 Nick Clifton <nickc@redhat.com>
10770
34203483
UB
10771 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
10772 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 10773
221df0b6
KT
107742011-05-13 Kai Tietz <ktietz@redhat.com>
10775
10776 PR middle-end/48984
10777 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
10778 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
10779 (gimple_boolify): Check for cast for boolean_type_node instead for
10780 BOOLEAN_TYPE.
10781
208cb8cb
RG
107822011-05-13 Richard Guenther <rguenther@suse.de>
10783
10784 PR tree-optimization/48172
10785 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
10786 multiplying by number of iterations for equal step.
10787 (vect_create_cond_for_alias_checks): Likewise.
10788
b88ecf55
AS
107892011-05-13 Andreas Schwab <schwab@redhat.com>
10790
10791 * configure.ac: Use AS_HELP_STRING throughout.
10792 * configure: Regenerate.
10793
569b527e
L
107942011-05-12 H.J. Lu <hongjiu.lu@intel.com>
10795
34203483 10796 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
10797 (ix86_emit_restore_regs_using_mov): Likewise.
10798 (ix86_emit_restore_sse_regs_using_mov): Likewise.
10799
8b9a1428
AS
108002011-05-12 Anatoly Sokolov <aesok@post.ru>
10801
10802 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
10803 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
10804 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
10805 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
10806 RTX_OK_FOR_OLO10_P): ...here.
10807 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
10808 SYMBOLIC_CONST.
10809
1d15f620
KT
108102011-05-12 Kai Tietz <ktietz@redhat.com>
10811
10812 * gimplify.c (gimple_boolify): Re-boolify expression
10813 arguments even if expression type is of kind BOOLEAN_TYPE.
10814 (gimplify_boolean_expr): Removed.
10815 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
10816 and XOR. Additional take care that we keep expression's type.
10817 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
10818 of TRUTH_AND|OR|XOR_EXPR.
10819
c2b5fc8d
JJ
108202011-05-12 Jakub Jelinek <jakub@redhat.com>
10821
10822 PR tree-optimization/48975
10823 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
10824 on all bbs here and free and clear ifc_bbs at the end.
10825
61332f77
RG
108262011-05-12 Richard Guenther <rguenther@suse.de>
10827
10828 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
10829 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
10830 until after simple checks.
10831 (gimple_types_compatible_p): Likewise.
10832 (iterative_hash_gimple_type): Always hash pointer targets
10833 and function return and argument types.
10834 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
10835 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
10836 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
10837 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
10838 completely in the simple compare section.
10839 (gimple_register_canonical_type): Query the cache again after
10840 registering.
10841
e2a3a5f1
RG
108422011-05-12 Richard Guenther <rguenther@suse.de>
10843
10844 PR tree-optimization/48172
10845 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
10846 the number of iterations from the segment size calculation.
10847 (vect_create_cond_for_alias_checks): Adjust.
10848
2c703f3a
JJ
108492011-05-12 Jakub Jelinek <jakub@redhat.com>
10850
10851 PR debug/48967
10852 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
10853 if validate_subreg fails.
10854
108552011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
10856
10857 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
10858 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
10859 early.
10860
87e91fca
DD
108612011-05-12 DJ Delorie <dj@redhat.com>
10862
d53903d6 10863 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
10864 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
10865 created builtin into rx_builtins array.
10866 (rx_builtin_decl): New function.
34203483 10867 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 10868
5f2f13fd
DD
108692011-05-12 DJ Delorie <dj@redhat.com>
10870 Nick Clifton <nickc@redhat.com>
10871
10872 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
10873 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
10874 (rx_is_legitimate_address): Add pre-decrement and post-increment
10875 addressing in HImode and QImode. Fix test for out of range
10876 REG+INT addressing.
87e91fca 10877 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 10878 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 10879 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 10880 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 10881
57421f45
JM
108822011-05-11 Jason Merrill <jason@redhat.com>
10883
10884 * tree.c (type_hash_canon): Use struct tree_type_non_common.
10885
898c90c0
EB
108862011-05-11 Eric Botcazou <ebotcazou@adacore.com>
10887
10888 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
10889 reindent the subsequent block.
10890
79bec923
ST
108912011-05-11 Satoru Takabayashi <satorux@google.com>
10892 Paul Pluzhnikov <ppluzhnikov@google.com>
10893
34203483 10894 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
10895 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
10896 * config.in: Add LINKER_HASH_STYLE.
10897 * configure.ac: Add --with-linker-hash-style.
10898 * configure: Regenerate.
79bec923 10899
d0340959
RG
109002011-05-11 Richard Guenther <rguenther@suse.de>
10901
10902 PR middle-end/48964
10903 * gimple.c (iterative_hash_canonical_type): Fix typo.
10904
cb032fee
UB
109052011-05-11 Uros Bizjak <ubizjak@gmail.com>
10906
10907 * config/i386/i386.c (legitimize_tls_address)
479fecd3 10908 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
10909 expanders directly for TARGET_GNU2_TLS. Determine pic and
10910 __tls_get_addr symbol reference here. Update call to
10911 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 10912 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
10913 expanders directly for TARGET_GNU2_TLS. Determine
10914 __tls_get_addr symbol reference here. Update call to
10915 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
10916 unique UNSPEC REG_EQUIV to libcall block.
10917 (ix86_tls_get_addr): Declare static.
10918 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
10919 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
10920 Do not determine pic and __tls_get_addr symbol reference here. Do not
10921 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
10922 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
10923 (tls_global_dynamic_64): Add operand 2. Do not determine
10924 __tls_get_addr symbol reference here. Do not call
10925 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
10926 (tls_local_dynamic_base64): Ditto for operand 1.
10927
6d3cc8f0
EB
109282011-05-11 Eric Botcazou <ebotcazou@adacore.com>
10929
10930 * function.c (expand_function_start): Initialize stack_check_probe_note
10931 only if the generic stack checking mechanism is used.
10932
51e020fc
RG
109332011-05-11 Richard Guenther <rguenther@suse.de>
10934
10935 PR tree-optimization/15256
10936 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
10937 (A & B) | C, combine (A op CST1) op CST2.
10938 (tree_ssa_forward_propagate_single_use_vars): Only bother to
10939 visit assigns that have uses.
10940
51545682
NF
109412011-05-11 Nathan Froyd <froydnj@codesourcery.com>
10942
cb032fee 10943 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
10944 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
10945 (unpack_ts_type_common_value_fields): ...this. Update comment.
10946 (unpack_value_fields): Adjust for renaming.
10947 (lto_input_ts_type_tree_pointers): Split into...
10948 (lto_input_ts_type_common_tree_pointer): ...this and...
10949 (lto_input_ts_type_non_common_tree_pointers): ...this.
10950 (lto_input_tree_pointers): Adjust for above split.
10951 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
10952 (pack_ts_type_common_value_fields): ...this. Update comment.
10953 (lto_output_ts_type_tree_pointers): Split into...
10954 (lto_output_ts_type_common_tree_pointers): ...this and...
10955 (lto_output_ts_type_non_common_tree_pointers): ...this.
10956 (lto_output_tree_pointers): Adjust for above split.
10957 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
10958 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
10959 * stor-layout.c (vector_type_mode): Adjust location of mode field.
10960 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
10961 Define.
10962 (struct tree_type): Split into...
10963 (struct tree_type_common: ...this and...
10964 (struct tree_type_with_lang_specific): ...this and...
10965 (struct tree_type_non_common): ...this. Adjust accessor macros
10966 accordingly.
10967 (TYPE_VALUES_RAW): Define.
10968 (union tree_node): Update for above changes.
10969 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
10970 TS_TYPE_NON_COMMON.
10971 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
10972 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
10973 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
10974 * treestructu.def (TS_TYPE): Remove.
10975 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
10976 Define.
10977
b03c3082
JJ
109782011-05-11 Jakub Jelinek <jakub@redhat.com>
10979
10980 PR debug/48159
10981 * tree-ssa.c (reset_debug_uses): New function.
10982 * tree-flow.h (reset_debug_uses): New prototype.
10983 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
10984 * tree-loop-distribution.c (generate_loops_for_partition): Call
10985 reset_debug_uses on the stmts that will be removed. Keep around
10986 all debug stmts, don't count them as bits in partition bitmap.
10987 (generate_builtin): Don't count debug stmts or labels as bits in
10988 partition bitmap.
10989
b5e04de5
RG
109902011-05-11 Richard Guenther <rguenther@suse.de>
10991
10992 * gimple.c (gimple_type_hash_1): Merge with ...
10993 (gimple_type_hash): ... this.
10994 (gtc_visit): Remove mode parameter and simplify accordingly.
10995 (gimple_types_compatible_p_1): Likewise.
10996 (gimple_types_compatible_p): Likewise.
10997 (iterative_hash_gimple_type): Likewise.
10998 (visit): Likewise.
10999 (gimple_type_eq): Adjust.
11000
fc6970e4
RE
110012011-05-11 Revital Eres <revital.eres@linaro.org>
11002
11003 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
11004 enters the branch create an anti edge in the opposite direction
11005 to prevent the creation of reg-moves.
11006 * modulo-sched.c: Adjust comment to reflect the fact we are
11007 scheduling closing branch.
11008 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
11009 (stage_count): New field in struct partial_schedule.
11010 (calculate_stage_count): New function.
11011 (normalize_sched_times): Rename to reset_sched_times and handle
11012 incrementing the sched time of the nodes by a constant value
11013 passed as parameter.
11014 (duplicate_insns_of_cycles): Skip closing branch.
11015 (sms_schedule_by_order): Schedule closing branch.
11016 (ps_insn_find_column): Handle closing branch.
11017 (sms_schedule): Call reset_sched_times and adjust the code to
11018 support scheduling of the closing branch.
11019 (ps_insert_empty_row): Update calls to normalize_sched_times
11020 and rotate_partial_schedule functions.
11021
41a58a92
RG
110222011-05-11 Richard Guenther <rguenther@suse.de>
11023
11024 PR middle-end/48953
11025 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
11026
e9f8dcf9
JM
110272011-05-11 Joseph Myers <joseph@codesourcery.com>
11028
cb032fee
UB
11029 * opts.c (finish_options): Move warning settings from process_options.
11030 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 11031
10c224a9
RG
110322011-05-11 Richard Guenther <rguenther@suse.de>
11033
11034 PR tree-optimization/18041
11035 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
11036 (simplify_bitwise_binary): ... this. Handle operand conversions
11037 by applying them to the result instead.
11038 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
11039
825b27de
RG
110402011-05-11 Richard Guenther <rguenther@suse.de>
11041
11042 * gimple.c (gimple_canonical_types_compatible_p): Split out
11043 from gimple_types_compatible_p and friends. Do not recurse
11044 to pointed-to types.
11045 (gimple_canonical_type_eq): Use it.
11046 (iterative_hash_canonical_type): Split out from
11047 iterative_hash_gimple_type and friends. Do not recurse
11048 to pointed-to types.
11049 (gimple_canonical_type_hash): Use it, allocate the hash here.
11050
ca756625
RE
110512011-05-11 Revital Eres <revital.eres@linaro.org>
11052
11053 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
11054 recognizing doloop.
11055
b8abece3
RE
110562011-05-11 Revital Eres <revital.eres@linaro.org>
11057
11058 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
11059 instead of PREV_INSN.
11060
ce7b3761
RE
110612011-05-11 Revital Eres <revital.eres@linaro.org>
11062
11063 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
11064 * loop-doloop.c (doloop_condition_get): Likewise.
11065 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
11066 (doloop_end): New.
11067 * config/arm/arm.md (*addsi3_compare0): Remove "*".
11068
a9dc9d37
NF
110692011-05-10 Nathan Froyd <froydnj@codesourcery.com>
11070
11071 * tree.def (CASE_LABEL_EXPR): Add an operand.
11072 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
11073
96703596
JM
110742011-05-10 Joseph Myers <joseph@codesourcery.com>
11075
11076 * c-decl.c (c_override_global_bindings_to_false): Remove.
11077 (global_bindings_p): Don't check
11078 c_override_global_bindings_to_false.
11079 * c-tree.h (c_override_global_bindings_to_false): Remove.
11080 * c-typeck.c (composite_type): Don't set
11081 c_override_global_bindings_to_false.
11082
dbcc9f08
MM
110832011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
11084
11085 PR target/48857, 48495
11086 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
11087 (VSX_MODE): Ditto.
11088 (VSX_MOVE_MODE): Ditto.
11089 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
11090 VSX vector types. Add V2DImode.
11091 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
11092 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
11093 (MODES_TIEABLE_P): Ditto.
11094
11095 * config/rs6000/rs6000.c (rs6000_emit_move): Use
11096 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
11097 VSX_VECTOR_MODE.
11098 (init_cumulative_args): Ditto.
11099 (rs6000_function_arg_boundary): Ditto.
11100 (rs6000_function_arg_advance_1): Ditto.
11101 (rs6000_function_arg): Ditto.
11102 (rs6000_function_ok_for_sibcall): Ditto.
11103 (emit_frame_save): Ditto.
11104 (rs6000_function_value): Ditto.
11105 (rs6000_libcall_value): Ditto.
11106
4a68b4ca
JM
111072011-05-10 Joseph Myers <joseph@codesourcery.com>
11108
11109 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11110 i386/darwin-lib.h to $libgcc_tm_file.
11111 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
11112
bcb521e9
JM
111132011-05-10 Joseph Myers <joseph@codesourcery.com>
11114
11115 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
11116
f10d3ac9
JM
111172011-05-10 Joseph Myers <joseph@codesourcery.com>
11118
cb032fee 11119 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
11120 * config/rs6000/rs6000-tables.opt: New file (generated).
11121 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
11122 rs6000/rs6000-tables.opt to extra_options.
11123 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
11124 * config/rs6000/rs6000.c (rs6000_select): Remove.
11125 (processor_target_table): Move contents to rs6000-cpus.def.
11126 (darwin_rs6000_override_options): Check
11127 global_options_set.x_rs6000_cpu_index instead of
11128 rs6000_select[1].string.
11129 (rs6000_option_override_internal): Likewise.
11130 (rs6000_handle_option): Don't assert that global structures are in
11131 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
11132 (rs6000_default_cpu): New variable.
11133 (rs6000_file_start): Set it instead of local default_cpu. Check
11134 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
11135 global_options_set.x_rs6000_tune_index instead of rs6000_select.
11136 (rs6000_darwin_file_start): Check rs6000_default_cpu and
11137 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
11138 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
11139 rs6000_select): Remove.
11140 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
11141 Remove.
11142 (mcpu=, mtune=): Use Var, Init, Enum and Save.
11143 * config/rs6000/t-rs6000
11144 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
11145 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
11146 global_options_set.x_rs6000_cpu_index instead of
11147 rs6000_select[1].string.
11148 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
11149 global_options_set.x_rs6000_cpu_index instead of
11150 rs6000_select[1].string.
11151
80cf2e08
JM
111522011-05-10 Joseph Myers <joseph@codesourcery.com>
11153
11154 * config.gcc (libgcc_tm_file): Define instead of including files
11155 from ../../libgcc/config/ in tm_file.
cb032fee 11156 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
11157 * configure: Regenerate.
11158 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
11159 libgcc_tm.h, cs-libgcc_tm.h): New.
11160 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
11161 (clean): Remove libgcc_tm.h.
11162 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
11163 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
11164 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
11165
fd01a351
GJL
111662011-05-10 Georg-Johann Lay <avr@gjlay.de>
11167
11168 PR target/48896
11169 * config/avr/avr.c (avr_ret_register): Return unsigned int
11170 instead of int.
11171 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
11172 it to avr_libcall_value.
11173 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
11174 expand_expr.
11175 (avr_expand_binop_builtin): Ditto.
11176 (avr_expand_unop_builtin): Ditto.
11177
34cc3c86
DD
111782011-05-10 DJ Delorie <dj@redhat.com>
11179
11180 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
11181 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
11182 * config/rx/rx.c (rx_align_for_label): Add label and
11183 uses_threshold parameters. Do not align when the label is not
11184 used enough.
11185 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
11186
be173289
RG
111872011-05-10 Richard Guenther <rguenther@suse.de>
11188
11189 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
11190 a series of conversions and apply foldings similar to what
11191 fold-const does.
11192 (tree_ssa_forward_propagate_single_use_vars): Call it.
11193
e7f78021
JJ
111942011-05-10 Jakub Jelinek <jakub@redhat.com>
11195
6ae70ea2
JJ
11196 PR tree-optimization/48611
11197 PR tree-optimization/48794
11198 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
11199 referenced from RESX or EH_DISPATCH arguments.
11200
e7f78021
JJ
11201 PR debug/48928
11202 * dfp.c (decimal_to_decnumber): Handle conversion from
11203 dconst{1,2,m1,half}.
11204
fca132b9
UB
112052011-05-09 Uros Bizjak <ubizjak@gmail.com>
11206
11207 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
11208 for !flag_prefer_avx128.
11209 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
11210
e4c03378
EB
112112011-05-09 Eric Botcazou <ebotcazou@adacore.com>
11212
11213 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
11214 (fold_ternary_loc): Use expr_location_or.
11215
805d6a75
L
112162011-05-09 H.J. Lu <hongjiu.lu@intel.com>
11217
11218 PR debug/48853
11219 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
11220 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
11221 Pmode and mem_mode is not VOIDmode.
11222
e4c03378 112232011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 11224
e4c03378
EB
11225 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
11226 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 11227
51e7f377
UB
112282011-05-09 Uros Bizjak <ubizjak@gmail.com>
11229
11230 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
11231 (const_pow2_1_to_8_operand): Ditto.
11232 (const_pow2_1_to_128_operand): Ditto.
11233 (const_pow2_1_to_32768_operand): Ditto.
11234 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
11235 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
11236 in insn constraint to check integer value of operand 3.
11237 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
11238
11239 (PINSR_MODE): New mode iterator.
11240 (sse2p4_1): New mode attribute.
11241 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
11242 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
11243 iterator. Use const_int_operand instead of
11244 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
11245 exact_log2 in insn constraint to check integer value of operand 3.
11246
112472011-05-09 Uros Bizjak <ubizjak@gmail.com>
11248
11249 * config/i386/sse.md (blendbits): Remove mode attribute.
11250 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11251 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11252 Check integer value of operand 3 in insn constraint.
11253
0ca8de87
RG
112542011-05-09 Richard Guenther <rguenther@suse.de>
11255
11256 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
11257 for diagnostics.
11258 (lto_symtab_merge): Likewise. Do not register types here.
11259 (lto_symtab_merge_decls_2): Likewise.
11260 (lto_symtab_merge_decls_1): Likewise.
11261 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
11262 * gimple.c (enum gtc_mode): Declare.
11263 (gimple_types_compatible_p): Make static.
11264
a9e6994a
AK
112652011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11266
11267 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
11268 temporary register to match Pmode.
11269
fb55d62e
UB
112702011-05-09 Uros Bizjak <ubizjak@gmail.com>
11271
11272 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
11273 and *vec_concatv4si_1_avx.
11274
eb1485a6
UB
112752011-05-09 Uros Bizjak <ubizjak@gmail.com>
11276
11277 PR rtl-optimization/48927
11278 * ira-conflicts.c (commutative_constraint_p): Use
11279 recog_data.alternative_enabled_p to disable alternatives where
11280 "enabled" attribute is false.
11281 (get_dup_num): Ditto.
11282 * ira-lives.c (single_reg_class): Ditto.
11283 (ira_implicitly_set_insn_hard_regs): Ditto.
11284
c46d001a
EB
112852011-05-09 Eric Botcazou <ebotcazou@adacore.com>
11286
11287 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
11288 (dataflow_set_preserve_mem_locs): Likewise.
11289
112902011-05-09 Philipp Thomas <pth@suse.de>
11291
6d9e7c41
PT
11292 * config/mep/mep.c (mep_validate_vliw): Syntax description
11293 should not be translated.
11294
d371df6f
JM
112952011-05-09 Joseph Myers <joseph@codesourcery.com>
11296
11297 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
11298 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 11299 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
11300 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
11301 MIPS_ARCH_OPTION_NATIVE): Define.
11302 * config/mips/mips.c (mips_cpu_info_table): Move contents to
11303 mips-cpus.def.
11304 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
11305 mips_parse_cpu): Remove.
11306 (mips_cpu_info_from_opt, mips_default_arch): New.
11307 (mips_handle_option): Don't assert that global structures are in
11308 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
11309 (mips_option_override): Use new variables and functions to set
eb1485a6 11310 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
11311 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
11312 definition.
11313 * config/mips/mips.opt (march=): Use ToLower and Enum.
11314 (mips): Use ToLower, Enum and Var.
11315 (mtune=): Use ToLower and Enum.
11316 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
11317
4fc07af9
JH
113182011-05-08 Jan Hubicka <jh@suse.cz>
11319
11320 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
11321 Arrange type pairs to be UID ordered.
11322 (gimple_lookup_type_leader): Make inline.
11323
2cf320a8
NC
113242011-05-09 Nick Clifton <nickc@redhat.com>
11325
61d6def5
NC
11326 PR target/48899
11327 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
11328 PROCESSOR_DEFAULT.
11329
2cf320a8
NC
11330 PR target/48897
11331 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
11332 variable 's'.
11333
4f82319d
CLT
113342011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
11335
11336 * combine.c (simplify_comparison): Abstract out parts into...
11337 (simplify_compare_const): ... new function.
11338 (try_combine): Generalize parallel arithmetic/compare combining
11339 to call simplify_compare_const() and CANONICALIZE_COMPARE().
11340
74605a11
JH
113412011-05-08 Jan Hubicka <jh@suse.cz>
11342
11343 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
11344 (cgraph_create_virtual_clone): Call hooks once virtual clone
11345 is finished.
74605a11 11346 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
11347 * ipa-cp.c (ipcp_estimate_growth): Use
11348 estimate_ipcp_clone_size_and_time.
74605a11
JH
11349 * ipa-inline-transform.c (clone_inlined_nodes): Update.
11350 * lto-cgraph.c (input_node): Update.
11351 * ipa-inline.c (recursive_inlining): Update.
11352 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
11353 (evaluate_conditions_for_known_args): Break out from ...
11354 (evaluate_conditions_for_edge): ... here.
11355 (evaluate_conditions_for_ipcp_clone): New function.
11356 (inline_node_duplication_hook): Update clone summary based
11357 on parameter map.
11358 (estimate_callee_size_and_time): Rename to ...
11359 (estimate_node_size_and_time): take NODE instead of EDGE;
11360 take POSSIBLE_TRUTHS as argument.
11361 (estimate_callee_size_and_time): Update.
11362 (estimate_ipcp_clone_size_and_time): New function.
11363 (do_estimate_edge_time): Update.
11364
5c049507
RG
113652011-05-08 Richard Guenther <rguenther@suse.de>
11366
11367 PR middle-end/48908
11368 PR middle-end/48905
11369 * expmed.c (expand_shift_1): Compute adjusted constant shift
11370 amount manually.
11371
f64c36ba
EB
113722011-05-08 Eric Botcazou <ebotcazou@adacore.com>
11373
11374 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
11375
c461a957
EB
113762011-05-08 Eric Botcazou <ebotcazou@adacore.com>
11377
11378 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
11379
7c74e556
JW
113802011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
11381
11382 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
11383
b4c0a884
JH
113842011-05-07 Jan Hubicka <jh@suse.cz>
11385
a9bcb3f0
EB
11386 * ipa-inline-transform.c (inline_call): Account when program size
11387 decreases.
b4c0a884 11388 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
11389 (edge_badness): Reorganize to be power 2 based; fix thinko when
11390 computing badness for negative growth; update comments to match
11391 reality; better dumps.
b4c0a884 11392
c99c0026
EB
113932011-05-07 Eric Botcazou <ebotcazou@adacore.com>
11394
11395 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
11396 type to bool and adjust comment.
11397 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
11398 (fold_mathfn_compare): Remove calls to global_bindings_p.
11399 (fold_inf_compare): Likewise.
11400 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
11401 * c-tree.h (global_bindings_p): Adjust prototype.
11402 * c-decl.c (global_bindings_p): Return bool and simplify.
11403
1400c8e5
ZD
114042011-05-07 Zdenek Dvorak <ook@ucw.cz>
11405
11406 PR tree-optimization/48837
11407 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
11408 when accumulator transformation is performed.
11409
5d0878e7
JH
114102011-05-06 Jan Hubicka <jh@suse.cz>
11411
a9bcb3f0
EB
11412 * i386.h (ix86_tune_indices): Add
11413 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 11414 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
11415 * i386.c (initial_ix86_tune_features): Add
11416 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
11417 (software_prefetching_beneficial_p): Remove predicate.
11418 (ix86_option_override_internal): Use new macro.
11419
58696ce5
JH
114202011-05-06 Jan Hubicka <jh@suse.cz>
11421
11422 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
11423
c47d0034
JH
114242011-05-06 Jan Hubicka <jh@suse.cz>
11425
11426 * cgraph.c (cgraph_add_thunk): Create real function node instead
11427 of alias node; finalize it and mark needed/reachale; arrange visibility
11428 to be right and add it into the corresponding same comdat group list.
11429 (dump_cgraph_node): Dump thunks.
11430 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
11431 cgraph_function_with_gimple_body_p,
11432 cgraph_first_function_with_gimple_body,
c47d0034
JH
11433 cgraph_next_function_with_gimple_body): New functions.
11434 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
11435 New macros.
11436 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
11437 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
11438 * cgraphunit.c (cgraph_finalize_function): Only look into possible
11439 devirtualization when optimizing.
11440 (verify_cgraph_node): Verify thunks.
11441 (cgraph_analyze_function): Analyze thunks.
11442 (cgraph_mark_functions_to_output): Output thunks only in combination
11443 with function they are assigned to.
11444 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
11445 alias into normal node.
11446 (assemble_thunks): New functoin.
11447 (cgraph_expand_function): Use it.
11448 * lto-cgraph.c (lto_output_node): Stream thunks.
11449 (input_overwrite_node): Stream in thunks.
11450 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
11451 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
11452 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
11453 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
11454 (inline_analyze_function): Do not care about thunk jump functions.
11455 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
11456 * ipa-prop.c (ipa_prop_write_jump_functions): Use
11457 cgraph_function_with_gimple_body_p.
11458 * passes.c (do_per_function_toporder): Use
11459 cgraph_function_with_gimple_body_p.
c47d0034
JH
11460 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
11461 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
11462 (function_called_by_processed_nodes_p): Likewise.
11463
d8f426ec
JM
114642011-05-06 Joseph Myers <joseph@codesourcery.com>
11465
11466 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
11467 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
11468 entries.
11469 (mabi=): Replace with separate entries for mabi=altivec,
11470 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
11471 mabi=ieeelongdouble and mabi=ibmlongdouble.
11472 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
11473 check for -mabi=spe without SPE ABI support here.
11474 (rs6000_handle_option): Replace OPT_mabi_ handling with
11475 OPT_mabi_altivec and OPT_mabi_spe handling.
11476
80bde45b
CC
114772011-05-06 Cary Coutant <ccoutant@google.com>
11478
11479 * dwarf2out.c (contains_subprogram_definition): New function.
11480 (should_move_die_to_comdat): Call it.
11481
a91926b9
JL
114822011-05-06 Jeff Law <law@redhat.com>
11483
11484 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
11485 remove_ctrl_stmt_and_useless_edges.
11486 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
11487 (fixup_template_block, thread_single_edge): Likewise.
11488 (mark_threaded_blocks): Use THREAD_TARGET.
11489
1fc1b66d
AM
114902011-05-06 Alan Modra <amodra@gmail.com>
11491
11492 PR target/48900
11493 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
11494 const0_rtx as the arg to the dummy __tls_get_addr libcall.
11495
e194de64
UB
114962011-05-06 Uros Bizjak <ubizjak@gmail.com>
11497
11498 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
11499 constraint modifier to "r".
11500
d740dc9e
JM
115012011-05-06 Joseph Myers <joseph@codesourcery.com>
11502
11503 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
11504 fall through for OPT_mcmodel_.
11505
cab78b15
AK
115062011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11507
11508 * config/s390/s390.c (s390_asm_trampoline_template): Comment
11509 instruction sizes.
e194de64 11510 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 11511
ee6824ae
RR
115122011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11513
eb1485a6
UB
11514 PR target/47930
11515 * config/arm/arm.opt (marm): Document it.
11516 (mthumb): Reject negative variant.
ee6824ae 11517
9ef58464
UB
115182011-05-06 Uros Bizjak <ubizjak@gmail.com>
11519
11520 PR target/48898
11521 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11522 Fix typo in "ccvt" variable name.
11523
155b6176
TG
115242011-05-06 Tristan Gingold <gingold@adacore.com>
11525
11526 PR target/48895
11527 * config/vms/vms-ar.c (main): Remove cwd variable.
11528
3becc47b
JJ
115292011-05-06 Jakub Jelinek <jakub@redhat.com>
11530
11531 PR debug/48902
11532 * var-tracking.c (prepare_call_arguments): Move else before #endif.
11533
3d528853
NF
115342011-05-05 Nathan Froyd <froydnj@codesourcery.com>
11535
11536 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
11537 * gimplify.c (gimplify_switch_expr): Likewise.
11538 * omp-low.c (expand_omp_sections): Likewise.
11539 * tree-eh.c (lower_try_finally_switch): Likewise.
11540 (lower_eh_dispatch): Likewise.
11541 * tree.h (build_case_label): Declare.
11542 * tree.c (build_case_label): Define.
11543
deb5046b
JM
115442011-05-05 Jason Merrill <jason@redhat.com>
11545
11546 PR c++/40975
11547 * tree-inline.c (copy_tree_r): Use copy_statement_list.
11548 (copy_statement_list): Don't recurse.
11549 * stor-layout.c (copy_self_referential_tree_r): Don't allow
11550 STATEMENT_LIST.
11551
013c0411
JM
115522011-05-05 Joseph Myers <joseph@codesourcery.com>
11553
11554 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
11555 through from -mfpu= handling.
11556 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
11557
a0905f8b
BS
115582011-05-05 Bernd Schmidt <bernds@codesourcery.com>
11559
11560 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
11561 POST_MODIFY.
11562
fc4538e4
SE
115632011-05-05 Steve Ellcey <sje@cup.hp.com>
11564
11565 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
11566 for 11.31.
11567 (hppa[12]*-*-hpux11*): Ditto.
11568 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
11569 * config/ia64/hpux-unix2003.h: New.
11570 * config/pa/pa-hpux1131.opt: New.
11571 * config/pa/pa-hpux1131.h: New.
11572 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
11573 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 11574 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 11575
1e30c578
JJ
115762011-05-05 Jakub Jelinek <jakub@redhat.com>
11577
11578 PR debug/48853
11579 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
11580 instead of mode as 3rd argument to recursive call.
11581 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
11582 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
11583 VOIDmode.
11584 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
11585 don't give up if mode is Pmode and mem_mode is not VOIDmode.
11586 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
11587 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
11588
d19eb620
JB
115892011-05-05 Julian Brown <julian@codesourcery.com>
11590
11591 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
11592 parenthesis in D-register case.
11593
c860fe8c
JM
115942011-05-05 Joseph Myers <joseph@codesourcery.com>
11595
11596 * opt-functions.awk (var_type_struct): Handle Enum options.
11597 * optc-gen.awk: Don't check range of variables of character type.
11598 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
11599 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
11600 rs6000_sdata_name, rs6000_explicit_options): Remove.
11601 (rs6000_option_override_internal): Check for -malign-power here.
11602 Use global_options_set instead of rs6000_explicit_options.
11603 (rs6000_parse_fpu_option): Remove.
11604 (rs6000_handle_option): Access variables via opts and opts_set
11605 pointers. Use error_at and warning_at. Add fall-through
11606 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
11607 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
11608 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
11609 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
11610 here. Don't use rs6000_parse_fpu_option.
11611 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
11612 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
11613 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
11614 (mrecip=): Use Var.
11615 (mspe): Use Var and Save.
11616 (mtraceback=): Use Enum and Var.
11617 (rs6000_traceback_type): New Enum and EnumValue entries.
11618 (mfloat-gprs=): Use Enum, Var and Save.
11619 (rs6000_float_gprs): New Enum and EnumValue entries.
11620 (mlong-double-): use Var and Save.
11621 (msched-costly-dep=, minsert-sched-nops=): Use Var.
11622 (malign-): Use Enum and Var.
11623 (rs6000_alignment_flags): New Enum and EnumValue entries.
11624 (mfpu=): Use Enum.
11625 (fpu_type_t): New Enum and EnumValue entries.
11626 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
11627 global_options_set instead of rs6000_explicit_options.
11628 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
11629 global_options_set instead of rs6000_explicit_options.
11630 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
11631 global_options_set instead of rs6000_explicit_options.
11632 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
11633 global_options_set instead of rs6000_explicit_options.
11634 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
11635 global_options_set instead of rs6000_explicit_options.
11636 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
11637 global_options_set instead of rs6000_explicit_options.
11638 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
11639 definition.
11640 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
11641 global_options_set instead of rs6000_explicit_options.
11642 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
11643 (rs6000_cmodel): New Enum and EnumValue entries.
11644 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
11645 global_options_set instead of rs6000_explicit_options.
11646 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
11647 (mtls-size=): Use Enum and Var.
11648 (rs6000_tls_size): New Enum and EnumValue entries.
11649
0691dde9
MM
116502011-05-05 Michael Matz <matz@suse.de>
11651
11652 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
11653 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
11654 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
11655 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
11656 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
11657 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
11658 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
11659 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
11660 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
11661 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
11662 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
11663 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
11664 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
11665 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
11666 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
11667 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
11668
86529a49
RG
116692011-05-05 Richard Guenther <rguenther@suse.de>
11670
11671 * expmed.c (expand_variable_shift): Rename to ...
11672 (expand_shift_1): ... this. Take an expanded shift amount.
11673 For rotates recurse directly not building trees for the shift amount.
11674 (expand_variable_shift): Wrap around expand_shift_1.
11675 (expand_shift): Adjust.
11676
d0228c2e
JJ
116772011-05-05 Jakub Jelinek <jakub@redhat.com>
11678
11679 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
11680
907a08d9
EB
116812011-05-05 Eric Botcazou <ebotcazou@adacore.com>
11682
11683 * tree.h (get_pending_sizes): Remove prototype.
11684 (put_pending_size): Likewise.
11685 (put_pending_sizes): Likewise.
11686 * stor-layout.c (pending_sizes): Delete.
11687 (get_pending_sizes): Likewise.
11688 (put_pending_size): Likewise.
11689 (put_pending_sizes): Likewise.
11690 (variable_size): Do not call put_pending_size and tidy up.
11691 * function.h (struct function): Remove dont_save_pending_sizes_p.
11692 * lto-streamer-in.c (input_function): Do not stream it.
11693 * lto-streamer-out.c (output_function): Likewise.
11694 * tree-inline.c (initialize_cfun): Do not copy it.
11695 * c-decl.c (store_parm_decls): Do not set it.
11696 * omp-low.c (create_task_copyfn): Likewise.
11697 * tree-optimize.c (tree_rest_of_compilation): Likewise.
11698
386d9c57
UB
116992011-05-05 Uros Bizjak <ubizjak@gmail.com>
11700
11701 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
11702 conditions.
11703 (*movdf_internal): Ditto.
11704 (*movdf_internal_nointeger): Ditto.
11705 (*movsf_internal): Ditto.
11706
a04a722b
JM
117072011-05-05 Joseph Myers <joseph@codesourcery.com>
11708
11709 * c-decl.c (finish_decl): Don't call get_pending_sizes.
11710 (grokparm): Add parameter expr. Pass it to grokdeclarator.
11711 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
11712 (c_variable_size): Remove.
11713 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
11714 call put_pending_sizes.
11715 (get_parm_info): Add parameter expr. Use it to set
11716 arg_info->pending_sizes.
11717 (store_parm_decls): Use arg_info->pending_sizes instead or calling
11718 get_pending_sizes.
11719 * c-parser.c (c_parser_parms_declarator): Update call to
11720 c_parser_parms_list_declarator.
11721 (c_parser_parms_list_declarator): Take parameter expr. Update
11722 call to push_parm_decl. Update recursive call. Don't call
11723 get_pending_sizes. Update calls to get_parm_info.
11724 (c_parser_objc_method_definition): Update calls to
11725 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 11726 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
11727 (c_parser_objc_method_decl): Add parameter expr. Update call to
11728 grokparm.
386d9c57 11729 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
11730 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
11731 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
11732
c92a6f97
MH
117332011-05-05 Michael Hope <michael.hope@linaro.org>
11734
386d9c57
UB
11735 PR pch/45979
11736 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
11737 __ARM_EABI__ hosts.
c92a6f97 11738
07ea0048
UW
117392011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11740
11741 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
11742 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
11743 (spu_output_mi_thunk): New function.
11744
d634bfa1
RO
117452011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11746
11747 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
11748 targetm.asm_out.print_operand.
11749 * config/sol2.c: Include target.h.
11750
40fda55b
JH
117512011-05-04 Jan Hubicka <jh@suse.cz>
11752
11753 * ipa-inline.c (reset_edge_caches): New function.
11754 (update_caller_keys): Add check_inlinablity_for; do not
11755 reset edge caches; remove now unnecesary loop.
386d9c57 11756 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
11757 (update_all_callee_keys): Likewise.
11758 (inline_small_functions): Sanity check cache; update code
11759 recomputing it.
11760
0360f70d
BS
117612011-05-04 Bernd Schmidt <bernds@codesourcery.com>
11762
11763 PR rtl-optimization/47612
11764 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
11765 as the last insn of the sequence to be moved.
11766
7a994646
TB
117672011-05-04 Tobias Burnus <burnus@net-b.de>
11768
11769 PR fortran/48864
11770 * doc/invoke.texi (Ofast): Document that it
11771 enables Fortran's -fno-protect-parens.
11772
7a2f7208
UB
117732011-05-04 Uros Bizjak <ubizjak@gmail.com>
11774
11775 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
11776
a2d42931
EB
117772011-05-04 Eric Botcazou <ebotcazou@adacore.com>
11778
11779 * stor-layout.c (variable_size): Do not issue errors.
11780
f81b1a3d
RG
117812011-05-04 Richard Guenther <rguenther@suse.de>
11782
11783 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
11784 for array-ref indices.
11785 (tree_coverage_counter_addr): Likewise.
11786 (build_fn_info_type): Use size_int for index types.
11787 (build_gcov_info): Likewise.
11788
c62c040f
RG
117892011-05-04 Richard Guenther <rguenther@suse.de>
11790
11791 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
11792 to build_int_cst.
11793 * c-typeck.c (really_start_incremental_init): Use bitsize_int
11794 for constructor indices.
11795 (push_init_level): Likewise.
11796
1e3287d0
RG
117972011-05-04 Richard Guenther <rguenther@suse.de>
11798
11799 * explow.c (promote_mode): Move variable declarations before code.
11800
6c32445b
NF
118012011-05-04 Nathan Froyd <froydnj@codesourcery.com>
11802
11803 * tree.h (build_function_type_array): Declare.
11804 (build_varargs_function_type_array): Declare.
11805 (build_function_type_vec, build_varargs_function_type_vec): Define.
11806 * tree.c (build_function_type_array_1): New function.
11807 (build_function_type_array): New function.
11808 (build_varargs_function_type_array): New function.
11809
fdabf269
RS
118102011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
11811
11812 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
11813 before setting STMT_VINFO_TYPE.
11814
a207915a
UW
118152011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11816
11817 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
11818 instead of spu_pass_by_reference.
11819
5e617be8
AK
118202011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11821
11822 * calls.c (emit_library_call_value_1): Invoke
11823 promote_function_mode hook on libcall arguments.
11824 * explow.c (promote_function_mode, promote_mode): Handle TYPE
11825 argument being NULL.
11826 * targhooks.c (default_promote_function_mode): Lisewise.
11827 * config/s390/s390.c (s390_promote_function_mode): Likewise.
11828 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
11829
11830 * doc/tm.texi: Document that TYPE argument might be NULL.
11831
486d04be
SH
118322011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
11833
11834 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
11835
9b19b026
SH
118362011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
11837
11838 From Bernd Schmidt
11839 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
11840
502bc3df
RO
118412011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11842
11843 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
11844 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
11845 Move ...
11846 * mips-tfile.c: ... here.
11847 Don't include coretypes.h, tm.h, filenames.h.
11848 (saber_stop): Remove definition and all calls.
11849 [__SABER__]: Remove.
11850 (__LINE__): Remove default.
11851 (Size_t, Ptrdiff_t): Remove definitions.
11852 Replace by size_t, ptrdiff_t.
11853 [!MIPS_DEBUGGING_INFO]: Remove.
11854 (SHASH_SIZE, THASH_SIZE): Remove defaults.
11855 (progname): Add const.
11856 (STATIC): Remove.
11857 Replace all uses by static.
11858 (ALIGN_SYMTABLE_OFFSET): Remove default.
11859 * mips-tdump.c: Don't include coretypes.h, tm.h.
11860 Remove !MIPS_IS_STAB guard.
11861 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
11862 $(TM_H), filenames.h dependencies.
11863 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
11864
991eb6ef
SH
118652011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
11866
11867 From Jie Zhang
11868 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
11869 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
11870
420ccc84
SH
118712011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
11872
11873 From Bernd Schmidt
11874 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
11875 account and save/restore RETS.
11876 (PROFILE_BEFORE_PROLOGUE): Define.
11877 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
11878 the push insn to use predecrement.
11879
9f8d69ee
SH
118802011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
11881
11882 From Jie Zhang
11883 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
11884
662c03f4
NC
118852011-05-04 Nick Clifton <nickc@redhat.com>
11886
11887 * config/mn10300/mn10300.c: Include cfgloop.h.
11888 (DUMP): New macro.
11889 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
11890 Lcc or a FLcc insn into the instruction stream.
11891 (mn10300_block_contains_call): New function. Returns true if the
11892 given basic block contains a CALL insn.
11893 (mn10300_loop_contains_call_insn): New function. Returns true if
11894 the given loop contains a CALL insn.
11895 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
11896 to use the SETLB and Lcc or FLcc insns.
11897 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
11898 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
11899 * config/mn10300/mn10300.opt (msetlb): New option. Used to
11900 disable the SETLB optimization.
11901 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
11902 __SETLB__ or __NO_SETLB__.
11903 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
11904 (movsf_internal): Handle MDR register.
11905 (cmpsi): Make visible.
11906 (setlb): New pattern.
11907 (Lcc): New pattern.
11908 (FLcc): New pattern.
11909
843b6915
UB
119102011-05-04 Uros Bizjak <ubizjak@gmail.com>
11911
11912 PR target/48860
11913 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
11914 for reg<->xmm moves.
11915 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
11916 (vec_concatv2di_rex64_sse): Ditto.
11917 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
11918 (*vec_extractv2di_1_rex64): Ditto.
11919
11920 Revert:
11921 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
11922
11923 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
11924 reg<->xmm moves.
11925 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
11926
d35936ab
RG
119272011-05-04 Richard Guenther <rguenther@suse.de>
11928
11929 * tree.h (int_const_binop): Remove notrunc argument.
11930 * fold-const.c (int_const_binop): Remove notrunc argument. Always
11931 create integer constants that are properly truncated.
11932 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
11933 (const_binop): Remove zero notrunc argument to int_const_binop.
11934 (size_binop_loc): Likewise.
11935 (fold_div_compare): Likewise.
11936 (maybe_canonicalize_comparison_1): Likewise.
11937 (fold_comparison): Likewise.
11938 (fold_binary_loc): Likewise.
11939 (multiple_of_p): Likewise.
11940 * expr.c (store_constructor): Likewise.
11941 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
11942 (maybe_fold_stmt_addition): Likewise.
11943 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
11944 * stor-layout.c (layout_type): Likewise.
11945 * tree-data-ref.c (tree_fold_divides_p): Likewise.
11946 * tree-sra.c (build_ref_for_offset): Likewise.
11947 (build_user_friendly_ref_for_offset): Likewise.
11948 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
11949 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11950 * tree-ssa-loop-niter.c (inverse): Likewise.
11951 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11952 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
11953 * tree-switch-conversion.c (check_range): Likewise.
11954 (build_constructors): Likewise.
11955 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
11956 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
11957 (extract_range_from_assert): Likewise.
11958 (vrp_int_const_binop): Likewise.
11959 (extract_range_from_binary_expr): Likewise.
11960 (extract_range_from_unary_expr): Likewise.
11961 (check_array_ref): Likewise.
11962 (find_case_label_range): Likewise.
11963 (simplify_div_or_mod_using_ranges): Likewise.
11964 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
11965 comparing case labels for merging.
11966
8992c063
MW
119672011-05-03 Mark Wielaard <mjw@redhat.com>
11968
11969 * dwarf2out.c (debug_str_hash_forced): Removed.
11970 (gen_label_for_indirect_string): Removed.
11971 (get_debug_string_label): Removed.
11972 (AT_string_form): Generate label directly.
11973 (output_indirect_string): Test indirect_string_node for
11974 DW_FORM_strp instead of checking label and refcount.
11975 (prune_indirect_string): Removed.
11976 (prune_unused_types): Don't check debug_str_hash_forced or
11977 call prune_indirect_string.
11978
4868e6ea
AO
119792011-05-04 Alexandre Oliva <aoliva@redhat.com>
11980
11981 PR other/48093
11982 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
11983
01a5c0ab
AO
119842011-05-04 Alexandre Oliva <aoliva@redhat.com>
11985
11986 PR debug/47994
11987 PR debug/47919
11988 * combine.c (try_combine): Skip debug insns at m_split tests.
11989
6ac00218
MW
119902011-04-26 Mark Wielaard <mjw@redhat.com>
11991
11992 PR42288
11993 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
11994 when info_section_emitted.
11995
3af42a7b
JM
119962011-05-03 Joseph Myers <joseph@codesourcery.com>
11997
11998 * config/mips/mips-opts.h: New.
11999 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
12000 to mips-opts.h.
12001 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
12002 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
12003 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
12004 via opts pointer.
12005 * config/mips/mips.h (enum mips_code_readable_setting): Move to
12006 mips-opts.h.
12007 (mips_abi, mips_code_readable): Don't declare.
843b6915 12008 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
12009 (mabi=): Use Enum and Var.
12010 (mips_abi): New Enum and EnumValue entries.
12011 (mcode-readable=): Use Enum and Var.
12012 (mips_code_readable_setting): New Enum and EnumValue entries.
12013 (mr10k-cache-barrier=): Use Enum and Var.
12014 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
12015
1cb1a99f
JH
120162011-05-03 Jan Hubicka <jh@suse.cz>
12017
12018 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
12019 replace hash by pointer map.
12020 (cgraph_node_set_element_def, cgraph_node_set_element,
12021 const_cgraph_node_set_element, varpool_node_set_element_def,
12022 varpool_node_set_element, const_varpool_node_set_element): Remove.
12023 (free_cgraph_node_set, free_varpool_node_set): New function.
12024 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
12025 * tree-emutls.c: Free varpool node set.
12026 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
12027 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
12028 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
12029 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
12030 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
12031 Move here from ipa.c; implement using pointer_map
12032 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
12033 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
12034 debug_cgraph_node_set, varpool_node_set_new,
12035 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
12036 dump_varpool_node_set, debug_varpool_node_set):
12037 Move to ipa-uitls.c.
12038 * passes.c (ipa_write_summaries): Update.
12039
7f31f4db
SH
120402011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
12041
7a2f7208
UB
12042 From Mike Frysinger:
12043 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
12044 bf542/bf544/bf547/bf548/bf549.
7f31f4db 12045
b70fce6d
UB
120462011-05-03 Uros Bizjak <ubizjak@gmail.com>
12047
12048 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
12049
265b1d82
SH
120502011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
12051
12052 From Bernd Schmidt:
12053 * config/bfin/bfin.md (MOVCC): New mode_macro.
12054 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
12055 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
12056 comments from generated assembly.
12057
f0b568f3
SH
120582011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
12059
12060 From Bernd Schmidt
12061 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
12062 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
12063 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
12064 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
12065 * config/bfin/lib1funcs.asm (___muldi3): New function.
12066
2c67cf6e
NF
120672011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12068
12069 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
12070 build_function_type_list instead of build_function_type.
12071 Rearrange initialization of `args' to do so.
12072
f9ac28ad
NF
120732011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12074
12075 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
12076 instead of build_function_type.
12077
22b8798c
NF
120782011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12079
12080 * config/rs6000/rs6000.c (spe_init_builtins): Call
12081 build_function_type_list instead of build_function_type.
12082 (paired_init_builtins, altivec_init_builtins): Likewise.
12083 (builtin_function_type): Likewise.
12084
4cb44528
NF
120852011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12086
12087 * config/sh/sh.c (sh_media_init_builtins): Call
12088 build_function_type_list instead of build_function_type.
12089
4c203a6a
NF
120902011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12091
12092 * config/sparc/sparc.c (sparc_file_end): Call
12093 build_function_type_list instead of build_function_type.
12094
d6a3d62b
NF
120952011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12096
12097 * config/alpha/alpha.c (alpha_init_builtins): Call
12098 build_function_type_list instead of build_function_type.
12099
de530b86
NF
121002011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12101
12102 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
12103 build_function_type_list instead of build_function_type.
12104
baeec5f2
NF
121052011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12106
12107 * config/iq2000/i2000.c (iq2000_init_builtins): Call
12108 build_function_type_list instead of build_function_type.
12109 Delete `endlink' variable.
12110
c19afe52
NF
121112011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12112
12113 * config/avr/avr.c (avr_init_builtins): Call
12114 build_function_type_list instead of build_function_type.
12115
a341df0a
NF
121162011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12117
12118 * config/picochip/picochip.c (picochip_init_builtins): Call
12119 build_function_type_list instead of build_function_type.
12120 Delete `endlink' variable.
12121
2102b1e1
NF
121222011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12123
12124 * config/bfin/bfin.c (bfin_init_builtins): Call
12125 build_function_type_list instead of build_function_type.
12126
9f111209
SH
121272011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
12128
12129 From Bernd Schmidt
12130 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
12131 that's not CONST_INT. Seemingly redundant check is due to PR39768.
12132
7071d064
SH
121332011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
12134
12135 From Jie Zhang:
12136 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
12137 libbffastfp overrides libgcc when -mfast-fp.
12138
748f7574 121392011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
12140
12141 Originally from Bernd Schmidt
12142 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
12143 * config/bfin/bfin.c (override_options): Test it and error if
12144 TARGET_FDPIC.
12145
1a3a9152
SH
121462011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
12147
12148 Originally From Bernd Schmidt
12149 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
12150 FD-PIC.
12151
7134c090
JL
121522011-05-03 Jeff Law <law@redhat.com>
12153
12154 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
12155 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
12156 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
12157 than accessing AUX field directly. Free the AUX field before
12158 clearing it.
7134c090
JL
12159 (thread_block, thread_through_loop_header): Likewise.
12160 (thread_single_edge, mark_threaded_blocks): Likewise.
12161 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
12162 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 12163
2c7eebae
BS
121642011-05-03 Bernd Schmidt <bernds@codesourcery.com>
12165
12166 * function.c (init_function_start): Call decide_function_section.
12167 * varasm.c (decide_function_section): New function.
12168 (assemble_start_function): When not using
12169 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
12170 or first_function_block_is_cold.
12171 * rtl.h (decide_function_section): Declare.
12172
17038fcf
JJ
121732011-05-03 Uros Bizjak <ubizjak@gmail.com>
12174 Jakub Jelinek <jakub@redhat.com>
12175
12176 PR target/48774
12177 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
12178 only succeed if req_mode is the same as set_mode.
12179
3810076b
BS
121802011-05-03 Bernd Schmidt <bernds@codesourcery.com>
12181
12182 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
12183 * genemit.c (gen_exp): Handle RETURN.
12184 * emit-rtl.c (verify_rtx_sharing): Likewise.
12185 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
12186 * rtl.c (copy_rtx): RETURN is shared.
12187 * rtl.h (enum global_rtl_index): Add GR_RETURN.
12188 (ret_rtx): New.
12189 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
12190 * config/s390/s390.c (s390_emit_epilogue): Likewise.
12191 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
12192 * config/cris/cris.c (cris_expand_return): Likewise.
12193 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
12194 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
12195 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
12196 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
12197 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
12198 Likewise.
12199 * config/v850/v850.c (expand_epilogue): Likewise.
12200 * config/bfin/bfin.c (bfin_expand_call): Likewise.
12201 * config/arm/arm.md (epilogue): Likewise.
12202 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
12203 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
12204 variable to ret_reg.
12205
9efdb4ad
RG
122062011-05-03 Richard Guenther <rguenther@suse.de>
12207
12208 PR lto/48846
12209 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
12210 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
12211 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
12212
60a45536
RG
122132011-05-03 Richard Guenther <rguenther@suse.de>
12214
12215 * c-decl.c (grokdeclarator): Instead of looking at
12216 TREE_OVERFLOW check if the constant fits in the index type.
12217
3188ed59
RS
122182011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
12219
12220 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
12221 (vec_store_lanes<mode><mode>): Likewise.
12222
272c6793
RS
122232011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
12224
12225 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
12226 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
12227 convert_optab_index values.
12228 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
12229 * genopinit.c (optabs): Initialize the new optabs.
12230 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
12231 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
12232 (expand_STORE_LANES): New functions.
12233 * tree.h (build_array_type_nelts): Declare.
12234 * tree.c (build_array_type_nelts): New function.
12235 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
12236 (vect_model_load_cost): Likewise.
12237 (vect_store_lanes_supported, vect_load_lanes_supported)
12238 (vect_record_strided_load_vectors): Declare.
12239 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
12240 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
12241 (vect_transform_strided_load): Split out statement recording into...
12242 (vect_record_strided_load_vectors): ...this new function.
12243 * tree-vect-stmts.c (create_vector_array, read_vector_array)
12244 (write_vector_array, create_array_ref): New functions.
12245 (vect_model_store_cost): Add store_lanes_p argument.
12246 (vect_model_load_cost): Add load_lanes_p argument.
12247 (vectorizable_store): Try to use store-lanes functions for
12248 interleaved stores.
12249 (vectorizable_load): Likewise load-lanes and loads.
12250 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
12251 to vect_model_store_cost.
12252 (vect_build_slp_tree): Likewise vect_model_load_cost.
12253
0f6d54f7
RS
122542011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
12255
12256 * hooks.h (hook_bool_mode_uhwi_false): Declare.
12257 * hooks.c (hook_bool_mode_uhwi_false): New function.
12258 * target.def (array_mode_supported_p): New hook.
12259 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
12260 * doc/tm.texi: Regenerate.
12261 * stor-layout.c (mode_for_array): New function.
12262 (layout_type): Use it.
12263 * config/arm/arm.c (arm_array_mode_supported_p): New function.
12264 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
12265
b15eacc7
EB
122662011-05-03 Eric Botcazou <ebotcazou@adacore.com>
12267
12268 PR target/48723
12269 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
12270 for -fstack-check if the size to allocate is negative.
12271
575bfb00
LC
122722011-05-02 Lawrence Crowl <crowl@google.com>
12273
12274 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
12275 (timevar_cond_start): New for starting a timer only when it is not
12276 already running.
12277 (timevar_cond_stop): New for stopping a timer when it was not already
12278 running.
12279
12280 * timevar.c (timevar_stop): Enable start/stop timers to start again.
12281 (timevar_cond_start): New as above.
12282 (timevar_cond_stop): New as above.
12283
12284 * timevar.def: Add start/stop timers for compiler phases,
12285 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
12286 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
12287 and TV_PHASE_FINALIZE.
12288 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
12289 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
12290 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
12291 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
12292 Make unused TV_OVERLOAD into a start/stop timer.
12293
12294 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
12295 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
12296 to indicate that they are start/stop timers.
12297
12298 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
12299 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
12300 Move initialization to do_compile.
12301 (do_compile): Add initialization from above.
12302 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
12303
12304 * c-decl.c (c_write_global_declarations): Add start/stop of
12305 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
12306
12307 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
12308 or TV_PARSE_INLINE, as appropriate.
12309 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
12310 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
12311
3533b943
JM
123122011-05-02 Jason Merrill <jason@redhat.com>
12313
12314 PR c++/40975
12315 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
12316
2609a0ce
SM
123172011-05-02 Simon Martin <simartin@users.sourceforge.net>
12318
12319 PR c/35445
12320 * c-decl.c (finish_decl): Only create a composite if the types are
12321 compatible.
12322
6b0e4cbb
JM
123232011-05-02 Joseph Myers <joseph@codesourcery.com>
12324
12325 * config/fr30/fr30-protos.h (Mmode): Don't define.
12326 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
12327 definition where used.
12328 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
12329 define. Expand definitions where used.
12330 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
12331 Expand definitions where used.
12332 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
12333 rx_function_arg, rx_function_arg_advance,
12334 rx_function_arg_boundary): Expand definitions of those macros.
12335 * config/v850/v850-protos.h (Mmode): Don't define. Expand
12336 definition where used.
12337
4e938ce6
UB
123382011-05-02 Uros Bizjak <ubizjak@gmail.com>
12339
12340 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
12341 reg<->xmm moves.
12342 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
12343 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
12344 with *movv2sf_internal_rex64_avx.
12345 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
12346 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
12347 Use %v prefix in insn mnemonic to handle TARGET_AVX.
12348 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
12349 "vex" in "prefix" attribute calculation.
12350 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
12351
36019c19
SH
123522011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
12353
7a2f7208
UB
12354 PR target/47951
12355 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
12356 inputs match the output.
36019c19 12357
f69ea688
AS
123582011-05-02 Andreas Schwab <schwab@linux-m68k.org>
12359
12360 PR target/47955
12361 * config/m68k/m68k.c (m68k_expand_prologue): Set
12362 current_function_static_stack_size.
12363
c33406f5
JH
123642011-05-02 Jan Hubicka <jh@suse.cz>
12365
12366 * lto-streamer.c (lto_streamer_cache_insert_1,
12367 lto_streamer_cache_lookup, lto_streamer_cache_create,
12368 lto_streamer_cache_delete): Use pointer map instead of hashtable.
12369 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
12370
47c94d21
JM
123712011-05-02 Joseph Myers <joseph@codesourcery.com>
12372
12373 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
12374 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
12375 config/m68k/t-opts: New files.
12376 * config/m68k/m68k-tables.opt: New file (generated).
12377 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
12378 extra_options and m68k/t-opts to tmake_file.
12379 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
12380 (all_isas): Initialize using m68k-isas.def.
12381 (all_microarchs): Initialize using m68k-microarchs.def.
12382 (m68k_find_selection): Remove.
12383 (m68k_handle_option): Don't assert that global structures are in
12384 use. Use error_at. Access variables via opts pointer. Don't
12385 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
12386 directly for -m68020-40 and -m68020-60.
12387 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
12388 m68k_tune_entry here.
12389 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
12390 to m68k-opts.h.
12391 (m68k_library_id_string): Remove declaration.
4e938ce6 12392 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
12393 (m68k_library_id_string): New Variable.
12394 (march=, mcpu=, mtune=): Use Enum and Var.
12395
e562bf36
RG
123962011-05-02 Richard Guenther <rguenther@suse.de>
12397
12398 * varasm.c (output_constructor_regular_field): Compute zero-based
12399 index with double-ints. Make sure to ICE instead of producing
12400 wrong code.
12401 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
12402 in asserts. Properly use a signed type.
12403
6bec6c98
UB
124042011-05-02 Uros Bizjak <ubizjak@gmail.com>
12405
12406 * config/i386/sse.md (V): New mode iterator.
12407 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
12408 TARGET_SSE2.
12409 (V_256): Rename from AVX256MODE.
12410 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
12411 condition to all users.
12412 (VF1): Ditto.
12413 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
12414 condition to all users.
12415 (VF_128): Make V4SF mode unconditional.
12416 (VF_256): Rename from AVX256MODEF2P.
12417 (VI4F_128): Rename from SSEMODE4S.
12418 (VI8F_128): Rename from SSEMODE2D.
12419 (VI4F_256): Rename from AVX256MODE8P.
12420 (VI8F_256): Rename from AVX256MODE4P.
12421 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
12422 (ssescalarmodesuffix): Remove SF and DF modes.
12423 (SSEMODE124): Remove.
12424 (SSEMODE1248): Ditto.
12425 (SSEMODEF2P): Ditto.
12426 (AVXMODEF2P): Ditto.
12427 (AVXMODEFDP): Ditto.
12428 (AVXMODEFSP): Ditto.
12429 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
12430 unconditional.
12431 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
12432 unconditional.
12433 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
12434 xop_pcmov_<mode>256. Use V mode iterator.
12435
12436 Adjust RTX patterns globally for renamed mode attributes.
12437
2dfdcb4b
UW
124382011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12439
12440 * haifa-sched.c (sched_emit_insn): Emit insn before first
12441 non-scheduled insn. Inform back-end about new insn. Add
12442 new insn to scheduled_insns list.
12443
90bc4623
RG
124442011-05-02 Richard Guenther <rguenther@suse.de>
12445
12446 PR tree-optimization/48822
12447 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
12448 (process_scc): Indicate which iteration we start.
12449
bc0fe8cb
JH
124502011-05-02 Jan Hubicka <jh@suse.cz>
12451
12452 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
12453 (lto_section_overrun): New.
12454 * lto-section-out.c (append_block): Rename to ...
12455 (lto_append_block): ... this one; export.
12456 (lto_output_1_stream): Move lto lto-streamer.h
12457 (lto_output_data_stream): Update.
12458 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
12459 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
12460 functions.
12461
f070a9d1
RG
124622011-05-02 Richard Guenther <rguenther@suse.de>
12463
12464 * tree.c (tree_code_counts): New global array.
12465 (record_node_allocation_statistics): Count individual tree codes.
12466 (dump_tree_statistics): Dump individual code stats.
12467
09dfe187
JH
124682011-05-01 Jan Hubicka <jh@suse.cz>
12469
12470 * ipa-inline.c (caller_growth_limits): Fix thinko when
12471 looking for largest stack frame.
12472 * ipa-inline.h (dump_inline_summary): Declare.
12473 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
12474 on stack usage.
12475 (dump_inline_summary): Export.
12476 (debug_inline_summary): Declare as DEBUG_FUNCTION.
12477
6f76a878
AS
124782011-05-01 Anatoly Sokolov <aesok@post.ru>
12479
12480 * reginfo.c (memory_move_cost): Change rclass argument type form
12481 'enum reg_class' to reg_class_t.
12482 * reload.h (memory_move_cost): Update prototype.
12483 * postreload.c reload_cse_simplify_set): Change type dclass var to
12484 reg_class_t.
12485 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
12486 Update prototype.
12487 (ira_allocate_and_set_costs): Change aclass argument type form
12488 'enum reg_class' to reg_class_t.
6bec6c98 12489 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
12490 Change aclass argument type to reg_class_t.
12491 (update_conflict_hard_reg_costs): Change type aclass and pref vars
12492 to reg_class_t.
12493 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
12494 memory_move_cost call.
12495
12496 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
12497 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
12498 Change type tmp var to reg_class_t.
12499
9a4ac625
JH
125002011-04-30 Jan Hubicka <jh@suse.cz>
12501
12502 * ipa-inline.c (can_inline_edge_p): Disregard limits when
12503 inlining into function with flatten attribute.
12504 (want_inline_small_function_p): Be more realistic about inlining
12505 cold calls where callee size grows.
12506
dd8352ee
JH
125072011-04-30 Jan Hubicka <jh@suse.cz>
12508
12509 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
12510 flags.
12511
46e43d2b
AS
125122011-04-30 Anatoly Sokolov <aesok@post.ru>
12513
12514 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
12515 PRINT_OPERAND_PUNCT_VALID_P): Remove.
12516 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
12517 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
12518 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12519 (print_operand): Rename to...
12520 (sparc_print_operand): ...this. Make static. Adjust
12521 sparc_print_operand function call.
12522 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
12523 functions.
12524
ecb62563
JH
125252011-04-30 Jan Hubicka <jh@suse.cz>
12526
6bec6c98 12527 PR middle-end/48752
ecb62563
JH
12528 * ipa-inline.c (early_inliner): Disable when doing late
12529 addition of function.
12530
edb9b69e
JJ
125312011-04-30 Jakub Jelinek <jakub@redhat.com>
12532
be80a87e
JJ
12533 * dwarf2out.c (get_address_mode): New inline.
12534 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
12535 if not dwarf_strict emit
12536 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
12537 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
12538 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
12539 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
12540 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
12541 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
12542 mem_loc_descriptor callers.
12543 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12544 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
12545 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
12546 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
12547 (base_types): New variable.
12548 (get_base_type_offset, calc_base_type_die_sizes,
12549 base_type_for_mode, mark_base_types, base_type_cmp,
12550 move_marked_base_types): New functions.
12551 (calc_die_sizes): Assert that die_offset is 0 or equal to
12552 next_die_offset.
12553 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
12554 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
12555 callers. If not dwarf_strict, call mem_loc_descriptor even for
12556 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
12557 (gen_subprogram_die): Don't give up on call site parameters
12558 with non-integral or large integral modes. Adjust
12559 mem_loc_descriptor callers.
12560 (prune_unused_types): Call prune_unused_types_mark on base_types
12561 vector entries.
12562 (resolve_addr): Call mark_base_types.
12563 (dwarf2out_finish): Call move_marked_base_types.
12564
edb9b69e
JJ
12565 PR tree-optimization/48809
12566 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
12567 type.
12568 (gen_inbound_check): Don't compute index_expr - range_min in utype
12569 again, instead reuse SSA_NAME initialized in build_arrays.
12570 Remove two useless gsi_for_stmt calls.
12571
a6545a3d
JL
125722011-04-29 Jeff Law <law@redhat.com>
12573
12574 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
12575
af8bca3c
MJ
125762011-04-29 Martin Jambor <mjambor@suse.cz>
12577
12578 * cgraph.h (cgraph_postorder): Remove declaration.
12579 * ipa-utils.h (ipa_free_postorder_info): Declare.
12580 (ipa_reverse_postorder): Likewise.
12581 * cgraphunit.c: Include ipa-utils.h.
12582 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
12583 * ipa-inline.c: Include ipa-utils.h.
12584 (ipa_inline): Update call to ipa_reverse_postorder.
12585 * ipa-pure-const.c (propagate_pure_const): Update call to
12586 ipa_reduced_postorder and ipa_print_order. Call
12587 ipa_free_postorder_info to clean up.
12588 (propagate_nothrow): Likewise.
12589 * ipa-reference.c (propagate): Removed a useless call to
12590 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
12591 and ipa_print_order. Call ipa_free_postorder_info to clean up.
12592 * ipa.c: Include ipa-utils.h.
12593 (ipa_profile): Update call to ipa_reverse_postorder.
12594 (cgraph_postorder): Moved to...
12595 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
12596 (ipa_utils_print_order): Renamed to ipa_print_order.
12597 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
12598 comments.
12599 (ipa_free_postorder_info): New function.
12600 * passes.c: Include ipa-utils.h.
12601 (do_per_function_toporder): Update call to ipa_reverse_postorder.
12602 (ipa_write_summaries): Likewise.
12603 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
12604 (cgraphunit.o): Likewise.
12605 (ipa.o): Likewise.
12606 (ipa-inline.o): Likewise.
12607
b15c64ee
JH
126082011-04-29 Jan Hubicka <jh@suse.cz>
12609
12610 * gcc.dg/tree-ssa/inline-10.c: New testcase.
12611 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
12612 * ipa-inline.h (clause_t): Turn into unsigned int.
12613 * ipa-inline-analysis.c (add_clause): Do more simplification.
12614 (and_predicates): Shortcut more cases.
12615 (predicates_equal_p): Move forward; check that clauses are properly
12616 ordered.
12617 (or_predicates): Shortcut more cases.
12618 (edge_execution_predicate): Rewrite as...
12619 (set_cond_stmt_execution_predicate): ... this function; handle
12620 __builtin_constant_p.
12621 (set_switch_stmt_execution_predicate): New .
12622 (compute_bb_predicates): New.
12623 (will_be_nonconstant_predicate): Update TODO.
12624 (estimate_function_body_sizes): Use compute_bb_predicates
12625 and free them later, always try to estimate if stmt is constant.
12626 (estimate_time_after_inlining, estimate_size_after_inlining):
12627 Gracefully handle optimized out edges.
12628 (read_predicate): Fix off by one error.
12629
a88fdc2a
NP
126302011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
12631
12632 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
12633
d984c8ef
XDL
126342011-04-27 Xinliang David Li <davidxl@google.com>
12635
12636 * tree-profile.c (init_ic_make_global_vars): Set
12637 tls attribute on ic vars.
12638 * coverage.c (coverage_end_function): Initialize
12639 function_list with zero.
12640
45a2c477
RG
126412011-04-29 Richard Guenther <rguenther@suse.de>
12642
12643 * builtins.c (fold_builtin_classify_type): Use integer_type_node
12644 for the type of the result.
12645 (fold_builtin_isascii): Likewise.
12646 (fold_builtin_toascii): Use integer_type_node where appropriate.
12647 (fold_builtin_logb): Likewise.
12648 (fold_builtin_frexp): Likewise.
12649 (fold_builtin_strstr): Likewise.
12650 (fold_builtin_strpbrk): Likewise.
12651 (fold_builtin_fputs): Likewise.
12652 (fold_builtin_sprintf): Likewise.
12653 (fold_builtin_snprintf): Likewise.
12654 (fold_builtin_printf): Likewise.
12655 (do_mpfr_remquo): Use a proper type for the assigned constant.
12656 (do_mpfr_lgamma_r): Likewise.
12657 * dwarf2out.c (resolve_one_addr): Use size_int.
12658 * except.c (init_eh): Likewise.
12659 (assign_filter_values): Use integer_type_node for filter values.
12660 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
12661 indices.
12662 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
12663 for EH region numbers.
12664 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
12665 for the shift amount.
12666
eb6c3df1
RG
126672011-04-29 Richard Guenther <rguenther@suse.de>
12668
12669 * expr.h (expand_shift): Rename to ...
12670 (expand_variable_shift): ... this.
12671 (expand_shift): Take a constant shift amount.
12672 * expmed.c (expand_shift): Rename to ...
12673 (expand_variable_shift): ... this.
12674 (expand_shift): New wrapper around expand_variable_shift.
12675 * expr.c (convert_move, emit_group_load_1, emit_group_store,
12676 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
12677 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
12678 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
12679 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
12680 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
12681 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
12682 emit_store_flag_1, emit_store_flag): Likewise.
12683 * builtins.c (expand_builtin_signbit): Likewise.
12684 * calls.c (load_register_parameters): Likewise.
12685 * function.c (assign_parm_setup_block): Likewise.
12686 * lower-subreg.c (resolve_shift_zext): Likewise.
12687 * optabs.c (widen_bswap, expand_abs_nojump,
12688 expand_one_cmpl_abs_nojump, expand_float): Likewise.
12689 * spu/spu.c (spu_expand_extv): Likewise.
12690 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
12691
9f616812
RG
126922011-04-29 Richard Guenther <rguenther@suse.de>
12693
12694 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
12695 for the remapped region number.
12696 * predict.c (build_predict_expr): Use integer_type_node for the
12697 predict kind.
12698 * fold-const.c (fold_binary_loc): Use integer_type_node for
12699 the shift amount. Use a proper type for the PLUS_EXPR operand.
12700
b823cdfe
MM
127012011-04-29 Michael Matz <matz@suse.de>
12702
12703 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
12704 other trees that just builtins.
12705 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
12706
413581ba
RG
127072011-04-29 Richard Guenther <rguenther@suse.de>
12708
12709 * tree-nested.c (get_trampoline_type): Use size_int.
12710 (get_nl_goto_field): Likewise.
12711 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
12712 for all indexes.
12713 (lower_eh_constructs_2): Likewise.
12714 (lower_resx): Likewise.
12715 (lower_eh_dispatch): Likewise.
12716 * tree-mudflap.c (mf_build_string): Use size_int.
12717 (mudflap_register_call): Use integer_type_node for the flag.
12718 (mudflap_enqueue_constant): Use size_int.
12719 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
12720 instead of rebuilding it.
12721
5c04e9f4
RG
127222011-04-29 Richard Guenther <rguenther@suse.de>
12723
12724 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
12725 Handle OBJ_TYPE_REF.
12726 (find_func_aliases_for_call): Use it more consistently.
12727
5c24671b
AO
127282011-04-29 Alexandre Oliva <aoliva@redhat.com>
12729
12730 * haifa-sched.c (last_nondebug_scheduled_insn): New.
12731 (rank_for_schedule): Use it.
12732 (schedule_block): Set it.
12733
10adac51
XDL
127342011-04-28 David Li <davidxl@google.com>
12735
12736 * tree.c (crc32_string): Use crc32_byte.
12737 (crc32_byte): New function.
12738 * tree.h (crc32_byte): New function.
12739 * gcov.c (read_graph_file): Handle new cfg_cksum.
12740 (read_count_file): Ditto.
12741 * profile.c (instrument_values): Ditto.
12742 (get_exec_counts): Ditto.
12743 (read_profile_edge_counts): Ditto.
12744 (compute_branch_probabilities): Ditto.
12745 (compute_value_histograms): Ditto.
12746 (branch_prob): Ditto.
12747 (end_branch_prob): Ditto.
12748 * coverage.c (read_counts_file): Ditto.
12749 (get_coverage_counts): Ditto.
12750 (tree_coverage_counter_addr): Ditto.
12751 (coverage_checksum_string): Ditto.
12752 (coverage_begin_output): Ditto.
12753 (coverage_end_function): Ditto.
12754 (build_fn_info_type): Ditto.
12755 (build_fn_info_value): Ditto.
12756 * libgcov.c (gcov_exit): Ditto.
12757 * gcov-dump.c (tag_function): Ditto.
12758 (compute_checksum): Remove.
12759
5d6358a5
AM
127602011-04-29 Alan Modra <amodra@gmail.com>
12761
12762 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12763 unspec plus offset. Tidy macho code.
12764
85ad2ef5
MJ
127652011-04-29 Martin Jambor <mjambor@suse.cz>
12766
12767 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
12768 node instead of a decl. Update all callers.
12769 * cgraph.h: Update declaration.
12770
437f4a00
IR
127712011-04-28 Ira Rosen <ira.rosen@linaro.org>
12772
12773 PR tree-optimization/48765
12774 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
12775 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
12776 to indicate if loop aware SLP is being used. Scan the statements
12777 and update the vectorization factor according to the type of
12778 vectorization before statement analysis.
12779 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
12780 pass it to vect_analyze_loop_operations.
12781 (vectorizable_reduction): Set number of copies to 1 in case of pure
12782 SLP statement.
12783 * tree-vect-stmts.c (vectorizable_conversion,
12784 vectorizable_assignment, vectorizable_shift,
12785 vectorizable_operation, vectorizable_type_demotion,
12786 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
12787 Likewise.
12788 (vectorizable_condition): Move the check that it is not SLP
12789 vectorization before the number of copies check.
12790 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
12791 to vectorize the loop using SLP.
12792
c6fc44f3
JJ
127932011-04-28 Jakub Jelinek <jakub@redhat.com>
12794
12795 PR middle-end/48597
12796 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
12797 inline asm.
12798
6c0170ea
JM
127992011-04-28 Joseph Myers <joseph@codesourcery.com>
12800
12801 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
12802 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
12803 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12804 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12805 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
12806 linux*.h headers.
6bec6c98 12807 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
12808 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12809 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12810 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 12811 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
12812 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
12813 REG_NAME.
12814 * config/i386/linux.h (REG_NAME): Don't define.
12815 * config/i386/linux64.h (REG_NAME): Don't define.
12816 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
12817 Undefine before defining.
12818
970dabbd
JH
128192011-04-28 Jan Hubicka <jh@suse.cz>
12820
6bec6c98
UB
12821 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
12822 nonconstant_names array.
970dabbd
JH
12823 (estimate_function_body_sizes): Build nonconstant_names array; handle
12824 BUILT_IN_CONSTANT_P.
12825
8d3e3924
RG
128262011-04-28 Richard Guenther <rguenther@suse.de>
12827
12828 PR bootstrap/48804
12829 Revert
12830 2011-04-28 Richard Guenther <rguenther@suse.de>
12831
12832 * tree-ssa-structalias.c (solve_constraints): Build succ graph
12833 as late as possible.
6bec6c98 12834
8576f20a
RG
128352011-04-28 Richard Guenther <rguenther@suse.de>
12836
12837 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
12838 (debug_constraint): Do it here.
12839 (dump_constraints): And here.
12840 (rewrite_constraints): And here.
12841 (dump_constraint_edge): Remove.
12842 (dump_constraint_graph): Rewrite to produce DOT output.
12843 (solve_constraints): Build succ graph as late as possible.
12844 Dump constraint graphs before and after solving.
12845
e38811ce
RG
128462011-04-28 Richard Guenther <rguenther@suse.de>
12847
12848 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12849 New function split out from ...
12850 (find_func_aliases): ... here. Call it.
12851 (find_func_aliases_for_call): Likewise.
12852
fbaf0d0c
GDR
128532011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
12854
12855 * internal-fn.h (internal_fn_name_array): Declare.
12856 (internal_fn_flags_array): Likewise.
12857
cbb734aa
UB
128582011-04-27 Uros Bizjak <ubizjak@gmail.com>
12859
12860 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
12861 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
12862 Move from sse.md.
12863 (ssemodefsuffix): Remove.
12864 (ssevecmodesuffix): New mode attribute.
12865 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
12866 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
12867 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
12868 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
12869 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
12870 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
12871 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
12872 ssemodesuffix mode attribute.
12873 (float splitters): Use ssevecmodesuffix mode attribute.
12874 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
12875 (sseinsmode): Rename from avxvecmode.
12876 (avxsizesuffix): Rename from avxmodesuffix.
12877 (sseintvecmode): Rename from avxpermvecmode.
12878 (ssedoublevecmode): Rename from ssedoublesizemode.
12879 (ssehalfvecmode): Rename from avxhalfvecmode.
12880 (ssescalarmode): Rename from avxscalarmode.
12881 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
12882 templates for ssemodesuffix mode attribute.
12883 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
12884 mode attribute.
12885
12886 Adjust RTX patterns globally for renamed mode attributes.
12887
991278ab
JH
128882011-04-27 Jan Hubcika <jh@suse.cz>
12889
12890 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
12891 * ipa-inline-analysis.c: Include alloc-pool.h.
12892 (edge_predicate_pool): New.
12893 (trye_predicate_p): New function
12894 (false_predicate_p): New function.
12895 (add_clause): Sanity check that false clauses are "optimized";
12896 never add clauses to predicate that is already known to be false.
12897 (and_predicate): Use flase_predicate_p.
12898 (evaulate_predicate): Rename to ...
12899 (evaluate_predicate): ... this one; update all callers; assert
12900 that false is not listed among possible truths.
12901 (dump_predicate): Use true_predicate_p.
12902 (account_size_time): Use false_predicate_p.
12903 (evaulate_conditions_for_edge): Rename to ...
12904 (evaluate_conditions_for_edge) ... this one.
12905 (edge_set_predicate): New function.
12906 (inline_edge_duplication_hook): Duplicate edge predicates.
12907 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 12908 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
12909 (dump_inline_summary): Update.
12910 (estimate_function_body_sizes): Set edge predicates.
12911 (estimate_calls_size_and_time): Handle predicates.
12912 (estimate_callee_size_and_time): Update.
12913 (remap_predicate): Add toplev_predicate; update comment.
12914 (remap_edge_predicates): New function.
12915 (inline_merge_summary): Compute toplev predicate; update.
12916 (read_predicate): New function.
12917 (read_inline_edge_summary): Use it.
12918 (inline_read_section): Likewise.
12919 (write_predicate): New function.
12920 (write_inline_edge_summary): Use it.
12921 (inline_write_summary): Likewise.
12922 (inline_free_summary): Free alloc pool and edge summary vec.
12923
648b5f85
RG
129242011-04-27 Richard Guenther <rguenther@suse.de>
12925
12926 * tree-ssa-structalias.c (changed_count): Remove.
12927 (changed): Use a bitmap.
12928 (unify_nodes): Adjust.
12929 (do_sd_constraint): Likewise.
12930 (do_ds_constraint): Likewise.
12931 (do_complex_constraint): Likewise.
12932 (solve_graph): Likewise.
12933
4d5dcfb2
JH
129342011-04-27 Jan Hubicka <jh@suse.cz>
12935
12936 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
12937
200eb7d2
UB
129382011-04-27 Uros Bizjak <ubizjak@gmail.com>
12939
12940 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
12941 (avx_vperm2f128_*_operand): Ditto.
12942 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
12943 Use avx_vpermilp_parallel in insn condition.
12944 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
12945 Use avx_vperm2f128_parallel in insn condition.
12946
7d6e2521
RG
129472011-04-27 Richard Guenther <rguenther@suse.de>
12948
12949 * Makefile.in (tree-ssa-structalias.o): Remove
12950 gt-tree-ssa-structalias.h dependency.
12951 (GTFILES): Remove tree-ssa-structalias.c.
12952 * tree.c (allocate_decl_uid): New function.
12953 (make_node_stat): Use it.
12954 (copy_node_stat): Likewise.
12955 * tree.h (allocate_decl_uid): Declare.
12956 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
12957 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
12958 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 12959 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
12960 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
12961 (struct heapvar_map): Likewise.
12962 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
12963 heapvar_insert): Likewise.
12964 (make_heapvar_for): Rename to ...
12965 (make_heapvar): ... this. Simplify.
12966 (fake_var_decl_obstack): New global var.
12967 (build_fake_var_decl): New function.
12968 (make_constraint_from_heapvar): Adjust.
12969 (handle_lhs_call): Likewise.
12970 (create_function_info_for): Likewise.
12971 (intra_create_variable_infos): Likewise.
12972 (init_alias_vars): Allocate fake_var_decl_obstack.
12973 (init_alias_heapvars, delete_alias_heapvars): Remove.
12974 (compute_points_to_sets): Do not call init_alias_heapvars.
12975 (ipa_pta_execute): Likewise.
12976 (delete_points_to_sets): Free fake_var_decl_obstack.
12977
526ed6c2
UW
129782011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12979
12980 * config/spu/divmovti4.c (union qword_UTItype): New data type.
12981 (si_from_UTItype, si_to_UTItype): New functions.
12982 (__udivmodti4): Use them to implement type-punning.
12983 * config/spu/multi3.c (union qword_TItype): New data type.
12984 (si_from_TItype, si_to_TItype): New functions.
12985 (__multi3): Use them to implement type-punning.
12986
c187d33c
UW
129872011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12988
12989 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
12990
40982661
JH
129912011-04-27 Jan Hubicka <jh@suse.cz>
12992
12993 * ipa-prop.c (function_insertion_hook_holder): New holder.
12994 (ipa_add_new_function): New function.
200eb7d2
UB
12995 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
12996 Register/deregister holder.
40982661 12997
9aef53ee
RG
129982011-04-27 Richard Guenther <rguenther@suse.de>
12999
13000 PR tree-optimization/48772
200eb7d2 13001 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 13002
f63d806d
RG
130032011-04-27 Richard Guenther <rguenther@suse.de>
13004
13005 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
13006 TARGET_MEM_REF handling.
13007
e1ea7451
NC
130082011-04-27 Nick Clifton <nickc@redhat.com>
13009
9b5db25d
NC
13010 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
13011 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
13012 (REG_CLASS_NAMES): Likewise.
13013 (REG_CLASS_CONTENTS): Likewise.
13014 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
13015 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
13016 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
13017 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
13018 (EVEN_REGS): New macro. Alias for QUAD_REGS.
13019 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
13020 duplicate register classes.
97d20907 13021 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
13022 (frv_register_move_cost): Likewise.
13023
e1ea7451
NC
13024 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
13025 end of the regno_reg_class array.
13026
5c2f94b4
JJ
130272011-04-27 Jakub Jelinek <jakub@redhat.com>
13028
13029 PR c/48742
13030 * c-typeck.c (build_binary_op): Don't wrap arguments if
13031 int_operands is true.
13032
57a944d7
KK
130332011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
13034
13035 PR target/48767
13036 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
13037 targetm.calls.must_pass_in_stack for void type.
13038
898b8927
JH
130392011-04-26 Jan Hubicka <jh@suse.cz>
13040
13041 * cgraphbuild.c (build_cgraph_edges): Update call
13042 of cgraph_create_edge and cgraph_create_indirect_edge.
13043 * cgraph.c (cgraph_create_edge_including_clones,
13044 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
13045 cgraph_update_edges_for_call_stmt_node): Do not take nest
13046 argument; do not initialize call_stmt_size/time.
13047 (dump_cgraph_node): Do not dump nest.
13048 (cgraph_clone_edge): Do not take loop_nest argument;
13049 do not propagate it; do not clone call_stmt_size/time.
13050 (cgraph_clone_node): Likewise.
13051 (cgraph_create_virtual_clone): Update.
13052 * cgraph.h (struct cgraph_edge): Remove
13053 call_stmt_size/call_stmt_time/loop_nest.
13054 (cgraph_create_edge, cgraph_create_indirect_edge,
13055 cgraph_create_edge_including_clones, cgraph_clone_node): Update
13056 prototype.
13057 * tree-emutls.c (gen_emutls_addr): Update.
13058 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
13059 loop_nest; handle indirect calls, too.
13060 (clone_inlined_nodes): Do not care about updating inline summaries.
13061 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
13062 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
13063 stream call_stmt_size/call_stmt_time/loop_nest.
13064 * ipa-inline.c (edge_badness): Update.
13065 (ipa_inline): dump summaries after inlining.
13066 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 13067 New.
898b8927
JH
13068 (inline_edge_summary): New function.
13069 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
13070 (inline_edge_removal_hook): Handle edge summaries.
13071 (inline_edge_duplication_hook): New hook.
13072 (inline_summary_alloc): Alloc hooks.
13073 (initialize_growth_caches): Do not register removal hooks.
13074 (free_growth_caches); Do not free removal hook.
13075 (dump_inline_edge_summary): New function.
13076 (dump_inline_summary): Use it.
13077 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
13078 (inline_update_callee_summaries): New function.
13079 (inline_merge_summary): Use it.
13080 (do_estimate_edge_time, do_estimate_edge_growth): Update.
13081 (read_inline_edge_summary): New function.
13082 (inline_read_section): Use it.
13083 (write_inline_edge_summary): New function.
13084 (inline_write_summary): Use it.
13085 (inline_free_summary): Free edge new holders.
13086 * tree-inline.c (copy_bb): Update.
13087
ffa03772
JM
130882011-04-26 Jason Merrill <jason@redhat.com>
13089
13090 * tree-eh.c (lower_try_finally_switch): Create the label along with
13091 the CASE_LABEL_EXPR.
13092
6d7b45ad
DM
130932011-04-26 David S. Miller <davem@davemloft.net>
13094 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13095
13096 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
13097 * configure: Regenerate.
13098
df10b6d4
MM
130992011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13100
13101 PR target/48258
13102 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
13103 reduction.
13104 (VEC_reduc): New code iterator and splitters for vector reduction.
13105 (VEC_reduc_name): Ditto.
13106 (VEC_reduc_rtx): Ditto.
13107 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
13108 (reduc_<VEC_reduc_name>_v4sf): Ditto.
13109
13110 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13111 support for extracting SF on VSX.
13112
13113 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
13114 generating xscvspdp.
13115 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
13116 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
13117 double add, minimum, maximum vector reduction.
13118 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
13119 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
13120 optimize double vector reduction.
13121 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
13122
35a5db04
JM
131232011-04-26 Joseph Myers <joseph@codesourcery.com>
13124
13125 * config/fr30/fr30.h (inhibit_libc): Don't define.
13126 * config/m32r/m32r-protos.h: Correct comment.
13127 * config/v850/v850.h (GHS_default_section_names,
13128 GHS_current_section_names): Use tree, not union tree_node *.
13129
2f964ad6
XDL
131302011-04-26 Xinliang David Li <davidxl@google.com>
13131
200eb7d2 13132 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
13133 * c-family/c-opts.c (c_common_handle_option): Set
13134 warn_maybe_uninitialized.
13135 * opts.c (common_handle_option): Ditto.
13136 * common.opt: New option.
13137 * tree-ssa.c (warn_uninit): Add one more parameter.
13138 (warn_uninitialized_var): Pass warning code.
13139 * tree-flow.h: Interface change.
13140
9c7bd91a
RO
131412011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13142
200eb7d2 13143 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
13144 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
13145 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
13146
c2f36e21
RO
131472011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13148
13149 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
13150 * config/mips/mips.opt (mmips-tfile): Remove.
13151
13152 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
13153 mips-tdump reference to ...
200eb7d2 13154 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
13155 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
13156 reference by Tru64 UNIX.
13157
2c9da85b
JJ
131582011-04-26 Jakub Jelinek <jakub@redhat.com>
13159
0c5f6539
JJ
13160 PR debug/48768
13161 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
13162 is error_mark_node, set value to NULL.
13163
2c9da85b
JJ
13164 PR tree-optimization/48734
13165 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
13166 if return value from maybe_fold_*_comparsions isn't something
13167 the code is prepared to handle.
13168
77fa1d54
UB
131692011-04-26 Uros Bizjak <ubizjak@gmail.com>
13170
13171 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
13172 mode check.
13173 (ext_QIreg_nomode_operands): Remove.
13174 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
13175 (*andsi_1): Ditto.
13176 (*andhi_1): Ditto.
13177
0e2a6c2b
AS
131782011-04-26 Andrew Stubbs <ams@codesourcery.com>
13179
13180 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
13181
961562d8
RB
131822011-04-26 Richard Guenther <rguenther@suse.de>
13183
13184 * c-typeck.c (build_unary_op): Do not expand array-refs via
13185 pointer arithmetic. Only adjust qualifiers for function types.
13186
131872011-04-26 Richard Guenther <rguenther@suse.de>
13188
13189 PR middle-end/48694
13190 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
13191 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
13192 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
13193 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 13194
a0d260fc
PC
131952011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
13196
6bec6c98 13197 * doc/extend.texi: Document __underlying_type.
a0d260fc 13198
4d583bb9
SB
131992011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
13200
13201 * config/rs6000/titan.md (automata_option "progress"): Remove.
13202
1f3fcdc3
JL
132032011-04-25 Jeff Law <law@redhat.com>
13204
13205 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
13206
e5b0dad8
JK
132072011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13208
13209 * system.h (ENUM_BITFIELD): Remove.
13210
5157a881 132112011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 13212 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
13213
13214 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
13215 for STORE_FLAG_VALUE==-1 case.
13216
ed4c109e
RS
132172011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
13218
13219 PR target/43804
13220 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
13221 LEGITIMATE_PIC_OPERAND_P.
13222
f3181aa2
JH
132232011-04-24 Jan Hubicka <jh@suse.cz>
13224
13225 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
13226 WPA hack.
77fa1d54
UB
13227 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
13228 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
13229 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
13230 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
13231 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
13232 Sanity check predicate length.
13233 (remap_predicate): Likewise; sanity check jump functions.
13234 (inline_read_section, inline_write_summary): Sanity check
13235 predicate length.
13236
5307cbaa
PC
132372011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
13238
13239 PR other/48748
13240 * doc/extend.texi (Type Traits): Document __is_standard_layout,
13241 __is_literal_type, and __is_trivial; update throughout about
13242 possibly cv-qualified void types.
13243
bebd5f99
GP
132442011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
13245
13246 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
13247 testsuite and make it version agnostic.
13248
7ee28a74
JH
132492011-04-22 Jan Hubicka <jh@suse.cz>
13250
13251 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
13252
16997bc0
JJ
132532011-04-23 Jakub Jelinek <jakub@redhat.com>
13254
13255 PR c/48685
13256 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
13257 to VOID_TYPE even around MODIFY_EXPR.
13258
f94d4ab1
MS
132592011-04-22 Mike Stump <mikestump@comcast.net>
13260
1a84c183 13261 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
13262 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
13263 comment.
13264
632b4f8e
JH
132652011-04-22 Jan Hubicka <jh@suse.cz>
13266
13267 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
13268 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
13269 ipa-prop.c; update all uses.
632b4f8e 13270 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
13271 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
13272 merge summary of inlined function into former caller.
632b4f8e
JH
13273 * ipa-inline.c (max_benefit): Remove.
13274 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
13275 (update_caller_keys): Use
13276 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
13277 (update_callee_keys): Likewise.
13278 (update_all_callee_keys): Likewise.
77fa1d54
UB
13279 (inline_small_functions): Do not collect max_benefit; do not reset
13280 estimated_growth; call free_growth_caches and initialize_growth_caches.
13281 * ipa-inline.h (struct condition, type clause_t, struct predicate,
13282 struct size_time_entry): New structures.
632b4f8e 13283 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
13284 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
13285 and estimated_growth.
632b4f8e
JH
13286 (edge_growth_cache_entry): New structure.
13287 (node_growth_cache, edge_growth_cache): New global vars.
13288 (estimate_growth): Turn into inline.
13289 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
13290 initialize_growth_caches, free_growth_caches): Declare.
13291 (estimate_edge_growth): Rewrite.
13292 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
13293 (reset_node_growth_cache, reset_edge_growth_cache): New inline
13294 functions.
632b4f8e
JH
13295 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
13296 (NUM_CONDITIONS): New constant.
13297 (predicate_conditions): New enum.
13298 (IS_NOT_CONSTANT): New constant.
13299 (edge_removal_hook_holder): New var.
13300 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
13301 (true_predicate, single_cond_predicate, false_predicate,
13302 not_inlined_predicate, add_condition, add_clause, and_predicates,
13303 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
13304 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
13305 evaulate_conditions_for_edge): New functions.
13306 (inline_summary_alloc): Move to heap.
13307 (inline_node_removal_hook): Clear condition and entry vectors.
13308 (inline_edge_removal_hook): New function.
13309 (initialize_growth_caches, free_growth_caches): New function.
13310 (dump_inline_summary): Update.
13311 (edge_execution_predicate): New function.
13312 (will_be_nonconstant_predicate): New function.
13313 (estimate_function_body_sizes): Compute BB and constantness predicates.
13314 (compute_inline_parameters): Do not clear estimated_growth.
13315 (estimate_edge_size_and_time): New function.
13316 (estimate_calls_size_and_time): New function.
13317 (estimate_callee_size_and_time): New function.
13318 (remap_predicate): New function.
13319 (inline_merge_summary): New function.
13320 (do_estimate_edge_time): New function based on...
13321 (estimate_edge_time): ... this one.
13322 (do_estimate_edge_growth): New function.
13323 (do_estimate_growth): New function based on....
13324 (estimate_growth): ... this one.
13325 (inline_analyze_function): Analyze after deciding on jump functions.
13326 (inline_read_section): New function.
13327 (inline_read_summary): Use it.
13328 (inline_write_summary): Write all the new data.
13329 * ipa-prop.c (ipa_get_param_decl_index): Export.
13330 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
13331 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
13332 Declare.
13333 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
13334 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
13335 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
13336 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
13337 cgraph_edge_inlinable_p): Remove.
13338 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
13339 (cgraph_process_new_functions): Update call of
13340 compute_inline_parameters.
632b4f8e 13341
1df5b0db
RG
133422011-04-22 Richard Guenther <rguenther@suse.de>
13343
13344 * tree.c (build_int_cst): Properly create canonicalized integer
13345 constants.
13346 (build_int_cst_type): Remove scary comments.
13347
ae01169c
XDL
133482011-04-22 Xinliang David Li <davidxl@google.com>
13349
13350 * toplev.c (process_options): Enable -Werror=coverage-mismatch
13351 by default when -Wno-error is not specified.
13352 * opts-global.c (decode_options): Remove call to
13353 control_warning_options.
13354
93dfac24
JJ
133552011-04-22 Jakub Jelinek <jakub@redhat.com>
13356
13357 PR tree-optimization/48717
13358 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
13359 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
13360
1b5f5069
JM
133612011-04-22 Joseph Myers <joseph@codesourcery.com>
13362
13363 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
13364 definition where used.
13365
144f4153
JJ
133662011-04-22 Jakub Jelinek <jakub@redhat.com>
13367
13368 PR c/48716
13369 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
13370 TREE_STATIC variables declared inside of some OpenMP construct.
13371
f9fd305b
MJ
133722011-04-22 Martin Jambor <mjambor@suse.cz>
13373
13374 PR middle-end/48585
1d284ec5 13375 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 13376
49819fef
AM
133772011-04-22 Alexander Monakov <amonakov@ispras.ru>
13378
13379 PR c/36750
13380 * c-typeck.c (pop_init_level): Do not warn about initializing
13381 with ` = {0}'.
13382
401f6699
AM
133832011-04-22 Alan Modra <amodra@gmail.com>
13384
13385 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
13386 when returning call_cookie.
13387 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
13388 pointers, to functions with no more vector args than the current
13389 function, and some non-local calls for ABI_V4.
13390 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
13391 sibcall_nonlocal_aix64): Combine to ..
13392 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
13393 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
13394 (sibcall_value_nonlocal_aix<mode>): ..likewise.
13395 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
13396 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
13397 operand.
13398 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
13399 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
13400 sibcall_value_symbolic_64): Delete.
13401
903d1e67
XDL
134022011-04-21 Xinliang David Li <davidxl@google.com>
13403
13404 * cgraph.h: Remove pid.
13405 * cgraph.c: Remove pid.
13406 * value-prof.c (init_node_map): New function.
13407 (del_node_map): New function.
13408 (find_func_by_funcdef_no): New function.
13409 (gimple_ic_transform): Call new function.
13410 * cgraphunit.c (cgraph_finalize_function): Remove pid.
13411 * function.c (get_last_funcdef_no): New function.
13412 * function.h (get_last_funcdef_no): New function.
13413 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
13414 to libgcov function.
13415 (tree-profiling): Call node map init and delete function.
13416
7378e95f
ILT
134172011-04-21 Ian Lance Taylor <iant@google.com>
13418
13419 * godump.c (go_format_type): Use exported Go name for anonymous
13420 field name.
13421
e84a6fcf
NF
134222011-04-21 Nathan Froyd <froydnj@codesourcery.com>
13423
13424 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
13425 Call builtin_function_type_list instead of builtin_function_type.
13426 (UNARY, BINARY, TRINARY, QUAD): Likewise.
13427
4fe058e2
NF
134282011-04-21 Nathan Froyd <froydnj@codesourcery.com>
13429
13430 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
13431 build_function_type_list instead of build_function_type.
13432 Delete variable `endlink'.
13433
1ba0a2d2
NF
134342011-04-21 Nathan Froyd <froydnj@codesourcery.com>
13435
13436 * config/s390/s390.c (s390_init_builtins): Call
13437 build_function_type_list instead of build_function_type.
13438
c0676219
NF
134392011-04-21 Nathan Froyd <froydnj@codesourcery.com>
13440
13441 * config/ia64/ia64.c (ia64_init_builtins): Call
13442 build_function_type_list instead of builtin_function_type.
13443
6ddfda8a
ER
134442011-04-21 Easwaran Raman <eraman@google.com>
13445
3a6448ea 13446 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
13447 (add_stack_var): ...and its reference here...
13448 (expand_stack_vars): ...and here.
13449 (stack_var_cmp): Sort by descending order of size.
13450 (partition_stack_vars): Change heuristic.
1d284ec5 13451 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
13452 (dump_stack_var_partition): Add newline after each partition.
13453
23756963
DA
134542011-04-21 Dimitrios Apostolou <jimis@gmx.net>
13455 Jeff Law <law@redhat.com>
13456
77fa1d54 13457 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
13458 * gengtype.c (matching_file_name_substitute): Likewise.
13459
aa2a43d2
RG
134602011-04-21 Richard Guenther <rguenther@suse.de>
13461
13462 PR lto/48703
1d284ec5 13463 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 13464
4d931f41
EB
134652011-04-21 Eric Botcazou <ebotcazou@adacore.com>
13466
13467 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
13468
f103fa7a
RG
134692011-04-21 Richard Guenther <rguenther@suse.de>
13470
13471 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
13472 file name.
13473
e19f6650
RG
134742011-04-21 Richard Guenther <rguenther@suse.de>
13475
13476 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
13477 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
13478 Use DECL_P, not SSA_VAR_P.
13479 (ptr_derefs_may_alias_p): Likewise.
13480 (ptr_deref_may_alias_ref_p_1): Likewise.
13481 (decl_refs_may_alias_p): Likewise.
13482 (refs_may_alias_p_1): Likewise.
13483 (ref_maybe_used_by_call_p_1): Likewise.
13484 (call_may_clobber_ref_p_1): Likewise.
13485 (indirect_ref_may_alias_decl_p): Assume indirect refrences
13486 are either MEM_REF or TARGET_MEM_REF.
13487 (indirect_refs_may_alias_p): Likewise.
13488 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
13489 for MEM_EXPR of indirect calls.
13490
9d1831bb
TG
134912011-04-21 Tristan Gingold <gingold@adacore.com>
13492
13493 * vmsdbgout.c (write_srccorr): Compute file length from the string.
13494 (dst_file_info_struct): Remove flen field.
13495 (lookup_filename): Remove code that set flen field.
13496
f199c029
TG
134972011-04-21 Tristan Gingold <gingold@adacore.com>
13498
13499 * config/ia64/ia64.c (ia64_start_function): Add a guard.
13500
2894086e
UB
135012011-04-21 Uros Bizjak <ubizjak@gmail.com>
13502
13503 PR target/48708
13504 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
13505 vec_extract and vec_concat for non-SSE4_1 targets.
13506
53f94a5c
RG
135072011-04-21 Richard Guenther <rguenther@suse.de>
13508
13509 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
13510 return statements.
13511
f0dca5ba
JM
135122011-04-21 Joseph Myers <joseph@codesourcery.com>
13513
13514 * config/i386/cygming.h (union tree_node, TREE): Don't define or
13515 undefine.
13516 (FILE): Don't undefine.
13517
984514ac
JM
135182011-04-21 Joseph Myers <joseph@codesourcery.com>
13519
13520 * config/alpha/alpha.c (struct machine_function): Use rtx, not
13521 struct rtx_def *.
13522 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
13523 struct rtx_def *.
13524 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 13525 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
13526 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
13527 rtx_def *.
13528 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
13529 definitions where used.
13530 * config/microblaze/microblaze.h (struct microblaze_args): Use
13531 rtx, not struct rtx_def *.
13532 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
13533 rtx_def *.
2894086e
UB
13534 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
13535 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
13536 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
13537 not struct rtx_def *.
13538 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
13539 struct rtx_def *.
13540 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
13541 rtx_def *.
2894086e 13542 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 13543
0b5a2724
RS
135442011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
13545
13546 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
13547 operand_equal_p to compare DR_BASE_ADDRESSes.
13548 (vect_check_interleaving): Likewise.
13549
4b18d683
RS
135502011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
13551
13552 PR target/46329
13553 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
13554 for all Neon struct constants.
13555
1a627b35
RS
135562011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
13557
13558 * target.def (legitimate_constant_p): New hook.
13559 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
13560 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
13561 * doc/tm.texi: Regenerate.
13562 * hooks.h (hook_bool_mode_rtx_true): Declare.
13563 * hooks.c (hook_bool_mode_rtx_true): Define.
13564 * system.h (LEGITIMATE_CONSTANT_P): Poison.
13565 * calls.c (precompute_register_parameters): Replace uses of
13566 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
13567 (emit_library_call_value_1): Likewise.
13568 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
13569 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
13570 * ira-costs.c (scan_one_insn): Likewise.
13571 * recog.c (general_operand, immediate_operand): Likewise.
13572 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
13573 * reload1.c (init_eliminable_invariants): Likewise.
13574
13575 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
13576 mode argument.
13577 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
13578 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
13579 argument.
13580 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13581 * config/alpha/predicates.md (input_operand): Update call to
13582 alpha_legitimate_constant_p.
13583
13584 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
13585 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
13586 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
13587 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13588 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
13589 (arm_legitimate_constant_p): New functions.
13590 (arm_cannot_force_const_mem): Make static.
13591
13592 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
13593
13594 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
13595 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
13596 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
13597 instead of bfin_legitimate_constant_p.
13598 (bfin_legitimate_constant_p): Make static. Add a mode argument.
13599 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13600
13601 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
13602
13603 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
13604
13605 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
13606 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
13607 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13608 (frv_legitimate_constant_p): Make static. Add a mode argument.
13609
13610 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
13611 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
13612 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
13613
13614 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
13615 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
13616 * config/i386/i386.c (legitimate_constant_p): Rename to...
13617 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
13618 argument.
13619 (ix86_cannot_force_const_mem): Update accordingly.
13620 (ix86_legitimate_address_p): Likewise.
13621 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13622 * config/i386/i386.md: Update commentary.
13623
13624 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
13625 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
13626 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13627 (ia64_legitimate_constant_p): Make static. Add a mode argument.
13628
13629 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
13630
13631 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
13632 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
13633 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13634 (lm32_legitimate_constant_p): Make static. Add a mode argument.
13635
13636 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
13637 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
13638 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
13639
13640 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
13641 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13642 (m32r_legitimate_constant_p): New function.
13643
13644 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
13645 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
13646 LEGITIMATE_CONSTANT_P.
13647 (LEGITIMATE_CONSTANT_P): Delete.
13648 * config/m68k/m68k.c (m68k_expand_prologue): Call
13649 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
13650 (m68k_legitimate_constant_p): New function.
13651 * config/m68k/m68k.md: Update comments.
13652
13653 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
13654 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13655 (mcore_legitimate_constant_p): New function.
13656
13657 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
13658 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
13659 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
13660 Add a mode argument.
13661 (mep_legitimate_address): Update accordingly.
13662 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13663
13664 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
13665 Delete.
13666 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
13667 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
13668 static. Check OP's mode for VOIDmode.
13669 (microblaze_legitimate_constant_p): New function.
13670 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13671
13672 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
13673 * config/mips/mips.c (mips_legitimate_constant_p): New function.
13674 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
13675 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13676 * config/mips/predicates.md: Update comments.
13677
13678 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
13679 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
13680 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13681 (mmix_legitimate_constant_p): Make static, return a bool, and take
13682 a mode argument.
13683 (mmix_print_operand_address): Update accordingly.
13684
13685 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
13686 Delete.
13687 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
13688 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
13689 static. Add a mode argument.
1a627b35
RS
13690 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13691
13692 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
13693
13694 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
13695 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13696 (pa_legitimate_constant_p): New function.
13697
13698 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
13699
13700 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
13701 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13702 (pdp11_legitimate_constant_p): New function.
13703
13704 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
13705 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13706 (rs6000_legitimate_constant_p): New function.
13707
13708 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
13709 (rx_legitimate_constant_p): ...this.
13710 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
13711 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
13712 (rx_legitimate_constant_p): ...this.
13713 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13714 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
13715
13716 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
13717 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
13718 * config/s390/s390.c (legitimate_constant_p): Rename to...
13719 (s390_legitimate_constant_p): ...this. Make static, return a bool,
13720 and add a mode argument.
13721 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13722
13723 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
13724
13725 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
13726 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13727 (sh_legitimate_constant_p): New function.
13728
13729 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
13730 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
13731 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13732 (legitimate_constant_p): Rename to...
13733 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
13734 argument.
13735 (constant_address_p): Update accordingly.
13736
13737 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
13738 argument and return a bool.
13739 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
13740 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13741 (spu_legitimate_constant_p): Add a mode argument and return a bool.
13742 (spu_rtx_costs): Update accordingly.
13743 * config/spu/predicates.md (vec_imm_operand): Likewise.
13744
13745 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
13746
13747 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
13748 * config/v850/v850.c (v850_legitimate_constant_p): New function.
13749 (TARGET_LEGITIMATE_CONSTANT_P): Define.
13750
13751 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
13752 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
13753 * config/vax/vax.c (legitimate_constant_p): Likewise.
13754
13755 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
13756 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13757 (xtensa_legitimate_constant_p): New function.
13758
fbbf66e7
RS
137592011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
13760
13761 * target.def (cannot_force_const_mem): Add a mode argument.
13762 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
13763 * doc/tm.texi: Regenerate.
13764 * hooks.h (hook_bool_mode_rtx_false): Declare.
13765 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
13766 (hook_bool_mode_const_rtx_true): Likewise.
13767 (hook_bool_mode_rtx_false): New function.
13768 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
13769 to be non-VOID. Update call to cannot_force_const_mem.
13770 (find_reloads): Update accordingly.
13771 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
13772 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
13773 argument.
13774 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
13775 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
13776 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
13777 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
13778 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
13779 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
13780 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
13781 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
13782 (m68k_cannot_force_const_mem): ...this new function.
13783 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
13784 argument.
13785 (mips_const_insns, mips_legitimize_const_move): Update calls.
13786 (mips_secondary_reload_class): Likewise.
13787 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
13788 (pa_cannot_force_const_mem): ...this new function.
2894086e 13789 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
13790 (rs6000_cannot_force_const_mem): ...this new function.
13791 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
13792 argument.
13793 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
13794 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
13795 to...
13796 (xtensa_cannot_force_const_mem): ...this new function.
13797
b861891b
NF
137982011-04-20 Nathan Froyd <froydnj@codesourcery.com>
13799
13800 * config/mips/mips.c (mips16_build_function_stub): Call
13801 build_function_type_list instead of build_function_type.
13802 (mips16_build_call_stub): Likewise.
13803
34149ed5
NF
138042011-04-20 Nathan Froyd <froydnj@codesourcery.com>
13805
13806 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
13807 instead of build_function_type.
13808
12526412
NF
138092011-04-20 Nathan Froyd <froydnj@codesourcery.com>
13810
13811 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
13812 instead of build_function_type.
13813
3b84d61f
UB
138142011-04-20 Uros Bizjak <ubizjak@gmail.com>
13815
13816 PR target/48678
13817 * config/i386/i386.md (insv): Change operand 0 constraint to
13818 "register_operand". Change operand 1 and 2 constraint to
13819 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
13820 * config/i386/sse.md (sse4_1_pinsrb): Export.
13821 (sse2_pinsrw): Ditto.
13822 (sse4_1_pinsrd): Ditto.
13823 (sse4_1_pinsrq): Ditto.
13824 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
13825 * config/i386/i386.c (ix86_expand_pinsr): New.
13826
4a25752b
ER
138272011-04-20 Easwaran Raman <eraman@google.com>
13828
13829 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
13830 containing union type only with -fstrict-aliasing.
13831
04695783
JM
138322011-04-20 Jim Meyering <meyering@redhat.com>
13833
13834 Remove useless if-before-free tests.
13835 * calls.c (expand_call, save_area): Likewise.
13836 * cfgcleanup.c (try_forward_edges): Likewise.
13837 * collect2.c (collect_execute): Likewise.
13838 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
13839 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
13840 * coverage.c (coverage_checksum_string): Likewise.
13841 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
13842 * cselib.c (cselib_init): Likewise.
13843 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
13844 (df_set_clean_cfg): Likewise.
13845 * function.c (free_after_compilation): Likewise.
13846 * gcc.c (do_spec_1, main): Likewise.
13847 * gcov.c (create_file_names): Likewise.
13848 * gensupport.c (identify_predicable_attribute): Likewise.
13849 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
13850 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
13851 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
13852 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
13853 * ipa-pure-const.c (local_pure_const): Likewise.
13854 * ipa-reference.c (propagate): Likewise.
13855 * ira-costs.c (free_ira_costs): Likewise.
13856 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
13857 * matrix-reorg.c (mat_free): Likewise.
13858 * prefix.c (get_key_value): Likewise.
13859 * profile.c (compute_value_histograms): Likewise.
13860 * reload1.c (free_reg_equiv): Likewise.
13861 * sched-deps.c (free_deps): Likewise.
13862 * sel-sched-ir.c (fence_clear): Likewise.
13863 * sese.c (set_rename, if_region_set_false_region): Likewise.
13864 * tree-data-ref.c (free_rdg): Likewise.
13865 * tree-eh.c (lower_try_finally): Likewise.
13866 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
13867 * tree-ssa-live.c (delete_var_map): Likewise.
13868 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
13869 * tree-ssa-pre.c (phi_trans_add): Likewise.
13870
6788475a
JJ
138712011-04-20 Jakub Jelinek <jakub@redhat.com>
13872
13873 PR tree-optimization/48611
13874 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
13875 beyond ERT_MUST_NOT_THROW region.
13876
0eda4033
CM
138772011-04-20 Catherine Moore <clm@codesourcery.com>
13878
13879 * config/mips/mips.opt (mfix-24k): New.
13880 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
13881 * config/mips/mips.md (length): Increase by 4 for stores if
13882 fixing 24K errata.
13883 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
13884 all noreorder if fixing 24K errata.
13885 * doc/invoke.texi: Document mfix-24k.
13886
01475747
CLT
138872011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
13888
13889 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 13890 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 13891
bc2c1a60
AS
138922011-04-20 Andrew Stubbs <ams@codesourcery.com>
13893
13894 * config/arm/arm.c (arm_gen_constant): Move movw support ....
13895 (const_ok_for_op): ... to here.
13896
583722ee
KT
138972011-04-20 Kai Tietz <ktietz@redhat.com>
13898
2894086e
UB
13899 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
13900 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 13901
422c0989
AS
139022011-04-20 Andrew Stubbs <ams@codesourcery.com>
13903
13904 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
13905
d7978bff
RG
139062011-04-20 Richard Guenther <rguenther@suse.de>
13907
13908 PR tree-optimization/47892
13909 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
13910 are if-convertible.
13911
818412ba
EB
139122011-04-20 Eric Botcazou <ebotcazou@adacore.com>
13913
13914 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
13915
b501ce4e
TG
139162011-04-20 Tristan Gingold <gingold@adacore.com>
13917
13918 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
13919
516edfdd
GJL
139202011-04-20 Georg-Johann Lay <avr@gjlay.de>
13921
13922 PR target/18145
13923
13924 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
13925 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
13926 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
13927 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
13928 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
13929
13930 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
13931 New prototype.
13932
13933 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
13934 (avr_asm_named_section, avr_asm_output_aligned_common,
13935 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
13936 New functions to update...
13937 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
13938 (avr_asm_init_sections): Overwrite section callbacks for
13939 data_section, bss_section.
13940 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
13941 from here to...
13942 (avr_file_end): ...here.
13943
dafc9511
RG
139442011-04-20 Richard Guenther <rguenther@suse.de>
13945
13946 PR middle-end/48695
13947 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 13948 objects and types here. Adjust for their offset before comparing.
dafc9511 13949
1da0876c
RS
139502011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
13951
13952 * tree-vect-stmts.c (vectorizable_store): Only chain one related
13953 statement per copy.
13954
25583c4f
RS
139552011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
13956
13957 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
13958 (GIMPLE_H): Include $(INTERNAL_FN_H).
13959 (OBJS-common): Add internal-fn.o.
13960 (internal-fn.o): New rule.
13961 * internal-fn.def: New file.
13962 * internal-fn.h: Likewise.
13963 * internal-fn.c: Likewise.
13964 * gimple.h: Include internal-fn.h.
13965 (GF_CALL_INTERNAL): New gf_mask.
13966 (gimple_statement_call): Put fntype into a union with a new
13967 internal_fn field.
13968 (gimple_build_call_internal): Declare.
13969 (gimple_build_call_internal_vec): Likewise.
13970 (gimple_call_same_target_p): Likewise.
13971 (gimple_call_internal_p): New function.
13972 (gimple_call_internal_fn): Likewise.
13973 (gimple_call_fntype): Return null for internal calls.
13974 (gimple_call_set_fntype): Assert that the function is not internal.
13975 (gimple_call_set_fn): Likewise.
13976 (gimple_call_set_fndecl): Likewise.
13977 (gimple_call_set_internal_fn): New function.
13978 (gimple_call_addr_fndecl): Handle null functions.
13979 (gimple_call_return_type): Likewise null types.
13980 * gimple.c (gimple_build_call_internal_1): New function.
13981 (gimple_build_call_internal): Likewise.
13982 (gimple_build_call_internal_vec): Likewise.
13983 (gimple_call_same_target_p): Likewise.
13984 (gimple_call_flags): Handle calls to internal functions.
13985 (gimple_call_fnspec): New function.
13986 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
13987 (gimple_has_side_effects): Handle null functions.
13988 (gimple_rhs_has_side_effects): Likewise.
13989 (gimple_call_copy_skip_args): Handle calls to internal functions.
13990 * cfgexpand.c (expand_call_stmt): Likewise.
13991 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
13992 * gimple-fold.c (gimple_fold_call): Handle null functions.
13993 (gimple_fold_stmt_to_constant_1): Don't fold
13994 calls to internal functions.
13995 * gimple-low.c (gimple_check_call_args): Handle calls to internal
13996 functions.
13997 * gimple-pretty-print.c (dump_gimple_call): Likewise.
13998 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
13999 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
14000 (do_warn_unused_result): Likewise.
14001 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
14002 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
14003 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
14004 the target of a call.
14005 (initialize_hash_element): Update accordingly.
14006 (hashable_expr_equal_p): Use gimple_call_same_target_p.
14007 (iterative_hash_hashable_expr): Handle calls to internal functions.
14008 (print_expr_hash_elt): Likewise.
14009 * tree-ssa-pre.c (can_value_number_call): Likewise.
14010 (eliminate): Handle null functions.
14011 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
14012 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
14013 (find_func_aliases): Likewise.
14014 * value-prof.c (gimple_ic_transform): Likewise.
14015 (gimple_indirect_call_to_profile): Likewise.
14016 * lto-streamer-in.c (input_gimple_stmt): Likewise.
14017 * lto-streamer-out.c (output_gimple_stmt): Likewise.
14018
1a3118e9
JH
140192011-04-19 Jan Hubicka <jh@suse.cz>
14020
14021 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
14022 * ipa-inline.c (inline_small_functions): Compute summaries first,
14023 populate heap later.
1a3118e9 14024
fee8b6da
JH
140252011-04-19 Jan Hubicka <jh@suse.cz>
14026
14027 * cgraph.h (save_inline_function_body): Remove.
14028 * ipa-inline-transform.c: New file, broke out of...
14029 * ipa-inline.c: ... this one; Update toplevel comment.
14030 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
14031 make global.
14032 (update_noncloned_frequencies): Move to ipa-inline-transform.c
14033 (cgraph_mark_inline_edge): Rename to inline_call; move to
14034 ipa-inline-transform.c.
14035 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
14036 move to ipa-inline-transform.c
14037 (recursive_inlining, inline_small_functions, flatten_function,
14038 ipa_inline, inline_always_inline_functions,
14039 early_inline_small_functions): Update.
14040 (inline_transform): Move to ipa-inline-transform.c.
14041 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
14042 Declare.
14043 * Makefile.in (ipa-inline-transform.o): New file.
14044 * cgraphunit.c (save_inline_function_body): Move to
14045 ipa-inline-transform.c
14046
f0679612
DD
140472011-04-19 DJ Delorie <dj@redhat.com>
14048
14049 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
14050 registers if we already know there aren't any.
14051 (m32c_emit_epilogue): Don't emit a barrier here.
14052 (m32c_emit_eh_epilogue): Likewise.
14053 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
14054 operands at expand time.
14055 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
14056 int" wchar type.
14057 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
14058 duplicates. Provide aliases instead.
14059 * config/m32c/prologue.md (eh_return): Emit a barrier here.
14060 (eh_epilogue): Add a "(return)" here as a hint to other parts of
14061 the compiler.
14062
32257ddc
AS
140632011-04-19 Anatoly Sokolov <aesok@post.ru>
14064
14065 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
14066 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
14067 (general_or_i64_p, sparc_register_move_cost): New function.
14068
60bea929
RO
140692011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14070
14071 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 14072 Add lynx, mipssde. Sort table.
60bea929 14073
444b3995 140742011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 14075
9d12f71a
EB
14076 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
14077 not negative.
444b3995 14078
d708ce50
JJ
140792011-04-19 Jakub Jelinek <jakub@redhat.com>
14080
14081 PR target/48678
14082 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
14083 is a SUBREG with non-MODE_INT mode inside of it.
14084
49c471e3
MJ
140852011-04-19 Martin Jambor <mjambor@suse.cz>
14086
14087 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
14088 also according to actual contants.
14089 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
14090 (gimple_fold_call): Use it.
14091 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
14092
0004f992
MJ
140932011-04-19 Martin Jambor <mjambor@suse.cz>
14094
14095 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
14096 non-pointer assignments.
14097
40591473
MJ
140982011-04-19 Martin Jambor <mjambor@suse.cz>
14099
14100 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
14101 account anc_offset and otr_type from the indirect edge info.
14102 * ipa-prop.c (get_ancestor_addr_info): New function.
14103 (compute_complex_ancestor_jump_func): Assignment analysis moved to
14104 get_ancestor_addr_info, call it.
14105 (ipa_note_param_call): Do not initialize information about polymorphic
14106 calls, return the indirect call graph edge. Remove the last
14107 parameter, adjust all callers.
14108 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
14109 parameters. Initialize polymorphic information in the indirect edge.
14110
abe36b81
EB
141112011-04-19 Eric Botcazou <ebotcazou@adacore.com>
14112
14113 PR lto/48148
14114 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
14115 the types if they have different enumeration identifiers.
14116
e6416b30
JH
141172011-04-19 Jan Hubicka <jh@suse.cz>
14118
14119 * cgraph.h (cgraph_optimize_for_size_p): Declare.
14120 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
14121 * predict.c (cgraph_optimize_for_size_p): Break out from ...
14122 (optimize_function_for_size_p) ... here.
14123
d39132ea
RG
141242011-04-19 Richard Guenther <rguenther@suse.de>
14125
14126 PR lto/48207
14127 * tree.c (free_lang_data): Do not reset the decl-assembler-name
14128 langhook.
14129
ff7037dc
EB
141302011-04-19 Eric Botcazou <ebotcazou@adacore.com>
14131
14132 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
14133 if DECL_NO_INLINE_WARNING_P is set on the function.
14134
c1ee2892
BS
141352011-04-19 Bernd Schmidt <bernds@codesourcery.com>
14136
14137 PR fortran/47976
14138 * reload1.c (inc_for_reload): Return void. All callers changed.
14139 (emit_input_reload_insns): Don't try to delete previous output
14140 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
14141
141422011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
14143
14144 * gengtype.h: Updated copyright year.
14145 (struct input_file_st): Add inpisplugin field.
14146 (type_fileloc): New function.
14147 * gengtype.c
14148 (write_typed_struct_alloc_def): Add gcc_assert.
14149 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
14150 (write_typed_alloc_defns): Don't output for plugin files.
14151 (input_file_by_name): Clear inpisplugin field.
14152 (main): Set inpisplugin field for plugin files.
14153
897e0a89
NP
141542011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
14155
14156 * gengtype-state.c (string_eq): New.
14157 (read_state): Use string_eq instead of strcmp when creating the
14158 state_ident_tab.
14159
363ee90e
WG
141602011-04-19 Wei Guozhi <carrot@google.com>
14161
14162 PR target/47855
14163 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
14164 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
14165 linkage.
14166 * config/arm/constraints.md (Uu): New constraint.
14167 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
14168
18a24fed
TG
141692011-04-19 Tristan Gingold <gingold@adacore.com>
14170
14171 * config.gcc (-*-*-*vms): Added.
14172 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
14173 definitions moved.
14174 * config/vms/vms-ld.c: New file.
14175 * config/vms/vms-ar.c: New file.
14176 * config/vms/t-vmsnative: New file.
14177
1c13f168
XDL
141782011-04-18 Xinliang David Li <davidxl@google.com>
14179
14180 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
14181
84825707
JJ
141822011-04-18 Jakub Jelinek <jakub@redhat.com>
14183
14184 PR middle-end/48661
14185 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
14186 if TREE_TYPE (v) is non-NULL.
14187
14188 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
14189 gimple_get_virt_mehtod_for_binfo.
14190 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
14191 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
14192 callers.
14193 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14194
7d4f8d02 141952011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
14196 Steve Ellcey <sje@cup.hp.com>
14197
7d4f8d02
EB
14198 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
14199 use its mode as source mode if it isn't VOIDmode.
7254cb57 14200
474e8e70
DCR
142012011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
14202
14203 * doc/passes.texi: Fill crossref nodes.
14204
cff41484
JM
142052011-04-18 Jim Meyering <meyering@redhat.com>
14206
7d4f8d02 14207 Fix doubled-word typos in comments and strings
cff41484
JM
14208 * config/alpha/vms-unwind.h: s/for for/for/
14209 * config/arm/unwind-arm.h: Likewise.
14210 * config/microblaze/microblaze.c: Likewise.
14211 * config/sh/constraints.md: s/in in/in/
14212 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
14213
f60c2554
UB
142142011-04-18 Uros Bizjak <ubizjak@gmail.com>
14215
14216 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
14217 (AVX_FLOAT_MODE_P): Ditto.
14218 (AVX128_VEC_FLOAT_MODE_P): Ditto.
14219 (AVX256_VEC_FLOAT_MODE_P): Ditto.
14220 (AVX_VEC_FLOAT_MODE_P): Ditto.
14221 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
14222 (UNSPEC_MASKSTORE): Ditto.
14223 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
14224 Merge from <sse>_movmsk<ssemodesuffix> and
14225 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
14226 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
14227 iterator.
14228 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
14229 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
14230 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
14231
09a2806f
JH
142322011-04-18 Jan Hubicka <jh@suse.cz>
14233
8a8dccb2
JH
14234 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
14235
09a2806f
JH
14236 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
14237 (want_inline_function_called_once_p): Break out the logic from
14238 ipa_inline.
14239 (edge_badness): Ensure that profile is not misupdated.
14240 (lookup_recursive_calls): Prioritize by call frequencies.
14241 (inline_small_functions): Move program size estimates here;
14242 actually process whole queue even when unit growth has been
14243 met. (to properly compute inline_failed reasons and for the
f60c2554 14244 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
14245 (ipa_inline): Remove unit summary code; first inline hot calls
14246 of functions called once, cold calls next.
14247 (order, nnodes): Remove unused variables.
14248 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
14249 (GTFILES): Remove ipa-inline.c
14250 * sel-sched.c (fill_insns): Silence uninitialized var warning.
14251
3eea52ef
EB
142522011-04-18 Eric Botcazou <ebotcazou@adacore.com>
14253
14254 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
14255
229a1c59 142562011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 14257 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
14258
14259 * arm.c (neon_builtin_type_bits): Remove.
14260 (typedef enum neon_builtin_mode): New.
14261 (T_MAX): Don't define.
14262 (typedef enum neon_builtin_datum): Remove bits, codes[],
14263 num_vars and base_fcode. Add mode, code and fcode.
14264 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
14265 VAR10): Change accordingly.
14266 (neon_builtin_data[]): Change accordingly
14267 (arm_init_neon_builtins): Change accordingly.
14268 (neon_builtin_compare): Remove.
14269 (locate_neon_builtin_icode): Remove.
14270 (arm_expand_neon_builtin): Change accordingly.
14271
14272 * arm.h (enum arm_builtins): Move to ...
14273 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
14274
14275 * arm.c (arm_builtin_decl): Declare.
14276 (TARGET_BUILTIN_DECL): Define.
14277 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
14278 (arm_builtin_decls[]): New.
14279 (arm_init_neon_builtins): Store builtin declarations in
14280 arm_builtin_decls[].
14281 (arm_init_tls_builtins): Likewise.
14282 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
14283 (arm_builtin_decl): New.
14284
75e802cc
RG
142852011-04-18 Richard Guenther <rguenther@suse.de>
14286
14287 * tree.c (upper_bound_in_type): Build properly canonicalized
14288 INTEGER_CSTs.
14289 (lower_bound_in_type): Likewise.
14290
3b45a007
RG
142912011-04-18 Richard Guenther <rguenther@suse.de>
14292
14293 * gimple.h (gimple_call_addr_fndecl): New function.
14294 (gimple_call_fndecl): Use it.
14295 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
14296 for direct calls.
14297 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
14298 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
14299
d25a79ea
RG
143002011-04-18 Richard Guenther <rguenther@suse.de>
14301
14302 PR middle-end/48650
14303 * tree.c (build_string): STRING_CST is now derived from tree_typed.
14304
7d5fc814
EB
143052011-04-18 Eric Botcazou <ebotcazou@adacore.com>
14306
14307 PR lto/48492
14308 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
14309 DECL_IN_CONSTANT_POOL without RTL.
14310
7e7cfcf6
UW
143112011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
14312 Ira Rosen <ira.rosen@linaro.org>
14313
14314 PR target/48252
14315 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
14316 to match neon_vzip/vuzp/vtrn_internal.
14317 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
14318 outputs explicitly dependent on both inputs.
14319 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
14320
49eab32e
JJ
143212011-04-18 Jakub Jelinek <jakub@redhat.com>
14322
14323 PR tree-optimization/48616
14324 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
14325 whether the shift is by scalar or vector based on whether all SLP
14326 scalar stmts have the same rhs.
14327
e54170f4
CLT
143282011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
14329
14330 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
14331 memory operands.
14332
b14ee6c9
RS
143332011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
14334
269e0e18 14335 PR target/43700
b14ee6c9
RS
14336 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
14337 registers.
14338
10158cd3
JH
143392011-04-17 Jan Hubicka <jh@suse.cz>
14340
14341 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
14342 * cgrpahunit.c (cgraph_finalize_function): Do not set
14343 finalized_by_frontend.
10158cd3
JH
14344 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
14345 finalized_by_frontend.
14346
2e9bb6ba
JH
143472011-04-17 Jan Hubicka <jh@suse.cz>
14348
14349 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
14350 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
14351 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
14352 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
14353 method.
2e9bb6ba
JH
14354 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
14355 gimple-fold.c
14356 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
14357
beb628e1
EB
143582011-04-17 Eric Botcazou <ebotcazou@adacore.com>
14359
14360 PR lto/48538
14361 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
14362 is non-null before accessing it.
14363 (input_cgraph): Remove trailing spaces.
14364
3e2fdd24
RE
143652011-04-17 Revital Eres <revital.eres@linaro.org>
14366
14367 * params.def (sms-min-sc): New param flag.
14368 * modulo-sched.c (sms_schedule): Use it.
14369 * doc/invoke.texi (sms-min-sc): Document it.
14370
4c0f7679
JH
143712011-04-17 Jan Hubicka <jh@suse.cz>
14372
14373 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
14374 present, also set gimple_call_set_cannot_inline.
14375 * ipa-inline.c: Update toplevel comment.
14376 (MAX_TIME): Remove.
14377 (cgraph_clone_inlined_nodes): Fix linebreaks.
14378 (cgraph_check_inline_limits): Restructure to ...
14379 (caller_growth_limits): ... this one; be more tolerant
14380 on growth in nested inline chains; add explanatory comment;
14381 fix stack accounting thinko introduced by previous patch.
14382 (cgraph_default_inline_p): Remove.
14383 (report_inline_failed_reason): New function.
14384 (can_inline_edge_p): New function.
14385 (can_early_inline_edge_p): New function.
14386 (leaf_node_p): Move upwards in file.
14387 (want_early_inline_function_p): New function.
14388 (want_inline_small_function_p): New function.
14389 (want_inline_self_recursive_call_p): New function.
14390 (cgraph_edge_badness): Rename to ...
14391 (edge_badness) ... this one; fix linebreaks.
14392 (update_edge_key): Update call of edge_baddness; add
14393 detailed dump about queue updates.
14394 (update_caller_keys): Use can_inline_edge_p and
14395 want_inline_small_function_p.
14396 (cgraph_decide_recursive_inlining): Rename to...
14397 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
14398 want_inline_self_recursive_call_p; simplify and remove no longer
14399 valid FIXME.
4c0f7679
JH
14400 (cgraph_set_inline_failed): Remove.
14401 (add_new_edges_to_heap): Use can_inline_edge_p and
14402 want_inline_small_function_p.
14403 (cgraph_decide_inlining_of_small_functions): Rename to ...
14404 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
14405 can/want predicates; cleanup debug ouput; work edges till fibheap
14406 is exhausted and do not stop once unit growth is reached; remove
14407 later loop processing remaining edges.
4c0f7679
JH
14408 (cgraph_flatten): Rename to ...
14409 (flatten_function): ... this one; use can_inline_edge_p
14410 and can_early_inline_edge_p predicates.
14411 (cgraph_decide_inlining): Rename to ...
14412 (ipa_inline): ... this one; remove unreachable nodes before
14413 inlining functions called once; simplify the pass.
14414 (cgraph_perform_always_inlining): Rename to ...
14415 (inline_always_inline_functions): ... this one; use
f60c2554 14416 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
14417 (cgraph_decide_inlining_incrementally): Rename to ...
14418 (early_inline_small_functions): ... this one; simplify
14419 using new predicates; cleanup; make dumps prettier.
14420 (cgraph_early_inlining): Rename to ...
14421 (early_inliner): newer inline regular functions into always-inlines;
14422 fix updating of call stmt summaries.
14423 (pass_early_inline): Update for new names.
14424 (inline_transform): Fix formating.
14425 (gate_cgraph_decide_inlining): Rename to ...
14426 (pass_ipa_inline): ... this one.
14427 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
14428 * ipa-inline-analysis.c (dump_inline_summary): Update.
14429 (compute_inline_parameters): Do not compute disregard_inline_limits;
14430 look for mismatching arguments.
14431 (estimate_growth): Fix handlig of non-trivial self recursion.
14432 (inline_read_summary): Do not read info->disregard_inline_limits.
14433 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
14434 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
14435 and move all checks into can_inline_edge_p predicate; re-enable code
14436 comparing optimization levels.
4c0f7679
JH
14437 (expand_call_inline): Do not test inline_forbidden_into_p.
14438 * Makefile.in (ipa-inline.o): Update arguments.
14439
54333b7c
RE
144402011-04-17 Revital Eres <revital.eres@linaro.org>
14441
14442 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
14443
42c2bf92
RE
144442011-04-17 Revital Eres <revital.eres@linaro.org>
14445
14446 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
14447
b183e9e0
MM
144482011-04-17 Michael Matz <matz@suse.de>
14449
14450 PR tree-optimization/48622
14451 PR lto/48645
14452 * ipa-inline-analysis.c (inline_read_summary): Read size/time
14453 in same order as they're written.
14454
b8a17fa2
JDA
144552011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14456
14457 * config/pa/predicates.md: Reorganize and simplify predicates.
14458 Eliminate duplicate code checks.
14459 (arith_operand): Rename to arith14_operand
14460 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
14461 * config/pa/pa.md: Use renamed operands.
14462 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
14463 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
14464 arith11_operand, adddi3_operand, indexed_memory_operand,
14465 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
14466 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
14467 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
14468 move_dest_operand, move_src_operand, prefetch_cc_operand,
14469 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
14470 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
14471 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
14472 div_operand, int5_operand, movb_comparison_operator,
14473 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
14474 arith_double_operand, ireg_operand, lhs_lshift_operand,
14475 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
14476 integer_store_memory_operand): Likewise.
14477 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
14478 (integer_store_memory_operand, read_only_operand,
14479 function_label_operand, borx_reg_operand,
14480 non_hard_reg_operand): Likewise.
14481 (eq_neq_comparison_operator): Delete unused operator.
14482 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
14483 function_label_operand.
14484 (emit_move_sequence): Likewise.
14485
8dfb9f16
UB
144862011-04-16 Uros Bizjak <ubizjak@gmail.com>
14487
14488 * config/i386/sse.md (sseunpackmode): New mode attribute.
14489 (ssepackmode): Ditto.
14490 (vec_pack_trunc_<mode>): Macroize expander from
14491 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
14492 (vec_unpacks_lo_<mode>): Macroize expander from
14493 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14494 (vec_unpacks_hi_<mode>): Macroize expander from
14495 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14496 (vec_unpacku_lo_<mode>): Macroize expander from
14497 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14498 (vec_unpacku_hi_<mode>): Macroize expander from
14499 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14500 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
14501 ix86_expand_sse4_unpack.
14502 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
14503
e7f23018
JH
145042011-04-16 Jan Hubicka <jh@suse.cz>
14505
14506 * cgraphbuild.c: Include ipa-inline.h.
14507 (reset_inline_failed): Use initialize_inline_failed.
14508 * cgraph.c: Include ipa-inline.h.
14509 (cgraph_create_node_1): Do not initialize estimated_growth.
14510 (initialize_inline_failed): More to ipa-inline-analysis.c
14511 (dump_cgraph_node): Do not dump inline flags.
14512 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
14513 and disregard_inline_limits flags.
14514 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
14515 time, size, estimated_growth.
8dfb9f16
UB
14516 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
14517 Update.
e7f23018
JH
14518 * cgraphunit.c (cgraph_decide_is_function_needed): Use
14519 DECL_DISREGARD_INLINE_LIMITS.
14520 (cgraph_analyze_function): Do not initialize
14521 node->local.disregard_inline_limits.
14522 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
14523 inlinable, versionable and disregard_inline_limits.
14524 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
14525 cgraph_check_inline_limits, cgraph_default_inline_p,
14526 cgraph_edge_badness, update_caller_keys, update_callee_keys,
14527 add_new_edges_to_heap): Update.
14528 (cgraph_decide_inlining_of_small_function): Update; set
14529 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
14530 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
14531 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
14532 * ipa-inline.h (inline_summary): Add inlinable, versionable,
14533 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
14534 time, size and estimated_growth parameters.
e7f23018
JH
14535 (estimate_edge_growth): Update.
14536 (initialize_inline_failed): Declare.
14537 * ipa-split.c: Include ipa-inline.h
14538 (execute_split_functions): Update.
14539 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
14540 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
14541 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
14542 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
14543 estimated_growth to INT_MIN.
14544 (inline_node_duplication_hook): Likewise.
14545 (dump_inline_summary): Dump new fields.
14546 (compute_inline_parameters): Update.
14547 (estimate_edge_time, estimate_time_after_inlining,
14548 estimate_size_after_inlining, estimate_growth, inline_read_summary,
14549 inline_write_summary):
14550 (initialize_inline_failed): Move here from cgraph.c.
14551 * tree-sra.c: Include ipa-inline.h.
14552 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
14553 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
14554 ipa-inline.h.
e7f23018 14555
e81b8564
UB
145562011-04-16 Uros Bizjak <ubizjak@gmail.com>
14557
14558 * config/i386/sse.md (V16): New mode iterator.
14559 (VI1, VI8): Ditto.
14560 (AVXMODEQI, AVXMODEDI): Remove.
14561 (sse2, sse3): New mode attribute.
14562 (mov<mode>): Use V16 mode iterator.
14563 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
14564 (push<mode>1): Use V16 mode iterator.
14565 (movmisalign<mode>): Ditto.
14566 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
14567 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
14568 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
14569 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
14570 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
14571 avx_movdqu<avxmodesuffix>.
14572 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
14573 *avx_movdqu<avxmodesuffix>.
14574 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
14575 avx_lddqu<avxmodesuffix>.
14576 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
14577 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
14578 avx_movnt<AVXMODEDI:mode>.
14579 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
14580 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
14581
4743d438
BS
145822011-04-16 Bernd Schmidt <bernds@codesourcery.com>
14583
14584 PR target/48629
14585 * haifa-sched.c (prune_ready_list, schedule_block): Use
14586 sched_pressure_p rather than flag_sched_pressure.
14587
748f7574 145882011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
14589
14590 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
14591 cgraph_get_node instead of cgraph_get_create_node.
14592
2ba172e0
JJ
145932011-04-15 Jakub Jelinek <jakub@redhat.com>
14594
14595 * cfgexpand.c (expand_debug_expr): Use
14596 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
14597
63d2a353
MM
145982011-04-15 Michael Matz <matz@suse.de>
14599
14600 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
14601 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
14602 * function.c (gimplify_parameters): Ditto.
14603 * gimplify.c (gimplify_vla_decl): Ditto.
14604
14605 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
14606 (gimple_call_set_alloca_for_var): New inline function.
14607 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
14608 * gimple.c (gimple_build_call_from_tree): Remember
14609 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
14610 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
14611
14612 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
14613 calls if they were for VLA objects.
14614
dee74c34
MJ
146152011-04-15 Martin Jambor <mjambor@suse.cz>
14616
14617 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
14618 of ADR_EXPRs.
14619
8e5837bc
MJ
146202011-04-15 Martin Jambor <mjambor@suse.cz>
14621
14622 PR middle-end/48601
14623 * tree-emutls.c (lower_emutls_function_body): Call
14624 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
14625 result is non-NULL.
14626
0dc33c3c
NP
146272011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
14628
14629 * c-decl.c (detect_field_duplicates): Call
14630 objc_detect_field_duplicates instead of objc_get_interface_ivars.
14631
edcdea5b
NF
146322011-04-15 Nathan Froyd <froydnj@codesourcery.com>
14633
14634 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
14635 * gimple.c (gimple_asm_clobbers_memory_p): Define.
14636 * ipa-pure-const.c (check_stmt): Call it.
14637 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
14638
8456558d
RG
146392011-04-15 Richard Guenther <rguenther@suse.de>
14640
14641 PR tree-optimization/48290
14642 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
14643 Properly decide inhibiting propagation based on the valueized
14644 operand. Do loop-closed SSA form preserving here ...
14645 (init_copy_prop): ... not here.
14646
266446be
L
146472011-04-15 H.J. Lu <hongjiu.lu@intel.com>
14648
14649 PR target/48612
14650 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
14651 (*ieee_smax<mode>3): Likewise.
14652
17465c6e
AK
146532011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14654
14655 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
14656 Replace match_operand with match_dup for the third operand in
14657 these expanders.
14658
bce204e5
MK
146592011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
14660
14661 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
14662 to track processing of conditionals. Update all callers.
14663 (try_combine, simplify_if_then_else): Update.
14664
3162fdf4
MK
146652011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
14666
14667 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
14668 -fsched-pressure.
14669
79002a57 146702011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 14671
79002a57
GJL
14672 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
14673 instead of match_operand for operand 3.
14674
4fd3a105
RS
146752011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
14676
14677 * recog.h (insn_operand_data): Add an "allows_mem" field.
14678 * genoutput.c (output_operand_data): Initialize it.
14679 * optabs.c (maybe_legitimize_operand_same_code): New function.
14680 (maybe_legitimize_operand): Use it when matching the original
14681 op->value.
14682
ad19c4be
EB
146832011-04-15 Eric Botcazou <ebotcazou@adacore.com>
14684
14685 * gimplify.c: Fix issues in comments throughout.
14686 (voidify_wrapper_expr): Fix long line.
14687 (build_stack_save_restore): Likewise.
14688 (gimplify_loop_expr): Likewise.
14689 (gimplify_compound_lval): Likewise.
14690 (gimplify_init_ctor_eval): Likewise.
14691 (gimplify_modify_expr_rhs): Likewise.
14692 (omp_notice_threadprivate_variable): Likewise.
14693
b25aa0e8 146942011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 14695
b25aa0e8
EB
14696 * cfgexpand.c (expand_call_stmt): Convert the function type to the
14697 original one if this is not a builtin function.
e7925582 14698
09db7afe
JJ
146992011-04-14 Jakub Jelinek <jakub@redhat.com>
14700
14701 PR target/48605
14702 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
14703 offset it as needed based on top 2 bits in operands[3], change
14704 MEM mode to SFmode and mask those 2 bits away from operands[3].
14705
c59633d9
NP
147062011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
14707
14708 * c-parser.c (c_parser_objc_protocol_definition): Updated for
14709 change from objc_declare_protocols() to objc_declare_protocol().
14710
5e60198b
UB
147112011-04-14 Uros Bizjak <ubizjak@gmail.com>
14712
14713 * config/i386/sse.md (sse4_1): New mode attribute.
14714 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
14715 avx_blend<ssemodesuffix><avxmodesuffix> and
14716 sse4_1_blend<ssemodesuffix> using VF mode iterator.
14717 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
14718 avx_blendv<ssemodesuffix><avxmodesuffix> and
14719 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
14720 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
14721 avx_dp<ssemodesuffix><avxmodesuffix> and
14722 sse4_1_dp<ssemodesuffix> using VF mode iterator.
14723 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
14724 (sse4_1_packusdw): Merge with *avx_packusdw.
14725 (sse4_1_pblendvb): Merge with *avx_pblendvb.
14726 (sse4_1_pblendw): Merge with *avx_pblendw.
14727 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
14728 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
14729 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
14730 VF mode iterator.
14731 (sse4_1_round<ssescalarmodesuffix>): Merge with
14732 *avx_round<ssescalarmodesuffix>.
14733 (aesenc): Merge with *avx_aesenc.
14734 (aesenclast): Merge with *avx_aesenclast.
14735 (aesdec): Merge with *avx_aesdec.
14736 (aesdeclast): Merge with *avx_aesdeclast.
14737 (pclmulqdq): Merge with *pclmulqdq.
14738 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
14739 New predicate.
14740 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
14741
6f197850
L
147422011-04-14 H.J. Lu <hongjiu.lu@intel.com>
14743
14744 PR middle-end/48608
14745 * cfgexpand.c (get_decl_align_unit): Renamed to ...
14746 (align_local_variable): This. Update DECL_ALIGN.
14747 (add_stack_var): Updated.
14748 (expand_one_stack_var): Likewise.
14749
4a5ba3ed
RG
147502011-04-14 Richard Guenther <rguenther@suse.de>
14751
14752 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
14753 Remove.
14754 (dse_initialize_block_local_data, dse_leave_block,
14755 record_voperand_set, get_stmt_uid): Likewise.
14756 (dse_possible_dead_store_p): Allow any kind of killing stmt.
14757 (dse_optimize_stmt): Remove voperand set handling code.
14758 Simplify and improve to handle any kind of killing stmt.
14759 (dse_record_phi): Remove.
14760 (dse_enter_block): Simplify.
14761 (tree_ssa_dse): Likewise.
14762 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
14763
10a5dd5d
JH
147642011-04-14 Jan Hubicka <jh@suse.cz>
14765
14766 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
14767 * cgraph.h (struct inline_summary): Move to ipa-inline.h
14768 (cgraph_local_info): Remove inline_summary.
14769 * ipa-cp.c: Include ipa-inline.h.
14770 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
14771 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
14772 accesor.
14773 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
14774 (input_overwrite_node): Do not set inline summary.
14775 (input_node): Do not stream inline summary.
14776 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
14777 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
14778 growth; we do not have inline parameters computed for that anyway.
14779 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
14780 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
14781 (inline_summary_t): New type and VECtor.
14782 (debug_inline_summary, dump_inline_summaries): Declare.
14783 (inline_summary): Use VOCtor.
14784 (estimate_edge_growth): Kill hack computing call stmt size directly.
14785 * lto-section-in.c (lto_section_name): Add inline section.
14786 * ipa-inline-analysis.c: Include lto-streamer.h
14787 (node_removal_hook_holder, node_duplication_hook_holder): New holders
14788 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
14789 (inline_summary_vec): Define.
14790 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
14791 dump_inline_summaries): New functions.
5e60198b
UB
14792 (estimate_function_body_sizes): Properly compute size/time of outgoing
14793 calls.
14794 (compute_inline_parameters): Alloc inline_summary; do not compute
14795 size/time of incomming calls.
10a5dd5d
JH
14796 (estimate_edge_time): Avoid missing time summary hack.
14797 (inline_read_summary): Read inline summary info.
14798 (inline_write_summary): Write inline summary info.
14799 (inline_free_summary): Free all hooks and inline summary vector.
14800 * lto-streamer.h: Add LTO_section_inline_summary section.
14801 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
14802 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
14803
b602d918
RS
148042011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
14805
14806 * tree-vectorizer.h (vect_strided_store_supported): Add a
14807 HOST_WIDE_INT argument.
14808 (vect_strided_load_supported): Likewise.
14809 (vect_permute_store_chain): Return void.
14810 (vect_transform_strided_load): Likewise.
14811 (vect_permute_load_chain): Delete.
14812 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
14813 count argument. Check that the count is a power of two.
14814 (vect_strided_load_supported): Likewise.
14815 (vect_permute_store_chain): Return void. Update after above changes.
14816 Assert that the access is supported.
14817 (vect_permute_load_chain): Likewise.
14818 (vect_transform_strided_load): Return void.
14819 * tree-vect-stmts.c (vectorizable_store): Update calls after
14820 above interface changes.
14821 (vectorizable_load): Likewise.
14822 (vect_analyze_stmt): Don't check for strided powers of two here.
14823
ab4472fa
RG
148242011-04-14 Richard Guenther <rguenther@suse.de>
14825
14826 PR tree-optimization/48590
14827 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14828 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
14829 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
14830 BUILT_IN_STACK_SAVE.
14831 * tree-ssa-dce.c (propagate_necessity): Handle
14832 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
14833
32dabdaf
NP
148342011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
14835
14836 * c-parser.c (c_parser_objc_class_declaration): Updated call to
14837 objc_declare_class.
14838
daade206
RG
148392011-04-14 Richard Guenther <rguenther@suse.de>
14840
14841 * tree.h (get_object_alignment_1): Declare.
14842 * builtins.c (get_object_alignment_1): Split out worker from ...
14843 (get_object_alignment): ... here.
14844 * fold-const.c (get_pointer_modulus_and_residue): Use
14845 get_object_alignment_1.
14846
920e8172
RS
148472011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
14848
14849 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
14850 type parameter.
14851 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
14852 parameter. Generalise code to handle arrays as well as vectors.
14853 (vect_setup_realignment): Update accordingly.
14854 * tree-vect-stmts.c (vectorizable_store): Likewise.
14855 (vectorizable_load): Likewise.
14856
5ce1ee7f
RS
148572011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
14858
14859 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
14860 within the per-copy loop.
14861
6438fe33 148622011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
14863
14864 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
14865 in the dump file.
14866
6438fe33 148672011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
14868
14869 * doc/options.texi (Negative): Explicitly mention that the
14870 Negative chain must be circular.
14871
61e46a7d
NF
148722011-04-14 Nathan Froyd <froydnj@codesourcery.com>
14873
14874 * function.h (block_chainon): Declare.
14875 * function.c (block_chainon): Define.
14876
43ea6502 148772011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 14878 Eric Weddington <eric.weddington@atmel.com>
748f7574 14879 Georg-Johann Lay <avr@gjlay.de>
5e60198b 14880
f60c2554 14881 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
14882 New Includes
14883 (avr_init_builtins, avr_expand_builtin,
14884 avr_expand_delay_cycles, avr_expand_unop_builtin,
14885 avr_expand_binop_builtin ): New functions.
14886 (avr_builtin_id): New enum
14887 (struct avr_builtin_description): New struct
14888 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
14889 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 14890
43ea6502 14891 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 14892 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
14893 UNSPECV_DELAY_CYCLES): new enumeration values
14894 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
14895 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
14896 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
14897 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
14898 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
14899 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
14900 "fmulsu"): New insns
5e60198b 14901
43ea6502
AS
14902 * config/avr/avr-c.c: fix line endings
14903 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
14904 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
14905 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
14906 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
14907 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 14908
43ea6502
AS
14909 * doc/extend.texi (AVR Built-in Functions): New node
14910 (Target Builtins): Add documentation of AVR
14911 built-in functions.
14912
8a9b55f3
GJL
149132011-04-14 Georg-Johann Lay <avr@gjlay.de>
14914
14915 PR target/44643
14916 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
14917 alone. Error if non-const data has attribute progmem.
14918
94bd1825
NF
149192011-04-13 Nathan Froyd <froydnj@codesourcery.com>
14920
14921 * tree.h (struct tree_constructor): Include tree_typed instead of
14922 tree_common.
14923 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
14924 TS_TYPED instead of TS_COMMON.
14925
5e60198b 149262011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
14927
14928 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
14929 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
14930 (sse2_psadbw): Merge with *avx_psadbw.
14931 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
14932 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
14933 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
14934 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
14935 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
14936 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
14937 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
14938 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
14939 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
14940 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
14941 (ssse3_palignrti): Merge with *avx_palignrti.
14942
4b1a4694
NF
149432011-04-13 Nathan Froyd <froydnj@codesourcery.com>
14944
14945 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
14946 * tree-ssanames.c (fini_ssanames): VEC_free it.
14947 (make_ssa_name_fn): Update for VECness of free_ssanames.
14948 (release_ssa_name, release_dead_ssa_names): Likewise.
14949 * tree.h (struct tree_ssa_name): Include tree_typed instead of
14950 tree_common.
14951 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
14952 TS_TYPED instead of TS_COMMON.
14953
4da3b811
NF
149542011-04-13 Nathan Froyd <froydnj@codesourcery.com>
14955
14956 * postreload-gcse.c (gcse_after_reload_main): Add calls to
14957 statistics_counter_event.
14958 * tree-ssa-copyrename.c (stats): Define.
14959 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
14960 statistics_counter_event.
14961 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
14962 (bswap_stats, widen_mul_stats): Define.
14963 (insert_reciprocals): Increment rdivs_inserted.
14964 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
14965 rfuncs_inserted. Add calls to statistics_counter_event.
14966 (execute_cse_sincos_1): Increment inserted.
14967 (execute_cse_sincos): Zeroize sincos_stats. Add call to
14968 statistics_counter_event.
14969 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
14970 of bswap_stats. Add calls to statistics_counter_event.
14971 (convert_mult_to_widen): Increment widen_mults_inserted.
14972 (convert_plusminus_to_widen): Increment maccs_inserted.
14973 (convert_mult_to_fma): Increment fmas_inserted.
14974 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
14975 calls to statistics_counter_event.
14976
89fa552a
VM
149772011-04-13 Vladimir Makarov <vmakarov@redhat.com>
14978
14979 PR rtl-optimization/48455
14980 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
14981 `temp_costs->mem_cost'.
14982
03dfc36d
JH
149832011-04-13 Jan Hubicka <jh@suse.cz>
14984
14985 * ipa-inline.h: New file.
14986 * ipa-inline-analysis.c: New file. Broken out of ...
14987 * ipa-inline.c: ... this file; update toplevel comment;
14988 include ipa-inline.h
14989 (inline_summary): Move to ipa-inline.h
14990 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
14991 ipa-inline-analysis.c.
7d4f8d02
EB
14992 (cgraph_estimate_time_after_inlining): Rename to
14993 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
14994 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
14995 to estimate_edge_growth.
14996 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
14997 rename to estimate_size_after_inlining.
14998 (cgraph_mark_inline_edge): Update for new naming convention.
14999 (cgraph_check_inline_limits): Likewise.
15000 (cgraph_edge_badness): Likewise.
15001 (cgraph_decide_recursive_inlining): Likewise.
15002 (cgraph_decide_inlining_of_small_functions): Likewise.
15003 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
15004 (cgraph_estimate_growth): Rename to estimate_growth; move to
15005 ipa-inline-analysis.c.
03dfc36d
JH
15006 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
15007 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
15008 (compute_inline_parameters): Likewise.
15009 (compute_inline_parameters_for_current): Likewise.
15010 (pass_inline_parameters): Likewise.
15011 (inline_indirect_intraprocedural_analysis): Likewise.
15012 (analyze_function): Rename to inline_analyze_function; likewise.
15013 (add_new_function): Move to ipa-inline-analysis.c.
15014 (inline_generate_summary): Likewise.
15015 (inline_read_summary): Likewise.
15016 (inline_write_summary): Likewise.
15017 * Makefile.in (ipa-inline-analysis.c): New file.
15018
7673c962
RO
150192011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15020
15021 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
15022 * configure: Regenerate.
15023
9698252f
NF
150242011-04-13 Nathan Froyd <froydnj@codesourcery.com>
15025
15026 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
15027 instead of tree_common.
15028 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
15029 Likewise.
15030 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
15031 TS_TYPED rather than TS_COMMON.
15032 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
15033
3a7bfdd5
GJL
150342011-04-01 Georg-Johann Lay <avr@gjlay.de>
15035
15036 PR target/45263
86d83530
GJL
15037 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
15038 r20 around calls of __tablejump_elpm__
3a7bfdd5 15039
20790697
JJ
150402011-04-13 Jakub Jelinek <jakub@redhat.com>
15041
15042 PR middle-end/48591
15043 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
15044 NULL.
15045 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
15046
094d7661
BS
150472011-04-13 Bernd Schmidt <bernds@codesourcery.com>
15048
15049 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
15050 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
15051 (cfi_vec): New typedef.
15052 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
15053 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
15054 (cie_cfi_vec): New static variable.
15055 (cie_cfi_head): Delete.
15056 (add_cfi): Accept a cfi_vec * as first argument. All callers and
15057 declaration changed. Use vector rather than list operations.
15058 (new_cfi): Don't initialize the dw_cfi_next field.
15059 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
15060 rather than list operations.
15061 (lookup_cfa): Use vector rather than list operations.
15062 (output_cfis): New argument upto. Accept a cfi_vec rather than
15063 a dw_cfi_ref list head as argument. All callers changed.
15064 Iterate over the vector using upto as a maximum index.
15065 (output_all_cfis): New static function.
15066 (output_fde): Use vector rather than list operations. Use the
15067 new upto argument for output_cfis rather than manipulating a
15068 list.
15069 (dwarf2out_begin_prologue): Change initializations to match
15070 new struct members.
15071 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
15072 from the vector length rather than searching for the end of a list.
15073 Use output_all_cfis.
15074 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
15075
673a5740
NC
150762011-04-13 Nick Clifton <nickc@redhat.com>
15077
15078 * config/rx/rx.md (movmemsi): Do not use this pattern when
15079 volatile pointers are involved.
15080
1ee8b298
UB
150812011-04-13 Uros Bizjak <ubizjak@gmail.com>
15082
15083 * config/i386/sse.md (pinsrbits): Remove.
15084 (sse2_packsswb): Merge with *avx_packsswb.
15085 (sse2_packssdw): Merge with *avx_packssdw.
15086 (sse2_packuswb): Merge with *avx_packuswb.
15087 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
15088 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
15089 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
15090 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
15091 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
15092 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
15093 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
15094 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
15095 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
15096 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
15097 (sse2_loadld): Merge with *avx_loadld.
15098 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
15099 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
15100 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
15101 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
15102 (vec_concatv2di): Merge with *vec_concatv2di_avx.
15103
81f653d6
NF
151042011-04-12 Nathan Froyd <froydnj@codesourcery.com>
15105
15106 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
15107 calling TREE_CHAIN.
15108 * print-tree.c (print_node): Likewise.
15109 * tree-inline.c (copy_tree_r): Likewise.
15110 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
15111 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
15112 instead of TS_COMMON.
15113 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
15114 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
15115 (copy_node_stat): Zero TREE_CHAIN only if necessary.
15116 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
15117 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
15118 ...and these...
15119 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
15120 * tree.h: ...here.
15121 (TREE_CHAIN): Check for a TS_COMMON structure.
15122 (TREE_TYPE): Check for a TS_TYPED structure.
15123
748f7574 151242011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
15125
15126 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
15127 cgraph_get_create_node instead of cgraph_node.
15128
eb345401
NP
151292011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
15130
15131 * c-parser.c (c_parser_initelt): Updated call to
15132 objc_build_message_expr.
15133 (c_parser_postfix_expression): Likewise.
15134
a6c46762
KT
151352011-04-12 Kai Tietz <ktietz@redhat.com>
15136
15137 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
15138 MASK_MS_BITFIELD_LAYOUT bit.
15139
b4ccfed9
JJ
151402011-04-12 Jakub Jelinek <jakub@redhat.com>
15141
15142 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
15143 assert it is always true.
15144 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
15145 moves.
15146
0d8a2528
NP
151472011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
15148
15149 * c-parser.c (c_lex_one_token): Rewritten conditional used when
15150 compiling Objective-C to be more efficient.
15151
06bd234a
AF
151522011-04-12 Axel Freyn <axel-freyn@gmx.de>
15153
15154 * opts-common.c (decode_cmdline_options_to_array): Remove variable
15155 argv_copied.
15156
28569ac3
RS
151572011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
15158
15159 * recog.h, genoutput.c, optabs.c: Revert last patch.
15160
ae59e00d
RR
151612011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15162
81b1e7eb
UB
15163 PR target/48090
15164 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 15165
cff1b7e0
RS
151662011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
15167
15168 * recog.h (insn_operand_data): Add an "allows_mem" field.
15169 * genoutput.c (output_operand_data): Initialize it.
15170 * optabs.c (maybe_legitimize_operand_same_code): New function.
15171 (maybe_legitimize_operand): Use it when matching the original
15172 op->value.
15173
77059241
RS
151742011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
15175
15176 * genpreds.c (process_define_predicate): Move most processing
15177 to gensupport.c. Continue to validate the expression.
15178 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
15179 (process_define_predicate): Move processing to gensupport.c.
15180 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
15181 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
15182 (compute_predicate_codes): Moved from genrecog.c. Add lineno
15183 argument.
15184 (valid_predicate_name_p): New function, split out from old
15185 genpreds.c:process_define_predicate.
15186 (process_define_predicate): New function, combining code from
15187 old genpreds.c and genrecog.c functions.
15188 (process_rtx): Call it for DEFINE_PREDICATE and
15189 DEFINE_SPECIAL_PREDICATE.
15190
6308e208
RS
151912011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
15192
15193 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
15194 size of a '%A' memory reference.
15195 (T_DREG, T_QREG): New neon_builtin_type_bits.
15196 (arm_init_neon_builtins): Assert that the load and store operands
15197 are neon_struct_operands.
15198 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
15199 (NEON_ARG_MEMORY): New builtin_arg.
15200 (neon_dereference_pointer): New function.
15201 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
15202 Handle NEON_ARG_MEMORY.
15203 (arm_expand_neon_builtin): Update after above interface changes.
15204 Use NEON_ARG_MEMORY for loads and stores.
15205 * config/arm/predicates.md (neon_struct_operand): New predicate.
15206 * config/arm/iterators.md (V_two_elem): Tweak formatting.
15207 (V_three_elem): Use BLKmode for accesses that have no associated mode.
15208 (V_four_elem): Tweak formatting.
15209 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
15210 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
15211 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
15212 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
15213 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
15214 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
15215 (neon_vst4<mode>): Replace pointer operand with a memory operand.
15216 Use %A in the output template.
15217 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
15218 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
15219 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
15220 the width of the memory access. Remove post-increment.
15221 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
15222
e5db8f2f
NC
152232011-04-12 Nick Clifton <nickc@redhat.com>
15224
15225 * config/v850/v850.c (expand_prologue): Do not use the CALLT
15226 instruction for interrupt handlers if the target is the basic V850
15227 architecture.
15228 (expand_epilogue): Likewise.
15229
74f091d6
JJ
152302011-04-12 Jakub Jelinek <jakub@redhat.com>
15231
15232 PR rtl-optimization/48549
15233 * combine.c (propagate_for_debug): Also stop after BB_END of
15234 this_basic_block. Process LAST and just stop processing after it.
15235 (combine_instructions): If last_combined_insn has been deleted,
15236 set last_combined_insn to its PREV_INSN.
15237
f20ca725
RG
152382011-04-12 Richard Guenther <rguenther@suse.de>
15239
15240 PR tree-optimization/46076
15241 * gimple.h (struct gimple_statement_call): Add fntype field.
15242 (gimple_call_fntype): Adjust.
15243 (gimple_call_set_fntype): New function.
15244 * gimple.c (gimple_build_call_1): Set the call function type.
15245 * gimplify.c (gimplify_call_expr): Preserve the function
15246 type the frontend used for the call.
15247 (gimplify_modify_expr): Likewise.
15248 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
15249 function type.
15250 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
15251 function type.
15252 * tree-ssa.c (useless_type_conversion_p): Function pointer
15253 conversions are useless.
15254
a358e188
MJ
152552011-04-12 Martin Jambor <mjambor@suse.cz>
15256
15257 * cgraph.h (cgraph_node): Remove function declaration.
15258 (cgraph_create_node): Declare.
15259 (cgraph_get_create_node): Likewise.
15260 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
15261 Updated all callers.
15262 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
15263 the decl does not already exist. Call cgraph_get_create_node instead
15264 of cgraph_node.
15265 (cgraph_get_create_node): New function.
15266 (cgraph_same_body_alias): Update comment.
15267 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
15268 assert it does not return NULL.
15269 (cgraph_update_edges_for_call_stmt): Likewise.
15270 (cgraph_clone_edge): Likewise.
15271 (cgraph_create_virtual_clone): Likewise.
15272 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
15273 instead of cgraph_node.
15274 (cgraph_add_new_function): Call cgraph_create_node or
15275 cgraph_get_create_node instead of cgraph_node.
15276 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
15277 instead of cgraph_node.
15278 (record_eh_tables): Likewise.
15279 (mark_address): Likewise.
15280 (mark_load): Likewise.
15281 (build_cgraph_edges): Call cgraph_get_create_node instead
15282 of cgraph_node.
15283 (rebuild_cgraph_edges): Likewise.
15284 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
15285 instead of cgraph_node.
15286 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
15287 cgraph_node.
15288 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
15289 cgraph_create_node instead of cgraph_node.
15290 * c-decl.c (finish_function): Call cgraph_get_create_node instead
15291 of cgraph_node.
15292 * lto-cgraph.c (input_node): Likewise.
15293 * lto-streamer-in.c (input_function): Likewise.
15294 * varasm.c (mark_decl_referenced): Likewise.
15295 (assemble_alias): Likewise.
15296
fe660d7b
MJ
152972011-04-12 Martin Jambor <mjambor@suse.cz>
15298
15299 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
15300 instead of cgraph_node and assert it does not return NULL.
15301 * lto-streamer-in.c (lto_read_body): Likewise.
15302 * omp-low.c (new_omp_context): Likewise.
15303 (create_task_copyfn): Likewise.
15304 * tree-emutls.c (lower_emutls_function_body): Likewise.
15305 * matrix-reorg.c (transform_allocation_sites): Likewise.
15306
bae5cddf
JJ
153072011-04-12 Jakub Jelinek <jakub@redhat.com>
15308
15309 PR c/48552
15310 * c-typeck.c (build_asm_expr): Error out on attempts to use
15311 void type outputs or inputs for constraints that allow reg or
15312 don't allow memory.
15313
06eb52ca
CLT
153142011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
15315 Richard Earnshaw <rearnsha@arm.com>
15316
15317 PR target/48250
15318 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
15319 to use sign-magnitude offsets. Reject unsupported unaligned
15320 cases. Add detailed description in comments.
15321 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
15322 condition from TARGET_32BIT to TARGET_ARM.
15323
648a616b
NF
153242011-04-11 Nathan Froyd <froydnj@codesourcery.com>
15325
15326 * tree.h (struct typed_tree): New.
15327 (struct tree_common): Include it instead of tree_base.
15328 (TREE_TYPE): Update for new location of type field.
15329 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
15330 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
15331 (union tree_node): Add typed field.
15332 * treestruct.def (TS_TYPED): New.
15333 * lto-streamer.c (check_handled_ts_structures): Handle it.
15334 * tree.c (MARK_TS_TYPED): New macro.
15335 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
15336
1e6d1da0
EB
153372011-04-11 Eric Botcazou <ebotcazou@adacore.com>
15338
15339 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
15340 (force_nonfallthru): Do not alter the loop nest if no basic block
15341 was created.
15342
153432011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
15344
15345 * config/i386/sse.md (VI): New mode iterator.
15346 (SSEMODEI): Remove.
15347 (AVX256MODEI): Ditto.
15348 (AVXMODEF4P): Ditto.
15349 (avxvecpsmode): Ditto.
15350 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
15351 (sse2_andnot<mode>3): New expander.
15352 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
15353 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
15354 (<any_logic:code><mode>3): Use VI mode iterator.
15355 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
15356 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
15357 (*andnottf3): Handle AVX three-operand constraints.
15358 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
15359
b1372d5d 153602011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 15361 Robert Millan <rmh@gnu.org>
b1372d5d
JM
15362
15363 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
15364 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
15365 GNU_USER_DYNAMIC_LINKER64): Define.
15366 (REG_NAME): Don't undefine.
15367 (MD_UNWIND_SUPPORT): Undefine.
15368 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
15369 (REG_NAME): Don't undefine.
15370 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 15371 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 15372
761c0c6e
JM
153732011-04-11 Joseph Myers <joseph@codesourcery.com>
15374
15375 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
15376 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
15377
26e0228f
XDL
153782011-04-11 Xinliang David Li <davidxl@google.com>
15379
15380 * value-profile.c (check_ic_target): New function.
15381 (gimple_ic_transform): Sanity check indirect call target.
15382 * gimple-low.c (gimple_check_call_args): Interface change.
15383 (gimple_check_call_matching_types): New function.
15384 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
15385
153862011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
15387
15388 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
15389 tree-pretty-print.h & realmpfr.h.
15390
a58dfa49
VM
153912011-04-11 Vladimir Makarov <vmakarov@redhat.com>
15392
15393 PR middle-end/48464
15394 * ira.c (setup_pressure_classes): Fix typo in loop condition.
15395 (setup_allocno_and_important_classes): Ditto.
15396
107fd1c1
JM
153972011-04-11 Joseph Myers <joseph@codesourcery.com>
15398
15399 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
15400 GNU_USER_DYNAMIC_LINKER.
15401 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
15402 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15403 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
15404 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
15405 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
15406 GNU_USER_TARGET_OS_CPP_BUILTINS.
15407 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
15408 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15409 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
15410 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15411 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
15412 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
15413 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
15414 GNU_USER_TARGET_OS_CPP_BUILTINS.
15415 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15416 GNU_USER_DYNAMIC_LINKER.
15417 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15418 GNU_USER_TARGET_OS_CPP_BUILTINS.
15419 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
15420 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15421 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
15422 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15423 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
15424 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
15425 GNU_USER_DYNAMIC_LINKER64): Remove.
15426 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
15427 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15428 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15429 GNU_USER_DYNAMIC_LINKER.
15430 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15431 GNU_USER_TARGET_OS_CPP_BUILTINS.
15432 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15433 GNU_USER_TARGET_OS_CPP_BUILTINS.
15434 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
15435 to GNU_USER_TARGET_OS_CPP_BUILTINS.
15436 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15437 GNU_USER_TARGET_OS_CPP_BUILTINS.
15438 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
15439 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
15440 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
15441 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
15442 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15443 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15444 GNU_USER_DYNAMIC_LINKER.
15445 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
15446 GNU_USER_TARGET_OS_CPP_BUILTINS.
15447 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
15448 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15449 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15450 GNU_USER_DYNAMIC_LINKER.
15451 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
15452 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15453 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
15454 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15455 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15456 GNU_USER_DYNAMIC_LINKER.
15457 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
15458 GNU_USER_DYNAMIC_LINKERN32.
15459 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
15460 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
15461 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
15462 GNU_USER_DYNAMIC_LINKER32.
15463 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
15464 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15465 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15466 GNU_USER_DYNAMIC_LINKER.
15467 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
15468 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15469 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
15470 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 15471 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
15472 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
15473 GNU_USER_DYNAMIC_LINKER32.
15474 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
15475 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
15476 GNU_USER_DYNAMIC_LINKER.
15477 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
15478 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15479 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
15480 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
15481 GNU_USER_DYNAMIC_LINKER64.
15482 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
15483 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15484 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15485 GNU_USER_DYNAMIC_LINKER.
15486 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
15487 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15488 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15489 GNU_USER_DYNAMIC_LINKER.
15490 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
15491 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15492 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
15493 GNU_USER_DYNAMIC_LINKER32.
15494 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
15495 GNU_USER_DYNAMIC_LINKER64.
15496 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
15497 GNU_USER_DYNAMIC_LINKER64.
15498 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
15499 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15500 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
15501 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 15502 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 15503
e24609cf
JM
155042011-04-11 Joseph Myers <joseph@codesourcery.com>
15505
15506 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
15507 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
15508 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
15509 GNU_USER_DYNAMIC_LINKER.
15510 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
15511 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
15512 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
15513 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
15514 GNU_USER_DYNAMIC_LINKER64.
15515 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
15516 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
15517 GNU_USER_LINK_EMULATION.
15518 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
15519 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
15520 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
15521 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
15522 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
15523 CPP_SPEC, CC1_SPEC): Remove.
15524 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
15525 (GNU_USER_DYNAMIC_LINKER): Define.
15526 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
15527 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
15528 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
15529 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
15530 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
15531 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
15532 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
15533 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
15534 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
15535 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
15536 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
15537 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
15538 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
15539 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
15540 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
15541 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
15542 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
15543 GNU_USER_DYNAMIC_LINKER.
15544 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
15545 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
15546 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
15547 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
15548 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
15549 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
15550 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
15551 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
15552 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 15553 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 15554
b8ce4e94
KT
155552011-04-11 Kai Tietz <ktietz@redhat.com>
15556
15557 PR target/9601
15558 PR target/11772
15559 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
15560 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
15561 comment.
15562 (ix86_is_msabi_thiscall): Removed.
15563 (ix86_is_type_thiscall): Likewise.
15564 (ix86_get_callcvt): New function.
15565 (ix86_comp_type_attributes): Simplify check.
15566 (ix86_function_regparm): Use ix86_get_callcvt for calling
15567 convention attribute checks.
15568 (ix86_return_pops_args): Likewise.
15569 (ix86_static_chain): Likewise.
15570 (x86_this_parameter): Likewise.
15571 (x86_output_mi_thunk): Likewise.
15572 (ix86_function_type_abi): Optimize check for types without attributes.
15573 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
15574 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
15575 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
15576 by flag-values.
15577 (IX86_BASE_CALLCVT): Helper macro.
15578 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
15579 Use ix86_get_callcvt for calling convention attribute checks and avoid
15580 symbol-decoration for stdcall in TARGET_RTD case.
15581 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
15582 Likewise.
15583 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
15584 for declaration.
15585
798dd0ba
UB
155862011-04-11 Uros Bizjak <ubizjak@gmail.com>
15587
15588 * config/i386/sse.md (VI_128): New mode iterator.
15589 (VI12_128): Rename from SSEMODE12.
15590 (VI14_128): Rename from SSEMODE14.
15591 (VI124_128): New mode iterator.
15592 (VI24_128): Rename from SSEMODE248.
15593 (VI248_128): Rename from SSEMODE248.
15594 (SSEMODE124C8): Remove.
15595 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
15596 (*sse2_<plusminus_insn><mode>3): Merge with
15597 *avx_<plusminus_insn><mode>3.
15598 (*mulv8hi3): Merge with *avx_mulv8hi3.
15599 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
15600 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
15601 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
15602 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
15603 (ashr<mode>3): Merge with *avx_ashr<mode>3.
15604 (lshr<mode>3): Merge with *avx_lshr<mode>3.
15605 (ashl<mode>3): Merge with *avx_ashl<mode>3.
15606 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
15607 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
15608 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
15609 (*<smaxmin:code>v8hi3): Ditto.
15610 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
15611 (*<smaxmin:code>v16qi3): Ditto.
15612 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
15613 (*sse2_eq<mode>3): Ditto.
15614 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
15615 (*sse2_gt<mode>3): Ditto.
15616 (vcondv2di): Split out of vcond<mode>.
15617 (vconduv2di): Split out of vcondu<mode>.
15618
956011be
RG
156192011-04-11 Richard Guenther <rguenther@suse.de>
15620
15621 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
15622 before calling tree_low_cst.
15623
e6313a78
RG
156242011-04-11 Richard Guenther <rguenther@suse.de>
15625
15626 * stor-layout.c (layout_type): Compute all array index size operations
15627 in the original type.
15628 (initialize_sizetypes): Add comment.
15629 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
15630
e69d7376
JM
156312011-04-11 Joseph Myers <joseph@codesourcery.com>
15632
15633 * common.opt (Tbss=, Tdata=, Ttext=): New options.
15634
9f9ebcdf
MJ
156352011-04-11 Martin Jambor <mjambor@suse.cz>
15636
15637 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
15638 of cgraph_node, handle NULL return value.
15639 (cgraph_global_info): Likewise.
15640 (cgraph_rtl_info): Likewise.
15641 * tree-inline.c (estimate_num_insns): Likewise.
15642 * gimplify.c (unshare_body): Likewise.
15643 (unvisit_body): Likewise.
15644 (gimplify_body): Likewise.
15645 * predict.c (optimize_function_for_size_p): Likewise.
15646 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
15647 (call_may_clobber_ref_p_1): Likewise.
15648 * varasm.c (function_section_1): Likewise.
15649 (assemble_start_function): Likewise.
15650
581985d7
MJ
156512011-04-11 Martin Jambor <mjambor@suse.cz>
15652
15653 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
15654 of cgraph_node.
15655 * final.c (rest_of_clean_state): Likewise.
15656 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
15657 * passes.c (pass_init_dump_file): Likewise.
15658 (execute_all_ipa_transforms): Likewise.
15659 (function_called_by_processed_nodes_p): Likewise.
15660 * predict.c (maybe_hot_frequency_p): Likewise.
15661 (probably_never_executed_bb_p): Likewise.
15662 (compute_function_frequency): Likewise.
15663 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
15664 (unnest_nesting_tree_1): Likewise.
15665 (lower_nested_functions): Likewise.
15666 * tree-optimize.c (execute_fixup_cfg): Likewise.
15667 (tree_rest_of_compilation): Likewise.
15668 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
15669 * tree-sra.c (ipa_early_sra): Likewise.
15670 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
15671 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
15672 * ipa.c (record_cdtor_fn): Likewise.
15673 * ipa-inline.c (cgraph_early_inlining): Likewise.
15674 (compute_inline_parameters_for_current): Likewise.
15675 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
15676 * ipa-pure-const.c (local_pure_const): Likewise.
15677 * ipa-split.c (split_function): Likewise.
15678 (execute_split_functions): Likewise.
15679 * cgraphbuild.c (build_cgraph_edges): Likewise.
15680 (rebuild_cgraph_edges): Likewise.
15681 (cgraph_rebuild_references): Likewise.
15682 (remove_cgraph_callee_edges): Likewise.
15683 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
15684 (verify_cgraph_node): Likewise.
15685 (cgraph_analyze_functions): Likewise.
15686 (cgraph_preserve_function_body_p): Likewise.
15687 (save_inline_function_body): Likewise.
15688 (save_inline_function_body): Likewise.
15689 * tree-inline.c (copy_bb): Likewise.
15690 (optimize_inline_calls): Likewise.
15691
57dbdc5a
MJ
156922011-04-11 Martin Jambor <mjambor@suse.cz>
15693
15694 PR tree-optimization/48195
15695 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
15696 ipa_check_create_edge_args.
15697 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
15698 ipa_check_create_edge_args.
15699 * ipa-inline.c (inline_generate_summary): Do not call
15700 ipa_check_create_node_params and ipa_check_create_edge_args.
15701 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
15702 ipa_check_create_edge_args.
15703
d108e679
AS
157042011-04-09 Anatoly Sokolov <aesok@post.ru>
15705
15706 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
15707 instead of loop.
15708 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15709 * function.c (record_hard_reg_sets): Likewise.
15710 * ira.c (compute_regs_asm_clobbered): Likewise.
15711 * sched-deps.c (sched_analyze_1): Likewise.
15712 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
15713
3411bc59
XDL
157142011-04-09 Xinliang David Li <davidxl@google.com>
15715
15716 PR tree-optimization/PR48484
15717 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
15718 has_valid_pred lazily
15719
b365495a
DS
157202011-04-09 Duncan Sands <baldrick@free.fr>
15721
15722 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
15723
68bc509a
EB
157242011-04-08 Eric Botcazou <ebotcazou@adacore.com>
15725
15726 * combine.c (combine_validate_cost): Adjust comments. Set registered
15727 cost of I0 to zero at the end, if any.
15728
041e059f
XDL
157292011-04-08 Xinliang David Li <davidxl@google.com>
15730
68bc509a
EB
15731 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
15732 to insane profile data.
041e059f 15733
444b3995
XDL
157342011-04-08 Xinliang David Li <davidxl@google.com>
15735
15736 * ipa-cp.c (ipcp_update_profiling): Correct
15737 negative scale factor due to insane profile data.
15738
6a801cf2
XDL
157392011-04-08 Xinliang David Li <davidxl@google.com>
15740
15741 * final.c (dump_basic_block_info): New function.
15742 (final): Dump basic block.
15743 (final_scan_insn): Remove old dump.
15744
d5f3624e
SK
157452011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
15746
68bc509a
EB
15747 PR target/47829
15748 * config.gcc (i386-*-freebsd): Disable unwind table generation for
15749 crtbegin/crtend.
d5f3624e 15750
42821aff
MM
157512011-04-08 Michael Matz <matz@suse.de>
15752
15753 PR middle-end/48389
15754 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
15755 functions.
15756 (rebuild_jump_labels): Call rebuild_jump_labels_1.
15757 * rtl.h (rebuild_jump_labels_chain): Declare.
15758 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
15759 insns inserted on edges.
15760
ad7be009
JM
157612011-04-08 Joseph Myers <joseph@codesourcery.com>
15762
15763 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
15764 * config/arm/arm-arches.def: New.
15765 * config/arm/arm-opts.h: New.
15766 * config/arm/genopt.sh: New.
15767 * config/arm/arm-tables.opt: New (generated).
15768 * config/arm/arm.c (arm_handle_option, arm_target_help,
15769 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
15770 (all_architectures): Get most table contents from arm-arches.def.
15771 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
15772 arm_selected_tune here.
15773 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
15774 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
15775 (march=, mcpu=, mtune=): Use Enum and Var.
15776 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
15777 (arm.o): Update dependencies.
ecbb6fb7 15778
42821aff 157792011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
15780
15781 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
15782 of header_file.
15783 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
15784 (write_typed_alloc_defns): Likewise.
15785 (main): Calls write_typed_alloc_defns with output_header.
15786
8d189b3f
VM
157872011-04-08 Vladimir Makarov <vmakarov@redhat.com>
15788
68bc509a 15789 PR inline-asm/48435
8d189b3f
VM
15790 * ira-color.c (setup_profitable_hard_regs): Add comments.
15791 Don't take prohibited hard regs into account.
15792 (setup_conflict_profitable_regs): Rename to
15793 get_conflict_profitable_regs.
15794 (check_hard_reg_p): Check prohibited hard regs.
15795
44f370bf
NF
157962011-04-08 Nathan Froyd <froydnj@codesourcery.com>
15797
15798 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
15799 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
15800 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
15801
483d7ad3
JDA
158022011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15803
15804 PR target/48366
15805 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 15806 move from floating point to shift amount register.
483d7ad3
JDA
15807 (emit_move_sequence): Remove secondary reload support for floating
15808 point to shift amount amount register copies.
15809 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
15810 amount register copies.
15811 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
15812 register, return false if mode isn't a scalar integer mode.
15813 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
15814
97e03fa1
RG
158152011-04-08 Richard Guenther <rguenther@suse.de>
15816
15817 * gimple.c (gimple_call_flags): Remove kludge.
15818
9d40778b
AM
158192011-04-08 Alexander Monakov <amonakov@ispras.ru>
15820
15821 * sel-sched.c (sel_region_init): Move call to
15822 sel_setup_region_sched_flags after setup_current_loop_nest.
15823
19ac7892
AB
158242011-04-08 Andrey Belevantsev <abel@ispras.ru>
15825
15826 PR rtl-optimization/48272
19ac7892
AB
15827 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
15828 init_insn_reg_pressure_info. Adjust a caller.
15829 * sched-int.h (init_insn_reg_pressure_info): Declare.
15830 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
15831 when sched-pressure is enabled.
15832
0f8c63cc
RG
158332011-04-08 Richard Guenther <rguenther@suse.de>
15834
15835 * gimple.c (gimple_set_modified): Do not queue calls to
15836 MODIFIED_NORETURN_CALLS here ...
15837 * tree-ssa-operands.c (update_stmt_operands): ... but here.
15838
5e5a425e
RG
158392011-04-08 Richard Guenther <rguenther@suse.de>
15840
15841 PR lto/48467
15842 * toplev.c (lang_dependent_init): Do not open asm_out_file
15843 in WPA mode, nor perform debug machinery initialization.
15844 (finalize): Do not unlink asm_out_file in WPA mode.
15845
9bfc434b
RG
158462011-04-08 Richard Guenther <rguenther@suse.de>
15847
15848 * gimple.h (gimple_call_fntype): New function.
15849 (gimple_call_return_type): Use it.
15850 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
15851 * gimple-low.c (gimple_check_call_args): Likewise.
15852 * gimple.c (gimple_call_flags): Likewise.
15853 (gimple_call_arg_flags): Likewise.
15854 (gimple_call_return_flags): Likewise.
15855 * tree-cfg.c (verify_gimple_call): Likewise.
15856 (do_warn_unused_result): Likewise.
15857 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
15858 * value-prof.c (gimple_ic_transform): Fix fndecl check.
15859
7c1f0b40
DM
158602011-04-08 Dmitry Melnik <dm@ispras.ru>
15861
15862 PR rtl-optimization/48235
15863 * sel-sched.c (code_motion_process_successors): Recompute the last
15864 insn in basic block if control flow changed.
15865 (code_motion_path_driver): Ditto. Recompute the first insn as well.
15866 Update condition for ilist_remove.
15867
ea4d630f
AM
158682011-04-08 Alexander Monakov <amonakov@ispras.ru>
15869
15870 PR rtl-optimization/48302
15871 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
15872 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
15873 it to record added preheader blocks.
15874 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
15875 on to sel_add_loop_preheaders.
15876 (sel_region_init): Move call to setup_current_loop_nest after
15877 sel_init_bbs.
15878
07643d76
AM
158792011-04-08 Alexander Monakov <amonakov@ispras.ru>
15880
15881 PR target/48273
15882 * cfgloop.h (loop_has_exit_edges): New helper.
15883 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
15884 non-clonable.
15885 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
15886 that have no exit edges.
15887
1f3b2b4e
AM
158882011-04-08 Alexander Monakov <amonakov@ispras.ru>
15889
15890 PR rtl-optimization/48442
15891 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
15892 all callers. Adjust assert.
15893
554f1948
JJ
158942011-04-08 Jakub Jelinek <jakub@redhat.com>
15895
15896 PR tree-optimization/48377
15897 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
15898 is_packed to true even for types with smaller TYPE_ALIGN than
15899 TYPE_SIZE.
15900
ddf72388
RG
159012011-04-08 Richard Guenther <rguenther@suse.de>
15902
15903 PR bootstrap/48513
15904 * doc/tm.texi: Re-generate.
15905
0c27e2d8
WG
159062011-04-08 Wei Guozhi <carrot@google.com>
15907
15908 PR target/47855
15909 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
15910 * config/arm/arm.c (arm_attr_length_push_multi): New function.
15911 * config/arm/arm.md (*push_multi): Change the length computation to
15912 call a C function.
15913
07c5f94e
AS
159142011-04-08 Anatoly Sokolov <aesok@post.ru>
15915
15916 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
15917 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
15918 * doc/tm.texi: Regenerate.
15919 * system.h (ASM_OUTPUT_BSS): Poison.
15920 * varasm.c (asm_output_bss): Remove function.
15921 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 15922
07c5f94e
AS
15923 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
15924 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
15925 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
15926 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15927 Likewise.
15928 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15929 Likewise.
15930 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15931 Likewise.
15932 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
15933
5f2c36e1
JM
159342011-04-07 Joseph Myers <joseph@codesourcery.com>
15935
15936 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
15937 EnumValue lines.
15938
39e7722b
JM
159392011-04-07 Joseph Myers <joseph@codesourcery.com>
15940
15941 * config/m68k/m68k.c (m68k_handle_option): Don't handle
15942 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
15943 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
15944 OPT_mcpu32.
15945 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
15946 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
15947 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
15948 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
15949 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
15950 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
15951 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
15952 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
15953 options. Don't map other m68k options manually. Don't handle
15954 old-style options as canonical.
15955 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 15956 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 15957
cf103ca4
EB
159582011-04-07 Eric Botcazou <ebotcazou@adacore.com>
15959
15960 * basic-block.h (force_nonfallthru): Move to...
15961 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
15962 (force_nonfallthru): ...here.
15963 * cfghooks.c (force_nonfallthru): New function.
15964 * cfgrtl.c (force_nonfallthru): Rename into...
15965 (rtl_force_nonfallthru): ...this.
15966 (commit_one_edge_insertion): Do not set AUX field.
15967 (commit_edge_insertions): Do not discover new basic blocks.
15968 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
15969 (cfg_layout_rtl_cfg_hooks): Likewise.
15970 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
15971 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
15972 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
15973
14431f58
AS
159742011-04-07 Anatoly Sokolov <aesok@post.ru>
15975
15976 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15977 Remove macros.
15978
3729983c
UB
159792011-04-07 Uros Bizjak <ubizjak@gmail.com>
15980
15981 * config/i386/sse.md: Update copyright year.
15982 (avxcvtvecmode): Remove.
15983 (sse_movhlps): Merge with *avx_movhlps.
15984 (sse_movlhps): Merge with *avx_movlhps.
15985 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
15986 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
15987 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
15988 (sse_loadhps): Merge with *avx_loadhps.
15989 (sse_storelps): Merge with *avx_storelps.
15990 (sse_loadlps): Merge with *avx_loadlps.
15991 (sse_movss): Merge with *avx_movss.
15992 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
15993 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
15994 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
15995 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
15996 (vec_set<mode>_0): Ditto.
15997 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
15998 (sse4_1_insertps): Merge with *avx_insertps.
15999 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
16000 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
16001 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
16002 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
16003 (sse2_storehpd): Merge with *avx_storehpd.
16004 (sse2_loadhpd): Merge with *avx_loadhpd.
16005 (sse2_loadlpd): Merge with *avx_loadlpd.
16006 (sse2_movsd): Merge with *avx_movsd.
16007 (*vec_concatv2df): Merge with *vec_concatv2df.
16008
4e626909
JJ
160092011-04-07 Jakub Jelinek <jakub@redhat.com>
16010
16011 PR debug/48343
16012 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 16013 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
16014 (try_combine): Add last_combined_insn parameter, pass it instead of
16015 i3 to propagate_for_debug.
16016
3729983c 160172011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
16018
16019 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
16020 to handle MDR <-> data register transfers.
16021 (movhi_internal): Likewise.
16022
20c03367
AM
160232011-04-07 Alan Modra <amodra@gmail.com>
16024
16025 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
16026 previous stack info.
16027
bf22920b
TV
160282011-04-07 Tom de Vries <tom@codesourcery.com>
16029
16030 PR target/43920
16031 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
16032 flow_find_cross_jump. Swap variables to implement backward replacement.
16033 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
16034
823918ae
TV
160352011-04-07 Tom de Vries <tom@codesourcery.com>
16036
16037 PR target/43920
16038 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
16039 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
16040 and bb2.
16041 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
16042 src1 or src2. Redirect edges to the last basic block. Update
16043 frequency and count on multiple basic blocks in case of fallthru.
823918ae 16044
472c95f5
TV
160452011-04-07 Tom de Vries <tom@codesourcery.com>
16046
16047 PR target/43920
16048 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
16049 function.
3729983c
UB
16050 (old_insns_match_p): Change return type. Replace return false/true
16051 with return dir_none/dir_both. Use can_replace_by.
16052 (flow_find_cross_jump): Add dir_p parameter. Init replacement
16053 direction from dir_p. Register replacement direction in dir, last_dir
16054 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
16055 merge_dir. Return replacement direction in dir_p.
16056 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
16057 return type of old_insns_match_p.
16058 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
16059 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
16060 flow_find_cross_jump.
16061 * basic-block.h (enum replace_direction): New type.
16062 (flow_find_cross_jump): Add parameter to declaration.
16063
a95d4000
UB
160642011-04-06 Uros Bizjak <ubizjak@gmail.com>
16065
16066 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
16067 (AVXMODEDCVTPS2DQ): Ditto.
16068 (VEC_FLOAT_MODE): Ditto.
16069 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
16070 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
16071 (<any_logic:code><mode>3): Use VF mode iterator.
16072 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
16073 Use VF mode iterator.
16074 (copysign<mode>3): Use VF mode iterator.
16075 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
16076 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
16077 (*<any_logic:code><MODEF:mode>3): Merge with
16078 *avx_<any_logic:code><MODEF:mode>3.
16079 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
16080 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
16081 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
16082 (avx_cvtdq2ps<avxmodesuffix>): Remove.
16083 (sse2_cvtdq2ps): Use %v modifier.
16084 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
16085 (avx_cvtps2dq<avxmodesuffix>): Remove.
16086 (sse2_cvtps2dq): Use %v modifier.
16087 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
16088 (avx_cvttps2dq<avxmodesuffix>): Remove.
16089 (sse2_cvttps2dq): Use %v modifier.
16090 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
16091 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
16092 (sse2_cvtsd2siq): Fix insn template.
16093 (sse2_cvtsd2siq_2): Ditto.
16094 (sse2_cvttsd2siq): Ditto.
16095 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
16096 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
16097
ad01c437
JM
160982011-04-06 Joseph Myers <joseph@codesourcery.com>
16099
16100 * gcov-io.c: Use GCC Runtime Library Exception.
16101
fe846284
JJ
161022011-04-06 Jakub Jelinek <jakub@redhat.com>
16103
16104 PR debug/48466
16105 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
16106 as base_reg whatever register reg has been eliminated to, instead
16107 of hardcoding STACK_POINTER_REGNUM.
16108
acce4e77
JM
161092011-04-06 Joseph Myers <joseph@codesourcery.com>
16110
16111 * doc/tm.texi.in: Document C target hooks as separate from general
16112 target hooks.
16113 * doc/tm.texi: Regenerate.
16114 * genhooks.c (struct hook_desc): Add docname field.
16115 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
16116 docname field.
16117 (hook_array): Include c-target.def.
16118 (emit_documentation): Use docname field in output.
16119 (emit_init_macros): Take docname argument. Only emit definitions
16120 for hooks matching docname.
16121 (main): Expect additional arguments in all cases. Pass argument
16122 to emit_init_macros.
16123 * target.def: Move initial macro definitions and comments to
16124 target-hooks-macros.h.
16125 (gcc_targetcm): Move to c-family/c-target.def.
16126 * target.h (targetcm): Move declaration to c-family/c-target.h.
16127 * targhooks.c (default_handle_c_option): Move to
16128 c-family/c-opts.c.
16129 * targhooks.h (default_handle_c_option): Move declaration to
16130 c-family/c-common.h.
16131 * target-hooks-macros.h: New file.
16132 * config.gcc (target_has_targetcm): Define and use to add to
16133 c_target_objs and cxx_target_objs.
16134 * config/default-c.c: New file.
16135 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
16136 of target.h and target-def.h.
16137 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
16138 (darwin_objc_construct_string, darwin_cfstring_ref_p,
16139 darwin_check_cfstring_format_arg): Make static.
16140 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
16141 TARGET_STRING_OBJECT_REF_TYPE_P,
16142 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
16143 * config/darwin-protos.h (darwin_objc_construct_string,
16144 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
16145 declare.
16146 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
16147 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 16148 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
16149 * config/t-darwin (darwin-c.o): Update dependencies.
16150 * system.h (TARGET_HAS_TARGETCM): Poison.
16151 * Makefile.in (TARGET_H): Update.
16152 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
16153 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
16154 (default-c.o): New target.
16155 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 16156 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
16157 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
16158 c-target.def.
16159 (build/genhooks.o): Update dependencies.
16160
275b4baa 161612011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 16162
275b4baa
RG
16163 * ipa-inline.c (enum inlining_mode): Remove.
16164 (cgraph_flatten): Use some other token.
16165 (cgraph_edge_early_inlinable_p): New function, split out from ...
16166 (cgraph_perform_always_inlining): New function, split out from ...
16167 (cgraph_decide_inlining_incrementally): ... here.
16168 (cgraph_mark_inline_edge): Adjust.
16169 (cgraph_early_inlining): Re-structure.
16170 (pass_early_inline): Require SSA form.
16171
f15b8bdf 161722011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
16173 Julian Brown <julian@codesourcery.com>
16174 Mark Shinwell <shinwell@codesourcery.com>
16175
16176 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
16177 LO_REGS only for Thumb-1.
16178 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
16179 be used in short instructions when optimising for size on Thumb-2.
16180
516426da
EB
161812011-04-06 Eric Botcazou <ebotcazou@adacore.com>
16182
16183 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
16184 associated with user returns to be preserved.
16185
96621ebf
TG
161862011-04-06 Tristan Gingold <gingold@adacore.com>
16187
f15b8bdf
EB
16188 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
16189 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
16190 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
16191 if XCOFF_DEBUGGING_INFO.
16192
07c0852e
UB
161932011-04-06 Uros Bizjak <ubizjak@gmail.com>
16194
16195 * config/i386/i386.md (attribute isa): New.
16196 (attribute enabled): New.
16197 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
16198 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
16199 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
16200 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
16201 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
16202 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16203 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
16204 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
16205
16206 * config/i386/sse.md (VF): New mode iterator.
16207 (VF1): Ditto.
16208 (VF2): Ditto.
16209 (VF_128): Ditto.
16210 (SSEMODEF4): Remove.
16211 (attribute sse): Handle V8SF and V4DF modes.
16212 (<absneg:code><mode>2): Use VF mode iterator.
16213 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
16214 mode iterator.
16215 (<plusminus_insn><mode>3): Use VF mode iterator.
16216 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
16217 Use VF mode iterator.
16218 (<sse>_vm<plusminus_insn><mode>3): Merge with
16219 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
16220 (mul<mode>3): Use VF mode iterator.
16221 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
16222 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
16223 mode iterator.
16224 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
16225 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
16226 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
16227 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
16228 mode iterator.
16229 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
16230 Use VF1 mode iterator.
16231 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
16232 (sqrt<VF2:mode>2): New expander.
16233 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
16234 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
16235 and sqrtv2df2. Use VF mode iterator.
16236 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
16237 mode iterator.
16238 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
16239 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
16240 Use VF1 mode iterator.
16241 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
16242 (<smaxmin:code><mode>3): Use VF mode iterator.
16243 (*<smaxmin:code><mode>3_finite): Merge with
16244 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
16245 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16246 (<sse>_vm<smaxmin:code><mode>2): Merge with
16247 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
16248 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
16249 mode iterator.
16250 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
16251 mode iterator.
16252 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
16253 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
16254 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
16255 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
16256 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
16257 VF mode iterator.
16258 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
16259 Use VF_128 mode iterator.
16260 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
16261 mode iterator.
16262 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
16263 VF_128 mode iterator.
16264 (vcond<mode>): Use VF mode iterator.
16265 * config/i386/predicates.md (sse_comparison_operator): Merge with
16266 avx_comparison_float_operator. Do not declare as special_predicate.
16267 * config/i386/i386.c (struct builtin_description): Update for renamed
16268 compare patterns.
16269 (ix86_expand_args_builtin): Ditto.
16270 (ix86_expand_sse_compare_mask): Ditto.
16271
ff5d142c
RG
162722011-04-06 Richard Guenther <rguenther@suse.de>
16273
16274 * tree-inline.c (estimate_num_insns): For calls simply account
16275 for all passed arguments and a used return value.
16276
d7d1d041 162772011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 16278
d7d1d041
RG
16279 PR tree-optimization/47663
16280 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
16281 call_stmt_time fields.
16282 (cgraph_edge_inlinable_p): Declare.
16283 (cgraph_edge_recursive_p): New inline function.
16284 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
16285 (cgraph_clone_edge): Copy it.
16286 * ipa-inline.c (cgraph_estimate_edge_time): New function.
16287 Account for call stmt time.
16288 (cgraph_estimate_time_after_inlining): Take edge argument.
16289 (cgraph_estimate_edge_growth): Account call stmt size.
16290 (cgraph_estimate_size_after_inlining): Take edge argument.
16291 (cgraph_mark_inline_edge): Adjust.
16292 (cgraph_check_inline_limits): Likewise.
16293 (cgraph_recursive_inlining_p): Remove.
16294 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
16295 (cgraph_decide_recursive_inlining): Take edge argument and
16296 adjust.
16297 (cgraph_decide_inlining_of_small_functions): Do not avoid
16298 diags for recursive inlining here.
16299 (cgraph_flatten): Adjust.
16300 (cgraph_decide_inlining_incrementally): Likewise.
16301 (estimate_function_body_sizes): Remove call cost handling.
16302 (compute_inline_parameters): Initialize caller edge call costs.
16303 (cgraph_estimate_edge_growth): New function.
16304 (cgraph_estimate_growth): Use it.
16305 (cgraph_edge_badness): Likewise.
16306 (cgraph_check_inline_limits): Take an edge argument.
16307 (cgraph_decide_inlining_of_small_functions): Adjust.
16308 (cgraph_decide_inlining): Likewise.
16309 * tree-inline.c (estimate_num_insns): Only account for call
16310 return value if it is used.
16311 (expand_call_inline): Avoid diagnostics on recursive inline
16312 functions here.
16313 * lto-cgraph.c (lto_output_edge): Output edge call costs.
16314 (input_edge): Input edge call costs.
16315
2feb95f7
RO
163162011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16317
16318 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
16319
26fbd9c2
JW
163202011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
16321
16322 * doc/invoke.texi (Spec Files): Fix typo.
16323
694dc0ca
EB
163242011-04-06 Eric Botcazou <ebotcazou@adacore.com>
16325
16326 * profile.c (branch_prob): Move declaration of local variable. Remove
16327 obsolete ??? comment. Expand the location explicitly instead of using
16328 the LOCATION_FILE and LOCATION_LINE macros.
16329
4925d0d5
WG
163302011-04-06 Wei Guozhi <carrot@google.com>
16331
16332 PR target/47855
16333 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
16334 (arm_cond_branch): Likewise.
16335 (arm_cond_branch_reversed): Likewise.
16336 (arm_jump): Likewise.
16337 (push_multi): Likewise.
16338 * config/arm/constraints.md (Py): New constraint.
16339
f55dfa2f
NF
163402011-04-05 Nathan Froyd <froydnj@codesourcery.com>
16341
16342 PR bootstrap/48471
16343 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
16344 Move these...
16345 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
16346 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
16347 #ifdef DBX_DEBUGGING_INFO.
16348
fca96842
BS
163492011-04-05 Bernd Schmidt <bernds@codesourcery.com>
16350
16351 PR bootstrap/48403
16352 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
16353 if old and new states differ.
16354
30b83e38
JM
163552011-04-05 Joseph Myers <joseph@codesourcery.com>
16356
16357 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
16358 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
16359 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
16360 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
16361 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
16362 mcfv4e): Use Alias.
16363 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
16364 ColdFire options to -mcpu= options.
16365
277a9aa5
JL
163662011-04-05 Jeff Law <law@redhat.com>
16367
16368 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
16369 check if BB is a successor of LOOP->header and return
16370 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
16371
c1e2610e
SB
163722011-04-05 Steven Bosscher <steven@gcc.gnu.org>
16373
16374 * cprop.c (struct reg_use): Remove.
16375 (reg_use_table): Make an array of RTX.
16376 (find_used_regs, constprop_register, local_cprop_pass,
16377 bypass_block): Simplify users of reg_use_table.
16378 (cprop_insn): Likewise. Iterate if copy propagation succeeded
16379 on one of the uses found by find_used_regs.
16380
e532f586
NF
163812011-04-05 Nathan Froyd <froydnj@codesourcery.com>
16382
16383 PR bootstrap/48469
16384 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
16385 declaration.
16386
3fb7c055
NF
163872011-04-05 Nathan Froyd <froydnj@codesourcery.com>
16388
16389 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
16390 as an rtx.
16391 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
16392
b71b43d9
SB
163932011-04-05 Steven Bosscher <steven@gcc.gnu.org>
16394
16395 PR middle-end/48441
16396 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
16397
b405b274
NF
163982011-04-05 Nathan Froyd <froydnj@codesourcery.com>
16399
16400 * combine.c: Include obstack.h.
16401 (struct insn_link): Define.
16402 (uid_log_links): Adjust type.
16403 (FOR_EACH_LOG_LINK): New macro.
16404 (insn_link_obstack): Declare.
16405 (alloc_insn_link): Define.
16406 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
16407 type of link variables.
16408 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
16409 (try_combine, record_promoted_values, distribute_notes): Likewise.
16410 (distribute_links): Likewise. Tweak prototype.
16411 (clear_log_links): Delete.
16412 (adjust_for_new_dest): Call alloc_insn_link.
16413 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
16414
6409abe3
NF
164152011-04-05 Nathan Froyd <froydnj@codesourcery.com>
16416
16417 * gcse.c (modify_mem_list): Convert to an array of VECs.
16418 (canon_modify_mem_list, compute_transp): Tweak formatting.
16419 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
16420 (load_killed_in_block_p): Likewise.
16421 (record_last_mem_set_info): Likewise.
16422 (clear_modify_mem_tables): Likewise.
16423
170d8157
TV
164242011-04-05 Tom de Vries <tom@codesourcery.com>
16425
16426 PR middle-end/48461
16427 * function.c (emit_use_return_register_into_block): Only define if
16428 HAVE_return.
16429
c5911a55
EB
164302011-04-05 Eric Botcazou <ebotcazou@adacore.com>
16431
16432 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
16433
abd016e6
JM
164342011-04-05 Joseph Myers <joseph@codesourcery.com>
16435
16436 * config/rx/rx-opts.h: New.
16437 * config/rx/rx.c (rx_cpu_type): Remove.
16438 (rx_handle_option): Don't assert that global structures are in
16439 use. Access variables via opts pointer. Defer most handling of
16440 OPT_mint_register_. Use error_at.
16441 (rx_option_override): Handle deferred OPT_mint_register_ here.
16442 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
16443 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
16444 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
16445 (rx_cpu_types): New Enum and EnumValue entries.
16446 (mint-register=): Use Defer and use Var accordingly.
16447
1ed13f83
NF
164482011-04-05 Nathan Froyd <froydnj@codesourcery.com>
16449
16450 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
16451 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
16452 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
16453 Move these...
16454 (debug_free_queue, debug_nesting, symbol_queue_index):
16455 ...and these...
16456 * dbxout.c: ...to here. Make static.
16457
6ce1edcf
NF
164582011-04-05 Nathan Froyd <froydnj@codesourcery.com>
16459
16460 * gcse.c (modify_pair): Define. Define a VEC of it.
16461 (canon_modify_mem_list): Convert to an array of VECs.
16462 (free_insn_expr_list_list): Delete.
16463 (clear_modify_mem_tables): Call VEC_free instead.
16464 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
16465 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
16466 (canon_list_insert, compute_transp): Likewise.
16467
c201ac94
TV
164682011-04-05 Tom de Vries <tom@codesourcery.com>
16469
16470 PR target/43920
16471 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
16472 for size.
16473
4c029f40
TV
164742011-04-05 Tom de Vries <tom@codesourcery.com>
16475
16476 PR target/43920
16477 * function.c (emit_use_return_register_into_block): New function.
16478 (thread_prologue_and_epilogue_insns): Use
16479 emit_use_return_register_into_block.
16480
2a562b0a
TV
164812011-04-05 Tom de Vries <tom@codesourcery.com>
16482
16483 PR target/43920
16484 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
16485 insn.
16486
0248bceb
TV
164872011-04-05 Tom de Vries <tom@codesourcery.com>
16488
16489 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
16490
ffa94123
YZ
164912011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
16492
798dd0ba
UB
16493 * config/arm/arm.md (define_constants for unspec): Replace with
16494 define_c_enum.
16495 (define_constants for unspecv): Replace with define_c_enum.
16496 * config/arm/neon.md (define_constants for unspec): Replace with
16497 define_c_enum.
ffa94123 16498
3b8f9b46
RH
164992011-04-04 Richard Henderson <rth@redhat.com>
16500
720cf80f 16501 PR bootstrap/48400
3b8f9b46
RH
16502 * dwarf2out.c (output_line_info): Always emit line info from
16503 at least one section.
16504 (dwarf2out_init): Create text_section_line_info here ...
16505 (set_cur_line_info_table): ... not here.
16506
720cf80f 165072011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
16508
16509 PR target/48380
16510 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 16511 not called.
e5b0e1ca 16512
720cf80f 16513 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 16514
196565d4
SB
165152011-04-04 Steven Bosscher <steven@gcc.gnu.org>
16516
b77f9eab
SB
16517 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
16518 (expr_equiv_p): Remove.
16519 (insert_set_in_table): Look at <dest, src> pair instead of expr.
16520 (hash_scan_set): Update call to insert_set_in_table.
16521 (dump_hash_table): Dump <dest, src> pair.
16522 (lookup_set): Simplify. Lookup <dest, src> pair.
16523 (compute_transp): Remove, fold heavily simplified code into...
16524 (compute_local_properties): ...here. Expect COMP and TRANSP
16525 unconditionally.
16526 (find_avail_set): Take set directly from struct expr.
16527 (find_bypass-set): Likewise.
16528 (bypass_block): Likewise.
16529 (cprop_insn): Likewise. Remove redundant INSN_P test.
16530
384d7a55
SB
16531 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
16532 checks on form of COND from find_implicit_sets to here.
16533 (find_implicit_sets): Cleanup control flow. Split critical edges
16534 if it exposes implicit sets. Allocate/resize implicit_sets as
16535 necessary.
16536 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
16537 changed something. Run df_analyze after find_implicit_sets if any
16538 edges were split. Do not allocate implicit_sets here.
16539
3084ce69
SB
16540 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
16541 (gcse_obstack): Renamed to cprop_obstack.
16542 (GNEW, GNEWVEC, GNEWVAR): Remove.
16543 (gmalloc): Remove.
16544 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
16545 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
16546 (gcse_alloc): Likewise, and rename to cprop_alloc.
16547 (alloc_gcse_men, free_gcse_mem): Remove.
16548 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
16549 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
16550 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
16551
196565d4
SB
16552 * cprop.c (oprs_not_set_p): Remove.
16553 (mark_set, mark_clobber): Remove.
16554 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
16555 (reg_not_set_p): New function.
16556 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
16557 (cprop_insn): Likewise.
16558 (cprop_jump): Use FOR_EACH_EDGE.
16559
9b69cf83
BS
165602011-04-04 Bernd Schmidt <bernds@codesourcery.com>
16561
16562 PR bootstrap/48403
16563 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
16564 (rank_for_schedule): Use scheduled_insns vector instead of
16565 last_scheduled_insn.
16566 (ok_for_early_queue_removal): Likewise.
16567 (queue_to_ready): Search forward in nonscheduled_insns_begin if
16568 we have a dbg_cnt.
16569 (choose_ready): Likewise.
16570 (commit_schedule): Use VEC_iterate.
16571 (schedule_block): Initialize nonscheduled_insns_begin. If we have
16572 a dbg_cnt, use it and ensure the first insn is in the ready list.
16573 (haifa_sched_init): Allocate scheduled_insns.
16574 (sched_extend_ready_list): Don't allocate it; reserve space.
16575 (haifa_sched_finish): Free it.
16576
24f48c2f
JM
165772011-04-04 Joseph Myers <joseph@codesourcery.com>
16578
16579 * optc-gen.awk: Always remove type from Variable entry before
16580 recording in var_seen.
16581
8effe856
EB
165822011-04-04 Eric Botcazou <ebotcazou@adacore.com>
16583
16584 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
16585 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
16586 call to tidy_fallthru_edges.
16587
413519ae
JM
165882011-04-04 Joseph Myers <joseph@codesourcery.com>
16589
16590 * doc/options.texi (ToLower): Document.
3729983c 16591 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
16592 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
16593 * opts.h (cl_option): Add cl_tolower field.
16594 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
16595 arguments with lowercase strings.
16596 * config/rx/rx.opt (mcpu=): Add ToLower.
16597 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
16598 argument.
16599
7d34a1b0
RS
166002011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
16601
16602 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
16603
c30e7434
RS
166042011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
16605
16606 * config/vax/vax.c: Include reload.h.
16607
112a861d
AS
166082011-04-04 Anatoly Sokolov <aesok@post.ru>
16609
16610 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
16611 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16612 (sparc_preferred_reload_class): New function.
16613
e8c6bb74
JJ
166142011-04-04 Jakub Jelinek <jakub@redhat.com>
16615
2aeaa366 16616 PR debug/48401
e8c6bb74
JJ
16617 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
16618 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
16619
2c081caf
NF
166202011-04-03 Nathan Froyd <froydnj@codesourcery.com>
16621
16622 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
16623 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
16624
53802f27
AS
166252011-04-03 Anatoly Sokolov <aesok@post.ru>
16626
16627 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
16628 (ASM_OUTPUT_ALIGNED_BSS): Define.
16629
e89964e3
MM
166302011-04-03 Michael Matz <matz@suse.de>
16631
16632 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
16633 and next_slot members.
16634 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
16635 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
16636 (lto_streamer_cache_append): Declare.
16637 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
16638 unsigned index, remove offset parameter, ensure that we append
16639 or update existing entries.
16640 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
16641 parameter, update next_slot for append.
16642 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
16643 parameter.
16644 (lto_streamer_cache_insert_at): Likewise.
16645 (lto_streamer_cache_append): New function.
16646 (lto_streamer_cache_lookup): Use unsigned index.
16647 (lto_streamer_cache_get): Likewise.
16648 (lto_record_common_node): Don't test tree_node_can_be_shared.
16649 (preload_common_node): Adjust call to lto_streamer_cache_insert.
16650 (lto_streamer_cache_delete): Don't free offsets member.
16651 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
16652 (lto_output_string_with_length): Use lto_output_data_stream.
16653 (lto_output_tree_header): Remove ix parameter, don't write it.
16654 (lto_output_builtin_tree): Likewise.
16655 (lto_write_tree): Adjust callers to above, don't track and write
16656 offset, write unsigned index.
16657 (output_unreferenced_globals): Don't emit all global vars.
16658 (write_global_references): Use unsigned indices.
16659 (lto_output_decl_state_refs): Likewise.
16660 (write_symbol): Likewise.
16661 * lto-streamer-in.c (lto_input_chain): Move earlier.
16662 (input_function): Use unsigned index.
16663 (input_alias_pairs): Don't read and then ignore all global vars.
16664 (lto_materialize_tree): Remove ix_p parameter, don't read index,
16665 don't pass it back, use lto_streamer_cache_append.
16666 (lto_register_var_decl_in_symtab): Use unsigned index.
16667 (lto_register_function_decl_in_symtab): Likewise.
16668 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
16669 index.
16670 (lto_get_builtin_tree): Don't read index, use
16671 lto_streamer_cache_append.
16672 (lto_read_tree): Adjust call to lto_materialize_tree.
16673
16674 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
16675 don't use function calls in arguments to MIN.
16676
16677 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
16678 twice.
16679
16680 * gimple.c (gimple_type_leader_entry): Mark deletable.
16681
b9a5b5b2
AM
166822011-04-03 Alan Modra <amodra@gmail.com>
16683
16684 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
16685
ac6a641b
MM
166862011-04-03 Michael Matz <matz@suse.de>
16687
16688 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
16689 an integer.
16690 * tree.h (tree_decl_non_common.vindex): Adjust comment.
16691
0038d4e0
MM
166922011-04-03 Michael Matz <matz@suse.de>
16693
e9c18386 16694 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
16695 * gimple-fold.c (canonicalize_constructor_val): Accept being called
16696 without function context.
16697 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
16698 current_function_decl and cfun.
16699
91f2fae8
MM
167002011-04-03 Michael Matz <matz@suse.de>
16701
16702 * tree.c (decl_init_priority_insert): Don't create entry for
16703 default priority.
16704 (decl_fini_priority_insert): Ditto.
16705 (fields_compatible_p, find_compatible_field): Remove.
16706 * tree.h (fields_compatible_p, find_compatible_field): Remove.
16707 * gimple.c (gimple_compare_field_offset): Adjust block comment.
16708
da29e070
EB
167092011-04-03 Eric Botcazou <ebotcazou@adacore.com>
16710
16711 * combine.c (try_combine): Remove useless local variable.
16712
4979c28b 167132011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 16714 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
16715
16716 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
16717 non-variable offsets and compare the remaining bases of the two
16718 accesses instead of looking for exact same data-ref.
16719
b4ddcaee
KT
167202011-04-02 Kai Tietz <ktietz@redhat.com>
16721
f90298e1
KT
16722 PR target/48416
16723 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
16724
b4ddcaee
KT
16725 * i386.c (ix86_is_msabi_thiscall): New helper function.
16726 (ix86_is_type_thiscall): New helper function.
16727 (ix86_comp_type_attributes): Handle thiscall for method-functions
16728 special.
16729 (init_cumulative_args): Likewise.
16730 (find_drap_reg): Likewise.
16731 (ix86_static_chain): Likewise.
16732 (x86_this_parameter): Likewise.
16733 (x86_output_mi_thunk): Likewise.
16734
2a9d769a 167352011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
16736 Nicolas Setton <setton@adacore.com>
16737 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
16738
16739 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
16740 (add_gnat_descriptive_type_attribute): New function.
16741 (gen_array_type_die): Call it.
16742 (gen_enumeration_type_die): Likewise.
16743 (gen_struct_or_union_type_die): Likewise.
16744 (modified_type_die): Likewise.
16745 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
16746 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
16747 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
16748
15a03a11
JJ
167492011-04-01 Jakub Jelinek <jakub@redhat.com>
16750
16751 PR bootstrap/48148
16752 * dwarf2out.c (resolve_addr): Don't call force_decl_die
16753 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
16754
16755 Revert:
16756 2011-03-17 Richard Guenther <rguenther@suse.de>
16757
16758 PR bootstrap/48148
16759 * lto-cgraph.c (input_overwrite_node): Clear the abstract
16760 origin for decls in other ltrans units.
16761 (input_varpool_node): Likewise.
16762
19228b93
JJ
167632011-04-01 Jakub Jelinek <jakub@redhat.com>
16764
16765 PR middle-end/48335
16766 * expr.c (expand_assignment): Handle all possibilities
16767 if TO_RTX is CONCAT.
e9c18386 16768 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
16769 (store_split_bit_field): If SUBREG_REG (op0) or
16770 op0 itself has smaller mode than word, return it
16771 for offset 0 and const0_rtx for out-of-bounds stores.
16772 If word is const0_rtx, skip it.
16773
88cb339e
N
167742011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
16775
16776 * config/h8300/h8300.c (print_operand_address): Rename to...
16777 (h8300_print_operand_address): ...this. Make static. Adjust comments.
16778 Call h8300_print_operand and h8300_print_operand_address instead of
16779 print_operand and print_operand_address. Declare.
16780 (print_operand): Renake to...
16781 (h8300_print_operand): ...this. Make static. Adjust comments.
16782 Call h8300_print_operand instead of print_operand. Declare.
16783 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
16784 (h8300_register_move_cost): Likewise.
16785 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
16786 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
16787 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
16788 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
16789 * config/h8300/h8300-protos.h (print_operand): Delete.
16790 (print_operand_address): Delete.
16791
756d6ee9
RH
167922011-04-01 Richard Henderson <rth@redhat.com>
16793
16794 PR 48400
16795 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
16796 in strict mode before dwarf4. Re-order tests to early out
16797 before switching sections.
16798
ceaaaeab
NF
167992011-04-01 Nathan Froyd <froydnj@codesourcery.com>
16800
16801 * config/h8300/constraints.md: New file.
16802 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
16803 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
16804 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
16805 * config/h8300/predicates.md (bit_operand): Likewise.
16806 (incdec_operand): Use satisfies_constraint_M and
16807 satisfies_constraint_O. Don't use C code block.
16808 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
16809 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
16810 (compute_mov_length): Use satisfies_constraint_G.
16811 (fix_bit_operand): Use satisfies_constraint_U.
16812 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
16813 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
16814 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
16815 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
16816 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
16817 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
16818 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16819 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
16820 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
16821 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
16822 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
16823 (EXTRA_MEMORY_CONSTRAINT): Delete.
16824
08ae38e0
AP
168252011-04-01 Andrew Pinski <pinskia@gmail.com>
16826 Michael Meissner <meissner@linux.vnet.ibm.com>
16827
16828 PR target/48262
16829 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
16830 operands, as per the specifications.
16831
16832 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
16833 (vec_extract_evenv4sf): Ditto.
16834 (vec_extract_evenv8hi): Ditto.
16835 (vec_extract_evenv16qi): Ditto.
16836 (vec_extract_oddv4si): Ditto.
16837
bdb0b0f6
MW
168382011-03-31 Mark Wielaard <mjw@redhat.com>
16839
16840 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
16841 high_pc attribute if the CU has no associated code. Only output
16842 DW_AT_entry_pc for CU if not generating strict dwarf and
16843 dwarf_version < 4.
16844
722279e4
BS
168452011-04-01 Bernd Schmidt <bernds@codesourcery.com>
16846
16847 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
16848 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
16849 out of ...
16850 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
16851 * final.c (final_start_function): Call the new function rather
16852 than using a NULL argument for dwarf2out_frame_debug.
16853
c5dd277d
BS
16854 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
16855 that contains the prologue.
16856
ec4efea9
BS
16857 * haifa-sched.c (queue_insn): New arg REASON. All callers
16858 changed. Print it in debugging output.
16859
2a6a0d80
BS
16860 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
16861
86014d07
BS
16862 * sched-ebb.c (begin_schedule_ready): Remove second argument.
16863 Split most of the code into...
16864 (begin_move_insn): ... here. New function.
16865 (ebb_sched_info): Add a pointer to it.
16866 * haifa-sched.c (scheduled_insns): New static variable.
16867 (sched_extend_ready_list): Allocate it.
16868 (schedule_block): Use it to record the order of scheduled insns.
16869 Perform RTL changes to move insns only after all scheduling
16870 decisions have been made.
16871 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
16872 begin_move_insn field.
16873 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
16874 * sched-int.h (struct haifa_sched_info): Remove second argument
16875 from begin_schedule_ready hook. Add new member begin_move_insn.
16876 * sched-rgn.c (begin_schedule_ready): Remove second argument.
16877 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
16878
9d701248
BS
16879 * haifa-sched.c (prune_ready_list): New function, broken out of
16880 schedule_block.
16881 (schedule_block): Use it.
16882
1ca1dad5
UW
168832011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16884
16885 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
16886
49568e45
KT
168872011-04-01 Kai Tietz <ktietz@redhat.com>
16888
16889 * config.gcc (*-*-mingw*): Allow as option the
16890 posix threading model.
07c0852e 16891 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
16892 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
16893 definition.
16894 (CPP_SPEC): Add pthread/no-pthread handling.
16895 (LIB_SPEC): Likewise.
16896 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
16897 (LIB_SPEC): Likewise.
16898 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
16899 flag to pass -pthread option for shared libgcc build.
16900 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
16901 for shared libgcc build.
16902 * config/i386/t-mingw-pthread: New file.
16903 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
16904 New define to enable use of library pthread by default.
16905 * config/i386/mingw.opt (pthread): New driver option.
16906 (no-pthread): New driver option.
e9c18386 16907 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
16908 * config/i386/mingw-w64.opt: Likewise.
16909
748f7574 169102011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
16911
16912 * c-decl.c (grokdeclarator): Fix formatting.
16913
f04713ee
RS
169142011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
16915
16916 * expr.c (emit_block_move_via_movmem): Use n_generator_args
16917 instead of n_operands.
16918 (set_storage_via_setmem): Likewise.
16919 * optabs.c (maybe_gen_insn): Likewise.
16920 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
16921 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
16922 (mips_expand_builtin_direct): Likewise.
16923 * config/spu/spu.c (expand_builtin_args): Likewise.
16924
b29387ee
RS
169252011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
16926
16927 * recog.h (insn_data_d): Add n_generator_args.
16928 * genoutput.c (data): Likewise.
16929 (output_insn_data): Print it.
16930 (max_opno, num_dups): Delete.
16931 (scan_operands): Just fill in "d->operand[...]".
16932 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
16933
e792559a
RS
169342011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
16935
16936 * gensupport.h (pattern_stats): New structure.
16937 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
16938 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
16939 (max_operand_1, max_operand_vec): Delete.
16940 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
16941
e8110d6f
NF
169422011-03-31 Nathan Froyd <froydnj@codesourcery.com>
16943
16944 * emit-rtl.c (emit_pattern_after_setloc): New function.
16945 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
16946 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
16947 (emit_pattern_after): New function.
16948 (emit_insn_after, emit_jump_insn_after): Call it.
16949 (emit_call_insn_after, emit_debug_insn_after): Likewise.
16950 (emit_pattern_before_setloc): New function.
16951 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
16952 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
16953 Likewise.
16954 (emit_pattern_before): New function.
16955 (emit_insn_before, emit_jump_insn_before): Call it.
16956 (emit_call_insn_before, emit_debug_insn_before): Likewise.
16957
576f85f1
RH
169582011-03-31 Richard Henderson <rth@redhat.com>
16959
16960 * dwarf2out.c (dw_separate_line_info_ref): Remove.
16961 (dw_separate_line_info_entry): Remove.
16962 (enum dw_line_info_opcode): New.
16963 (dw_line_info_entry): Use it.
16964 (dw_line_info_table, dw_line_info_table_p): New.
16965 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
16966 (line_info_table, line_info_label_num): Remove.
16967 (line_info_table_in_use): Remove.
16968 (separate_line_info_table): Remove.
16969 (separate_line_info_table_allocated): Remove.
16970 (separate_line_info_table_in_use): Remove.
16971 (LINE_INFO_TABLE_INCREMENT): Remove.
16972 (line_info_label_num): New.
16973 (cur_line_info_table): New.
16974 (text_section_line_info, cold_text_section_line_info): New.
16975 (separate_line_info): New.
16976 (SEPARATE_LINE_CODE_LABEL): Remove.
16977 (print_dwarf_line_table): Remove.
16978 (debug_dwarf): Don't dump it.
16979 (output_one_line_info_table): New.
16980 (output_line_info): Use it.
16981 (new_line_info_table): New.
16982 (set_cur_line_info_table): New.
16983 (dwarf2out_switch_text_section): Use it.
16984 (dwarf2out_begin_function): Likewise.
16985 (push_dw_line_info_entry): New.
16986 (dwarf2out_source_line): Rewrite for new line info tables.
16987 (dwarf2out_init): Remove dead initailizations.
16988
300d83d9
JM
169892011-03-31 Joseph Myers <joseph@codesourcery.com>
16990
16991 * opts.h (cl_option): Add comments to fields. Add bit-fields for
16992 various flags.
16993 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
16994 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
16995 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
16996 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
16997 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
16998 * opt-functions.awk (flag_init, switch_bit_fields): New.
16999 (switch_flags): Don't handle flags moved to bit-fields. Don't
17000 generate CL_MISSING_OK or CL_SAVE.
17001 * optc-gen.awk: Update to generate bit-field output as well as
17002 flags field.
17003 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
17004 bit-field instead of CL_REJECT_DRIVER flag.
17005 * opts-common.c (generate_canonical_option,
17006 decode_cmdline_option): Use bit-fields instead of CL_* flags.
17007 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
17008 instead of CL_REJECT_NEGATIVE flag.
17009 * toplev.c (print_switch_values): Use cl_report bit-field instead
17010 of CL_REPORT flag.
17011
d4d73ce2
EB
170122011-03-31 Eric Botcazou <ebotcazou@adacore.com>
17013
17014 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
17015 a zero minimum index only if it is redundant.
17016
b8faca75
VM
170172011-03-31 Vladimir Makarov <vmakarov@redhat.com>
17018
17019 PR rtl-optimization/48381
17020 * ira-color.c (assign_hard_reg): Use hard reg set intersection
17021 instead of ira_class_hard_reg_index for calculating conflicting
17022 hard registers.
17023
7d11cebe
SB
170242011-03-31 Steven Bosscher <steven@gcc.gnu.org>
17025
17026 * cprop.c: Clean up hash table building.
17027 (reg_avail_info): Remove.
17028 (oprs_available_p): Remove.
17029 (record_last_reg_set_info): Remove.
17030 (record_last_set_info): Remove.
17031 (reg_available_p): New function.
17032 (gcse_constant_p): Do not treat unfolded conditions as constants.
17033 (make_set_regs_unavailable): New function.
17034 (hash_scan_set): Simplify with new reg_available_p.
17035 (compute_hash_table_work): Traverse insns stream only once.
17036 Do not compute reg_avail_info. Traverse insns in reverse order.
17037 Record implicit sets after recording explicit sets from the block.
17038
98faf84f
MM
170392011-03-31 Michael Matz <matz@suse.de>
17040
e9c18386 17041 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 17042
f52d97da
AS
170432011-03-31 Anatoly Sokolov <aesok@post.ru>
17044
17045 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
17046 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
17047 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17048 (h8300_mode_dependent_address_p): New function.
17049 (h8300_get_index): Make static.
17050
e16b6fd0
JL
170512011-03-31 Jeff Law <law@redhat.com>
17052
10c51983
JL
17053 * reload1.c (elimination_effects): Fix typo in recent change.
17054
e9c18386 17055 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
17056 typo potentially leading to null pointer dereference.
17057
17058 * caller-save.c (new_saved_hard_reg): Eliminate return value.
17059 (setup_save_areas): Corresponding changes to avoid useless
17060 assignments.
17061
17062 * jump.c (reversed_comparison_code_parts): Avoid successive return
17063 statements when REVERSE_CONDITION is defined.
17064
17065 * expr.c (expand_assignment): Avoid useless assignments.
17066 (expand_expr_real_1): Likewise.
17067 (expand_expr_real_2): Avoid useless statements.
17068
17069 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
17070
17071 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
17072
17073 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
17074 statements.
17075
17076 * stmt.c (expand_expr_stmt): Avoid useless assignment.
17077
eb1eb914
JM
170782011-03-31 Joseph Myers <joseph@codesourcery.com>
17079
17080 PR target/47109
17081 * doc/tm.texi.in (TARGET_VERSION): Remove.
17082 * doc/tm.texi: Regenerate.
17083 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
17084 * collect2.c (main): Don't use TARGET_VERSION.
17085 * mips-tdump.c (main): Don't use TARGET_VERSION.
17086 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 17087 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
17088 * config/rs6000/vxworksae.h: Remove.
17089 * config/alpha/alpha.h (TARGET_VERSION): Remove.
17090 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
17091 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
17092 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
17093 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
17094 * config/arm/arm.h (TARGET_VERSION): Remove.
17095 * config/arm/coff.h (TARGET_VERSION): Remove.
17096 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
17097 * config/arm/elf.h (TARGET_VERSION): Remove.
17098 * config/arm/freebsd.h (TARGET_VERSION): Remove.
17099 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
17100 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
17101 * config/arm/pe.h (TARGET_VERSION): Remove.
17102 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
17103 * config/arm/semi.h (TARGET_VERSION): Remove.
17104 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
17105 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
17106 * config/arm/vxworks.h (TARGET_VERSION): Remove.
17107 * config/avr/avr.h (TARGET_VERSION): Remove.
17108 * config/bfin/bfin.h (TARGET_VERSION): Remove.
17109 * config/fr30/fr30.h (TARGET_VERSION): Remove.
17110 * config/frv/frv.h (TARGET_VERSION): Remove.
17111 * config/h8300/h8300.h (TARGET_VERSION): Remove.
17112 * config/i386/cygwin.h (TARGET_VERSION): Remove.
17113 * config/i386/darwin.h (TARGET_VERSION): Remove.
17114 * config/i386/darwin64.h (TARGET_VERSION): Remove.
17115 * config/i386/djgpp.h (TARGET_VERSION): Remove.
17116 * config/i386/freebsd.h (TARGET_VERSION): Remove.
17117 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
17118 * config/i386/gnu.h (TARGET_VERSION): Remove.
17119 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
17120 * config/i386/i386elf.h (TARGET_VERSION): Remove.
17121 * config/i386/linux.h (TARGET_VERSION): Remove.
17122 * config/i386/linux64.h (TARGET_VERSION): Remove.
17123 * config/i386/lynx.h (TARGET_VERSION): Remove.
17124 * config/i386/mingw32.h (TARGET_VERSION): Remove.
17125 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
17126 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
17127 * config/i386/netware.h (TARGET_VERSION): Remove.
17128 * config/i386/nto.h (TARGET_VERSION): Remove.
17129 * config/i386/openbsd.h (TARGET_VERSION): Remove.
17130 * config/i386/vxworks.h (TARGET_VERSION): Remove.
17131 * config/ia64/elf.h (TARGET_VERSION): Remove.
17132 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
17133 * config/ia64/hpux.h (TARGET_VERSION): Remove.
17134 * config/ia64/linux.h (TARGET_VERSION): Remove.
17135 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
17136 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
17137 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
17138 * config/lm32/lm32.h (TARGET_VERSION): Remove.
17139 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
17140 * config/m32c/m32c.h (TARGET_VERSION): Remove.
17141 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
17142 * config/m32r/m32r.h (TARGET_VERSION): Remove.
17143 * config/m68k/linux.h (TARGET_VERSION): Remove.
17144 * config/m68k/m68k.h (TARGET_VERSION): Remove.
17145 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
17146 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
17147 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
17148 * config/mep/mep.h (TARGET_VERSION): Remove.
17149 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
17150 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
17151 * config/mips/iris6.h (MACHINE_TYPE): Remove.
17152 * config/mips/linux.h (TARGET_VERSION): Remove.
17153 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
17154 * config/mips/vxworks.h (TARGET_VERSION): Remove.
17155 * config/mmix/mmix.h (TARGET_VERSION): Remove.
17156 * config/mn10300/linux.h (TARGET_VERSION): Remove.
17157 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
17158 * config/pa/pa.h (TARGET_VERSION): Remove.
17159 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
17160 * config/picochip/picochip.h (TARGET_VERSION): Remove.
17161 * config/rs6000/aix.h (TARGET_VERSION): Remove.
17162 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
17163 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
17164 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
17165 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
17166 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
17167 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
17168 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
17169 * config/rs6000/linux.h (TARGET_VERSION): Remove.
17170 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
17171 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
17172 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
17173 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
17174 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
17175 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
17176 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
17177 * config/s390/linux.h (TARGET_VERSION): Remove.
17178 * config/s390/s390.h (TARGET_VERSION): Remove.
17179 * config/s390/tpf.h (TARGET_VERSION): Remove.
17180 * config/score/score.h (TARGET_VERSION): Remove.
17181 * config/sh/linux.h (TARGET_VERSION): Remove.
17182 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
17183 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
17184 * config/sh/sh.h (TARGET_VERSION): Remove.
17185 * config/sh/sh64.h (TARGET_VERSION): Remove.
17186 * config/sh/superh.h (TARGET_VERSION): Remove.
17187 * config/sh/vxworks.h (TARGET_VERSION): Remove.
17188 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
17189 * config/sparc/linux.h (TARGET_VERSION): Remove.
17190 * config/sparc/linux64.h (TARGET_VERSION): Remove.
17191 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
17192 TARGET_NAME32, TARGET_NAME): Remove.
17193 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
17194 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
17195 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
17196 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
17197 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
17198 * config/spu/spu.h (TARGET_VERSION): Remove.
17199 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
17200 * config/v850/v850.h (TARGET_VERSION): Remove.
17201 * config/vax/linux.h (TARGET_VERSION): Remove.
17202 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
17203 * config/xtensa/elf.h (TARGET_VERSION): Remove.
17204 * config/xtensa/linux.h (TARGET_VERSION): Remove.
17205
ace31bca
EB
172062011-03-31 Eric Botcazou <ebotcazou@adacore.com>
17207
17208 PR target/48142
17209 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
17210 frame-related from frame-unrelated adjustments to the stack pointer.
17211
76f9db36
JJ
172122011-03-31 Jakub Jelinek <jakub@redhat.com>
17213
17214 * common.opt (fdebug-types-section): Move earlier.
17215 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
17216
b7826465
AT
172172011-03-31 Andreas Tobler <andreast@fgznet.ch>
17218
17219 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
17220 var.
17221
1290e54c
NF
172222011-03-30 Nathan Froyd <froydnj@codesourcery.com>
17223
17224 * tree.h (CASE_CHAIN): Define.
17225 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
17226 (gimple_redirect_edge_and_branch): Likewise.
17227
bddc98e1
VM
172282011-03-30 Vladimir Makarov <vmakarov@redhat.com>
17229
17230 PR middle-end/48367
17231 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
17232 calculation.
17233
c865e437
JL
172342011-03-30 Jeff Law <law@redhat.com>
17235
b3750213 17236 * PR bootstrap/48371
c865e437
JL
17237 * reload1.c (reload): Fix botch in last change.
17238
17239 * reload.h (struct reload): Fix typo introduced in last change.
17240
2cdf9574
JM
172412011-03-30 Joseph Myers <joseph@codesourcery.com>
17242
17243 * config/arm/arm.opt (mhard-float, msoft-float): Mark
17244 Undocumented. Remove help text.
17245 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
17246 -mhard-float.
17247
666a21a2
JM
172482011-03-30 Joseph Myers <joseph@codesourcery.com>
17249
17250 * doc/options.texi (NegativeAlias): Document.
17251 (Alias): Mention NegativeAlias.
17252 * opt-functions.awk: Handle NegativeAlias.
e9c18386 17253 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
17254 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
17255 * opts.h (CL_NEGATIVE_ALIAS): Define.
17256 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
17257 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
17258 OPT_mspe_.
17259 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
17260 Alias entries.
17261 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
17262 mno-spe and mno-isel instead of mspe=no and -misel=no.
17263
0fa4e351
MW
172642011-03-29 Mark Wielaard <mjw@redhat.com>
17265
17266 * common.opt (fdebug-types-section): New flag.
17267 * doc/invoke.texi: Document new -fno-debug-types-section flag.
17268 * dwarf2out.c (use_debug_types): New define.
17269 (struct die_struct): Mark die_id with GTY desc use_debug_types.
17270 (print_die): Guard output of type unit signatures using
17271 use_debug_types.
17272 (build_abbrev_table): Replace assert of dwarf_version >= 4
17273 with assert on use_debug_types.
17274 (size_of_die): Likewise.
17275 (unmark_dies): Likewise.
17276 (value_format): Decide AT_ref_external form on use_debug_types.
17277 (output_die): Replace dwarf_version version check guard with
17278 use_debug_types where appropriate.
17279 (modified_type_die): Likewise.
17280 (gen_reference_type_die): Likewise.
17281 (dwarf2out_start_source_file): Likewise.
17282 (dwarf2out_end_source_file): Likewise.
17283 (prune_unused_types_walk_attribs): Likewise.
17284 (dwarf2out_finish): Likewise.
17285
4648deb4
VM
172862011-03-30 Vladimir Makarov <vmakarov@redhat.com>
17287
17288 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
17289
4f431835
RS
172902011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
17291
17292 PR rtl-optimization/48332
17293 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
17294 mode of input operand N and modeN to its actual mode.
17295
f2034d06
JL
172962011-03-30 Jeff Law <law@redhat.com>
17297
17298 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
17299 define accessor macro.
17300 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
17301 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
17302 (reg_equiv_init): Likewise.
17303 (reg_equivs_size): New variable.
17304 (reg_equiv_init_size): Remove.
17305 (allocate_initial_values): Move prototype to here from....
17306 * integrate.h (allocate_initial_values): Remove prototype.
17307 * integrate.c: Include reload.h.
17308 (allocate_initial_values): Corresponding changes.
17309 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
17310 (fix_reg_equiv_init, no_equiv): Corresponding changes.
17311 (update_equiv_regs): Corresponding changes.
17312 (ira): Corresponding changes.
17313 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
17314 (push_secondary_reload): Corresponding changes.
17315 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
17316 (make_memloc, find_reloads_address): Corresponding changes.
17317 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
17318 (find_reloads_address_1): Corresponding changes.
17319 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
17320 (refers_to_regno_for_reload_p): Corresponding changes.
17321 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
17322 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
17323 * reload1.c: Include ggc.h.
17324 (grow_reg_equivs): New function.
17325 (replace_pseudos_in, reload): Corresponding changes.
17326 (calculate_needs_all_insns, alter_regs): Corresponding changes.
17327 (eliminate_regs_1, elimination_effects): Corresponding changes.
17328 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
17329 (delete_output_reload): Likewise.
17330 * caller-save.c (mark_referenced_regs): Corresponding changes.
17331 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
17332 * frv/predicates.md (frv_load_operand): Corresponding changes.
17333 * microblaze/microblaze.c (double_memory_operand): Corresponding
17334 changes.
17335 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
17336 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 17337 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
17338 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
17339 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
17340 changes.
17341 * pa/pa.c (emit_move_sequence): Corresponding changes.
17342 * vax/vax.c (nonindexed_address_p): Corresponding changes.
17343
159b81b0
RS
173442011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
17345
17346 PR target/47551
17347 * config/arm/arm.c (coproc_secondary_reload_class): Handle
17348 structure modes. Don't check neon_vector_mem_operand for
17349 vector or structure modes.
17350
a6217191
RS
173512011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
17352 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17353
17354 PR target/43590
17355 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
17356 operand 1 and reshuffle the operands to match.
17357 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
17358
bd837408
CS
173592011-03-30 Christian Schüler <cschueler@gmx.de>
17360
6955d771 17361 PR driver/48208
bd837408 17362 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 17363
6955d771 17364 PR driver/48260
bd837408
CS
17365 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
17366 handler function.
17367 * config/darwin.opt: Added '-arch' option.
17368
e9c0470a
NC
173692011-03-30 Nick Clifton <nickc@redhat.com>
17370
17371 * config/rx/rx.md: Add peepholes and patterns to combine
17372 extending loads and simple arithmetic instructions.
17373 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
17374 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
17375 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 17376 modes to use pre-decrement and post-increment addressing.
e9c18386 17377 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 17378 addresses.
e9c18386
UB
17379 (rx_print_operand): Add support for %Q. Fix handling of %Q.
17380 (rx_memory_move_cost): Adjust cost of stores.
17381 (rx_adjust_insn_length): New function.
e9c0470a 17382
8a87e7ab
JJ
173832011-03-30 Jakub Jelinek <jakub@redhat.com>
17384
17385 PR c/48305
17386 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17387 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
17388 matching arg00/arg01 types.
17389
12486e03
EB
173902011-03-30 Eric Botcazou <ebotcazou@adacore.com>
17391
17392 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
17393 last_location to UNKNOWN_LOCATION.
17394
0b99eef6
L
173952011-03-30 H.J. Lu <hongjiu.lu@intel.com>
17396
17397 PR target/48349
17398 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
17399 FLOAT_SSE_REGS.
17400
023592aa
JM
174012011-03-30 Joseph Myers <joseph@codesourcery.com>
17402 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17403
17404 PR bootstrap/48337
17405 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
17406 Init(PROCESSOR_V7).
17407 (sparc_cpu): Likewise.
17408 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
17409 PROCESSOR_V7.
17410
ad3b266b
VM
174112011-03-29 Vladimir Makarov <vmakarov@redhat.com>
17412
17413 PR target/48336
17414 PR middle-end/48342
17415 PR rtl-optimization/48345
17416 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
17417 hard regs for given mode from profitable regs when doing secondary
17418 allocation.
17419
633c9126
JL
174202011-03-29 Jeff Law <law@redhat.com>
17421
17422 PR bootstrap/48327
17423 * tree-ssa-threadupdate.c (struct redirection_data): Remove
17424 do_not_duplicate field.
17425 (lookup_redirection_data): Corresponding changes.
17426 (create_duplicates): Always create a template block.
17427 (redirect_edges): Remove code which reused the original block
17428 when it was going to become unreachable code.
17429 (thread_block): Don't set do_not_duplicate field.
17430
eb50f63a
JM
174312011-03-29 Joseph Myers <joseph@codesourcery.com>
17432
17433 * lto-opts.c (register_user_option_p, lto_register_user_option):
17434 Make type argument unsigned.
17435 * lto-streamer.h (lto_register_user_option): Make type argument
17436 unsigned.
17437 * opth-gen.awk: Make CL_* macros unsigned.
17438 * opts-common.c (find_opt): Make lang_mask argument unsigned.
17439 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
17440 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
17441 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
17442 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
17443 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
17444 (find_opt): Make lang_mask argument unsigned.
17445
76763a6d
VM
174462011-03-29 Vladimir Makarov <vmakarov@redhat.com>
17447
17448 PR rtl-optimization/48331
17449 PR rtl-optimization/48334
17450 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
17451 for any used algorithm.
17452
5c82436e
VM
174532011-03-29 Vladimir Makarov <vmakarov@redhat.com>
17454
17455 * ira-conflicts.c (build_object_conflicts): Add unused attribute
17456 to parent_max.
17457
7a81008b
UB
174582011-03-29 Uros Bizjak <ubizjak@gmail.com>
17459
17460 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
17461 (alpha_option_override): Don't set alpha_sr_alias_set.
17462 (emit_frame_store_1): Use gen_frame_mem rather than calling
17463 set_mem_alias_set.
17464 (alpha_expand_epilogue): Ditto.
17465
86c8d1f6
IR
174662011-03-29 Ira Rosen <ira.rosen@linaro.org>
17467
17468 PR tree-optimization/48290
17469 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
17470 vectorization, check that relevant phis in the basic block after
17471 the inner loop are really inner loop's exit phis.
17472
0d12220f
RS
174732011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
17474
e8cf17e7 17475 PR debug/48190
0d12220f
RS
17476 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
17477 (cached_dw_loc_list_def): New structure.
17478 (cached_dw_loc_list): New typedef.
17479 (cached_dw_loc_list_table): New variable.
17480 (cached_dw_loc_list_table_hash): New function.
17481 (cached_dw_loc_list_table_eq): Likewise.
17482 (add_location_or_const_value_attribute): Take a bool cache_p.
17483 Cache the list when the parameter is true.
17484 (gen_formal_parameter_die): Update caller.
17485 (gen_variable_die): Likewise.
17486 (dwarf2out_finish): Likewise.
17487 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
17488 while generating debug info for the decl.
17489 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
17490 (dwarf2out_init): Initialize cached_dw_loc_list_table.
17491 (resolve_addr): Cache the result of resolving a chain of
17492 location lists.
17493
1756cb66
VM
174942011-03-28 Vladimir Makarov <vmakarov@redhat.com>
17495
17496 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
17497 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 17498
1756cb66
VM
17499 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
17500 after regstat_init_n_sets_and_refs.
17501
17502 * ira.c: Add more comments at the top.
17503 (setup_stack_reg_pressure_class, setup_pressure_classes):
17504 Add comments how we compute the register pressure classes.
17505 (setup_allocno_and_important_classes): Add more comments.
17506 (setup_class_translate_array, reorder_important_classes)
17507 (setup_reg_class_relations): Add comments.
17508
17509 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
17510 start of the file.
17511
17512 * ira-color.c: Add 2011 to the Copyright line.
17513 (assign_hard_reg): Add more comments.
17514 (improve_allocation): Ditto.
17515
17516 * ira-costs.c: Add 2011 to the Copyright line.
17517 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
17518 comments.
17519 (setup_regno_cost_classes_by_mode): Ditto.
17520
17521 Initial patches from ira-improv branch:
17522
17523 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
17524
f60c2554 17525 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
17526 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
17527 (ira_create_allocno): Remove initialization of
17528 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
17529 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
17530 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
17531 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
17532 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
17533 Initialize ALLOCNO_ADD_DATA.
17534 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
17535 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
17536 ALLOCNO_REG.
17537 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
17538 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
17539
17540 * ira.c (ira_reallocate): Remove.
17541 (setup_pressure_classes): Call
17542 ira_init_register_move_cost_if_necessary. Use
17543 ira_register_move_cost instead of ira_get_register_move_cost.
17544 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
17545 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
17546
17547 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
17548 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
17549 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
17550 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
17551 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
17552 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
17553 Fix formatting.
7a81008b 17554 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
17555 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
17556 (struct allocno_color_data): New.
17557 (allocno_color_data_t): New typedef.
17558 (allocno_color_data): New definition.
17559 (ALLOCNO_COLOR_DATA): New macro.
17560 (struct object_color_data): New.
17561 (object_color_data_t): New typedef.
17562 (object_color_data): New definition.
17563 (OBJECT_COLOR_DATA): New macro.
17564 (update_copy_costs, calculate_allocno_spill_cost): Call
17565 ira_init_register_move_cost_if_necessary. Use
17566 ira_register_move_cost instead of ira_get_register_move_cost.
17567 (move_spill_restore, update_curr_costs): Ditto.
17568 (allocno_spill_priority): Make it inline.
7a81008b 17569 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
17570 (struct coalesce_data, coalesce_data_t): New.
17571 (allocno_coalesce_data): New definition.
17572 (ALLOCNO_COALESCE_DATA): New macro.
17573 (merge_allocnos, coalesced_allocno_conflict_p): Use
17574 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
17575 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
17576 (coalesce_allocnos): Ditto.
17577 (setup_coalesced_allocno_costs_and_nums): Ditto.
17578 (collect_spilled_coalesced_allocnos): Ditto.
17579 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
17580 (setup_slot_coalesced_allocno_live_ranges): Ditto.
17581 (coalesce_spill_slots): Ditto.
17582 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
17583 free allocno_coalesce_data.
17584
17585 * ira-conflicts.c: Fix formatting.
17586 (process_regs_for_copy): Call
17587 ira_init_register_move_cost_if_necessary. Use
17588 ira_register_move_cost instead of ira_get_register_move_cost.
17589 (build_object_conflicts): Optimize.
17590
17591 * ira-costs.c (record_reg_classes): Optimize. Call
17592 ira_init_register_move_cost_if_necessary. Use
17593 ira_register_move_cost, ira_may_move_in_cost, and
17594 ira_may_move_out_cost instead of ira_get_register_move_cost and
17595 ira_get_may_move_cost.
17596 (record_address_regs): Ditto.
17597 (scan_one_insn): Optimize.
17598 (find_costs_and_classes): Optimize.
17599 (process_bb_node_for_hard_reg_moves): Call
17600 ira_init_register_move_cost_if_necessary. Use
17601 ira_register_move_cost instead of ira_get_register_move_cost.
17602
17603 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
17604 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
17605 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
17606 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
17607 definitions.
17608 (ira_initiate_emit_data, ira_finish_emit_data)
17609 (create_new_allocno): New functions.
7a81008b 17610 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
17611 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
17612 Use ira_register_move_cost instead of ira_get_register_move_cost.
17613
17614 * ira-int.h: Fix some comments.
7a81008b
UB
17615 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
17616 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
17617 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
17618 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
17619 add_data.
17620 (struct ira_allocno): Make mode and aclass a bitfield. Move other
17621 bitfield after mode. Make hard_regno a short int. Make
17622 hard_regno short. Remove first_coalesced_allocno and
17623 next_coalesced_allocno. Move mem_optimized_dest_p,
17624 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
17625 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
17626 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
17627 temp, colorable_p. Add new member add_data.
17628 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
17629 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
17630 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
17631 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
17632 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
17633 (ALLOCNO_ADD_DATA): New macro.
17634 (ira_emit_data_t): New typedef.
17635 (struct ira_emit_data): New. Move mem_optimized_dest_p,
17636 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
17637 from struct ira_allocno.
17638 (ALLOCNO_EMIT_DATA): New macro.
17639 (ira_allocno_emit_data, allocno_emit_reg): New.
17640 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 17641 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
17642 (OBJECT_ADD_DATA): New macro.
17643 (ira_reallocate): Remove.
17644 (ira_initiate_emit_data, ira_finish_emit_data): New.
17645 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
17646 (ira_init_register_move_cost_if_necessary): New.
17647 (ira_object_conflict_iter_next): Merge into
17648 ira_object_conflict_iter_cond.
7a81008b 17649 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 17650
f60c2554 17651 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
17652 ira_init_register_move_cost_if_necessary. Use
17653 ira_register_move_cost instead of ira_get_register_move_cost.
17654
17655 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
17656
17657 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
17658
17659 * ira-costs.c: Fix formatting.
17660 (cost_classes, cost_classes_num): Remove.
17661 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
17662 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
17663 (cost_classes_del, cost_classes_htab): New.
17664 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
17665 (initiate_regno_cost_classes, setup_cost_classes): New.
17666 (setup_regno_cost_classes_by_aclass): New.
7a81008b 17667 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
17668 (record_reg_classes): Use regno_cost_classes instead of
17669 cost_classes. Move checking opposite operand up.
17670 (record_address_regs): Use regno_cost_classes
17671 instead of cost_classes.
17672 (scan_one_insn): Ditto. Use always general register.
17673 (print_allocno_costs): Use regno_cost_classes instead of
17674 cost_classes.
17675 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
17676 (find_costs_and_classes): Set up cost classes for each registers.
17677 Use also their mode for this. Use regno_cost_classes instead of
17678 cost_classes.
17679 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
17680 cost_classes.
17681 (free_ira_costs, ira_init_costs): Don't use cost_classes.
17682 (ira_costs, ira_set_pseudo_classes): Call
17683 initiate_regno_cost_classes and finish_regno_cost_classes.
17684
17685 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
17686
17687 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
17688
17689 * target.def (ira_cover_classes): Remove.
17690
7a81008b 17691 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
17692
17693 * doc/tm.texi.in: Ditto.
17694
17695 * ira-conflicts.c: Remove mentioning cover classes from the file.
17696 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 17697 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
17698
17699 * targhooks.c (default_ira_cover_classes): Remove.
17700
17701 * targhooks.h (default_ira_cover_classes): Ditto.
17702
17703 * haifa-sched.c: Remove mentioning cover classes from the file.
17704 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
17705 ira_pressure_classes and ira_pressure_classes_num instead of
17706 ira_reg_class_cover_size and ira_reg_class_cover. Use
17707 sched_regno_pressure_class instead of sched_regno_cover_class.
17708 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
17709 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
17710
17711 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
17712 classes from the file.
17713 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
17714 (struct object_hard_regs, struct object_hard_regs_node): New.
17715 (struct ira_object): New members profitable_hard_regs,
17716 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
17717 (struct ira_allocno): Rename cover_class to aclass. Rename
17718 cover_class_cost and updated_cover_class_cost to class_cost and
17719 updated_class_cost. Remove splay_removed_p and
17720 left_conflict_size. Add new members colorable_p.
17721 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
17722 (ALLOCNO_COLORABLE_P): New macro.
17723 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
17724 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
17725 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
17726 (OBJECT_...): Rename parameter C to O.
17727 (OBJECT_PROFITABLE_HARD_REGS): New macro.
17728 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
17729 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
17730 (struct target_ira_int): New members x_ira_max_memory_move_cost,
17731 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
17732 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
17733 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
17734 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
17735 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
17736 x_ira_reg_class_subunion.
17737 (ira_max_memory_move_cost, ira_max_register_move_cost)
17738 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
17739 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
17740 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 17741 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
17742 (ira_reg_class_union): Rename to ira_reg_class_subunion.
17743 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
17744 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
17745 (ira_tune_allocno_costs_and_cover_classes): Rename to
17746 ira_tune_allocno_costs.
17747 (ira_debug_hard_regs_forest): New.
17748 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
17749 (ira_object_conflict_iter_next): Fix comments.
7a81008b 17750 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
17751 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
17752 cover_class to aclass.
17753 (ira_allocate_and_accumulate_costs): Ditto.
17754 (ira_allocate_and_set_or_copy_costs): Ditto.
17755
17756 * opts.c (decode_options): Remove ira_cover_class check.
17757
17758 * ira-color.c: Remove mentioning cover classes from the file. Use
17759 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
17760 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
17761 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
17762 (splay-tree.h): Remove include.
17763 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
17764 before copy_freq_compare_func.
17765 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
17766 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
17767 New definitions.
17768 (hard_regs_roots, hard_regs_node_vec): Ditto.
17769 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
17770 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
17771 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
17772 (create_new_object_hard_regs_node): Ditto.
17773 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 17774 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
17775 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
17776 Ditto.
17777 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
17778 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
17779 (remove_unused_object_hard_regs_nodes): Ditto.
17780 (enumerate_object_hard_regs_nodes): Ditto.
17781 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
17782 (object_hard_regs_subnode_t): Ditto.
17783 (struct object_hard_regs_subnode): Ditto.
17784 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
17785 (setup_object_hard_regs_subnode_index): Ditto.
17786 (get_object_hard_regs_subnodes_num): Ditto.
17787 (form_object_hard_regs_nodes_forest): Ditto.
17788 (finish_object_hard_regs_nodes_tree): Ditto.
17789 (finish_object_hard_regs_nodes_forest): Ditto.
17790 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 17791 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
17792 (pseudos_have_intersected_live_ranges_p): Rename to
17793 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
17794 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
17795 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
17796 (update_copy_costs): Remove assert. Skip cost update if the hard
17797 reg does not belong the class.
17798 (assign_hard_reg): Process only profitable hard regs.
17799 (uncolorable_allocnos_num): Make it scalar.
17800 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
17801 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
17802 and ira_reg_class_max_nregs.
17803 (bucket_allocno_compare_func): Check frequency first.
17804 (sort_bucket): Add compare function as a parameter.
17805 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
17806 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
17807 (push_allocno_to_stack): Rewrite for checking new allocno
17808 colorability.
7a81008b 17809 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
17810 (push_only_colorable): Pass new parameter to sort_bucket.
17811 (push_allocno_to_spill): Remove.
17812 (allocno_spill_priority_compare): Make it inline and rewrite.
17813 (splay_tree_allocate, splay_tree_free): Remove.
17814 (allocno_spill_sort_compare): New function.
17815 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
17816 build and use splay tree. Choose first allocno in uncolorable
17817 allocno bucket to spill. Remove setting spill cost.
17818 (all_conflicting_hard_regs): Remove.
17819 (setup_allocno_available_regs_num): Check only profitable hard
17820 regs. Print info about hard regs nodes.
17821 (setup_allocno_left_conflicts_size): Remove.
17822 (put_allocno_into_bucket): Don't call
7a81008b 17823 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
17824 (improve_allocation): New.
17825 (color_allocnos): Call setup_profitable_hard_regs,
17826 form_object_hard_regs_nodes_forest, improve_allocation,
17827 finish_object_hard_regs_nodes_forest. Setup spill cost.
17828 (print_loop_title): Use pressure classes.
17829 (color_allocnso): Ditto.
17830 (do_coloring): Remove allocation and freeing splay_tree_node_pool
17831 and allocnos_for_spilling.
17832 (ira_sort_regnos_for_alter_reg): Don't setup members
17833 {first,next}_coalesced_allocno.
17834 (color): Remove allocating and freeing removed_splay_allocno_vec.
17835 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
17836 prohibited_class_mode_regs.
17837
17838 * ira-lives.c: Remove mentioning cover classes from the file. Fix
17839 formatting.
17840 (update_allocno_pressure_excess_length): Use pressure classes.
17841 (inc_register_pressure, dec_register_pressure): Check for pressure
17842 class.
17843 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
17844 pressure class. Use ira_reg_class_nregs instead of
17845 ira_reg_class_max_nregs.
17846 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
17847 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
17848 (single_reg_class): Use ira_reg_class_nregs instead of
17849 ira_reg_class_max_nregs.
17850 (process_bb_node_lives): Use pressure classes.
17851
17852 * ira-emit.c: Remove mentioning cover classes from the file. Use
17853 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
17854 (change_loop): Use pressure classes.
17855 (modify_move_list): Call ira_set_allocno_class instead of
17856 ira_set_allocno_cover_class.
17857
17858 * ira-build.c: Remove mentioning cover classes from the file. Use
17859 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
17860 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
17861 ALLOCNO_UPDATED_CLASS_COST instead of
17862 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
17863 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
17864 (ira_create_allocno): Remove initialization of
17865 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
17866 ALLOCNO_COLORABLE_P.
17867 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
17868 Update conflict regs for the objects.
17869 (create_cap_allocno): Remove assert. Don't propagate
17870 ALLOCNO_AVAILABLE_REGS_NUM.
17871 (ira_free_allocno_costs): New function.
17872 (finish_allocno): Change a part of code into call of
17873 ira_free_allocno_costs.
17874 (low_pressure_loop_node_p): Use pressure classes.
17875 (object_range_compare_func): Don't compare classes.
17876 (setup_min_max_conflict_allocno_ids): Ditto.
17877
17878 * loop-invariant.c: Remove mentioning cover classes from the file.
17879 Use ira_pressure_classes and ira_pressure_classes_num instead of
17880 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
17881 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
17882 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
17883 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
17884 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
17885 STACK_REG_COVER_CLASS.
17886 (get_regno_cover_class): Rename to get_regno_pressure_class.
17887 (move_loop_invariants): Initialize and finalize regstat.
17888
17889 * ira.c: Remove mentioning cover classes from the file. Add
17890 comments about coloring without cover classes. Use ALLOCNO_CLASS
17891 instead of ALLOCNO_COVER_CLASS. Fix formatting.
17892 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
17893 setup_class_subset_and_memory_move_costs.
17894 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
17895 (setup_cover_and_important_classes): Rename to
17896 setup_allocno_and_important_classes.
17897 (setup_class_translate_array): New.
17898 (setup_class_translate): Call it for allocno and pressure classes.
17899 (cover_class_order): Rename to allocno_class_order.
17900 (comp_reg_classes_func): Use ira_allocno_class_translate instead
17901 of ira_class_translate.
17902 (reorder_important_classes): Set up ira_important_class_nums.
17903 (setup_reg_class_relations): Set up ira_reg_class_superunion.
17904 (print_class_cover): Rename to print_classes. Add parameter.
17905 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
17906 Print pressure classes too.
17907 (find_reg_class_closure): Rename to find_reg_classes. Don't call
17908 setup_reg_subclasses.
7a81008b 17909 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
17910 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
17911 (setup_prohibited_class_mode_regs): Use
7a81008b 17912 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
17913 (clarify_prohibited_class_mode_regs): New function.
17914 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
17915 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
17916 (ira_init_once): Initialize them.
17917 (free_register_move_costs): Process them.
17918 (ira_init): Move calls of find_reg_classes and
17919 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
17920 Call clarify_prohibited_class_mode_regs.
17921 (ira_no_alloc_reg): Remove.
17922 (too_high_register_pressure_p): Use pressure classes.
17923
17924 * sched-deps.c: Remove mentioning cover classes from the file.
17925 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
17926 ira_pressure_classes and ira_pressure_classes_num instead of
17927 ira_reg_class_cover_size and ira_reg_class_cover.
17928 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
17929 sched_regno_pressure_class instead of sched_regno_cover_class.
17930 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
17931 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
17932
17933 * ira.h: Add 2010 to Copyright.
17934 (ira_no_alloc_reg): Remove external.
17935 (struct target_ira): Rename x_ira_hard_regno_cover_class,
17936 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
17937 x_ira_class_translate to x_ira_hard_regno_allocno_class,
17938 x_ira_allocno_classes_num, x_ira_allocno_classes, and
17939 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
17940 x_ira_pressure_classes, x_ira_pressure_class_translate, and
17941 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
17942 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
17943 x_ira_no_alloc_regs.
7a81008b 17944 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
17945 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
17946 ira_allocno_classes_num and ira_allocno_classes.
17947 (ira_class_translate): Rename to ira_allocno_class_translate.
17948 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
17949 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
17950 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
17951 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
17952 (ira_no_alloc_regs): New.
17953
17954 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
17955 classes from the file. Use ALLOCNO_CLASS instead of
17956 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
17957 ALLOCNO_COVER_CLASS_COST.
17958 (regno_cover_class): Rename to regno_aclass.
17959 (record_reg_classes): Use ira_reg_class_subunion instead of
17960 ira_reg_class_union.
17961 (record_address_regs): Check overflow.
17962 (scan_one_insn): Ditto.
7a81008b 17963 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
17964 (print_pseudo_costs): Use REG_N_REFS.
17965 (find_costs_and_classes): Use classes intersected with them on the
17966 1st pass. Check overflow. Use ira_reg_class_subunion instead of
17967 ira_reg_class_union. Use ira_allocno_class_translate and
17968 regno_aclass instead of ira_class_translate and regno_cover_class.
17969 Modify code for finding regno_aclass. Setup preferred classes for
17970 the next pass.
17971 (setup_allocno_cover_class_and_costs): Rename to
17972 setup_allocno_class_and_costs. Use regno_aclass instead of
17973 regno_cover_class. Use ira_set_allocno_class instead of
17974 ira_set_allocno_cover_class.
17975 (init_costs, finish_costs): Use regno_aclass instead of
17976 regno_cover_class.
17977 (ira_costs): Use setup_allocno_class_and_costs instead of
17978 setup_allocno_cover_class_and_costs.
17979 (ira_tune_allocno_costs_and_cover_classes): Rename to
17980 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
17981 by processing objects. Use ira_reg_class_max_nregs instead of
17982 ira_reg_class_nregs.
17983
17984 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
17985
17986 * sched-int.h: Remove mentioning cover classes from the file.
17987 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
17988
17989 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
17990 classes from the file.
17991 (struct reg_pref): Rename coverclass into allocnoclass.
17992 (reg_cover_class): Rename to reg_allocno_class.
17993
7a81008b 17994 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
17995
17996 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
17997
17998 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
17999
18000 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
18001
18002 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
18003
18004 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
18005
18006 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
18007
18008 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
18009
18010 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
18011
18012 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
18013
18014 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
18015 (i386_ira_cover_classes): Ditto.
18016
18017 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
18018
18019 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
18020
18021 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
18022
18023 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
18024
18025 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
18026
18027 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
18028
18029 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
18030 (mips_ira_cover_classes): Ditto.
18031
18032 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
18033
18034 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
18035
18036 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
18037
18038 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
18039
18040 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
18041
18042 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
18043 (IRA_COVER_CLASSES_VSX): Ditto.
18044
18045 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
18046 (rs6000_ira_cover_classes): Ditto.
18047
18048 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
18049
18050 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
18051
18052 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
18053
18054 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
18055
18056 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
18057
18058 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
18059
18060 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
18061
18062 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
18063
18064 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
18065
18066 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
18067
2b80199f
JJ
180682011-03-29 Jakub Jelinek <jakub@redhat.com>
18069
71dae1fe
JJ
18070 PR debug/48253
18071 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
18072 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
18073 dw_fde_unlikely_section_end_label, cold_in_std_section,
18074 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
18075 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
18076 fields.
18077 (output_fde): Use dw_fde_second_{begin,end} if second is
18078 true, otherwise dw_fde_{begin,end}.
18079 (output_call_frame_info): Test dw_fde_second_begin != NULL
18080 instead of dw_fde_switched_sections.
18081 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
18082 fields, initialize new fields. Initialize in_std_section
18083 unconditionally from the first partition.
18084 (dwarf2out_end_epilogue): Don't override dw_fde_end when
18085 dw_fde_second_begin is non-NULL.
18086 (dwarf2out_switch_text_section): Stop initializing removed
18087 dw_fde_struct fields, initialize new fields, initialize
18088 also dw_fde_end here. Set dw_fde_switch_cfi even when
18089 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
18090 (struct var_loc_list_def): Add last_before_switch field.
18091 (arange_table, arange_table_allocated, arange_table_in_use,
18092 ARANGE_TABLE_INCREMENT, add_arange): Removed.
18093 (size_of_aranges): Count !in_std_section and !second_in_std_section
18094 hunks in fdes, instead of looking at arange_table_in_use.
18095 (output_aranges): Add aranges_length argument, don't call
18096 size_of_aranges here. Instead of using aranges_table*
18097 emit ranges for fdes when !in_std_section resp.
18098 !second_in_std_section.
18099 (dw_loc_list): Break ranges crossing section switch.
18100 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 18101 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
18102 (gen_subprogram_die): Don't call add_arange. Use
18103 dw_fde_{begin,end} for first partition and if switched
18104 section dw_fde_second_{begin,end} for the second.
18105 (var_location_switch_text_section_1,
18106 var_location_switch_text_section): New functions.
18107 (dwarf2out_begin_function): Initialize cold_text_section even
18108 when function_section () isn't text_section.
18109 (prune_unused_types): Don't walk arange_table.
18110 (dwarf2out_finish): Don't needlessly test
18111 flag_reorder_blocks_and_partition when testing cold_text_section_used.
18112 If info_section_emitted, call size_of_aranges and if it indicates
18113 non-empty .debug_aranges, call output_aranges with the computed
18114 size. Stop using removed dw_fde_struct fields, use
18115 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
18116 for second.
18117
2b80199f
JJ
18118 PR debug/48203
18119 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
18120 create ENTRY_VALUE if incoming or address of incoming's MEM
18121 is a hard REG.
18122 * dwarf2out.c (mem_loc_descriptor): Don't emit
18123 DW_OP_GNU_entry_value of DW_OP_fbreg.
18124 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
18125 on ENTRY_VALUE is able to find the canonical parameter VALUE.
18126 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
18127 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
18128 ENTRY_VALUE_EXPs.
18129 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
18130 is a REG_P or MEM_P with REG_P address, compute hash directly
18131 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
18132 (preserve_only_constants): Don't clear VALUES forwaring
18133 ENTRY_VALUE to some other VALUE.
18134
8a445129
RS
181352011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
18136
18137 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
18138 instead of GEN_INT.
18139
c82fee88
EB
181402011-03-28 Eric Botcazou <ebotcazou@adacore.com>
18141
18142 * cfgexpand.c (expand_gimple_cond): Always set the source location and
18143 block before expanding the statement.
18144 (expand_gimple_stmt_1): Likewise. Set them here...
18145 (expand_gimple_stmt): ...and not here. Tidy.
18146 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
18147 unknown.
18148
e45425ec
SB
181492011-03-28 Steven Bosscher <steven@gcc.gnu.org>
18150
18151 * Makefile.in: New rule for cprop.o.
18152 * gcse.c: Move constant/copy propagation to cprop.c.
18153 (compute_local_properties): Only handle expression tables.
18154 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
18155 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
18156 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
18157 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 18158 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
18159 compute_cprop_data, find_used_regs, try_replace_reg,
18160 find_avail_set, cprop_jump, constprop_register, cprop_insn,
18161 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
18162 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
18163 find_bypass_set, reg_killed_on_edge, bypass_block,
18164 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
18165 execute_rtl_cprop, pass_rtl_cprop): Move to...
18166 * cprop.c: ...here. New file, constant/copy propagation for RTL
18167 moved from gcse.c to here with minor cleanups in duplicated code.
18168
c09d5426
L
181692011-03-28 H.J. Lu <hongjiu.lu@intel.com>
18170
18171 * config/i386/i386.c (flag_opts): Fix a typo in
18172 -mavx256-split-unaligned-store.
18173
9eaa7740
AS
181742011-03-28 Anatoly Sokolov <aesok@post.ru>
18175
18176 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
18177 LIBCALL_VALUE): Remove macros.
18178 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18179 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18180 (h8300_function_value, h8300_libcall_value,
18181 h8300_function_value_regno_p): New functions.
18182
dcec2be2
AS
181832011-03-28 Anatoly Sokolov <aesok@post.ru>
18184
18185 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
18186
520af9ec
JL
181872011-03-28 Jeff Law <law@redhat.com>
18188
18189 * tree-ssa-threadupdate.c (redirect_edges): Call
18190 create_edge_and_update_destination_phis as needed.
18191 (create_edge_and_update_destination_phis): Accept new BB argument.
18192 All callers updated.
18193 (thread_block): Do not update the profile when threading around
18194 intermediate blocks.
18195 (thread_single_edge): Likewise.
18196 (determine_bb_domination_status): If BB is not a successor of the
18197 loop header, return NONDOMINATING.
18198 (register_jump_thread): Note when we register a jump thread around
18199 an intermediate block.
18200 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
18201 (thread_across_edge): Use it.
18202
7450b54f
TG
182032011-03-28 Tristan Gingold <gingold@adacore.com>
18204
18205 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
18206 when for_return is 2.
18207
649beb33
JL
182082011-03-28 Jeff Law <law@redhat.com>
18209
18210 * var-tracking.c (canonicalize_values_mark): Delete unused
18211 lhs assignment.
18212 (canonicalize_values_star, set_variable_part): Likewise.
18213 (clobber_variable_part, delete_variable_part): Likewise.
18214
d5b8da97
SB
182152011-03-28 Steven Bosscher <steven@gcc.gnu.org>
18216
18217 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
18218
322dd859
MJ
182192011-03-28 Martin Jambor <mjambor@suse.cz>
18220
18221 * tree-inline.c (expand_call_inline): Do not check that destination
18222 node is analyzed.
18223 (optimize_inline_calls): Assert that destination node is analyzed.
18224 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
18225 not call tree_lowering_passes.
18226 * cgraph.h (cgraph_analyze_function): Declare.
18227 * cgraphunit.c (cgraph_analyze_function): Make public.
18228
aa53e58b
JM
182292011-03-28 Joseph Myers <joseph@codesourcery.com>
18230
18231 * config/sparc/sparc-opts.h: New.
18232 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
18233 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
18234 (sparc_option_override): Store processor_type enumeration rather
18235 than string in cpu_default. Remove name and enumeration from
18236 cpu_table. Directly default -mcpu then default -mtune from -mcpu
18237 without using sparc_select. Use target_flags_explicit instead of
18238 fpu_option_set.
18239 * config/sparc/sparc.h (enum processor_type): Move to
18240 sparc-opts.h.
18241 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
18242 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
18243 HeaderInclude entry.
18244 (mcpu=, mtune=): Use Var and Enum.
18245 (sparc_processor_type): New Enum and EnumValue entries.
18246
dd350eba
RO
182472011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18248 Iain Sandoe <iains@gcc.gnu.org>
18249
18250 PR target/48245
18251 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
18252
1b29f05e
EB
182532011-03-28 Eric Botcazou <ebotcazou@adacore.com>
18254
18255 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
18256 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
18257 Insert new statements at it in lieu of STMT.
18258 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
18259 * tree-vect-stmts.c (vectorizable_store): Likewise.
18260 (vectorizable_load): Likewise.
18261
506e6808
UB
182622011-03-28 Uros Bizjak <ubizjak@gmail.com>
18263
18264 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
18265 (divtf3): Ditto.
18266 (multf3): Ditto.
18267 (subtf3): Ditto.
18268
2e939ee9
L
182692011-03-27 H.J. Lu <hongjiu.lu@intel.com>
18270
18271 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
18272 unaligned 256bit load/store.
18273 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
18274 (*avx_movdqu<avxmodesuffix>): Likewise.
18275
5e85ab88
JDA
182762011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18277
18278 PR target/48288
18279 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
18280 * config/pa/pa.md (iordi3): Use new predicate in expander.
18281 (iorsi3): Likewise.
18282
47be3d6d
AS
182832011-03-27 Anatoly Sokolov <aesok@post.ru>
18284
506e6808 18285 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 18286 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
18287 * config/mips/mips-protos.h (mips_function_value): Remove.
18288 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
18289 (mips_function_value_1): ... this. Make static. Handle receiving
18290 the function type in 'fn_decl_or_type' argument.
18291 (mips_function_value, mips_libcall_value,
18292 mips_function_value_regno_p): New function.
18293 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18294 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18295
d253656a
L
182962011-03-27 H.J. Lu <hongjiu.lu@intel.com>
18297
18298 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
18299 and -mavx256-split-unaligned-store.
18300 (ix86_option_override_internal): Split 32-byte AVX unaligned
18301 load/store by default.
18302 (ix86_avx256_split_vector_move_misalign): New.
18303 (ix86_expand_vector_move_misalign): Use it.
18304
18305 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
18306 -mavx256-split-unaligned-store.
18307
18308 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
18309 256bit load/store. Generate unaligned store on misaligned memory
18310 operand.
18311 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
18312 256bit load/store.
18313 (*avx_movdqu<avxmodesuffix>): Likewise.
18314
18315 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
18316 -mavx256-split-unaligned-store.
18317
1ea9206a
RS
183182011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
18319
18320 PR target/38598
18321 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
18322 Update commentary.
18323
b99ce2a8
RS
183242011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
18325
18326 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
18327 opno arguments with an expand_operand. Use create_input_operand.
18328 (mips_prepare_builtin_target): Delete.
18329 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
18330 functions.
18331 (mips_expand_builtin_direct): Use create_output_operand and
18332 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
18333 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
18334 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
18335
69d52339
IR
183362011-03-27 Ira Rosen <ira.rosen@linaro.org>
18337
18338 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
18339 function.
18340 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
18341
ba5e9aca
EB
183422011-03-26 Eric Botcazou <ebotcazou@adacore.com>
18343
18344 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
18345 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
18346 basic blocks and call commit_edge_insertions directly.
18347 (fixup_abnormal_edges): Move from here to...
18348 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
18349 on the edges and return whether some have actually been inserted.
18350 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
18351 compensation code.
18352
5d369d58
AB
183532011-03-26 Andrey Belevantsev <abel@ispras.ru>
18354
18355 PR rtl-optimization/48144
18356 * sel-sched-ir.c (merge_history_vect): Factor out from ...
18357 (merge_expr_data): ... here.
18358 (av_set_intersect): Rename to av_set_code_motion_filter.
18359 Update all callers. Call merge_history_vect when an expression
18360 is found in both sets.
18361 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
18362
f082c000
AM
183632011-03-26 Alan Modra <amodra@gmail.com>
18364
18365 * config/rs6000/predicates.md (word_offset_memref_op): Handle
18366 cmodel medium addresses.
18367 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
18368 64-bit gpr loads and stores.
18369 (rs6000_secondary_reload_ppc64): New function.
18370 * config/rs6000/rs6000-protos.h: Declare it.
18371 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
18372
8ac5e12e
AM
183732011-03-26 Alan Modra <amodra@gmail.com>
18374
18375 PR target/47487
18376 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
18377 GNU Go in traceback table.
18378
c2654ded
RH
183792011-03-25 Richard Henderson <rth@redhat.com>
18380
18381 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
18382 if there are exactly 6 operands.
18383 (set_storage_via_setmem): Similarly.
18384
ba78087b
KT
183852011-03-25 Kai Tietz <ktietz@redhat.com>
18386
18387 * collect2.c (write_c_file_stat): Handle backslash
18388 as right-hand directory separator.
18389 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
18390 checking just for slash.
18391 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
18392 instead of checking for trailing slash.
18393 * gcc.c (record_temp_file): Use filename_cmp instead
18394 of strcmp.
18395 (do_spec_1): Likewise.
18396 (replace_outfile_spec_function): Likewise.
18397 (is_directory): Use filename_ncmp instead of strncmp.
18398 (print_multilib_info): Likewise.
18399 * gcov.c (find_source): Use filename_cmp instead
18400 instead of strcmp.
18401 (make_gcov_file_name): Fix order of slash/backslash
18402 checks.
18403 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
18404 (add_standard_paths): Likewise.
18405 * mips-tfile.c (saber_stop): Handle backslash.
18406 * prefix.c (update_path): Use filename_ncmp instead of
18407 strncmp.
18408 * profile.c (output_location): Use filename_cmp instead
18409 of strcmp.
18410 * read-md.c (handle_toplevel_file): Handle backslash.
18411 * tlink.c (frob_extension): Likewise.
18412 * tree-cfg.c (same_line_p): Use filename_cmp instead of
18413 strcmp.
18414 * tree-dump.c (dequeue_and_dump): Handle backslash.
18415 * tree.c (get_file_function_name): Likewise.
18416 * gengtype.c (read_input_list): Likewise.
18417 (get_file_realbasename): Likewise.
18418 (get_output_file_with_visibility): Use filename_cmp
18419 instead of strcmp.
18420
75f6ec9a
RS
184212011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
18422
18423 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
18424 case to VFPv1.
18425
6c4e2997
NF
184262011-03-25 Nathan Froyd <froydnj@codesourcery.com>
18427
18428 * fold-const.c (expr_location_or): New function.
18429 (fold_truth_not_expr): Call it.
18430
0edf1bb2
JL
184312011-03-25 Jeff Law <law@redhat.com>
18432
18433 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
18434 va_end.
18435 * c-family/c-common.c (def_fn_type): Likewise.
18436 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
18437 * emit-rtl.c (gen_rtvec): Likewise.
18438 * lto/lto-lang.c (def_fn_type): Likewise.
18439
fdc2de95
RG
184402011-03-25 Richard Guenther <rguenther@suse.de>
18441
18442 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
18443 also generate copies.
18444 (fini_copy_prop): Handle constant values properly.
18445
21385db0
JJ
184462011-03-25 Jakub Jelinek <jakub@redhat.com>
18447
18448 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
18449 mode size instead of bitsize with DWARF2_ADDR_SIZE.
18450 (hash_loc_operands, compare_loc_operands): Handle
18451 DW_OP_GNU_entry_value.
18452
6510e8bb
KT
184532011-03-25 Kai Tietz <ktietz@redhat.com>
18454
18455 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
18456 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
18457 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
18458 comment and use macro TARGET_64BIT_MS_ABI instead.
18459 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
18460 and change default behavior for 32-bit MS_ABI.
18461 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
18462 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
18463 32-bit, too.
18464 (ix86_cfun_abi): Likewise.
18465 (ix86_maybe_switch_abi): Adjust comment.
18466 (init_cumulative_args): Check for bit-ness in MS_ABI case.
18467 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
18468 instead of checking for SYSV_ABI.
18469 (ix86_nsaved_sseregs): Likewise.
18470 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
18471 to 16 bytes.
18472 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
18473 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
18474 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
18475 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
18476 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
18477
34019e28
RG
184782011-03-25 Richard Guenther <rguenther@suse.de>
18479
18480 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
18481 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
18482 (verify_gimple): Remove.
18483 * tree-cfg.c (verify_gimple_call): Merge verification
18484 from verify_stmts.
18485 (verify_gimple_phi): Merge verification from verify_stmts.
18486 (verify_gimple_label): New function.
18487 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
18488 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
18489 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
18490 (verify_stmts): Rename to verify_gimple_in_cfg.
18491 (verify_gimple_in_cfg): New function.
18492 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
18493 * tree-ssa.c (verify_ssa): Likewise.
18494 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
18495
605896f5
RG
184962011-03-25 Richard Guenther <rguenther@suse.de>
18497
18498 * passes.c (init_optimization_passes): Add FRE pass after
18499 early SRA.
18500
7baa7c13
BS
185012011-03-25 Bernd Schmidt <bernds@codesourcery.com>
18502 Andrew Stubbs <ams@codesourcery.com>
18503
18504 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
18505 for Cortex-A8.
18506 (arm_movdi_vfp_cortexa8): New pattern.
18507 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
18508 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
18509 instructions when tuning for Cortex-A8. Set attribute "arch".
18510 * config/arm/arm.md: Move include arm-tune.md up a bit.
18511 (define_attr "arch"): Add "onlya8" and "nota8" values.
18512 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
18513
45dbce1b
NF
185142011-03-25 Nathan Froyd <froydnj@codesourcery.com>
18515
4ff08abf 18516 PR bootstrap/48282
45dbce1b
NF
18517 Revert:
18518 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
18519
18520 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
18521 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
18522 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
18523 * passes.c (init_optimization_passes): Move
18524 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
18525
ac9a30ae
KT
185262011-03-25 Kai Tietz <ktietz@redhat.com>
18527
18528 * c-typeck.c (comptypes_internal): Replace target
18529 hook call of comp_type_attributes by version in tree.c file.
18530 * gimple.c (gimple_types_compatible_p_1): Likewise.
18531 * tree-ssa.c (useless_type_conversion_p): Likewise.
18532 * tree.c (build_type_attribute_qual_variant): Likewise.
18533 (attribute_value_equal): New static helper function.
18534 (comp_type_attributes): New function.
18535 (merge_attributes): Use attribute_value_equal for comparison.
18536 (attribute_list_contained): Likewise.
18537 * tree.h (comp_type_attributes): New prototype.
18538
afdac116
RG
185392011-03-25 Richard Guenther <rguenther@suse.de>
18540
18541 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
18542 of complex types at -O0.
18543 (verify_gimple_assign_binary): Likewise.
18544 (verify_gimple_assign_ternary): Likewise.
18545
ec6165f8
MW
185462011-03-24 Mark Wielaard <mjw@redhat.com>
18547
18548 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
18549 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
18550
2a5ac39a
MW
185512011-03-24 Mark Wielaard <mjw@redhat.com>
18552
18553 PR debug/48041
18554 * dwarf2out.c (output_abbrev_section): Only write table when
18555 abbrev_die_table_in_use > 1.
18556
e533b2a4
RH
185572011-02-24 Richard Henderson <rth@redhat.com>
18558
18559 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
18560 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
18561 (alpha_expand_unaligned_load_words): Use extql.
18562 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
18563 (emit_insxl): Handle all modes for consistency.
18564
0b2a7367
RH
185652011-02-24 Richard Henderson <rth@redhat.com>
18566
18567 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
18568 (alpha_expand_unaligned_load): Likewise.
18569 (alpha_expand_unaligned_store): Likewise.
18570 (alpha_expand_unaligned_load_words): Likewise.
18571 (alpha_expand_unaligned_store_words): Likewise.
18572 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
18573 (alpha_split_lock_test_and_set_12): Likewise.
18574 (print_operand, alpha_fold_builtin_extxx): Likewise.
18575 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
18576 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
18577 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
18578 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
18579 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
18580 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
18581 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
18582 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
18583 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
18584 (extwl, extll, extql): Similarly.
18585 (inswh, inslh, insqh): Similarly.
18586 (mskbl, mskwl, mskll, mskql): Similarly.
18587 (mskwh, msklh, mskqh): Similarly.
18588
315b2bef
RH
185892011-02-24 Richard Henderson <rth@redhat.com>
18590
18591 * config/alpha/alpha.md (attribute isa): Add er, ner.
18592 (attribute enabled): Handle them.
18593 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
18594
67102517
RH
185952011-02-24 Richard Henderson <rth@redhat.com>
18596
18597 * config/alpha/alpha.md (attribute isa): Add vms.
18598 (attribute enabled): Handle it.
18599 (*movsf): Merge *movsf_{nofix,fix,nofp}.
18600 (*movdf): Merge *movdf_{nofix,fix,nofp}.
18601 (*movtf): Rename from *movtf_internal for consistency.
18602 (*movsi): Merge with *movsi_nt_vms.
18603 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
18604 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
18605 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
18606 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
18607
6aba5cb4
RH
186082011-02-24 Richard Henderson <rth@redhat.com>
18609
18610 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
18611 (extendqisi2, extendhisi2): Likewise.
18612 (extendqidi2): Simplify BWX/non-BWX expansions.
18613 (extendhidi2): Similarly.
18614
bdfb351b
RH
186152011-02-24 Richard Henderson <rth@redhat.com>
18616
18617 * config/alpha/alpha.md (attribute isa): New.
18618 (attribute enabled): New.
18619 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
18620 (zero_extendqisi2, zero_extendqidi2): Similarly.
18621 (zero_extendhisi2, zero_extendhidi2): Similarly.
18622 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
18623
6abe71eb
RH
186242011-02-24 Richard Henderson <rth@redhat.com>
18625
18626 * config/alpha/predicates.md (input_operand): Revert last change;
18627 update comment to mention 32-bit VMS rather than Windows.
18628
7114321e
NF
186292011-03-24 Nathan Froyd <froydnj@codesourcery.com>
18630
18631 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
18632 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
18633 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
18634 * passes.c (init_optimization_passes): Move
18635 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
18636
c8679567
EB
186372011-03-24 Eric Botcazou <ebotcazou@adacore.com>
18638
18639 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
18640
27173058
UB
186412011-03-24 Uros Bizjak <ubizjak@gmail.com>
18642
18643 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
18644 correctly.
18645
6f0c9f06
JJ
186462011-03-24 Jakub Jelinek <jakub@redhat.com>
18647
18648 PR debug/48204
18649 * simplify-rtx.c (simplify_const_unary_operation): Call
18650 real_convert when changing mode class with FLOAT_EXTEND.
18651
662666e5
NC
186522011-03-24 Nick Clifton <nickc@redhat.com>
18653
18654 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
18655 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
18656 * config/rx/rx.c (rx_option_override): Set align_jumps,
18657 align_loops and align_labels if not set by the user.
18658 (rx_align_for_label): New function.
18659 (rx_max_skip_for_label): New function.
18660 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
18661 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
18662 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
18663 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
18664 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
18665
2b99b2b8
RS
186662011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
18667
18668 PR rtl-optimization/48263
18669 * optabs.c (expand_binop_directly): Reinstate convert_modes code
18670 and original commutative_p handling. Use maybe_gen_insn.
18671
ccecd6ea
AK
186722011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18673
18674 * reload.c (find_reloads_subreg_address): Add address_reloaded
18675 parameter and return true there if the full address has been
18676 reloaded.
18677 (find_reloads_toplev): Pass address_reloaded flag.
18678 (find_reloads_address_1): Don't use address_reloaded parameter.
18679
67295642
JL
186802011-03-24 Jeff Law <law@redhat.com>
18681
18682 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
18683 unused variable "ann".
18684 (remove_unused_locals): Likewise.
18685
18686 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
18687 statement.
18688
18689 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
18690 after it is freed.
18691
212aa74f
AK
186922011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18693
18694 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
18695 for invalid symbolic addresses.
18696 (s390_secondary_reload): Don't use s390_check_symref_alignment for
18697 larl operands.
18698
fe784e0d
EB
186992011-03-24 Eric Botcazou <ebotcazou@adacore.com>
18700
18701 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
18702 the argument in calls to fold_truth_not_expr.
18703
63ee8641
NF
187042011-03-24 Nathan Froyd <froydnj@codesourcery.com>
18705
18706 * tree.c (record_node_allocation_statistics): New function.
18707 (make_node_stat, copy_node_stat, build_string): Call it.
18708 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
18709 (build1_stat, build_omp_clause): Likewise.
18710
61be2a1c
RS
187112011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
18712
18713 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
18714 last commit.
18715
a881aaa7
RG
187162011-03-24 Richard Guenther <rguenther@suse.de>
18717
18718 PR tree-optimization/48271
18719 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
18720 blocks that still exist.
18721
dbaa912c
RG
187222011-03-24 Richard Guenther <rguenther@suse.de>
18723
18724 PR tree-optimization/48270
18725 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
18726 not free datarefs before ddrs.
18727
1d60cc55
EB
187282011-03-24 Eric Botcazou <ebotcazou@adacore.com>
18729
18730 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
18731 from the address built for a reference with variable offset.
18732
c78dd519
UB
187332011-03-24 Uros Bizjak <ubizjak@gmail.com>
18734
18735 PR target/48237
18736 * config/i386/i386.md (*movdf_internal_rex64): Do not split
18737 alternatives that can be handled with movq or movabsq insn.
18738 (*movdf_internal): Disable for !TARGET_64BIT.
18739 (*movdf_internal_nointeger): Ditto.
18740 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
18741
b25b9e8f
NF
187422011-03-24 Nathan Froyd <froydnj@codesourcery.com>
18743
18744 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
18745 (FUNCTION_ARG_ADVANCE): Likewise.
18746 * tm.texi.in: Change references to them to hook references.
18747 * tm.texi: Regenerate.
c78dd519 18748 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
18749 (default_function_incoming_arg): Likewise.
18750 (default_function_arg_advance): Likewise.
c78dd519 18751 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
18752 (function_arg_advance): Likewise.
18753 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
18754
190b2187
RG
187552011-03-24 Richard Guenther <rguenther@suse.de>
18756
18757 PR middle-end/48269
18758 * tree-object-size.c (addr_object_size): Do not double-account
18759 for MEM_REF offsets.
18760
a183b5c7
DN
187612011-03-24 Diego Novillo <dnovillo@google.com>
18762
18763 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 18764 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
18765 (lto_input_data_block): Move from lto-opts.c. Make extern.
18766 Update all users.
18767 (lto_input_string): Rename from input_string. Make extern.
18768 Update all users.
18769 * lto-streamer-out.c (lto_output_string_with_length): Rename from
18770 output_string_with_length.
18771 Output 0 to indicate a non-NULL string. Update all callers to
18772 not emit 0.
18773 (lto_output_string): Rename from output_string. Make extern.
18774 Update all users.
18775 (lto_output_decl_state_streams): Make extern.
18776 (lto_output_decl_state_refs): Make extern.
18777 * lto-streamer.h (lto_input_string): Declare.
18778 (lto_input_data_block): Declare.
18779 (lto_output_string): Declare.
18780 (lto_output_string_with_length): Declare.
18781 (lto_output_decl_state_streams): Declare.
18782 (lto_output_decl_state_refs): Declare.
18783
cfef45c8
RG
187842011-03-24 Richard Guenther <rguenther@suse.de>
18785
18786 PR tree-optimization/46562
18787 * tree.c (build_invariant_address): New function.
18788 * tree.h (build_invariant_address): Declare.
18789 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
18790 a renamed function moved ...
18791 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
18792 Take valueization callback parameter.
18793 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
18794 * gimple-fold.h: New file.
18795 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
18796 (ccp_fold, fold_const_aggregate_ref,
18797 fold_ctor_reference, fold_nonarray_ctor_reference,
18798 fold_array_ctor_reference, fold_string_cst_ctor_reference,
18799 get_base_constructor): Move ...
18800 * gimple-fold.c: ... here.
18801 (gimple_fold_stmt_to_constant_1): New function
18802 split out from ccp_fold. Take a valueization callback parameter.
18803 Valueize all operands.
18804 (gimple_fold_stmt_to_constant): New wrapper function.
18805 (fold_const_aggregate_ref_1): New function split out from
18806 fold_const_aggregate_ref. Take a valueization callback parameter.
18807 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
18808 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
18809 invariant POINTER_PLUS_EXPRs to invariant form.
18810 (vn_valueize): New function.
18811 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
18812 * tree-vrp.c (vrp_valueize): New function.
18813 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
18814 to fold statements to constants.
18815 * tree-ssa-pre.c (eliminate): Properly guard propagation of
18816 function declarations.
18817 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
18818 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
18819
5e0a7e40
RS
188202011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
18821
18822 * config/h8300/predicates.md (jump_address_operand): Fix register
18823 mode check.
18824
bfe068c3
IR
188252011-03-24 Ira Rosen <ira.rosen@linaro.org>
18826
18827 * doc/invoke.texi (max-stores-to-sink): Document.
18828 * params.h (MAX_STORES_TO_SINK): Define.
18829 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
18830 if either vectorization or if-conversion is disabled.
18831 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
18832 tree-vect-data-refs.c vect_equal_offsets.
18833 (dr_equal_offsets_p): New function.
18834 (find_data_references_in_bb): Remove static.
18835 * tree-data-ref.h (find_data_references_in_bb): Declare.
18836 (dr_equal_offsets_p): Likewise.
18837 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
18838 (vect_drs_dependent_in_basic_block): Update calls to
18839 vect_equal_offsets.
18840 (vect_check_interleaving): Likewise.
18841 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
18842 (cond_if_else_store_replacement): Rename to...
18843 (cond_if_else_store_replacement_1): ... this. Change arguments and
18844 documentation.
18845 (cond_if_else_store_replacement): New function.
18846 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
18847 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
18848
4908b0bf
CLT
188492011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
18850
18851 PR target/46934
18852 * config/arm/arm.md (casesi): Use the gen_int_mode() function
18853 to subtract lower bound instead of GEN_INT().
18854
2be478a2
JW
188552011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
18856
18857 PR other/48179
18858 PR other/48221
18859 PR other/48234
18860 * doc/extend.texi (Alignment): Move section to match order in TOC.
18861 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
18862 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
18863
0c617be4
JL
188642011-03-23 Jeff Law <law@redhat.com>
18865
18866 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
18867 before removing the edge.
18868
18869 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
18870 it may have been freed by redirect_branch_edge or
18871 redirect_edge_succ_nodup.
18872
58da96fe
RG
188732011-03-23 Richard Guenther <rguenther@suse.de>
18874
c78dd519 18875 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
18876 (check_va_list_escapes): Likewise.
18877 (check_all_va_list_escapes): Likewise.
18878
b8beb4d1
RG
188792011-03-23 Richard Guenther <rguenther@suse.de>
18880
18881 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
18882 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
18883 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
18884 (alias.o): Likewise.
18885 (ipa-type-escape.o): Remove.
18886 (ipa-struct-reorg.o): Likewise.
18887 (GTFILES): Remove ipa-struct-reorg.c.
18888 * alias.c: Do not include ipa-type-escape.h.
18889 * tree-ssa-alias.c: Likewise.
18890 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
18891 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
18892 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
18893 and ipa-type-escape passes.
18894 * tree-pass.h (pass_ipa_type_escape): Remove.
18895 (pass_ipa_struct_reorg): Likewise.
18896 * ipa-struct-reorg.h: Remove.
18897 * ipa-struct-reorg.c: Likewise.
18898 * ipa-type-escape.h: Likewise.
18899 * ipa-type-escape.c: Likewise.
18900 * doc/invoke.texi (-fipa-struct-reorg): Remove.
18901 (--param struct-reorg-cold-struct-ratio): Likewise.
18902 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
18903 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
18904 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
18905
f137aa63
AK
189062011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18907
18908 * config/s390/2084.md: Enable all insn reservations also for z9_ec
18909 cpu attribute value.
18910 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
18911 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
18912 * config/s390/s390.c (processor_flags_table): New constant array.
18913 (s390_handle_arch_option): Remove.
18914 (s390_handle_option): Remove s390_handle_arch_option invocations
18915 and OPT_mwarn_framesize_ handling.
18916 (s390_option_override): Remove s390_handle_arch_option invocation.
18917 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
18918 warnings.
18919 * config/s390/s390.md (cpu attribute): Add z9_ec value.
18920 * config/s390/s390.opt (s390_tune, s390_arch)
18921 (march=): Replace s390_arch_option enum and values with
18922 processor_type. Set variable name to s390_arch. Set
18923 initialization value.
18924 (mtune=): Replace s390_arch_option with processor_type. Set
18925 variable name to s390_tune. Set initialization value.
18926
bf90208f
JB
189272011-03-23 Julian Brown <julian@codesourcery.com>
18928
18929 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
18930 accesses which are not naturally aligned.
18931
3460fdf3
RS
189322011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
18933
18934 PR target/47553
18935 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
18936
a5c7d693
RS
189372011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
18938
18939 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
18940 parameter from "int" to "enum insn_code".
18941 (expand_operand_type): New enum.
18942 (expand_operand): New structure.
18943 (create_expand_operand): New function.
18944 (create_fixed_operand, create_output_operand): Likewise
18945 (create_input_operand, create_convert_operand_to): Likewise.
18946 (create_convert_operand_from, create_address_operand): Likewise.
18947 (create_integer_operand): Likewise.
18948 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
18949 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
18950 (expand_insn, expand_jump_insn): Likewise.
18951 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
18952 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
18953 (expand_movstr, expand_builtin___clear_cache): Likewise.
18954 (expand_builtin_lock_release): Likewise.
18955 * explow.c (allocate_dynamic_stack_space): Likewise.
18956 (probe_stack_range): Likewise. Allow check_stack to FAIL,
18957 and use the default handling in that case.
18958 * expmed.c (check_predicate_volatile_ok): Delete.
18959 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
18960 (emit_cstore): Likewise.
18961 * expr.c (emit_block_move_via_movmem): Likewise.
18962 (set_storage_via_setmem, expand_assignment): Likewise.
18963 (emit_storent_insn, try_casesi): Likewise.
18964 (emit_single_push_insn): Likewise. Allow the expansion to fail.
18965 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
18966 (expand_vec_shift_expr, expand_binop_directly): Likewise.
18967 (expand_twoval_unop, expand_twoval_binop): Likewise.
18968 (expand_unop_direct, emit_indirect_jump): Likewise.
18969 (emit_conditional_move, vector_compare_rtx): Likewise.
18970 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
18971 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
18972 (expand_sync_lock_test_and_set): Likewise.
18973 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
18974 (emit_unop_insn): Likewise.
18975 (expand_copysign_absneg): Change icode to an insn_code.
18976 (create_convert_operand_from_type): New function.
18977 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
18978 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
18979 (expand_insn, expand_jump_insn): Likewise.
18980 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
18981 than const_int_operand for operand 2.
18982
78fadbab
AK
189832011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18984
18985 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
18986 if possible.
18987
5f02387d
NF
189882011-03-22 Nathan Froyd <froydnj@codesourcery.com>
18989
18990 * emit-rtl.c (emit_pattern_before_noloc): New function.
18991 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
18992 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
18993 (emit_pattern_after_noloc): New function.
18994 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
18995 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
18996
fdf3e18a
NF
189972011-03-22 Nathan Froyd <froydnj@codesourcery.com>
18998
18999 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
19000 (__ffsDI2): Likewise.
19001
42d085c1
RH
190022011-03-22 Richard Henderson <rth@redhat.com>
19003
19004 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
19005 of !TARGET_ABI_OPEN_VMS.
19006 (alpha_trampoline_init, alpha_start_function): Likewise.
19007 (alpha_expand_epilogue, alpha_file_start): Likewise.
19008 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
19009 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
19010 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
19011 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
19012 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
19013
cabbe12a
JM
190142011-03-22 Joseph Myers <joseph@codesourcery.com>
19015
19016 * config/s390/s390-opts.h: New.
19017 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
19018 s390_arch_flags, s390_warn_framesize, s390_stack_size,
19019 s390_stack_guard): Remove.
19020 (s390_handle_arch_option): Return void. Take enum
19021 s390_arch_option value instead of string and searching array.
19022 (s390_handle_option): Don't assert that global structures are in
19023 use. Access variables via opts pointer. Use error_at. Don't use
19024 sscanf for -mstack-guard= or -mstack-size=. Update call to
19025 s390_handle_arch_option.
19026 (s390_option_override): Update call to s390_handle_arch_option.
19027 (s390_emit_prologue): Use %d format for s390_stack_size in
19028 diagnostic. Use %wd for HOST_WIDE_INT.
19029 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
19030 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
19031 * config/s390/s390.opt (config/s390/s390-opts.h): New
19032 HeaderInclude entry.
19033 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
19034 s390_arch_flags, s390_warn_framesize): New Variable entries.
19035 (s390_arch_option): New Enum and EnumValue entries.
19036 (march=): Use Enum instead of Var.
19037 (mstack-guard=, mstack-size=): Use UInteger and Var.
19038 (mtune=): Use Enum.
19039
05b12036
JM
190402011-03-22 Joseph Myers <joseph@codesourcery.com>
19041
19042 * config/score/score.c (score_handle_option): Don't assert that
19043 global structures are in use. Access target_flags via opts
19044 pointer. Use value of -march= option to determine target_flags
19045 settings.
19046 * config/score/score.opt (march=): Use Enum.
19047 (score_arch): New Enum and EnumValue entries.
19048
dd51e35a
JM
190492011-03-22 Joseph Myers <joseph@codesourcery.com>
19050
19051 * config/mep/mep.c (option_mtiny_specified): Remove.
19052 (mep_option_override): Move register handling for -mivc2 from
19053 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
19054 instead of option_mtiny_specified.
19055 (mep_handle_option): Access target_flags via opts pointer. Don't
19056 assert that global structures are in use. Defer part of -mivc2
19057 handling and move it to mep_option_override.
19058 * config/mep/mep.opt (IVC2): New Mask entry.
19059 (mivc2): Use Var and Defer instead of Mask.
19060
4a8d3d91
JM
190612011-03-22 Joseph Myers <joseph@codesourcery.com>
19062
19063 * config/v850/v850-opts.h: New.
19064 * config/v850/v850.c (small_memory): Replace with
19065 small_memory_physical_max array. Make that array static const.
19066 (v850_handle_memory_option): Take integer value of argument. Take
19067 gcc_options pointer, option text and location. Return void.
19068 Update for changes to small memory structures.
19069 (v850_handle_option): Access target_flags via opts pointer. Don't
19070 assert that global structures are in use. Update calls to
19071 v850_handle_memory_option.
c78dd519
UB
19072 (v850_encode_data_area): Update references to small memory settings.
19073 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
19074 (enum small_memory_type): Move to v850-opts.h.
19075 * config/v850/v850.opt (config/v850/v850-opts.h): New
19076 HeaderInclude entry.
19077 (small_memory_max): New Variable entry.
19078 (msda): Replace by pair of options msda= and msda-. Use UInteger.
19079 (mtda, mzda): Likewise.
19080
117fdbfa
JM
190812011-03-22 Joseph Myers <joseph@codesourcery.com>
19082
19083 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
19084 pointer. Don't assert that global structures are in use.
19085
d715091c
JM
190862011-03-22 Joseph Myers <joseph@codesourcery.com>
19087
19088 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
19089 via opts pointer. Don't assert that global structures are in use.
19090
1bb721dc
JM
190912011-03-22 Joseph Myers <joseph@codesourcery.com>
19092
19093 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
19094 (munix=93): Use Var.
19095 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
19096 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
19097 * config/pa/pa-opts.h: New.
19098 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
19099 (pa_handle_option): Don't assert that global structures are in
19100 use. Access target_flags via opts pointer. Don't handle
19101 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
19102 OPT_munix_98 here.
19103 (pa_option_override): Handle deferred OPT_mfixed_range_.
19104
cd8d8754
JM
191052011-03-22 Joseph Myers <joseph@codesourcery.com>
19106
19107 * config/mn10300/mn10300-opts.h: New.
19108 * config/mn10300/mn10300.c (mn10300_processor,
19109 mn10300_tune_string): Remove.
19110 (mn10300_handle_option): Don't assert that global structures are
19111 in use. Access mn10300_processor via opts pointer. Don't handle
19112 OPT_mtune_ here.
19113 * config/mn10300/mn10300.h (enum processor_type): Move to
19114 mn10300-opts.h.
19115 (mn10300_processor): Remove.
19116 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
19117 HeaderInclude entry.
19118 (mn10300_processor): New Variable entry.
19119 (mtune=): Use Var.
19120
24e6e6b1
JM
191212011-03-22 Joseph Myers <joseph@codesourcery.com>
19122
19123 * config/microblaze/microblaze.c: Don't include opts.h.
19124 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
19125 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
19126 (mno-clearbss): Use Var and Warn.
19127
8a784afb
JM
191282011-03-22 Joseph Myers <joseph@codesourcery.com>
19129
19130 * config/m32r/m32r-opts.h: New.
19131 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
19132 (m32r_handle_option): Don't assert that global structures are in
19133 use. Access target_flags and m32r_cache_flush_func via opts
19134 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
19135 OPT_mno_flush_trap here.
19136 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
19137 include of m32r-opts.h.
19138 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
19139 HeaderInclude entry.
19140 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
19141 (mmodel=): Use Enum and Var.
19142 (m32r_model): New Enum and EnumValue entries.
19143 (mno-flush-trap): Use Var.
19144 (msdata=): Use Enum and Var.
19145 (m32r_sdata): New Enum and EnumValue entries.
19146
bbfc9a8c
JM
191472011-03-22 Joseph Myers <joseph@codesourcery.com>
19148
19149 * config/m32c/m32c.c: Don't include opts.h.
19150 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
19151 m32c_handle_option): Remove.
19152 (m32c_option_override): Check global_options_set.x_target_memregs
19153 instead of target_memregs_set.
19154 * config/m32c/m32c.h (target_memregs): Remove.
19155 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
19156 variable.
19157
e24b8335
JM
191582011-03-22 Joseph Myers <joseph@codesourcery.com>
19159
19160 * config/iq2000/iq2000-opts.h: New.
19161 * config/iq2000/iq2000.c: Don't include opts.h.
19162 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 19163 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
19164 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
19165 HeaderInclude entry.
19166 (iq2000_tune): New Variable entry.
19167 (march=): Add comment. Use Enum.
19168 (iq2000_arch): New Enum and EnumValue entries.
19169 (mcpu=): Use Enum and Var.
19170 (iq2000_tune): New Enum and EnumValue entries.
19171
e6cc0c98
JM
191722011-03-22 Joseph Myers <joseph@codesourcery.com>
19173
19174 * config/ia64/ia64-opts.h: New.
19175 * config/ia64/ia64.c (ia64_tune): Remove.
19176 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
19177 here. Use error_at.
19178 (ia64_option_override): Handle deferred OPT_mfixed_range_.
19179 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
19180 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
19181 HeaderInclude entry.
19182 (ia64_tune): New Variable entry.
19183 (mfixed-range=): Use Defer and Var.
19184 (mtune=): Use Enum and Var.
19185 (ia64_tune): New Enum and EnumValue entries.
19186
db25893c
JM
191872011-03-22 Joseph Myers <joseph@codesourcery.com>
19188
19189 * config/frv/frv-opts.h: New.
19190 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
19191 frv-opts.h.
19192 (frv_cpu_type): Remove.
19193 * config/frv/frv.c: Don't include opts.h.
19194 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 19195 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
19196 (frv_cpu_type): New Variable entry.
19197 (frv_cpu): New Enum and EnumValue entries.
19198
6c223f5d
JM
191992011-03-22 Joseph Myers <joseph@codesourcery.com>
19200
19201 * config/cris/cris.c (cris_handle_option): Access target_flags via
19202 opts pointer. Don't assert that global structures are in use.
19203 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
19204 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
19205
bbd399cf
JM
192062011-03-22 Joseph Myers <joseph@codesourcery.com>
19207
19208 * config/bfin/bfin-opts.h: New.
19209 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
19210 bfin_si_revision, bfin_workarounds): Remove.
19211 (bfin_cpus): Make static const.
19212 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
19213 not bfin_lib_id_given.
19214 (bfin_handle_option): Don't set bfin_lib_id_given. Access
19215 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 19216 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
19217 * config/bfin/bfin.h: Include bfin-opts.h.
19218 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
19219 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
19220 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
19221 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
19222 entries.
19223
5e1b4d5a
JM
192242011-03-22 Joseph Myers <joseph@codesourcery.com>
19225
19226 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
19227 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
19228 or -msoft-float here.
19229 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
19230 -msoft-float and -mhard-float.
c78dd519 19231 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
19232 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
19233 msoft-float.
19234 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
19235 -msoft-float.
19236 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
19237 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
19238 not mhard-float.
19239 (LIBGCC_SPEC): Don't handle -msoft-float.
19240 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
19241 -mhard-float.
19242 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
19243 msoft-float.
19244 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
19245 -mfloat-abi=*, not -msoft-float and -mhard-float.
19246 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
19247 -msoft-float.
19248 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
19249 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
19250 mhard-float and msoft-float.
19251 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
19252 mfloat-abi=soft in comments, not mhard-float and msoft-float.
19253 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
19254 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
19255 mhard-float.
19256 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
19257 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
19258 msoft-float.
19259 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
19260 not mhard-float.
19261 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
19262 not msoft-float.
19263
800d1de1
RH
192642011-03-22 Richard Henderson <rth@redhat.com>
19265
19266 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
19267 TARGET_ABI_WINDOWS_NT.
19268 (alpha_output_function_end_prologue): Likewise.
19269 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
19270 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19271 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
19272 (trap, *movsi_nt_vms): Likewise.
19273 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
19274 (*tablejump_osf_nt_internal): Remove.
19275 * config/alpha/predicates.md (input_operand): Only test Pmode.
19276
c59ddd2b
JM
192772011-03-22 Joseph Myers <joseph@codesourcery.com>
19278
19279 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
19280 via opts pointer. Use error_at. Don't assert that global
19281 structures are in use.
19282
1333f97f
JM
192832011-03-22 Joseph Myers <joseph@codesourcery.com>
19284
19285 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
19286 (ix86_handle_option): Access ix86_isa_flags and
19287 ix86_isa_flags_explicit via opts pointer. Don't assert that
19288 global structures are in use.
19289 (ix86_function_specific_save, ix86_function_specific_restore):
19290 Update ix86_isa_flags_explicit field name.
c78dd519 19291 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
19292 (ix86_isa_flags_explicit): Rename TargetSave entry to
19293 x_ix86_isa_flags_explicit.
19294
75db85d8
RH
192952011-03-22 Richard Henderson <rth@redhat.com>
19296
19297 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
19298 (alpha_option_override, direct_return): Likewise.
19299 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
19300 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
19301 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
19302 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
19303 (alpha_expand_epilogue, alpha_end_function): Likewise.
19304 (alpha_init_libfuncs): Likewise.
19305 (struct machine_function): Remove unicosmk members.
19306 (print_operand) ['t']: Remove.
19307 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
19308 unicosmk_output_module_name, unicosmk_output_common,
19309 current_section_align, unicosmk_output_text_section_asm_op,
19310 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
19311 unicosmk_section_type_flags, unicosmk_unique_section,
19312 unicosmk_asm_named_section, unicosmk_insert_attributes,
19313 unicosmk_output_align, unicosmk_defer_case_vector,
19314 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
19315 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
19316 unicosmk_output_ssib, unicosmk_add_call_info_word,
19317 unicosmk_extern_head, unicosmk_output_default_externs,
19318 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
19319 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
19320 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
19321 * config/alpha/alpha-protos.h: Update.
19322 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
19323 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
19324 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
19325 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
19326 (*mulsi_se, mulvsi3): Likewise.
19327 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
19328 (*divmodsi_internal, call, call_value, realign): Likewise.
19329 (moddi3, umoddi3): Likewise; remove duplicate expander.
19330 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
19331 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
19332 (*movdi_nofix): Remove r/U alternative.
19333 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
19334 * config/alpha/constraints.md ("U"): Remove.
19335 * config/alpha/predicates.md (call_operand"): Don't test
19336 TARGET_ABI_UNICOSMK.
19337
96e45421
JM
193382011-03-22 Joseph Myers <joseph@codesourcery.com>
19339
19340 * target.def (handle_option): Take gcc_options and
19341 cl_decoded_option pointers and location_t.
19342 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
19343 * doc/tm.texi: Regenerate.
19344 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
19345 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
19346 * lto-opts.c (lto_reissue_options): Generate option structure for
19347 targetm.handle_option call.
19348 * opts.c (target_handle_option): Update call to
19349 targetm.handle_option. Remove assertions about values now passed
19350 down to hook.
19351 * targhooks.c (default_target_handle_option): New.
19352 * targhooks.h (default_target_handle_option): Declare.
19353 * config/alpha/alpha.c: Include opts.h.
19354 (alpha_handle_option): Update to new hook interface.
19355 * config/arm/arm.c: Include opts.h.
19356 (arm_handle_option): Update to new hook interface.
19357 * config/arm/t-arm (arm.o): Update dependencies.
19358 * config/bfin/bfin.c: Include opts.h.
19359 (bfin_handle_option): Update to new hook interface.
19360 * config/cris/cris.c: Include opts.h.
19361 (cris_handle_option): Update to new hook interface.
19362 * config/frv/frv.c: Include opts.h.
19363 (frv_handle_option): Update to new hook interface.
19364 * config/i386/i386.c: Include opts.h.
19365 (ix86_handle_option): Update to new hook interface.
19366 (ix86_valid_target_attribute_inner_p): Generate option structure
19367 for call to ix86_handle_option.
19368 * config/i386/t-i386 (i386.o): Update dependencies.
19369 * config/ia64/ia64.c: Include opts.h.
19370 (ia64_handle_option): Update to new hook interface.
19371 * config/ia64/t-ia64 (ia64.o): Update dependencies.
19372 * config/iq2000/iq2000.c: Include opts.h.
19373 (iq2000_handle_option): Update to new hook interface.
19374 * config/m32c/m32c.c: Include opts.h.
19375 (m32c_handle_option): Update to new hook interface.
19376 * config/m32r/m32r.c: Include opts.h.
19377 (m32r_handle_option): Update to new hook interface.
19378 * config/m68k/m68k.c: Include opts.h.
19379 (m68k_handle_option): Update to new hook interface.
19380 * config/mep/mep.c: Include opts.h.
19381 (mep_handle_option): Update to new hook interface.
19382 * config/microblaze/microblaze.c: Include opts.h.
19383 (microblaze_handle_option): Update to new hook interface.
19384 * config/mips/mips.c: Include opts.h.
19385 (mips_handle_option): Update to new hook interface.
19386 * config/mn10300/mn10300.c: Include opts.h.
19387 (mn10300_handle_option): Update to new hook interface.
19388 * config/pa/pa.c: Include opts.h.
19389 (pa_handle_option): Update to new hook interface.
19390 * config/pdp11/pdp11.c: Include opts.h.
19391 (pdp11_handle_option): Update to new hook interface.
19392 * config/rs6000/rs6000.c: Include opts.h.
19393 (rs6000_handle_option): Update to new hook interface.
19394 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
19395 * config/rx/rx.c: Include opts.h.
19396 (rx_handle_option): Update to new hook interface.
19397 * config/s390/s390.c: Include opts.h.
19398 (s390_handle_option): Update to new hook interface.
19399 * config/score/score.c: Include opts.h.
19400 (score_handle_option): Update to new hook interface.
19401 * config/sh/sh.c: Include opts.h.
19402 (sh_handle_option): Update to new hook interface.
19403 * config/sparc/sparc.c: Include opts.h.
19404 (sparc_handle_option): Update to new hook interface.
19405 * config/v850/v850.c: Include opts.h.
19406 (v850_handle_option): Update to new hook interface.
19407
66017846
JM
194082011-03-22 Joseph Myers <joseph@codesourcery.com>
19409
19410 * gcc.c (driver_unknown_option_callback): Only permit and save
19411 unknown -Wno- options.
19412 (driver_wrong_lang_callback): Save options directly instead of via
19413 driver_unknown_option_callback.
19414
e8b97ccd
EB
194152011-03-22 Eric Botcazou <ebotcazou@adacore.com>
19416
19417 * combine.c (simplify_set): Try harder to find the best CC mode when
19418 simplifying a nested COMPARE on the RHS.
19419
ebb9f8b0
JM
194202011-03-22 Joseph Myers <joseph@codesourcery.com>
19421
19422 * config/alpha/gnu.h: Remove.
19423 * config/arc: Remove directory.
19424 * config/arm/netbsd.h: Remove.
19425 * config/arm/t-pe: Remove.
19426 * config/crx: Remove directory.
19427 * config/i386/netbsd.h: Remove.
19428 * config/m68hc11: Remove directory.
19429 * config/m68k/uclinux-oldabi.h: Remove.
19430 * config/mcore/mcore-pe.h: Remove.
19431 * config/mcore/t-mcore-pe: Remove.
19432 * config/netbsd-aout.h: Remove.
19433 * config/rs6000/gnu.h: Remove.
19434 * config/sh/sh-symbian.h: Remove.
19435 * config/sh/symbian-base.c: Remove.
19436 * config/sh/symbian-c.c: Remove.
19437 * config/sh/symbian-cxx.c: Remove.
19438 * config/sh/symbian-post.h: Remove.
19439 * config/sh/symbian-pre.h: Remove.
19440 * config/sh/t-symbian: Remove.
19441 * config/svr3.h: Remove.
19442 * config/vax/netbsd.h: Remove.
19443 * config.build: Don't handle i[34567]86-*-pe.
19444 * config.gcc: Remove handling of deprecations for most deprecated
19445 targets.
19446 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
19447 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
19448 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
19449 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
19450 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
19451 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
19452 Remove cases.
19453 * config.host: Don't handle i[34567]86-*-pe.
19454 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
19455 (ASM_SPEC32): Don't handle -mcall-gnu.
19456 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
19457 -mcall-gnu.
19458 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
19459 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
19460 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
19461 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
19462 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
19463 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
19464 conditional on SYMBIAN.
19465 * configure.ac: Don't handle powerpc*-*-gnu*.
19466 * configure: Regenerate.
19467 * doc/extend.texi (interrupt attribute): Don't mention CRX.
19468 * doc/install-old.texi (m6811, m6812): Don't mention.
19469 * doc/install.texi (arc-*-elf*): Don't document multilib option.
19470 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
19471 (m68k-uclinuxoldabi): Don't mention.
19472 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
19473 Remove.
19474 (-mcall-gnu): Remove.
19475 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
19476 families): Remove constraint documentation.
19477
999a7d80
MS
194782011-03-22 Marius Strobl <marius@FreeBSD.org>
19479
19480 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
19481 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
19482 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
19483
45540bcf
MM
194842011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19485
19486 PR target/48226
19487 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
19488 vector when peeking at the next token for vector, don't expand the
19489 keywords.
19490
980a0ff4
GJL
194912011-03-21 Georg-Johann Lay <avr@gjlay.de>
19492
19493 * config/avr/avr-protos.h (expand_epilogue): Change prototype
19494 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
19495 * config/avr/avr.c (init_cumulative_args)
19496 (avr_function_arg_advance): Use it.
19497 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
19498 sibcall epilogues.
19499 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
19500 (avr_function_ok_for_sibcall): ...this new function.
19501 (avr_lookup_function_attribute1): New static Function.
19502 (avr_naked_function_p, interrupt_function_p)
19503 (signal_function_p, avr_OS_task_function_p)
19504 (avr_OS_main_function_p): Use it.
19505 * config/avr/avr.md ("sibcall", "sibcall_value")
19506 ("sibcall_epilogue"): New expander.
19507 ("*call_insn", "*call_value_insn"): New insn.
19508 ("call_insn", "call_value_insn"): Remove
19509 ("call", "call_value", "epilogue"): Change expander to handle
19510 sibling calls.
19511
49168734
NC
195122011-03-21 Nick Clifton <nickc@redhat.com>
19513
19514 * doc/invoke.texi (Overall Options): Move closing brace to end of
19515 options list.
19516 (Optimization Options): Add missing @gol.
19517 (Directory Options): Likewise.
19518 (i386 and x86-64 Options): Likewise.
19519 (RS6000 and PowerPC Options): Likewise.
19520 (i386 and x86-64 Windows Options): Likewise.
19521 (V850 Options): Add text missing from descriptions.
19522
bdfe906f
RH
195232011-03-22 Richard Henderson <rth@redhat.com>
19524
19525 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
19526 (avr_incoming_return_addr_rtx): New.
19527 (emit_push_byte): New.
19528 (expand_prologue): Use it. Remove incorrect dwarf annotation for
19529 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
19530 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
19531 (emit_pop_byte): New.
19532 (expand_epilogue): Use it. Pop frame pointer by bytes.
19533 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
19534 (INCOMING_RETURN_ADDR_RTX): New.
19535 (INCOMING_FRAME_SP_OFFSET): New.
19536 (ARG_POINTER_CFA_OFFSET): New.
19537 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
19538 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
19539 (pophi): Remove.
19540
d090a5aa
RH
19541 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
19542
fdf3e18a
NF
195432011-03-22 Nathan Froyd <froydnj@codesourcery.com>
19544
19545 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
19546 (FUNCTION_ARG_ADVANCE): Likewise.
19547 * tm.texi.in: Change references to them to hook references.
19548 * tm.texi: Regenerate.
19549 * targhooks.c (default_function_arg): Eliminate check for target
19550 macro.
19551 (default_function_incoming_arg): Likewise.
19552 (default_function_arg_advance): Likewise.
c78dd519 19553 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
19554 (function_arg_advance): Likewise.
19555 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
19556
009d3fcf
NF
195572011-03-22 Nathan Froyd <froydnj@codesourcery.com>
19558
19559 * tree.c (build_call_1): New function.
19560 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
19561
7bec30e1
RG
195622011-03-22 Richard Guenther <rguenther@suse.de>
19563
19564 PR tree-optimization/48228
19565 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
19566 for single-arg PHIs.
19567
0b7e851b
AB
195682011-03-22 Andrey Belevantsev <abel@ispras.ru>
19569
19570 PR rtl-optimization/48143
19571 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
19572 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
19573 sse2_cvtps2pd): Likewise.
19574
d89afca5
AK
195752011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19576
19577 * recog.c (canonicalize_change_group): Use validate_unshare_change.
19578
f471fe72
RG
195792011-03-22 Richard Guenther <rguenther@suse.de>
19580
19581 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
19582 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
19583 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
19584 and REALIGN_LOAD_EXPR.
19585 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
19586 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
19587 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
19588 DOT_PROD_EXPR case ...
19589 (expand_expr_real_2): ... here.
19590 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
19591 and REALIGN_LOAD_EXPR.
19592 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
19593 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
19594 (vect_create_epilog_for_reduction): Likewise.
19595 (vectorizable_reduction): Likewise.
19596 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
19597 * tree-vect-stmts.c (vectorizable_load): Likewise.
19598
f2f81d57
EB
195992011-03-22 Eric Botcazou <ebotcazou@adacore.com>
19600
19601 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
19602
ab081dd6
AK
196032011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19604
19605 * config/s390/s390.c (s390_delegitimize_address): Fix offset
19606 handling for PLTOFF/GOTOFF.
19607
6fd5332b
NC
196082011-03-22 Nick Clifton <nickc@redhat.com>
19609
19610 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
19611 trailing backslash from the end of the macro definition.
19612
01841ac0
AK
196132011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19614
19615 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
19616 and PLT unspecs.
19617
2ef6ce06
RS
196182011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
19619
19620 * expr.h (prepare_operand): Move to...
19621 * optabs.h (prepare_operand): ...here and change the insn code
19622 parameter from "int" to "enum insn_code".
19623 (insn_operand_matches): Declare.
19624 * expr.c (init_expr_target): Use insn_operand_matches.
19625 (compress_float_constant): Likewise.
19626 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
19627 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
19628 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
19629 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
19630 Likewise.
2ef6ce06
RS
19631 (gen_cond_trap): Likewise.
19632 (prepare_operand): Likewise. Change icode to an insn_code.
19633 (insn_operand_matches): New function.
19634 * reload.c (find_reloads_address_1): Use insn_operand_matches.
19635 * reload1.c (gen_reload): Likewise.
19636 * targhooks.c (default_secondary_reload): Likewise.
19637
9e43ad68
UB
196382011-03-21 Uros Bizjak <ubizjak@gmail.com>
19639
9a96da32
UB
19640 * config/alpha/alpha.md (unspec): New define_c_enum.
19641 (unspecv): Ditto.
19642
196432011-03-21 Uros Bizjak <ubizjak@gmail.com>
19644
19645 PR debug/48214
9e43ad68
UB
19646 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
19647 between a call and its CALL_ARG_LOCATION note.
19648
31408f60
EB
196492011-03-21 Eric Botcazou <ebotcazou@adacore.com>
19650
19651 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
19652
196532011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
19654
19655 PR c/42544
19656 PR c/48197
19657 * c-common.c (shorten_compare): If primopN is first sign-extended
19658 to opN and then zero-extended to result type, set primopN to opN.
19659
9dfd55f5
DJ
196602011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
19661
19662 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
19663 for barrier handlers.
19664
f3c33d9d
MM
196652011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19666
19667 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
19668 UNSPEC constants to be in the unspec enumeration, and redefine
19669 all UNSPECV constants to be in the unspecv enumeration, so that
19670 dumps print which unspec/unspec_volatile this is.
19671 * config/rs6000/vector.md (UNSPEC_*): Ditto.
19672 * config/rs6000/paired.md (UNSPEC_*): Ditto.
19673 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
19674 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
19675 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
19676
19677 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
19678 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
19679 UNSPECV_LWSYNC, since these are used as unspec_volatile.
19680 * config/rs6000/sync.md (isync, lwsync): Ditto.
19681
ac43f774
RG
196822011-03-21 Richard Guenther <rguenther@suse.de>
19683
19684 * params.def (lto-min-partition): Fix typo.
19685
411cdbd8
RG
196862011-03-21 Richard Guenther <rguenther@suse.de>
19687
19688 PR c/47939
19689 * c-decl.c (grokdeclarator): Drop to the main variant only
19690 for array types. Drop flag_gen_aux_info check.
19691
1cd9e416
RG
196922011-03-21 Richard Guenther <rguenther@suse.de>
19693
19694 PR translation/47911
19695 * params.def (lto-partitions): Fix typo.
19696 (lto-min-partition): Fix wording.
19697
ada5ad67
AT
196982011-03-21 Andreas Tobler <andreast@fgznet.ch>
19699
19700 * config/rs6000/t-freebsd: Remove duplication from file.
19701
f9613c9a
RG
197022011-03-21 Richard Guenther <rguenther@suse.de>
19703
19704 PR middle-end/47661
19705 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
19706
9bfbc1eb
RG
197072011-03-21 Richard Guenther <rguenther@suse.de>
19708
19709 PR lto/48210
19710 * params.def (lto-partitions): Require at least 1 partition.
19711
a2268084
RO
197122011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19713
19714 * gthr-solaris.h: Remove.
19715 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
19716 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
19717 (LIB_SPEC): Likewise.
19718 * config/sol2.opt (threads): Remove.
9e43ad68 19719 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
19720 (sparc*-*-solaris2*): Likewise.
19721 * configure.ac (enable_threads): Enable solaris support.
19722 * configure: Regenerate.
9e43ad68 19723 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
19724 * doc/install.texi (Configuration, --enable-threads=lib): Remove
19725 solaris.
19726
c43d9a1b
RO
197272011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19728
19729 * config.gcc: Obsolete *-*-solaris2.8*.
19730 * doc/install.texi (Specific, *-*-solaris2*): Document it.
19731
084239f4
RO
197322011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19733
19734 PR bootstrap/48135
19735 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
19736 reference. Solaris 8 perl works.
19737
64cadbe7
RO
197382011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19739
19740 PR bootstrap/48135
19741 * doc/install.texi (Prerequisites): Move jar etc. up.
19742 Explain support library version requirements.
19743
eb975109
RO
197442011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19745
19746 PR bootstrap/48135
19747 * doc/install.texi (Prerequisites): Move Perl to build
19748 requirements. Always necessary on Solaris 2 with Sun ld.
19749
8a509ffd
RO
197502011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19751
19752 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
19753 binutils 2.21.
19754 (Specific, i?86-*-solaris2.[89]): Likewise.
19755 (Specific, i?86-*-solaris2.10): Likewise.
19756 (Specific, mips-sgi-irix6): Likewise.
19757 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
19758 Update for binutils 2.21.
19759
8fbc58a1
RO
197602011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19761
19762 * configure.ac (gcc_cv_lto_plugin): Fix typo.
19763 Allow -fuse-linker-plugin for non-default plugin linker.
19764 * configure: Regenerate.
19765
7e84ad0b
NP
197662011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
19767
19768 PR bootstrap/48167
19769 * gengtype.c (files_rules): Added rule for cp/parser.h.
19770
2f36e14b
JJ
197712011-03-21 Jakub Jelinek <jakub@redhat.com>
19772
19773 PR target/48213
19774 * config/s390/s390.c (s390_delegitimize_address): Don't call
19775 lowpart_subreg if orig_x has BLKmode.
19776
62d784f7
KT
197772011-03-21 Kai Tietz <ktietz@redhat.com>
19778
19779 PR target/12171
9e43ad68
UB
19780 * doc/plugins.texi: Adjust documentation for plugin register_callback.
19781 * tree.h (attribute_spec): Add new member affects_type_identity.
19782 * attribs.c (empty_attribute_table): Adjust attribute_spec
19783 initializers.
62d784f7
KT
19784 * config/alpha/alpha.c: Likewise.
19785 * config/arc/arc.c: Likewise.
19786 * config/arm/arm.c: Likewise.
19787 * config/avr/avr.c: Likewise.
19788 * config/bfin/bfin.c: Likewise.
19789 * config/crx/crx.c: Likewise.
19790 * config/darwin.h: Likewise.
19791 * config/h8300/h8300.c: Likewise.
19792 * config/i386/cygming.h: Likewise.
19793 * config/i386/i386.c: Likewise.
19794 * config/ia64/ia64.c: Likewise.
19795 * config/m32c/m32c.c: Likewise.
19796 * config/m32r/m32r.c: Likewise.
19797 * config/m68hc11/m68hc11.c: Likewise.
19798 * config/m68k/m68k.c: Likewise.
19799 * config/mcore/mcore.c: Likewise.
19800 * config/mep/mep.c: Likewise.
19801 * config/microblaze/microblaze.c: Likewise.
19802 * config/mips/mips.c: Likewise.
19803 * config/rs6000/rs6000.c: Likewise.
19804 * config/rx/rx.c: Likewise.
19805 * config/sh/sh.c: Likewise.
19806 * config/sol2.h: Likewise.
19807 * config/sparc/sparc.c: Likewise.
19808 * config/spu/spu.c: Likewise.
19809 * config/stormy16/stormy16.c: Likewise.
19810 * config/v850/v850.c: Likewise.
19811
54833ec0
CLT
198122011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
19813
19814 * simplify-rtx.c (simplify_binary_operation_1): Handle
19815 (xor (and A B) C) case when B and C are both constants.
19816
14a41392
MX
198172011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
19818
19819 * tree-dfa.c (add_referenced_var): Fix typo in comment.
19820
806c3492
EB
198212011-03-20 Eric Botcazou <ebotcazou@adacore.com>
19822
19823 PR bootstrap/48168
19824 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
19825
65e0a0f3
JJ
198262011-03-20 Jakub Jelinek <jakub@redhat.com>
19827
19828 PR rtl-optimization/48156
19829 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
19830 assume df and df_lr are not NULL.
19831
b6a75dda
RR
198322011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19833
19834 PR debug/48023
19835 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
19836 between a call and its CALL_ARG_LOCATION note.
19837
5969b52d
KK
198382011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
19839
19840 PR debug/48178
19841 * config/sh/sh.c (find_barrier): Don't emit a constant pool
19842 between a call and its corresponding CALL_ARG_LOCATION note.
19843
f773c2bd
AS
198442011-03-19 Anatoly Sokolov <aesok@post.ru>
19845
19846 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
19847 instead of loop. Use HARD_REGISTER_NUM_P predicate.
19848 * haifa-sched.c (setup_ref_regs): Ditto.
19849 * caller-save.c (add_used_regs_1): Ditto.
19850 * dse.c (look_for_hardregs): Ditto.
19851 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
19852 * sched-rgn.c (check_live_1): Ditto.
19853
8bf872f9
JM
198542011-03-18 Joseph Myers <joseph@codesourcery.com>
19855
19856 * c-decl.c (diagnose_mismatched_decls): Give an error for
19857 redefining a typedef with variably modified type.
19858
ff8e2159
JM
198592011-03-18 Joseph Myers <joseph@codesourcery.com>
19860
19861 * c-decl.c (grokfield): Don't allow typedefs for structures or
19862 unions with no tag by default.
19863 * doc/extend.texi (Unnamed Fields): Update.
19864
16cc4440
UB
198652011-03-18 Uros Bizjak <ubizjak@gmail.com>
19866
19867 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
19868 Rewrite using indirect functions.
19869 (lwp_slwpcb): Ditto.
19870 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
19871 (avx_vinsertf128<mode>): Ditto.
19872
e101e12e
AK
198732011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19874
19875 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
19876 unspecs.
19877
4627c7fb
AK
198782011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19879
19880 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 19881 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 19882
2d36b47f
MK
198832011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
19884
19885 PR rtl-optimization/48170
19886 * gcse.c (hoist_code): Remove bogus asserts.
19887
2a3d7659
JL
198882011-03-18 Georg-Johann Lay <avr@gjlay.de>
19889
19890 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
19891 computation for prologue/epilogue.
19892
34c3ef05
RO
198932011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19894
19895 * Makefile.in (check-consistency): Remove.
19896
81f2b976
JJ
198972011-03-18 Jakub Jelinek <jakub@redhat.com>
19898
19899 PR debug/48176
19900 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
19901 arange_table_in_use is 0, but either text_section_used or
19902 cold_text_section_used is true. Don't call it if
19903 !info_section_emitted.
19904
68fd7765
AS
199052011-03-18 Anatoly Sokolov <aesok@post.ru>
19906
19907 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
19908 FUNCTION_VALUE_REGNO_P): Remove.
19909 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
19910 Remove.
19911 * config/avr/avr.c (avr_ret_register): Make static inline.
19912 (avr_function_value_regno_p): New function.
19913 (avr_libcall_value): Make static. Add 'func' argument.
19914 (avr_function_value): Make static. Rename 'func' argument to
19915 'fn_decl_or_type', forward it to avr_libcall_value. Call
19916 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 19917 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 19918
b4ef8aac
JM
199192011-03-18 Jason Merrill <jason@redhat.com>
19920
19921 PR c++/23372
19922 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
19923
09a52fc3
RG
199242011-03-18 Richard Guenther <rguenther@suse.de>
19925
19926 * doc/install.texi (--enable-gold): Remove.
19927 (--with-plugin-ld): Document.
19928 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
19929
2a3d7659 199302011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
19931
19932 PR middle-end/47790
19933 * expr.c (optimize_bitfield_assignment_op): Revamp to work
19934 again after expansion changes.
19935
2abbb0fe
CLT
199362011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
19937
19938 * combine.c (try_combine): Do simplification only call of
19939 subst() on i2 even when i1 is present. Update comments.
19940
2efd0aa6
KK
199412011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
19942
19943 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
19944 and UNSPEC_PCREL_SYMOFF.
19945
30a49b23
AK
199462011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19947
19948 * config/s390/s390.md: Use define_c_enum for the unspec constant
19949 definitions.
19950
419e1853
JJ
199512011-03-18 Richard Henderson <rth@redhat.com>
19952 Jakub Jelinek <jakub@redhat.com>
19953
19954 PR bootstrap/48161
19955 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
19956 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
19957
24da2019
AS
199582011-03-17 Anatoly Sokolov <aesok@post.ru>
19959
19960 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19961 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
19962 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
19963 Change return type to bool.
19964 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19965
a82ff31f
JJ
199662011-03-17 Jakub Jelinek <jakub@redhat.com>
19967
8b29c87a
JJ
19968 PR debug/48163
19969 * var-tracking.c (prepare_call_arguments): If CALL target
19970 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
19971 pc instead of looking it up using cselib_lookup and use
19972 Pmode for it if x has VOIDmode.
19973 * dwarf2out.c (gen_subprogram_die): If also both first and
19974 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
19975
a82ff31f
JJ
19976 PR debug/48163
19977 * function.c (assign_parms): For data.passed_pointer parms
19978 use MEM of data.entry_parm instead of data.entry_parm itself
19979 as DECL_INCOMING_RTL.
19980 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
19981 also when passed and declared mode is the same, DECL_RTL
19982 is a MEM with pseudo as address and DECL_INCOMING_RTL is
19983 a MEM too.
19984
82ce305c
JL
199852011-03-16 Jeff Law <law@redhat.com>
19986
19987 PR rtl-optimization/37273
19988 * ira-costs.c (scan_one_insn): Detect constants living in memory and
19989 handle them like argument loads from stack slots. Do not double
19990 count memory for memory constants and argument loads from stack slots.
19991
fe58e02b
L
199922011-03-17 H.J. Lu <hongjiu.lu@intel.com>
19993
19994 PR debug/48160
19995 * var-tracking.c (prepare_call_arguments): Check SUBREG.
19996
6fc4dbc7
L
199972011-03-17 H.J. Lu <hongjiu.lu@intel.com>
19998
19999 PR target/48171
20000 * config/i386/i386.opt: Add Save to -mavx and -mfma.
20001
db3ed0b3
JJ
200022011-03-17 Jakub Jelinek <jakub@redhat.com>
20003
8054a389
JJ
20004 PR bootstrap/48153
20005 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
20006 if dwarf_strict.
20007 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
20008 Clear call_arg_locations and call_arg_loc_last always.
20009
db3ed0b3
JJ
20010 PR middle-end/48152
20011 * var-tracking.c (prepare_call_arguments): If argument needs to be
20012 passed by reference, adjust argtype and mode.
20013
1bce4ff3
RG
200142011-03-17 Richard Guenther <rguenther@suse.de>
20015
20016 PR middle-end/48134
20017 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
20018 a value make sure to fold the statement.
20019
7c71147d
CLT
200202011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
20021
20022 PR target/43872
20023 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
20024 return condition with !cfun->calls_alloca.
20025
0e1ee172
RG
200262011-03-17 Richard Guenther <rguenther@suse.de>
20027
20028 PR bootstrap/48148
20029 * lto-cgraph.c (input_overwrite_node): Clear the abstract
20030 origin for decls in other ltrans units.
20031 (input_varpool_node): Likewise.
20032
f8bce518
RG
200332011-03-17 Richard Guenther <rguenther@suse.de>
20034
20035 PR middle-end/48165
20036 * tree-object-size.c (compute_object_offset): Properly return
20037 the offset operand of MEM_REFs as sizetype.
20038
1b6fa860
JJ
200392011-03-17 Jakub Jelinek <jakub@redhat.com>
20040
dabd47e7
JJ
20041 PR rtl-optimization/48141
20042 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
20043 * dse.c: Include params.h.
20044 (active_local_stores_len): New variable.
20045 (add_wild_read, dse_step1): Clear it when setting active_local_stores
20046 to NULL.
20047 (record_store, check_mem_read_rtx): Decrease it when removing
20048 from the chain.
20049 (scan_insn): Likewise. Increase it when adding to chain, if it
20050 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
20051 set active_local_stores to NULL before the addition.
20052 * Makefile.in (dse.o): Depend on $(PARAMS_H).
20053
1b6fa860
JJ
20054 PR rtl-optimization/48141
20055 * dse.c (record_store): If no positions are needed in an insn
20056 that cannot be deleted, at least unchain it from active_local_stores.
20057
7b5cb7d6
DS
200582011-03-16 Dodji Seketeli <dodji@redhat.com>
20059
20060 PR debug/47510
20061 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
20062 (lookup_type_die_strip_naming_typedef): ... here.
20063 (get_context_die): Use it.
20064 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
20065 the anonymous struct named by the naming typedef.
20066
585e9d9d
L
200672011-03-16 H.J. Lu <hongjiu.lu@intel.com>
20068
20069 PR target/48154
20070 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
20071 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
20072
6261ab0e
JL
200732011-03-16 Jeff Law <law@redhat.com>
20074
20075 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 20076 check for operands of conditional. Allow type to be a pointer.
6261ab0e 20077
0b0081ec
RG
200782011-03-16 Richard Guenther <rguenther@suse.de>
20079
20080 PR tree-optimization/48149
20081 * fold-const.c (fold_binary_loc): Fold
20082 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
20083
64a3d647
RG
200842011-03-16 Richard Guenther <rguenther@suse.de>
20085
20086 PR tree-optimization/26134
20087 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
20088 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
20089 (non_rewritable_mem_ref_base): Handle complex type component
20090 accesses, constrain offsets for vector and complex extracts
20091 more properly.
20092
ef13324e
RG
200932011-03-16 Richard Guenther <rguenther@suse.de>
20094
20095 PR tree-optimization/48146
20096 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
20097 operands avoiding the need for renaming.
20098
f0eddb90
RG
200992011-03-16 Richard Guenther <rguenther@suse.de>
20100
20101 * gimple-fold.c (maybe_fold_reference): Open-code relevant
20102 constant folding. Move MEM_REF canonicalization first.
20103 Rely on fold_const_aggregate_ref for initializer folding.
20104 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
20105
e42348b8
JJ
201062011-03-16 Jakub Jelinek <jakub@redhat.com>
20107
29f10e71
JJ
20108 PR middle-end/48136
20109 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20110 arg0/arg1 or their arguments are always fold converted to matching
20111 types.
20112
e42348b8
JJ
20113 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
20114 to nargs.
20115
55b46574
RO
201162011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20117
20118 PR lto/46944
20119 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
20120 Handle in-tree gold.
20121 (ld_vers): Extract binutils version for gold.
20122 (gcc_cv_ld_hidden): Handle gold here.
20123 (gcc_cv_lto_plugin): Determine level of linker plugin support.
20124 * configure: Regenerate.
20125 * config.in: Regenerate.
20126 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
20127 -fuse-linker-plugin otherwise.
20128 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
20129 (LINK_COMMAND_SPEC): Use it.
20130 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
20131
2b1c5433
JJ
201322011-03-16 Jakub Jelinek <jakub@redhat.com>
20133
c2969d8e
JJ
20134 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
20135 * calls.c: Remove debug.h include.
20136 (emit_call_1): Don't call virtual_call_token debug hook.
20137 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
20138 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
20139 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
20140 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
20141 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
20142 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
20143 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
20144 dwarf2out_virtual_call): Remove.
20145 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
20146 copy_call_info and virtual_call hooks.
20147 (dwarf2out_init): Don't initialize vcall_insn_table,
20148 debug_dcall_section and debug_vcall_section.
20149 (prune_unused_types): Don't mark nodes from dcall_table.
20150 (dwarf2out_finish): Don't output dcall or vcall tables.
20151 * final.c (final_scan_insn): Don't call direct_call or
20152 virtual_call debug hooks.
20153 * debug.h (struct gcc_debug_hooks): Remove direct_call,
20154 virtual_call_token, copy_call_info and virtual_call hooks.
20155 (debug_nothing_uid): Remove prototype.
20156 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
20157 copy_call_info and virtual_call hooks.
20158 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
20159 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
20160 * debug.c (do_nothing_debug_hooks): Likewise.
20161 (debug_nothing_uid): Remove.
20162 * doc/invoke.texi (-fenable-icf-debug): Remove.
20163 * common.opt (-fenable-icf-debug): Likewise.
20164
325f5379
JJ
20165 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
20166 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
20167 call's MEM. Handle functions returning aggregate through a hidden
20168 first pointer. For virtual calls add clobbered pc to call arguments
20169 chain.
20170 * dwarf2out.c (gen_subprogram_die): Emit
20171 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
20172 can't be emitted.
20173
a58a8e4b
JJ
20174 PR debug/45882
20175 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
20176 * rtl.h (ENTRY_VALUE_EXP): Define.
20177 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
20178 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
20179 * print-rtl.c (print_rtx): Likewise.
20180 * gengtype.c (adjust_field_rtx_def): Likewise.
20181 * var-tracking.c (vt_add_function_parameter): Adjust
20182 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
20183 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
20184 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
20185 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
20186 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
20187
2b1c5433
JJ
20188 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
20189 Call var_location debug hook even on CALL_INSNs.
20190 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
20191 * rtl.def (ENTRY_VALUE): New.
20192 * dwarf2out.c: Include cfglayout.h.
20193 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
20194 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
20195 (struct call_arg_loc_node): New type.
20196 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
20197 tail_call_site_count): New variables.
20198 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
20199 DW_TAG_GNU_call_site_parameter.
20200 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
20201 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
20202 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
20203 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
20204 and DW_AT_GNU_all_source_call_sites.
20205 (mem_loc_descriptor): Handle ENTRY_VALUE.
20206 (add_src_coords_attributes): Don't add enything if
20207 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
20208 (dwarf2out_abstract_function): Save and clear call_arg_location,
20209 call_site_count and tail_call_site_count around dwarf2out_decl call.
20210 (gen_call_site_die): New function.
20211 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
20212 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
20213 (dwarf2out_function_decl): Clear call_arg_locations,
20214 call_arg_loc_last, set call_site_count and tail_call_site_count
20215 to -1 and free block_map.
20216 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
20217 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
20218 followed by any real instructions.
20219 (dwarf2out_begin_function): Set call_site_count and
20220 tail_call_site_count to 0.
20221 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
20222 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
20223 attempt to force a DIE for it and worst case remove the attribute.
20224 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
20225 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
20226 the decl itself.
20227 * var-tracking.c: Include tm_p.h.
20228 (vt_stack_adjustments): For calls call note_register_arguments.
20229 (argument_reg_set): New variable.
20230 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
20231 ensure the VALUE is resolved.
20232 (call_arguments): New variable.
20233 (prepare_call_arguments): New function.
20234 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
20235 (struct expand_loc_callback_data): Add ignore_cur_loc field.
20236 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
20237 always use the best expression.
20238 (vt_expand_loc): Add ignore_cur_loc argument.
20239 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
20240 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
20241 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
20242 note for all calls.
20243 (vt_add_function_parameter): Use cselib_lookup_from_insn.
20244 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
20245 argument. Don't call cselib_preserve_only_values and
20246 cselib_reset_table.
20247 (note_register_arguments): New function.
20248 (vt_initialize): Compute argument_reg_set. Call
20249 vt_add_function_parameters before processing basic blocks instead of
20250 afterwards. For calls call prepare_call_arguments before calling
20251 cselib_process_insn.
20252 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
20253 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
20254 (var-tracking.o): Depend on $(TM_P_H).
20255 * cfglayout.h (insn_scope): New prototype.
20256 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
20257 * cfglayout.c (insn_scope): No longer static.
20258 * insn-notes.def (CALL_ARG_LOCATION): New.
20259 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
20260 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
20261 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
20262 nothing for DECL_EXTERNAL BLOCK_VARS.
20263
9ef13bd0
AM
202642011-03-16 Alan Modra <amodra@gmail.com>
20265
20266 PR target/45844
20267 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
20268 create invalid offset address for vsx splat insn.
20269 * config/rs6000/predicates.md (splat_input_operand): New.
20270 * config/rs6000/vsx.md (vsx_splat_*): Use it.
20271
56b67510
XDL
202722011-03-15 Xinliang David Li <davidxl@google.com>
20273
20274 PR c/47837
20275 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
20276 (normalize_preds): New function.
20277 (is_use_properly_guarded): Normalize def predicates.
20278
80fffdef
RR
202792011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20280
732f37c6 20281 PR target/46788
80fffdef
RR
20282 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
20283 in the output template.
20284
930672ad
RG
202852011-03-15 Richard Guenther <rguenther@suse.de>
20286
20287 PR middle-end/47650
20288 * tree-pretty-print.c (dump_function_declaration): Properly
20289 dump unprototyped and varargs function types.
20290
c7ee7b45
RG
202912011-03-15 Richard Guenther <rguenther@suse.de>
20292
20293 PR tree-optimization/13954
20294 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
20295 and friends.
20296
b2ad5e37
RG
202972011-03-15 Richard Guenther <rguenther@suse.de>
20298
20299 PR tree-optimization/48037
20300 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
20301 selects into BIT_FIELD_REFs.
20302 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
20303 vector select.
20304
7ee93d4e
JJ
203052011-03-15 Jakub Jelinek <jakub@redhat.com>
20306
20307 PR tree-optimization/48129
20308 * builtins.c (fold_builtin_snprintf): Convert to type of
20309 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
20310 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
20311
e106efc7
RG
203122011-03-15 Richard Guenther <rguenther@suse.de>
20313
20314 PR tree-optimization/41490
20315 * tree-ssa-dce.c (propagate_necessity): Handle returns without
20316 value but with VUSE.
20317 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
20318 return statements.
20319 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
20320 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
20321 * tree-tailcall.c (find_tail_calls): Ignore returns.
20322
17dea42f
RG
203232011-03-15 Richard Guenther <rguenther@suse.de>
20324
20325 PR middle-end/48031
20326 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
20327 or variable-indexed array accesses when in gimple form.
20328
01c77a60
RG
203292011-03-15 Richard Guenther <rguenther@suse.de>
20330
16cc4440 20331 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 20332
77b0791e
AM
203332011-03-15 Alan Modra <amodra@gmail.com>
20334
20335 PR target/48032
20336 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
20337 presume symbol_refs without a symbol_ref_decl are suitably
20338 aligned, nor other trees we may see here. Handle anchor symbols.
20339 (legitimate_constant_pool_address_p): Comment. Add mode param.
20340 Check cmodel=medium addresses. Adjust all calls.
20341 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
20342 creating cmodel=medium optimized access to locals.
20343 * config/rs6000/constraints.md (R): Pass QImode to
20344 legitimate_constant_pool_address_p.
20345 * config/rs6000/predicates.md (input_operand): Pass mode to
20346 legitimate_constant_pool_address_p.
20347 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
20348 Update prototype.
20349
35f61ba4
MM
203502011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20351
20352 PR target/48053
20353 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
20354 64-bit constants being loaded into registers other than GPRs such
20355 as loading 0 into a VSX register.
20356
07332e6d
RO
203572011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20358
16cc4440 20359 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 20360
de888d90
JJ
203612011-03-14 Jakub Jelinek <jakub@redhat.com>
20362
ba3ceb2d
JJ
20363 PR middle-end/47917
20364 * builtins.c (fold_builtin_snprintf): New function.
20365 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
20366 (fold_builtin_4): Likewise.
20367
2e64f8b8
JJ
20368 PR middle-end/38878
20369 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
20370 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
20371 and C - X == X also strip nops from +/-/p+ operand.
20372 When optimizing -X == C, fold C to arg0's type.
20373
de888d90
JJ
20374 PR debug/47946
20375 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
20376 emit it as add_AT_int instead of add_AT_unsigned.
20377
203782011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
20379
20380 * unwind-dw2.c: Include sys/sdt.h if it exists.
20381 (_Unwind_DebugHook): Use STAP_PROBE2.
20382 * config.in, configure: Rebuild.
20383 * configure.ac: Check for sys/sdt.h.
20384
d34abfd2
UB
203852011-03-14 Uros Bizjak <ubizjak@gmail.com>
20386
20387 * config/i386/i386.md (ROUND_FLOOR): New constant.
20388 (ROUND_CEIL): Ditto.
20389 (ROUND_TRUNC): Ditto.
20390 (ROUND_MXCSR): Ditto.
20391 (ROUND_NO_EXC): Ditto.
20392 (rint<mode>2): Use new defines instead of numerical constants.
20393 (floor<mode>2): Ditto.
20394 (ceil<mode>2): Ditto.
20395 (btrunc<mode>2): Ditto.
20396 * config/i386/i386-builtin-types.def: Define ROUND function type
20397 aliases.
20398 * config/i386/i386.c (enum ix86_builtins): Add
20399 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
20400 (struct builtin_description): Add
20401 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
20402 (ix86_expand_sse_round): New static function.
20403 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
20404 function types.
20405 (ix86_builtin_vectorized_function): Handle
20406 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
20407
87f9e23d
TT
204082011-03-14 Tom Tromey <tromey@redhat.com>
20409
20410 * c-parser.c (c_parser_asm_string_literal): Clear
20411 warn_overlength_strings.
20412
b3ab9ea2
TT
204132011-03-14 Tom Tromey <tromey@redhat.com>
20414
20415 * c-parser.c (disable_extension_diagnostics): Save
20416 warn_overlength_strings.
20417 (restore_extension_diagnostics): Restore warn_overlength_strings.
20418
6bd73dd8
JJ
204192011-03-14 Jakub Jelinek <jakub@redhat.com>
20420
20421 * BASE-VER: Change to 4.7.0.
20422
7f4d6e1b
RG
204232011-03-14 Richard Guenther <rguenther@suse.de>
20424
20425 PR middle-end/48098
20426 * tree.c (build_vector_from_val): Adjust assert to requirements
20427 and reality.
20428
c6104ef1
JJ
204292011-03-14 Jakub Jelinek <jakub@redhat.com>
20430
20431 PR bootstrap/48102
d34abfd2 20432 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 20433
dfa95e19
AT
204342011-03-14 Andreas Tobler <andreast@fgznet.ch>
20435
f60c2554 20436 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
20437 terms of target_flags_explicit. Adjust copyright year.
20438
20439 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
20440 * config/rs6000/t-freebsd: New file. Add override for
20441 LIB2FUNCS_EXTRA.
20442
bb322018
CD
204432011-03-13 Chris Demetriou <cgd@google.com>
20444
20445 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
20446 (-fno-diagnostics-show-option): this, to reflect current default.
20447 (-Werror=): Update text about -fno-diagnostics-show-option.
20448
12b1c80b
PB
204492011-03-12 Peter Bergner <bergner@vnet.ibm.com>
20450
20451 PR target/48053
20452 * config/rs6000/predicates.md (easy_vector_constant_add_self,
20453 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
20454 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
20455 mode is not V2DImode or V2DFmode.
20456 (vspltis_constant): Do not handle V2DImode and V2DFmode.
20457 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
20458 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
20459 registers to 0.
20460 (movdi_internal64): Likewise.
20461
57d598f7
SP
204622011-03-12 Sebastian Pop <sebastian.pop@amd.com>
20463
20464 PR tree-optimization/47127
20465 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
20466 parameter.
20467 (set_cloog_options): Same.
20468 (scop_to_clast): Same.
20469 (print_clast_stmt): Do not call cloog_state_malloc and
20470 cloog_state_free.
20471 (print_generated_program): Same.
20472 (gloog): Same.
20473 * graphite-clast-to-gimple.h (cloog_state): Declared.
20474 (scop_to_clast): Adjust declaration.
20475 * graphite.c (cloog_state): Defined here.
20476 (graphite_initialize): Call cloog_state_malloc.
20477 (graphite_finalize): Call cloog_state_free.
20478
f231b5ff
JM
204792011-03-11 Jason Merrill <jason@redhat.com>
20480
20481 * attribs.c (lookup_attribute_spec): Take const_tree.
20482 * tree.h: Adjust.
20483
6a4e2bd5
JM
204842011-03-11 Joseph Myers <joseph@codesourcery.com>
20485
20486 * config/sparc/sparc.c (sparc_option_override): Use
20487 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
20488
a758fd67
RG
204892011-03-11 Richard Guenther <rguenther@suse.de>
20490
20491 PR tree-optimization/48067
20492 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
20493 multiplication result will be only used once on the target
20494 stmt.
20495
03dfda54
RG
204962011-03-11 Richard Guenther <rguenther@suse.de>
20497
20498 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
20499
5f11a50a
RG
205002011-03-11 Richard Guenther <rguenther@suse.de>
20501
20502 PR lto/48073
20503 * tree.c (find_decls_types_r): Do not walk types only reachable
20504 from IDENTIFIER_NODEs.
20505
4074f163
JJ
205062011-03-11 Jakub Jelinek <jakub@redhat.com>
20507
20508 PR middle-end/48044
20509 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
20510 all vnode->force_output nodes as needed.
20511
30f7cdcd
JM
205122011-03-11 Jason Merrill <jason@redhat.com>
20513
20514 PR c++/48069
20515 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
20516 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
20517
62ecfeb8
MJ
205182011-03-11 Martin Jambor <mjambor@suse.cz>
20519
20520 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
20521 cgraph_node.
20522
e89e03ab
JJ
205232011-03-11 Jakub Jelinek <jakub@redhat.com>
20524
20525 PR tree-optimization/48063
20526 * ipa-inline.c (cgraph_decide_inlining): Don't try to
20527 inline functions called once if !tree_can_inline_p (node->callers).
20528
efbe978b 205292011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 20530
efbe978b
EB
20531 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
20532 extra_objs.
9d6193a7
CL
20533 * config/score/score3.c: Delete.
20534 * config/score/score3.h: Delete.
20535 * config/score/mul-div.S: Delete.
20536 * config/score/sfp-machine.h: Add new file.
20537 * config/score/constraints.md: Add new file.
20538 * config/score/t-score-softfp: Add new file.
efbe978b 20539 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
20540 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
20541 (score7_extra_constraint): Delete.
efbe978b 20542 (score7_option_override): Remove unused code.
9d6193a7
CL
20543 * config/score/score.c: Remove score3 and score5 define and code.
20544 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 20545 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
20546 * config/score/score.opt: Remove score3 and score5 options.
20547
5de27cca
JDA
205482011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20549
20550 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
20551 when _HPUX_SOURCE is defined.
20552 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
20553
18d92053
JM
205542011-03-10 Jason Merrill <jason@redhat.com>
20555
20556 PR c++/48029
20557 * stor-layout.c (layout_type): Don't set structural equality
20558 on arrays of incomplete type.
20559 * tree.c (type_hash_eq): Handle comparing them properly.
20560
67a2f76d
JJ
205612011-03-10 Jakub Jelinek <jakub@redhat.com>
20562
20563 PR debug/48043
18d92053 20564 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
20565 result mode matches original rtl mode.
20566
d845b2f9
NC
205672011-03-10 Nick Clifton <nickc@redhat.com>
20568
20569 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 20570 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 20571
db7ec035
JJ
205722011-03-09 Jakub Jelinek <jakub@redhat.com>
20573
20574 PR rtl-optimization/47866
20575 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
20576 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
20577 if target wasn't scalar.
20578 * function.c (assign_stack_temp_for_type): Assert that neither
20579 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
20580 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
20581 macro.
20582 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
20583
5d304e47
AK
205842011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20585
20586 * config/s390/s390-protos.h (s390_label_align): New prototype.
20587 * config/s390/s390.c (s390_label_align): New function.
20588 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
20589
93b826f0
MM
205902011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
20591
20592 PR target/47755
20593 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
20594 V2DI/V2DF constants. Only all 0's or all 1's are easy.
20595 (output_vec_const_move): Ditto.
20596
ef78aed6
AS
205972011-03-08 Anatoly Sokolov <aesok@post.ru>
20598
20599 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
20600 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
20601 * config/mips/mips.c (mips_preferred_reload_class): Make static.
20602 Change 'rclass' argument and result type to reg_class_t.
20603 (TARGET_PREFERRED_RELOAD_CLASS): Define.
20604
5f892aa0
GJL
206052011-03-08 Georg-Johann Lay <avr@gjlay.de>
20606
9e43ad68
UB
20607 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
20608 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
20609 (TARGET_MEMORY_MOVE_COST): Define.
20610 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 20611
32bd2409
JJ
206122011-03-08 Jakub Jelinek <jakub@redhat.com>
20613
530a4800
JJ
20614 PR debug/47881
20615 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
20616 removed anything.
20617
32bd2409
JJ
20618 PR tree-optimization/48022
20619 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
20620 for EQ/NE_EXPR.
20621
c7148991
JJ
206222011-03-07 Jakub Jelinek <jakub@redhat.com>
20623
20624 PR debug/47991
20625 * var-tracking.c (find_use_val): Return NULL for
20626 cui->sets && cui->store_p BLKmode MEMs.
20627
43070a6e
AS
206282011-03-07 Anatoly Sokolov <aesok@post.ru>
20629
20630 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
20631 Remove.
20632 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
20633 xstormy16_print_operand_address): Remove.
20634 * config/stormy16/stormy16.c (xstormy16_print_operand,
20635 xstormy16_print_operand_address): Make static.
20636 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20637
efbe978b 206382011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
20639
20640 PR target/47862
20641 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
20642 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
20643 before definition.
20644
cec8ac0b
ZD
206452011-03-07 Zdenek Dvorak <ook@ucw.cz>
20646
20647 PR bootstrap/48000
20648 * cfgloopmanip.c (fix_bb_placements): Return immediately
20649 if FROM is BASE_LOOP's header.
20650
59527282
PW
206512011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
20652
20653 * gimplify.c (gimplify_function_tree): Fix building calls
20654 to __builtin_return_address.
20655
617718f7
AM
206562011-03-07 Alan Modra <amodra@gmail.com>
20657
20658 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
20659 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
20660 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
20661 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
20662 return_mode args.
20663 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
20664 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
20665 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
20666 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
20667 * config/rs6000/rs6000.c
20668 (rs6000_elf_end_indicate_exec_stack): Rename to..
20669 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
20670 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
20671 (rs6000_file_start): ..here.
20672 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
20673 file scope variables.
20674 (call_ABI_of_interest): New function.
20675 (init_cumulative_args): Set above vars when function return value
20676 is a float, vector, or small struct.
20677 (rs6000_function_arg_advance_1): Likewise for function args.
20678 (rs6000_va_start): Set rs6000_passes_float if variable arg function
20679 references float args.
20680
38528d50
MX
206812011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
20682
20683 * doc/cfg.texi: Remove "See" before @ref.
20684 * doc/invoke.texi: Likewise.
20685
f42cf4f4
JM
206862011-03-05 Jason Merrill <jason@redhat.com>
20687
20688 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
20689
804a304d
AG
206902011-03-05 Anthony Green <green@moxielogic.com>
20691
20692 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
20693
634ee309
ZD
206942011-03-05 Zdenek Dvorak <ook@ucw.cz>
20695
20696 PR rtl-optimization/47899
20697 * cfgloopmanip.c (fix_bb_placements): Fix first argument
20698 to flow_loop_nested_p when moving the loop upward.
20699
6fe471c8
RE
207002011-03-05 Richard Earnshaw <rearnsha@arm.com>
20701
20702 PR target/47719
20703 * arm.md (movhi_insn_arch4): Accept any immediate constant.
20704
cc58ceee
JJ
207052011-03-05 Jakub Jelinek <jakub@redhat.com>
20706
20707 PR tree-optimization/47967
20708 * ipa-cp.c (build_const_val): Return NULL instead of creating
20709 VIEW_CONVERT_EXPR for mismatching sizes.
20710 (ipcp_create_replace_map): Return NULL if build_const_val failed.
20711 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
20712 give up on versioning.
20713
ea868305
AM
207142011-03-05 Alan Modra <amodra@gmail.com>
20715
20716 PR target/47986
20717 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20718 full cmodel medium/large lo_sum + high addresses.
20719
bc6ce334
AK
207202011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20721
20722 * config/s390/s390.c (s390_decompose_address): Reject non-literal
20723 pool references in UNSPEC_LTREL_OFFSET.
20724
87e7b310
JH
207252011-03-04 Jan Hubicka <jh@suse.cz>
20726
20727 PR lto/47497
20728 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
20729 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
20730 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
20731 Add node pointers.
87e7b310
JH
20732 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
20733 cgraph_add_thunk): Add node pointers.
20734 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
20735 associated to right node.
20736 (input_node): Update use of cgraph_same_body_alias
20737 and cgraph_add_thunk.
20738
d9c64246
CF
207392011-03-04 Changpeng Fang <changpeng.fang@amd.com>
20740
20741 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
20742 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
20743 modes when the flag -mprefer-avx128 is on.
d9c64246 20744
08707076
RS
207452011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
20746
20747 * dwarf2out.c (compare_loc_operands): Fix address handling.
20748
52517c81
AM
207492011-03-04 Alan Modra <amodra@gmail.com>
20750
20751 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
20752
b147c5b9
RG
207532011-03-04 Richard Guenther <rguenther@suse.de>
20754
20755 PR middle-end/47968
20756 * expmed.c (extract_bit_field_1): Prefer vector modes that
20757 vec_extract patterns can handle.
20758
8750672f
RG
207592011-03-04 Richard Guenther <rguenther@suse.de>
20760
20761 PR middle-end/47975
20762 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
20763
9eac0f2a
RH
207642011-03-04 Richard Henderson <rth@redhat.com>
20765
20766 * explow.c (emit_stack_save): Remove 'after' parameter.
20767 (emit_stack_restore): Likewise.
20768 * expr.h: Update to match.
20769 * builtins.c, calls.c, stmt.c: Likewise.
20770 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
20771 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
20772 * function.c (expand_function_end): Insert the emit_stack_save
20773 sequence before parm_birth_insn instead of after.
20774
dfee1406
UB
207752011-03-03 Uros Bizjak <ubizjak@gmail.com>
20776
20777 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
20778 (ssse3_pmaddubsw128): Ditto.
20779 (ssse3_pmaddubsw): Ditto.
20780
f1d4c3de
SE
207812011-03-03 Steve Ellcey <sje@cup.hp.com>
20782
20783 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
20784
71f3a3f5
JJ
207852011-03-03 Jakub Jelinek <jakub@redhat.com>
20786
423ed416
JJ
20787 PR c/47963
20788 * gimplify.c (omp_add_variable): Only call omp_notice_variable
20789 on TYPE_SIZE_UNIT if it is a DECL.
20790
71f3a3f5
JJ
20791 PR debug/47283
20792 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
20793 first operand is not is_gimple_mem_ref_addr, try to fold it.
20794 If the operand still isn't is_gimple_mem_ref_addr, clear
20795 MEM_EXPR on op0.
20796
4b1a5c0d
RG
207972011-03-03 Richard Guenther <rguenther@suse.de>
20798
20799 PR middle-end/47283
20800 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
20801 match comment.
20802 (refs_may_alias_p_1): For release branches return true if
20803 we are confused by our input.
20804
b46616fd
AK
208052011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20806
20807 * config/s390/s390.c (s390_function_value): Rename to ...
20808 (s390_function_and_libcall_value): ... this.
20809 (s390_function_value): New function.
20810 (s390_libcall_value): New function.
dfee1406 20811 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
20812 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
20813 target macro definitions.
20814 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
20815
46d8fabb
JM
208162011-03-02 Joseph Myers <joseph@codesourcery.com>
20817
20818 * config/i386/freebsd64.h (CC1_SPEC): Define.
20819 * config/i386/linux64.h (CC1_SPEC): Define.
20820 * config/i386/x86-64.h (CC1_SPEC): Don't define.
20821
6b1ce545
AS
208222011-03-02 Anatoly Sokolov <aesok@post.ru>
20823
20824 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20825 Remove.
20826 * config/stormy16/stormy16.c: Include reload.h.
20827 (xstormy16_memory_move_cost): New function.
20828 (TARGET_MEMORY_MOVE_COST): Define.
20829
34161e98
RS
208302011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
20831
20832 PR rtl-optimization/47925
20833 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
20834 with side effects. Remove the more-specific check for volatile asms.
20835
f60a97cf
AM
208362011-03-02 Alan Modra <amodra@gmail.com>
20837
20838 PR target/47935
20839 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
20840 toc relative addresses for valid offsets.
20841
f2ca11ca
RG
208422011-03-01 Richard Guenther <rguenther@suse.de>
20843
20844 PR tree-optimization/47890
20845 * tree-vect-loop.c (get_initial_def_for_induction): Set
20846 related stmt properly.
20847
7a00d9ea
RG
208482011-03-01 Richard Guenther <rguenther@suse.de>
20849
20850 PR lto/47924
20851 * lto-streamer.c (lto_record_common_node): Also register
20852 the canonical type.
20853
06c7edcc
RG
208542011-03-01 Richard Guenther <rguenther@suse.de>
20855
20856 PR lto/46911
20857 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
20858 Do not stream DECL_ABSTRACT_ORIGIN.
20859 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
20860 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
20861 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
20862 Do not stream DECL_ABSTRACT_ORIGIN.
20863 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
20864 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
20865
998871e9
AS
208662011-02-28 Anatoly Sokolov <aesok@post.ru>
20867
20868 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
20869 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 20870 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
20871 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
20872 Add 'outgoing' argument.
20873 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
20874 function.
20875 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20876 TARGET_FUNCTION_VALUE_REGNO_P): Define.
20877
94369251
KT
208782011-02-28 Kai Tietz <kai.tietz@onevision.com>
20879
20880 PR debug/28047
20881 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
20882 (lookup_filename): Likewise.
b2e2ea67 20883 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 20884
80a832cd
JJ
208852011-02-28 Bernd Schmidt <bernds@codesourcery.com>
20886 Jakub Jelinek <jakub@redhat.com>
20887
20888 PR middle-end/47893
20889 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
20890 (assign_stack_local_1): Change last argument type to int.
20891 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
20892 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 20893 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
20894 (assign_stack_local): Adjust caller.
20895 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
20896 of assign_stack_local, pass 0 as last argument.
20897 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
20898 callers.
20899
1b500976
JJ
209002011-02-28 Jakub Jelinek <jakub@redhat.com>
20901
f61c6f34
JJ
20902 PR debug/47283
20903 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
20904 Use target address_mode and pointer_mode hooks instead of hardcoded
20905 Pmode and ptr_mode. Handle some simple cases of extending if
20906 POINTERS_EXTEND_UNSIGNED < 0.
20907 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
20908 Call convert_debug_memory_address.
20909 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
20910 convert_debug_memory_address.
20911
1b500976
JJ
20912 PR middle-end/46790
20913 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
20914 * configure: Regenerated.
20915 * config.in: Regenerated.
20916 * varasm.c (default_function_section): Return NULL
b2e2ea67 20917 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 20918
2f2935b6
MJ
209192011-02-28 Martin Jambor <mjambor@suse.cz>
20920
20921 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
20922 the description to match the printed values.
20923
474086eb
RG
209242011-02-28 Richard Guenther <rguenther@suse.de>
20925
20926 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
20927 of the copied scope tree.
20928
15bf6f3a
RW
209292011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20930
20931 * doc/extend.texi (Function Attributes): Avoid deeply (and
20932 wrongly) nested tables.
20933
f6b439c9
JJ
209342011-02-27 Jakub Jelinek <jakub@redhat.com>
20935
20936 PR middle-end/47903
20937 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
20938 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
20939 r isn't op0 nor op1.
20940
1d8ca2c7
GJL
209412011-02-23 Georg-Johann Lay <avr@gjlay.de>
20942
20943 * config/avr/avr.md: Remove magic comment for emacs.
20944
593fca4b
GJL
209452011-02-23 Georg-Johann Lay <avr@gjlay.de>
20946
20947 PR target/45261
20948 * config/avr/avr.c (avr_option_override): Use error on bad options.
20949 (avr_help): New function.
20950 (TARGET_HELP): Define.
20951
6609216e
GJL
209522011-02-22 Georg-Johann Lay <avr@gjlay.de>
20953
20954 PR target/42240
20955 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
20956 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
20957
03d458af
GP
209582011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
20959
20960 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
20961 (ARM Options): Ditto.
20962 (i386 and x86-64 Options): Ditto.
20963 (RX Options): Ditto.
20964 (SPARC Options): Ditto.
20965
1c379b78
TC
209662011-02-26 Tijl Coosemans <tijl@coosemans.org>
20967
20968 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
20969 FreeBSD 6 and later. Generally use cpu generic.
20970
d5ed058c 209712011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 20972
d5ed058c
GP
20973 * doc/cpp.texi: Update copyright years.
20974
509d65dd 209752011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 20976
509d65dd 20977 PR target/46898
308d39cd
SB
20978 * config/lm32/lm32.md (ashrsi3): Added needed variable.
20979
509d65dd 209802011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 20981
509d65dd 20982 PR target/46898
308d39cd
SB
20983 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
20984 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
20985 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
20986 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 20987 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
20988 (gen_int_relational): Move declarations to start of function.
20989
822ba6d7
EB
209902011-02-25 Eric Botcazou <ebotcazou@adacore.com>
20991
20992 PR tree-optimization/45470
20993 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
20994 can throw internally only.
20995 * tree-vect-stmts.c (vectorizable_call): Likewise.
20996
ef795fc2
AS
209972011-02-24 Anatoly Sokolov <aesok@post.ru>
20998
20999 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
21000 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
21001 * config/stormy16/stormy16-protos.h
21002 (xstormy16_preferred_reload_class): Remove.
21003 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
21004 static. Change 'rclass' argument and return type to reg_class_t.
21005 (TARGET_PREFERRED_RELOAD_CLASS,
21006 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
21007
1c3277ee
RG
210082011-02-24 Richard Guenther <rguenther@suse.de>
21009
21010 * lto-streamer-in.c (input_bb): Do not find referenced vars
21011 in debug statements.
21012
67e18edb
JM
210132011-02-23 Jason Merrill <jason@redhat.com>
21014
21015 * common.opt (fabi-version): Document v5 and v6.
21016
b14fad9d
RG
210172011-02-23 Richard Guenther <rguenther@suse.de>
21018
21019 PR tree-optimization/47849
21020 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
21021
7fcf46f5
JZ
210222011-02-23 Jie Zhang <jie@codesourcery.com>
21023
21024 * opts-common.c (decode_cmdline_option): Print empty string
21025 argument as "" in decoded->orig_option_with_args_text.
21026 * gcc.c (execute): Print empty string argument as ""
21027 in the verbose output.
21028 (do_spec_1): Keep empty string argument.
21029
f85b70fd
NF
210302011-02-23 Nathan Froyd <froydnj@codesourcery.com>
21031
21032 * config.gcc: Declare score-* and crx-* obsolete.
21033
b152a615
JZ
210342011-02-23 Jie Zhang <jie@codesourcery.com>
21035
21036 PR rtl-optimization/47763
21037 * web.c (web_main): Ignore naked clobber when replacing register.
21038
bb6e77bc
AS
210392011-02-22 Anatoly Sokolov <aesok@post.ru>
21040
21041 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
21042 Remove.
21043
68bf6491
SP
210442011-02-22 Sebastian Pop <sebastian.pop@amd.com>
21045
21046 PR doc/47848
21047 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
21048
88ee1fc7
MS
210492011-02-22 Mike Stump <mikestump@comcast.net>
21050
21051 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
21052 assembler.
21053 * configure: Regenerate.
21054
6042d1dd
CLT
210552011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
21056
21057 PR rtl-optimization/46002
21058 * ira-color.c (update_copy_costs): Change class intersection
21059 test to reg_class_contents[] test of 'hard_regno'.
21060
7de97f9e
JM
210612011-02-21 Joseph Myers <joseph@codesourcery.com>
21062
21063 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
21064 than Driver option.
21065 * config/hpux11.opt (mt): Likewise.
21066 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
21067 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
21068 * config/vax/elf.opt (mno-asm-pic): Likewise.
21069 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
21070
d1d46f9f
MS
210712011-02-21 Mike Stump <mikestump@comcast.net>
21072
21073 PR target/47822
21074 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
21075 tree so we can get save the type.
21076 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
21077 for CFString instead of trying to use past the end of the builtins.
21078 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
21079 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
21080 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
21081 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
21082 Rename to darwin_builtin_cfstring.
21083 (darwin_init_cfstring_builtins): Return the built type.
21084
23e0d930
UB
210852011-02-21 Uros Bizjak <ubizjak@gmail.com>
21086
21087 PR target/47840
21088 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
21089 (_mm256_insert_epi64): Use _mm_insert_epi64.
21090
192997cf
AS
210912011-02-21 Anatoly Sokolov <aesok@post.ru>
21092
21093 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21094 * config/stormy16/stormy16-protos.h
21095 (xstormy16_mode_dependent_address_p): Remove.
21096 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
21097 Make static. Change return type to bool. Change argument type to
21098 const_rtx. Remove dead code.
21099 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21100
e292d003
RG
211012011-02-21 Richard Guenther <rguenther@suse.de>
21102
21103 PR lto/47820
21104 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
21105 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
21106 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
21107 TUs context.
23e0d930 21108 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
21109 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
21110
77f846e9
RG
211112011-02-20 Richard Guenther <rguenther@suse.de>
21112
21113 PR lto/47822
21114 * tree.c (free_lang_data_in_decl): Clean builtins from
21115 the TU decl BLOCK_VARS.
23e0d930 21116
b2cddfc8
AO
211172011-02-19 Alexandre Oliva <aoliva@redhat.com>
21118
21119 PR debug/47620
21120 PR debug/47630
21121 * haifa-sched.c (fix_tick_ready): Skip tick computation
21122 for debug insns.
21123
becf4c11
RG
211242011-02-19 Richard Guenther <rguenther@suse.de>
21125
21126 PR lto/47647
21127 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
21128 Remove lazy BLOCK_VARS streaming.
21129 (lto_input_ts_block_tree_pointers): Likewise.
21130 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
21131
27f98305
JM
211322011-02-19 Joseph Myers <joseph@codesourcery.com>
21133
21134 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
21135
064bf3f4
JM
211362011-02-19 Joseph Myers <joseph@codesourcery.com>
21137
21138 * config/i386/biarch32.h, config/i386/mach.h,
21139 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
21140
9215ddc3
JJ
211412011-02-19 Jakub Jelinek <jakub@redhat.com>
21142
21143 PR target/47800
21144 * config/i386/i386.md (peephole2 for shift and plus): Use
21145 operands[1] original mode in the first insn.
21146
8b021004
MS
211472011-02-18 Mike Stump <mikestump@comcast.net>
21148
65ded153 21149 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 21150
f84ae14c
JH
211512011-02-18 Jan Hubicka <jh@suse.cz>
21152
21153 PR middle-end/47788
65ded153
EB
21154 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
21155 to zero when the function is not inlinable at all.
f84ae14c 21156
eddabc80
JDA
211572011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21158
21159 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
21160 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
21161 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
21162 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
21163 * config/pa/t-pa64: Likewise.
21164 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
21165
ca3da783
JJ
211662011-02-18 Jakub Jelinek <jakub@redhat.com>
21167
21168 PR driver/47787
21169 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
21170
430aa868
JDA
211712011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21172
21173 PR target/47792
21174 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
21175
4bf7ff7e
AS
211762011-02-18 Anatoly Sokolov <aesok@post.ru>
21177
21178 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21179 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
21180 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
21181 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21182 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
21183 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
21184 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
21185 m32r_load_postinc_p, m32r_store_preinc_predec_p,
21186 m32r_legitimate_address_p): New functions.
21187 * config/m32r/constraints.md (constraint "S"): Don't use
21188 STORE_PREINC_PREDEC_P.
21189 (constraint "U"): Don't use LOAD_POSTINC_P.
21190
7efcf910
CLT
211912011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
21192
21193 PR rtl-optimization/46178
21194 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
21195 compute ira_hard_regno_cover_class[].
21196
237d6259
RG
211972011-02-18 Richard Guenther <rguenther@suse.de>
21198
21199 PR lto/47798
21200 * lto-streamer.h (lto_global_var_decls): Declare.
21201 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
21202 statics for global var processing.
21203
12d80acc
RG
212042011-02-18 Richard Guenther <rguenther@suse.de>
21205
21206 PR tree-optimization/47737
21207 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
21208 edge dominance check.
21209
abfea58d
JJ
212102011-02-18 Jakub Jelinek <jakub@redhat.com>
21211
21212 PR debug/47780
21213 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
21214 avoid invalid rtx sharing.
21215
f73c8882
GP
212162011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
21217
21218 * doc/cpp.texi (Obsolete Features): Add background on the
21219 origin of assertions.
21220
d764a8e6
IS
212212011-02-17 Iain Sandoe <iains@gcc.gnu.org>
21222
21223 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 21224 objc_abi == 2.
d764a8e6
IS
21225 * config/darwin.c (output_objc_section_asm_op): Added support for
21226 ABI v1 and v2.
21227 (is_objc_metadata): New.
21228 (darwin_objc2_section): New.
21229 (darwin_objc1_section): New.
21230 (machopic_select_section): Added support for ABI v1 and v2.
21231 (darwin_emit_objc_zeroed): New.
21232 (darwin_output_aligned_bss): Detect objc metadata and treat it
21233 appropriately.
21234 (darwin_asm_output_aligned_decl_common): Same.
21235 (darwin_asm_output_aligned_decl_local): Same.
21236 * config/darwin-sections.def: Updated for ABI v1 and v2.
21237 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
21238 compiling Objective-C code for the NeXT runtime, default to using
21239 ABI version 0 for 32-bit, and version 2 for 64-bit.
21240
0a8134ca
JM
212412011-02-17 Joseph Myers <joseph@codesourcery.com>
21242
21243 * common.opt (optimize_fast): New Variable.
21244 * opts.c (default_options_optimization): Use opts->x_optimize_fast
21245 instead of local variable ofast.
21246
0a256240
NP
212472011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
21248
21249 * doc/invoke.texi (fobjc-abi-version): Documented.
21250 (fobjc-nilcheck): Documented.
21251 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
21252 version.
21253
fa381cb2
JM
212542011-02-17 Joseph Myers <joseph@codesourcery.com>
21255
21256 PR driver/47390
21257 * common.opt (export-dynamic): New Driver option.
21258 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
21259
5437eaa6
JM
212602011-02-17 Joseph Myers <joseph@codesourcery.com>
21261
21262 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
21263
bb7e6d55
AO
212642011-02-17 Alexandre Oliva <aoliva@redhat.com>
21265 Jan Hubicka <jh@suse.cz>
21266
21267 PR debug/47106
21268 PR debug/47402
21269 * cfgexpand.c (account_used_vars_for_block): Remove.
21270 (estimated_stack_frame_size): Use referenced vars.
21271 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
21272 that were referenced in the original function. Test src_fn
21273 rather than cfun. Drop redundant get_var_ann.
21274 (setup_one_parameter): Drop redundant get_var_ann.
21275 (declare_return_variable): Likewise.
21276 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
21277 (copy_arguments_for_versioning): Drop redundant get_var_ann.
21278 * ipa-inline.c (compute_inline_parameters): Do not compute
21279 disregard_inline_limits here.
bb7e6d55
AO
21280 (compute_inlinable_for_current, pass_inlinable): New.
21281 (pass_inline_parameters): Require PROP_referenced_vars.
21282 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 21283 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
21284 (cgraph_analyze_function): Set .disregard_inline_limits.
21285 * tree-sra.c (convert_callers): Compute inliner parameters
21286 only for functions already in SSA form.
21287
f181a8a7
JM
212882011-02-17 Joseph Myers <joseph@codesourcery.com>
21289
21290 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
21291 -mlittle-endian-data.
21292
c6869789
JM
212932011-02-17 Joseph Myers <joseph@codesourcery.com>
21294
21295 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
21296 -mno-fpu, not -fpu and -no-fpu.
21297 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
21298 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
21299
fbf4bfd3
UB
213002011-02-17 Uros Bizjak <ubizjak@gmail.com>
21301
21302 PR target/43653
21303 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
21304 input reload with PLUS RTX.
21305
70be5dc7
JM
213062011-02-16 Joseph Myers <joseph@codesourcery.com>
21307
21308 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
21309 of InverseVar(MDMX).
21310
30b1646e
JM
213112011-02-16 Joseph Myers <joseph@codesourcery.com>
21312
21313 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
21314 --m4-340.
21315
ab7b71e9
JM
213162011-02-16 Joseph Myers <joseph@codesourcery.com>
21317
21318 * config/mn10300/mn10300.opt (mno-crt0): New.
21319
466f3f08
JM
213202011-02-16 Joseph Myers <joseph@codesourcery.com>
21321
21322 * config/m68k/uclinux.opt (static-libc): New Driver option.
21323
8226cd7b
JM
213242011-02-16 Joseph Myers <joseph@codesourcery.com>
21325
21326 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
21327
45cab1d7
JM
213282011-02-16 Joseph Myers <joseph@codesourcery.com>
21329
21330 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
21331 %{muser-extend-enabled}.
21332
65aab64f
RG
213332011-02-16 Richard Guenther <rguenther@suse.de>
21334
21335 PR tree-optimization/47738
21336 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
21337 the TODO from tree_predictive_commoning.
21338
fc2fa4fb
JL
213392011-02-15 Jeff Law <law@redhat.com>
21340
21341 Revert
21342 2011-01-25 Jeff Law <law@redhat.com>
21343
21344 PR rtl-optimization/37273
21345 * ira-costs.c (scan_one_insn): Detect constants living in memory and
21346 handle them like argument loads from stack slots. Do not double
21347 count memory for memory constants and argument loads from stack slots.
21348
e3a69bb4
MM
213492011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
21350
21351 PR target/47755
21352 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
21353 mode for vector constants. Remove code that checks for TImode.
21354
de650422
AO
213552011-02-15 Alexandre Oliva <aoliva@redhat.com>
21356
21357 PR debug/47106
21358 PR debug/47402
21359 * cgraph.h (compute_inline_parameters): Return void.
21360 * ipa-inline.c (compute_inline_parameters): Adjust.
21361
30925d94
AO
213622011-02-15 Alexandre Oliva <aoliva@redhat.com>
21363
21364 PR debug/47106
21365 PR debug/47402
21366 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
21367 rather than decl.
21368 * cfgexpand.c (estimated_stack_frame_size): Likewise.
21369 * ipa-inline.c (compute_inline_parameters): Adjust.
21370
1b9a784a
AO
213712011-02-15 Alexandre Oliva <aoliva@redhat.com>
21372
21373 PR debug/47106
21374 PR debug/47402
21375 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
21376 Adjust all users. Pass FN to...
21377 * tree-flow-inline.h (first_referenced_var): ... this. Add
21378 fn argument.
21379 * ipa-struct-reorg.c: Adjust.
21380 * tree-dfa.c: Adjust.
21381 * tree-into-ssa.c: Adjust.
21382 * tree-sra.c: Adjust.
21383 * tree-ssa-alias.c: Adjust.
21384 * tree-ssa-live.c: Adjust.
21385 * tree-ssa.c: Adjust.
21386 * tree-ssanames.c: Adjust.
21387 * tree-tailcall.c: Adjust.
21388
27c6b086
AO
213892011-02-15 Alexandre Oliva <aoliva@redhat.com>
21390
21391 PR debug/47106
21392 PR debug/47402
21393 * tree-flow.h (referenced_var_lookup): Add fn parameter.
21394 Adjust all callers.
21395 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
21396 * tree-flow-inline.h: Adjust.
21397 * gimple-pretty-print.c: Adjust.
21398 * tree-into-ssa.c: Adjust.
21399 * tree-ssa.c: Adjust.
21400 * cfgexpand.c: Adjust.
21401
679e8183
NF
214022011-02-15 Nathan Froyd <froydnj@codesourcery.com>
21403
fbf4bfd3
UB
21404 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
21405 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21406 (EXTRA_CONSTRAINT): Delete.
21407 * config/iq2000/constraints.md: New file.
21408 * config/iq2000/iq2000.md: Include it.
679e8183
NF
21409 (define_insn ""): Delete.
21410 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
21411 unsupported constraint letters from patterns.
21412 (call_value, call_value_internal1): Likewise.
21413 (call_value_multiple_internal1): Likewise.
21414
a45d420a
NC
214152011-02-15 Nick Clifton <nickc@redhat.com>
21416
21417 * config/mn10300/mn10300.c: Include tm-constrs.h.
21418 (struct liw_data): New data structure describing an LIW candidate
21419 instruction.
21420 (extract_bundle): Use struct liw_data. Allow small integer
21421 operands for some instructions.
21422 (check_liw_constraints): Use struct liw_data. Remove swapped
21423 parameter. Add comments describing the checks. Fix bug when
21424 assigning the source of liw1 to the source of liw2.
21425 (liw_candidate): Delete. Code moved into extract_bundle.
21426 (mn10300_bundle_liw): Use struct liw_data. Check constraints
21427 before swapping.
21428 * config/mn10300/predicates.md (liw_operand): New predicate.
21429 Allows registers and small integer constants.
21430 * config/mn10300/constraints.md (O): New constraint. Accetps
21431 integers in the range -8 to +7 inclusive.
21432 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
21433 for moving a small integer into a register. Give this alternative
21434 LIW attributes.
21435 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
21436 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
21437 using the J,K,L and M constraints,
21438 (liw): Remove SI mode on second operands to allow for HI and QI
21439 mode values.
21440 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
21441 instruction.
21442
48feba28
RG
214432011-02-15 Richard Guenther <rguenther@suse.de>
21444
21445 PR tree-optimization/47743
21446 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
21447 for a non-type-compatible VN lookup bail out.
21448
ad1c1eeb
NF
214492011-02-15 Nathan Froyd <froydnj@codesourcery.com>
21450
21451 * config/fr30/constraints.md: New file.
21452 * config/fr30/fr30.md: Include it.
21453 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
21454 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21455 (EXTRA_CONSTRAINT): Delete.
21456
49ac143d
NF
214572011-02-15 Nathan Froyd <froydnj@codesourcery.com>
21458
21459 * config/frv/constraints.md: New file.
21460 * config/frv/predicates.md: Include it.
21461 * config/frv/frv.c (reg_class_from_letter): Delete.
21462 (frv_option_override): Don't initialize it.
21463 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
21464 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
21465 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
21466 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
21467 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
21468 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21469 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
21470 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
21471 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
21472 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
21473 (REG_CLASS_FROM_CONSTRAINT): Delete.
21474
c95f9494
JJ
214752011-02-15 Jakub Jelinek <jakub@redhat.com>
21476
21477 PR middle-end/47581
21478 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
21479 if frame size is 0 in a leaf function.
21480
13aed611
RO
214812011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21482
21483 PR pch/14940
21484 * config/alpha/host-osf.c: New file.
21485 * config/alpha/x-osf: New file.
21486 * config.host (alpha*-dec-osf*): Use it.
21487
b09c3081
AS
214882011-02-14 Anatoly Sokolov <aesok@post.ru>
21489
21490 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21491 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
21492 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
21493 (rx_mode_dependent_address_p): ...this. Make static. Change argument
21494 type to const_rtx.
21495 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21496
d634083b
NF
214972011-02-14 Nathan Froyd <froydnj@codesourcery.com>
21498
21499 * config/stormy16/constraints.md: New file.
21500 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
21501 Use satisfies_constraint_Q and satisfies_constraint_R.
21502 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
21503 Delete.
21504 (xstormy16_legitiamte_address_p): Declare.
21505 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
21506 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21507 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 21508 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
21509 Un-staticize.
21510 (xstormy16_extra_constraint_p): Delete.
21511
c7dd803e
EB
215122011-02-14 Eric Botcazou <ebotcazou@adacore.com>
21513
21514 PR tree-optimization/46494
21515 * loop-unroll.c (split_edge_and_insert): Adjust comment.
21516 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
21517 (pass_rtl_loop_done): Add TODO_verify_flow.
21518 * fwprop.c (pass_rtl_fwprop): Likewise.
21519 * modulo-sched.c (pass_sms): Likewise.
21520 * tree-ssa-dom.c (pass_dominator): Likewise.
21521 * tree-ssa-loop-ch.c (pass_ch): Likewise.
21522 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
21523 (pass_tree_loop_done): Likewise.
21524 * tree-ssa-pre.c (execute_pre): Likewise.
21525 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
21526 * tree-ssa-sink.c (pass_sink_code): Likewise.
21527 * tree-vrp.c (pass_vrp): Likewise.
21528
c6150df6
NF
215292011-02-14 Nathan Froyd <froydnj@codesourcery.com>
21530
c7dd803e
EB
21531 * config/v850/constraints.md: New file.
21532 * config/v850/v850.md: Include it.
21533 * config/v850/predicates.md (reg_or_0_operand): Use
21534 satisfies_constraint_G.
21535 (special_symbolref_operand): Use satisfies_constraint_K.
21536 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
21537 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
21538 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
21539 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
21540 (EXTRA_CONSTRAINT): Delete.
21541 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
21542 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
21543 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 21544
30dd1ea3
AS
215452011-02-14 Anatoly Sokolov <aesok@post.ru>
21546
21547 PR target/47696
21548 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
21549 description.
21550
944f4bb3
NF
215512011-02-14 Nathan Froyd <froydnj@codesourcery.com>
21552
21553 * config/mcore/constraints.md: New file.
21554 * config/mcore/mcore.md: Include it.
21555 * config/mcore/mcore.c (reg_class_from_letter): Delete.
21556 * config/mcore/mcore.h (reg_class_from_letter): Delete.
21557 (REG_CLASS_FROM_LETTER): Delete.
21558 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
21559 insn_const_int_ok_for_constraint.
21560 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
21561 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
21562 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21563 (EXTRA_CONSTRAINT): Delete.
21564
ad56a54c
RO
215652011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21566
21567 PR ada/41929
21568 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
21569 (IS_SIGHANDLER): Define.
21570 (sparc64_is_sighandler): New function, split off from
21571 sparc64_fallback_frame_state.
21572 (sparc_is_sighandler): New function, split off from
21573 sparc_fallback_frame_state.
21574 (sparc64_fallback_frame_state): Merge with ...
21575 (sparc_fallback_frame_state): ... this into ...
21576 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
21577 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
21578 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
21579 stack instead of hardcoded offsets.
ad56a54c 21580
fbf4bfd3 215812011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
21582
21583 PR target/45808
21584 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
21585
029c8f3e
RW
215862011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21587
21588 * configure: Regenerate.
21589
a016dc83
JM
215902011-02-12 Joseph Myers <joseph@codesourcery.com>
21591
21592 PR driver/45731
21593 * gcc.c (asm_options): Correct spec matching --target-help.
21594
8957a0ec
MJ
215952011-02-12 Martin Jambor <mjambor@suse.cz>
21596
21597 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
21598 to gimple call error.
21599
6ef828bc
MS
216002011-02-12 Mike Stump <mikestump@comcast.net>
21601
21602 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
21603 comments in backslash regions.
21604
a4015be5
MS
216052011-02-12 Mike Stump <mikestump@comcast.net>
21606 Jakub Jelinek <jakub@redhat.com>
21607 Iain Sandoe <iains@gcc.gnu.org>
21608
21609 PR target/47324
21610 * dwarf2out.c (output_cfa_loc): When required, apply the
21611 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
21612 (output_loc_sequence): Likewise.
21613 (output_loc_operands_raw): Likewise.
21614 (output_loc_sequence_raw): Likewise.
21615 (output_cfa_loc): Likewise.
21616 (output_loc_list): Suppress register number adjustment when
21617 calling output_loc_sequence()
21618 (output_die): Likewise.
21619
5378dda2
AS
216202011-02-12 Anatoly Sokolov <aesok@post.ru>
21621
21622 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
21623 Remove macros.
21624 * config/xtensa/xtensa.c (xtensa_register_move_cost,
21625 xtensa_memory_move_cost): New functions.
21626 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
21627
f3d533d3
AO
216282011-02-12 Alexandre Oliva <aoliva@redhat.com>
21629
21630 PR lto/47225
21631 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
21632 in the current directory.
21633 * configure: Rebuilt.
21634
9d53403c
IS
216352011-02-12 Iain Sandoe <iains@gcc.gnu.org>
21636
21637 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 21638 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
21639 correct indents of the preceding block.
21640
a350a6c8
IS
216412011-02-12 Iain Sandoe <iains@gcc.gnu.org>
21642
21643 * gcc.c (driver_handle_option): Concatenate the argument to -F with
21644 the switch.
21645
bab79a40
JM
216462011-02-11 Joseph Myers <joseph@codesourcery.com>
21647
21648 * common.opt (nostartfiles): New Driver option.
21649
1bbc6693
XDL
216502011-02-11 Xinliang David Li <davidxl@google.com>
21651
21652 PR tree-optimization/47707
21653 * tree-chrec.c (convert_affine_scev): Keep type precision.
21654
1da7d8c0
EB
216552011-02-11 Eric Botcazou <ebotcazou@adacore.com>
21656
21657 PR tree-optimization/47420
21658 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
21659
216602011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
21661
21662 PR rtl-optimization/47614
21663 * rtl.h (check_for_inc_dec): Declare.
21664 * dse.c (check_for_inc_dec): Externalize...
21665 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
21666 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
21667
4df47bca
JM
216682011-02-11 Joseph Myers <joseph@codesourcery.com>
21669
21670 PR driver/47678
21671 * gcc.c (main): Do not compile inputs if there were errors in
21672 option handling.
21673 * opts-common.c (read_cmdline_option): Check for wrong language
21674 after other error checks.
21675
61502ca8
NF
216762011-02-11 Nathan Froyd <froydnj@codesourcery.com>
21677
21678 * cgraph.c: Fix comment typos.
21679 * cgraph.h: Likewise.
21680 * cgraphunit.c: Likewise.
21681 * ipa-cp.c: Likewise.
21682 * ipa-inline.c: Likewise.
21683 * ipa-prop.c: Likewise.
21684 * ipa-pure-const.c: Likewise.
21685 * ipa-ref.c: Likewise.
21686 * ipa-reference.c: Likewise.
21687
b63f974e
JJ
216882011-02-11 Jakub Jelinek <jakub@redhat.com>
21689
d50c5e0c
JJ
21690 PR debug/47684
21691 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 21692
6dd2a13c
RO
216932011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21694
21695 PR testsuite/47400
21696 * doc/sourcebuild.texi (Require Support): Document
21697 dg-require-ascii-locale.
21698
4a087ccf
MX
216992011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
21700
21701 * doc/lto.texi (Write summary): Fix missing parentheses.
21702
a4403164
DD
217032011-02-10 DJ Delorie <dj@redhat.com>
21704
21705 * config/m32c/m32c.c (m32c_option_override): Disable
21706 -fcombine-stack-adjustments until flag value tracking and compare
21707 optimization can be rewritten.
21708
4fac45bd
PB
217092011-02-10 Peter Bergner <bergner@vnet.ibm.com>
21710
21711 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
21712 PROCESSOR_POWER7.
21713 (PROCESSOR_DEFAULT64): Likewise.
21714
72602cd1
RH
217152011-02-10 Richard Henderson <rth@redhat.com>
21716
21717 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
21718 change from 2011-02-03.
21719 * config/rx/rx.c (flags_from_code): Likewise.
21720 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
21721 is valid, n/pz otherwise.
21722 (rx_select_cc_mode): Return CCmode if Y is not zero.
21723
ea57f573
RG
217242011-02-10 Richard Guenther <rguenther@suse.de>
21725
ea4c3e65 21726 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 21727
92b1d23b
RG
217282011-02-10 Richard Guenther <rguenther@suse.de>
21729
21730 PR tree-optimization/47677
21731 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
21732
525a2d06
JJ
217332011-02-10 Jakub Jelinek <jakub@redhat.com>
21734
21735 PR target/47665
21736 * combine.c (make_compound_operation): Only change shifts into
21737 multiplication for SCALAR_INT_MODE_P.
21738
06c969bd
JZ
217392011-02-10 Jie Zhang <jie@codesourcery.com>
21740
21741 PR testsuite/47622
21742 Revert
21743 2011-02-05 Jie Zhang <jie@codesourcery.com>
21744 PR debug/42631
21745 * web.c (entry_register): Don't clobber the number of the
21746 first uninitialized reference in used[].
21747
282ec48e
RG
217482011-02-09 Richard Guenther <rguenther@suse.de>
21749
21750 PR tree-optimization/47664
21751 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
21752 all edges again.
21753
df98c3e8
DE
217542011-02-09 David Edelsohn <dje.gcc@gmail.com>
21755
d0f21cd6
DE
21756 PR target/46481
21757 PR target/47032
df98c3e8
DE
21758 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
21759 PROCESSOR_POWER7.
21760 (PROCESSOR_DEFAULT64): Same.
21761 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
21762
67b6839f
RO
217632011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21764
21765 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
21766
4fd73214
MJ
217672011-02-09 Martin Jambor <mjambor@suse.cz>
21768
21769 PR middle-end/45505
21770 * tree-sra.c (struct access): New flags grp_scalar_read and
21771 grp_scalar_write. Changed description of assignment read and write
21772 flags.
21773 (dump_access): Dump new flags, reorder all of them.
21774 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
21775 to detect multiple scalar reads.
21776 (analyze_access_subtree): Use the new scalar read write flags instead
21777 of the old flags. Adjusted comments.
21778
91140cd3
DD
217792011-02-08 DJ Delorie <dj@redhat.com>
21780
21781 PR target/47548
21782 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
21783 patterns.
21784
4254bbfe
JM
217852011-02-08 Joseph Myers <joseph@codesourcery.com>
21786
21787 * config/m68k/uclinux.opt: New.
21788 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
21789
f1fda84e
JM
217902011-02-08 Joseph Myers <joseph@codesourcery.com>
21791
21792 * config/cris/elf.opt (sim): New Driver option.
21793
4933ae74
JM
217942011-02-08 Joseph Myers <joseph@codesourcery.com>
21795
21796 * config/xtensa/elf.opt: New.
21797 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
21798
4ad70280
JM
217992011-02-08 Joseph Myers <joseph@codesourcery.com>
21800
21801 * config/vax/elf.opt: New.
21802 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
21803
20893707
JM
218042011-02-08 Joseph Myers <joseph@codesourcery.com>
21805
21806 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
21807
b8e7038e
JM
218082011-02-08 Joseph Myers <joseph@codesourcery.com>
21809
21810 * config/gnu-user.opt: New.
21811 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
21812 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
21813 *-*-uclinux*): Use gnu-user.opt.
21814
e1c5225a
TS
218152011-02-08 Thomas Schwinge <thomas@schwinge.name>
21816
21817 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
21818 * config/i386/gnu.h (CPP_SPEC): Likewise.
21819
5e46b0c6
ILT
218202011-02-08 Ian Lance Taylor <iant@google.com>
21821
21822 * common.opt (fcx-limited-range): Add SetByCombined flag.
21823 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
21824 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
21825 (fassociative-math, freciprocal-math): Likewise.
21826 (funsafe-math-optimizations): Likewise.
21827 * opth-gen.awk: Handle SetByCombined.
21828 * optc-gen.awk: Likewise.
ea4c3e65 21829 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
21830 (set_unsafe_math_optimizations_flags): Likewise.
21831 * doc/options.texi (Option properties): Document SetByCombined.
21832
32243d46
JM
218332011-02-08 Joseph Myers <joseph@codesourcery.com>
21834
21835 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
21836 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
21837 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
21838 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
21839 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
21840
479c1fb3
SP
218412011-02-08 Sebastian Pop <sebastian.pop@amd.com>
21842
21843 PR tree-optimization/46834
21844 PR tree-optimization/46994
21845 PR tree-optimization/46995
21846 * graphite-sese-to-poly.c (used_outside_reduction): New.
21847 (detect_commutative_reduction): Call used_outside_reduction.
21848 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
21849 translate_scalar_reduction_to_array only when at least one
21850 loop-phi/close-phi tuple has been detected.
21851
3865a06f
RG
218522011-02-08 Richard Guenther <rguenther@suse.de>
21853
21854 PR middle-end/47639
21855 * tree-vect-generic.c (expand_vector_operations_1): Update
21856 stmts here ...
21857 (expand_vector_operations): ... not here. Cleanup EH info
21858 and the CFG if required.
21859
62902f3f
RG
218602011-02-08 Richard Guenther <rguenther@suse.de>
21861
21862 PR tree-optimization/47641
21863 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
21864 require type compatibility.
21865
0efb9d64
AK
218662011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21867
21868 * gimple-low.c (lower_function_body): Don't remove the location of
21869 the return statement here.
21870 (lower_gimple_return): Do it here instead but only if the return
21871 statement is actually used twice.
21872
034b8ae4
RG
218732011-02-08 Richard Guenther <rguenther@suse.de>
21874
21875 PR tree-optimization/47632
21876 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
21877 unused up_to_stmt parameter, return whether cfg-cleanup is
21878 necessary, remove EH info properly.
21879 (forward_propagate_into_gimple_cond): Adjust caller.
21880 (forward_propagate_into_cond): Likewise.
21881 (forward_propagate_comparison): Likewise.
21882 (tree_ssa_forward_propagate_single_use_vars): Make
21883 forward_propagate_comparison case similar to the two others.
21884
298362c8
NC
218852011-02-08 Nick Clifton <nickc@redhat.com>
21886
21887 * config/mn10300/mn10300.opt (mliw): New command line option.
21888 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
21889 (liw_bundling): New automaton.
21890 (liw): New attribute.
21891 (liw_op): New attribute.
21892 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
21893 (movsi_internal): Add LIW attributes.
21894 (andsi3): Likewise.
21895 (iorsi3): Likewise.
21896 (xorsi3): Likewise.
21897 (addsi3): Separate register and immediate alternatives.
21898 Add LIW attributes.
21899 (subsi3): Likewise.
21900 (cmpsi): Likewise.
21901 (aslsi3): Likewise.
21902 (lshrsi3): Likewise.
21903 (ashrsi3): Likewise.
21904 (liw): New pattern.
21905 * config/mn10300/mn10300.c (liw_op_names): New
21906 (mn10300_print_operand): Handle 'W' operand descriptor.
21907 (extract_bundle): New function.
21908 (check_liw_constraints): New function.
21909 (liw_candidate): New function.
21910 (mn10300_bundle_liw): New function.
21911 (mn10300_reorg): New function.
21912 (TARGET_MACHINE_DEPENDENT_REORG): Define.
21913 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
21914 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
21915 __LIW__ or __NO_LIW__.
21916 * doc/invoke.texi: Describe the -mliw command line option.
21917
90488014
JDA
219182011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21919
21920 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
21921 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
21922 pthread_mutex_unlock): Remove.
21923 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
21924 * config/pa/t-pa64: Likewise.
21925 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
21926 shared libc if not linking against libpthread.
21927 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21928
689ff841
IS
219292011-02-07 Iain Sandoe <iains@gcc.gnu.org>
21930
21931 PR target/47558
21932 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
21933 on 10.6 and later to ensure that we always use the unwinder from
21934 the system. Only add -no_compact_unwind when tarteting darwin
21935 10.6 or later.
21936
821014aa
SE
219372011-02-07 Steve Ellcey <sje@cup.hp.com>
21938
21939 PR target/46997
21940 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
21941 (vec_interleave_lowv2sf): Ditto.
21942 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
21943 (vec_extract_oddv2sf): Ditto.
21944
41cf94fb
MS
219452011-02-07 Mike Stump <mikestump@comcast.net>
21946
62dea57d 21947 PR target/42333
41cf94fb
MS
21948 Add __ieee_divdc3 entry point.
21949 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
21950 entry point.
21951 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
21952 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
21953 * config/darwin.c (darwin_rename_builtins): Add.
21954 * config/darwin-protos.h (darwin_rename_builtins): Add.
21955
ee09a3dd
MM
219562011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
21957
21958 PR target/47636
21959 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
21960 for the condition.
21961
83296cd0
MS
219622011-02-07 Mike Stump <mikestump@comcast.net>
21963
ea4c3e65 21964 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 21965
0f4e946f
DC
219662011-02-07 Denis Chertykov <chertykov@gmail.com>
21967
21968 PR target/47534
21969 * config/avr/libgcc.S (exit): Move .endfunc
21970
1ec87690
RG
219712011-02-07 Richard Guenther <rguenther@suse.de>
21972
21973 PR tree-optimization/47615
21974 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
21975 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
21976 (run_scc_vn): Initialize it.
21977 (visit_reference_op_load): Use it.
21978 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
21979
b46ae6da
UW
219802011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21981
21982 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
21983 DImode trapping arithmetic libfuncs.
21984
c0aae19c
RG
219852011-02-07 Richard Guenther <rguenther@suse.de>
21986
21987 PR tree-optimization/47621
21988 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
21989 two duplicates ...
21990 (execute_update_addresses_taken): ... here. Make it more
21991 conservative in what we accept.
21992
295d926b
JM
219932011-02-06 Joseph Myers <joseph@codesourcery.com>
21994
21995 * config/sparc/freebsd.h (ASM_SPEC): Define.
21996 * config/sparc/vxworks.h (ASM_SPEC): Define.
21997
bdeb2471
JM
219982011-02-06 Joseph Myers <joseph@codesourcery.com>
21999
22000 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
22001
d5d3781a
SB
220022011-02-06 Steven Bosscher <steven@gcc.gnu.org>
22003
22004 * doc/invoke.texi: Remove reference to compiler internals from
22005 user documentation.
22006
22007 * reg-notes.def: Remove REG_VALUE_PROFILE.
22008 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
22009
c42c09fc
JJ
220102011-02-05 Jakub Jelinek <jakub@redhat.com>
22011
22012 PR middle-end/47610
22013 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 22014 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 22015
beea2755
JZ
220162011-02-05 Jie Zhang <jie@codesourcery.com>
22017
22018 PR debug/42631
22019 * web.c (entry_register): Don't clobber the number of the
22020 first uninitialized reference in used[].
22021
a130584a
SP
220222011-02-04 Sebastian Pop <sebastian.pop@amd.com>
22023
22024 PR tree-optimization/46194
22025 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
22026 (build_classic_dist_vector_1): Do not represent classic distance
22027 vectors when the access functions are variating in different loops.
22028
962101ac
JM
220292011-02-04 Joseph Myers <joseph@codesourcery.com>
22030
22031 * config/mips/iris6.opt: New.
22032 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
22033
55eaaa5b
RH
220342011-02-04 Richard Henderson <rth@redhat.com>
22035 Steve Ellcey <sje@cup.hp.com>
22036
22037 PR target/46997
22038 * config/ia64/predicates.md (mux1_brcst_element): New.
22039 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
22040 * config/ia64/ia64.c (ia64_unpack_assemble): New.
22041 (ia64_unpack_sign): New.
22042 (ia64_expand_unpack): Rewrite using new routines.
22043 (ia64_expand_widen_sum): Ditto.
22044 (ia64_expand_dot_prod_v8qi): Ditto.
22045 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
22046 routines, add endian check.
22047 (pmpy2_even): Rename from pmpy2_r, add endian check.
22048 (pmpy2_odd): Rename from pmpy2_l, add endian check.
22049 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
22050 (vec_widen_smult_hi_v4hi): Ditto.
22051 (vec_widen_umult_lo_v4hi): Ditto.
22052 (vec_widen_umult_hi_v4hi): Ditto.
22053 (mulv2si3): Change endian checks.
22054 (sdot_prodv4hi): Rewrite with new calls.
22055 (udot_prodv4hi): New.
22056 (vec_pack_ssat_v4hi): Add endian check.
22057 (vec_pack_usat_v4hi): Ditto.
22058 (vec_pack_ssat_v2si): Ditto.
22059 (max1_even): Rename from max1_r, add endian check.
22060 (max1_odd): Rename from max1_l, add endian check.
22061 (*mux1_rev): Format change.
22062 (*mux1_mix): Ditto.
22063 (*mux1_shuf): Ditto.
22064 (*mux1_alt): Ditto.
22065 (*mux1_brcst_v8qi): Use new predicate.
22066 (vec_extract_evenv8qi): Remove endian check.
22067 (vec_extract_oddv8qi): Ditto.
22068 (vec_interleave_lowv4hi): Format change.
22069 (vec_interleave_highv4hi): Ditto.
22070 (mix2_even): Rename from mix2_r, add endian check.
22071 (mix2_odd): Rename from mux2_l, add endian check.
22072 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
22073 (vec_extract_evenodd_helper): Format change.
22074 (vec_extract_evenv4hi): Remove endian check.
22075 (vec_extract_oddv4hi): Remove endian check.
22076 (vec_interleave_lowv2si): Format change.
22077 (vec_interleave_highv2si): Format change.
22078 (vec_initv2si): Remove endian check.
22079 (vecinit_v2si): Add endian check.
22080 (reduc_splus_v2sf): Add endian check.
22081 (reduc_smax_v2sf): Ditto.
22082 (reduc_smin_v2sf): Ditto.
22083 (vec_initv2sf): Remove endian check.
22084 (fpack): Add endian check.
22085 (fswap): Add endian check.
22086 (vec_interleave_highv2sf): Add endian check.
22087 (vec_interleave_lowv2sf): Add endian check.
22088 (fmix_lr): Add endian check.
22089 (vec_setv2sf): Format change.
22090 (*vec_extractv2sf_0_be): Use shift to extract operand.
22091 (*vec_extractv2sf_1_be): New.
22092 (vec_pack_trunc_v4hi): Add endian check.
22093 (vec_pack_trunc_v2si): Format change.
22094
dcde5957
JJ
220952011-02-04 Jakub Jelinek <jakub@redhat.com>
22096
22097 PR inline-asm/23200
22098 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 22099 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
22100 (stmt_is_replaceable_p): New function.
22101 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
22102 callers.
22103 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
22104 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
22105 SSA_NAME_DEF_STMT.
22106 * tree-flow.h (stmt_is_replaceable_p): New prototype.
22107
a64a8e5a
JM
221082011-02-04 Joseph Myers <joseph@codesourcery.com>
22109
22110 * config/rs6000/xilinx.opt: New.
22111 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
22112
4da2ed2f
JM
221132011-02-04 Joseph Myers <joseph@codesourcery.com>
22114
22115 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
22116
a6e508f9
AS
221172011-02-03 Anatoly Sokolov <aesok@post.ru>
22118
22119 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
22120 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
22121 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
22122 secondary_reload_info, xtensa_secondary_reload): Remove.
22123 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
22124 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
22125 (xtensa_preferred_reload_class): Make static. Change return and
22126 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
22127 Use CONST_DOUBLE_P predicate.
22128 (xtensa_preferred_output_reload_class): New function.
22129 (xtensa_secondary_reload): Make static.
22130
82dc0de3
JM
221312011-02-03 Joseph Myers <joseph@codesourcery.com>
22132
22133 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
22134 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
22135 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
22136
7fece979
JJ
221372011-02-03 Jakub Jelinek <jakub@redhat.com>
22138
22139 PR middle-end/31490
22140 * output.h (SECTION_RELRO): Define.
22141 (SECTION_MACH_DEP): Adjust.
22142 (get_variable_section): New prototype.
22143 * varpool.c (varpool_finalize_named_section_flags): New function.
22144 (varpool_assemble_pending_decls): Call it.
22145 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
22146 * cgraphunit.c (cgraph_output_in_order): Call
22147 varpool_finalize_named_section_flags.
22148 * varasm.c (get_section): Allow section flags conflicts between
22149 relro and read-only sections if the section hasn't been declared yet.
22150 Set SECTION_OVERRIDE after diagnosing section type conflict.
22151 (get_variable_section): No longer static.
22152 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
22153 readonly sections that need relocations.
22154 (decl_readonly_section_1): New function.
22155 (decl_readonly_section): Use it.
22156
22157 Revert:
509d65dd 22158 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
22159 Steve Ellcey <sje@cup.hp.com>
22160
22161 PR middle-end/31490
22162 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
22163 if section attribute used.
22164
d18d5478
JJ
221652011-02-03 Jakub Jelinek <jakub@redhat.com>
22166
22167 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
22168 * config/darwin.c (SECTION_NO_ANCHOR): Define.
22169 (darwin_init_sections): Remove assertion.
22170
6479ed4b
NC
221712011-02-03 Nick Clifton <nickc@redhat.com>
22172
22173 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
22174 lt and ge.
38be4072 22175 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
22176 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
22177 instead of "n" and "pz".
22178 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
22179 CC_FLAG_S.
22180
89843f5d
JJ
221812011-02-03 Jakub Jelinek <jakub@redhat.com>
22182
65450d64
JJ
22183 PR target/47312
22184 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
22185 fma, expand FMA_EXPR as fma{,f,l} call.
22186
7d58701c
JJ
22187 PR lto/47274
22188 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
22189 copy them into a unsigned char variable and pass address of it to
22190 lto_output_data_stream.
22191
89843f5d
JJ
22192 PR target/47564
22193 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
22194 around backend_init_target and lang_dependent_init_target calls.
22195 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
22196 (verify_cgraph_node): Don't call set_cfun here. Use
22197 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
22198 Set error_found for incorrectly represented calls to thunks.
22199
4deef538
AO
222002011-02-03 Alexandre Oliva <aoliva@redhat.com>
22201
22202 PR debug/43092
22203 PR rtl-optimization/43494
22204 * rtl.h (for_each_inc_dec_fn): New type.
22205 (for_each_inc_dec): Declare.
22206 * rtlanal.c (struct for_each_inc_dec_ops): New type.
22207 (for_each_inc_dec_find_inc_dec): New fn.
22208 (for_each_inc_dec_find_mem): New fn.
22209 (for_each_inc_dec): New fn.
22210 * dse.c (struct insn_size): Remove.
22211 (replace_inc_dec, replace_inc_dec_mem): Remove.
22212 (emit_inc_dec_insn_before): New fn.
22213 (check_for_inc_dec): Use it, along with for_each_inc_dec.
22214 (canon_address): Pass mem modes to cselib_lookup.
22215 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
22216 (cselib_lookup_from_insn): Likewise.
22217 (cselib_subst_to_values): Likewise.
22218 * cselib.c (find_slot_memmode): New var.
22219 (cselib_find_slot): New fn. Use it instead of
22220 htab_find_slot_with_hash everywhere.
22221 (entry_and_rtx_equal_p): Use find_slot_memmode.
22222 (autoinc_split): New fn.
22223 (rtx_equal_for_cselib_p): Rename and implement in terms of...
22224 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
22225 Deal with autoinc. Special-case recursion into MEMs.
22226 (cselib_hash_rtx): Likewise.
22227 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
22228 address and MEM modes.
22229 (cselib_subst_to_values): Add memmode, pass it on.
22230 Deal with autoinc.
22231 (cselib_lookup): Add memmode argument, pass it on.
22232 (cselib_lookup_from_insn): Add memmode.
22233 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
22234 (struct cselib_record_autoinc_data): New.
22235 (cselib_record_autoinc_cb): New fn.
22236 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
22237 mode to cselib_lookup. Reset autoinced REGs here instead of...
22238 (cselib_process_insn): ... here.
22239 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
22240 to cselib_lookup.
22241 (add_uses): Likewise, also to cselib_subst_to_values.
22242 (add_stores): Likewise.
276e0224 22243 * sched-deps.c (add_insn_mem_dependence): Pass mode to
4deef538
AO
22244 cselib_subst_to_values.
22245 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
22246 * gcse.c (do_local_cprop): Adjusted.
22247 * postreload.c (reload_cse_simplify_set): Adjusted.
22248 (reload_cse_simplify_operands): Adjusted.
22249 * sel-sched-dump (debug_mem_addr_value): Pass mode.
22250
1551d44a
AO
222512011-02-03 Alexandre Oliva <aoliva@redhat.com>
22252
22253 PR tree-optimization/45122
22254 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
22255 unsafe assumptions when there's more than one loop exit.
22256
c9485473
MM
222572011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22258
22259 PR target/47272
22260 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22261 Document using vector double with the load/store builtins, and
22262 that the load/store builtins always use Altivec instructions.
22263
22264 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
22265 to use altivec memory instructions, even on VSX.
22266 (vector_altivec_store_<mode>): Ditto.
22267
22268 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
22269 function.
22270
22271 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22272 V2DF, V2DI support to load/store overloaded builtins.
22273
22274 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
22275 altivec load/store builtins for V2DF/V2DI types.
22276
22277 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22278 set avoid indexed addresses on power6 if -maltivec.
22279 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
22280 vector_altivec_load/vector_altivec_store builtins.
22281 (altivec_expand_st_builtin): Ditto.
22282 (altivec_expand_builtin): Add VSX memory builtins.
22283 (rs6000_init_builtins): Add V2DI types to internal types.
22284 (altivec_init_builtins): Add support for V2DF/V2DI altivec
22285 load/store builtins.
22286 (rs6000_address_for_altivec): Insure memory address is appropriate
22287 for Altivec.
22288
22289 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
22290 vec_vsx_ld and vec_vsx_st.
22291 (vsx_store_<mode>): Ditto.
22292
22293 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
22294 variables to hold long long types for VSX vector memory builtins.
22295 (RS6000_BTI_unsigned_long_long): Ditto.
22296 (long_long_integer_type_internal_node): Ditti.
22297 (long_long_unsigned_type_internal_node): Ditti.
22298
22299 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
22300 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
22301 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
22302
22303 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
22304 short cuts.
22305 (vec_vsx_st): Ditto.
22306
b24d1acf
JM
223072011-02-02 Joseph Myers <joseph@codesourcery.com>
22308
22309 * config/pa/pa-hpux10.opt: New.
22310 * config/hpux11.opt (pthread): New Driver option.
22311 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
22312 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
22313
aa18dd0f
JM
223142011-02-02 Joseph Myers <joseph@codesourcery.com>
22315
22316 * config/ia64/vms.opt: New.
22317 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
22318
28fc3eee
MM
223192011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
22320
22321 PR target/47580
22322 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
22323 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
22324 generator functions.
22325 (vsx_floatuns<VSi><mode>2): Ditto.
22326 (vsx_fix_trunc<mode><VSi>2): Ditto.
22327 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
22328
b5838b1f
JM
223292011-02-02 Joseph Myers <joseph@codesourcery.com>
22330
22331 * config/i386/djgpp.opt (posix): New Driver option.
22332
0db8fa89
GP
223332011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
22334
22335 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
22336 Move to the unsupported targets list.
22337
9cd4f22a
PB
223382011-02-02 Peter Bergner <bergner@vnet.ibm.com>
22339
22340 PR rtl-optimization/47525
22341 * df-scan.c: Update copyright years.
22342 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
22343 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
22344
9ed8059c
RO
223452011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22346
22347 * config/i386/sysv4.h (TARGET_VERSION): Remove.
22348 (SUBTARGET_RETURN_IN_MEMORY): Remove.
22349 (ASM_OUTPUT_ASCII): Remove.
22350 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
22351
2a737389
JL
223522011-02-02 Jeff Law <law@redhat.com>
22353
22354 PR middle-end/47543
22355 * reload.c (find_reloads_address): Handle reg+d address where both
22356 components are invalid by reloading the entire address.
22357
9dac82c4
SP
223582011-02-02 Sebastian Pop <sebastian.pop@amd.com>
22359 Richard Guenther <rguenther@suse.de>
22360
22361 PR tree-optimization/40979
22362 PR bootstrap/47044
22363 * passes.c (init_optimization_passes): After LIM call copy_prop
22364 and DCE to clean up.
22365 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
22366
14dd9aab
SP
223672011-02-02 Sebastian Pop <sebastian.pop@amd.com>
22368
22369 PR tree-optimization/47576
22370 PR tree-optimization/47555
22371 * doc/invoke.texi (scev-max-expr-complexity): Documented.
22372 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
22373 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
22374 * tree-scalar-evolution.c (follow_ssa_edge): Use
22375 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
22376
5cbf5c20
RG
223772011-02-02 Richard Guenther <rguenther@suse.de>
22378
22379 PR tree-optimization/47566
22380 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
22381
83d70792
AO
223822011-02-02 Alexandre Oliva <aoliva@redhat.com>
22383
e829c321
AO
22384 PR debug/47106
22385 PR debug/47402
22386 * tree-inline.c (declare_return_variable): Remove unused caller
22387 variable.
22388
83d70792
AO
22389 PR debug/47106
22390 PR debug/47402
22391 * tree-flow-inline.h (clear_is_used, is_used_p): New.
22392 * cfgexpand.c (account_used_vars_for_block): Use them.
22393 * tree-nrv.c (tree_nrv): Likewise.
22394 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
22395 (dump_scope_block): Likewise.
22396 (remove_unused_locals): Likewise.
22397
aaa2ac93
AO
22398 PR debug/47106
22399 PR debug/47402
22400 * tree-inline.c (declare_return_variable): Add result decl to
22401 local decls only once.
22402 * gimple-low.c (record_vars_into): Mark newly-created variables
22403 as referenced.
22404
a59d15cf
AO
224052011-02-02 Alexandre Oliva <aoliva@redhat.com>
22406
22407 PR debug/47498
22408 PR debug/47501
22409 PR debug/45136
22410 PR debug/45130
22411 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
22412 debug insns.
22413 (no_real_insns_p, schedule_block, set_priorities): Drop special
22414 treatment of boundary debug insns.
38be4072 22415 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
22416 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
22417 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
22418 (BOUNDARY_DEBUG_INSN_P): Likewise.
22419 (SCHEDULE_DEBUG_INSN_P): Likewise.
22420 * sched-rgn.c (init_ready_list): Drop special treatment of
22421 boundary debug insns.
22422 * final.c (rest_of_clean_state): Clear notes' BB.
22423
6fc2f091
JM
224242011-02-01 Joseph Myers <joseph@codesourcery.com>
22425
22426 * config/openbsd.opt (assert=): New Driver option.
22427
fc523387
JM
224282011-02-01 Joseph Myers <joseph@codesourcery.com>
22429
22430 * config/i386/nto.opt: New.
22431 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
22432
6d9821e5
JM
224332011-02-01 Joseph Myers <joseph@codesourcery.com>
22434
22435 * config/i386/netware.opt: New.
22436 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
22437
cef932d4
JM
224382011-02-01 Joseph Myers <joseph@codesourcery.com>
22439
22440 * config/interix.opt (posix): New Driver option.
22441
22843acd
DD
224422011-02-01 DJ Delorie <dj@redhat.com>
22443
56490b74
DD
22444 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
22445
22843acd
DD
22446 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
22447 class for A0/A1.
22448
199c8f2f
SP
224492011-02-01 Sebastian Pop <sebastian.pop@amd.com>
22450
22451 PR tree-optimization/47561
22452 * toplev.c (process_options): Print the Graphite flags. Add
22453 flag_loop_flatten to the list of options requiring Graphite.
22454
926bcf22
JM
224552011-02-01 Joseph Myers <joseph@codesourcery.com>
22456
22457 * config/i386/cygming.opt (posix): New Driver option.
22458
59793c51
JM
224592011-02-01 Joseph Myers <joseph@codesourcery.com>
22460
22461 * config/arm/vxworks.opt: New.
22462 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
22463
183c38a4
JM
224642011-02-01 Joseph Myers <joseph@codesourcery.com>
22465
22466 * config/alpha/elf.opt: New.
22467 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
22468 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
22469
9939e416
RG
224702011-02-01 Richard Guenther <rguenther@suse.de>
22471
22472 PR tree-optimization/47559
22473 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
22474 store-motion on references that can throw.
22475
4a3c9687
BS
224762011-02-01 Bernd Schmidt <bernds@codesourcery.com>
22477
22478 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
22479 * tree-pass.h (TDF_CSELIB): New macro.
22480 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
22481 cselib_lookup): Check for it rather than for TDF_DETAILS.
22482
dd3b31fb
L
224832011-02-01 H.J. Lu <hongjiu.lu@intel.com>
22484
22485 PR driver/47547
22486 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
22487 is HOST_BIT_BUCKET.
22488
22489 * opts.c (finish_options): Don't add x_aux_base_name if it is
22490 HOST_BIT_BUCKET.
22491
34c1de79
RG
224922011-02-01 Richard Guenther <rguenther@suse.de>
22493
22494 PR tree-optimization/47555
22495 Revert
22496 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
22497
22498 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
22499
dd2804d2
SB
225002011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
22501
22502 PR gcc/46692
22503 * config/lm32/t-lm32: Add multilib for all CPU options.
22504
3fd3b156
RG
225052011-02-01 Richard Guenther <rguenther@suse.de>
22506
22507 PR tree-optimization/47541
22508 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
22509 sure to have a field at offset zero.
22510
f16072b6
JM
225112011-01-31 Joseph Myers <joseph@codesourcery.com>
22512
22513 * config/arc/arc.opt (EB, EL): New Driver options.
22514
6456cf2e
JM
225152011-01-31 Joseph Myers <joseph@codesourcery.com>
22516
22517 * config/alpha/osf5.opt: New.
22518 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
22519
cdde6ab4
JM
225202011-01-31 Joseph Myers <joseph@codesourcery.com>
22521
22522 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
22523
7633415c
SP
225242011-01-31 Sebastian Pop <sebastian.pop@amd.com>
22525
22526 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
22527 -floop-interchange.
22528 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
22529 is an alias of -floop-interchange and that it requires the
22530 Graphite infrastructure.
22531 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
22532 flag_loop_interchange based on the value of flag_tree_loop_linear.
22533
0425d6f5
JJ
225342011-01-31 Jakub Jelinek <jakub@redhat.com>
22535 Richard Guenther <rguenther@suse.de>
22536
22537 PR tree-optimization/47538
22538 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
22539 type instead of r1type, except for comparisons. For right
22540 shifts and comparisons punt if there are mismatches in
22541 sizetype vs. non-sizetype types.
22542
500b16c3
RO
225432011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22544
22545 * doc/sourcebuild.texi (Effective-Target Keywords): Document
22546 avx_runtime.
22547
e279edb0
RO
225482011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22549
22550 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
22551 version number.
22552 * configure: Regenerate.
22553
c6092243
RO
225542011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22555
22556 * configure.ac (gcc_cv_ld_static_option): Define.
22557 (gcc_cv_ld_dynamic_option): Define.
22558 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
22559 instead.
22560 (HAVE_LD_STATIC_DYNAMIC): Update message.
22561 (LD_STATIC_OPTION): Define.
22562 (LD_DYNAMIC_OPTION): Define.
22563 * configure: Regenerate.
22564 * config.in: Regenerate.
22565 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
22566 HAVE_LD_STATIC_DYNAMIC]: Use them.
22567
d7862be3
NC
225682011-01-31 Nick Clifton <nickc@redhat.com>
22569
22570 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
22571 registers inside interrupt handlers if the handler is not a leaf
22572 function.
22573
ba4ec0e0
NC
225742011-01-31 Nick Clifton <nickc@redhat.com>
22575
22576 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
22577 reg_renumber returning an INVALID_REGNUM.
22578
29a63921
AO
225792011-01-31 Alexandre Oliva <aoliva@redhat.com>
22580
22581 PR libgcj/44341
22582 * doc/install.texi: Document host options discarded when cross
22583 configuring target libraries.
22584
ef591d3f
AO
225852011-01-31 Alexandre Oliva <aoliva@redhat.com>
22586
22587 Reverted:
22588 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
22589 PR debug/45136
22590 PR debug/45130
22591 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
22592 debug insns.
22593 (no_real_insns_p, schedule_block, set_priorities): Drop special
22594 treatment of boundary debug insns.
38be4072 22595 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
22596 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
22597 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
22598 (BOUNDARY_DEBUG_INSN_P): Likewise.
22599 (SCHEDULE_DEBUG_INSN_P): Likewise.
22600 * sched-rgn.c (init_ready_list): Drop special treatment of
22601 boundary debug insns.
22602 * final.c (rest_of_clean-state): Clear notes' BB.
22603
61052244
AM
226042011-01-31 Alan Modra <amodra@gmail.com>
22605
22606 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
22607 toc relative expressions as we do in print_operand_address.
22608
c4c8962b
KH
226092011-01-30 Kazu Hirata <kazu@codesourcery.com>
22610
22611 * doc/extend.texi: Follow spelling conventions.
22612 * doc/invoke.texi: Fix a typo.
22613
e543b94c
JM
226142011-01-30 Joseph Myers <joseph@codesourcery.com>
22615
22616 * config/hpux11.opt: New.
22617 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
22618 ia64*-*-hpux*): Use hpux11.opt.
22619
509d65dd 226202011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
22621
22622 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
22623 to tmake_file.
22624
7be03a0e
GP
226252011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
22626
22627 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
22628 support sites.
22629
419d1d37
GP
226302011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
22631
b596ed64
GP
22632 * doc/install.texi (Binaries): Remove outdated reference for
22633 Motorola 68HC11/68HC12 downloads.
22634
226352011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 22636
419d1d37
GP
22637 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
22638 Drepper's paper.
22639
4406d0e9
JW
226402011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
22641
22642 PR bootstrap/47147
22643 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
22644 used by NetBSD.
22645
38be4072 226462011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
22647
22648 * value-prof.c (check_counter): Corrected error message.
22649
0cd98787
JZ
226502011-01-29 Jie Zhang <jie@codesourcery.com>
22651
22652 * config/arm/arm.c (arm_legitimize_reload_address): New.
22653 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
22654 arm_legitimize_reload_address.
38be4072 22655 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 22656
9b798ac5
ILT
226572011-01-28 Ian Lance Taylor <iant@google.com>
22658
22659 * godump.c (go_define): Ignore macros whose definitions include
22660 two adjacent operands.
22661
591e29d9
JJ
226622011-01-28 Jakub Jelinek <jakub@redhat.com>
22663
22664 PR target/42894
22665 * varasm.c (force_const_mem): Store copy of x in desc->constant
22666 instead of x itself.
22667 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
22668 itself into REG_EQUAL note.
22669
62dcc44a
JM
226702011-01-28 Joseph Myers <joseph@codesourcery.com>
22671
22672 * config/freebsd.opt (posix, rdynamic): New Driver options.
22673
c9f58b9a
RO
226742011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22675
22676 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
22677 -Bstatic/-Bdynamic.
22678 * configure: Regenerate.
22679
5f02b9db
JM
226802011-01-27 Joseph Myers <joseph@codesourcery.com>
22681
22682 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
22683 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
22684
5df97412
AS
226852011-01-27 Anatoly Sokolov <aesok@post.ru>
22686
22687 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
22688 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
22689 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
22690 (s390_preferred_reload_class): Make static. Change return and
22691 'rclass' argument type to reg_class_t.
22692
779d4b91
JH
226932011-01-27 Jan Hubicka <jh@suse.cz>
22694
22695 PR middle-end/46949
22696 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
22697 (process_function_and_variable_attributes): Check defined weakrefs.
22698
e80b21ed
MJ
226992011-01-27 Martin Jambor <mjambor@suse.cz>
22700
22701 PR tree-optimization/47228
22702 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
22703 build_ref_for_offset.
22704
6dcc4f31
UW
227052011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22706
22707 * config/spu/spu-elf.h (ASM_SPEC): Remove.
22708
509d65dd 227092011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
22710
22711 PR rtl-optimization/46856
22712 * postreload.c (reload_combine_recognize_const_pattern): Do not
22713 separate cc0 setter and user on cc0 targets.
22714
04af8788
NP
227152011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
22716
22717 PR c/43082
22718 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
22719 passed a VOID_TYPE expression, immediately emit an error and
22720 return error_mark_node.
22721
f7a60085
JL
227222011-01-26 Jeff Law <law@redhat.com>
22723
22724 PR rtl-optimization/47464
22725 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
22726 rather than may_trap_p as needed.
22727
5c2917ec
DD
227282011-01-26 DJ Delorie <dj@redhat.com>
22729
22730 PR rtl-optimization/46878
22731 * combine.c (insn_a_feeds_b): Check for the implicit cc0
22732 setter/user dependency as well.
22733
bef16e87
EB
227342011-01-26 Eric Botcazou <ebotcazou@adacore.com>
22735
22736 PR rtl-optimization/44469
22737 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
22738 after removing trivially dead basic blocks.
22739
c75d884b
JM
227402011-01-26 Joseph Myers <joseph@codesourcery.com>
22741
22742 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
22743 * config/frv/frv.h (LINK_SPEC): Likewise.
22744 * config/i386/netware.h (LINK_SPEC): Likewise.
22745 * config/m68k/linux.h (ASM_SPEC): Likewise.
22746 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
22747 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
22748 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22749 * config/sparc/linux.h (ASM_SPEC): Likewise.
22750 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22751 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22752
d3153553
JM
227532011-01-26 Joseph Myers <joseph@codesourcery.com>
22754
22755 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
22756 * config/frv/frv.h (ASM_SPEC): Likewise.
22757 * config/m68k/linux.h (ASM_SPEC): Likewise.
22758 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
22759 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
22760 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22761 * config/sparc/linux.h (ASM_SPEC): Likewise.
22762 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22763 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22764
b89b1e9d
JM
227652011-01-26 Joseph Myers <joseph@codesourcery.com>
22766
22767 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
22768 * config/frv/frv.h (LINK_SPEC): Likewise.
22769 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
22770
12eb1a9c
JM
227712011-01-26 Joseph Myers <joseph@codesourcery.com>
22772
22773 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
22774 * config/frv/frv.h (ASM_SPEC): Likewise.
22775 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
22776 * config/m68k/linux.h (ASM_SPEC): Likewise.
22777 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
22778 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22779 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22780 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
22781 * config/sparc/linux.h (ASM_SPEC): Likewise.
22782 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22783 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22784 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
22785
e435f098
SE
227862011-01-26 Steve Ellcey <sje@cup.hp.com>
22787
22788 PR target/46997
22789 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
22790 (*mux2): Ditto.
22791 (vec_extract_evenodd_help): Ditto.
22792 (vec_extract_evenv4hi): Ditto.
22793 (vec_extract_oddv4hi): Ditto.
22794 (vec_interleave_lowv2si): Ditto.
22795 (vec_interleave_highv2si): Ditto.
22796 (vec_extract_evenv2si): Ditto.
22797 (vec_extract_oddv2si: Ditto.
22798 (vec_pack_trunc_v2si): Ditto.
22799
34f0eee0
JH
228002011-01-22 Jan Hubicka <jh@suse.cz>
22801
22802 PR target/47237
22803 * cgraph.h (cgraph_local_info): New field can_change_signature.
22804 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
22805 signature can change.
22806 (ipcp_estimate_growth): Call sequence simplify only if calle signature
22807 can change.
22808 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
22809 (cgraph_function_versioning): We can not change signature of functions
22810 that don't allow that.
22811 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
22812 (lto_input_node): Likewise.
38be4072
UB
22813 * ipa-inline.c (compute_inline_parameters): Compute
22814 local.can_change_signature.
34f0eee0 22815 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
22816 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
22817 functions that can not change signature.
34f0eee0 22818 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
22819 init_cumulative_args): Do not use local calling conventions
22820 for functions that can not change signature.
34f0eee0 22821
980ca891
JH
228222011-01-22 Jan Hubicka <jh@suse.cz>
22823
22824 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
22825
768e3c60
RG
228262011-01-26 Richard Guenther <rguenther@suse.de>
22827
22828 PR tree-optimization/47190
61052244
AM
22829 * cgraphunit.c (process_common_attributes): New function.
22830 (process_function_and_variable_attributes): Use it.
768e3c60 22831
21d6a1c7
RG
228322011-01-26 Richard Guenther <rguenther@suse.de>
22833
22834 PR lto/47423
22835 * cgraphbuild.c (record_eh_tables): Record reference to personality
22836 function.
22837
48bb58b1
AO
228382011-01-26 Alexandre Oliva <aoliva@redhat.com>
22839
22840 PR debug/45454
22841 * sel-sched.c (moveup_expr): Don't let debug insns prevent
22842 non-debug insns from moving up.
22843
58c741a6
DK
228442011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
22845
22846 PR target/40125
22847 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
22848 t-dlldir{,-x} fragment for build and add it to tmake_file.
22849 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
22850 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
22851 * config/i386/t-dlldir: New file.
22852 (SHLIB_DLLDIR): Define.
22853 * config/i386/t-dlldir-x: New file.
22854 (SHLIB_DLLDIR): Define.
22855 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
22856 (SHLIB_INSTALL): Use it.
22857
bff99262
CLT
228582011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
22859
22860 PR target/47246
22861 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
22862 lower bound of the allowed Thumb-2 coprocessor load/store
22863 index range to -256. Add explaining comment.
22864
82c03907
ILT
228652011-01-25 Ian Lance Taylor <iant@google.com>
22866
22867 * godump.c (go_define): Improve lexing of macro expansion to only
22868 accept expressions which match Go spec.
22869
47ea1edf
DK
228702011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
22871
d4dba752 22872 PR c++/43601
47ea1edf
DK
22873 * tree.c (handle_dll_attribute): Handle it.
22874 * doc/extend.texi (@item dllexport): Mention it.
22875 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
22876
744f0946
ILT
228772011-01-25 Ian Lance Taylor <iant@google.com>
22878
22879 PR tree-optimization/26854
22880 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
22881 (decl_jump_unsafe): Move higher in file, with no other change.
22882 (bind): Set has_jump_unsafe_decl if appropriate.
22883 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
22884 (check_earlier_gotos): Likewise.
22885 (c_check_switch_jump_warnings): Likewise.
22886
5734f2b3
JW
228872011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
22888
22889 * doc/invoke.texi (Warning Options): Add missing hyphen.
22890 (-fprofile-dir): Minor grammatical fixes.
22891 (-fbranch-probabilities): Likewise.
22892
9bdbdcef
AO
228932011-01-25 Alexandre Oliva <aoliva@redhat.com>
22894
22895 PR debug/45136
22896 PR debug/45130
22897 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
22898 debug insns.
22899 (no_real_insns_p, schedule_block, set_priorities): Drop special
22900 treatment of boundary debug insns.
38be4072 22901 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
22902 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
22903 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
22904 (BOUNDARY_DEBUG_INSN_P): Likewise.
22905 (SCHEDULE_DEBUG_INSN_P): Likewise.
22906 * sched-rgn.c (init_ready_list): Drop special treatment of
22907 boundary debug insns.
22908 * final.c (rest_of_clean-state): Clear notes' BB.
22909
b305e3da
SP
229102011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22911
22912 * Makefile.in (LAMBDA_H): Removed.
22913 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
22914 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
22915 lambda-trans.o, and tree-loop-linear.o.
22916 (lto-symtab.o): Remove dependence on LAMBDA_H.
22917 (tree-loop-linear.o): Remove rule.
22918 (lambda-mat.o): Same.
22919 (lambda-trans.o): Same.
22920 (lambda-code.o): Same.
22921 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
22922 (tree-vect-slp.o): Same.
22923 * hwint.h (gcd): Moved here.
22924 (least_common_multiple): Same.
22925 * lambda-code.c: Removed.
22926 * lambda-mat.c: Removed.
22927 * lambda-trans.c: Removed.
22928 * lambda.h: Removed.
22929 * tree-loop-linear.c: Removed.
22930 * lto-symtab.c: Do not include lambda.h.
22931 * omega.c (gcd): Removed.
22932 * passes.c (init_optimization_passes): Remove pass_linear_transform.
22933 * tree-data-ref.c (print_lambda_vector): Moved here.
22934 (lambda_vector_copy): Same.
22935 (lambda_matrix_copy): Same.
22936 (lambda_matrix_id): Same.
22937 (lambda_vector_first_nz): Same.
22938 (lambda_matrix_row_add): Same.
22939 (lambda_matrix_row_exchange): Same.
22940 (lambda_vector_mult_const): Same.
22941 (lambda_vector_negate): Same.
22942 (lambda_matrix_row_negate): Same.
22943 (lambda_vector_equal): Same.
22944 (lambda_matrix_right_hermite): Same.
22945 * tree-data-ref.h: Do not include lambda.h.
22946 (lambda_vector): Moved here.
22947 (lambda_matrix): Same.
22948 (dependence_level): Same.
22949 (lambda_transform_legal_p): Removed declaration.
22950 (lambda_collect_parameters): Same.
22951 (lambda_compute_access_matrices): Same.
22952 (lambda_vector_gcd): Same.
22953 (lambda_vector_new): Same.
22954 (lambda_vector_clear): Same.
22955 (lambda_vector_lexico_pos): Same.
22956 (lambda_vector_zerop): Same.
22957 (lambda_matrix_new): Same.
22958 * tree-flow.h (least_common_multiple): Removed declaration.
22959 * tree-parloops.c (lambda_trans_matrix): Moved here.
22960 (LTM_MATRIX): Same.
22961 (LTM_ROWSIZE): Same.
22962 (LTM_COLSIZE): Same.
22963 (LTM_DENOMINATOR): Same.
22964 (lambda_trans_matrix_new): Same.
22965 (lambda_matrix_vector_mult): Same.
22966 (lambda_transform_legal_p): Same.
22967 * tree-pass.h (pass_linear_transform): Removed declaration.
22968 * tree-ssa-loop.c (tree_linear_transform): Removed.
22969 (gate_tree_linear_transform): Removed.
22970 (pass_linear_transform): Removed.
22971 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
22972 flag_loop_interchange.
22973
6bdfdb96
JJ
229742011-01-25 Jakub Jelinek <jakub@redhat.com>
22975
22976 PR tree-optimization/47265
22977 PR tree-optimization/47443
22978 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
22979 if name still has some uses.
22980
e4cba915
MJ
229812011-01-25 Martin Jambor <mjambor@suse.cz>
22982
22983 PR tree-optimization/47382
22984 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
22985 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
22986
509d65dd 229872011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
22988
22989 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
22990 sjlj_except_unwind_info.
22991
194313e2
RG
229922011-01-25 Richard Guenther <rguenther@suse.de>
22993
22994 PR tree-optimization/47426
22995 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
22996 visible functions results escape.
22997
147a0bcf
JJ
229982011-01-25 Jakub Jelinek <jakub@redhat.com>
22999
23000 PR target/45701
23001 * config/arm/arm.c (any_sibcall_uses_r3): New function.
23002 (arm_get_frame_offsets): Use it.
23003
db963b52
SP
230042011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23005 Jakub Jelinek <jakub@redhat.com>
23006
23007 PR tree-optimization/47271
23008 * tree-if-conv.c (bb_postdominates_preds): New.
23009 (if_convertible_bb_p): Call bb_postdominates_preds.
23010 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
23011 (predicate_scalar_phi): Call bb_postdominates_preds.
23012
bcddd3b9
NC
230132011-01-25 Nick Clifton <nickc@redhat.com>
23014
23015 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
23016 * config/rx/rx.c (rx_function_value): Likewise.
23017 (rx_promote_function_mode): Likewise.
23018 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
23019 in order to make it legitimate.
38be4072
UB
23020 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
23021 make sure that the first operand is the same as the result register.
bcddd3b9
NC
23022 (addsi3_unspec): Delete.
23023 (subdi3): Do not accept immediate operands.
23024 (subdi3_internal): Likewise.
23025
7e6cb022
JL
230262011-01-25 Jeff Law <law@redhat.com>
23027
23028 PR rtl-optimization/37273
23029 * ira-costs.c (scan_one_insn): Detect constants living in memory and
23030 handle them like argument loads from stack slots. Do not double
23031 count memory for memory constants and argument loads from stack slots.
23032
9ffa621e
JJ
230332011-01-25 Jakub Jelinek <jakub@redhat.com>
23034
23035 PR tree-optimization/47427
23036 PR tree-optimization/47428
23037 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
23038 coalesce if the new root var would be TREE_READONLY.
23039
5bd6e652
RG
230402011-01-25 Richard Guenther <rguenther@suse.de>
23041
23042 PR middle-end/47414
23043 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
23044 correct type for TBAA.
23045
7c48ea69
SP
230462011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23047
23048 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
23049 (close_phi_written_to_memory): Call for_each_index with
23050 dr_indices_valid_in_loop.
23051
38013f25
SP
230522011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23053
23054 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
23055 when it is initialized.
23056
5c640e29
SP
230572011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23058
23059 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
23060 call to graphite_find_data_references_in_stmt.
23061 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
23062 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
23063 call to graphite_find_data_references_in_stmt.
23064 (analyze_drs_in_stmts): Same.
23065 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
23066 in which the scalar analysis of indices is performed.
23067 (create_data_ref): Same. Update call to dr_analyze_indices.
23068 (find_data_references_in_stmt): Update call to create_data_ref.
23069 (graphite_find_data_references_in_stmt): Same.
23070 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
23071 declaration.
23072 (create_data_ref): Same.
23073 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
23074 call to create_data_ref.
23075
ac53c069
SP
230762011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23077
23078 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 23079 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 23080
3d17df15
SP
230812011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23082
23083 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
23084 VAR_DECL, PARM_DECL, and RESULT_DECL.
23085
c513da01
SP
230862011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23087
23088 * graphite-dependences.c (reduction_dr_1): Allow several reductions
23089 in a reduction PBB.
23090 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
23091 that have already been marked as PBB_IS_REDUCTION.
23092
3a292d59
SP
230932011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23094
23095 * graphite-scop-detection.c (same_close_phi_node): New.
23096 (remove_duplicate_close_phi): New.
23097 (make_close_phi_nodes_unique): New.
23098 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
23099
ba858447
SP
231002011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23101
23102 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
23103 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
23104 of both data references to be the same.
23105
8d865c56
SP
231062011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23107
38be4072
UB
23108 * graphite-dependences.c (build_lexicographical_constraint): Remove
23109 the gdim parameter.
23110 (build_lexicographical_constraint): Adjust call to
23111 ppl_powerset_is_empty.
8d865c56
SP
23112 (dependence_polyhedron): Same.
23113 (graphite_legal_transform_dr): Same.
23114 (graphite_carried_dependence_level_k): Same.
38be4072
UB
23115 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
23116 parameter.
8d865c56
SP
23117 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
23118
50034a36
SP
231192011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23120
23121 * graphite-sese-to-poly.c
23122 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
23123 (close_phi_written_to_memory): New.
23124 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
23125 and unshare_expr.
23126
0deada9e
SP
231272011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23128
23129 * doc/install.texi: Update the expected version number of PPL to 0.11.
23130 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
23131 #if PPL_VERSION_MINOR < 11.
23132
d7d3d6af
SP
231332011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23134
23135 * graphite-dependences.c: Include graphite-cloog-util.h.
23136 (new_poly_ddr): Inlined into dependence_polyhedron.
23137 (free_poly_ddr): Moved close by new_poly_ddr.
23138 (dependence_polyhedron_1): Renamed dependence_polyhedron.
23139 Early return NULL when ppl_powerset_is_empty returns true.
23140 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
23141 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
23142 (graphite_legal_transform_dr): Call new_poly_ddr.
23143 (graphite_carried_dependence_level_k): Same.
23144 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
23145 (dot_transformed_deps_stmt_1): Removed.
23146 (dot_deps_stmt_1): Call dot_deps_stmt_2.
23147 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
23148 (dot_deps_1): Call dot_deps_2.
23149 * Makefile.in (graphite-dependences.o): Add missing dependence on
23150 graphite-cloog-util.h.
23151
28c5db57
SP
231522011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23153
23154 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
23155 (build_lexicographical_constraint): Same.
23156 (dependence_polyhedron_1): Same.
23157 (graphite_legal_transform_dr): Same.
23158 (graphite_carried_dependence_level_k): Same.
23159 * graphite-ppl.c (ppl_powerset_is_empty): New.
23160 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
23161 * tree-data-ref.c (dump_data_reference): Print the basic block index.
23162
5168d98f
SP
231632011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23164
23165 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
23166 the "a followed by b" relation and document it.
23167
4a40293a
SP
231682011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23169
23170 * graphite-dependences.c (build_lexicographical_constraint): Stop the
23171 iteration when the bag of constraints is empty.
23172
271fb6fa
SP
231732011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23174
23175 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
23176
92d23680
SP
231772011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23178
23179 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
23180 nest and two loop depths as parameters.
23181 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
23182 lst_perfect_nestify.
23183
2f51deff
SP
231842011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23185
23186 * graphite-dependences.c (print_pddr): Call
23187 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
23188
07f3593c
SP
231892011-01-25 Sebastian Pop <sebastian.pop@amd.com>
23190
23191 * graphite-ppl.c (debug_gmp_value): New.
23192 * graphite-ppl.h (debug_gmp_value): Declared.
23193
3fae6099
TG
231942011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
23195
23196 * doc/install.texi: Document availability of cloog-0.16.
23197
1c3ba85b
SP
231982011-01-25 Vladimir Kargov <kargov@gmail.com>
23199
23200 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
23201 invalid postdominance info.
23202
e8ba94fc
JH
232032011-01-24 Jan Hubicka <jh@suse.cz>
23204
23205 PR c/21659
23206 * doc/extend.texi (weak pragma): Drop claim that it must
23207 appear before definition.
23208 * varasm.c (merge_weak, declare_weak): Only sanity check
23209 that DECL is not output at a time it is declared weak.
23210
2b6e2d13
KZ
232112011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
23212
23213 * machmode.def: Fixed comments.
1c3ba85b 23214
9841210f
KT
232152011-01-24 Kai Tietz <kai.tietz@onevision.com>
23216
23217 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
23218
232192011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
23220
23221 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 23222 WORDS_BIG_ENDIAN.
e046112d 23223
a6c5070a
L
232242011-01-24 H.J. Lu <hongjiu.lu@intel.com>
23225
23226 PR target/46519
23227 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
23228 (block_info): Add scanned and prev.
23229 (move_or_delete_vzeroupper_2): Return if the basic block
23230 has been scanned and the upper 128bit state is unchanged
23231 from the last scan.
23232 (move_or_delete_vzeroupper_1): Return true if the exit
23233 state is changed.
23234 (move_or_delete_vzeroupper): Visit basic blocks using the
23235 work-list based algorithm based on vt_find_locations in
23236 var-tracking.c.
23237
23238 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
23239
a40d79d7
NC
232402011-01-24 Nick Clifton <nickc@redhat.com>
23241
23242 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
23243 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
23244 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
23245 then define __v850e1__.
23246 * doc/invoke.texi: Document -mv850es.
23247
440eb8de
RH
232482011-01-24 Richard Henderson <rth@redhat.com>
23249
23250 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
23251 compound unordered comparisons.
23252 * config/rx/rx.c (rx_split_fp_compare): Remove.
23253 * config/rx/rx-protos.h: Update.
23254 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
23255 (cbranchsf4): Don't call rx_split_fp_compare.
23256 (*cbranchsf4): Use rx_split_cbranch.
23257 (*cmpsf): Don't accept "i" constraint.
23258 (*conditional_branch): Only valid after reload.
23259 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
23260
3ff79f99
MM
232612011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
23262
23263 PR target/47385
23264 * config/rs6000/altivec.md (vector constant splitters): Add
23265 support for creating vector single precision constants if -mvsx is
23266 used and we would create the constant using Altivec primitives.
23267
ff3d9d08
BS
232682011-01-23 Bernd Schmidt <bernds@codesourcery.com>
23269 Richard Sandiford <rdsandiford@googlemail.com>
23270
23271 PR rtl-optimization/47166
23272 * reload1.c (emit_reload_insns): Disable the spill_reg_store
23273 mechanism for PRE_MODIFY and POST_MODIFY.
23274 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
23275 reloadreg.
23276
7fcaf152
AS
232772011-01-23 Andreas Schwab <schwab@linux-m68k.org>
23278
8788adb6 23279 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 23280
d09b58c4
JH
232812011-01-22 Jan Hubicka <jh@suse.cz>
23282
23283 PR lto/47333
23284 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
23285
e8ff8c5a
JH
232862011-01-22 Jan Hubicka <jh@suse.cz>
23287
23288 PR tree-optimization/43884
23289 PR lto/44334
8788adb6 23290 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
23291 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
23292
ccaed3ba
AS
232932011-01-22 Anatoly Sokolov <aesok@post.ru>
23294
23295 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
23296 * config/s390/s390.c (s390_register_move_cost,
23297 s390_memory_move_cost): New.
23298 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
23299
0cecee06
UW
233002011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23301
23302 PR middle-end/47401
23303 * except.c (sjlj_assign_call_site_values): Move setting the
23304 crtl->uses_eh_lsda flag to ...
23305 (sjlj_mark_call_sites): ... here.
23306 (sjlj_emit_function_enter): Support NULL dispatch label.
23307 (sjlj_build_landing_pads): In a function with no landing pads
23308 that still has must-not-throw regions, generate code to register
23309 a personality function with empty LSDA.
23310
e692f276
RH
233112011-01-21 Richard Henderson <rth@redhat.com>
23312
1b7ae0b7
RH
23313 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
23314
3843787f
RH
23315 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
23316
e692f276
RH
23317 * compare-elim.c: New file.
23318 * Makefile.in (OBJS-common): Add it.
23319 (compare-elim.o): New.
23320 * common.opt (fcompare-elim): New.
23321 * opts.c (default_options_table): Add OPT_fcompare_elim.
23322 * tree-pass.h (pass_compare_elim_after_reload): New.
23323 * passes.c (init_optimization_passes): Add it.
23324 * recog.h: Protect against re-inclusion.
23325 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
23326 * doc/invoke.texi (-fcompare-elim): Document it.
23327 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
23328 * doc/tm.texi: Rebuild.
23329
9a7c2050
NC
233302011-01-22 Nick Clifton <nickc@redhat.com>
23331
23332 * config/rx/rx.md (cstoresf4): Pass comparison operator to
23333 rx_split_fp_compare.
23334
15ba5696
NC
233352011-01-22 Nick Clifton <nickc@redhat.com>
23336
23337 * config/rx/rx.md (UNSPEC_CONST): New.
23338 (deallocate_and_return): Wrap the amount popped off the stack in
23339 an UNSPEC_CONST in order to stop it being rejected by
23340 -mmax-constant-size.
23341 (pop_and_return): Add a "(return)" rtx.
23342 (call): Drop the immediate operand.
23343 (call_internal): Likewise.
23344 (call_value): Likewise.
23345 (call_value_internal): Likewise.
23346 (sibcall_internal): Likewise.
23347 (sibcall_value_internal): Likewise.
23348 (sibcall): Likewise. Generate an explicit call using
23349 sibcall_internal.
23350 (sibcall_value): Likewise.
23351 (mov<>): FAIL if a constant operand is not legitimate.
23352 (addsi3_unpsec): New pattern.
9a7c2050 23353
38be4072 23354 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
23355 (ok_for_max_constant): New function.
23356 (gen_safe_add): New function.
23357 (rx_expand_prologue): Use gen_safe_add.
23358 (rx_expand_epilogue): Likewise.
23359 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
23360 UNSPEC CONSTs.
23361
caaf13d3
JL
233622011-01-21 Jeff Law <law@redhat.com>
23363
23364 PR tree-optimization/47053
23365 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
23366 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
23367 statements are deleted.
23368 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
23369 is nonempty, then purge dead edges and cleanup the CFG.
23370
12c30f2f
AO
233712011-01-21 Alexandre Oliva <aoliva@redhat.com>
23372
23373 PR debug/47402
23374 Temporarily revert:
23375 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
23376 PR debug/47106
23377 * tree-dfa.c (create_var_ann): Mark variable as used.
23378
7360d2ac
JJ
233792011-01-21 Jakub Jelinek <jakub@redhat.com>
23380
aaa52a96
JJ
23381 PR middle-end/45566
23382 * except.c (convert_to_eh_region_ranges): Emit queued no-region
23383 notes from other section in hot/cold partitioning even if
23384 last_action is -3. Increment call_site_base.
23385
7360d2ac
JJ
23386 PR rtl-optimization/47366
23387 * fwprop.c (forward_propagate_into): Return bool. If
23388 any changes are made, -fnon-call-exceptions is used and
23389 REG_EH_REGION note is present, call purge_dead_edges
23390 and return true if it purged anything.
23391 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
23392 any EH edges were purged.
23393
e90b336f
JL
233942011-01-21 Jeff Law <law@redhat.com>
23395
23396 PR rtl-optimization/41619
23397 * caller-save.c (setup_save_areas): Break out code to determine
23398 which hard regs are live across calls by examining the reload chains
23399 so that it is always used.
23400 Eliminate code which checked REG_N_CALLS_CROSSED.
23401
3ffe07e1
JJ
234022011-01-21 Jakub Jelinek <jakub@redhat.com>
23403
23404 PR tree-optimization/47355
23405 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
23406 NOP has non-debug uses beyond PHIs in new_bb.
23407
1c7d0b34
AO
234082011-01-21 Alexandre Oliva <aoliva@redhat.com>
23409
23410 PR debug/47106
23411 * cfgexpand.c (account_used_vars_for_block): Only account vars
23412 that are annotated as used.
23413 (estimated_stack_frame_size): Don't set TREE_USED.
23414 * tree-dfa.c (create_var_ann): Mark variable as used.
23415
f99cc488
RG
234162011-01-21 Richard Guenther <rguenther@suse.de>
23417
23418 PR middle-end/47395
23419 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
23420
3bc27de7
RG
234212011-01-21 Richard Guenther <rguenther@suse.de>
23422
23423 PR tree-optimization/47365
23424 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
23425 (vn_reference_lookup_pieces): Adjust.
23426 (vn_reference_lookup): Likewise.
23427 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
23428 (vn_reference_lookup_3): Only look through kills if in
23429 VN_WALKREWRITE mode.
23430 (vn_reference_lookup_pieces): Adjust.
23431 (vn_reference_lookup): Likewise.
23432 (visit_reference_op_load): Likewise.
23433 (visit_reference_op_store): Likewise.
23434 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
23435 (compute_avail): Likewise.
23436 (eliminate): Likewise.
23437
d8debb1d
JJ
234382011-01-21 Jakub Jelinek <jakub@redhat.com>
23439
23440 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
23441 DECL_IGNORED_P non-reg vars if they are used.
23442
3a2df831
JJ
23443 PR tree-optimization/47391
23444 * varpool.c (const_value_known_p): Return false if
23445 decl is volatile.
23446
1dd584a2
KT
234472011-01-21 Kai Tietz <kai.tietz@onevision.com>
23448
23449 PR bootstrap/47215
23450 * config/i386/i386.c (ix86_local_alignment): Handle
23451 case for va_list_type_node is nil.
23452 (ix86_canonical_va_list_type): Likewise.
23453
7f9f095e
AM
234542011-01-21 Alan Modra <amodra@gmail.com>
23455
23456 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
23457 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
23458
837b01f6
RR
234592011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23460
23461 * config/arm/arm.md (define_attr type): Rename f_load
23462 and f_store to f_fpa_load and f_fpa_store. Update.
23463 (write_conflict): Deal with rename fallout.
23464 (*push_fp_multi): Likewise.
23465 * config/arm/fpa.md (f_load): Use f_fpa_load.
23466 (f_store): Use f_fpa_store.
23467 (*movsf_fpa): Likewise.
23468 (*movdf_fpa): Likewise.
23469 (*movxf_fpa): Likewise.
23470 (*thumb2_movsf_fpa): Likewise.
23471 (*thumb2_movdf_fpa): Likewise.
23472 (*thumb2_movxf_fpa): Likewise.
23473 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
23474 f_loadd and f_stored.
23475 (*thumb2_movdi_vfp): Likewise.
23476 (*thumb2_movsf_vfp): Fix attribute to f_loads.
23477 (*thumb2_movsi_vfp): Likewise.
23478 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
23479 Use f_loads instead of f_load.
23480 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
23481
a1a79768
AS
234822011-01-20 Anatoly Sokolov <aesok@post.ru>
23483
23484 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23485 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
23486 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23487 (xtensa_mode_dependent_address_p): New function.
23488 (constantpool_address_p): Make static. Change return type to bool.
23489 Change argument type to const_rtx. Use CONST_INT_P predicate.
23490
427f6cec
AO
234912011-01-20 Alexandre Oliva <aoliva@redhat.com>
23492
23493 PR debug/46583
23494 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
23495
583ac69c
JJ
234962011-01-20 Jakub Jelinek <jakub@redhat.com>
23497
23498 PR debug/47283
23499 * cfgexpand.c (expand_debug_expr): Instead of generating
23500 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
23501 etc. handling.
23502
93e452ed
RG
235032011-01-20 Richard Guenther <rguenther@suse.de>
23504
23505 PR middle-end/47370
23506 * tree-inline.c (remap_gimple_op_r): Recurse manually for
23507 the pointer operand of MEM_REFs.
23508
28fc44f3
JJ
235092011-01-20 Jakub Jelinek <jakub@redhat.com>
23510
23511 PR tree-optimization/46130
23512 * ipa-split.c (consider_split): If return_bb contains non-virtual
23513 PHIs other than for retval or if split_function would not adjust it,
23514 refuse to split.
23515
ddd268f2
RG
235162011-01-20 Richard Guenther <rguenther@suse.de>
23517
23518 PR tree-optimization/47167
23519 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
23520 Revert previous change, only avoid enumeral type changes.
23521
882020aa
MS
235222011-01-19 Mike Stump <mikestump@comcast.net>
23523
23524 * doc/tm.texi.in (BRANCH_COST): Englishify.
23525 * doc/tm.texi (BRANCH_COST): Likewise.
23526
7edb6247
DS
235272011-01-19 Dodji Seketeli <dodji@redhat.com>
23528
23529 PR c++/47291
23530 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
23531 (gen_scheduled_generic_parms_dies): New functions.
23532 (gen_struct_or_union_type_die): Schedule template parameters DIEs
23533 generation for the end of CU compilation.
23534 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 23535
23d5ed5d
AO
235362011-01-19 Alexandre Oliva <aoliva@redhat.com>
23537
23538 PR debug/46240
23539 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
23540 debug bind stmt on merge edges.
23541
37d6a488
AO
235422011-01-19 Alexandre Oliva <aoliva@redhat.com>
23543
23544 PR debug/47079
23545 PR debug/46724
23546 * function.c (instantiate_expr): Instantiate incoming rtl of
23547 implicit arguments, and recurse on VALUE_EXPRs.
23548 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
23549 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
23550
689f2c82
AO
235512011-01-19 Alexandre Oliva <aoliva@redhat.com>
23552
23553 * c-parser.c (c_parser_for_statement): Initialize
23554 collection_expression.
23555
03029de4
JM
235562011-01-19 Joseph Myers <joseph@codesourcery.com>
23557
23558 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
23559
3e03217e
JM
235602011-01-19 Joseph Myers <joseph@codesourcery.com>
23561
23562 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
23563 (LINK_SHLIB_SPEC): Don't use %(link_path).
23564 (SUBTARGET_EXTRA_SPECS): Remove link_path.
23565
5bbe9b3f
JM
235662011-01-19 Joseph Myers <joseph@codesourcery.com>
23567
23568 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
23569 (NO_SHARED_LIB_SUPPORT): Remove.
23570 (LINK_SHLIB_SPEC): Remove one conditional definition.
23571
368e0b39
JM
235722011-01-19 Joseph Myers <joseph@codesourcery.com>
23573
23574 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
23575 %{call_shared}.
23576 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
23577 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
23578 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
23579 %{call_shared} and conditionals on these options not being passed.
23580 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
23581 %{call_shared}.
23582
ed7656f6
JJ
235832011-01-19 Jakub Jelinek <jakub@redhat.com>
23584
68457901
JJ
23585 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
23586 simplify.
23587
ed7656f6
JJ
23588 * ipa-split.c: Spelling fixes.
23589
e0d1958f
RH
235902011-01-19 Richard Henderson <rth@redhat.com>
23591
23592 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
23593 (*mulsi3): Likewise.
23594
27098b6b
RH
23595 * longlong.h [__mn10300__] (count_leading_zeros): New.
23596 [__mn10300__] (umul_ppmm, smul_ppmm): New.
23597 [__mn10300__] (add_ssaaaa, subddmmss): New.
23598 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
23599 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
23600
d6be7c36
UW
236012011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23602
23603 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
23604
b1efde2a
RH
236052011-01-19 Richard Henderson <rth@redhat.com>
23606
44217823
RH
23607 * config/mn10300/mn10300.md (addsi3_flags): New.
23608 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
23609 (subsi3_flags, subc_internal, subdi3): New.
23610 (subdi3_internal, *subdi3_degenerate): New.
23611 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
23612
37a185d7
RH
23613 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
23614 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
23615 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
23616 * config/mn10300/mn10300-protos.h: Update.
23617 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
23618 (return_ret): Likewise. Rename from return_internal_regs.
23619 (return_internal): Remove.
23620
040c5757
RH
23621 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
23622 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
23623 (mn10300_legitimate_constant_p): Likewise.
23624 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
23625 (mn10300_frame_size): New.
23626 (mn10300_expand_prologue): Use it.
23627 (mn10300_expand_epilogue): Likewise.
23628 (mn10300_initial_offset): Likewise.
23629 * config/mn10300/mn10300-protos.h: Update.
23630 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
23631 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
23632 (prologue, epilogue, return_internal): Tidy output code.
23633 (mn10300_store_multiple_operation, return): Likewise.
23634 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
23635 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
23636 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
23637 (load_pic, am33_load_pic): New.
23638 (mn10300_load_pic0, mn10300_load_pic1): New.
23639
bad41521
RH
23640 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
23641 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
23642 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
23643 (cc_flags_for_mode, cc_flags_for_code): New.
23644 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
23645 overflow flag is not valid. Validate that the flags we need
23646 for the comparison are valid.
23647 (mn10300_output_cmp): Remove.
23648 (mn10300_output_add): New.
23649 (mn10300_select_cc_mode): Use cc_flags_for_code.
23650 (mn10300_split_cbranch): New.
23651 (mn10300_match_ccmode): New.
23652 (mn10300_split_and_operand_count): New.
23653 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
23654 to the function.
23655 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
23656 (addsi3): ... here. Use mn10300_output_add.
23657 (*addsi3_flags): New.
23658 (*am33_subsi3, *mn10300_subsi3): Merge...
23659 (subsi3): ... here. Use attribute isa.
23660 (*subsi3_flags): New.
23661 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
23662 when possible.
23663 (*am33_andsi3, *mn10300_andsi3): Merge...
23664 (andsi3): ... here.
23665 (*andsi3_flags): New.
23666 (andsi3 splitters): New.
23667 (*am33_iorsi3, *mn10300_iorsi3): Merge...
23668 (iorsi3): ... here.
23669 (*iorsi3_flags): New.
23670 (*am33_xorsi3, *mn10300_xorsi3): Merge...
23671 (xorsi3): ... here.
23672 (*xorsi3_flags): New.
23673 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
23674 (one_cmplsi2): ... here.
23675 (*one_cmplsi2_flags): New.
23676 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
23677 instead of "dax" in constraints. Use mn10300_split_cbranch.
23678 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
23679 use matching constraints to eliminate a self-comparison.
23680 (*integer_conditional_branch): Rename from integer_conditional_branch.
23681 Use int_mode_flags to match CC_REG.
23682 (*cbranchsi4_btst, *btstsi): New.
23683 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
23684 mn10300_split_cbranch.
23685 (*am33_cmpsf): Rename from am33_cmpsf.
23686 (*float_conditional_branch): Rename from float_conditional_branch.
23687 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
23688 (zero_extendqisi2): ... here.
23689 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
23690 (zero_extendhisi2): ... here.
23691 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
23692 (extendqisi2): ... here.
23693 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
23694 (extendhisi2): ... here.
23695 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
23696 (ashlsi3): ... here.
23697 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
23698 (lshrsi3): ... here.
23699 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
23700 (ashrsi3): ... here.
23701 (consecutive add peephole): Remove.
23702 * config/mn10300/predicates.md (label_ref_operand): New.
23703 (int_mode_flags): New.
23704 (CCZN_comparison_operator): New.
23705
9efb4993
RH
23706 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
23707 (throughput_42_latency_43): New reservation.
23708 (mulsidi3, umulsidi3): New expanders.
23709 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
23710 the MDR register to allocation; separately allocate the low and
23711 high parts of the DImode result.
23712 (umulsidi3_internal): Similarly.
23713 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
23714 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
23715 (udivsi3, umodsi3): Remove.
23716 (udivmodsi4, divmodsi4): New expanders.
23717 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
23718 (*divmodsi4): Simiarly.
23719 (ext_internal): New.
23720
c25a21f5
RH
23721 * config/mn10300/constraints.md ("z"): New constraint.
23722 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
23723 (FIXED_REGISTERS): Don't fix MDR.
23724 (CALL_USED_REGSITERS): Reformat nicely.
23725 (REG_ALLOC_ORDER): Add MDR.
23726 (enum regclass): Add MDR_REGS.
23727 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
23728 (IRA_COVER_CLASSES): Add MDR_REGS.
23729 (REGNO_REG_CLASS): Handle MDR_REG.
23730 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
23731 (mn10300_register_move_cost): Likewise.
23732 * config/mn10300/mn10300.md (MDR_REG): New.
23733 (*movsi_internal): Handle moves to/from MDR_REGS.
23734
36846b26
RH
23735 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
23736 POST_MODIFY.
23737 (mn10300_secondary_reload): Tidy combination reload classes.
23738 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
23739 addresses for AM33. Allow symbolic offsets for reg+imm.
23740 (mn10300_regno_in_class_p): New.
23741 (mn10300_legitimize_reload_address): New.
23742 * config/mn10300/mn10300.h (enum reg_class): Remove
23743 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
23744 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
23745 SP_OR_GENERAL_REGS.
23746 (REG_CLASS_NAMES): Update to match.
23747 (REG_CLASS_CONTENTS): Likewise.
23748 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
23749 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
23750 (REGNO_IN_RANGE_P): Remove.
23751 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
23752 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
23753 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
23754 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
23755 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
23756 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
23757 (REGNO_GENERAL_P): New.
23758 (HAVE_POST_MODIFY_DISP): New.
23759 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
23760 (LEGITIMIZE_RELOAD_ADDRESS): New.
23761 * config/mn10300/mn10300-protos.h: Update.
23762
8b119bb6
RH
23763 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
23764 DATA_REGS for AM33 stack-pointer destination.
23765 (mn10300_preferred_output_reload_class): Likewise.
23766 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
23767 into a form appropriate for ...
23768 (TARGET_SECONDARY_RELOAD): New.
23769 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
23770 * config/mn10300/mn10300-protos.h: Update.
23771 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
23772 reload_insi; use the "A" constraint for the scratch; handle AM33
23773 moves of sp to non-address registers.
23774
b1efde2a
RH
23775 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
23776 (*movqi_internal): ... here.
23777 (*am33_movhi, *mn10300_movhi): Merge into...
23778 (*movhi_internal): ... here.
23779 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
23780 as the source/destination of moves from/to SP.
23781 (movsf): Only allow for AM33-2.
1c3ba85b 23782 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
23783 any integer constant constraint. Only allow for AM33-2. Tidy
23784 all of the alternative outputs.
23785 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
23786 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
23787 for MN103.
23788 (udivsi3, umodsi3): New patterns for MN103 only.
23789
b899fd78
JR
237902011-01-19 Joern Rennecke <amylaar@spamcop.net>
23791
23792 * doc/tm.texi.in: Spell out that a lack of register class unions
23793 can lead to ICEs.
23794 * doc/tm.texi: Regenerate.
23795
afaaa67d
JJ
237962011-01-19 Jakub Jelinek <jakub@redhat.com>
23797
2e0642cd
JJ
23798 PR rtl-optimization/47337
23799 * dce.c (check_argument_store): New function.
23800 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
23801
afaaa67d
JJ
23802 PR tree-optimization/47290
23803 * tree-eh.c (infinite_empty_loop_p): New function.
23804 (cleanup_empty_eh): Use it.
23805
d2cd871f
SE
238062011-01-18 Steve Ellcey <sje@cup.hp.com>
23807
23808 PR target/46997
23809 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
23810 (a64_expand_widen_sum): Ditto.
23811 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
23812 (vec_extract_evenodd_help): Ditto.
23813 (vec_extract_evenv4hi): Ditto.
23814 (vec_extract_oddv4hi): Ditto.
23815 (vec_extract_evenv2si): Ditto.
23816 (vec_extract_oddv2si): Ditto.
23817 (vec_extract_evenv2sf): Ditto.
23818 (vec_extract_oddv2sf): Ditto.
23819 (vec_pack_trunc_v4hi: Ditto.
23820 (vec_pack_trunc_v2si): Ditto.
23821 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
23822 (vec_interleave_highv8qi): Ditto.
23823 (mix1_r): Ditto.
23824 (vec_extract_oddv8qi): Ditto.
23825 (vec_interleave_lowv4hi): Ditto.
23826 (vec_interleave_highv4hi): Ditto.
23827 (vec_interleave_lowv2si): Ditto.
23828 (vec_interleave_highv2si): Ditto.
23829
41a1208a
JDA
238302011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23831
23832 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
23833 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
23834 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
23835 (pa_c_mode_for_suffix): New.
23836 (TARGET_EXPAND_BUILTIN): Define.
23837 (TARGET_C_MODE_FOR_SUFFIX): Define.
23838 (pa_builtins): Define.
23839 (pa_init_builtins): Register __float128 type and init new support
23840 builtins.
23841 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
23842 * config/pa/quadlib.c (_U_Qfcopysign): New.
23843
1ecad98e
EB
238442011-01-18 Eric Botcazou <ebotcazou@adacore.com>
23845
23846 PR middle-end/46894
23847 * explow.c (allocate_dynamic_stack_space): Do not assume more than
23848 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
23849 are defined.
23850
d4f2460a
UW
238512011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23852
23853 PR tree-optimization/47179
23854 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
23855 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
23856
4994da65
RG
238572011-01-18 Richard Guenther <rguenther@suse.de>
23858
23859 PR rtl-optimization/47216
23860 * emit-rtl.c: Include tree-flow.h.
23861 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
23862 of replicating it with different semantics.
23863 * Makefile.in (emit-rtl.o): Adjust.
23864
1eb458d1
RR
238652011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23866
38be4072 23867 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 23868 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 23869
e7ef91dc
JJ
238702011-01-18 Jakub Jelinek <jakub@redhat.com>
23871
23872 PR rtl-optimization/47299
23873 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 23874 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
23875 * expmed.c (expand_widening_mult): Don't try to optimize constant
23876 multiplication if op0 has VOIDmode. Convert op1 constant to mode
23877 before using it.
23878
535b7874
RW
238792011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23880
23881 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
23882 spacing after 'e.g.', typos, comma, hyphenation.
23883
27bf36f3
RH
238842011-01-17 Richard Henderson <rth@redhat.com>
23885
8a5b5449
RH
23886 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
23887 (rx_restricted_mem_operand): New.
23888 (rx_shift_operand): Use register_operand.
23889 (rx_source_operand, rx_compare_operand): Likewise.
23890 * config/rx/rx.md (addsi3_flags): New expander.
23891 (adddi3): Rewrite as expander.
23892 (adc_internal, *adc_flags, adddi3_internal): New patterns.
23893 (subsi3_flags): New expander.
23894 (subdi3): Rewrite as expander.
23895 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
23896
784f69be
RH
23897 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
23898 (rx_init_builtins): Remove sat builtin.
23899 (rx_expand_builtin): Likewise.
23900 * config/rx/rx.md (ssaddsi3): New.
23901 (*sat): Rename from sat. Represent the CC_REG input.
23902
f033541c
RH
23903 * config/rx/predicates.md (rshift_operator): New.
23904 * config/rx/rx.c (rx_expand_insv): Remove.
23905 * config/rx/rx-protos.h: Update.
23906 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
23907 operand to the canonical position.
23908 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
23909 (*bitclr, *bitclr_in_memory): Similarly.
23910 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
23911 (insv): Retain the zero_extract in the expansion.
23912
34fee389
RH
23913 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
23914 (bswaphi2, bitinvert, revw): Likewise.
23915
265c835f
RH
23916 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
23917 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
23918 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
23919 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
23920 (bitset, bitset_in_memory): Likewise.
23921 (bitinvert, bitinvert_in_memory): Likewise.
23922 (bitclr, bitclr_in_memory): Likewise.
23923 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
23924 (rx_strend, rx_cmpstrn): Likewise.
23925 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
23926 (bitop peep2 patterns): Remove.
23927
b4d83be3
RH
23928 * config/rx/rx.c (rx_match_ccmode): New.
23929 * config/rx/rx-protos.h: Update.
23930 * config/rx/rx.md (abssi2): Clobber, don't set flags.
23931 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
23932 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
23933 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
23934 (fix_truncsfsi2, floatsisf2): Likewise.
23935 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
23936 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
23937 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
23938 (*subsi3_flags, *xorsi3_flags): New.
23939
d0acb939
RH
23940 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
23941
c06fc3d9
RH
23942 * config/rx/rx.c (rx_print_operand): Remove workaround for
23943 unsplit comparison operations.
23944
2882702b
RH
23945 * config/rx/rx.md (movsicc): Split after reload.
23946 (*movsicc): Merge *movsieq and *movsine via match_operator.
23947 (*stcc): New pattern.
23948
6f7310f2
RH
23949 * config/rx/rx.c (rx_float_compare_mode): Remove.
23950 * config/rx/rx.h (rx_float_compare_mode): Remove.
23951 * config/rx/rx.md (cstoresi4): Split after reload.
23952 (*sccc): New pattern.
23953
e963cb1a
RH
23954 * config/rx/predicates.md (label_ref_operand): New.
23955 (rx_z_comparison_operator): New.
23956 (rx_zs_comparison_operator): New.
23957 (rx_fp_comparison_operator): New.
23958 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
23959 Validate that the flags are set properly for the comparison.
23960 (rx_gen_cond_branch_template): Remove.
23961 (rx_cc_modes_compatible): Remove.
23962 (mode_from_flags): New.
23963 (flags_from_code): Rename from flags_needed_for_conditional.
23964 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
23965 (rx_select_cc_mode): Likewise.
23966 (rx_split_fp_compare): New.
23967 (rx_split_cbranch): New.
23968 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
23969 (*cbranchsi4): Use match_operator and rx_split_cbranch.
23970 (*cbranchsf4): Similarly.
23971 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
23972 match_operator and rx_split_cbranch.
23973 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
23974 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
23975 (*cmpsi): Rename from cmpsi.
23976 (*tstsi): Rename from tstsi.
23977 (*cmpsf): Rename from cmpsf; use CC_Fmode.
23978 (*conditional_branch): Rename from conditional_branch.
23979 (*reveresed_conditional_branch): Remove.
23980 (b<code>): Remove expander.
23981 * config/rx/rx-protos.h: Update.
23982
af530bb4
RH
23983 * config/rx/rx.c (rx_compare_redundant): Remove.
23984 * config/rx/rx.md (cmpsi): Don't use it.
23985 * config/rx/rx-protos.h: Update.
23986
27bf36f3
RH
23987 * config/rx/rx-modes.def (CC_F): New mode.
23988 * config/rx/rx.c (rx_select_cc_mode): New.
23989 * config/rx/rx.h (SELECT_CC_MODE): Use it.
23990 * config/rx/rx-protos.h: Update.
23991
d7fde127
RH
239922011-01-17 Richard Henderson <rth@redhat.com>
23993
23994 * except.c (dump_eh_tree): Fix stray ; after for statement.
23995
6ff38230
RG
239962011-01-17 Richard Guenther <rguenther@suse.de>
23997
23998 PR tree-optimization/47313
23999 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
24000 handling before copying the body. Properly deal with
24001 by-reference result in SSA form.
24002
114ce554
ILT
240032011-01-17 Ian Lance Taylor <iant@google.com>
24004
bf5cd92b 24005 PR target/47219
114ce554
ILT
24006 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
24007 (struct_value_alias_set): Don't define.
24008 (sparc_option_override): Don't set sparc_sr_alias_set and
24009 struct_value_alias_set.
24010 (save_or_restore_regs): Use gen_frame_mem rather than calling
24011 set_mem_alias_set.
24012 (sparc_struct_value_rtx): Likewise.
24013
98c6d93c
L
240142011-01-17 H.J. Lu <hongjiu.lu@intel.com>
24015
24016 PR target/47318
7a81008b 24017 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
24018 (_mm_maskstore_pd): Likewise.
24019 (_mm_maskload_ps): Likewise.
24020 (_mm_maskstore_ps): Likewise.
24021 (_mm256_maskload_pd): Change mask to __m256i.
24022 (_mm256_maskstore_pd): Likewise.
24023 (_mm256_maskload_ps): Likewise.
24024 (_mm256_maskstore_ps): Likewise.
24025
24026 * config/i386/i386-builtin-types.def: Updated.
24027 (ix86_expand_special_args_builtin): Likewise.
24028
24029 * config/i386/i386.c (bdesc_special_args): Update
24030 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
24031 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
24032 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
24033 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
24034
24035 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
24036 Use <avxpermvecmode> on mask register.
24037 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
24038
b9361af2 240392011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
24040 Michael Haubenwallner <michael.haubenwallner@salomon.at>
24041 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
24042
24043 PR target/46655
24044 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
24045 if <= USHRT_MAX in 32-bit mode.
24046
b7ae9eb5
RW
240472011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24048
24049 * doc/install.texi (Configuration, Specific): Wrap long
24050 lines in examples. Allow line wrapping in long options
24051 and URLs where beneficial for PDF output.
24052
4377fad9
RS
240532011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
24054
24055 * config/mips/mips.c (mips_classify_symbol): Don't return
24056 SYMBOL_PC_RELATIVE for nonlocal labels.
24057
55959ffa 240582011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 24059
55959ffa
EB
24060 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
24061
240622011-01-15 Jan Hubicka <jh@suse.cz>
24063
24064 PR tree-optimization/47276
be46831f
JH
24065 * ipa.c (function_and_variable_visibility): Do not try to mark alias
24066 declarations as needed.
24067
05842ff5
MJ
240682011-01-15 Martin Jambor <mjambor@suse.cz>
24069
24070 * common.opt (fdevirtualize): New flag.
24071 * doc/invoke.texi (Option Summary): Document it.
24072 * opts.c (default_options_table): Add devirtualize flag.
24073 * ipa-prop.c (detect_type_change): Return immediately if
24074 devirtualize flag is not set.
24075 (detect_type_change_ssa): Likewise.
24076 (compute_known_type_jump_func): Likewise.
24077 (ipa_analyze_virtual_call_uses): Likewise.
24078
f65cf2b7
MJ
240792011-01-14 Martin Jambor <mjambor@suse.cz>
24080
24081 PR tree-optimization/45934
24082 PR tree-optimization/46302
24083 * ipa-prop.c (type_change_info): New type.
24084 (stmt_may_be_vtbl_ptr_store): New function.
24085 (check_stmt_for_type_change): Likewise.
24086 (detect_type_change): Likewise.
24087 (detect_type_change_ssa): Likewise.
24088 (compute_complex_assign_jump_func): Check for dynamic type change.
24089 (compute_complex_ancestor_jump_func): Likewise.
24090 (compute_known_type_jump_func): Likewise.
24091 (compute_scalar_jump_functions): Likewise.
24092 (ipa_analyze_virtual_call_uses): Likewise.
24093 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
24094
eb5bb0fd
JM
240952011-01-14 Joseph Myers <joseph@codesourcery.com>
24096
24097 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
24098 * config/i386/i386.opt (msse5): New Alias.
24099
f2060fbe
JM
241002011-01-14 Joseph Myers <joseph@codesourcery.com>
24101
24102 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
24103 * config/sparc/linux64.h (CC1_SPEC): Likewise.
24104 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
24105 * config/sparc/sparc.h (CC1_SPEC): Likewise.
24106
3a7b4385
JM
241072011-01-14 Joseph Myers <joseph@codesourcery.com>
24108
24109 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
24110 -mcpu options.
24111 * config/sparc/linux64.h (CC1_SPEC): Likewise.
24112 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
24113 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
24114 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
24115 Likewise.
24116 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
24117
a7b778f8
JM
241182011-01-14 Joseph Myers <joseph@codesourcery.com>
24119
38be4072 24120 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 24121
a7edae0a
MS
241222011-01-14 Mike Stump <mikestump@comcast.net>
24123
24124 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
24125 * config/fr30/fr30.md: Likweise
24126 (movsi_push): Likewise.
24127 (movsi_pop): Likewise.
24128 (enter_func): Likewise.
24129 * config/moxie/moxie.md (movsi_push): Likewise.
24130 (movsi_pop): Likewise.
24131
cbabf03f
JM
241322011-01-14 Joseph Myers <joseph@codesourcery.com>
24133
24134 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
24135 %{no_archive} %{exact_version}.
24136 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
24137 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
24138 %{no_archive} %{exact_version}.
24139 * config/mips/openbsd.h (LINK_SPEC): Likewise.
24140 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
24141 * config/mips/vxworks.h: Likewise.
24142
438da41a
JM
241432011-01-14 Joseph Myers <joseph@codesourcery.com>
24144
38be4072 24145 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 24146
da290a42
JM
241472011-01-14 Joseph Myers <joseph@codesourcery.com>
24148
24149 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
24150 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
24151
8989d00e
JM
241522011-01-14 Joseph Myers <joseph@codesourcery.com>
24153
24154 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
24155 -nodefaultlib.
24156
a3010a69
JM
241572011-01-14 Joseph Myers <joseph@codesourcery.com>
24158
24159 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
24160 for mcpu not cpu.
24161 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
24162 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
24163 not cpu.
24164 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
24165 Don't handle -shlib.
24166
e7f2f537
JM
241672011-01-14 Joseph Myers <joseph@codesourcery.com>
24168
24169 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
24170 (CC1_SPEC): Don't handle -profile.
24171
34830bfd
JM
241722011-01-14 Joseph Myers <joseph@codesourcery.com>
24173
24174 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
24175 * config/mips/mips.h (CC1_SPEC): Likewise.
24176
b2d36e74
JM
241772011-01-14 Joseph Myers <joseph@codesourcery.com>
24178
24179 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
24180 * config/mips/mips.h (CC1_SPEC): Likewise.
24181
dabadc52
JM
241822011-01-14 Joseph Myers <joseph@codesourcery.com>
24183
24184 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
24185 * config/m32r/linux.h (LINK_SPEC): Likewise.
24186 * config/mips/linux.h (LINK_SPEC): Likewise.
24187 * config/mips/linux64.h (LINK_SPEC): Likewise.
24188 * config/sparc/linux.h (LINK_SPEC): Likewise.
24189 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
24190 LINK_SPEC): Likewise.
24191 * config/xtensa/linux.h (LINK_SPEC): Likewise.
24192
43ee6785
JM
241932011-01-14 Joseph Myers <joseph@codesourcery.com>
24194
24195 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
24196 %{version:-v}.
24197 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
24198
45e79dfd
JM
241992011-01-14 Joseph Myers <joseph@codesourcery.com>
24200
24201 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
24202 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24203
37e9e71d
JM
242042011-01-14 Joseph Myers <joseph@codesourcery.com>
24205
24206 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
24207
bb127cd8
RO
242082011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24209
24210 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
24211 supports -Bstatic/-Bdynamic.
24212 * configure: Regenerate.
24213
89a012ea 242142011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 24215 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
24216
24217 PR target/46037
24218 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
24219 when checking debug_info_level. Test write_symbols instead of
24220 debug_hooks->var_location when setting flag_var_tracking_uninit.
24221
7352c013
RG
242222011-01-14 Richard Guenther <rguenther@suse.de>
24223
24224 PR tree-optimization/47179
24225 * target.def (ref_may_alias_errno): New target hook.
24226 * targhooks.h (default_ref_may_alias_errno): Declare.
24227 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
24228 (default_ref_may_alias_errno): New function.
24229 * target.h (struct ao_ref_s): Declare.
24230 * tree-ssa-alias.c: Include target.h.
24231 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
24232 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
24233 (targhooks.o): Likewise.
24234 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
24235 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
24236
9a6c9288
RG
242372011-01-14 Richard Guenther <rguenther@suse.de>
24238
24239 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
24240
0fdb0d27
RG
242412011-01-14 Richard Guenther <rguenther@suse.de>
24242
24243 PR tree-optimization/47280
24244 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
24245 return CFG changes.
24246 (tree_ssa_forward_propagate_single_use_vars): Deal with
24247 CFG changes from associate_plusminus.
24248
8f66db3b
RG
242492011-01-14 Richard Guenther <rguenther@suse.de>
24250
24251 PR middle-end/47281
24252 Revert
24253 2011-01-11 Richard Guenther <rguenther@suse.de>
24254
280d9630
EB
24255 PR tree-optimization/46076
24256 * tree-ssa.c (useless_type_conversion_p): Conversions from
24257 unprototyped to empty argument list function types are useless.
8f66db3b 24258
6c0c92e6
RG
242592011-01-14 Richard Guenther <rguenther@suse.de>
24260
24261 PR tree-optimization/47286
280d9630 24262 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 24263
db09f943
MJ
242642011-01-14 Martin Jambor <mjambor@suse.cz>
24265
24266 PR middle-end/46823
24267 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
24268
dde8a3a4
AS
242692011-01-13 Anatoly Sokolov <aesok@post.ru>
24270
24271 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
24272 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24273 * config/xtensa/xtensa.c (xtensa_libcall_value,
24274 xtensa_function_value_regno_p): New functions.
24275 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24276
a2b63a20
KT
242772011-01-13 Kai Tietz <kai.tietz@onevision.com>
24278
24279 PR c++/47213
24280 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
24281 PE specific hook.
24282 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
24283 New function prototype.
24284 * config/i386/winnt.c (i386_pe_assemble_visibility):
24285 Warn only if attribute was specified by user.
24286
b41f0b34
MM
242872011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
24288
24289 PR target/47251
24290 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
24291 floating point.
24292 (floatunsdidf2_fcfidu): Ditto.
24293
3f3c098d
AK
242942011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24295
24296 * config/s390/s390.c (print_operand_address): Replace 'error' with
24297 'output_operand_lossage'.
24298 (print_operand): Likewise.
24299
29fa95ed
JL
243002011-01-13 Jeff Law <law@redhat.com>
24301
280d9630 24302 PR rtl-optimization/39077
29fa95ed
JL
24303 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
24304 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
24305 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
24306 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
24307 * gcse.c (prune_insertions_deletions): New function.
24308 (compute_pre_data): Use it.
24309
71d12276
DS
243102011-01-13 Dodji Seketeli <dodji@redhat.com>
24311
24312 PR debug/PR46973
24313 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
24314 static function.
61052244 24315 (prune_unused_types_mark): Use it.
71d12276 24316
9b0f04e7
AB
243172011-01-13 Andrey Belevantsev <abel@ispras.ru>
24318
24319 PR rtl-optimization/45352
1c3ba85b 24320 * sel-sched.c: Update copyright years.
9b0f04e7 24321 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 24322 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 24323
d6a3e264
RH
243242011-01-12 Richard Henderson <rth@redhat.com>
24325
a49b692a
RH
24326 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
24327 (TARGET_MD_ASM_CLOBBERS): New.
24328
126b1483
RH
24329 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
24330 (TARGET_DELEGITIMIZE_ADDRESS): New.
24331
f3d9d2e0
RH
24332 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
24333 (clzsi2, *bsch): New patterns.
24334
d84760c9
RH
24335 * config/mn10300/mn10300.md (INT): New mode iterator.
24336 (*mov<INT>_clr): New pattern, and peep2 to generate it.
24337
ec815d65
RH
24338 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
24339 flag_split_wide_types.
24340
d6a3e264
RH
24341 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
24342 (mn10300_trampoline_init): Rewrite without a template, an immediate
24343 load and a direct branch.
24344 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
24345
0f8ab434
AS
243462011-01-12 Anatoly Sokolov <aesok@post.ru>
24347
24348 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24349 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
24350 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
24351 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24352
d8a24b65
KT
243532011-01-12 Kai Tietz <kai.tietz@onevision.com>
24354
24355 PR debug/47209
24356 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
24357 of type.
24358
56e22cab
JH
243592011-01-12 Jan Hubicka <jh@suse.cz>
24360
24361 PR driver/47244
24362 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
24363 (PLUGIN_COND_CLOSE): New macro.
24364 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
24365
4b18b3c2
RG
243662011-01-12 Richard Guenther <rguenther@suse.de>
24367
24368 PR lto/47259
24369 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
24370 register variables in a MEM_REF.
24371
8e38461c
JM
243722011-01-12 Joseph Myers <joseph@codesourcery.com>
24373
24374 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
24375 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
24376 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
24377 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
24378 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
24379 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
24380 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
24381 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
24382 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
24383 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
24384 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
24385 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
24386 * config/gnu-user.h: New. Copied from linux.h.
24387 (LINUX_TARGET_STARTFILE_SPEC): Rename to
24388 GNU_USER_TARGET_STARTFILE_SPEC.
24389 (LINUX_TARGET_ENDFILE_SPEC): Rename to
24390 GNU_USER_TARGET_ENDFILE_SPEC.
24391 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
24392 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
24393 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
24394 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
24395 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
24396 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
24397 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
24398 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
24399 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
24400 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
24401 * config/arm/linux-eabi.h (CC1_SPEC): Use
24402 GNU_USER_TARGET_CC1_SPEC.
24403 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
24404 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
24405 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
24406 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
24407 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
24408 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
24409 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
24410 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
24411
a570fc16
RG
244122011-01-12 Richard Guenther <rguenther@suse.de>
24413
24414 PR other/46946
24415 * doc/invoke.texi (ffast-math): Document it is turned on
24416 with -Ofast.
24417
b0223c3e
JH
244182011-01-12 Jan Hubicka <jh@suse.cz>
24419
24420 PR tree-optimization/47233
ca1e00b3
EB
24421 * opts.c (common_handle_option): Disable ipa-reference with profile
24422 feedback.
b0223c3e 24423
1c3ba85b 244242011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
24425
24426 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
24427 error message.
24428
d853ee42
NP
244292011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
24430
24431 * c-parser.c (c_lex_one_token): Updated and reindented some
24432 comments. No changes in code.
24433
4053a5a0
ILT
244342011-01-11 Ian Lance Taylor <iant@google.com>
24435
24436 * godump.c (go_output_var): Don't output the variable if there is
24437 already a type with the same name.
24438
fa3e04d2
ILT
244392011-01-11 Ian Lance Taylor <iant@google.com>
24440
24441 * godump.c (go_format_type): Don't generate float80.
24442
885fe07c
RH
244432011-01-11 Richard Henderson <rth@redhat.com>
24444
72d6e3c5
RH
24445 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
24446 declaration. Rewrite for both speed and size.
24447 (mn10300_address_cost_1): Remove.
24448 (mn10300_register_move_cost): New.
24449 (mn10300_memory_move_cost): New.
24450 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
24451 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
24452 extensions, shifts, BSWAP, CLZ.
24453 (mn10300_wide_const_load_uses_clr): Remove.
24454 (TARGET_REGISTER_MOVE_COST): New.
24455 (TARGET_MEMORY_MOVE_COST): New.
24456 * config/mn10300/mn10300-protos.h: Update.
24457 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
24458
df37c023
RH
24459 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
24460 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
24461 * config/mn10300/mn10300-protos.h: Update.
24462 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
24463 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
24464 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
24465 (*test_int_bitfield, *test_byte_bitfield): Remove.
24466 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 24467 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 24468
85a337b5
RH
24469 * config/mn10300/constraints.md ("c"): Rename from "A".
24470 ("A", "D"): New constraint letters.
24471 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
24472 (fmssf4, fnmasf4, fnmssf4): Likewise.
24473
a5c727e3
RH
24474 * config/mn10300/mn10300.md (isa): New attribute.
24475 (enabled): New attribute.
24476
0d9e23f4
RH
24477 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
24478 (abssf2, negsf2): Define only for hardware fp.
24479 (sqrtsf2): Reformat.
24480 (addsf3, subsf3, mulsf3): Merge expander and insn.
24481
c157b3f0
RH
24482 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
24483 (DEBUGGER_AUTO_OFFSET): Remove.
24484 (DEBUGGER_ARG_OFFSET): Remove.
24485
cc909bba
RH
24486 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
24487 Emit register stores with the same offsets as the hardware.
24488 (mn10300_store_multiple_operation): Don't check that the register
24489 save offsets are monotonic.
24490 * config/mn10300/mn10300-protos.h: Update.
24491
e3b5c2f3
RH
24492 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
24493
885fe07c
RH
24494 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
24495 in terms of the value on the stack, not the MDR register.
24496
6e701822
JH
244972011-01-11 Jan Hubicka <jh@suse.cz>
24498
24499 PR lto/45721
24500 PR lto/45375
24501 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
24502 (symbol_alias_set_destroy, symbol_alias_set_contains,
24503 propagate_aliases_backward): Declare.
24504 * lto-streamer-out.c (struct sets): New sturcture.
24505 (trivally_defined_alias): New function.
24506 (output_alias_pair_p): Rewrite.
24507 (output_unreferenced_globals): Fix output of alias pairs.
24508 (produce_symtab): Likewise.
24509 * ipa.c (function_and_variable_visibility): Set weak alias destination
24510 as needed in lto.
24511 * varasm.c (symbol_alias_set_t): Remove.
24512 (symbol_alias_set_destroy): Export.
24513 (propagate_aliases_forward, propagate_aliases_backward): New functions
24514 based on ...
24515 (compute_visible_aliases): ... this one; remove.
24516 (trivially_visible_alias): New
24517 (trivially_defined_alias): New.
24518 (remove_unreachable_alias_pairs): Rewrite.
24519 (finish_aliases_1): Reorganize code checking if alias is defined.
24520 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
24521 in LTO mode.
24522
1b248907
RG
245232011-01-11 Richard Guenther <rguenther@suse.de>
24524
24525 PR tree-optimization/46076
24526 * tree-ssa.c (useless_type_conversion_p): Conversions from
24527 unprototyped to empty argument list function types are useless.
24528
b1923f0a
RG
245292011-01-11 Richard Guenther <rguenther@suse.de>
24530
24531 PR middle-end/45235
24532 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
24533 volatile MEMs as MEM_READONLY_P.
24534
e98965af
RG
245352011-01-11 Richard Guenther <rguenther@suse.de>
24536
24537 PR tree-optimization/47239
24538 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
24539
9f9ca914
JL
245402011-01-11 Jeff Law <law@redhat.com>
24541
1ee3ea05 24542 PR tree-optimization/47086
9f9ca914
JL
24543 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
24544 IVs from statements that might throw.
24545
345fdcb7
JH
245462011-01-10 Jan Hubicka <jh@suse.cz>
24547
24548 PR lto/45375
24549 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
24550
c459c97b
JH
245512011-01-10 Jan Hubicka <jh@suse.cz>
24552
24553 PR lto/45375
24554 * profile.c (read_profile_edge_counts): Ignore profile inconistency
24555 when correcting profile.
24556
06c9eb51
JH
245572011-01-10 Jan Hubicka <jh@suse.cz>
24558
24559 PR lto/46083
24560 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
24561 DECL_FINI_PRIORITY.
24562 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
24563 Restore DECL_FINI_PRIORITY.
24564
ae9fd815
RW
245652011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24566
24567 * doc/gimple.texi: Fix quoting of multi-word return values in
24568 @deftypefn statements. Ensure presence of return value. Wrap
24569 overlong @deftypefn lines.
24570 (is_gimple_operand, is_gimple_min_invariant_address): Remove
24571 descriptions of removed functions.
24572 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
24573 of multi-word return value in @deftypefn statement.
24574
0ecb4a7c
RW
245752011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24576
24577 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
24578 (Conditional Expressions, Logical Operators)
24579 (Statement and operand traversals): Do not indent smallexample
24580 code. Fix duplicate function argument in example.
24581
2e5e346d
JL
245822011-01-10 Jeff Law <law@redhat.com>
24583
1ee3ea05 24584 PR tree-optimization/47141
2e5e346d
JL
24585 * ipa-split.c (split_function): Handle case where we are
24586 returning a value and the return block has a virtual operand phi.
24587
cf9712cc
JH
245882011-01-10 Jan Hubicka <jh@suse.cz>
24589
1c3ba85b 24590 PR tree-optimization/47234
cf9712cc
JH
24591 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
24592 (pass_feedback_split_functions): Declare.
24593 * passes.c (init_optimization_passes): Add ipa-split as subpass of
24594 tree-profile.
24595 * ipa-split.c (gate_split_functions): Update comments; disable
24596 split-functions for profile_arc_flag and branch_probabilities.
24597 (gate_feedback_split_functions): New function.
24598 (execute_feedback_split_functions): New function.
24599 (pass_feedback_split_functions): New global var.
24600
94cd932c
L
246012011-01-10 H.J. Lu <hongjiu.lu@intel.com>
24602
24603 PR lto/46760
24604 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
24605 calling gimple_call_set_cannot_inline.
24606
fbbfcaf1
IS
246072011-01-10 Iain Sandoe <iains@gcc.gnu.org>
24608
24609 * config/darwin-sections.def: Remove unused section.
24610
d06865bf
DK
246112011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
24612
24613 PR c++/47218
24614 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
24615
96bbfbac
NP
246162011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
24617
24618 PR objc/47232
24619 * c-parser.c (c_parser_declaration_or_fndef): Improved
24620 error message.
24621
1ba6516f
KT
246222011-01-09 Kai Tietz <kai.tietz@onevision.com>
24623
24624 * config/i386/winnt.c (i386_pe_start_function): Make sure
24625 to switch back to function's section.
24626
0c5d770e
IS
246272011-01-09 Iain Sandoe <iains@gcc.gnu.org>
24628
24629 PR gcc/46902
24630 PR testsuite/46912
24631 * plugin.c: Move include of dlfcn.h from here...
24632 * system.h: ... to here.
24633
246342011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
24635
24636 * doc/cpp.texi (C++ Named Operators): Fix markup for header
24637 file name.
24638 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
24639 two extra empty pages in PDF output.
24640
046608a3
NP
246412011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
24642
24643 PR objc/47078
24644 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
24645 for error recovery purposes behave as if it was not specified so
24646 that the default type is usd.
24647
8cb114b9
JH
246482011-01-07 Jan Hubicka <jh@suse.cz>
24649
24650 PR tree-optmization/46469
24651 * ipa.c (function_and_variable_visibility): Clear needed flags on
24652 nodes with external decls; handle weakrefs merging correctly.
24653
b294a75e
JM
246542011-01-07 Joseph Myers <joseph@codesourcery.com>
24655
24656 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
24657 not false.
24658
96bdf9b4
JH
246592011-01-07 Jan Hubicka <jh@suse.cz>
24660
f60c2554 24661 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
24662 and no longer claim that gold is required for linker plugin.
24663 * configure: Regenerate.
24664 * gcc.c (PLUGIN_COND): New macro.
24665 (LINK_COMMAND_SPEC): Use it.
24666 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
24667 * config.in (HAVE_LTO_PLUGIN): New.
24668 * configure.ac (--with-lto-plugin): New parameter; autodetect
24669 HAVE_LTO_PLUGIN.
24670
17afc0fe
JH
246712011-01-07 Jan Hubicka <jh@suse.cz>
24672
24673 PR tree-optimization/46367
24674 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
24675 when we can update original.
24676 (cgraph_mark_inline_edge): Sanity check.
24677 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
24678
d4c48c0f
UW
246792011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24680
24681 * config/spu/spu.h (ASM_COMMENT_START): Define.
24682
96f5b137
L
246832011-01-07 H.J. Lu <hongjiu.lu@intel.com>
24684
24685 PR driver/42445
24686 * gcc.c (%>S): New.
24687 (SWITCH_KEEP_FOR_GCC): Likewise.
24688 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
24689 (do_spec_1): Handle "%>".
24690
24691 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
24692
c6a8f6de
JJ
246932011-01-07 Jakub Jelinek <jakub@redhat.com>
24694
c21bbd7a
JJ
24695 PR target/47201
24696 * config/i386/i386.c (ix86_delegitimize_address): If
24697 simplify_gen_subreg fails, return orig_x.
24698
c6a8f6de
JJ
24699 PR bootstrap/47187
24700 * value-prof.c (gimple_stringop_fixed_value): Handle
24701 lhs of the call properly.
24702
fe95fbf9
JH
247032011-01-07 Jan Hubicka <jh@suse.cz>
24704
24705 PR lto/45375
24706 * lto-opt.c (lto_reissue_options): Set flag_shlib.
24707
14d11d40
IS
247082011-01-07 Iain Sandoe <iains@gcc.gnu.org>
24709
72e961c8
EB
24710 * target.def (function_switched_text_sections): New hook.
24711 * doc/tm.texi: Regenerated.
24712 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 24713 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
24714 (final_scan_insn): Call function_switched_text_sections when a
24715 mid-function section change occurs.
14d11d40 24716 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
24717 * config/darwin-protos.h (darwin_function_switched_text_sections):
24718 Likewise.
14d11d40 24719 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 24720 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 24721
0b764288
IS
247222011-01-07 Iain Sandoe <iains@gcc.gnu.org>
24723
24724 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
24725 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
24726 the secondary code fragment when outputting for DWARF == 2.
24727
2ac6bb04
AS
247282011-01-07 Anatoly Sokolov <aesok@post.ru>
24729
24730 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24731 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
24732 Remove.
24733 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
24734 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24735
9f82de11
EB
247362011-01-06 Eric Botcazou <ebotcazou@adacore.com>
24737
24738 PR debug/46704
280d9630
EB
24739 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
24740 when it is not empty.
9f82de11
EB
24741
247422011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 24743
1ed72abf 24744 Bobcat Enablement
14b52538 24745 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 24746 (case ${target}): Add btver1.
14b52538 24747 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 24748 -march=native recognize btver1 processors.
14b52538 24749 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 24750 btver1 def_and_undef
14b52538 24751 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
24752 btver1 cost table.
24753 (m_BTVER1): New definition.
24754 (m_AMD_MULTIPLE): Includes m_BTVER1.
24755 (initial_ix86_tune_features): Add btver1 tune.
24756 (processor_target_table): Add btver1 entry.
24757 (static const char *const cpu_names): Add btver1 entry.
24758 (software_prefetching_beneficial_p): Add btver1.
24759 (ix86_option_override_internal): Add btver1 instruction sets.
24760 (ix86_issue_rate): Add btver1.
24761 (ix86_adjust_cost): Add btver1.
14b52538 24762 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
24763 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
24764 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
24765 * config/i386/i386.md (define_attr "cpu"): Add btver1.
24766
e1a973d8
RO
247672011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24768
24769 PR target/43309
24770 * config/i386/i386.c (legitimize_tls_address)
24771 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
24772 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
24773 (tls_initial_exec_64_sun): New pattern.
24774
c73f67c5
GP
247752011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
24776
24777 * doc/invoke.texi (Overall Options): Improve wording and markup
24778 of the description of -wrapper.
24779
bc4c6f9c
JM
247802011-01-06 Joseph Myers <joseph@codesourcery.com>
24781
24782 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
24783 rdynamic, threads): New Driver options.
24784
adb75db0
RO
247852011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24786
24787 PR target/38118
24788 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
24789 if coming from .tdata.
24790 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
24791
402c1cb4
JH
247922011-01-06 Jan Hubicka <jh@suse.cz>
24793
24794 PR lto/47188
24795 * collect2.c (main): Do not enable LTOmode when plugin is active.
24796
a4da6485
RO
247972011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24798
24799 PR other/45915
24800 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
24801 --version output if supported.
24802 * configure: Regenerate.
24803
028dbdf4
JM
248042011-01-06 Joseph Myers <joseph@codesourcery.com>
24805
24806 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
24807 Driver options.
24808
dfe776dd
JJ
248092011-01-06 Jakub Jelinek <jakub@redhat.com>
24810
24811 PR c/47150
24812 * c-convert.c (convert): When converting a complex expression
24813 other than COMPLEX_EXPR to a different complex type, ensure
24814 c_save_expr is called instead of save_expr, unless in_late_binary_op.
24815 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
24816 when converting COMPLEX_TYPE.
24817
210dedfe
IR
248182011-01-06 Ira Rosen <irar@il.ibm.com>
24819
24820 PR tree-optimization/47139
24821 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
24822 only the last reduction value is used outside the loop. Update
24823 documentation.
24824
cd33a412
JM
248252011-01-05 Joseph Myers <joseph@codesourcery.com>
24826
24827 * config/rtems.opt: New.
24828 * config.gcc (*-*-rtems*): Use rtems.opt.
24829
819edd94
CF
248302011-01-05 Changpeng Fang <changpeng.fang@amd.com>
24831
24832 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
24833 processors do not support 3DNow instructions.
24834
dc242c4a
UW
248352011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24836
24837 * config/spu/spu.c (spu_option_override): Set parameter
24838 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
24839
be286227
JH
248402011-01-05 Jan Hubicka <jh@suse.cz>
24841
24842 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
24843 at the command line.
24844
644e637f
MJ
248452011-01-05 Martin Jambor <mjambor@suse.cz>
24846
24847 PR lto/47162
24848 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
24849 deltas on streamed outgoing edges.
24850 (output_node_opt_summary): Output info for outgoing edges only when
24851 the node is in new parameter set.
24852 (output_cgraph_opt_summary): New parameter set, passed to the two
24853 aforementioned functions. Update its forward declaration and its
24854 callee too.
24855
7bd11157
TT
248562011-01-05 Tom Tromey <tromey@redhat.com>
24857
24858 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
24859 operator to c_finish_omp_atomic.
24860 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
24861 (build_unary_op): Update.
24862 (build_modify_expr): Update.
24863 (build_asm_expr): Update.
24864
f626b979
UW
248652011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24866
24867 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
24868 newly inserted insns.
24869 (pad_bb): Likewise.
24870 (spu_emit_branch_hint): Likewise.
24871 (insert_hbrp_for_ilb_runout): Likewise.
24872 (spu_machine_dependent_reorg): Call df_finish_pass after
24873 schedule_insns returns.
24874
4c825c02
UW
248752011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24876
24877 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
24878
5e9fba51
EB
248792011-01-05 Eric Botcazou <ebotcazou@adacore.com>
24880
24881 PR tree-optimization/47005
24882 * tree-sra.c (struct access): Add 'non_addressable' bit.
24883 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
24884 (decide_one_param_reduction): Return 0 if the parameter is passed by
24885 reference and one of the accesses in the group is non_addressable.
24886
3ebb5ca6
EB
248872011-01-04 Eric Botcazou <ebotcazou@adacore.com>
24888
24889 PR tree-optimization/47056
24890 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
24891 (mark_load): Likewise. Handle FUNCTION_DECL specially.
24892 (mark_store): Likewise. Pass STMT to ipa_record_reference.
24893
d5d4d14e
EB
248942011-01-04 Eric Botcazou <ebotcazou@adacore.com>
24895
24896 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
24897 initializer. Skip view conversions from aggregate types.
24898
d996ef70
KT
248992011-01-04 Kai Tietz <kai.tietz@onevision.com>
24900
24901 PR bootstrap/47055
24902 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
24903
509d65dd 249042011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
24905
24906 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
24907 obvious typo.
24908
55c623b5
UW
249092011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24910
24911 * function.c (thread_prologue_and_epilogue_insns): Do not crash
24912 on empty epilogue sequences.
24913
b98d6b35
JM
249142011-01-04 Joseph Myers <joseph@codesourcery.com>
24915
24916 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
24917 non-static): New Driver options.
24918
a0d43bac
JZ
249192011-01-04 Jie Zhang <jie@codesourcery.com>
24920
24921 PR driver/47137
24922 * gcc.c (default_compilers[]): Set combinable field to 0
24923 for all assembly languages.
24924
2b18eb32
MX
249252011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
24926
24927 * config/mips/loongson3a.md: New file.
24928 * config/mips/mips.md: Include loongson3a.md.
24929 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
24930 TUNE_LOONGSON_3A.
24931
42a48c4f
EB
249322011-01-03 Eric Botcazou <ebotcazou@adacore.com>
24933
24934 PR middle-end/47017
24935 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
24936 instead of convert_memory_address_addr_space on the base expression.
24937
9c1732c4
UW
249382011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24939
24940 * config/spu/spu.c (spu_option_override): Update error text
24941 for bad -march= / -mtune= values.
24942
aa474365
UW
249432011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24944
24945 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
24946 if branch-hint optimization will be performed.
24947
9766135b
JJ
249482011-01-03 Jakub Jelinek <jakub@redhat.com>
24949
371556ee
JJ
24950 PR tree-optimization/47148
24951 * ipa-split.c (split_function): Convert arguments to
24952 DECL_ARG_TYPE if possible.
24953
1ac12fa2
JJ
24954 PR tree-optimization/47155
24955 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
24956 when computing uns.
24957
9766135b
JJ
24958 PR rtl-optimization/47157
24959 * combine.c (try_combine): If undobuf.other_insn becomes
24960 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
24961 and set *new_direct_jump_p too.
24962
f4a2e571
SP
249632011-01-03 Sebastian Pop <sebastian.pop@amd.com>
24964
24965 PR tree-optimization/47021
24966 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
24967
9f8e43c0
JJ
249682011-01-03 Jakub Jelinek <jakub@redhat.com>
24969
24970 * gcc.c (process_command): Update copyright notice dates.
24971 * gcov.c (print_version): Likewise.
24972 * gcov-dump.c (print_version): Likewise.
24973 * mips-tfile.c (main): Likewise.
24974 * mips-tdump.c (main): Likewise.
24975
1a2e38f3
MJ
249762011-01-03 Martin Jambor <mjambor@suse.cz>
24977
24978 PR tree-optimization/46801
24979 * tree-sra.c (type_internals_preclude_sra_p): Check whether
24980 aggregate fields start at byte boundary instead of the bit-field flag.
24981
56b721c5
L
249822011-01-03 H.J. Lu <hongjiu.lu@intel.com>
24983
24984 PR driver/47137
24985 * gcc.c (main): Revert revision 168407.
24986
839d549b
MJ
249872011-01-03 Martin Jambor <mjambor@suse.cz>
24988
24989 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
24990
4ce99a20 249912011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
24992
24993 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
24994 vector optab to expand vector/scalar shift, update gimple to vector.
24995
76df0ae6
MJ
249962011-01-03 Martin Jambor <mjambor@suse.cz>
24997
24998 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
24999 a thunk.
25000
ce47fda3
MJ
250012011-01-03 Martin Jambor <mjambor@suse.cz>
25002
25003 PR tree-optimization/46984
25004 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
25005 HOST_WIDE_INT.
25006 (cgraph_create_indirect_edge): Fixed line length.
25007 (cgraph_indirect_call_info): Declare.
25008 (cgraph_make_edge_direct) Update declaration.
25009 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
25010 (cgraph_create_indirect_edge): Use it.
25011 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
25012 callees.
25013 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
25014 the new thunk_delta representation.
25015 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
25016 HOST_WIDE_INT.
25017 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
25018 (ipa_read_indirect_edge_info): Likewise.
25019 * lto-cgraph.c (output_edge_opt_summary): New function.
25020 (output_node_opt_summary): Call it on all outgoing edges.
25021 (input_edge_opt_summary): New function.
25022 (input_node_opt_summary): Call it on all outgoing edges.
25023
1e67fa1f
L
250242011-01-02 H.J. Lu <hongjiu.lu@intel.com>
25025
25026 PR driver/47137
25027 * gcc.c (main): Don't check have_o when settting combine_inputs.
25028
6656b2ac
EB
250292011-01-02 Eric Botcazou <ebotcazou@adacore.com>
25030
25031 * regrename.c: Add general comment describing the pass.
25032 (struct du_head): Remove 'length' field.
25033 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
25034 (regrename_optimize): Do not sort chains. Rework comments, add others.
25035 Force renaming to the preferred class (if any) in the first pass and do
25036 not consider registers that belong to it in the second pass.
25037 (create_new_chain): Do not set 'length' field.
25038 (scan_rtx_reg): Likewise.
25039
bc470c24
JJ
250402011-01-02 Jakub Jelinek <jakub@redhat.com>
25041
4e996296
JJ
25042 PR tree-optimization/47140
25043 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
25044 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
25045 to bit_value_binop.
25046
bc470c24 25047 PR rtl-optimization/47028
6656b2ac
EB
25048 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
25049 parm_birth_insn instead of at the beginning of first bb.
bc470c24 25050
5af62fcd 250512011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
25052
25053 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
25054 Remove the word "see" before "@pxref".
25055 * doc/rtl.texi: Remove the word "see" before "@pxref".
25056
0e20c89f
JH
250572011-01-01 Jan Hubicka <jh@suse.cz>
25058
6656b2ac
EB
25059 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
25060 memory.
0e20c89f 25061
220e83ca
KT
250622011-01-01 Kai Tietz <kai.tietz@onevision.com>
25063
25064 PR target/38662
6656b2ac 25065 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 25066
ad41bd84 25067\f
797103eb 25068Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
25069
25070Copying and distribution of this file, with or without modification,
25071are permitted in any medium without royalty provided the copyright
25072notice and this notice are preserved.