]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR rtl-optimization/48302 (ICE: SIGSEGV in reposition_prologue_and_epilogue_notes...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
ea4d630f
AM
12011-04-08 Alexander Monakov <amonakov@ispras.ru>
2
3 PR rtl-optimization/48302
4 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6 it to record added preheader blocks.
7 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8 on to sel_add_loop_preheaders.
9 (sel_region_init): Move call to setup_current_loop_nest after
10 sel_init_bbs.
11
07643d76
AM
122011-04-08 Alexander Monakov <amonakov@ispras.ru>
13
14 PR target/48273
15 * cfgloop.h (loop_has_exit_edges): New helper.
16 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
17 non-clonable.
18 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
19 that have no exit edges.
20
1f3b2b4e
AM
212011-04-08 Alexander Monakov <amonakov@ispras.ru>
22
23 PR rtl-optimization/48442
24 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
25 all callers. Adjust assert.
26
554f1948
JJ
272011-04-08 Jakub Jelinek <jakub@redhat.com>
28
29 PR tree-optimization/48377
30 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
31 is_packed to true even for types with smaller TYPE_ALIGN than
32 TYPE_SIZE.
33
ddf72388
RG
342011-04-08 Richard Guenther <rguenther@suse.de>
35
36 PR bootstrap/48513
37 * doc/tm.texi: Re-generate.
38
0c27e2d8
WG
392011-04-08 Wei Guozhi <carrot@google.com>
40
41 PR target/47855
42 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
43 * config/arm/arm.c (arm_attr_length_push_multi): New function.
44 * config/arm/arm.md (*push_multi): Change the length computation to
45 call a C function.
46
07c5f94e
AS
472011-04-08 Anatoly Sokolov <aesok@post.ru>
48
49 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
50 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
51 * doc/tm.texi: Regenerate.
52 * system.h (ASM_OUTPUT_BSS): Poison.
53 * varasm.c (asm_output_bss): Remove function.
54 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
55
56 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
57 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
58 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
59 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
60 Likewise.
61 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
62 Likewise.
63 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
64 Likewise.
65 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
66
5f2c36e1
JM
672011-04-07 Joseph Myers <joseph@codesourcery.com>
68
69 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
70 EnumValue lines.
71
39e7722b
JM
722011-04-07 Joseph Myers <joseph@codesourcery.com>
73
74 * config/m68k/m68k.c (m68k_handle_option): Don't handle
75 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
76 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
77 OPT_mcpu32.
78 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
79 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
80 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
81 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
82 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
83 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
84 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
85 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
86 options. Don't map other m68k options manually. Don't handle
87 old-style options as canonical.
88 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
89 * doc/install.texi (m68k-*-*): Document binutils version
90 requirement.
91
cf103ca4
EB
922011-04-07 Eric Botcazou <ebotcazou@adacore.com>
93
94 * basic-block.h (force_nonfallthru): Move to...
95 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
96 (force_nonfallthru): ...here.
97 * cfghooks.c (force_nonfallthru): New function.
98 * cfgrtl.c (force_nonfallthru): Rename into...
99 (rtl_force_nonfallthru): ...this.
100 (commit_one_edge_insertion): Do not set AUX field.
101 (commit_edge_insertions): Do not discover new basic blocks.
102 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
103 (cfg_layout_rtl_cfg_hooks): Likewise.
104 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
105 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
106 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
107
14431f58
AS
1082011-04-07 Anatoly Sokolov <aesok@post.ru>
109
110 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
111 Remove macros.
112
3729983c
UB
1132011-04-07 Uros Bizjak <ubizjak@gmail.com>
114
115 * config/i386/sse.md: Update copyright year.
116 (avxcvtvecmode): Remove.
117 (sse_movhlps): Merge with *avx_movhlps.
118 (sse_movlhps): Merge with *avx_movlhps.
119 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
120 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
121 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
122 (sse_loadhps): Merge with *avx_loadhps.
123 (sse_storelps): Merge with *avx_storelps.
124 (sse_loadlps): Merge with *avx_loadlps.
125 (sse_movss): Merge with *avx_movss.
126 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
127 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
128 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
129 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
130 (vec_set<mode>_0): Ditto.
131 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
132 (sse4_1_insertps): Merge with *avx_insertps.
133 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
134 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
135 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
136 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
137 (sse2_storehpd): Merge with *avx_storehpd.
138 (sse2_loadhpd): Merge with *avx_loadhpd.
139 (sse2_loadlpd): Merge with *avx_loadlpd.
140 (sse2_movsd): Merge with *avx_movsd.
141 (*vec_concatv2df): Merge with *vec_concatv2df.
142
4e626909
JJ
1432011-04-07 Jakub Jelinek <jakub@redhat.com>
144
145 PR debug/48343
146 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 147 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
148 (try_combine): Add last_combined_insn parameter, pass it instead of
149 i3 to propagate_for_debug.
150
3729983c 1512011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
152
153 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
154 to handle MDR <-> data register transfers.
155 (movhi_internal): Likewise.
156
20c03367
AM
1572011-04-07 Alan Modra <amodra@gmail.com>
158
159 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
160 previous stack info.
161
bf22920b
TV
1622011-04-07 Tom de Vries <tom@codesourcery.com>
163
164 PR target/43920
165 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
166 flow_find_cross_jump. Swap variables to implement backward replacement.
167 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
168
823918ae
TV
1692011-04-07 Tom de Vries <tom@codesourcery.com>
170
171 PR target/43920
172 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
173 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
174 and bb2.
175 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
176 src1 or src2. Redirect edges to the last basic block. Update
177 frequency and count on multiple basic blocks in case of fallthru.
823918ae 178
472c95f5
TV
1792011-04-07 Tom de Vries <tom@codesourcery.com>
180
181 PR target/43920
182 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
183 function.
3729983c
UB
184 (old_insns_match_p): Change return type. Replace return false/true
185 with return dir_none/dir_both. Use can_replace_by.
186 (flow_find_cross_jump): Add dir_p parameter. Init replacement
187 direction from dir_p. Register replacement direction in dir, last_dir
188 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
189 merge_dir. Return replacement direction in dir_p.
190 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
191 return type of old_insns_match_p.
192 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
193 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
194 flow_find_cross_jump.
195 * basic-block.h (enum replace_direction): New type.
196 (flow_find_cross_jump): Add parameter to declaration.
197
a95d4000
UB
1982011-04-06 Uros Bizjak <ubizjak@gmail.com>
199
200 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
201 (AVXMODEDCVTPS2DQ): Ditto.
202 (VEC_FLOAT_MODE): Ditto.
203 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
204 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
205 (<any_logic:code><mode>3): Use VF mode iterator.
206 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
207 Use VF mode iterator.
208 (copysign<mode>3): Use VF mode iterator.
209 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
210 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
211 (*<any_logic:code><MODEF:mode>3): Merge with
212 *avx_<any_logic:code><MODEF:mode>3.
213 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
214 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
215 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
216 (avx_cvtdq2ps<avxmodesuffix>): Remove.
217 (sse2_cvtdq2ps): Use %v modifier.
218 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
219 (avx_cvtps2dq<avxmodesuffix>): Remove.
220 (sse2_cvtps2dq): Use %v modifier.
221 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
222 (avx_cvttps2dq<avxmodesuffix>): Remove.
223 (sse2_cvttps2dq): Use %v modifier.
224 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
225 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
226 (sse2_cvtsd2siq): Fix insn template.
227 (sse2_cvtsd2siq_2): Ditto.
228 (sse2_cvttsd2siq): Ditto.
229 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
230 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
231
ad01c437
JM
2322011-04-06 Joseph Myers <joseph@codesourcery.com>
233
234 * gcov-io.c: Use GCC Runtime Library Exception.
235
fe846284
JJ
2362011-04-06 Jakub Jelinek <jakub@redhat.com>
237
238 PR debug/48466
239 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
240 as base_reg whatever register reg has been eliminated to, instead
241 of hardcoding STACK_POINTER_REGNUM.
242
acce4e77
JM
2432011-04-06 Joseph Myers <joseph@codesourcery.com>
244
245 * doc/tm.texi.in: Document C target hooks as separate from general
246 target hooks.
247 * doc/tm.texi: Regenerate.
248 * genhooks.c (struct hook_desc): Add docname field.
249 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
250 docname field.
251 (hook_array): Include c-target.def.
252 (emit_documentation): Use docname field in output.
253 (emit_init_macros): Take docname argument. Only emit definitions
254 for hooks matching docname.
255 (main): Expect additional arguments in all cases. Pass argument
256 to emit_init_macros.
257 * target.def: Move initial macro definitions and comments to
258 target-hooks-macros.h.
259 (gcc_targetcm): Move to c-family/c-target.def.
260 * target.h (targetcm): Move declaration to c-family/c-target.h.
261 * targhooks.c (default_handle_c_option): Move to
262 c-family/c-opts.c.
263 * targhooks.h (default_handle_c_option): Move declaration to
264 c-family/c-common.h.
265 * target-hooks-macros.h: New file.
266 * config.gcc (target_has_targetcm): Define and use to add to
267 c_target_objs and cxx_target_objs.
268 * config/default-c.c: New file.
269 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
270 of target.h and target-def.h.
271 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
272 (darwin_objc_construct_string, darwin_cfstring_ref_p,
273 darwin_check_cfstring_format_arg): Make static.
274 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
275 TARGET_STRING_OBJECT_REF_TYPE_P,
276 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
277 * config/darwin-protos.h (darwin_objc_construct_string,
278 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
279 declare.
280 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
281 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 282 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
283 * config/t-darwin (darwin-c.o): Update dependencies.
284 * system.h (TARGET_HAS_TARGETCM): Poison.
285 * Makefile.in (TARGET_H): Update.
286 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
287 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
288 (default-c.o): New target.
289 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 290 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
291 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
292 c-target.def.
293 (build/genhooks.o): Update dependencies.
294
275b4baa 2952011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 296
275b4baa
RG
297 * ipa-inline.c (enum inlining_mode): Remove.
298 (cgraph_flatten): Use some other token.
299 (cgraph_edge_early_inlinable_p): New function, split out from ...
300 (cgraph_perform_always_inlining): New function, split out from ...
301 (cgraph_decide_inlining_incrementally): ... here.
302 (cgraph_mark_inline_edge): Adjust.
303 (cgraph_early_inlining): Re-structure.
304 (pass_early_inline): Require SSA form.
305
f15b8bdf 3062011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
307 Julian Brown <julian@codesourcery.com>
308 Mark Shinwell <shinwell@codesourcery.com>
309
310 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
311 LO_REGS only for Thumb-1.
312 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
313 be used in short instructions when optimising for size on Thumb-2.
314
516426da
EB
3152011-04-06 Eric Botcazou <ebotcazou@adacore.com>
316
317 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
318 associated with user returns to be preserved.
319
96621ebf
TG
3202011-04-06 Tristan Gingold <gingold@adacore.com>
321
f15b8bdf
EB
322 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
323 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
324 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
325 if XCOFF_DEBUGGING_INFO.
326
07c0852e
UB
3272011-04-06 Uros Bizjak <ubizjak@gmail.com>
328
329 * config/i386/i386.md (attribute isa): New.
330 (attribute enabled): New.
331 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
332 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
333 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
334 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
335 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
336 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
337 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
338 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
339
340 * config/i386/sse.md (VF): New mode iterator.
341 (VF1): Ditto.
342 (VF2): Ditto.
343 (VF_128): Ditto.
344 (SSEMODEF4): Remove.
345 (attribute sse): Handle V8SF and V4DF modes.
346 (<absneg:code><mode>2): Use VF mode iterator.
347 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
348 mode iterator.
349 (<plusminus_insn><mode>3): Use VF mode iterator.
350 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
351 Use VF mode iterator.
352 (<sse>_vm<plusminus_insn><mode>3): Merge with
353 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
354 (mul<mode>3): Use VF mode iterator.
355 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
356 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
357 mode iterator.
358 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
359 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
360 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
361 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
362 mode iterator.
363 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
364 Use VF1 mode iterator.
365 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
366 (sqrt<VF2:mode>2): New expander.
367 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
368 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
369 and sqrtv2df2. Use VF mode iterator.
370 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
371 mode iterator.
372 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
373 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
374 Use VF1 mode iterator.
375 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
376 (<smaxmin:code><mode>3): Use VF mode iterator.
377 (*<smaxmin:code><mode>3_finite): Merge with
378 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
379 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
380 (<sse>_vm<smaxmin:code><mode>2): Merge with
381 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
382 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
383 mode iterator.
384 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
385 mode iterator.
386 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
387 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
388 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
389 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
390 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
391 VF mode iterator.
392 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
393 Use VF_128 mode iterator.
394 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
395 mode iterator.
396 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
397 VF_128 mode iterator.
398 (vcond<mode>): Use VF mode iterator.
399 * config/i386/predicates.md (sse_comparison_operator): Merge with
400 avx_comparison_float_operator. Do not declare as special_predicate.
401 * config/i386/i386.c (struct builtin_description): Update for renamed
402 compare patterns.
403 (ix86_expand_args_builtin): Ditto.
404 (ix86_expand_sse_compare_mask): Ditto.
405
ff5d142c
RG
4062011-04-06 Richard Guenther <rguenther@suse.de>
407
408 * tree-inline.c (estimate_num_insns): For calls simply account
409 for all passed arguments and a used return value.
410
d7d1d041 4112011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 412
d7d1d041
RG
413 PR tree-optimization/47663
414 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
415 call_stmt_time fields.
416 (cgraph_edge_inlinable_p): Declare.
417 (cgraph_edge_recursive_p): New inline function.
418 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
419 (cgraph_clone_edge): Copy it.
420 * ipa-inline.c (cgraph_estimate_edge_time): New function.
421 Account for call stmt time.
422 (cgraph_estimate_time_after_inlining): Take edge argument.
423 (cgraph_estimate_edge_growth): Account call stmt size.
424 (cgraph_estimate_size_after_inlining): Take edge argument.
425 (cgraph_mark_inline_edge): Adjust.
426 (cgraph_check_inline_limits): Likewise.
427 (cgraph_recursive_inlining_p): Remove.
428 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
429 (cgraph_decide_recursive_inlining): Take edge argument and
430 adjust.
431 (cgraph_decide_inlining_of_small_functions): Do not avoid
432 diags for recursive inlining here.
433 (cgraph_flatten): Adjust.
434 (cgraph_decide_inlining_incrementally): Likewise.
435 (estimate_function_body_sizes): Remove call cost handling.
436 (compute_inline_parameters): Initialize caller edge call costs.
437 (cgraph_estimate_edge_growth): New function.
438 (cgraph_estimate_growth): Use it.
439 (cgraph_edge_badness): Likewise.
440 (cgraph_check_inline_limits): Take an edge argument.
441 (cgraph_decide_inlining_of_small_functions): Adjust.
442 (cgraph_decide_inlining): Likewise.
443 * tree-inline.c (estimate_num_insns): Only account for call
444 return value if it is used.
445 (expand_call_inline): Avoid diagnostics on recursive inline
446 functions here.
447 * lto-cgraph.c (lto_output_edge): Output edge call costs.
448 (input_edge): Input edge call costs.
449
2feb95f7
RO
4502011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
451
452 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
453
26fbd9c2
JW
4542011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
455
456 * doc/invoke.texi (Spec Files): Fix typo.
457
694dc0ca
EB
4582011-04-06 Eric Botcazou <ebotcazou@adacore.com>
459
460 * profile.c (branch_prob): Move declaration of local variable. Remove
461 obsolete ??? comment. Expand the location explicitly instead of using
462 the LOCATION_FILE and LOCATION_LINE macros.
463
4925d0d5
WG
4642011-04-06 Wei Guozhi <carrot@google.com>
465
466 PR target/47855
467 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
468 (arm_cond_branch): Likewise.
469 (arm_cond_branch_reversed): Likewise.
470 (arm_jump): Likewise.
471 (push_multi): Likewise.
472 * config/arm/constraints.md (Py): New constraint.
473
f55dfa2f
NF
4742011-04-05 Nathan Froyd <froydnj@codesourcery.com>
475
476 PR bootstrap/48471
477 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
478 Move these...
479 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
480 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
481 #ifdef DBX_DEBUGGING_INFO.
482
fca96842
BS
4832011-04-05 Bernd Schmidt <bernds@codesourcery.com>
484
485 PR bootstrap/48403
486 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
487 if old and new states differ.
488
30b83e38
JM
4892011-04-05 Joseph Myers <joseph@codesourcery.com>
490
491 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
492 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
493 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
494 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
495 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
496 mcfv4e): Use Alias.
497 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
498 ColdFire options to -mcpu= options.
499
277a9aa5
JL
5002011-04-05 Jeff Law <law@redhat.com>
501
502 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
503 check if BB is a successor of LOOP->header and return
504 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
505
c1e2610e
SB
5062011-04-05 Steven Bosscher <steven@gcc.gnu.org>
507
508 * cprop.c (struct reg_use): Remove.
509 (reg_use_table): Make an array of RTX.
510 (find_used_regs, constprop_register, local_cprop_pass,
511 bypass_block): Simplify users of reg_use_table.
512 (cprop_insn): Likewise. Iterate if copy propagation succeeded
513 on one of the uses found by find_used_regs.
514
e532f586
NF
5152011-04-05 Nathan Froyd <froydnj@codesourcery.com>
516
517 PR bootstrap/48469
518 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
519 declaration.
520
3fb7c055
NF
5212011-04-05 Nathan Froyd <froydnj@codesourcery.com>
522
523 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
524 as an rtx.
525 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
526
b71b43d9
SB
5272011-04-05 Steven Bosscher <steven@gcc.gnu.org>
528
529 PR middle-end/48441
530 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
531
b405b274
NF
5322011-04-05 Nathan Froyd <froydnj@codesourcery.com>
533
534 * combine.c: Include obstack.h.
535 (struct insn_link): Define.
536 (uid_log_links): Adjust type.
537 (FOR_EACH_LOG_LINK): New macro.
538 (insn_link_obstack): Declare.
539 (alloc_insn_link): Define.
540 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
541 type of link variables.
542 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
543 (try_combine, record_promoted_values, distribute_notes): Likewise.
544 (distribute_links): Likewise. Tweak prototype.
545 (clear_log_links): Delete.
546 (adjust_for_new_dest): Call alloc_insn_link.
547 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
548
6409abe3
NF
5492011-04-05 Nathan Froyd <froydnj@codesourcery.com>
550
551 * gcse.c (modify_mem_list): Convert to an array of VECs.
552 (canon_modify_mem_list, compute_transp): Tweak formatting.
553 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
554 (load_killed_in_block_p): Likewise.
555 (record_last_mem_set_info): Likewise.
556 (clear_modify_mem_tables): Likewise.
557
170d8157
TV
5582011-04-05 Tom de Vries <tom@codesourcery.com>
559
560 PR middle-end/48461
561 * function.c (emit_use_return_register_into_block): Only define if
562 HAVE_return.
563
c5911a55
EB
5642011-04-05 Eric Botcazou <ebotcazou@adacore.com>
565
566 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
567
abd016e6
JM
5682011-04-05 Joseph Myers <joseph@codesourcery.com>
569
570 * config/rx/rx-opts.h: New.
571 * config/rx/rx.c (rx_cpu_type): Remove.
572 (rx_handle_option): Don't assert that global structures are in
573 use. Access variables via opts pointer. Defer most handling of
574 OPT_mint_register_. Use error_at.
575 (rx_option_override): Handle deferred OPT_mint_register_ here.
576 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
577 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
578 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
579 (rx_cpu_types): New Enum and EnumValue entries.
580 (mint-register=): Use Defer and use Var accordingly.
581
1ed13f83
NF
5822011-04-05 Nathan Froyd <froydnj@codesourcery.com>
583
584 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
585 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
586 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
587 Move these...
588 (debug_free_queue, debug_nesting, symbol_queue_index):
589 ...and these...
590 * dbxout.c: ...to here. Make static.
591
6ce1edcf
NF
5922011-04-05 Nathan Froyd <froydnj@codesourcery.com>
593
594 * gcse.c (modify_pair): Define. Define a VEC of it.
595 (canon_modify_mem_list): Convert to an array of VECs.
596 (free_insn_expr_list_list): Delete.
597 (clear_modify_mem_tables): Call VEC_free instead.
598 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
599 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
600 (canon_list_insert, compute_transp): Likewise.
601
c201ac94
TV
6022011-04-05 Tom de Vries <tom@codesourcery.com>
603
604 PR target/43920
605 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
606 for size.
607
4c029f40
TV
6082011-04-05 Tom de Vries <tom@codesourcery.com>
609
610 PR target/43920
611 * function.c (emit_use_return_register_into_block): New function.
612 (thread_prologue_and_epilogue_insns): Use
613 emit_use_return_register_into_block.
614
2a562b0a
TV
6152011-04-05 Tom de Vries <tom@codesourcery.com>
616
617 PR target/43920
618 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
619 insn.
620
0248bceb
TV
6212011-04-05 Tom de Vries <tom@codesourcery.com>
622
623 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
624
ffa94123
YZ
6252011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
626
627 * config/arm/arm.md (define_constants for unspec): Replace with
628 define_c_enum.
629 (define_constants for unspecv): Replace with define_c_enum.
630 * config/arm/neon.md (define_constants for unspec): Replace with
631 define_c_enum.
632
3b8f9b46
RH
6332011-04-04 Richard Henderson <rth@redhat.com>
634
720cf80f 635 PR bootstrap/48400
3b8f9b46
RH
636 * dwarf2out.c (output_line_info): Always emit line info from
637 at least one section.
638 (dwarf2out_init): Create text_section_line_info here ...
639 (set_cur_line_info_table): ... not here.
640
720cf80f 6412011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
642
643 PR target/48380
644 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 645 not called.
e5b0e1ca 646
720cf80f 647 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 648
196565d4
SB
6492011-04-04 Steven Bosscher <steven@gcc.gnu.org>
650
b77f9eab
SB
651 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
652 (expr_equiv_p): Remove.
653 (insert_set_in_table): Look at <dest, src> pair instead of expr.
654 (hash_scan_set): Update call to insert_set_in_table.
655 (dump_hash_table): Dump <dest, src> pair.
656 (lookup_set): Simplify. Lookup <dest, src> pair.
657 (compute_transp): Remove, fold heavily simplified code into...
658 (compute_local_properties): ...here. Expect COMP and TRANSP
659 unconditionally.
660 (find_avail_set): Take set directly from struct expr.
661 (find_bypass-set): Likewise.
662 (bypass_block): Likewise.
663 (cprop_insn): Likewise. Remove redundant INSN_P test.
664
384d7a55
SB
665 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
666 checks on form of COND from find_implicit_sets to here.
667 (find_implicit_sets): Cleanup control flow. Split critical edges
668 if it exposes implicit sets. Allocate/resize implicit_sets as
669 necessary.
670 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
671 changed something. Run df_analyze after find_implicit_sets if any
672 edges were split. Do not allocate implicit_sets here.
673
3084ce69
SB
674 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
675 (gcse_obstack): Renamed to cprop_obstack.
676 (GNEW, GNEWVEC, GNEWVAR): Remove.
677 (gmalloc): Remove.
678 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
679 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
680 (gcse_alloc): Likewise, and rename to cprop_alloc.
681 (alloc_gcse_men, free_gcse_mem): Remove.
682 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
683 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
684 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
685
196565d4
SB
686 * cprop.c (oprs_not_set_p): Remove.
687 (mark_set, mark_clobber): Remove.
688 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
689 (reg_not_set_p): New function.
690 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
691 (cprop_insn): Likewise.
692 (cprop_jump): Use FOR_EACH_EDGE.
693
9b69cf83
BS
6942011-04-04 Bernd Schmidt <bernds@codesourcery.com>
695
696 PR bootstrap/48403
697 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
698 (rank_for_schedule): Use scheduled_insns vector instead of
699 last_scheduled_insn.
700 (ok_for_early_queue_removal): Likewise.
701 (queue_to_ready): Search forward in nonscheduled_insns_begin if
702 we have a dbg_cnt.
703 (choose_ready): Likewise.
704 (commit_schedule): Use VEC_iterate.
705 (schedule_block): Initialize nonscheduled_insns_begin. If we have
706 a dbg_cnt, use it and ensure the first insn is in the ready list.
707 (haifa_sched_init): Allocate scheduled_insns.
708 (sched_extend_ready_list): Don't allocate it; reserve space.
709 (haifa_sched_finish): Free it.
710
24f48c2f
JM
7112011-04-04 Joseph Myers <joseph@codesourcery.com>
712
713 * optc-gen.awk: Always remove type from Variable entry before
714 recording in var_seen.
715
8effe856
EB
7162011-04-04 Eric Botcazou <ebotcazou@adacore.com>
717
718 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
719 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
720 call to tidy_fallthru_edges.
721
413519ae
JM
7222011-04-04 Joseph Myers <joseph@codesourcery.com>
723
724 * doc/options.texi (ToLower): Document.
3729983c 725 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
726 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
727 * opts.h (cl_option): Add cl_tolower field.
728 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
729 arguments with lowercase strings.
730 * config/rx/rx.opt (mcpu=): Add ToLower.
731 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
732 argument.
733
7d34a1b0
RS
7342011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
735
736 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
737
c30e7434
RS
7382011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
739
740 * config/vax/vax.c: Include reload.h.
741
112a861d
AS
7422011-04-04 Anatoly Sokolov <aesok@post.ru>
743
744 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
745 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
746 (sparc_preferred_reload_class): New function.
747
e8c6bb74
JJ
7482011-04-04 Jakub Jelinek <jakub@redhat.com>
749
2aeaa366 750 PR debug/48401
e8c6bb74
JJ
751 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
752 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
753
2c081caf
NF
7542011-04-03 Nathan Froyd <froydnj@codesourcery.com>
755
756 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
757 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
758
53802f27
AS
7592011-04-03 Anatoly Sokolov <aesok@post.ru>
760
761 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
762 (ASM_OUTPUT_ALIGNED_BSS): Define.
763
e89964e3
MM
7642011-04-03 Michael Matz <matz@suse.de>
765
766 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
767 and next_slot members.
768 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
769 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
770 (lto_streamer_cache_append): Declare.
771 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
772 unsigned index, remove offset parameter, ensure that we append
773 or update existing entries.
774 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
775 parameter, update next_slot for append.
776 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
777 parameter.
778 (lto_streamer_cache_insert_at): Likewise.
779 (lto_streamer_cache_append): New function.
780 (lto_streamer_cache_lookup): Use unsigned index.
781 (lto_streamer_cache_get): Likewise.
782 (lto_record_common_node): Don't test tree_node_can_be_shared.
783 (preload_common_node): Adjust call to lto_streamer_cache_insert.
784 (lto_streamer_cache_delete): Don't free offsets member.
785 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
786 (lto_output_string_with_length): Use lto_output_data_stream.
787 (lto_output_tree_header): Remove ix parameter, don't write it.
788 (lto_output_builtin_tree): Likewise.
789 (lto_write_tree): Adjust callers to above, don't track and write
790 offset, write unsigned index.
791 (output_unreferenced_globals): Don't emit all global vars.
792 (write_global_references): Use unsigned indices.
793 (lto_output_decl_state_refs): Likewise.
794 (write_symbol): Likewise.
795 * lto-streamer-in.c (lto_input_chain): Move earlier.
796 (input_function): Use unsigned index.
797 (input_alias_pairs): Don't read and then ignore all global vars.
798 (lto_materialize_tree): Remove ix_p parameter, don't read index,
799 don't pass it back, use lto_streamer_cache_append.
800 (lto_register_var_decl_in_symtab): Use unsigned index.
801 (lto_register_function_decl_in_symtab): Likewise.
802 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
803 index.
804 (lto_get_builtin_tree): Don't read index, use
805 lto_streamer_cache_append.
806 (lto_read_tree): Adjust call to lto_materialize_tree.
807
808 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
809 don't use function calls in arguments to MIN.
810
811 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
812 twice.
813
814 * gimple.c (gimple_type_leader_entry): Mark deletable.
815
b9a5b5b2
AM
8162011-04-03 Alan Modra <amodra@gmail.com>
817
818 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
819
ac6a641b
MM
8202011-04-03 Michael Matz <matz@suse.de>
821
822 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
823 an integer.
824 * tree.h (tree_decl_non_common.vindex): Adjust comment.
825
0038d4e0
MM
8262011-04-03 Michael Matz <matz@suse.de>
827
e9c18386 828 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
829 * gimple-fold.c (canonicalize_constructor_val): Accept being called
830 without function context.
831 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
832 current_function_decl and cfun.
833
91f2fae8
MM
8342011-04-03 Michael Matz <matz@suse.de>
835
836 * tree.c (decl_init_priority_insert): Don't create entry for
837 default priority.
838 (decl_fini_priority_insert): Ditto.
839 (fields_compatible_p, find_compatible_field): Remove.
840 * tree.h (fields_compatible_p, find_compatible_field): Remove.
841 * gimple.c (gimple_compare_field_offset): Adjust block comment.
842
da29e070
EB
8432011-04-03 Eric Botcazou <ebotcazou@adacore.com>
844
845 * combine.c (try_combine): Remove useless local variable.
846
4979c28b 8472011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 848 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
849
850 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
851 non-variable offsets and compare the remaining bases of the two
852 accesses instead of looking for exact same data-ref.
853
b4ddcaee
KT
8542011-04-02 Kai Tietz <ktietz@redhat.com>
855
f90298e1
KT
856 PR target/48416
857 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
858
b4ddcaee
KT
859 * i386.c (ix86_is_msabi_thiscall): New helper function.
860 (ix86_is_type_thiscall): New helper function.
861 (ix86_comp_type_attributes): Handle thiscall for method-functions
862 special.
863 (init_cumulative_args): Likewise.
864 (find_drap_reg): Likewise.
865 (ix86_static_chain): Likewise.
866 (x86_this_parameter): Likewise.
867 (x86_output_mi_thunk): Likewise.
868
2a9d769a 8692011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
870 Nicolas Setton <setton@adacore.com>
871 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
872
873 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
874 (add_gnat_descriptive_type_attribute): New function.
875 (gen_array_type_die): Call it.
876 (gen_enumeration_type_die): Likewise.
877 (gen_struct_or_union_type_die): Likewise.
878 (modified_type_die): Likewise.
879 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
880 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
881 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
882
15a03a11
JJ
8832011-04-01 Jakub Jelinek <jakub@redhat.com>
884
885 PR bootstrap/48148
886 * dwarf2out.c (resolve_addr): Don't call force_decl_die
887 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
888
889 Revert:
890 2011-03-17 Richard Guenther <rguenther@suse.de>
891
892 PR bootstrap/48148
893 * lto-cgraph.c (input_overwrite_node): Clear the abstract
894 origin for decls in other ltrans units.
895 (input_varpool_node): Likewise.
896
19228b93
JJ
8972011-04-01 Jakub Jelinek <jakub@redhat.com>
898
899 PR middle-end/48335
900 * expr.c (expand_assignment): Handle all possibilities
901 if TO_RTX is CONCAT.
e9c18386 902 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
903 (store_split_bit_field): If SUBREG_REG (op0) or
904 op0 itself has smaller mode than word, return it
905 for offset 0 and const0_rtx for out-of-bounds stores.
906 If word is const0_rtx, skip it.
907
88cb339e
N
9082011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
909
910 * config/h8300/h8300.c (print_operand_address): Rename to...
911 (h8300_print_operand_address): ...this. Make static. Adjust comments.
912 Call h8300_print_operand and h8300_print_operand_address instead of
913 print_operand and print_operand_address. Declare.
914 (print_operand): Renake to...
915 (h8300_print_operand): ...this. Make static. Adjust comments.
916 Call h8300_print_operand instead of print_operand. Declare.
917 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
918 (h8300_register_move_cost): Likewise.
919 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
920 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
921 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
922 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
923 * config/h8300/h8300-protos.h (print_operand): Delete.
924 (print_operand_address): Delete.
925
756d6ee9
RH
9262011-04-01 Richard Henderson <rth@redhat.com>
927
928 PR 48400
929 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
930 in strict mode before dwarf4. Re-order tests to early out
931 before switching sections.
932
ceaaaeab
NF
9332011-04-01 Nathan Froyd <froydnj@codesourcery.com>
934
935 * config/h8300/constraints.md: New file.
936 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
937 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
938 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
939 * config/h8300/predicates.md (bit_operand): Likewise.
940 (incdec_operand): Use satisfies_constraint_M and
941 satisfies_constraint_O. Don't use C code block.
942 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
943 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
944 (compute_mov_length): Use satisfies_constraint_G.
945 (fix_bit_operand): Use satisfies_constraint_U.
946 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
947 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
948 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
949 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
950 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
951 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
952 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
953 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
954 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
955 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
956 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
957 (EXTRA_MEMORY_CONSTRAINT): Delete.
958
08ae38e0
AP
9592011-04-01 Andrew Pinski <pinskia@gmail.com>
960 Michael Meissner <meissner@linux.vnet.ibm.com>
961
962 PR target/48262
963 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
964 operands, as per the specifications.
965
966 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
967 (vec_extract_evenv4sf): Ditto.
968 (vec_extract_evenv8hi): Ditto.
969 (vec_extract_evenv16qi): Ditto.
970 (vec_extract_oddv4si): Ditto.
971
bdb0b0f6
MW
9722011-03-31 Mark Wielaard <mjw@redhat.com>
973
974 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
975 high_pc attribute if the CU has no associated code. Only output
976 DW_AT_entry_pc for CU if not generating strict dwarf and
977 dwarf_version < 4.
978
722279e4
BS
9792011-04-01 Bernd Schmidt <bernds@codesourcery.com>
980
981 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
982 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
983 out of ...
984 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
985 * final.c (final_start_function): Call the new function rather
986 than using a NULL argument for dwarf2out_frame_debug.
987
c5dd277d
BS
988 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
989 that contains the prologue.
990
ec4efea9
BS
991 * haifa-sched.c (queue_insn): New arg REASON. All callers
992 changed. Print it in debugging output.
993
2a6a0d80
BS
994 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
995
86014d07
BS
996 * sched-ebb.c (begin_schedule_ready): Remove second argument.
997 Split most of the code into...
998 (begin_move_insn): ... here. New function.
999 (ebb_sched_info): Add a pointer to it.
1000 * haifa-sched.c (scheduled_insns): New static variable.
1001 (sched_extend_ready_list): Allocate it.
1002 (schedule_block): Use it to record the order of scheduled insns.
1003 Perform RTL changes to move insns only after all scheduling
1004 decisions have been made.
1005 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
1006 begin_move_insn field.
1007 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1008 * sched-int.h (struct haifa_sched_info): Remove second argument
1009 from begin_schedule_ready hook. Add new member begin_move_insn.
1010 * sched-rgn.c (begin_schedule_ready): Remove second argument.
1011 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
1012
9d701248
BS
1013 * haifa-sched.c (prune_ready_list): New function, broken out of
1014 schedule_block.
1015 (schedule_block): Use it.
1016
1ca1dad5
UW
10172011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1018
1019 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
1020
49568e45
KT
10212011-04-01 Kai Tietz <ktietz@redhat.com>
1022
1023 * config.gcc (*-*-mingw*): Allow as option the
1024 posix threading model.
07c0852e 1025 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
1026 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
1027 definition.
1028 (CPP_SPEC): Add pthread/no-pthread handling.
1029 (LIB_SPEC): Likewise.
1030 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
1031 (LIB_SPEC): Likewise.
1032 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
1033 flag to pass -pthread option for shared libgcc build.
1034 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
1035 for shared libgcc build.
1036 * config/i386/t-mingw-pthread: New file.
1037 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
1038 New define to enable use of library pthread by default.
1039 * config/i386/mingw.opt (pthread): New driver option.
1040 (no-pthread): New driver option.
e9c18386 1041 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
1042 * config/i386/mingw-w64.opt: Likewise.
1043
636b4106
GF
10442011-04-01 Gary Funck <gary@intrepid.com>
1045
1046 * c-decl.c (grokdeclarator): Fix formatting.
1047
f04713ee
RS
10482011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1049
1050 * expr.c (emit_block_move_via_movmem): Use n_generator_args
1051 instead of n_operands.
1052 (set_storage_via_setmem): Likewise.
1053 * optabs.c (maybe_gen_insn): Likewise.
1054 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
1055 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
1056 (mips_expand_builtin_direct): Likewise.
1057 * config/spu/spu.c (expand_builtin_args): Likewise.
1058
b29387ee
RS
10592011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1060
1061 * recog.h (insn_data_d): Add n_generator_args.
1062 * genoutput.c (data): Likewise.
1063 (output_insn_data): Print it.
1064 (max_opno, num_dups): Delete.
1065 (scan_operands): Just fill in "d->operand[...]".
1066 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
1067
e792559a
RS
10682011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1069
1070 * gensupport.h (pattern_stats): New structure.
1071 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
1072 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
1073 (max_operand_1, max_operand_vec): Delete.
1074 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
1075
e8110d6f
NF
10762011-03-31 Nathan Froyd <froydnj@codesourcery.com>
1077
1078 * emit-rtl.c (emit_pattern_after_setloc): New function.
1079 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
1080 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
1081 (emit_pattern_after): New function.
1082 (emit_insn_after, emit_jump_insn_after): Call it.
1083 (emit_call_insn_after, emit_debug_insn_after): Likewise.
1084 (emit_pattern_before_setloc): New function.
1085 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
1086 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
1087 Likewise.
1088 (emit_pattern_before): New function.
1089 (emit_insn_before, emit_jump_insn_before): Call it.
1090 (emit_call_insn_before, emit_debug_insn_before): Likewise.
1091
576f85f1
RH
10922011-03-31 Richard Henderson <rth@redhat.com>
1093
1094 * dwarf2out.c (dw_separate_line_info_ref): Remove.
1095 (dw_separate_line_info_entry): Remove.
1096 (enum dw_line_info_opcode): New.
1097 (dw_line_info_entry): Use it.
1098 (dw_line_info_table, dw_line_info_table_p): New.
1099 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
1100 (line_info_table, line_info_label_num): Remove.
1101 (line_info_table_in_use): Remove.
1102 (separate_line_info_table): Remove.
1103 (separate_line_info_table_allocated): Remove.
1104 (separate_line_info_table_in_use): Remove.
1105 (LINE_INFO_TABLE_INCREMENT): Remove.
1106 (line_info_label_num): New.
1107 (cur_line_info_table): New.
1108 (text_section_line_info, cold_text_section_line_info): New.
1109 (separate_line_info): New.
1110 (SEPARATE_LINE_CODE_LABEL): Remove.
1111 (print_dwarf_line_table): Remove.
1112 (debug_dwarf): Don't dump it.
1113 (output_one_line_info_table): New.
1114 (output_line_info): Use it.
1115 (new_line_info_table): New.
1116 (set_cur_line_info_table): New.
1117 (dwarf2out_switch_text_section): Use it.
1118 (dwarf2out_begin_function): Likewise.
1119 (push_dw_line_info_entry): New.
1120 (dwarf2out_source_line): Rewrite for new line info tables.
1121 (dwarf2out_init): Remove dead initailizations.
1122
300d83d9
JM
11232011-03-31 Joseph Myers <joseph@codesourcery.com>
1124
1125 * opts.h (cl_option): Add comments to fields. Add bit-fields for
1126 various flags.
1127 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
1128 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
1129 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
1130 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
1131 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
1132 * opt-functions.awk (flag_init, switch_bit_fields): New.
1133 (switch_flags): Don't handle flags moved to bit-fields. Don't
1134 generate CL_MISSING_OK or CL_SAVE.
1135 * optc-gen.awk: Update to generate bit-field output as well as
1136 flags field.
1137 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
1138 bit-field instead of CL_REJECT_DRIVER flag.
1139 * opts-common.c (generate_canonical_option,
1140 decode_cmdline_option): Use bit-fields instead of CL_* flags.
1141 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
1142 instead of CL_REJECT_NEGATIVE flag.
1143 * toplev.c (print_switch_values): Use cl_report bit-field instead
1144 of CL_REPORT flag.
1145
d4d73ce2
EB
11462011-03-31 Eric Botcazou <ebotcazou@adacore.com>
1147
1148 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
1149 a zero minimum index only if it is redundant.
1150
b8faca75
VM
11512011-03-31 Vladimir Makarov <vmakarov@redhat.com>
1152
1153 PR rtl-optimization/48381
1154 * ira-color.c (assign_hard_reg): Use hard reg set intersection
1155 instead of ira_class_hard_reg_index for calculating conflicting
1156 hard registers.
1157
7d11cebe
SB
11582011-03-31 Steven Bosscher <steven@gcc.gnu.org>
1159
1160 * cprop.c: Clean up hash table building.
1161 (reg_avail_info): Remove.
1162 (oprs_available_p): Remove.
1163 (record_last_reg_set_info): Remove.
1164 (record_last_set_info): Remove.
1165 (reg_available_p): New function.
1166 (gcse_constant_p): Do not treat unfolded conditions as constants.
1167 (make_set_regs_unavailable): New function.
1168 (hash_scan_set): Simplify with new reg_available_p.
1169 (compute_hash_table_work): Traverse insns stream only once.
1170 Do not compute reg_avail_info. Traverse insns in reverse order.
1171 Record implicit sets after recording explicit sets from the block.
1172
98faf84f
MM
11732011-03-31 Michael Matz <matz@suse.de>
1174
e9c18386 1175 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 1176
f52d97da
AS
11772011-03-31 Anatoly Sokolov <aesok@post.ru>
1178
1179 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
1180 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
1181 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1182 (h8300_mode_dependent_address_p): New function.
1183 (h8300_get_index): Make static.
1184
e16b6fd0
JL
11852011-03-31 Jeff Law <law@redhat.com>
1186
10c51983
JL
1187 * reload1.c (elimination_effects): Fix typo in recent change.
1188
e9c18386 1189 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
1190 typo potentially leading to null pointer dereference.
1191
1192 * caller-save.c (new_saved_hard_reg): Eliminate return value.
1193 (setup_save_areas): Corresponding changes to avoid useless
1194 assignments.
1195
1196 * jump.c (reversed_comparison_code_parts): Avoid successive return
1197 statements when REVERSE_CONDITION is defined.
1198
1199 * expr.c (expand_assignment): Avoid useless assignments.
1200 (expand_expr_real_1): Likewise.
1201 (expand_expr_real_2): Avoid useless statements.
1202
1203 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
1204
1205 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
1206
1207 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
1208 statements.
1209
1210 * stmt.c (expand_expr_stmt): Avoid useless assignment.
1211
eb1eb914
JM
12122011-03-31 Joseph Myers <joseph@codesourcery.com>
1213
1214 PR target/47109
1215 * doc/tm.texi.in (TARGET_VERSION): Remove.
1216 * doc/tm.texi: Regenerate.
1217 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
1218 * collect2.c (main): Don't use TARGET_VERSION.
1219 * mips-tdump.c (main): Don't use TARGET_VERSION.
1220 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 1221 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
1222 * config/rs6000/vxworksae.h: Remove.
1223 * config/alpha/alpha.h (TARGET_VERSION): Remove.
1224 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
1225 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
1226 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
1227 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
1228 * config/arm/arm.h (TARGET_VERSION): Remove.
1229 * config/arm/coff.h (TARGET_VERSION): Remove.
1230 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
1231 * config/arm/elf.h (TARGET_VERSION): Remove.
1232 * config/arm/freebsd.h (TARGET_VERSION): Remove.
1233 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
1234 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
1235 * config/arm/pe.h (TARGET_VERSION): Remove.
1236 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
1237 * config/arm/semi.h (TARGET_VERSION): Remove.
1238 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
1239 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
1240 * config/arm/vxworks.h (TARGET_VERSION): Remove.
1241 * config/avr/avr.h (TARGET_VERSION): Remove.
1242 * config/bfin/bfin.h (TARGET_VERSION): Remove.
1243 * config/fr30/fr30.h (TARGET_VERSION): Remove.
1244 * config/frv/frv.h (TARGET_VERSION): Remove.
1245 * config/h8300/h8300.h (TARGET_VERSION): Remove.
1246 * config/i386/cygwin.h (TARGET_VERSION): Remove.
1247 * config/i386/darwin.h (TARGET_VERSION): Remove.
1248 * config/i386/darwin64.h (TARGET_VERSION): Remove.
1249 * config/i386/djgpp.h (TARGET_VERSION): Remove.
1250 * config/i386/freebsd.h (TARGET_VERSION): Remove.
1251 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
1252 * config/i386/gnu.h (TARGET_VERSION): Remove.
1253 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
1254 * config/i386/i386elf.h (TARGET_VERSION): Remove.
1255 * config/i386/linux.h (TARGET_VERSION): Remove.
1256 * config/i386/linux64.h (TARGET_VERSION): Remove.
1257 * config/i386/lynx.h (TARGET_VERSION): Remove.
1258 * config/i386/mingw32.h (TARGET_VERSION): Remove.
1259 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
1260 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
1261 * config/i386/netware.h (TARGET_VERSION): Remove.
1262 * config/i386/nto.h (TARGET_VERSION): Remove.
1263 * config/i386/openbsd.h (TARGET_VERSION): Remove.
1264 * config/i386/vxworks.h (TARGET_VERSION): Remove.
1265 * config/ia64/elf.h (TARGET_VERSION): Remove.
1266 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
1267 * config/ia64/hpux.h (TARGET_VERSION): Remove.
1268 * config/ia64/linux.h (TARGET_VERSION): Remove.
1269 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
1270 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
1271 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1272 * config/lm32/lm32.h (TARGET_VERSION): Remove.
1273 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
1274 * config/m32c/m32c.h (TARGET_VERSION): Remove.
1275 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
1276 * config/m32r/m32r.h (TARGET_VERSION): Remove.
1277 * config/m68k/linux.h (TARGET_VERSION): Remove.
1278 * config/m68k/m68k.h (TARGET_VERSION): Remove.
1279 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
1280 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
1281 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
1282 * config/mep/mep.h (TARGET_VERSION): Remove.
1283 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
1284 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1285 * config/mips/iris6.h (MACHINE_TYPE): Remove.
1286 * config/mips/linux.h (TARGET_VERSION): Remove.
1287 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
1288 * config/mips/vxworks.h (TARGET_VERSION): Remove.
1289 * config/mmix/mmix.h (TARGET_VERSION): Remove.
1290 * config/mn10300/linux.h (TARGET_VERSION): Remove.
1291 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
1292 * config/pa/pa.h (TARGET_VERSION): Remove.
1293 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
1294 * config/picochip/picochip.h (TARGET_VERSION): Remove.
1295 * config/rs6000/aix.h (TARGET_VERSION): Remove.
1296 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
1297 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
1298 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
1299 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
1300 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
1301 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
1302 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
1303 * config/rs6000/linux.h (TARGET_VERSION): Remove.
1304 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
1305 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
1306 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
1307 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
1308 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
1309 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
1310 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
1311 * config/s390/linux.h (TARGET_VERSION): Remove.
1312 * config/s390/s390.h (TARGET_VERSION): Remove.
1313 * config/s390/tpf.h (TARGET_VERSION): Remove.
1314 * config/score/score.h (TARGET_VERSION): Remove.
1315 * config/sh/linux.h (TARGET_VERSION): Remove.
1316 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
1317 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
1318 * config/sh/sh.h (TARGET_VERSION): Remove.
1319 * config/sh/sh64.h (TARGET_VERSION): Remove.
1320 * config/sh/superh.h (TARGET_VERSION): Remove.
1321 * config/sh/vxworks.h (TARGET_VERSION): Remove.
1322 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
1323 * config/sparc/linux.h (TARGET_VERSION): Remove.
1324 * config/sparc/linux64.h (TARGET_VERSION): Remove.
1325 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
1326 TARGET_NAME32, TARGET_NAME): Remove.
1327 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
1328 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
1329 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
1330 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
1331 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
1332 * config/spu/spu.h (TARGET_VERSION): Remove.
1333 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
1334 * config/v850/v850.h (TARGET_VERSION): Remove.
1335 * config/vax/linux.h (TARGET_VERSION): Remove.
1336 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
1337 * config/xtensa/elf.h (TARGET_VERSION): Remove.
1338 * config/xtensa/linux.h (TARGET_VERSION): Remove.
1339
ace31bca
EB
13402011-03-31 Eric Botcazou <ebotcazou@adacore.com>
1341
1342 PR target/48142
1343 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
1344 frame-related from frame-unrelated adjustments to the stack pointer.
1345
76f9db36
JJ
13462011-03-31 Jakub Jelinek <jakub@redhat.com>
1347
1348 * common.opt (fdebug-types-section): Move earlier.
1349 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
1350
b7826465
AT
13512011-03-31 Andreas Tobler <andreast@fgznet.ch>
1352
1353 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
1354 var.
1355
1290e54c
NF
13562011-03-30 Nathan Froyd <froydnj@codesourcery.com>
1357
1358 * tree.h (CASE_CHAIN): Define.
1359 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
1360 (gimple_redirect_edge_and_branch): Likewise.
1361
bddc98e1
VM
13622011-03-30 Vladimir Makarov <vmakarov@redhat.com>
1363
1364 PR middle-end/48367
1365 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
1366 calculation.
1367
c865e437
JL
13682011-03-30 Jeff Law <law@redhat.com>
1369
b3750213 1370 * PR bootstrap/48371
c865e437
JL
1371 * reload1.c (reload): Fix botch in last change.
1372
1373 * reload.h (struct reload): Fix typo introduced in last change.
1374
2cdf9574
JM
13752011-03-30 Joseph Myers <joseph@codesourcery.com>
1376
1377 * config/arm/arm.opt (mhard-float, msoft-float): Mark
1378 Undocumented. Remove help text.
1379 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
1380 -mhard-float.
1381
666a21a2
JM
13822011-03-30 Joseph Myers <joseph@codesourcery.com>
1383
1384 * doc/options.texi (NegativeAlias): Document.
1385 (Alias): Mention NegativeAlias.
1386 * opt-functions.awk: Handle NegativeAlias.
e9c18386 1387 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
1388 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
1389 * opts.h (CL_NEGATIVE_ALIAS): Define.
1390 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
1391 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
1392 OPT_mspe_.
1393 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
1394 Alias entries.
1395 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
1396 mno-spe and mno-isel instead of mspe=no and -misel=no.
1397
0fa4e351
MW
13982011-03-29 Mark Wielaard <mjw@redhat.com>
1399
1400 * common.opt (fdebug-types-section): New flag.
1401 * doc/invoke.texi: Document new -fno-debug-types-section flag.
1402 * dwarf2out.c (use_debug_types): New define.
1403 (struct die_struct): Mark die_id with GTY desc use_debug_types.
1404 (print_die): Guard output of type unit signatures using
1405 use_debug_types.
1406 (build_abbrev_table): Replace assert of dwarf_version >= 4
1407 with assert on use_debug_types.
1408 (size_of_die): Likewise.
1409 (unmark_dies): Likewise.
1410 (value_format): Decide AT_ref_external form on use_debug_types.
1411 (output_die): Replace dwarf_version version check guard with
1412 use_debug_types where appropriate.
1413 (modified_type_die): Likewise.
1414 (gen_reference_type_die): Likewise.
1415 (dwarf2out_start_source_file): Likewise.
1416 (dwarf2out_end_source_file): Likewise.
1417 (prune_unused_types_walk_attribs): Likewise.
1418 (dwarf2out_finish): Likewise.
1419
4648deb4
VM
14202011-03-30 Vladimir Makarov <vmakarov@redhat.com>
1421
1422 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
1423
4f431835
RS
14242011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1425
1426 PR rtl-optimization/48332
1427 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
1428 mode of input operand N and modeN to its actual mode.
1429
f2034d06
JL
14302011-03-30 Jeff Law <law@redhat.com>
1431
1432 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
1433 define accessor macro.
1434 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
1435 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
1436 (reg_equiv_init): Likewise.
1437 (reg_equivs_size): New variable.
1438 (reg_equiv_init_size): Remove.
1439 (allocate_initial_values): Move prototype to here from....
1440 * integrate.h (allocate_initial_values): Remove prototype.
1441 * integrate.c: Include reload.h.
1442 (allocate_initial_values): Corresponding changes.
1443 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
1444 (fix_reg_equiv_init, no_equiv): Corresponding changes.
1445 (update_equiv_regs): Corresponding changes.
1446 (ira): Corresponding changes.
1447 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
1448 (push_secondary_reload): Corresponding changes.
1449 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
1450 (make_memloc, find_reloads_address): Corresponding changes.
1451 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
1452 (find_reloads_address_1): Corresponding changes.
1453 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
1454 (refers_to_regno_for_reload_p): Corresponding changes.
1455 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
1456 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
1457 * reload1.c: Include ggc.h.
1458 (grow_reg_equivs): New function.
1459 (replace_pseudos_in, reload): Corresponding changes.
1460 (calculate_needs_all_insns, alter_regs): Corresponding changes.
1461 (eliminate_regs_1, elimination_effects): Corresponding changes.
1462 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
1463 (delete_output_reload): Likewise.
1464 * caller-save.c (mark_referenced_regs): Corresponding changes.
1465 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
1466 * frv/predicates.md (frv_load_operand): Corresponding changes.
1467 * microblaze/microblaze.c (double_memory_operand): Corresponding
1468 changes.
1469 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
1470 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 1471 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
1472 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
1473 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
1474 changes.
1475 * pa/pa.c (emit_move_sequence): Corresponding changes.
1476 * vax/vax.c (nonindexed_address_p): Corresponding changes.
1477
159b81b0
RS
14782011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1479
1480 PR target/47551
1481 * config/arm/arm.c (coproc_secondary_reload_class): Handle
1482 structure modes. Don't check neon_vector_mem_operand for
1483 vector or structure modes.
1484
a6217191
RS
14852011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
1486 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1487
1488 PR target/43590
1489 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
1490 operand 1 and reshuffle the operands to match.
1491 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
1492
bd837408
CS
14932011-03-30 Christian Schüler <cschueler@gmx.de>
1494
6955d771 1495 PR driver/48208
bd837408 1496 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 1497
6955d771 1498 PR driver/48260
bd837408
CS
1499 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
1500 handler function.
1501 * config/darwin.opt: Added '-arch' option.
1502
e9c0470a
NC
15032011-03-30 Nick Clifton <nickc@redhat.com>
1504
1505 * config/rx/rx.md: Add peepholes and patterns to combine
1506 extending loads and simple arithmetic instructions.
1507 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
1508 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
1509 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 1510 modes to use pre-decrement and post-increment addressing.
e9c18386 1511 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 1512 addresses.
e9c18386
UB
1513 (rx_print_operand): Add support for %Q. Fix handling of %Q.
1514 (rx_memory_move_cost): Adjust cost of stores.
1515 (rx_adjust_insn_length): New function.
e9c0470a 1516
8a87e7ab
JJ
15172011-03-30 Jakub Jelinek <jakub@redhat.com>
1518
1519 PR c/48305
1520 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
1521 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
1522 matching arg00/arg01 types.
1523
12486e03
EB
15242011-03-30 Eric Botcazou <ebotcazou@adacore.com>
1525
1526 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
1527 last_location to UNKNOWN_LOCATION.
1528
0b99eef6
L
15292011-03-30 H.J. Lu <hongjiu.lu@intel.com>
1530
1531 PR target/48349
1532 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
1533 FLOAT_SSE_REGS.
1534
023592aa
JM
15352011-03-30 Joseph Myers <joseph@codesourcery.com>
1536 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1537
1538 PR bootstrap/48337
1539 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
1540 Init(PROCESSOR_V7).
1541 (sparc_cpu): Likewise.
1542 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
1543 PROCESSOR_V7.
1544
ad3b266b
VM
15452011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1546
1547 PR target/48336
1548 PR middle-end/48342
1549 PR rtl-optimization/48345
1550 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
1551 hard regs for given mode from profitable regs when doing secondary
1552 allocation.
1553
633c9126
JL
15542011-03-29 Jeff Law <law@redhat.com>
1555
1556 PR bootstrap/48327
1557 * tree-ssa-threadupdate.c (struct redirection_data): Remove
1558 do_not_duplicate field.
1559 (lookup_redirection_data): Corresponding changes.
1560 (create_duplicates): Always create a template block.
1561 (redirect_edges): Remove code which reused the original block
1562 when it was going to become unreachable code.
1563 (thread_block): Don't set do_not_duplicate field.
1564
eb50f63a
JM
15652011-03-29 Joseph Myers <joseph@codesourcery.com>
1566
1567 * lto-opts.c (register_user_option_p, lto_register_user_option):
1568 Make type argument unsigned.
1569 * lto-streamer.h (lto_register_user_option): Make type argument
1570 unsigned.
1571 * opth-gen.awk: Make CL_* macros unsigned.
1572 * opts-common.c (find_opt): Make lang_mask argument unsigned.
1573 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
1574 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
1575 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
1576 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
1577 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
1578 (find_opt): Make lang_mask argument unsigned.
1579
76763a6d
VM
15802011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1581
1582 PR rtl-optimization/48331
1583 PR rtl-optimization/48334
1584 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
1585 for any used algorithm.
1586
5c82436e
VM
15872011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1588
1589 * ira-conflicts.c (build_object_conflicts): Add unused attribute
1590 to parent_max.
1591
7a81008b
UB
15922011-03-29 Uros Bizjak <ubizjak@gmail.com>
1593
1594 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
1595 (alpha_option_override): Don't set alpha_sr_alias_set.
1596 (emit_frame_store_1): Use gen_frame_mem rather than calling
1597 set_mem_alias_set.
1598 (alpha_expand_epilogue): Ditto.
1599
86c8d1f6
IR
16002011-03-29 Ira Rosen <ira.rosen@linaro.org>
1601
1602 PR tree-optimization/48290
1603 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
1604 vectorization, check that relevant phis in the basic block after
1605 the inner loop are really inner loop's exit phis.
1606
0d12220f
RS
16072011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
1608
e8cf17e7 1609 PR debug/48190
0d12220f
RS
1610 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
1611 (cached_dw_loc_list_def): New structure.
1612 (cached_dw_loc_list): New typedef.
1613 (cached_dw_loc_list_table): New variable.
1614 (cached_dw_loc_list_table_hash): New function.
1615 (cached_dw_loc_list_table_eq): Likewise.
1616 (add_location_or_const_value_attribute): Take a bool cache_p.
1617 Cache the list when the parameter is true.
1618 (gen_formal_parameter_die): Update caller.
1619 (gen_variable_die): Likewise.
1620 (dwarf2out_finish): Likewise.
1621 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
1622 while generating debug info for the decl.
1623 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
1624 (dwarf2out_init): Initialize cached_dw_loc_list_table.
1625 (resolve_addr): Cache the result of resolving a chain of
1626 location lists.
1627
1756cb66
VM
16282011-03-28 Vladimir Makarov <vmakarov@redhat.com>
1629
1630 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
1631 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 1632
1756cb66
VM
1633 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
1634 after regstat_init_n_sets_and_refs.
1635
1636 * ira.c: Add more comments at the top.
1637 (setup_stack_reg_pressure_class, setup_pressure_classes):
1638 Add comments how we compute the register pressure classes.
1639 (setup_allocno_and_important_classes): Add more comments.
1640 (setup_class_translate_array, reorder_important_classes)
1641 (setup_reg_class_relations): Add comments.
1642
1643 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
1644 start of the file.
1645
1646 * ira-color.c: Add 2011 to the Copyright line.
1647 (assign_hard_reg): Add more comments.
1648 (improve_allocation): Ditto.
1649
1650 * ira-costs.c: Add 2011 to the Copyright line.
1651 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
1652 comments.
1653 (setup_regno_cost_classes_by_mode): Ditto.
1654
1655 Initial patches from ira-improv branch:
1656
1657 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1658
1659 * ira-build.c: (ira_create_object): Remove initialization of
1660 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
1661 (ira_create_allocno): Remove initialization of
1662 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
1663 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
1664 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1665 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
1666 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
1667 Initialize ALLOCNO_ADD_DATA.
1668 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
1669 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
1670 ALLOCNO_REG.
1671 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
1672 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
1673
1674 * ira.c (ira_reallocate): Remove.
1675 (setup_pressure_classes): Call
1676 ira_init_register_move_cost_if_necessary. Use
1677 ira_register_move_cost instead of ira_get_register_move_cost.
1678 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
1679 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
1680
1681 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
1682 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1683 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
1684 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
1685 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
1686 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
1687 Fix formatting.
7a81008b 1688 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
1689 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1690 (struct allocno_color_data): New.
1691 (allocno_color_data_t): New typedef.
1692 (allocno_color_data): New definition.
1693 (ALLOCNO_COLOR_DATA): New macro.
1694 (struct object_color_data): New.
1695 (object_color_data_t): New typedef.
1696 (object_color_data): New definition.
1697 (OBJECT_COLOR_DATA): New macro.
1698 (update_copy_costs, calculate_allocno_spill_cost): Call
1699 ira_init_register_move_cost_if_necessary. Use
1700 ira_register_move_cost instead of ira_get_register_move_cost.
1701 (move_spill_restore, update_curr_costs): Ditto.
1702 (allocno_spill_priority): Make it inline.
7a81008b 1703 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
1704 (struct coalesce_data, coalesce_data_t): New.
1705 (allocno_coalesce_data): New definition.
1706 (ALLOCNO_COALESCE_DATA): New macro.
1707 (merge_allocnos, coalesced_allocno_conflict_p): Use
1708 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
1709 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
1710 (coalesce_allocnos): Ditto.
1711 (setup_coalesced_allocno_costs_and_nums): Ditto.
1712 (collect_spilled_coalesced_allocnos): Ditto.
1713 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
1714 (setup_slot_coalesced_allocno_live_ranges): Ditto.
1715 (coalesce_spill_slots): Ditto.
1716 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
1717 free allocno_coalesce_data.
1718
1719 * ira-conflicts.c: Fix formatting.
1720 (process_regs_for_copy): Call
1721 ira_init_register_move_cost_if_necessary. Use
1722 ira_register_move_cost instead of ira_get_register_move_cost.
1723 (build_object_conflicts): Optimize.
1724
1725 * ira-costs.c (record_reg_classes): Optimize. Call
1726 ira_init_register_move_cost_if_necessary. Use
1727 ira_register_move_cost, ira_may_move_in_cost, and
1728 ira_may_move_out_cost instead of ira_get_register_move_cost and
1729 ira_get_may_move_cost.
1730 (record_address_regs): Ditto.
1731 (scan_one_insn): Optimize.
1732 (find_costs_and_classes): Optimize.
1733 (process_bb_node_for_hard_reg_moves): Call
1734 ira_init_register_move_cost_if_necessary. Use
1735 ira_register_move_cost instead of ira_get_register_move_cost.
1736
1737 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
1738 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
1739 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
1740 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
1741 definitions.
1742 (ira_initiate_emit_data, ira_finish_emit_data)
1743 (create_new_allocno): New functions.
7a81008b 1744 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
1745 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
1746 Use ira_register_move_cost instead of ira_get_register_move_cost.
1747
1748 * ira-int.h: Fix some comments.
7a81008b
UB
1749 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
1750 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
1751 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
1752 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
1753 add_data.
1754 (struct ira_allocno): Make mode and aclass a bitfield. Move other
1755 bitfield after mode. Make hard_regno a short int. Make
1756 hard_regno short. Remove first_coalesced_allocno and
1757 next_coalesced_allocno. Move mem_optimized_dest_p,
1758 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
1759 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
1760 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
1761 temp, colorable_p. Add new member add_data.
1762 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
1763 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
1764 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
1765 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
1766 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
1767 (ALLOCNO_ADD_DATA): New macro.
1768 (ira_emit_data_t): New typedef.
1769 (struct ira_emit_data): New. Move mem_optimized_dest_p,
1770 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
1771 from struct ira_allocno.
1772 (ALLOCNO_EMIT_DATA): New macro.
1773 (ira_allocno_emit_data, allocno_emit_reg): New.
1774 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 1775 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
1776 (OBJECT_ADD_DATA): New macro.
1777 (ira_reallocate): Remove.
1778 (ira_initiate_emit_data, ira_finish_emit_data): New.
1779 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
1780 (ira_init_register_move_cost_if_necessary): New.
1781 (ira_object_conflict_iter_next): Merge into
1782 ira_object_conflict_iter_cond.
7a81008b 1783 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66
VM
1784
1785 * ira-live.c: (process_single_reg_class_operands): Call
1786 ira_init_register_move_cost_if_necessary. Use
1787 ira_register_move_cost instead of ira_get_register_move_cost.
1788
1789 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1790
1791 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
1792
1793 * ira-costs.c: Fix formatting.
1794 (cost_classes, cost_classes_num): Remove.
1795 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
1796 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
1797 (cost_classes_del, cost_classes_htab): New.
1798 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
1799 (initiate_regno_cost_classes, setup_cost_classes): New.
1800 (setup_regno_cost_classes_by_aclass): New.
7a81008b 1801 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
1802 (record_reg_classes): Use regno_cost_classes instead of
1803 cost_classes. Move checking opposite operand up.
1804 (record_address_regs): Use regno_cost_classes
1805 instead of cost_classes.
1806 (scan_one_insn): Ditto. Use always general register.
1807 (print_allocno_costs): Use regno_cost_classes instead of
1808 cost_classes.
1809 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
1810 (find_costs_and_classes): Set up cost classes for each registers.
1811 Use also their mode for this. Use regno_cost_classes instead of
1812 cost_classes.
1813 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
1814 cost_classes.
1815 (free_ira_costs, ira_init_costs): Don't use cost_classes.
1816 (ira_costs, ira_set_pseudo_classes): Call
1817 initiate_regno_cost_classes and finish_regno_cost_classes.
1818
1819 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
1820
1821 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
1822
1823 * target.def (ira_cover_classes): Remove.
1824
7a81008b 1825 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
1826
1827 * doc/tm.texi.in: Ditto.
1828
1829 * ira-conflicts.c: Remove mentioning cover classes from the file.
1830 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 1831 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
1832
1833 * targhooks.c (default_ira_cover_classes): Remove.
1834
1835 * targhooks.h (default_ira_cover_classes): Ditto.
1836
1837 * haifa-sched.c: Remove mentioning cover classes from the file.
1838 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1839 ira_pressure_classes and ira_pressure_classes_num instead of
1840 ira_reg_class_cover_size and ira_reg_class_cover. Use
1841 sched_regno_pressure_class instead of sched_regno_cover_class.
1842 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
1843 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1844
1845 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
1846 classes from the file.
1847 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
1848 (struct object_hard_regs, struct object_hard_regs_node): New.
1849 (struct ira_object): New members profitable_hard_regs,
1850 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
1851 (struct ira_allocno): Rename cover_class to aclass. Rename
1852 cover_class_cost and updated_cover_class_cost to class_cost and
1853 updated_class_cost. Remove splay_removed_p and
1854 left_conflict_size. Add new members colorable_p.
1855 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
1856 (ALLOCNO_COLORABLE_P): New macro.
1857 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
1858 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
1859 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
1860 (OBJECT_...): Rename parameter C to O.
1861 (OBJECT_PROFITABLE_HARD_REGS): New macro.
1862 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
1863 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
1864 (struct target_ira_int): New members x_ira_max_memory_move_cost,
1865 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
1866 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
1867 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
1868 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
1869 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
1870 x_ira_reg_class_subunion.
1871 (ira_max_memory_move_cost, ira_max_register_move_cost)
1872 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
1873 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
1874 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 1875 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
1876 (ira_reg_class_union): Rename to ira_reg_class_subunion.
1877 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1878 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1879 (ira_tune_allocno_costs_and_cover_classes): Rename to
1880 ira_tune_allocno_costs.
1881 (ira_debug_hard_regs_forest): New.
1882 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
1883 (ira_object_conflict_iter_next): Fix comments.
7a81008b 1884 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
1885 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
1886 cover_class to aclass.
1887 (ira_allocate_and_accumulate_costs): Ditto.
1888 (ira_allocate_and_set_or_copy_costs): Ditto.
1889
1890 * opts.c (decode_options): Remove ira_cover_class check.
1891
1892 * ira-color.c: Remove mentioning cover classes from the file. Use
1893 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
1894 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
1895 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1896 (splay-tree.h): Remove include.
1897 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
1898 before copy_freq_compare_func.
1899 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
1900 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
1901 New definitions.
1902 (hard_regs_roots, hard_regs_node_vec): Ditto.
1903 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
1904 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
1905 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
1906 (create_new_object_hard_regs_node): Ditto.
1907 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 1908 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
1909 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
1910 Ditto.
1911 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
1912 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
1913 (remove_unused_object_hard_regs_nodes): Ditto.
1914 (enumerate_object_hard_regs_nodes): Ditto.
1915 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
1916 (object_hard_regs_subnode_t): Ditto.
1917 (struct object_hard_regs_subnode): Ditto.
1918 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
1919 (setup_object_hard_regs_subnode_index): Ditto.
1920 (get_object_hard_regs_subnodes_num): Ditto.
1921 (form_object_hard_regs_nodes_forest): Ditto.
1922 (finish_object_hard_regs_nodes_tree): Ditto.
1923 (finish_object_hard_regs_nodes_forest): Ditto.
1924 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 1925 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
1926 (pseudos_have_intersected_live_ranges_p): Rename to
1927 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1928 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
1929 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
1930 (update_copy_costs): Remove assert. Skip cost update if the hard
1931 reg does not belong the class.
1932 (assign_hard_reg): Process only profitable hard regs.
1933 (uncolorable_allocnos_num): Make it scalar.
1934 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
1935 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
1936 and ira_reg_class_max_nregs.
1937 (bucket_allocno_compare_func): Check frequency first.
1938 (sort_bucket): Add compare function as a parameter.
1939 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
1940 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
1941 (push_allocno_to_stack): Rewrite for checking new allocno
1942 colorability.
7a81008b 1943 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
1944 (push_only_colorable): Pass new parameter to sort_bucket.
1945 (push_allocno_to_spill): Remove.
1946 (allocno_spill_priority_compare): Make it inline and rewrite.
1947 (splay_tree_allocate, splay_tree_free): Remove.
1948 (allocno_spill_sort_compare): New function.
1949 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
1950 build and use splay tree. Choose first allocno in uncolorable
1951 allocno bucket to spill. Remove setting spill cost.
1952 (all_conflicting_hard_regs): Remove.
1953 (setup_allocno_available_regs_num): Check only profitable hard
1954 regs. Print info about hard regs nodes.
1955 (setup_allocno_left_conflicts_size): Remove.
1956 (put_allocno_into_bucket): Don't call
7a81008b 1957 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
1958 (improve_allocation): New.
1959 (color_allocnos): Call setup_profitable_hard_regs,
1960 form_object_hard_regs_nodes_forest, improve_allocation,
1961 finish_object_hard_regs_nodes_forest. Setup spill cost.
1962 (print_loop_title): Use pressure classes.
1963 (color_allocnso): Ditto.
1964 (do_coloring): Remove allocation and freeing splay_tree_node_pool
1965 and allocnos_for_spilling.
1966 (ira_sort_regnos_for_alter_reg): Don't setup members
1967 {first,next}_coalesced_allocno.
1968 (color): Remove allocating and freeing removed_splay_allocno_vec.
1969 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
1970 prohibited_class_mode_regs.
1971
1972 * ira-lives.c: Remove mentioning cover classes from the file. Fix
1973 formatting.
1974 (update_allocno_pressure_excess_length): Use pressure classes.
1975 (inc_register_pressure, dec_register_pressure): Check for pressure
1976 class.
1977 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
1978 pressure class. Use ira_reg_class_nregs instead of
1979 ira_reg_class_max_nregs.
1980 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
1981 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
1982 (single_reg_class): Use ira_reg_class_nregs instead of
1983 ira_reg_class_max_nregs.
1984 (process_bb_node_lives): Use pressure classes.
1985
1986 * ira-emit.c: Remove mentioning cover classes from the file. Use
1987 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
1988 (change_loop): Use pressure classes.
1989 (modify_move_list): Call ira_set_allocno_class instead of
1990 ira_set_allocno_cover_class.
1991
1992 * ira-build.c: Remove mentioning cover classes from the file. Use
1993 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
1994 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
1995 ALLOCNO_UPDATED_CLASS_COST instead of
1996 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1997 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
1998 (ira_create_allocno): Remove initialization of
1999 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
2000 ALLOCNO_COLORABLE_P.
2001 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2002 Update conflict regs for the objects.
2003 (create_cap_allocno): Remove assert. Don't propagate
2004 ALLOCNO_AVAILABLE_REGS_NUM.
2005 (ira_free_allocno_costs): New function.
2006 (finish_allocno): Change a part of code into call of
2007 ira_free_allocno_costs.
2008 (low_pressure_loop_node_p): Use pressure classes.
2009 (object_range_compare_func): Don't compare classes.
2010 (setup_min_max_conflict_allocno_ids): Ditto.
2011
2012 * loop-invariant.c: Remove mentioning cover classes from the file.
2013 Use ira_pressure_classes and ira_pressure_classes_num instead of
2014 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
2015 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
2016 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2017 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
2018 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
2019 STACK_REG_COVER_CLASS.
2020 (get_regno_cover_class): Rename to get_regno_pressure_class.
2021 (move_loop_invariants): Initialize and finalize regstat.
2022
2023 * ira.c: Remove mentioning cover classes from the file. Add
2024 comments about coloring without cover classes. Use ALLOCNO_CLASS
2025 instead of ALLOCNO_COVER_CLASS. Fix formatting.
2026 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
2027 setup_class_subset_and_memory_move_costs.
2028 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
2029 (setup_cover_and_important_classes): Rename to
2030 setup_allocno_and_important_classes.
2031 (setup_class_translate_array): New.
2032 (setup_class_translate): Call it for allocno and pressure classes.
2033 (cover_class_order): Rename to allocno_class_order.
2034 (comp_reg_classes_func): Use ira_allocno_class_translate instead
2035 of ira_class_translate.
2036 (reorder_important_classes): Set up ira_important_class_nums.
2037 (setup_reg_class_relations): Set up ira_reg_class_superunion.
2038 (print_class_cover): Rename to print_classes. Add parameter.
2039 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2040 Print pressure classes too.
2041 (find_reg_class_closure): Rename to find_reg_classes. Don't call
2042 setup_reg_subclasses.
7a81008b 2043 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
2044 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2045 (setup_prohibited_class_mode_regs): Use
7a81008b 2046 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
2047 (clarify_prohibited_class_mode_regs): New function.
2048 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
2049 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
2050 (ira_init_once): Initialize them.
2051 (free_register_move_costs): Process them.
2052 (ira_init): Move calls of find_reg_classes and
2053 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
2054 Call clarify_prohibited_class_mode_regs.
2055 (ira_no_alloc_reg): Remove.
2056 (too_high_register_pressure_p): Use pressure classes.
2057
2058 * sched-deps.c: Remove mentioning cover classes from the file.
2059 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
2060 ira_pressure_classes and ira_pressure_classes_num instead of
2061 ira_reg_class_cover_size and ira_reg_class_cover.
2062 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
2063 sched_regno_pressure_class instead of sched_regno_cover_class.
2064 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
2065 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2066
2067 * ira.h: Add 2010 to Copyright.
2068 (ira_no_alloc_reg): Remove external.
2069 (struct target_ira): Rename x_ira_hard_regno_cover_class,
2070 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
2071 x_ira_class_translate to x_ira_hard_regno_allocno_class,
2072 x_ira_allocno_classes_num, x_ira_allocno_classes, and
2073 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
2074 x_ira_pressure_classes, x_ira_pressure_class_translate, and
2075 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
2076 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
2077 x_ira_no_alloc_regs.
7a81008b 2078 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
2079 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
2080 ira_allocno_classes_num and ira_allocno_classes.
2081 (ira_class_translate): Rename to ira_allocno_class_translate.
2082 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
2083 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
2084 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2085 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
2086 (ira_no_alloc_regs): New.
2087
2088 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
2089 classes from the file. Use ALLOCNO_CLASS instead of
2090 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
2091 ALLOCNO_COVER_CLASS_COST.
2092 (regno_cover_class): Rename to regno_aclass.
2093 (record_reg_classes): Use ira_reg_class_subunion instead of
2094 ira_reg_class_union.
2095 (record_address_regs): Check overflow.
2096 (scan_one_insn): Ditto.
7a81008b 2097 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
2098 (print_pseudo_costs): Use REG_N_REFS.
2099 (find_costs_and_classes): Use classes intersected with them on the
2100 1st pass. Check overflow. Use ira_reg_class_subunion instead of
2101 ira_reg_class_union. Use ira_allocno_class_translate and
2102 regno_aclass instead of ira_class_translate and regno_cover_class.
2103 Modify code for finding regno_aclass. Setup preferred classes for
2104 the next pass.
2105 (setup_allocno_cover_class_and_costs): Rename to
2106 setup_allocno_class_and_costs. Use regno_aclass instead of
2107 regno_cover_class. Use ira_set_allocno_class instead of
2108 ira_set_allocno_cover_class.
2109 (init_costs, finish_costs): Use regno_aclass instead of
2110 regno_cover_class.
2111 (ira_costs): Use setup_allocno_class_and_costs instead of
2112 setup_allocno_cover_class_and_costs.
2113 (ira_tune_allocno_costs_and_cover_classes): Rename to
2114 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
2115 by processing objects. Use ira_reg_class_max_nregs instead of
2116 ira_reg_class_nregs.
2117
2118 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
2119
2120 * sched-int.h: Remove mentioning cover classes from the file.
2121 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
2122
2123 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
2124 classes from the file.
2125 (struct reg_pref): Rename coverclass into allocnoclass.
2126 (reg_cover_class): Rename to reg_allocno_class.
2127
7a81008b 2128 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
2129
2130 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
2131
2132 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
2133
2134 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
2135
2136 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
2137
2138 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
2139
2140 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
2141
2142 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
2143
2144 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
2145
2146 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
2147
2148 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
2149 (i386_ira_cover_classes): Ditto.
2150
2151 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
2152
2153 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
2154
2155 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
2156
2157 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
2158
2159 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
2160
2161 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
2162
2163 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
2164 (mips_ira_cover_classes): Ditto.
2165
2166 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
2167
2168 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
2169
2170 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
2171
2172 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
2173
2174 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
2175
2176 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
2177 (IRA_COVER_CLASSES_VSX): Ditto.
2178
2179 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
2180 (rs6000_ira_cover_classes): Ditto.
2181
2182 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
2183
2184 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
2185
2186 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
2187
2188 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
2189
2190 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
2191
2192 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
2193
2194 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
2195
2196 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
2197
2198 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
2199
2200 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
2201
2b80199f
JJ
22022011-03-29 Jakub Jelinek <jakub@redhat.com>
2203
71dae1fe
JJ
2204 PR debug/48253
2205 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
2206 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
2207 dw_fde_unlikely_section_end_label, cold_in_std_section,
2208 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
2209 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
2210 fields.
2211 (output_fde): Use dw_fde_second_{begin,end} if second is
2212 true, otherwise dw_fde_{begin,end}.
2213 (output_call_frame_info): Test dw_fde_second_begin != NULL
2214 instead of dw_fde_switched_sections.
2215 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
2216 fields, initialize new fields. Initialize in_std_section
2217 unconditionally from the first partition.
2218 (dwarf2out_end_epilogue): Don't override dw_fde_end when
2219 dw_fde_second_begin is non-NULL.
2220 (dwarf2out_switch_text_section): Stop initializing removed
2221 dw_fde_struct fields, initialize new fields, initialize
2222 also dw_fde_end here. Set dw_fde_switch_cfi even when
2223 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
2224 (struct var_loc_list_def): Add last_before_switch field.
2225 (arange_table, arange_table_allocated, arange_table_in_use,
2226 ARANGE_TABLE_INCREMENT, add_arange): Removed.
2227 (size_of_aranges): Count !in_std_section and !second_in_std_section
2228 hunks in fdes, instead of looking at arange_table_in_use.
2229 (output_aranges): Add aranges_length argument, don't call
2230 size_of_aranges here. Instead of using aranges_table*
2231 emit ranges for fdes when !in_std_section resp.
2232 !second_in_std_section.
2233 (dw_loc_list): Break ranges crossing section switch.
2234 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 2235 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
2236 (gen_subprogram_die): Don't call add_arange. Use
2237 dw_fde_{begin,end} for first partition and if switched
2238 section dw_fde_second_{begin,end} for the second.
2239 (var_location_switch_text_section_1,
2240 var_location_switch_text_section): New functions.
2241 (dwarf2out_begin_function): Initialize cold_text_section even
2242 when function_section () isn't text_section.
2243 (prune_unused_types): Don't walk arange_table.
2244 (dwarf2out_finish): Don't needlessly test
2245 flag_reorder_blocks_and_partition when testing cold_text_section_used.
2246 If info_section_emitted, call size_of_aranges and if it indicates
2247 non-empty .debug_aranges, call output_aranges with the computed
2248 size. Stop using removed dw_fde_struct fields, use
2249 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
2250 for second.
2251
2b80199f
JJ
2252 PR debug/48203
2253 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
2254 create ENTRY_VALUE if incoming or address of incoming's MEM
2255 is a hard REG.
2256 * dwarf2out.c (mem_loc_descriptor): Don't emit
2257 DW_OP_GNU_entry_value of DW_OP_fbreg.
2258 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
2259 on ENTRY_VALUE is able to find the canonical parameter VALUE.
2260 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
2261 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
2262 ENTRY_VALUE_EXPs.
2263 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
2264 is a REG_P or MEM_P with REG_P address, compute hash directly
2265 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
2266 (preserve_only_constants): Don't clear VALUES forwaring
2267 ENTRY_VALUE to some other VALUE.
2268
8a445129
RS
22692011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
2270
2271 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
2272 instead of GEN_INT.
2273
c82fee88
EB
22742011-03-28 Eric Botcazou <ebotcazou@adacore.com>
2275
2276 * cfgexpand.c (expand_gimple_cond): Always set the source location and
2277 block before expanding the statement.
2278 (expand_gimple_stmt_1): Likewise. Set them here...
2279 (expand_gimple_stmt): ...and not here. Tidy.
2280 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
2281 unknown.
2282
e45425ec
SB
22832011-03-28 Steven Bosscher <steven@gcc.gnu.org>
2284
2285 * Makefile.in: New rule for cprop.o.
2286 * gcse.c: Move constant/copy propagation to cprop.c.
2287 (compute_local_properties): Only handle expression tables.
2288 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
2289 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
2290 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
2291 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 2292 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
2293 compute_cprop_data, find_used_regs, try_replace_reg,
2294 find_avail_set, cprop_jump, constprop_register, cprop_insn,
2295 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
2296 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
2297 find_bypass_set, reg_killed_on_edge, bypass_block,
2298 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
2299 execute_rtl_cprop, pass_rtl_cprop): Move to...
2300 * cprop.c: ...here. New file, constant/copy propagation for RTL
2301 moved from gcse.c to here with minor cleanups in duplicated code.
2302
c09d5426
L
23032011-03-28 H.J. Lu <hongjiu.lu@intel.com>
2304
2305 * config/i386/i386.c (flag_opts): Fix a typo in
2306 -mavx256-split-unaligned-store.
2307
9eaa7740
AS
23082011-03-28 Anatoly Sokolov <aesok@post.ru>
2309
2310 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
2311 LIBCALL_VALUE): Remove macros.
2312 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2313 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2314 (h8300_function_value, h8300_libcall_value,
2315 h8300_function_value_regno_p): New functions.
2316
dcec2be2
AS
23172011-03-28 Anatoly Sokolov <aesok@post.ru>
2318
2319 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
2320
520af9ec
JL
23212011-03-28 Jeff Law <law@redhat.com>
2322
2323 * tree-ssa-threadupdate.c (redirect_edges): Call
2324 create_edge_and_update_destination_phis as needed.
2325 (create_edge_and_update_destination_phis): Accept new BB argument.
2326 All callers updated.
2327 (thread_block): Do not update the profile when threading around
2328 intermediate blocks.
2329 (thread_single_edge): Likewise.
2330 (determine_bb_domination_status): If BB is not a successor of the
2331 loop header, return NONDOMINATING.
2332 (register_jump_thread): Note when we register a jump thread around
2333 an intermediate block.
2334 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
2335 (thread_across_edge): Use it.
2336
7450b54f
TG
23372011-03-28 Tristan Gingold <gingold@adacore.com>
2338
2339 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
2340 when for_return is 2.
2341
649beb33
JL
23422011-03-28 Jeff Law <law@redhat.com>
2343
2344 * var-tracking.c (canonicalize_values_mark): Delete unused
2345 lhs assignment.
2346 (canonicalize_values_star, set_variable_part): Likewise.
2347 (clobber_variable_part, delete_variable_part): Likewise.
2348
d5b8da97
SB
23492011-03-28 Steven Bosscher <steven@gcc.gnu.org>
2350
2351 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
2352
322dd859
MJ
23532011-03-28 Martin Jambor <mjambor@suse.cz>
2354
2355 * tree-inline.c (expand_call_inline): Do not check that destination
2356 node is analyzed.
2357 (optimize_inline_calls): Assert that destination node is analyzed.
2358 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
2359 not call tree_lowering_passes.
2360 * cgraph.h (cgraph_analyze_function): Declare.
2361 * cgraphunit.c (cgraph_analyze_function): Make public.
2362
aa53e58b
JM
23632011-03-28 Joseph Myers <joseph@codesourcery.com>
2364
2365 * config/sparc/sparc-opts.h: New.
2366 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
2367 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
2368 (sparc_option_override): Store processor_type enumeration rather
2369 than string in cpu_default. Remove name and enumeration from
2370 cpu_table. Directly default -mcpu then default -mtune from -mcpu
2371 without using sparc_select. Use target_flags_explicit instead of
2372 fpu_option_set.
2373 * config/sparc/sparc.h (enum processor_type): Move to
2374 sparc-opts.h.
2375 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
2376 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
2377 HeaderInclude entry.
2378 (mcpu=, mtune=): Use Var and Enum.
2379 (sparc_processor_type): New Enum and EnumValue entries.
2380
dd350eba
RO
23812011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2382 Iain Sandoe <iains@gcc.gnu.org>
2383
2384 PR target/48245
2385 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
2386
1b29f05e
EB
23872011-03-28 Eric Botcazou <ebotcazou@adacore.com>
2388
2389 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
2390 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
2391 Insert new statements at it in lieu of STMT.
2392 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
2393 * tree-vect-stmts.c (vectorizable_store): Likewise.
2394 (vectorizable_load): Likewise.
2395
506e6808
UB
23962011-03-28 Uros Bizjak <ubizjak@gmail.com>
2397
2398 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
2399 (divtf3): Ditto.
2400 (multf3): Ditto.
2401 (subtf3): Ditto.
2402
2e939ee9
L
24032011-03-27 H.J. Lu <hongjiu.lu@intel.com>
2404
2405 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
2406 unaligned 256bit load/store.
2407 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
2408 (*avx_movdqu<avxmodesuffix>): Likewise.
2409
5e85ab88
JDA
24102011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2411
2412 PR target/48288
2413 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
2414 * config/pa/pa.md (iordi3): Use new predicate in expander.
2415 (iorsi3): Likewise.
2416
47be3d6d
AS
24172011-03-27 Anatoly Sokolov <aesok@post.ru>
2418
506e6808 2419 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 2420 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
2421 * config/mips/mips-protos.h (mips_function_value): Remove.
2422 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
2423 (mips_function_value_1): ... this. Make static. Handle receiving
2424 the function type in 'fn_decl_or_type' argument.
2425 (mips_function_value, mips_libcall_value,
2426 mips_function_value_regno_p): New function.
2427 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2428 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2429
d253656a
L
24302011-03-27 H.J. Lu <hongjiu.lu@intel.com>
2431
2432 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
2433 and -mavx256-split-unaligned-store.
2434 (ix86_option_override_internal): Split 32-byte AVX unaligned
2435 load/store by default.
2436 (ix86_avx256_split_vector_move_misalign): New.
2437 (ix86_expand_vector_move_misalign): Use it.
2438
2439 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
2440 -mavx256-split-unaligned-store.
2441
2442 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
2443 256bit load/store. Generate unaligned store on misaligned memory
2444 operand.
2445 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
2446 256bit load/store.
2447 (*avx_movdqu<avxmodesuffix>): Likewise.
2448
2449 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
2450 -mavx256-split-unaligned-store.
2451
1ea9206a
RS
24522011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
2453
2454 PR target/38598
2455 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
2456 Update commentary.
2457
b99ce2a8
RS
24582011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
2459
2460 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
2461 opno arguments with an expand_operand. Use create_input_operand.
2462 (mips_prepare_builtin_target): Delete.
2463 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
2464 functions.
2465 (mips_expand_builtin_direct): Use create_output_operand and
2466 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
2467 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
2468 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
2469
69d52339
IR
24702011-03-27 Ira Rosen <ira.rosen@linaro.org>
2471
2472 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
2473 function.
2474 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
2475
ba5e9aca
EB
24762011-03-26 Eric Botcazou <ebotcazou@adacore.com>
2477
2478 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
2479 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
2480 basic blocks and call commit_edge_insertions directly.
2481 (fixup_abnormal_edges): Move from here to...
2482 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
2483 on the edges and return whether some have actually been inserted.
2484 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
2485 compensation code.
2486
5d369d58
AB
24872011-03-26 Andrey Belevantsev <abel@ispras.ru>
2488
2489 PR rtl-optimization/48144
2490 * sel-sched-ir.c (merge_history_vect): Factor out from ...
2491 (merge_expr_data): ... here.
2492 (av_set_intersect): Rename to av_set_code_motion_filter.
2493 Update all callers. Call merge_history_vect when an expression
2494 is found in both sets.
2495 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
2496
f082c000
AM
24972011-03-26 Alan Modra <amodra@gmail.com>
2498
2499 * config/rs6000/predicates.md (word_offset_memref_op): Handle
2500 cmodel medium addresses.
2501 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
2502 64-bit gpr loads and stores.
2503 (rs6000_secondary_reload_ppc64): New function.
2504 * config/rs6000/rs6000-protos.h: Declare it.
2505 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
2506
8ac5e12e
AM
25072011-03-26 Alan Modra <amodra@gmail.com>
2508
2509 PR target/47487
2510 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
2511 GNU Go in traceback table.
2512
c2654ded
RH
25132011-03-25 Richard Henderson <rth@redhat.com>
2514
2515 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
2516 if there are exactly 6 operands.
2517 (set_storage_via_setmem): Similarly.
2518
ba78087b
KT
25192011-03-25 Kai Tietz <ktietz@redhat.com>
2520
2521 * collect2.c (write_c_file_stat): Handle backslash
2522 as right-hand directory separator.
2523 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
2524 checking just for slash.
2525 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
2526 instead of checking for trailing slash.
2527 * gcc.c (record_temp_file): Use filename_cmp instead
2528 of strcmp.
2529 (do_spec_1): Likewise.
2530 (replace_outfile_spec_function): Likewise.
2531 (is_directory): Use filename_ncmp instead of strncmp.
2532 (print_multilib_info): Likewise.
2533 * gcov.c (find_source): Use filename_cmp instead
2534 instead of strcmp.
2535 (make_gcov_file_name): Fix order of slash/backslash
2536 checks.
2537 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
2538 (add_standard_paths): Likewise.
2539 * mips-tfile.c (saber_stop): Handle backslash.
2540 * prefix.c (update_path): Use filename_ncmp instead of
2541 strncmp.
2542 * profile.c (output_location): Use filename_cmp instead
2543 of strcmp.
2544 * read-md.c (handle_toplevel_file): Handle backslash.
2545 * tlink.c (frob_extension): Likewise.
2546 * tree-cfg.c (same_line_p): Use filename_cmp instead of
2547 strcmp.
2548 * tree-dump.c (dequeue_and_dump): Handle backslash.
2549 * tree.c (get_file_function_name): Likewise.
2550 * gengtype.c (read_input_list): Likewise.
2551 (get_file_realbasename): Likewise.
2552 (get_output_file_with_visibility): Use filename_cmp
2553 instead of strcmp.
2554
75f6ec9a
RS
25552011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
2556
2557 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
2558 case to VFPv1.
2559
6c4e2997
NF
25602011-03-25 Nathan Froyd <froydnj@codesourcery.com>
2561
2562 * fold-const.c (expr_location_or): New function.
2563 (fold_truth_not_expr): Call it.
2564
0edf1bb2
JL
25652011-03-25 Jeff Law <law@redhat.com>
2566
2567 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
2568 va_end.
2569 * c-family/c-common.c (def_fn_type): Likewise.
2570 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
2571 * emit-rtl.c (gen_rtvec): Likewise.
2572 * lto/lto-lang.c (def_fn_type): Likewise.
2573
fdc2de95
RG
25742011-03-25 Richard Guenther <rguenther@suse.de>
2575
2576 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
2577 also generate copies.
2578 (fini_copy_prop): Handle constant values properly.
2579
21385db0
JJ
25802011-03-25 Jakub Jelinek <jakub@redhat.com>
2581
2582 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
2583 mode size instead of bitsize with DWARF2_ADDR_SIZE.
2584 (hash_loc_operands, compare_loc_operands): Handle
2585 DW_OP_GNU_entry_value.
2586
6510e8bb
KT
25872011-03-25 Kai Tietz <ktietz@redhat.com>
2588
2589 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
2590 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
2591 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
2592 comment and use macro TARGET_64BIT_MS_ABI instead.
2593 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
2594 and change default behavior for 32-bit MS_ABI.
2595 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
2596 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
2597 32-bit, too.
2598 (ix86_cfun_abi): Likewise.
2599 (ix86_maybe_switch_abi): Adjust comment.
2600 (init_cumulative_args): Check for bit-ness in MS_ABI case.
2601 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
2602 instead of checking for SYSV_ABI.
2603 (ix86_nsaved_sseregs): Likewise.
2604 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
2605 to 16 bytes.
2606 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
2607 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
2608 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
2609 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
2610 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
2611
34019e28
RG
26122011-03-25 Richard Guenther <rguenther@suse.de>
2613
2614 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
2615 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2616 (verify_gimple): Remove.
2617 * tree-cfg.c (verify_gimple_call): Merge verification
2618 from verify_stmts.
2619 (verify_gimple_phi): Merge verification from verify_stmts.
2620 (verify_gimple_label): New function.
2621 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
2622 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2623 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
2624 (verify_stmts): Rename to verify_gimple_in_cfg.
2625 (verify_gimple_in_cfg): New function.
2626 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
2627 * tree-ssa.c (verify_ssa): Likewise.
2628 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
2629
605896f5
RG
26302011-03-25 Richard Guenther <rguenther@suse.de>
2631
2632 * passes.c (init_optimization_passes): Add FRE pass after
2633 early SRA.
2634
7baa7c13
BS
26352011-03-25 Bernd Schmidt <bernds@codesourcery.com>
2636 Andrew Stubbs <ams@codesourcery.com>
2637
2638 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
2639 for Cortex-A8.
2640 (arm_movdi_vfp_cortexa8): New pattern.
2641 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
2642 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
2643 instructions when tuning for Cortex-A8. Set attribute "arch".
2644 * config/arm/arm.md: Move include arm-tune.md up a bit.
2645 (define_attr "arch"): Add "onlya8" and "nota8" values.
2646 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
2647
45dbce1b
NF
26482011-03-25 Nathan Froyd <froydnj@codesourcery.com>
2649
4ff08abf 2650 PR bootstrap/48282
45dbce1b
NF
2651 Revert:
2652 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2653
2654 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2655 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2656 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2657 * passes.c (init_optimization_passes): Move
2658 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2659
ac9a30ae
KT
26602011-03-25 Kai Tietz <ktietz@redhat.com>
2661
2662 * c-typeck.c (comptypes_internal): Replace target
2663 hook call of comp_type_attributes by version in tree.c file.
2664 * gimple.c (gimple_types_compatible_p_1): Likewise.
2665 * tree-ssa.c (useless_type_conversion_p): Likewise.
2666 * tree.c (build_type_attribute_qual_variant): Likewise.
2667 (attribute_value_equal): New static helper function.
2668 (comp_type_attributes): New function.
2669 (merge_attributes): Use attribute_value_equal for comparison.
2670 (attribute_list_contained): Likewise.
2671 * tree.h (comp_type_attributes): New prototype.
2672
afdac116
RG
26732011-03-25 Richard Guenther <rguenther@suse.de>
2674
2675 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
2676 of complex types at -O0.
2677 (verify_gimple_assign_binary): Likewise.
2678 (verify_gimple_assign_ternary): Likewise.
2679
ec6165f8
MW
26802011-03-24 Mark Wielaard <mjw@redhat.com>
2681
2682 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
2683 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2684
2a5ac39a
MW
26852011-03-24 Mark Wielaard <mjw@redhat.com>
2686
2687 PR debug/48041
2688 * dwarf2out.c (output_abbrev_section): Only write table when
2689 abbrev_die_table_in_use > 1.
2690
e533b2a4
RH
26912011-02-24 Richard Henderson <rth@redhat.com>
2692
2693 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
2694 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
2695 (alpha_expand_unaligned_load_words): Use extql.
2696 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
2697 (emit_insxl): Handle all modes for consistency.
2698
0b2a7367
RH
26992011-02-24 Richard Henderson <rth@redhat.com>
2700
2701 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
2702 (alpha_expand_unaligned_load): Likewise.
2703 (alpha_expand_unaligned_store): Likewise.
2704 (alpha_expand_unaligned_load_words): Likewise.
2705 (alpha_expand_unaligned_store_words): Likewise.
2706 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
2707 (alpha_split_lock_test_and_set_12): Likewise.
2708 (print_operand, alpha_fold_builtin_extxx): Likewise.
2709 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
2710 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
2711 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
2712 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
2713 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
2714 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
2715 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
2716 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
2717 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
2718 (extwl, extll, extql): Similarly.
2719 (inswh, inslh, insqh): Similarly.
2720 (mskbl, mskwl, mskll, mskql): Similarly.
2721 (mskwh, msklh, mskqh): Similarly.
2722
315b2bef
RH
27232011-02-24 Richard Henderson <rth@redhat.com>
2724
2725 * config/alpha/alpha.md (attribute isa): Add er, ner.
2726 (attribute enabled): Handle them.
2727 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
2728
67102517
RH
27292011-02-24 Richard Henderson <rth@redhat.com>
2730
2731 * config/alpha/alpha.md (attribute isa): Add vms.
2732 (attribute enabled): Handle it.
2733 (*movsf): Merge *movsf_{nofix,fix,nofp}.
2734 (*movdf): Merge *movdf_{nofix,fix,nofp}.
2735 (*movtf): Rename from *movtf_internal for consistency.
2736 (*movsi): Merge with *movsi_nt_vms.
2737 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
2738 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
2739 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
2740 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
2741
6aba5cb4
RH
27422011-02-24 Richard Henderson <rth@redhat.com>
2743
2744 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
2745 (extendqisi2, extendhisi2): Likewise.
2746 (extendqidi2): Simplify BWX/non-BWX expansions.
2747 (extendhidi2): Similarly.
2748
bdfb351b
RH
27492011-02-24 Richard Henderson <rth@redhat.com>
2750
2751 * config/alpha/alpha.md (attribute isa): New.
2752 (attribute enabled): New.
2753 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
2754 (zero_extendqisi2, zero_extendqidi2): Similarly.
2755 (zero_extendhisi2, zero_extendhidi2): Similarly.
2756 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
2757
6abe71eb
RH
27582011-02-24 Richard Henderson <rth@redhat.com>
2759
2760 * config/alpha/predicates.md (input_operand): Revert last change;
2761 update comment to mention 32-bit VMS rather than Windows.
2762
7114321e
NF
27632011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2764
2765 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2766 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2767 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2768 * passes.c (init_optimization_passes): Move
2769 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2770
c8679567
EB
27712011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2772
2773 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
2774
27173058
UB
27752011-03-24 Uros Bizjak <ubizjak@gmail.com>
2776
2777 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
2778 correctly.
2779
6f0c9f06
JJ
27802011-03-24 Jakub Jelinek <jakub@redhat.com>
2781
2782 PR debug/48204
2783 * simplify-rtx.c (simplify_const_unary_operation): Call
2784 real_convert when changing mode class with FLOAT_EXTEND.
2785
662666e5
NC
27862011-03-24 Nick Clifton <nickc@redhat.com>
2787
2788 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
2789 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2790 * config/rx/rx.c (rx_option_override): Set align_jumps,
2791 align_loops and align_labels if not set by the user.
2792 (rx_align_for_label): New function.
2793 (rx_max_skip_for_label): New function.
2794 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
2795 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
2796 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
2797 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
2798 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
2799
2b99b2b8
RS
28002011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2801
2802 PR rtl-optimization/48263
2803 * optabs.c (expand_binop_directly): Reinstate convert_modes code
2804 and original commutative_p handling. Use maybe_gen_insn.
2805
ccecd6ea
AK
28062011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2807
2808 * reload.c (find_reloads_subreg_address): Add address_reloaded
2809 parameter and return true there if the full address has been
2810 reloaded.
2811 (find_reloads_toplev): Pass address_reloaded flag.
2812 (find_reloads_address_1): Don't use address_reloaded parameter.
2813
67295642
JL
28142011-03-24 Jeff Law <law@redhat.com>
2815
2816 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
2817 unused variable "ann".
2818 (remove_unused_locals): Likewise.
2819
2820 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
2821 statement.
2822
2823 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
2824 after it is freed.
2825
212aa74f
AK
28262011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2827
2828 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
2829 for invalid symbolic addresses.
2830 (s390_secondary_reload): Don't use s390_check_symref_alignment for
2831 larl operands.
2832
fe784e0d
EB
28332011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2834
2835 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
2836 the argument in calls to fold_truth_not_expr.
2837
63ee8641
NF
28382011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2839
2840 * tree.c (record_node_allocation_statistics): New function.
2841 (make_node_stat, copy_node_stat, build_string): Call it.
2842 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
2843 (build1_stat, build_omp_clause): Likewise.
2844
61be2a1c
RS
28452011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2846
2847 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
2848 last commit.
2849
a881aaa7
RG
28502011-03-24 Richard Guenther <rguenther@suse.de>
2851
2852 PR tree-optimization/48271
2853 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
2854 blocks that still exist.
2855
dbaa912c
RG
28562011-03-24 Richard Guenther <rguenther@suse.de>
2857
2858 PR tree-optimization/48270
2859 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
2860 not free datarefs before ddrs.
2861
1d60cc55
EB
28622011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2863
2864 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
2865 from the address built for a reference with variable offset.
2866
c78dd519
UB
28672011-03-24 Uros Bizjak <ubizjak@gmail.com>
2868
2869 PR target/48237
2870 * config/i386/i386.md (*movdf_internal_rex64): Do not split
2871 alternatives that can be handled with movq or movabsq insn.
2872 (*movdf_internal): Disable for !TARGET_64BIT.
2873 (*movdf_internal_nointeger): Ditto.
2874 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
2875
b25b9e8f
NF
28762011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2877
2878 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2879 (FUNCTION_ARG_ADVANCE): Likewise.
2880 * tm.texi.in: Change references to them to hook references.
2881 * tm.texi: Regenerate.
c78dd519 2882 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
2883 (default_function_incoming_arg): Likewise.
2884 (default_function_arg_advance): Likewise.
c78dd519 2885 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
2886 (function_arg_advance): Likewise.
2887 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2888
190b2187
RG
28892011-03-24 Richard Guenther <rguenther@suse.de>
2890
2891 PR middle-end/48269
2892 * tree-object-size.c (addr_object_size): Do not double-account
2893 for MEM_REF offsets.
2894
a183b5c7
DN
28952011-03-24 Diego Novillo <dnovillo@google.com>
2896
2897 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 2898 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
2899 (lto_input_data_block): Move from lto-opts.c. Make extern.
2900 Update all users.
2901 (lto_input_string): Rename from input_string. Make extern.
2902 Update all users.
2903 * lto-streamer-out.c (lto_output_string_with_length): Rename from
2904 output_string_with_length.
2905 Output 0 to indicate a non-NULL string. Update all callers to
2906 not emit 0.
2907 (lto_output_string): Rename from output_string. Make extern.
2908 Update all users.
2909 (lto_output_decl_state_streams): Make extern.
2910 (lto_output_decl_state_refs): Make extern.
2911 * lto-streamer.h (lto_input_string): Declare.
2912 (lto_input_data_block): Declare.
2913 (lto_output_string): Declare.
2914 (lto_output_string_with_length): Declare.
2915 (lto_output_decl_state_streams): Declare.
2916 (lto_output_decl_state_refs): Declare.
2917
cfef45c8
RG
29182011-03-24 Richard Guenther <rguenther@suse.de>
2919
2920 PR tree-optimization/46562
2921 * tree.c (build_invariant_address): New function.
2922 * tree.h (build_invariant_address): Declare.
2923 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
2924 a renamed function moved ...
2925 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
2926 Take valueization callback parameter.
2927 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
2928 * gimple-fold.h: New file.
2929 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
2930 (ccp_fold, fold_const_aggregate_ref,
2931 fold_ctor_reference, fold_nonarray_ctor_reference,
2932 fold_array_ctor_reference, fold_string_cst_ctor_reference,
2933 get_base_constructor): Move ...
2934 * gimple-fold.c: ... here.
2935 (gimple_fold_stmt_to_constant_1): New function
2936 split out from ccp_fold. Take a valueization callback parameter.
2937 Valueize all operands.
2938 (gimple_fold_stmt_to_constant): New wrapper function.
2939 (fold_const_aggregate_ref_1): New function split out from
2940 fold_const_aggregate_ref. Take a valueization callback parameter.
2941 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
2942 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
2943 invariant POINTER_PLUS_EXPRs to invariant form.
2944 (vn_valueize): New function.
2945 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
2946 * tree-vrp.c (vrp_valueize): New function.
2947 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
2948 to fold statements to constants.
2949 * tree-ssa-pre.c (eliminate): Properly guard propagation of
2950 function declarations.
2951 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
2952 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
2953
5e0a7e40
RS
29542011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2955
2956 * config/h8300/predicates.md (jump_address_operand): Fix register
2957 mode check.
2958
bfe068c3
IR
29592011-03-24 Ira Rosen <ira.rosen@linaro.org>
2960
2961 * doc/invoke.texi (max-stores-to-sink): Document.
2962 * params.h (MAX_STORES_TO_SINK): Define.
2963 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
2964 if either vectorization or if-conversion is disabled.
2965 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
2966 tree-vect-data-refs.c vect_equal_offsets.
2967 (dr_equal_offsets_p): New function.
2968 (find_data_references_in_bb): Remove static.
2969 * tree-data-ref.h (find_data_references_in_bb): Declare.
2970 (dr_equal_offsets_p): Likewise.
2971 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
2972 (vect_drs_dependent_in_basic_block): Update calls to
2973 vect_equal_offsets.
2974 (vect_check_interleaving): Likewise.
2975 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
2976 (cond_if_else_store_replacement): Rename to...
2977 (cond_if_else_store_replacement_1): ... this. Change arguments and
2978 documentation.
2979 (cond_if_else_store_replacement): New function.
2980 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
2981 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
2982
4908b0bf
CLT
29832011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
2984
2985 PR target/46934
2986 * config/arm/arm.md (casesi): Use the gen_int_mode() function
2987 to subtract lower bound instead of GEN_INT().
2988
2be478a2
JW
29892011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
2990
2991 PR other/48179
2992 PR other/48221
2993 PR other/48234
2994 * doc/extend.texi (Alignment): Move section to match order in TOC.
2995 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
2996 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
2997
0c617be4
JL
29982011-03-23 Jeff Law <law@redhat.com>
2999
3000 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
3001 before removing the edge.
3002
3003 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
3004 it may have been freed by redirect_branch_edge or
3005 redirect_edge_succ_nodup.
3006
58da96fe
RG
30072011-03-23 Richard Guenther <rguenther@suse.de>
3008
c78dd519 3009 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
3010 (check_va_list_escapes): Likewise.
3011 (check_all_va_list_escapes): Likewise.
3012
b8beb4d1
RG
30132011-03-23 Richard Guenther <rguenther@suse.de>
3014
3015 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
3016 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
3017 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
3018 (alias.o): Likewise.
3019 (ipa-type-escape.o): Remove.
3020 (ipa-struct-reorg.o): Likewise.
3021 (GTFILES): Remove ipa-struct-reorg.c.
3022 * alias.c: Do not include ipa-type-escape.h.
3023 * tree-ssa-alias.c: Likewise.
3024 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
3025 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
3026 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
3027 and ipa-type-escape passes.
3028 * tree-pass.h (pass_ipa_type_escape): Remove.
3029 (pass_ipa_struct_reorg): Likewise.
3030 * ipa-struct-reorg.h: Remove.
3031 * ipa-struct-reorg.c: Likewise.
3032 * ipa-type-escape.h: Likewise.
3033 * ipa-type-escape.c: Likewise.
3034 * doc/invoke.texi (-fipa-struct-reorg): Remove.
3035 (--param struct-reorg-cold-struct-ratio): Likewise.
3036 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3037 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3038 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
3039
f137aa63
AK
30402011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3041
3042 * config/s390/2084.md: Enable all insn reservations also for z9_ec
3043 cpu attribute value.
3044 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
3045 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
3046 * config/s390/s390.c (processor_flags_table): New constant array.
3047 (s390_handle_arch_option): Remove.
3048 (s390_handle_option): Remove s390_handle_arch_option invocations
3049 and OPT_mwarn_framesize_ handling.
3050 (s390_option_override): Remove s390_handle_arch_option invocation.
3051 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
3052 warnings.
3053 * config/s390/s390.md (cpu attribute): Add z9_ec value.
3054 * config/s390/s390.opt (s390_tune, s390_arch)
3055 (march=): Replace s390_arch_option enum and values with
3056 processor_type. Set variable name to s390_arch. Set
3057 initialization value.
3058 (mtune=): Replace s390_arch_option with processor_type. Set
3059 variable name to s390_tune. Set initialization value.
3060
bf90208f
JB
30612011-03-23 Julian Brown <julian@codesourcery.com>
3062
3063 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
3064 accesses which are not naturally aligned.
3065
3460fdf3
RS
30662011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
3067
3068 PR target/47553
3069 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
3070
a5c7d693
RS
30712011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
3072
3073 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
3074 parameter from "int" to "enum insn_code".
3075 (expand_operand_type): New enum.
3076 (expand_operand): New structure.
3077 (create_expand_operand): New function.
3078 (create_fixed_operand, create_output_operand): Likewise
3079 (create_input_operand, create_convert_operand_to): Likewise.
3080 (create_convert_operand_from, create_address_operand): Likewise.
3081 (create_integer_operand): Likewise.
3082 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
3083 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3084 (expand_insn, expand_jump_insn): Likewise.
3085 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
3086 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
3087 (expand_movstr, expand_builtin___clear_cache): Likewise.
3088 (expand_builtin_lock_release): Likewise.
3089 * explow.c (allocate_dynamic_stack_space): Likewise.
3090 (probe_stack_range): Likewise. Allow check_stack to FAIL,
3091 and use the default handling in that case.
3092 * expmed.c (check_predicate_volatile_ok): Delete.
3093 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
3094 (emit_cstore): Likewise.
3095 * expr.c (emit_block_move_via_movmem): Likewise.
3096 (set_storage_via_setmem, expand_assignment): Likewise.
3097 (emit_storent_insn, try_casesi): Likewise.
3098 (emit_single_push_insn): Likewise. Allow the expansion to fail.
3099 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
3100 (expand_vec_shift_expr, expand_binop_directly): Likewise.
3101 (expand_twoval_unop, expand_twoval_binop): Likewise.
3102 (expand_unop_direct, emit_indirect_jump): Likewise.
3103 (emit_conditional_move, vector_compare_rtx): Likewise.
3104 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
3105 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
3106 (expand_sync_lock_test_and_set): Likewise.
3107 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
3108 (emit_unop_insn): Likewise.
3109 (expand_copysign_absneg): Change icode to an insn_code.
3110 (create_convert_operand_from_type): New function.
3111 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
3112 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3113 (expand_insn, expand_jump_insn): Likewise.
3114 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
3115 than const_int_operand for operand 2.
3116
78fadbab
AK
31172011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3118
3119 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
3120 if possible.
3121
5f02387d
NF
31222011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3123
3124 * emit-rtl.c (emit_pattern_before_noloc): New function.
3125 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
3126 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
3127 (emit_pattern_after_noloc): New function.
3128 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
3129 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
3130
fdf3e18a
NF
31312011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3132
3133 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
3134 (__ffsDI2): Likewise.
3135
42d085c1
RH
31362011-03-22 Richard Henderson <rth@redhat.com>
3137
3138 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
3139 of !TARGET_ABI_OPEN_VMS.
3140 (alpha_trampoline_init, alpha_start_function): Likewise.
3141 (alpha_expand_epilogue, alpha_file_start): Likewise.
3142 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
3143 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
3144 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
3145 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
3146 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
3147
cabbe12a
JM
31482011-03-22 Joseph Myers <joseph@codesourcery.com>
3149
3150 * config/s390/s390-opts.h: New.
3151 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
3152 s390_arch_flags, s390_warn_framesize, s390_stack_size,
3153 s390_stack_guard): Remove.
3154 (s390_handle_arch_option): Return void. Take enum
3155 s390_arch_option value instead of string and searching array.
3156 (s390_handle_option): Don't assert that global structures are in
3157 use. Access variables via opts pointer. Use error_at. Don't use
3158 sscanf for -mstack-guard= or -mstack-size=. Update call to
3159 s390_handle_arch_option.
3160 (s390_option_override): Update call to s390_handle_arch_option.
3161 (s390_emit_prologue): Use %d format for s390_stack_size in
3162 diagnostic. Use %wd for HOST_WIDE_INT.
3163 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
3164 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
3165 * config/s390/s390.opt (config/s390/s390-opts.h): New
3166 HeaderInclude entry.
3167 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
3168 s390_arch_flags, s390_warn_framesize): New Variable entries.
3169 (s390_arch_option): New Enum and EnumValue entries.
3170 (march=): Use Enum instead of Var.
3171 (mstack-guard=, mstack-size=): Use UInteger and Var.
3172 (mtune=): Use Enum.
3173
05b12036
JM
31742011-03-22 Joseph Myers <joseph@codesourcery.com>
3175
3176 * config/score/score.c (score_handle_option): Don't assert that
3177 global structures are in use. Access target_flags via opts
3178 pointer. Use value of -march= option to determine target_flags
3179 settings.
3180 * config/score/score.opt (march=): Use Enum.
3181 (score_arch): New Enum and EnumValue entries.
3182
dd51e35a
JM
31832011-03-22 Joseph Myers <joseph@codesourcery.com>
3184
3185 * config/mep/mep.c (option_mtiny_specified): Remove.
3186 (mep_option_override): Move register handling for -mivc2 from
3187 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
3188 instead of option_mtiny_specified.
3189 (mep_handle_option): Access target_flags via opts pointer. Don't
3190 assert that global structures are in use. Defer part of -mivc2
3191 handling and move it to mep_option_override.
3192 * config/mep/mep.opt (IVC2): New Mask entry.
3193 (mivc2): Use Var and Defer instead of Mask.
3194
4a8d3d91
JM
31952011-03-22 Joseph Myers <joseph@codesourcery.com>
3196
3197 * config/v850/v850-opts.h: New.
3198 * config/v850/v850.c (small_memory): Replace with
3199 small_memory_physical_max array. Make that array static const.
3200 (v850_handle_memory_option): Take integer value of argument. Take
3201 gcc_options pointer, option text and location. Return void.
3202 Update for changes to small memory structures.
3203 (v850_handle_option): Access target_flags via opts pointer. Don't
3204 assert that global structures are in use. Update calls to
3205 v850_handle_memory_option.
c78dd519
UB
3206 (v850_encode_data_area): Update references to small memory settings.
3207 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
3208 (enum small_memory_type): Move to v850-opts.h.
3209 * config/v850/v850.opt (config/v850/v850-opts.h): New
3210 HeaderInclude entry.
3211 (small_memory_max): New Variable entry.
3212 (msda): Replace by pair of options msda= and msda-. Use UInteger.
3213 (mtda, mzda): Likewise.
3214
117fdbfa
JM
32152011-03-22 Joseph Myers <joseph@codesourcery.com>
3216
3217 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
3218 pointer. Don't assert that global structures are in use.
3219
d715091c
JM
32202011-03-22 Joseph Myers <joseph@codesourcery.com>
3221
3222 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
3223 via opts pointer. Don't assert that global structures are in use.
3224
1bb721dc
JM
32252011-03-22 Joseph Myers <joseph@codesourcery.com>
3226
3227 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
3228 (munix=93): Use Var.
3229 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
3230 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
3231 * config/pa/pa-opts.h: New.
3232 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
3233 (pa_handle_option): Don't assert that global structures are in
3234 use. Access target_flags via opts pointer. Don't handle
3235 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
3236 OPT_munix_98 here.
3237 (pa_option_override): Handle deferred OPT_mfixed_range_.
3238
cd8d8754
JM
32392011-03-22 Joseph Myers <joseph@codesourcery.com>
3240
3241 * config/mn10300/mn10300-opts.h: New.
3242 * config/mn10300/mn10300.c (mn10300_processor,
3243 mn10300_tune_string): Remove.
3244 (mn10300_handle_option): Don't assert that global structures are
3245 in use. Access mn10300_processor via opts pointer. Don't handle
3246 OPT_mtune_ here.
3247 * config/mn10300/mn10300.h (enum processor_type): Move to
3248 mn10300-opts.h.
3249 (mn10300_processor): Remove.
3250 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
3251 HeaderInclude entry.
3252 (mn10300_processor): New Variable entry.
3253 (mtune=): Use Var.
3254
24e6e6b1
JM
32552011-03-22 Joseph Myers <joseph@codesourcery.com>
3256
3257 * config/microblaze/microblaze.c: Don't include opts.h.
3258 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
3259 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
3260 (mno-clearbss): Use Var and Warn.
3261
8a784afb
JM
32622011-03-22 Joseph Myers <joseph@codesourcery.com>
3263
3264 * config/m32r/m32r-opts.h: New.
3265 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
3266 (m32r_handle_option): Don't assert that global structures are in
3267 use. Access target_flags and m32r_cache_flush_func via opts
3268 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
3269 OPT_mno_flush_trap here.
3270 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
3271 include of m32r-opts.h.
3272 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
3273 HeaderInclude entry.
3274 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
3275 (mmodel=): Use Enum and Var.
3276 (m32r_model): New Enum and EnumValue entries.
3277 (mno-flush-trap): Use Var.
3278 (msdata=): Use Enum and Var.
3279 (m32r_sdata): New Enum and EnumValue entries.
3280
bbfc9a8c
JM
32812011-03-22 Joseph Myers <joseph@codesourcery.com>
3282
3283 * config/m32c/m32c.c: Don't include opts.h.
3284 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
3285 m32c_handle_option): Remove.
3286 (m32c_option_override): Check global_options_set.x_target_memregs
3287 instead of target_memregs_set.
3288 * config/m32c/m32c.h (target_memregs): Remove.
3289 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
3290 variable.
3291
e24b8335
JM
32922011-03-22 Joseph Myers <joseph@codesourcery.com>
3293
3294 * config/iq2000/iq2000-opts.h: New.
3295 * config/iq2000/iq2000.c: Don't include opts.h.
3296 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 3297 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
3298 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
3299 HeaderInclude entry.
3300 (iq2000_tune): New Variable entry.
3301 (march=): Add comment. Use Enum.
3302 (iq2000_arch): New Enum and EnumValue entries.
3303 (mcpu=): Use Enum and Var.
3304 (iq2000_tune): New Enum and EnumValue entries.
3305
e6cc0c98
JM
33062011-03-22 Joseph Myers <joseph@codesourcery.com>
3307
3308 * config/ia64/ia64-opts.h: New.
3309 * config/ia64/ia64.c (ia64_tune): Remove.
3310 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
3311 here. Use error_at.
3312 (ia64_option_override): Handle deferred OPT_mfixed_range_.
3313 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
3314 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
3315 HeaderInclude entry.
3316 (ia64_tune): New Variable entry.
3317 (mfixed-range=): Use Defer and Var.
3318 (mtune=): Use Enum and Var.
3319 (ia64_tune): New Enum and EnumValue entries.
3320
db25893c
JM
33212011-03-22 Joseph Myers <joseph@codesourcery.com>
3322
3323 * config/frv/frv-opts.h: New.
3324 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
3325 frv-opts.h.
3326 (frv_cpu_type): Remove.
3327 * config/frv/frv.c: Don't include opts.h.
3328 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 3329 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
3330 (frv_cpu_type): New Variable entry.
3331 (frv_cpu): New Enum and EnumValue entries.
3332
6c223f5d
JM
33332011-03-22 Joseph Myers <joseph@codesourcery.com>
3334
3335 * config/cris/cris.c (cris_handle_option): Access target_flags via
3336 opts pointer. Don't assert that global structures are in use.
3337 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
3338 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
3339
bbd399cf
JM
33402011-03-22 Joseph Myers <joseph@codesourcery.com>
3341
3342 * config/bfin/bfin-opts.h: New.
3343 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
3344 bfin_si_revision, bfin_workarounds): Remove.
3345 (bfin_cpus): Make static const.
3346 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
3347 not bfin_lib_id_given.
3348 (bfin_handle_option): Don't set bfin_lib_id_given. Access
3349 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 3350 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
3351 * config/bfin/bfin.h: Include bfin-opts.h.
3352 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
3353 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
3354 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
3355 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
3356 entries.
3357
5e1b4d5a
JM
33582011-03-22 Joseph Myers <joseph@codesourcery.com>
3359
3360 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
3361 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
3362 or -msoft-float here.
3363 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
3364 -msoft-float and -mhard-float.
c78dd519 3365 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
3366 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
3367 msoft-float.
3368 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
3369 -msoft-float.
3370 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
3371 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
3372 not mhard-float.
3373 (LIBGCC_SPEC): Don't handle -msoft-float.
3374 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
3375 -mhard-float.
3376 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
3377 msoft-float.
3378 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
3379 -mfloat-abi=*, not -msoft-float and -mhard-float.
3380 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
3381 -msoft-float.
3382 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
3383 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
3384 mhard-float and msoft-float.
3385 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
3386 mfloat-abi=soft in comments, not mhard-float and msoft-float.
3387 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3388 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
3389 mhard-float.
3390 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
3391 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
3392 msoft-float.
3393 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
3394 not mhard-float.
3395 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
3396 not msoft-float.
3397
800d1de1
RH
33982011-03-22 Richard Henderson <rth@redhat.com>
3399
3400 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
3401 TARGET_ABI_WINDOWS_NT.
3402 (alpha_output_function_end_prologue): Likewise.
3403 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
3404 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3405 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
3406 (trap, *movsi_nt_vms): Likewise.
3407 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
3408 (*tablejump_osf_nt_internal): Remove.
3409 * config/alpha/predicates.md (input_operand): Only test Pmode.
3410
c59ddd2b
JM
34112011-03-22 Joseph Myers <joseph@codesourcery.com>
3412
3413 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
3414 via opts pointer. Use error_at. Don't assert that global
3415 structures are in use.
3416
1333f97f
JM
34172011-03-22 Joseph Myers <joseph@codesourcery.com>
3418
3419 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
3420 (ix86_handle_option): Access ix86_isa_flags and
3421 ix86_isa_flags_explicit via opts pointer. Don't assert that
3422 global structures are in use.
3423 (ix86_function_specific_save, ix86_function_specific_restore):
3424 Update ix86_isa_flags_explicit field name.
c78dd519 3425 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
3426 (ix86_isa_flags_explicit): Rename TargetSave entry to
3427 x_ix86_isa_flags_explicit.
3428
75db85d8
RH
34292011-03-22 Richard Henderson <rth@redhat.com>
3430
3431 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
3432 (alpha_option_override, direct_return): Likewise.
3433 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
3434 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
3435 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
3436 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
3437 (alpha_expand_epilogue, alpha_end_function): Likewise.
3438 (alpha_init_libfuncs): Likewise.
3439 (struct machine_function): Remove unicosmk members.
3440 (print_operand) ['t']: Remove.
3441 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
3442 unicosmk_output_module_name, unicosmk_output_common,
3443 current_section_align, unicosmk_output_text_section_asm_op,
3444 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
3445 unicosmk_section_type_flags, unicosmk_unique_section,
3446 unicosmk_asm_named_section, unicosmk_insert_attributes,
3447 unicosmk_output_align, unicosmk_defer_case_vector,
3448 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
3449 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
3450 unicosmk_output_ssib, unicosmk_add_call_info_word,
3451 unicosmk_extern_head, unicosmk_output_default_externs,
3452 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
3453 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
3454 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
3455 * config/alpha/alpha-protos.h: Update.
3456 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
3457 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
3458 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
3459 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
3460 (*mulsi_se, mulvsi3): Likewise.
3461 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
3462 (*divmodsi_internal, call, call_value, realign): Likewise.
3463 (moddi3, umoddi3): Likewise; remove duplicate expander.
3464 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
3465 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
3466 (*movdi_nofix): Remove r/U alternative.
3467 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
3468 * config/alpha/constraints.md ("U"): Remove.
3469 * config/alpha/predicates.md (call_operand"): Don't test
3470 TARGET_ABI_UNICOSMK.
3471
96e45421
JM
34722011-03-22 Joseph Myers <joseph@codesourcery.com>
3473
3474 * target.def (handle_option): Take gcc_options and
3475 cl_decoded_option pointers and location_t.
3476 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
3477 * doc/tm.texi: Regenerate.
3478 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
3479 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
3480 * lto-opts.c (lto_reissue_options): Generate option structure for
3481 targetm.handle_option call.
3482 * opts.c (target_handle_option): Update call to
3483 targetm.handle_option. Remove assertions about values now passed
3484 down to hook.
3485 * targhooks.c (default_target_handle_option): New.
3486 * targhooks.h (default_target_handle_option): Declare.
3487 * config/alpha/alpha.c: Include opts.h.
3488 (alpha_handle_option): Update to new hook interface.
3489 * config/arm/arm.c: Include opts.h.
3490 (arm_handle_option): Update to new hook interface.
3491 * config/arm/t-arm (arm.o): Update dependencies.
3492 * config/bfin/bfin.c: Include opts.h.
3493 (bfin_handle_option): Update to new hook interface.
3494 * config/cris/cris.c: Include opts.h.
3495 (cris_handle_option): Update to new hook interface.
3496 * config/frv/frv.c: Include opts.h.
3497 (frv_handle_option): Update to new hook interface.
3498 * config/i386/i386.c: Include opts.h.
3499 (ix86_handle_option): Update to new hook interface.
3500 (ix86_valid_target_attribute_inner_p): Generate option structure
3501 for call to ix86_handle_option.
3502 * config/i386/t-i386 (i386.o): Update dependencies.
3503 * config/ia64/ia64.c: Include opts.h.
3504 (ia64_handle_option): Update to new hook interface.
3505 * config/ia64/t-ia64 (ia64.o): Update dependencies.
3506 * config/iq2000/iq2000.c: Include opts.h.
3507 (iq2000_handle_option): Update to new hook interface.
3508 * config/m32c/m32c.c: Include opts.h.
3509 (m32c_handle_option): Update to new hook interface.
3510 * config/m32r/m32r.c: Include opts.h.
3511 (m32r_handle_option): Update to new hook interface.
3512 * config/m68k/m68k.c: Include opts.h.
3513 (m68k_handle_option): Update to new hook interface.
3514 * config/mep/mep.c: Include opts.h.
3515 (mep_handle_option): Update to new hook interface.
3516 * config/microblaze/microblaze.c: Include opts.h.
3517 (microblaze_handle_option): Update to new hook interface.
3518 * config/mips/mips.c: Include opts.h.
3519 (mips_handle_option): Update to new hook interface.
3520 * config/mn10300/mn10300.c: Include opts.h.
3521 (mn10300_handle_option): Update to new hook interface.
3522 * config/pa/pa.c: Include opts.h.
3523 (pa_handle_option): Update to new hook interface.
3524 * config/pdp11/pdp11.c: Include opts.h.
3525 (pdp11_handle_option): Update to new hook interface.
3526 * config/rs6000/rs6000.c: Include opts.h.
3527 (rs6000_handle_option): Update to new hook interface.
3528 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
3529 * config/rx/rx.c: Include opts.h.
3530 (rx_handle_option): Update to new hook interface.
3531 * config/s390/s390.c: Include opts.h.
3532 (s390_handle_option): Update to new hook interface.
3533 * config/score/score.c: Include opts.h.
3534 (score_handle_option): Update to new hook interface.
3535 * config/sh/sh.c: Include opts.h.
3536 (sh_handle_option): Update to new hook interface.
3537 * config/sparc/sparc.c: Include opts.h.
3538 (sparc_handle_option): Update to new hook interface.
3539 * config/v850/v850.c: Include opts.h.
3540 (v850_handle_option): Update to new hook interface.
3541
66017846
JM
35422011-03-22 Joseph Myers <joseph@codesourcery.com>
3543
3544 * gcc.c (driver_unknown_option_callback): Only permit and save
3545 unknown -Wno- options.
3546 (driver_wrong_lang_callback): Save options directly instead of via
3547 driver_unknown_option_callback.
3548
e8b97ccd
EB
35492011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3550
3551 * combine.c (simplify_set): Try harder to find the best CC mode when
3552 simplifying a nested COMPARE on the RHS.
3553
ebb9f8b0
JM
35542011-03-22 Joseph Myers <joseph@codesourcery.com>
3555
3556 * config/alpha/gnu.h: Remove.
3557 * config/arc: Remove directory.
3558 * config/arm/netbsd.h: Remove.
3559 * config/arm/t-pe: Remove.
3560 * config/crx: Remove directory.
3561 * config/i386/netbsd.h: Remove.
3562 * config/m68hc11: Remove directory.
3563 * config/m68k/uclinux-oldabi.h: Remove.
3564 * config/mcore/mcore-pe.h: Remove.
3565 * config/mcore/t-mcore-pe: Remove.
3566 * config/netbsd-aout.h: Remove.
3567 * config/rs6000/gnu.h: Remove.
3568 * config/sh/sh-symbian.h: Remove.
3569 * config/sh/symbian-base.c: Remove.
3570 * config/sh/symbian-c.c: Remove.
3571 * config/sh/symbian-cxx.c: Remove.
3572 * config/sh/symbian-post.h: Remove.
3573 * config/sh/symbian-pre.h: Remove.
3574 * config/sh/t-symbian: Remove.
3575 * config/svr3.h: Remove.
3576 * config/vax/netbsd.h: Remove.
3577 * config.build: Don't handle i[34567]86-*-pe.
3578 * config.gcc: Remove handling of deprecations for most deprecated
3579 targets.
3580 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
3581 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
3582 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
3583 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
3584 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
3585 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
3586 Remove cases.
3587 * config.host: Don't handle i[34567]86-*-pe.
3588 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
3589 (ASM_SPEC32): Don't handle -mcall-gnu.
3590 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
3591 -mcall-gnu.
3592 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
3593 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
3594 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
3595 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
3596 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
3597 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
3598 conditional on SYMBIAN.
3599 * configure.ac: Don't handle powerpc*-*-gnu*.
3600 * configure: Regenerate.
3601 * doc/extend.texi (interrupt attribute): Don't mention CRX.
3602 * doc/install-old.texi (m6811, m6812): Don't mention.
3603 * doc/install.texi (arc-*-elf*): Don't document multilib option.
3604 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
3605 (m68k-uclinuxoldabi): Don't mention.
3606 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
3607 Remove.
3608 (-mcall-gnu): Remove.
3609 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
3610 families): Remove constraint documentation.
3611
999a7d80
MS
36122011-03-22 Marius Strobl <marius@FreeBSD.org>
3613
3614 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
3615 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
3616 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
3617
980a0ff4
GJL
36182011-03-21 Georg-Johann Lay <avr@gjlay.de>
3619
3620 * config/avr/avr-protos.h (expand_epilogue): Change prototype
3621 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
3622 * config/avr/avr.c (init_cumulative_args)
3623 (avr_function_arg_advance): Use it.
3624 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
3625 sibcall epilogues.
3626 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
3627 (avr_function_ok_for_sibcall): ...this new function.
3628 (avr_lookup_function_attribute1): New static Function.
3629 (avr_naked_function_p, interrupt_function_p)
3630 (signal_function_p, avr_OS_task_function_p)
3631 (avr_OS_main_function_p): Use it.
3632 * config/avr/avr.md ("sibcall", "sibcall_value")
3633 ("sibcall_epilogue"): New expander.
3634 ("*call_insn", "*call_value_insn"): New insn.
3635 ("call_insn", "call_value_insn"): Remove
3636 ("call", "call_value", "epilogue"): Change expander to handle
3637 sibling calls.
3638
49168734
NC
36392011-03-21 Nick Clifton <nickc@redhat.com>
3640
3641 * doc/invoke.texi (Overall Options): Move closing brace to end of
3642 options list.
3643 (Optimization Options): Add missing @gol.
3644 (Directory Options): Likewise.
3645 (i386 and x86-64 Options): Likewise.
3646 (RS6000 and PowerPC Options): Likewise.
3647 (i386 and x86-64 Windows Options): Likewise.
3648 (V850 Options): Add text missing from descriptions.
3649
bdfe906f
RH
36502011-03-22 Richard Henderson <rth@redhat.com>
3651
3652 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
3653 (avr_incoming_return_addr_rtx): New.
3654 (emit_push_byte): New.
3655 (expand_prologue): Use it. Remove incorrect dwarf annotation for
3656 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
3657 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
3658 (emit_pop_byte): New.
3659 (expand_epilogue): Use it. Pop frame pointer by bytes.
3660 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
3661 (INCOMING_RETURN_ADDR_RTX): New.
3662 (INCOMING_FRAME_SP_OFFSET): New.
3663 (ARG_POINTER_CFA_OFFSET): New.
3664 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
3665 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
3666 (pophi): Remove.
3667
d090a5aa
RH
3668 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
3669
fdf3e18a
NF
36702011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3671
3672 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3673 (FUNCTION_ARG_ADVANCE): Likewise.
3674 * tm.texi.in: Change references to them to hook references.
3675 * tm.texi: Regenerate.
3676 * targhooks.c (default_function_arg): Eliminate check for target
3677 macro.
3678 (default_function_incoming_arg): Likewise.
3679 (default_function_arg_advance): Likewise.
c78dd519 3680 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
3681 (function_arg_advance): Likewise.
3682 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3683
009d3fcf
NF
36842011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3685
3686 * tree.c (build_call_1): New function.
3687 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
3688
7bec30e1
RG
36892011-03-22 Richard Guenther <rguenther@suse.de>
3690
3691 PR tree-optimization/48228
3692 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
3693 for single-arg PHIs.
3694
0b7e851b
AB
36952011-03-22 Andrey Belevantsev <abel@ispras.ru>
3696
3697 PR rtl-optimization/48143
3698 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
3699 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
3700 sse2_cvtps2pd): Likewise.
3701
d89afca5
AK
37022011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3703
3704 * recog.c (canonicalize_change_group): Use validate_unshare_change.
3705
f471fe72
RG
37062011-03-22 Richard Guenther <rguenther@suse.de>
3707
3708 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
3709 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
3710 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
3711 and REALIGN_LOAD_EXPR.
3712 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
3713 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
3714 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
3715 DOT_PROD_EXPR case ...
3716 (expand_expr_real_2): ... here.
3717 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
3718 and REALIGN_LOAD_EXPR.
3719 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
3720 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
3721 (vect_create_epilog_for_reduction): Likewise.
3722 (vectorizable_reduction): Likewise.
3723 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
3724 * tree-vect-stmts.c (vectorizable_load): Likewise.
3725
f2f81d57
EB
37262011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3727
3728 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
3729
ab081dd6
AK
37302011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3731
3732 * config/s390/s390.c (s390_delegitimize_address): Fix offset
3733 handling for PLTOFF/GOTOFF.
3734
6fd5332b
NC
37352011-03-22 Nick Clifton <nickc@redhat.com>
3736
3737 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3738 trailing backslash from the end of the macro definition.
3739
01841ac0
AK
37402011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3741
3742 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
3743 and PLT unspecs.
3744
2ef6ce06
RS
37452011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
3746
3747 * expr.h (prepare_operand): Move to...
3748 * optabs.h (prepare_operand): ...here and change the insn code
3749 parameter from "int" to "enum insn_code".
3750 (insn_operand_matches): Declare.
3751 * expr.c (init_expr_target): Use insn_operand_matches.
3752 (compress_float_constant): Likewise.
3753 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
3754 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
3755 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
3756 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
3757 Likewise.
2ef6ce06
RS
3758 (gen_cond_trap): Likewise.
3759 (prepare_operand): Likewise. Change icode to an insn_code.
3760 (insn_operand_matches): New function.
3761 * reload.c (find_reloads_address_1): Use insn_operand_matches.
3762 * reload1.c (gen_reload): Likewise.
3763 * targhooks.c (default_secondary_reload): Likewise.
3764
9e43ad68
UB
37652011-03-21 Uros Bizjak <ubizjak@gmail.com>
3766
9a96da32
UB
3767 * config/alpha/alpha.md (unspec): New define_c_enum.
3768 (unspecv): Ditto.
3769
37702011-03-21 Uros Bizjak <ubizjak@gmail.com>
3771
3772 PR debug/48214
9e43ad68
UB
3773 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
3774 between a call and its CALL_ARG_LOCATION note.
3775
31408f60
EB
37762011-03-21 Eric Botcazou <ebotcazou@adacore.com>
3777
3778 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
3779
37802011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
3781
3782 PR c/42544
3783 PR c/48197
3784 * c-common.c (shorten_compare): If primopN is first sign-extended
3785 to opN and then zero-extended to result type, set primopN to opN.
3786
9dfd55f5
DJ
37872011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3788
3789 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
3790 for barrier handlers.
3791
f3c33d9d
MM
37922011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3793
3794 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
3795 UNSPEC constants to be in the unspec enumeration, and redefine
3796 all UNSPECV constants to be in the unspecv enumeration, so that
3797 dumps print which unspec/unspec_volatile this is.
3798 * config/rs6000/vector.md (UNSPEC_*): Ditto.
3799 * config/rs6000/paired.md (UNSPEC_*): Ditto.
3800 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
3801 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
3802 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
3803
3804 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
3805 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
3806 UNSPECV_LWSYNC, since these are used as unspec_volatile.
3807 * config/rs6000/sync.md (isync, lwsync): Ditto.
3808
ac43f774
RG
38092011-03-21 Richard Guenther <rguenther@suse.de>
3810
3811 * params.def (lto-min-partition): Fix typo.
3812
411cdbd8
RG
38132011-03-21 Richard Guenther <rguenther@suse.de>
3814
3815 PR c/47939
3816 * c-decl.c (grokdeclarator): Drop to the main variant only
3817 for array types. Drop flag_gen_aux_info check.
3818
1cd9e416
RG
38192011-03-21 Richard Guenther <rguenther@suse.de>
3820
3821 PR translation/47911
3822 * params.def (lto-partitions): Fix typo.
3823 (lto-min-partition): Fix wording.
3824
ada5ad67
AT
38252011-03-21 Andreas Tobler <andreast@fgznet.ch>
3826
3827 * config/rs6000/t-freebsd: Remove duplication from file.
3828
f9613c9a
RG
38292011-03-21 Richard Guenther <rguenther@suse.de>
3830
3831 PR middle-end/47661
3832 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
3833
9bfbc1eb
RG
38342011-03-21 Richard Guenther <rguenther@suse.de>
3835
3836 PR lto/48210
3837 * params.def (lto-partitions): Require at least 1 partition.
3838
a2268084
RO
38392011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3840
3841 * gthr-solaris.h: Remove.
3842 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
3843 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
3844 (LIB_SPEC): Likewise.
3845 * config/sol2.opt (threads): Remove.
9e43ad68 3846 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
3847 (sparc*-*-solaris2*): Likewise.
3848 * configure.ac (enable_threads): Enable solaris support.
3849 * configure: Regenerate.
9e43ad68 3850 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
3851 * doc/install.texi (Configuration, --enable-threads=lib): Remove
3852 solaris.
3853
c43d9a1b
RO
38542011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3855
3856 * config.gcc: Obsolete *-*-solaris2.8*.
3857 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3858
084239f4
RO
38592011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3860
3861 PR bootstrap/48135
3862 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
3863 reference. Solaris 8 perl works.
3864
64cadbe7
RO
38652011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3866
3867 PR bootstrap/48135
3868 * doc/install.texi (Prerequisites): Move jar etc. up.
3869 Explain support library version requirements.
3870
eb975109
RO
38712011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3872
3873 PR bootstrap/48135
3874 * doc/install.texi (Prerequisites): Move Perl to build
3875 requirements. Always necessary on Solaris 2 with Sun ld.
3876
8a509ffd
RO
38772011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3878
3879 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
3880 binutils 2.21.
3881 (Specific, i?86-*-solaris2.[89]): Likewise.
3882 (Specific, i?86-*-solaris2.10): Likewise.
3883 (Specific, mips-sgi-irix6): Likewise.
3884 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
3885 Update for binutils 2.21.
3886
8fbc58a1
RO
38872011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3888
3889 * configure.ac (gcc_cv_lto_plugin): Fix typo.
3890 Allow -fuse-linker-plugin for non-default plugin linker.
3891 * configure: Regenerate.
3892
7e84ad0b
NP
38932011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
3894
3895 PR bootstrap/48167
3896 * gengtype.c (files_rules): Added rule for cp/parser.h.
3897
2f36e14b
JJ
38982011-03-21 Jakub Jelinek <jakub@redhat.com>
3899
3900 PR target/48213
3901 * config/s390/s390.c (s390_delegitimize_address): Don't call
3902 lowpart_subreg if orig_x has BLKmode.
3903
62d784f7
KT
39042011-03-21 Kai Tietz <ktietz@redhat.com>
3905
3906 PR target/12171
9e43ad68
UB
3907 * doc/plugins.texi: Adjust documentation for plugin register_callback.
3908 * tree.h (attribute_spec): Add new member affects_type_identity.
3909 * attribs.c (empty_attribute_table): Adjust attribute_spec
3910 initializers.
62d784f7
KT
3911 * config/alpha/alpha.c: Likewise.
3912 * config/arc/arc.c: Likewise.
3913 * config/arm/arm.c: Likewise.
3914 * config/avr/avr.c: Likewise.
3915 * config/bfin/bfin.c: Likewise.
3916 * config/crx/crx.c: Likewise.
3917 * config/darwin.h: Likewise.
3918 * config/h8300/h8300.c: Likewise.
3919 * config/i386/cygming.h: Likewise.
3920 * config/i386/i386.c: Likewise.
3921 * config/ia64/ia64.c: Likewise.
3922 * config/m32c/m32c.c: Likewise.
3923 * config/m32r/m32r.c: Likewise.
3924 * config/m68hc11/m68hc11.c: Likewise.
3925 * config/m68k/m68k.c: Likewise.
3926 * config/mcore/mcore.c: Likewise.
3927 * config/mep/mep.c: Likewise.
3928 * config/microblaze/microblaze.c: Likewise.
3929 * config/mips/mips.c: Likewise.
3930 * config/rs6000/rs6000.c: Likewise.
3931 * config/rx/rx.c: Likewise.
3932 * config/sh/sh.c: Likewise.
3933 * config/sol2.h: Likewise.
3934 * config/sparc/sparc.c: Likewise.
3935 * config/spu/spu.c: Likewise.
3936 * config/stormy16/stormy16.c: Likewise.
3937 * config/v850/v850.c: Likewise.
3938
54833ec0
CLT
39392011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
3940
3941 * simplify-rtx.c (simplify_binary_operation_1): Handle
3942 (xor (and A B) C) case when B and C are both constants.
3943
14a41392
MX
39442011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
3945
3946 * tree-dfa.c (add_referenced_var): Fix typo in comment.
3947
806c3492
EB
39482011-03-20 Eric Botcazou <ebotcazou@adacore.com>
3949
3950 PR bootstrap/48168
3951 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
3952
65e0a0f3
JJ
39532011-03-20 Jakub Jelinek <jakub@redhat.com>
3954
3955 PR rtl-optimization/48156
3956 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
3957 assume df and df_lr are not NULL.
3958
b6a75dda
RR
39592011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3960
3961 PR debug/48023
3962 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
3963 between a call and its CALL_ARG_LOCATION note.
3964
5969b52d
KK
39652011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
3966
3967 PR debug/48178
3968 * config/sh/sh.c (find_barrier): Don't emit a constant pool
3969 between a call and its corresponding CALL_ARG_LOCATION note.
3970
f773c2bd
AS
39712011-03-19 Anatoly Sokolov <aesok@post.ru>
3972
3973 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
3974 instead of loop. Use HARD_REGISTER_NUM_P predicate.
3975 * haifa-sched.c (setup_ref_regs): Ditto.
3976 * caller-save.c (add_used_regs_1): Ditto.
3977 * dse.c (look_for_hardregs): Ditto.
3978 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
3979 * sched-rgn.c (check_live_1): Ditto.
3980
8bf872f9
JM
39812011-03-18 Joseph Myers <joseph@codesourcery.com>
3982
3983 * c-decl.c (diagnose_mismatched_decls): Give an error for
3984 redefining a typedef with variably modified type.
3985
ff8e2159
JM
39862011-03-18 Joseph Myers <joseph@codesourcery.com>
3987
3988 * c-decl.c (grokfield): Don't allow typedefs for structures or
3989 unions with no tag by default.
3990 * doc/extend.texi (Unnamed Fields): Update.
3991
16cc4440
UB
39922011-03-18 Uros Bizjak <ubizjak@gmail.com>
3993
3994 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3995 Rewrite using indirect functions.
3996 (lwp_slwpcb): Ditto.
3997 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
3998 (avx_vinsertf128<mode>): Ditto.
3999
e101e12e
AK
40002011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4001
4002 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
4003 unspecs.
4004
4627c7fb
AK
40052011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4006
4007 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 4008 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 4009
2d36b47f
MK
40102011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4011
4012 PR rtl-optimization/48170
4013 * gcse.c (hoist_code): Remove bogus asserts.
4014
2a3d7659
JL
40152011-03-18 Georg-Johann Lay <avr@gjlay.de>
4016
4017 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
4018 computation for prologue/epilogue.
4019
34c3ef05
RO
40202011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4021
4022 * Makefile.in (check-consistency): Remove.
4023
81f2b976
JJ
40242011-03-18 Jakub Jelinek <jakub@redhat.com>
4025
4026 PR debug/48176
4027 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
4028 arange_table_in_use is 0, but either text_section_used or
4029 cold_text_section_used is true. Don't call it if
4030 !info_section_emitted.
4031
68fd7765
AS
40322011-03-18 Anatoly Sokolov <aesok@post.ru>
4033
4034 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
4035 FUNCTION_VALUE_REGNO_P): Remove.
4036 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
4037 Remove.
4038 * config/avr/avr.c (avr_ret_register): Make static inline.
4039 (avr_function_value_regno_p): New function.
4040 (avr_libcall_value): Make static. Add 'func' argument.
4041 (avr_function_value): Make static. Rename 'func' argument to
4042 'fn_decl_or_type', forward it to avr_libcall_value. Call
4043 avr_ret_register function instead of RET_REGISTER macro.
4044 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4045
b4ef8aac
JM
40462011-03-18 Jason Merrill <jason@redhat.com>
4047
4048 PR c++/23372
4049 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
4050
09a52fc3
RG
40512011-03-18 Richard Guenther <rguenther@suse.de>
4052
4053 * doc/install.texi (--enable-gold): Remove.
4054 (--with-plugin-ld): Document.
4055 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
4056
2a3d7659 40572011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
4058
4059 PR middle-end/47790
4060 * expr.c (optimize_bitfield_assignment_op): Revamp to work
4061 again after expansion changes.
4062
2abbb0fe
CLT
40632011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
4064
4065 * combine.c (try_combine): Do simplification only call of
4066 subst() on i2 even when i1 is present. Update comments.
4067
2efd0aa6
KK
40682011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
4069
4070 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
4071 and UNSPEC_PCREL_SYMOFF.
4072
30a49b23
AK
40732011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4074
4075 * config/s390/s390.md: Use define_c_enum for the unspec constant
4076 definitions.
4077
419e1853
JJ
40782011-03-18 Richard Henderson <rth@redhat.com>
4079 Jakub Jelinek <jakub@redhat.com>
4080
4081 PR bootstrap/48161
4082 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
4083 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
4084
37875856
L
40852011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4086
4087 PR middle-end/47725
4088 * combine.c (cant_combine_insn_p): Don't check zero/sign
4089 extended hard registers.
4090
76069764
L
40912011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4092
4093 PR middle-end/47725
4094 * combine.c (cant_combine_insn_p): Check zero/sign extended
4095 hard registers.
4096
24da2019
AS
40972011-03-17 Anatoly Sokolov <aesok@post.ru>
4098
4099 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4100 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
4101 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
4102 Change return type to bool.
4103 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4104
a82ff31f
JJ
41052011-03-17 Jakub Jelinek <jakub@redhat.com>
4106
8b29c87a
JJ
4107 PR debug/48163
4108 * var-tracking.c (prepare_call_arguments): If CALL target
4109 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
4110 pc instead of looking it up using cselib_lookup and use
4111 Pmode for it if x has VOIDmode.
4112 * dwarf2out.c (gen_subprogram_die): If also both first and
4113 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
4114
a82ff31f
JJ
4115 PR debug/48163
4116 * function.c (assign_parms): For data.passed_pointer parms
4117 use MEM of data.entry_parm instead of data.entry_parm itself
4118 as DECL_INCOMING_RTL.
4119 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
4120 also when passed and declared mode is the same, DECL_RTL
4121 is a MEM with pseudo as address and DECL_INCOMING_RTL is
4122 a MEM too.
4123
82ce305c
JL
41242011-03-16 Jeff Law <law@redhat.com>
4125
4126 PR rtl-optimization/37273
4127 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4128 handle them like argument loads from stack slots. Do not double
4129 count memory for memory constants and argument loads from stack slots.
4130
fe58e02b
L
41312011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4132
4133 PR debug/48160
4134 * var-tracking.c (prepare_call_arguments): Check SUBREG.
4135
6fc4dbc7
L
41362011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4137
4138 PR target/48171
4139 * config/i386/i386.opt: Add Save to -mavx and -mfma.
4140
db3ed0b3
JJ
41412011-03-17 Jakub Jelinek <jakub@redhat.com>
4142
8054a389
JJ
4143 PR bootstrap/48153
4144 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
4145 if dwarf_strict.
4146 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
4147 Clear call_arg_locations and call_arg_loc_last always.
4148
db3ed0b3
JJ
4149 PR middle-end/48152
4150 * var-tracking.c (prepare_call_arguments): If argument needs to be
4151 passed by reference, adjust argtype and mode.
4152
1bce4ff3
RG
41532011-03-17 Richard Guenther <rguenther@suse.de>
4154
4155 PR middle-end/48134
4156 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
4157 a value make sure to fold the statement.
4158
7c71147d
CLT
41592011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
4160
4161 PR target/43872
4162 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
4163 return condition with !cfun->calls_alloca.
4164
0e1ee172
RG
41652011-03-17 Richard Guenther <rguenther@suse.de>
4166
4167 PR bootstrap/48148
4168 * lto-cgraph.c (input_overwrite_node): Clear the abstract
4169 origin for decls in other ltrans units.
4170 (input_varpool_node): Likewise.
4171
f8bce518
RG
41722011-03-17 Richard Guenther <rguenther@suse.de>
4173
4174 PR middle-end/48165
4175 * tree-object-size.c (compute_object_offset): Properly return
4176 the offset operand of MEM_REFs as sizetype.
4177
1b6fa860
JJ
41782011-03-17 Jakub Jelinek <jakub@redhat.com>
4179
dabd47e7
JJ
4180 PR rtl-optimization/48141
4181 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
4182 * dse.c: Include params.h.
4183 (active_local_stores_len): New variable.
4184 (add_wild_read, dse_step1): Clear it when setting active_local_stores
4185 to NULL.
4186 (record_store, check_mem_read_rtx): Decrease it when removing
4187 from the chain.
4188 (scan_insn): Likewise. Increase it when adding to chain, if it
4189 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
4190 set active_local_stores to NULL before the addition.
4191 * Makefile.in (dse.o): Depend on $(PARAMS_H).
4192
1b6fa860
JJ
4193 PR rtl-optimization/48141
4194 * dse.c (record_store): If no positions are needed in an insn
4195 that cannot be deleted, at least unchain it from active_local_stores.
4196
7b5cb7d6
DS
41972011-03-16 Dodji Seketeli <dodji@redhat.com>
4198
4199 PR debug/47510
4200 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
4201 (lookup_type_die_strip_naming_typedef): ... here.
4202 (get_context_die): Use it.
4203 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
4204 the anonymous struct named by the naming typedef.
4205
585e9d9d
L
42062011-03-16 H.J. Lu <hongjiu.lu@intel.com>
4207
4208 PR target/48154
4209 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
4210 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
4211
6261ab0e
JL
42122011-03-16 Jeff Law <law@redhat.com>
4213
4214 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 4215 check for operands of conditional. Allow type to be a pointer.
6261ab0e 4216
0b0081ec
RG
42172011-03-16 Richard Guenther <rguenther@suse.de>
4218
4219 PR tree-optimization/48149
4220 * fold-const.c (fold_binary_loc): Fold
4221 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
4222
64a3d647
RG
42232011-03-16 Richard Guenther <rguenther@suse.de>
4224
4225 PR tree-optimization/26134
4226 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
4227 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
4228 (non_rewritable_mem_ref_base): Handle complex type component
4229 accesses, constrain offsets for vector and complex extracts
4230 more properly.
4231
ef13324e
RG
42322011-03-16 Richard Guenther <rguenther@suse.de>
4233
4234 PR tree-optimization/48146
4235 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
4236 operands avoiding the need for renaming.
4237
f0eddb90
RG
42382011-03-16 Richard Guenther <rguenther@suse.de>
4239
4240 * gimple-fold.c (maybe_fold_reference): Open-code relevant
4241 constant folding. Move MEM_REF canonicalization first.
4242 Rely on fold_const_aggregate_ref for initializer folding.
4243 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
4244
e42348b8
JJ
42452011-03-16 Jakub Jelinek <jakub@redhat.com>
4246
29f10e71
JJ
4247 PR middle-end/48136
4248 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4249 arg0/arg1 or their arguments are always fold converted to matching
4250 types.
4251
e42348b8
JJ
4252 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
4253 to nargs.
4254
55b46574
RO
42552011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4256
4257 PR lto/46944
4258 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
4259 Handle in-tree gold.
4260 (ld_vers): Extract binutils version for gold.
4261 (gcc_cv_ld_hidden): Handle gold here.
4262 (gcc_cv_lto_plugin): Determine level of linker plugin support.
4263 * configure: Regenerate.
4264 * config.in: Regenerate.
4265 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
4266 -fuse-linker-plugin otherwise.
4267 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
4268 (LINK_COMMAND_SPEC): Use it.
4269 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
4270
2b1c5433
JJ
42712011-03-16 Jakub Jelinek <jakub@redhat.com>
4272
c2969d8e
JJ
4273 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
4274 * calls.c: Remove debug.h include.
4275 (emit_call_1): Don't call virtual_call_token debug hook.
4276 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
4277 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
4278 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
4279 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
4280 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
4281 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
4282 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
4283 dwarf2out_virtual_call): Remove.
4284 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
4285 copy_call_info and virtual_call hooks.
4286 (dwarf2out_init): Don't initialize vcall_insn_table,
4287 debug_dcall_section and debug_vcall_section.
4288 (prune_unused_types): Don't mark nodes from dcall_table.
4289 (dwarf2out_finish): Don't output dcall or vcall tables.
4290 * final.c (final_scan_insn): Don't call direct_call or
4291 virtual_call debug hooks.
4292 * debug.h (struct gcc_debug_hooks): Remove direct_call,
4293 virtual_call_token, copy_call_info and virtual_call hooks.
4294 (debug_nothing_uid): Remove prototype.
4295 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
4296 copy_call_info and virtual_call hooks.
4297 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4298 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
4299 * debug.c (do_nothing_debug_hooks): Likewise.
4300 (debug_nothing_uid): Remove.
4301 * doc/invoke.texi (-fenable-icf-debug): Remove.
4302 * common.opt (-fenable-icf-debug): Likewise.
4303
325f5379
JJ
4304 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
4305 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
4306 call's MEM. Handle functions returning aggregate through a hidden
4307 first pointer. For virtual calls add clobbered pc to call arguments
4308 chain.
4309 * dwarf2out.c (gen_subprogram_die): Emit
4310 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
4311 can't be emitted.
4312
a58a8e4b
JJ
4313 PR debug/45882
4314 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
4315 * rtl.h (ENTRY_VALUE_EXP): Define.
4316 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
4317 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
4318 * print-rtl.c (print_rtx): Likewise.
4319 * gengtype.c (adjust_field_rtx_def): Likewise.
4320 * var-tracking.c (vt_add_function_parameter): Adjust
4321 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
4322 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
4323 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
4324 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
4325 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
4326
2b1c5433
JJ
4327 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
4328 Call var_location debug hook even on CALL_INSNs.
4329 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
4330 * rtl.def (ENTRY_VALUE): New.
4331 * dwarf2out.c: Include cfglayout.h.
4332 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4333 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
4334 (struct call_arg_loc_node): New type.
4335 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
4336 tail_call_site_count): New variables.
4337 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
4338 DW_TAG_GNU_call_site_parameter.
4339 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
4340 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
4341 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
4342 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
4343 and DW_AT_GNU_all_source_call_sites.
4344 (mem_loc_descriptor): Handle ENTRY_VALUE.
4345 (add_src_coords_attributes): Don't add enything if
4346 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
4347 (dwarf2out_abstract_function): Save and clear call_arg_location,
4348 call_site_count and tail_call_site_count around dwarf2out_decl call.
4349 (gen_call_site_die): New function.
4350 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
4351 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
4352 (dwarf2out_function_decl): Clear call_arg_locations,
4353 call_arg_loc_last, set call_site_count and tail_call_site_count
4354 to -1 and free block_map.
4355 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
4356 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
4357 followed by any real instructions.
4358 (dwarf2out_begin_function): Set call_site_count and
4359 tail_call_site_count to 0.
4360 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
4361 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
4362 attempt to force a DIE for it and worst case remove the attribute.
4363 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
4364 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
4365 the decl itself.
4366 * var-tracking.c: Include tm_p.h.
4367 (vt_stack_adjustments): For calls call note_register_arguments.
4368 (argument_reg_set): New variable.
4369 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
4370 ensure the VALUE is resolved.
4371 (call_arguments): New variable.
4372 (prepare_call_arguments): New function.
4373 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
4374 (struct expand_loc_callback_data): Add ignore_cur_loc field.
4375 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
4376 always use the best expression.
4377 (vt_expand_loc): Add ignore_cur_loc argument.
4378 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
4379 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
4380 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
4381 note for all calls.
4382 (vt_add_function_parameter): Use cselib_lookup_from_insn.
4383 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
4384 argument. Don't call cselib_preserve_only_values and
4385 cselib_reset_table.
4386 (note_register_arguments): New function.
4387 (vt_initialize): Compute argument_reg_set. Call
4388 vt_add_function_parameters before processing basic blocks instead of
4389 afterwards. For calls call prepare_call_arguments before calling
4390 cselib_process_insn.
4391 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
4392 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
4393 (var-tracking.o): Depend on $(TM_P_H).
4394 * cfglayout.h (insn_scope): New prototype.
4395 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
4396 * cfglayout.c (insn_scope): No longer static.
4397 * insn-notes.def (CALL_ARG_LOCATION): New.
4398 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
4399 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
4400 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
4401 nothing for DECL_EXTERNAL BLOCK_VARS.
4402
9ef13bd0
AM
44032011-03-16 Alan Modra <amodra@gmail.com>
4404
4405 PR target/45844
4406 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
4407 create invalid offset address for vsx splat insn.
4408 * config/rs6000/predicates.md (splat_input_operand): New.
4409 * config/rs6000/vsx.md (vsx_splat_*): Use it.
4410
56b67510
XDL
44112011-03-15 Xinliang David Li <davidxl@google.com>
4412
4413 PR c/47837
4414 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
4415 (normalize_preds): New function.
4416 (is_use_properly_guarded): Normalize def predicates.
4417
80fffdef
RR
44182011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4419
732f37c6 4420 PR target/46788
80fffdef
RR
4421 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
4422 in the output template.
4423
930672ad
RG
44242011-03-15 Richard Guenther <rguenther@suse.de>
4425
4426 PR middle-end/47650
4427 * tree-pretty-print.c (dump_function_declaration): Properly
4428 dump unprototyped and varargs function types.
4429
c7ee7b45
RG
44302011-03-15 Richard Guenther <rguenther@suse.de>
4431
4432 PR tree-optimization/13954
4433 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
4434 and friends.
4435
b2ad5e37
RG
44362011-03-15 Richard Guenther <rguenther@suse.de>
4437
4438 PR tree-optimization/48037
4439 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
4440 selects into BIT_FIELD_REFs.
4441 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
4442 vector select.
4443
7ee93d4e
JJ
44442011-03-15 Jakub Jelinek <jakub@redhat.com>
4445
4446 PR tree-optimization/48129
4447 * builtins.c (fold_builtin_snprintf): Convert to type of
4448 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
4449 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
4450
e106efc7
RG
44512011-03-15 Richard Guenther <rguenther@suse.de>
4452
4453 PR tree-optimization/41490
4454 * tree-ssa-dce.c (propagate_necessity): Handle returns without
4455 value but with VUSE.
4456 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
4457 return statements.
4458 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
4459 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
4460 * tree-tailcall.c (find_tail_calls): Ignore returns.
4461
17dea42f
RG
44622011-03-15 Richard Guenther <rguenther@suse.de>
4463
4464 PR middle-end/48031
4465 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
4466 or variable-indexed array accesses when in gimple form.
4467
01c77a60
RG
44682011-03-15 Richard Guenther <rguenther@suse.de>
4469
16cc4440 4470 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 4471
77b0791e
AM
44722011-03-15 Alan Modra <amodra@gmail.com>
4473
4474 PR target/48032
4475 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
4476 presume symbol_refs without a symbol_ref_decl are suitably
4477 aligned, nor other trees we may see here. Handle anchor symbols.
4478 (legitimate_constant_pool_address_p): Comment. Add mode param.
4479 Check cmodel=medium addresses. Adjust all calls.
4480 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
4481 creating cmodel=medium optimized access to locals.
4482 * config/rs6000/constraints.md (R): Pass QImode to
4483 legitimate_constant_pool_address_p.
4484 * config/rs6000/predicates.md (input_operand): Pass mode to
4485 legitimate_constant_pool_address_p.
4486 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
4487 Update prototype.
4488
35f61ba4
MM
44892011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4490
4491 PR target/48053
4492 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
4493 64-bit constants being loaded into registers other than GPRs such
4494 as loading 0 into a VSX register.
4495
07332e6d
RO
44962011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4497
16cc4440 4498 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 4499
de888d90
JJ
45002011-03-14 Jakub Jelinek <jakub@redhat.com>
4501
ba3ceb2d
JJ
4502 PR middle-end/47917
4503 * builtins.c (fold_builtin_snprintf): New function.
4504 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
4505 (fold_builtin_4): Likewise.
4506
2e64f8b8
JJ
4507 PR middle-end/38878
4508 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
4509 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
4510 and C - X == X also strip nops from +/-/p+ operand.
4511 When optimizing -X == C, fold C to arg0's type.
4512
de888d90
JJ
4513 PR debug/47946
4514 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
4515 emit it as add_AT_int instead of add_AT_unsigned.
4516
45172011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
4518
4519 * unwind-dw2.c: Include sys/sdt.h if it exists.
4520 (_Unwind_DebugHook): Use STAP_PROBE2.
4521 * config.in, configure: Rebuild.
4522 * configure.ac: Check for sys/sdt.h.
4523
d34abfd2
UB
45242011-03-14 Uros Bizjak <ubizjak@gmail.com>
4525
4526 * config/i386/i386.md (ROUND_FLOOR): New constant.
4527 (ROUND_CEIL): Ditto.
4528 (ROUND_TRUNC): Ditto.
4529 (ROUND_MXCSR): Ditto.
4530 (ROUND_NO_EXC): Ditto.
4531 (rint<mode>2): Use new defines instead of numerical constants.
4532 (floor<mode>2): Ditto.
4533 (ceil<mode>2): Ditto.
4534 (btrunc<mode>2): Ditto.
4535 * config/i386/i386-builtin-types.def: Define ROUND function type
4536 aliases.
4537 * config/i386/i386.c (enum ix86_builtins): Add
4538 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
4539 (struct builtin_description): Add
4540 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
4541 (ix86_expand_sse_round): New static function.
4542 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
4543 function types.
4544 (ix86_builtin_vectorized_function): Handle
4545 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
4546
87f9e23d
TT
45472011-03-14 Tom Tromey <tromey@redhat.com>
4548
4549 * c-parser.c (c_parser_asm_string_literal): Clear
4550 warn_overlength_strings.
4551
b3ab9ea2
TT
45522011-03-14 Tom Tromey <tromey@redhat.com>
4553
4554 * c-parser.c (disable_extension_diagnostics): Save
4555 warn_overlength_strings.
4556 (restore_extension_diagnostics): Restore warn_overlength_strings.
4557
6bd73dd8
JJ
45582011-03-14 Jakub Jelinek <jakub@redhat.com>
4559
4560 * BASE-VER: Change to 4.7.0.
4561
7f4d6e1b
RG
45622011-03-14 Richard Guenther <rguenther@suse.de>
4563
4564 PR middle-end/48098
4565 * tree.c (build_vector_from_val): Adjust assert to requirements
4566 and reality.
4567
c6104ef1
JJ
45682011-03-14 Jakub Jelinek <jakub@redhat.com>
4569
4570 PR bootstrap/48102
d34abfd2 4571 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 4572
dfa95e19
AT
45732011-03-14 Andreas Tobler <andreast@fgznet.ch>
4574
4575 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
4576 terms of target_flags_explicit. Adjust copyright year.
4577
4578 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
4579 * config/rs6000/t-freebsd: New file. Add override for
4580 LIB2FUNCS_EXTRA.
4581
bb322018
CD
45822011-03-13 Chris Demetriou <cgd@google.com>
4583
4584 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
4585 (-fno-diagnostics-show-option): this, to reflect current default.
4586 (-Werror=): Update text about -fno-diagnostics-show-option.
4587
12b1c80b
PB
45882011-03-12 Peter Bergner <bergner@vnet.ibm.com>
4589
4590 PR target/48053
4591 * config/rs6000/predicates.md (easy_vector_constant_add_self,
4592 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
4593 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
4594 mode is not V2DImode or V2DFmode.
4595 (vspltis_constant): Do not handle V2DImode and V2DFmode.
4596 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
4597 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
4598 registers to 0.
4599 (movdi_internal64): Likewise.
4600
57d598f7
SP
46012011-03-12 Sebastian Pop <sebastian.pop@amd.com>
4602
4603 PR tree-optimization/47127
4604 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
4605 parameter.
4606 (set_cloog_options): Same.
4607 (scop_to_clast): Same.
4608 (print_clast_stmt): Do not call cloog_state_malloc and
4609 cloog_state_free.
4610 (print_generated_program): Same.
4611 (gloog): Same.
4612 * graphite-clast-to-gimple.h (cloog_state): Declared.
4613 (scop_to_clast): Adjust declaration.
4614 * graphite.c (cloog_state): Defined here.
4615 (graphite_initialize): Call cloog_state_malloc.
4616 (graphite_finalize): Call cloog_state_free.
4617
f231b5ff
JM
46182011-03-11 Jason Merrill <jason@redhat.com>
4619
4620 * attribs.c (lookup_attribute_spec): Take const_tree.
4621 * tree.h: Adjust.
4622
6a4e2bd5
JM
46232011-03-11 Joseph Myers <joseph@codesourcery.com>
4624
4625 * config/sparc/sparc.c (sparc_option_override): Use
4626 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
4627
a758fd67
RG
46282011-03-11 Richard Guenther <rguenther@suse.de>
4629
4630 PR tree-optimization/48067
4631 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
4632 multiplication result will be only used once on the target
4633 stmt.
4634
03dfda54
RG
46352011-03-11 Richard Guenther <rguenther@suse.de>
4636
4637 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
4638
5f11a50a
RG
46392011-03-11 Richard Guenther <rguenther@suse.de>
4640
4641 PR lto/48073
4642 * tree.c (find_decls_types_r): Do not walk types only reachable
4643 from IDENTIFIER_NODEs.
4644
4074f163
JJ
46452011-03-11 Jakub Jelinek <jakub@redhat.com>
4646
4647 PR middle-end/48044
4648 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
4649 all vnode->force_output nodes as needed.
4650
30f7cdcd
JM
46512011-03-11 Jason Merrill <jason@redhat.com>
4652
4653 PR c++/48069
4654 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
4655 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
4656
62ecfeb8
MJ
46572011-03-11 Martin Jambor <mjambor@suse.cz>
4658
4659 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
4660 cgraph_node.
4661
e89e03ab
JJ
46622011-03-11 Jakub Jelinek <jakub@redhat.com>
4663
4664 PR tree-optimization/48063
4665 * ipa-inline.c (cgraph_decide_inlining): Don't try to
4666 inline functions called once if !tree_can_inline_p (node->callers).
4667
efbe978b 46682011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 4669
efbe978b
EB
4670 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
4671 extra_objs.
9d6193a7
CL
4672 * config/score/score3.c: Delete.
4673 * config/score/score3.h: Delete.
4674 * config/score/mul-div.S: Delete.
4675 * config/score/sfp-machine.h: Add new file.
4676 * config/score/constraints.md: Add new file.
4677 * config/score/t-score-softfp: Add new file.
efbe978b 4678 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
4679 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
4680 (score7_extra_constraint): Delete.
efbe978b 4681 (score7_option_override): Remove unused code.
9d6193a7
CL
4682 * config/score/score.c: Remove score3 and score5 define and code.
4683 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 4684 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
4685 * config/score/score.opt: Remove score3 and score5 options.
4686
5de27cca
JDA
46872011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4688
4689 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
4690 when _HPUX_SOURCE is defined.
4691 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
4692
18d92053
JM
46932011-03-10 Jason Merrill <jason@redhat.com>
4694
4695 PR c++/48029
4696 * stor-layout.c (layout_type): Don't set structural equality
4697 on arrays of incomplete type.
4698 * tree.c (type_hash_eq): Handle comparing them properly.
4699
67a2f76d
JJ
47002011-03-10 Jakub Jelinek <jakub@redhat.com>
4701
4702 PR debug/48043
18d92053 4703 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
4704 result mode matches original rtl mode.
4705
d845b2f9
NC
47062011-03-10 Nick Clifton <nickc@redhat.com>
4707
4708 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 4709 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 4710
db7ec035
JJ
47112011-03-09 Jakub Jelinek <jakub@redhat.com>
4712
4713 PR rtl-optimization/47866
4714 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
4715 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
4716 if target wasn't scalar.
4717 * function.c (assign_stack_temp_for_type): Assert that neither
4718 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
4719 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
4720 macro.
4721 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
4722
5d304e47
AK
47232011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4724
4725 * config/s390/s390-protos.h (s390_label_align): New prototype.
4726 * config/s390/s390.c (s390_label_align): New function.
4727 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
4728
93b826f0
MM
47292011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4730
4731 PR target/47755
4732 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
4733 V2DI/V2DF constants. Only all 0's or all 1's are easy.
4734 (output_vec_const_move): Ditto.
4735
ef78aed6
AS
47362011-03-08 Anatoly Sokolov <aesok@post.ru>
4737
4738 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
4739 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
4740 * config/mips/mips.c (mips_preferred_reload_class): Make static.
4741 Change 'rclass' argument and result type to reg_class_t.
4742 (TARGET_PREFERRED_RELOAD_CLASS): Define.
4743
5f892aa0
GJL
47442011-03-08 Georg-Johann Lay <avr@gjlay.de>
4745
9e43ad68
UB
4746 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4747 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
4748 (TARGET_MEMORY_MOVE_COST): Define.
4749 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 4750
32bd2409
JJ
47512011-03-08 Jakub Jelinek <jakub@redhat.com>
4752
530a4800
JJ
4753 PR debug/47881
4754 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
4755 removed anything.
4756
32bd2409
JJ
4757 PR tree-optimization/48022
4758 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
4759 for EQ/NE_EXPR.
4760
c7148991
JJ
47612011-03-07 Jakub Jelinek <jakub@redhat.com>
4762
4763 PR debug/47991
4764 * var-tracking.c (find_use_val): Return NULL for
4765 cui->sets && cui->store_p BLKmode MEMs.
4766
43070a6e
AS
47672011-03-07 Anatoly Sokolov <aesok@post.ru>
4768
4769 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4770 Remove.
4771 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
4772 xstormy16_print_operand_address): Remove.
4773 * config/stormy16/stormy16.c (xstormy16_print_operand,
4774 xstormy16_print_operand_address): Make static.
4775 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4776
efbe978b 47772011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
4778
4779 PR target/47862
4780 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4781 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
4782 before definition.
4783
cec8ac0b
ZD
47842011-03-07 Zdenek Dvorak <ook@ucw.cz>
4785
4786 PR bootstrap/48000
4787 * cfgloopmanip.c (fix_bb_placements): Return immediately
4788 if FROM is BASE_LOOP's header.
4789
59527282
PW
47902011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
4791
4792 * gimplify.c (gimplify_function_tree): Fix building calls
4793 to __builtin_return_address.
4794
617718f7
AM
47952011-03-07 Alan Modra <amodra@gmail.com>
4796
4797 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
4798 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
4799 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
4800 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
4801 return_mode args.
4802 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
4803 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
4804 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
4805 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
4806 * config/rs6000/rs6000.c
4807 (rs6000_elf_end_indicate_exec_stack): Rename to..
4808 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
4809 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
4810 (rs6000_file_start): ..here.
4811 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
4812 file scope variables.
4813 (call_ABI_of_interest): New function.
4814 (init_cumulative_args): Set above vars when function return value
4815 is a float, vector, or small struct.
4816 (rs6000_function_arg_advance_1): Likewise for function args.
4817 (rs6000_va_start): Set rs6000_passes_float if variable arg function
4818 references float args.
4819
38528d50
MX
48202011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
4821
4822 * doc/cfg.texi: Remove "See" before @ref.
4823 * doc/invoke.texi: Likewise.
4824
f42cf4f4
JM
48252011-03-05 Jason Merrill <jason@redhat.com>
4826
4827 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
4828
804a304d
AG
48292011-03-05 Anthony Green <green@moxielogic.com>
4830
4831 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
4832
634ee309
ZD
48332011-03-05 Zdenek Dvorak <ook@ucw.cz>
4834
4835 PR rtl-optimization/47899
4836 * cfgloopmanip.c (fix_bb_placements): Fix first argument
4837 to flow_loop_nested_p when moving the loop upward.
4838
6fe471c8
RE
48392011-03-05 Richard Earnshaw <rearnsha@arm.com>
4840
4841 PR target/47719
4842 * arm.md (movhi_insn_arch4): Accept any immediate constant.
4843
cc58ceee
JJ
48442011-03-05 Jakub Jelinek <jakub@redhat.com>
4845
4846 PR tree-optimization/47967
4847 * ipa-cp.c (build_const_val): Return NULL instead of creating
4848 VIEW_CONVERT_EXPR for mismatching sizes.
4849 (ipcp_create_replace_map): Return NULL if build_const_val failed.
4850 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
4851 give up on versioning.
4852
ea868305
AM
48532011-03-05 Alan Modra <amodra@gmail.com>
4854
4855 PR target/47986
4856 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4857 full cmodel medium/large lo_sum + high addresses.
4858
bc6ce334
AK
48592011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4860
4861 * config/s390/s390.c (s390_decompose_address): Reject non-literal
4862 pool references in UNSPEC_LTREL_OFFSET.
4863
87e7b310
JH
48642011-03-04 Jan Hubicka <jh@suse.cz>
4865
4866 PR lto/47497
4867 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
4868 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
4869 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
4870 Add node pointers.
87e7b310
JH
4871 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
4872 cgraph_add_thunk): Add node pointers.
4873 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
4874 associated to right node.
4875 (input_node): Update use of cgraph_same_body_alias
4876 and cgraph_add_thunk.
4877
d9c64246
CF
48782011-03-04 Changpeng Fang <changpeng.fang@amd.com>
4879
4880 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
4881 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
4882 modes when the flag -mprefer-avx128 is on.
d9c64246 4883
08707076
RS
48842011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
4885
4886 * dwarf2out.c (compare_loc_operands): Fix address handling.
4887
52517c81
AM
48882011-03-04 Alan Modra <amodra@gmail.com>
4889
4890 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
4891
b147c5b9
RG
48922011-03-04 Richard Guenther <rguenther@suse.de>
4893
4894 PR middle-end/47968
4895 * expmed.c (extract_bit_field_1): Prefer vector modes that
4896 vec_extract patterns can handle.
4897
8750672f
RG
48982011-03-04 Richard Guenther <rguenther@suse.de>
4899
4900 PR middle-end/47975
4901 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
4902
9eac0f2a
RH
49032011-03-04 Richard Henderson <rth@redhat.com>
4904
4905 * explow.c (emit_stack_save): Remove 'after' parameter.
4906 (emit_stack_restore): Likewise.
4907 * expr.h: Update to match.
4908 * builtins.c, calls.c, stmt.c: Likewise.
4909 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
4910 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
4911 * function.c (expand_function_end): Insert the emit_stack_save
4912 sequence before parm_birth_insn instead of after.
4913
dfee1406
UB
49142011-03-03 Uros Bizjak <ubizjak@gmail.com>
4915
4916 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
4917 (ssse3_pmaddubsw128): Ditto.
4918 (ssse3_pmaddubsw): Ditto.
4919
f1d4c3de
SE
49202011-03-03 Steve Ellcey <sje@cup.hp.com>
4921
4922 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
4923
71f3a3f5
JJ
49242011-03-03 Jakub Jelinek <jakub@redhat.com>
4925
423ed416
JJ
4926 PR c/47963
4927 * gimplify.c (omp_add_variable): Only call omp_notice_variable
4928 on TYPE_SIZE_UNIT if it is a DECL.
4929
71f3a3f5
JJ
4930 PR debug/47283
4931 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
4932 first operand is not is_gimple_mem_ref_addr, try to fold it.
4933 If the operand still isn't is_gimple_mem_ref_addr, clear
4934 MEM_EXPR on op0.
4935
4b1a5c0d
RG
49362011-03-03 Richard Guenther <rguenther@suse.de>
4937
4938 PR middle-end/47283
4939 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
4940 match comment.
4941 (refs_may_alias_p_1): For release branches return true if
4942 we are confused by our input.
4943
b46616fd
AK
49442011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4945
4946 * config/s390/s390.c (s390_function_value): Rename to ...
4947 (s390_function_and_libcall_value): ... this.
4948 (s390_function_value): New function.
4949 (s390_libcall_value): New function.
dfee1406 4950 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
4951 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
4952 target macro definitions.
4953 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
4954
46d8fabb
JM
49552011-03-02 Joseph Myers <joseph@codesourcery.com>
4956
4957 * config/i386/freebsd64.h (CC1_SPEC): Define.
4958 * config/i386/linux64.h (CC1_SPEC): Define.
4959 * config/i386/x86-64.h (CC1_SPEC): Don't define.
4960
6b1ce545
AS
49612011-03-02 Anatoly Sokolov <aesok@post.ru>
4962
4963 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4964 Remove.
4965 * config/stormy16/stormy16.c: Include reload.h.
4966 (xstormy16_memory_move_cost): New function.
4967 (TARGET_MEMORY_MOVE_COST): Define.
4968
34161e98
RS
49692011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
4970
4971 PR rtl-optimization/47925
4972 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
4973 with side effects. Remove the more-specific check for volatile asms.
4974
f60a97cf
AM
49752011-03-02 Alan Modra <amodra@gmail.com>
4976
4977 PR target/47935
4978 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
4979 toc relative addresses for valid offsets.
4980
f2ca11ca
RG
49812011-03-01 Richard Guenther <rguenther@suse.de>
4982
4983 PR tree-optimization/47890
4984 * tree-vect-loop.c (get_initial_def_for_induction): Set
4985 related stmt properly.
4986
7a00d9ea
RG
49872011-03-01 Richard Guenther <rguenther@suse.de>
4988
4989 PR lto/47924
4990 * lto-streamer.c (lto_record_common_node): Also register
4991 the canonical type.
4992
06c7edcc
RG
49932011-03-01 Richard Guenther <rguenther@suse.de>
4994
4995 PR lto/46911
4996 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4997 Do not stream DECL_ABSTRACT_ORIGIN.
4998 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4999 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5000 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5001 Do not stream DECL_ABSTRACT_ORIGIN.
5002 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5003 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5004
998871e9
AS
50052011-02-28 Anatoly Sokolov <aesok@post.ru>
5006
5007 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
5008 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 5009 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
5010 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
5011 Add 'outgoing' argument.
5012 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
5013 function.
5014 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5015 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5016
94369251
KT
50172011-02-28 Kai Tietz <kai.tietz@onevision.com>
5018
5019 PR debug/28047
5020 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
5021 (lookup_filename): Likewise.
b2e2ea67 5022 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 5023
80a832cd
JJ
50242011-02-28 Bernd Schmidt <bernds@codesourcery.com>
5025 Jakub Jelinek <jakub@redhat.com>
5026
5027 PR middle-end/47893
5028 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
5029 (assign_stack_local_1): Change last argument type to int.
5030 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
5031 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 5032 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
5033 (assign_stack_local): Adjust caller.
5034 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
5035 of assign_stack_local, pass 0 as last argument.
5036 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
5037 callers.
5038
1b500976
JJ
50392011-02-28 Jakub Jelinek <jakub@redhat.com>
5040
f61c6f34
JJ
5041 PR debug/47283
5042 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
5043 Use target address_mode and pointer_mode hooks instead of hardcoded
5044 Pmode and ptr_mode. Handle some simple cases of extending if
5045 POINTERS_EXTEND_UNSIGNED < 0.
5046 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
5047 Call convert_debug_memory_address.
5048 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
5049 convert_debug_memory_address.
5050
1b500976
JJ
5051 PR middle-end/46790
5052 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
5053 * configure: Regenerated.
5054 * config.in: Regenerated.
5055 * varasm.c (default_function_section): Return NULL
b2e2ea67 5056 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 5057
2f2935b6
MJ
50582011-02-28 Martin Jambor <mjambor@suse.cz>
5059
5060 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
5061 the description to match the printed values.
5062
474086eb
RG
50632011-02-28 Richard Guenther <rguenther@suse.de>
5064
5065 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
5066 of the copied scope tree.
5067
15bf6f3a
RW
50682011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5069
5070 * doc/extend.texi (Function Attributes): Avoid deeply (and
5071 wrongly) nested tables.
5072
f6b439c9
JJ
50732011-02-27 Jakub Jelinek <jakub@redhat.com>
5074
5075 PR middle-end/47903
5076 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
5077 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
5078 r isn't op0 nor op1.
5079
1d8ca2c7
GJL
50802011-02-23 Georg-Johann Lay <avr@gjlay.de>
5081
5082 * config/avr/avr.md: Remove magic comment for emacs.
5083
593fca4b
GJL
50842011-02-23 Georg-Johann Lay <avr@gjlay.de>
5085
5086 PR target/45261
5087 * config/avr/avr.c (avr_option_override): Use error on bad options.
5088 (avr_help): New function.
5089 (TARGET_HELP): Define.
5090
6609216e
GJL
50912011-02-22 Georg-Johann Lay <avr@gjlay.de>
5092
5093 PR target/42240
5094 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
5095 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
5096
03d458af
GP
50972011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
5098
5099 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
5100 (ARM Options): Ditto.
5101 (i386 and x86-64 Options): Ditto.
5102 (RX Options): Ditto.
5103 (SPARC Options): Ditto.
5104
1c379b78
TC
51052011-02-26 Tijl Coosemans <tijl@coosemans.org>
5106
5107 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
5108 FreeBSD 6 and later. Generally use cpu generic.
5109
d5ed058c 51102011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 5111
d5ed058c
GP
5112 * doc/cpp.texi: Update copyright years.
5113
509d65dd 51142011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 5115
509d65dd 5116 PR target/46898
308d39cd
SB
5117 * config/lm32/lm32.md (ashrsi3): Added needed variable.
5118
509d65dd 51192011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 5120
509d65dd 5121 PR target/46898
308d39cd
SB
5122 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
5123 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
5124 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
5125 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 5126 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
5127 (gen_int_relational): Move declarations to start of function.
5128
822ba6d7
EB
51292011-02-25 Eric Botcazou <ebotcazou@adacore.com>
5130
5131 PR tree-optimization/45470
5132 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
5133 can throw internally only.
5134 * tree-vect-stmts.c (vectorizable_call): Likewise.
5135
ef795fc2
AS
51362011-02-24 Anatoly Sokolov <aesok@post.ru>
5137
5138 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
5139 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5140 * config/stormy16/stormy16-protos.h
5141 (xstormy16_preferred_reload_class): Remove.
5142 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
5143 static. Change 'rclass' argument and return type to reg_class_t.
5144 (TARGET_PREFERRED_RELOAD_CLASS,
5145 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5146
1c3277ee
RG
51472011-02-24 Richard Guenther <rguenther@suse.de>
5148
5149 * lto-streamer-in.c (input_bb): Do not find referenced vars
5150 in debug statements.
5151
67e18edb
JM
51522011-02-23 Jason Merrill <jason@redhat.com>
5153
5154 * common.opt (fabi-version): Document v5 and v6.
5155
b14fad9d
RG
51562011-02-23 Richard Guenther <rguenther@suse.de>
5157
5158 PR tree-optimization/47849
5159 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
5160
7fcf46f5
JZ
51612011-02-23 Jie Zhang <jie@codesourcery.com>
5162
5163 * opts-common.c (decode_cmdline_option): Print empty string
5164 argument as "" in decoded->orig_option_with_args_text.
5165 * gcc.c (execute): Print empty string argument as ""
5166 in the verbose output.
5167 (do_spec_1): Keep empty string argument.
5168
f85b70fd
NF
51692011-02-23 Nathan Froyd <froydnj@codesourcery.com>
5170
5171 * config.gcc: Declare score-* and crx-* obsolete.
5172
b152a615
JZ
51732011-02-23 Jie Zhang <jie@codesourcery.com>
5174
5175 PR rtl-optimization/47763
5176 * web.c (web_main): Ignore naked clobber when replacing register.
5177
bb6e77bc
AS
51782011-02-22 Anatoly Sokolov <aesok@post.ru>
5179
5180 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5181 Remove.
5182
68bf6491
SP
51832011-02-22 Sebastian Pop <sebastian.pop@amd.com>
5184
5185 PR doc/47848
5186 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
5187
88ee1fc7
MS
51882011-02-22 Mike Stump <mikestump@comcast.net>
5189
5190 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
5191 assembler.
5192 * configure: Regenerate.
5193
6042d1dd
CLT
51942011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
5195
5196 PR rtl-optimization/46002
5197 * ira-color.c (update_copy_costs): Change class intersection
5198 test to reg_class_contents[] test of 'hard_regno'.
5199
7de97f9e
JM
52002011-02-21 Joseph Myers <joseph@codesourcery.com>
5201
5202 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
5203 than Driver option.
5204 * config/hpux11.opt (mt): Likewise.
5205 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
5206 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
5207 * config/vax/elf.opt (mno-asm-pic): Likewise.
5208 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
5209
d1d46f9f
MS
52102011-02-21 Mike Stump <mikestump@comcast.net>
5211
5212 PR target/47822
5213 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
5214 tree so we can get save the type.
5215 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
5216 for CFString instead of trying to use past the end of the builtins.
5217 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
5218 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
5219 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
5220 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
5221 Rename to darwin_builtin_cfstring.
5222 (darwin_init_cfstring_builtins): Return the built type.
5223
23e0d930
UB
52242011-02-21 Uros Bizjak <ubizjak@gmail.com>
5225
5226 PR target/47840
5227 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
5228 (_mm256_insert_epi64): Use _mm_insert_epi64.
5229
192997cf
AS
52302011-02-21 Anatoly Sokolov <aesok@post.ru>
5231
5232 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5233 * config/stormy16/stormy16-protos.h
5234 (xstormy16_mode_dependent_address_p): Remove.
5235 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
5236 Make static. Change return type to bool. Change argument type to
5237 const_rtx. Remove dead code.
5238 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5239
e292d003
RG
52402011-02-21 Richard Guenther <rguenther@suse.de>
5241
5242 PR lto/47820
5243 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5244 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
5245 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
5246 TUs context.
23e0d930 5247 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
5248 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
5249
77f846e9
RG
52502011-02-20 Richard Guenther <rguenther@suse.de>
5251
5252 PR lto/47822
5253 * tree.c (free_lang_data_in_decl): Clean builtins from
5254 the TU decl BLOCK_VARS.
23e0d930 5255
b2cddfc8
AO
52562011-02-19 Alexandre Oliva <aoliva@redhat.com>
5257
5258 PR debug/47620
5259 PR debug/47630
5260 * haifa-sched.c (fix_tick_ready): Skip tick computation
5261 for debug insns.
5262
becf4c11
RG
52632011-02-19 Richard Guenther <rguenther@suse.de>
5264
5265 PR lto/47647
5266 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
5267 Remove lazy BLOCK_VARS streaming.
5268 (lto_input_ts_block_tree_pointers): Likewise.
5269 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
5270
27f98305
JM
52712011-02-19 Joseph Myers <joseph@codesourcery.com>
5272
5273 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
5274
064bf3f4
JM
52752011-02-19 Joseph Myers <joseph@codesourcery.com>
5276
5277 * config/i386/biarch32.h, config/i386/mach.h,
5278 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
5279
9215ddc3
JJ
52802011-02-19 Jakub Jelinek <jakub@redhat.com>
5281
5282 PR target/47800
5283 * config/i386/i386.md (peephole2 for shift and plus): Use
5284 operands[1] original mode in the first insn.
5285
8b021004
MS
52862011-02-18 Mike Stump <mikestump@comcast.net>
5287
65ded153 5288 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 5289
f84ae14c
JH
52902011-02-18 Jan Hubicka <jh@suse.cz>
5291
5292 PR middle-end/47788
65ded153
EB
5293 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
5294 to zero when the function is not inlinable at all.
f84ae14c 5295
eddabc80
JDA
52962011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5297
5298 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
5299 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5300 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
5301 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
5302 * config/pa/t-pa64: Likewise.
5303 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5304
ca3da783
JJ
53052011-02-18 Jakub Jelinek <jakub@redhat.com>
5306
5307 PR driver/47787
5308 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
5309
430aa868
JDA
53102011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5311
5312 PR target/47792
5313 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
5314
4bf7ff7e
AS
53152011-02-18 Anatoly Sokolov <aesok@post.ru>
5316
5317 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
5318 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
5319 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
5320 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5321 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
5322 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
5323 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
5324 m32r_load_postinc_p, m32r_store_preinc_predec_p,
5325 m32r_legitimate_address_p): New functions.
5326 * config/m32r/constraints.md (constraint "S"): Don't use
5327 STORE_PREINC_PREDEC_P.
5328 (constraint "U"): Don't use LOAD_POSTINC_P.
5329
7efcf910
CLT
53302011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
5331
5332 PR rtl-optimization/46178
5333 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
5334 compute ira_hard_regno_cover_class[].
5335
237d6259
RG
53362011-02-18 Richard Guenther <rguenther@suse.de>
5337
5338 PR lto/47798
5339 * lto-streamer.h (lto_global_var_decls): Declare.
5340 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
5341 statics for global var processing.
5342
12d80acc
RG
53432011-02-18 Richard Guenther <rguenther@suse.de>
5344
5345 PR tree-optimization/47737
5346 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
5347 edge dominance check.
5348
abfea58d
JJ
53492011-02-18 Jakub Jelinek <jakub@redhat.com>
5350
5351 PR debug/47780
5352 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
5353 avoid invalid rtx sharing.
5354
f73c8882
GP
53552011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
5356
5357 * doc/cpp.texi (Obsolete Features): Add background on the
5358 origin of assertions.
5359
d764a8e6
IS
53602011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5361
5362 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 5363 objc_abi == 2.
d764a8e6
IS
5364 * config/darwin.c (output_objc_section_asm_op): Added support for
5365 ABI v1 and v2.
5366 (is_objc_metadata): New.
5367 (darwin_objc2_section): New.
5368 (darwin_objc1_section): New.
5369 (machopic_select_section): Added support for ABI v1 and v2.
5370 (darwin_emit_objc_zeroed): New.
5371 (darwin_output_aligned_bss): Detect objc metadata and treat it
5372 appropriately.
5373 (darwin_asm_output_aligned_decl_common): Same.
5374 (darwin_asm_output_aligned_decl_local): Same.
5375 * config/darwin-sections.def: Updated for ABI v1 and v2.
5376 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
5377 compiling Objective-C code for the NeXT runtime, default to using
5378 ABI version 0 for 32-bit, and version 2 for 64-bit.
5379
0a8134ca
JM
53802011-02-17 Joseph Myers <joseph@codesourcery.com>
5381
5382 * common.opt (optimize_fast): New Variable.
5383 * opts.c (default_options_optimization): Use opts->x_optimize_fast
5384 instead of local variable ofast.
5385
0a256240
NP
53862011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
5387
5388 * doc/invoke.texi (fobjc-abi-version): Documented.
5389 (fobjc-nilcheck): Documented.
5390 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
5391 version.
5392
fa381cb2
JM
53932011-02-17 Joseph Myers <joseph@codesourcery.com>
5394
5395 PR driver/47390
5396 * common.opt (export-dynamic): New Driver option.
5397 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
5398
5437eaa6
JM
53992011-02-17 Joseph Myers <joseph@codesourcery.com>
5400
5401 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
5402
bb7e6d55
AO
54032011-02-17 Alexandre Oliva <aoliva@redhat.com>
5404 Jan Hubicka <jh@suse.cz>
5405
5406 PR debug/47106
5407 PR debug/47402
5408 * cfgexpand.c (account_used_vars_for_block): Remove.
5409 (estimated_stack_frame_size): Use referenced vars.
5410 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
5411 that were referenced in the original function. Test src_fn
5412 rather than cfun. Drop redundant get_var_ann.
5413 (setup_one_parameter): Drop redundant get_var_ann.
5414 (declare_return_variable): Likewise.
5415 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
5416 (copy_arguments_for_versioning): Drop redundant get_var_ann.
5417 * ipa-inline.c (compute_inline_parameters): Do not compute
5418 disregard_inline_limits here.
bb7e6d55
AO
5419 (compute_inlinable_for_current, pass_inlinable): New.
5420 (pass_inline_parameters): Require PROP_referenced_vars.
5421 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 5422 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
5423 (cgraph_analyze_function): Set .disregard_inline_limits.
5424 * tree-sra.c (convert_callers): Compute inliner parameters
5425 only for functions already in SSA form.
5426
f181a8a7
JM
54272011-02-17 Joseph Myers <joseph@codesourcery.com>
5428
5429 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
5430 -mlittle-endian-data.
5431
c6869789
JM
54322011-02-17 Joseph Myers <joseph@codesourcery.com>
5433
5434 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
5435 -mno-fpu, not -fpu and -no-fpu.
5436 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
5437 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
5438
fbf4bfd3
UB
54392011-02-17 Uros Bizjak <ubizjak@gmail.com>
5440
5441 PR target/43653
5442 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
5443 input reload with PLUS RTX.
5444
70be5dc7
JM
54452011-02-16 Joseph Myers <joseph@codesourcery.com>
5446
5447 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
5448 of InverseVar(MDMX).
5449
30b1646e
JM
54502011-02-16 Joseph Myers <joseph@codesourcery.com>
5451
5452 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
5453 --m4-340.
5454
ab7b71e9
JM
54552011-02-16 Joseph Myers <joseph@codesourcery.com>
5456
5457 * config/mn10300/mn10300.opt (mno-crt0): New.
5458
466f3f08
JM
54592011-02-16 Joseph Myers <joseph@codesourcery.com>
5460
5461 * config/m68k/uclinux.opt (static-libc): New Driver option.
5462
8226cd7b
JM
54632011-02-16 Joseph Myers <joseph@codesourcery.com>
5464
5465 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
5466
45cab1d7
JM
54672011-02-16 Joseph Myers <joseph@codesourcery.com>
5468
5469 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
5470 %{muser-extend-enabled}.
5471
65aab64f
RG
54722011-02-16 Richard Guenther <rguenther@suse.de>
5473
5474 PR tree-optimization/47738
5475 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
5476 the TODO from tree_predictive_commoning.
5477
fc2fa4fb
JL
54782011-02-15 Jeff Law <law@redhat.com>
5479
5480 Revert
5481 2011-01-25 Jeff Law <law@redhat.com>
5482
5483 PR rtl-optimization/37273
5484 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5485 handle them like argument loads from stack slots. Do not double
5486 count memory for memory constants and argument loads from stack slots.
5487
4e380b8e
L
54882011-02-15 H.J. Lu <hongjiu.lu@intel.com>
5489
5490 PR middle-end/47725
5491 * combine.c (cant_combine_insn_p): Revert the last change.
5492
e3a69bb4
MM
54932011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
5494
5495 PR target/47755
5496 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
5497 mode for vector constants. Remove code that checks for TImode.
5498
de650422
AO
54992011-02-15 Alexandre Oliva <aoliva@redhat.com>
5500
5501 PR debug/47106
5502 PR debug/47402
5503 * cgraph.h (compute_inline_parameters): Return void.
5504 * ipa-inline.c (compute_inline_parameters): Adjust.
5505
30925d94
AO
55062011-02-15 Alexandre Oliva <aoliva@redhat.com>
5507
5508 PR debug/47106
5509 PR debug/47402
5510 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
5511 rather than decl.
5512 * cfgexpand.c (estimated_stack_frame_size): Likewise.
5513 * ipa-inline.c (compute_inline_parameters): Adjust.
5514
1b9a784a
AO
55152011-02-15 Alexandre Oliva <aoliva@redhat.com>
5516
5517 PR debug/47106
5518 PR debug/47402
5519 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
5520 Adjust all users. Pass FN to...
5521 * tree-flow-inline.h (first_referenced_var): ... this. Add
5522 fn argument.
5523 * ipa-struct-reorg.c: Adjust.
5524 * tree-dfa.c: Adjust.
5525 * tree-into-ssa.c: Adjust.
5526 * tree-sra.c: Adjust.
5527 * tree-ssa-alias.c: Adjust.
5528 * tree-ssa-live.c: Adjust.
5529 * tree-ssa.c: Adjust.
5530 * tree-ssanames.c: Adjust.
5531 * tree-tailcall.c: Adjust.
5532
27c6b086
AO
55332011-02-15 Alexandre Oliva <aoliva@redhat.com>
5534
5535 PR debug/47106
5536 PR debug/47402
5537 * tree-flow.h (referenced_var_lookup): Add fn parameter.
5538 Adjust all callers.
5539 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
5540 * tree-flow-inline.h: Adjust.
5541 * gimple-pretty-print.c: Adjust.
5542 * tree-into-ssa.c: Adjust.
5543 * tree-ssa.c: Adjust.
5544 * cfgexpand.c: Adjust.
5545
679e8183
NF
55462011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5547
fbf4bfd3
UB
5548 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
5549 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5550 (EXTRA_CONSTRAINT): Delete.
5551 * config/iq2000/constraints.md: New file.
5552 * config/iq2000/iq2000.md: Include it.
679e8183
NF
5553 (define_insn ""): Delete.
5554 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
5555 unsupported constraint letters from patterns.
5556 (call_value, call_value_internal1): Likewise.
5557 (call_value_multiple_internal1): Likewise.
5558
a45d420a
NC
55592011-02-15 Nick Clifton <nickc@redhat.com>
5560
5561 * config/mn10300/mn10300.c: Include tm-constrs.h.
5562 (struct liw_data): New data structure describing an LIW candidate
5563 instruction.
5564 (extract_bundle): Use struct liw_data. Allow small integer
5565 operands for some instructions.
5566 (check_liw_constraints): Use struct liw_data. Remove swapped
5567 parameter. Add comments describing the checks. Fix bug when
5568 assigning the source of liw1 to the source of liw2.
5569 (liw_candidate): Delete. Code moved into extract_bundle.
5570 (mn10300_bundle_liw): Use struct liw_data. Check constraints
5571 before swapping.
5572 * config/mn10300/predicates.md (liw_operand): New predicate.
5573 Allows registers and small integer constants.
5574 * config/mn10300/constraints.md (O): New constraint. Accetps
5575 integers in the range -8 to +7 inclusive.
5576 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
5577 for moving a small integer into a register. Give this alternative
5578 LIW attributes.
5579 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
5580 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
5581 using the J,K,L and M constraints,
5582 (liw): Remove SI mode on second operands to allow for HI and QI
5583 mode values.
5584 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
5585 instruction.
5586
8a73faf1
L
55872011-02-15 H.J. Lu <hongjiu.lu@intel.com>
5588
5589 PR middle-end/47725
5590 * combine.c (cant_combine_insn_p): Check zero/sign extended
5591 hard registers.
5592
48feba28
RG
55932011-02-15 Richard Guenther <rguenther@suse.de>
5594
5595 PR tree-optimization/47743
5596 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
5597 for a non-type-compatible VN lookup bail out.
5598
ad1c1eeb
NF
55992011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5600
5601 * config/fr30/constraints.md: New file.
5602 * config/fr30/fr30.md: Include it.
5603 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
5604 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5605 (EXTRA_CONSTRAINT): Delete.
5606
49ac143d
NF
56072011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5608
5609 * config/frv/constraints.md: New file.
5610 * config/frv/predicates.md: Include it.
5611 * config/frv/frv.c (reg_class_from_letter): Delete.
5612 (frv_option_override): Don't initialize it.
5613 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
5614 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
5615 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
5616 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5617 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
5618 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5619 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
5620 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
5621 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
5622 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
5623 (REG_CLASS_FROM_CONSTRAINT): Delete.
5624
c95f9494
JJ
56252011-02-15 Jakub Jelinek <jakub@redhat.com>
5626
5627 PR middle-end/47581
5628 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
5629 if frame size is 0 in a leaf function.
5630
13aed611
RO
56312011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5632
5633 PR pch/14940
5634 * config/alpha/host-osf.c: New file.
5635 * config/alpha/x-osf: New file.
5636 * config.host (alpha*-dec-osf*): Use it.
5637
b09c3081
AS
56382011-02-14 Anatoly Sokolov <aesok@post.ru>
5639
5640 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5641 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
5642 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
5643 (rx_mode_dependent_address_p): ...this. Make static. Change argument
5644 type to const_rtx.
5645 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5646
d634083b
NF
56472011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5648
5649 * config/stormy16/constraints.md: New file.
5650 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
5651 Use satisfies_constraint_Q and satisfies_constraint_R.
5652 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
5653 Delete.
5654 (xstormy16_legitiamte_address_p): Declare.
5655 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
5656 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5657 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 5658 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
5659 Un-staticize.
5660 (xstormy16_extra_constraint_p): Delete.
5661
c7dd803e
EB
56622011-02-14 Eric Botcazou <ebotcazou@adacore.com>
5663
5664 PR tree-optimization/46494
5665 * loop-unroll.c (split_edge_and_insert): Adjust comment.
5666 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
5667 (pass_rtl_loop_done): Add TODO_verify_flow.
5668 * fwprop.c (pass_rtl_fwprop): Likewise.
5669 * modulo-sched.c (pass_sms): Likewise.
5670 * tree-ssa-dom.c (pass_dominator): Likewise.
5671 * tree-ssa-loop-ch.c (pass_ch): Likewise.
5672 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
5673 (pass_tree_loop_done): Likewise.
5674 * tree-ssa-pre.c (execute_pre): Likewise.
5675 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
5676 * tree-ssa-sink.c (pass_sink_code): Likewise.
5677 * tree-vrp.c (pass_vrp): Likewise.
5678
c6150df6
NF
56792011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5680
c7dd803e
EB
5681 * config/v850/constraints.md: New file.
5682 * config/v850/v850.md: Include it.
5683 * config/v850/predicates.md (reg_or_0_operand): Use
5684 satisfies_constraint_G.
5685 (special_symbolref_operand): Use satisfies_constraint_K.
5686 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
5687 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
5688 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
5689 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5690 (EXTRA_CONSTRAINT): Delete.
5691 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
5692 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
5693 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 5694
30dd1ea3
AS
56952011-02-14 Anatoly Sokolov <aesok@post.ru>
5696
5697 PR target/47696
5698 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
5699 description.
5700
944f4bb3
NF
57012011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5702
5703 * config/mcore/constraints.md: New file.
5704 * config/mcore/mcore.md: Include it.
5705 * config/mcore/mcore.c (reg_class_from_letter): Delete.
5706 * config/mcore/mcore.h (reg_class_from_letter): Delete.
5707 (REG_CLASS_FROM_LETTER): Delete.
5708 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
5709 insn_const_int_ok_for_constraint.
5710 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
5711 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
5712 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5713 (EXTRA_CONSTRAINT): Delete.
5714
ad56a54c
RO
57152011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5716
5717 PR ada/41929
5718 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
5719 (IS_SIGHANDLER): Define.
5720 (sparc64_is_sighandler): New function, split off from
5721 sparc64_fallback_frame_state.
5722 (sparc_is_sighandler): New function, split off from
5723 sparc_fallback_frame_state.
5724 (sparc64_fallback_frame_state): Merge with ...
5725 (sparc_fallback_frame_state): ... this into ...
5726 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
5727 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
5728 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
5729 stack instead of hardcoded offsets.
ad56a54c 5730
fbf4bfd3 57312011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
5732
5733 PR target/45808
5734 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
5735
029c8f3e
RW
57362011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5737
5738 * configure: Regenerate.
5739
a016dc83
JM
57402011-02-12 Joseph Myers <joseph@codesourcery.com>
5741
5742 PR driver/45731
5743 * gcc.c (asm_options): Correct spec matching --target-help.
5744
8957a0ec
MJ
57452011-02-12 Martin Jambor <mjambor@suse.cz>
5746
5747 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
5748 to gimple call error.
5749
6ef828bc
MS
57502011-02-12 Mike Stump <mikestump@comcast.net>
5751
5752 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
5753 comments in backslash regions.
5754
a4015be5
MS
57552011-02-12 Mike Stump <mikestump@comcast.net>
5756 Jakub Jelinek <jakub@redhat.com>
5757 Iain Sandoe <iains@gcc.gnu.org>
5758
5759 PR target/47324
5760 * dwarf2out.c (output_cfa_loc): When required, apply the
5761 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
5762 (output_loc_sequence): Likewise.
5763 (output_loc_operands_raw): Likewise.
5764 (output_loc_sequence_raw): Likewise.
5765 (output_cfa_loc): Likewise.
5766 (output_loc_list): Suppress register number adjustment when
5767 calling output_loc_sequence()
5768 (output_die): Likewise.
5769
5378dda2
AS
57702011-02-12 Anatoly Sokolov <aesok@post.ru>
5771
5772 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5773 Remove macros.
5774 * config/xtensa/xtensa.c (xtensa_register_move_cost,
5775 xtensa_memory_move_cost): New functions.
5776 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
5777
f3d533d3
AO
57782011-02-12 Alexandre Oliva <aoliva@redhat.com>
5779
5780 PR lto/47225
5781 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
5782 in the current directory.
5783 * configure: Rebuilt.
5784
9d53403c
IS
57852011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5786
5787 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 5788 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
5789 correct indents of the preceding block.
5790
a350a6c8
IS
57912011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5792
5793 * gcc.c (driver_handle_option): Concatenate the argument to -F with
5794 the switch.
5795
bab79a40
JM
57962011-02-11 Joseph Myers <joseph@codesourcery.com>
5797
5798 * common.opt (nostartfiles): New Driver option.
5799
1bbc6693
XDL
58002011-02-11 Xinliang David Li <davidxl@google.com>
5801
5802 PR tree-optimization/47707
5803 * tree-chrec.c (convert_affine_scev): Keep type precision.
5804
1da7d8c0
EB
58052011-02-11 Eric Botcazou <ebotcazou@adacore.com>
5806
5807 PR tree-optimization/47420
5808 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
5809
58102011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
5811
5812 PR rtl-optimization/47614
5813 * rtl.h (check_for_inc_dec): Declare.
5814 * dse.c (check_for_inc_dec): Externalize...
5815 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
5816 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
5817
4df47bca
JM
58182011-02-11 Joseph Myers <joseph@codesourcery.com>
5819
5820 PR driver/47678
5821 * gcc.c (main): Do not compile inputs if there were errors in
5822 option handling.
5823 * opts-common.c (read_cmdline_option): Check for wrong language
5824 after other error checks.
5825
61502ca8
NF
58262011-02-11 Nathan Froyd <froydnj@codesourcery.com>
5827
5828 * cgraph.c: Fix comment typos.
5829 * cgraph.h: Likewise.
5830 * cgraphunit.c: Likewise.
5831 * ipa-cp.c: Likewise.
5832 * ipa-inline.c: Likewise.
5833 * ipa-prop.c: Likewise.
5834 * ipa-pure-const.c: Likewise.
5835 * ipa-ref.c: Likewise.
5836 * ipa-reference.c: Likewise.
5837
b63f974e
JJ
58382011-02-11 Jakub Jelinek <jakub@redhat.com>
5839
d50c5e0c
JJ
5840 PR debug/47684
5841 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 5842
6dd2a13c
RO
58432011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5844
5845 PR testsuite/47400
5846 * doc/sourcebuild.texi (Require Support): Document
5847 dg-require-ascii-locale.
5848
4a087ccf
MX
58492011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
5850
5851 * doc/lto.texi (Write summary): Fix missing parentheses.
5852
a4403164
DD
58532011-02-10 DJ Delorie <dj@redhat.com>
5854
5855 * config/m32c/m32c.c (m32c_option_override): Disable
5856 -fcombine-stack-adjustments until flag value tracking and compare
5857 optimization can be rewritten.
5858
4fac45bd
PB
58592011-02-10 Peter Bergner <bergner@vnet.ibm.com>
5860
5861 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
5862 PROCESSOR_POWER7.
5863 (PROCESSOR_DEFAULT64): Likewise.
5864
72602cd1
RH
58652011-02-10 Richard Henderson <rth@redhat.com>
5866
5867 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
5868 change from 2011-02-03.
5869 * config/rx/rx.c (flags_from_code): Likewise.
5870 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
5871 is valid, n/pz otherwise.
5872 (rx_select_cc_mode): Return CCmode if Y is not zero.
5873
ea57f573
RG
58742011-02-10 Richard Guenther <rguenther@suse.de>
5875
ea4c3e65 5876 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 5877
92b1d23b
RG
58782011-02-10 Richard Guenther <rguenther@suse.de>
5879
5880 PR tree-optimization/47677
5881 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
5882
525a2d06
JJ
58832011-02-10 Jakub Jelinek <jakub@redhat.com>
5884
5885 PR target/47665
5886 * combine.c (make_compound_operation): Only change shifts into
5887 multiplication for SCALAR_INT_MODE_P.
5888
06c969bd
JZ
58892011-02-10 Jie Zhang <jie@codesourcery.com>
5890
5891 PR testsuite/47622
5892 Revert
5893 2011-02-05 Jie Zhang <jie@codesourcery.com>
5894 PR debug/42631
5895 * web.c (entry_register): Don't clobber the number of the
5896 first uninitialized reference in used[].
5897
282ec48e
RG
58982011-02-09 Richard Guenther <rguenther@suse.de>
5899
5900 PR tree-optimization/47664
5901 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
5902 all edges again.
5903
df98c3e8
DE
59042011-02-09 David Edelsohn <dje.gcc@gmail.com>
5905
d0f21cd6
DE
5906 PR target/46481
5907 PR target/47032
df98c3e8
DE
5908 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
5909 PROCESSOR_POWER7.
5910 (PROCESSOR_DEFAULT64): Same.
5911 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
5912
67b6839f
RO
59132011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5914
5915 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
5916
4fd73214
MJ
59172011-02-09 Martin Jambor <mjambor@suse.cz>
5918
5919 PR middle-end/45505
5920 * tree-sra.c (struct access): New flags grp_scalar_read and
5921 grp_scalar_write. Changed description of assignment read and write
5922 flags.
5923 (dump_access): Dump new flags, reorder all of them.
5924 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
5925 to detect multiple scalar reads.
5926 (analyze_access_subtree): Use the new scalar read write flags instead
5927 of the old flags. Adjusted comments.
5928
91140cd3
DD
59292011-02-08 DJ Delorie <dj@redhat.com>
5930
5931 PR target/47548
5932 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
5933 patterns.
5934
4254bbfe
JM
59352011-02-08 Joseph Myers <joseph@codesourcery.com>
5936
5937 * config/m68k/uclinux.opt: New.
5938 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
5939
f1fda84e
JM
59402011-02-08 Joseph Myers <joseph@codesourcery.com>
5941
5942 * config/cris/elf.opt (sim): New Driver option.
5943
4933ae74
JM
59442011-02-08 Joseph Myers <joseph@codesourcery.com>
5945
5946 * config/xtensa/elf.opt: New.
5947 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
5948
4ad70280
JM
59492011-02-08 Joseph Myers <joseph@codesourcery.com>
5950
5951 * config/vax/elf.opt: New.
5952 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
5953
20893707
JM
59542011-02-08 Joseph Myers <joseph@codesourcery.com>
5955
5956 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
5957
b8e7038e
JM
59582011-02-08 Joseph Myers <joseph@codesourcery.com>
5959
5960 * config/gnu-user.opt: New.
5961 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
5962 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
5963 *-*-uclinux*): Use gnu-user.opt.
5964
e1c5225a
TS
59652011-02-08 Thomas Schwinge <thomas@schwinge.name>
5966
5967 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
5968 * config/i386/gnu.h (CPP_SPEC): Likewise.
5969
5e46b0c6
ILT
59702011-02-08 Ian Lance Taylor <iant@google.com>
5971
5972 * common.opt (fcx-limited-range): Add SetByCombined flag.
5973 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
5974 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
5975 (fassociative-math, freciprocal-math): Likewise.
5976 (funsafe-math-optimizations): Likewise.
5977 * opth-gen.awk: Handle SetByCombined.
5978 * optc-gen.awk: Likewise.
ea4c3e65 5979 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
5980 (set_unsafe_math_optimizations_flags): Likewise.
5981 * doc/options.texi (Option properties): Document SetByCombined.
5982
32243d46
JM
59832011-02-08 Joseph Myers <joseph@codesourcery.com>
5984
5985 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
5986 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
5987 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
5988 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
5989 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
5990
479c1fb3
SP
59912011-02-08 Sebastian Pop <sebastian.pop@amd.com>
5992
5993 PR tree-optimization/46834
5994 PR tree-optimization/46994
5995 PR tree-optimization/46995
5996 * graphite-sese-to-poly.c (used_outside_reduction): New.
5997 (detect_commutative_reduction): Call used_outside_reduction.
5998 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
5999 translate_scalar_reduction_to_array only when at least one
6000 loop-phi/close-phi tuple has been detected.
6001
3865a06f
RG
60022011-02-08 Richard Guenther <rguenther@suse.de>
6003
6004 PR middle-end/47639
6005 * tree-vect-generic.c (expand_vector_operations_1): Update
6006 stmts here ...
6007 (expand_vector_operations): ... not here. Cleanup EH info
6008 and the CFG if required.
6009
62902f3f
RG
60102011-02-08 Richard Guenther <rguenther@suse.de>
6011
6012 PR tree-optimization/47641
6013 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
6014 require type compatibility.
6015
0efb9d64
AK
60162011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6017
6018 * gimple-low.c (lower_function_body): Don't remove the location of
6019 the return statement here.
6020 (lower_gimple_return): Do it here instead but only if the return
6021 statement is actually used twice.
6022
034b8ae4
RG
60232011-02-08 Richard Guenther <rguenther@suse.de>
6024
6025 PR tree-optimization/47632
6026 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
6027 unused up_to_stmt parameter, return whether cfg-cleanup is
6028 necessary, remove EH info properly.
6029 (forward_propagate_into_gimple_cond): Adjust caller.
6030 (forward_propagate_into_cond): Likewise.
6031 (forward_propagate_comparison): Likewise.
6032 (tree_ssa_forward_propagate_single_use_vars): Make
6033 forward_propagate_comparison case similar to the two others.
6034
298362c8
NC
60352011-02-08 Nick Clifton <nickc@redhat.com>
6036
6037 * config/mn10300/mn10300.opt (mliw): New command line option.
6038 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
6039 (liw_bundling): New automaton.
6040 (liw): New attribute.
6041 (liw_op): New attribute.
6042 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
6043 (movsi_internal): Add LIW attributes.
6044 (andsi3): Likewise.
6045 (iorsi3): Likewise.
6046 (xorsi3): Likewise.
6047 (addsi3): Separate register and immediate alternatives.
6048 Add LIW attributes.
6049 (subsi3): Likewise.
6050 (cmpsi): Likewise.
6051 (aslsi3): Likewise.
6052 (lshrsi3): Likewise.
6053 (ashrsi3): Likewise.
6054 (liw): New pattern.
6055 * config/mn10300/mn10300.c (liw_op_names): New
6056 (mn10300_print_operand): Handle 'W' operand descriptor.
6057 (extract_bundle): New function.
6058 (check_liw_constraints): New function.
6059 (liw_candidate): New function.
6060 (mn10300_bundle_liw): New function.
6061 (mn10300_reorg): New function.
6062 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6063 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
6064 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
6065 __LIW__ or __NO_LIW__.
6066 * doc/invoke.texi: Describe the -mliw command line option.
6067
90488014
JDA
60682011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6069
6070 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
6071 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6072 pthread_mutex_unlock): Remove.
6073 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
6074 * config/pa/t-pa64: Likewise.
6075 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
6076 shared libc if not linking against libpthread.
6077 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6078
689ff841
IS
60792011-02-07 Iain Sandoe <iains@gcc.gnu.org>
6080
6081 PR target/47558
6082 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
6083 on 10.6 and later to ensure that we always use the unwinder from
6084 the system. Only add -no_compact_unwind when tarteting darwin
6085 10.6 or later.
6086
821014aa
SE
60872011-02-07 Steve Ellcey <sje@cup.hp.com>
6088
6089 PR target/46997
6090 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
6091 (vec_interleave_lowv2sf): Ditto.
6092 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
6093 (vec_extract_oddv2sf): Ditto.
6094
41cf94fb
MS
60952011-02-07 Mike Stump <mikestump@comcast.net>
6096
62dea57d 6097 PR target/42333
41cf94fb
MS
6098 Add __ieee_divdc3 entry point.
6099 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
6100 entry point.
6101 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
6102 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
6103 * config/darwin.c (darwin_rename_builtins): Add.
6104 * config/darwin-protos.h (darwin_rename_builtins): Add.
6105
ee09a3dd
MM
61062011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
6107
6108 PR target/47636
6109 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
6110 for the condition.
6111
83296cd0
MS
61122011-02-07 Mike Stump <mikestump@comcast.net>
6113
ea4c3e65 6114 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 6115
0f4e946f
DC
61162011-02-07 Denis Chertykov <chertykov@gmail.com>
6117
6118 PR target/47534
6119 * config/avr/libgcc.S (exit): Move .endfunc
6120
1ec87690
RG
61212011-02-07 Richard Guenther <rguenther@suse.de>
6122
6123 PR tree-optimization/47615
6124 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
6125 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
6126 (run_scc_vn): Initialize it.
6127 (visit_reference_op_load): Use it.
6128 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
6129
b46ae6da
UW
61302011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6131
6132 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
6133 DImode trapping arithmetic libfuncs.
6134
c0aae19c
RG
61352011-02-07 Richard Guenther <rguenther@suse.de>
6136
6137 PR tree-optimization/47621
6138 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
6139 two duplicates ...
6140 (execute_update_addresses_taken): ... here. Make it more
6141 conservative in what we accept.
6142
295d926b
JM
61432011-02-06 Joseph Myers <joseph@codesourcery.com>
6144
6145 * config/sparc/freebsd.h (ASM_SPEC): Define.
6146 * config/sparc/vxworks.h (ASM_SPEC): Define.
6147
bdeb2471
JM
61482011-02-06 Joseph Myers <joseph@codesourcery.com>
6149
6150 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
6151
d5d3781a
SB
61522011-02-06 Steven Bosscher <steven@gcc.gnu.org>
6153
6154 * doc/invoke.texi: Remove reference to compiler internals from
6155 user documentation.
6156
6157 * reg-notes.def: Remove REG_VALUE_PROFILE.
6158 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
6159
c42c09fc
JJ
61602011-02-05 Jakub Jelinek <jakub@redhat.com>
6161
6162 PR middle-end/47610
6163 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 6164 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 6165
beea2755
JZ
61662011-02-05 Jie Zhang <jie@codesourcery.com>
6167
6168 PR debug/42631
6169 * web.c (entry_register): Don't clobber the number of the
6170 first uninitialized reference in used[].
6171
a130584a
SP
61722011-02-04 Sebastian Pop <sebastian.pop@amd.com>
6173
6174 PR tree-optimization/46194
6175 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
6176 (build_classic_dist_vector_1): Do not represent classic distance
6177 vectors when the access functions are variating in different loops.
6178
962101ac
JM
61792011-02-04 Joseph Myers <joseph@codesourcery.com>
6180
6181 * config/mips/iris6.opt: New.
6182 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
6183
55eaaa5b
RH
61842011-02-04 Richard Henderson <rth@redhat.com>
6185 Steve Ellcey <sje@cup.hp.com>
6186
6187 PR target/46997
6188 * config/ia64/predicates.md (mux1_brcst_element): New.
6189 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
6190 * config/ia64/ia64.c (ia64_unpack_assemble): New.
6191 (ia64_unpack_sign): New.
6192 (ia64_expand_unpack): Rewrite using new routines.
6193 (ia64_expand_widen_sum): Ditto.
6194 (ia64_expand_dot_prod_v8qi): Ditto.
6195 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
6196 routines, add endian check.
6197 (pmpy2_even): Rename from pmpy2_r, add endian check.
6198 (pmpy2_odd): Rename from pmpy2_l, add endian check.
6199 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
6200 (vec_widen_smult_hi_v4hi): Ditto.
6201 (vec_widen_umult_lo_v4hi): Ditto.
6202 (vec_widen_umult_hi_v4hi): Ditto.
6203 (mulv2si3): Change endian checks.
6204 (sdot_prodv4hi): Rewrite with new calls.
6205 (udot_prodv4hi): New.
6206 (vec_pack_ssat_v4hi): Add endian check.
6207 (vec_pack_usat_v4hi): Ditto.
6208 (vec_pack_ssat_v2si): Ditto.
6209 (max1_even): Rename from max1_r, add endian check.
6210 (max1_odd): Rename from max1_l, add endian check.
6211 (*mux1_rev): Format change.
6212 (*mux1_mix): Ditto.
6213 (*mux1_shuf): Ditto.
6214 (*mux1_alt): Ditto.
6215 (*mux1_brcst_v8qi): Use new predicate.
6216 (vec_extract_evenv8qi): Remove endian check.
6217 (vec_extract_oddv8qi): Ditto.
6218 (vec_interleave_lowv4hi): Format change.
6219 (vec_interleave_highv4hi): Ditto.
6220 (mix2_even): Rename from mix2_r, add endian check.
6221 (mix2_odd): Rename from mux2_l, add endian check.
6222 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
6223 (vec_extract_evenodd_helper): Format change.
6224 (vec_extract_evenv4hi): Remove endian check.
6225 (vec_extract_oddv4hi): Remove endian check.
6226 (vec_interleave_lowv2si): Format change.
6227 (vec_interleave_highv2si): Format change.
6228 (vec_initv2si): Remove endian check.
6229 (vecinit_v2si): Add endian check.
6230 (reduc_splus_v2sf): Add endian check.
6231 (reduc_smax_v2sf): Ditto.
6232 (reduc_smin_v2sf): Ditto.
6233 (vec_initv2sf): Remove endian check.
6234 (fpack): Add endian check.
6235 (fswap): Add endian check.
6236 (vec_interleave_highv2sf): Add endian check.
6237 (vec_interleave_lowv2sf): Add endian check.
6238 (fmix_lr): Add endian check.
6239 (vec_setv2sf): Format change.
6240 (*vec_extractv2sf_0_be): Use shift to extract operand.
6241 (*vec_extractv2sf_1_be): New.
6242 (vec_pack_trunc_v4hi): Add endian check.
6243 (vec_pack_trunc_v2si): Format change.
6244
dcde5957
JJ
62452011-02-04 Jakub Jelinek <jakub@redhat.com>
6246
6247 PR inline-asm/23200
6248 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 6249 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
6250 (stmt_is_replaceable_p): New function.
6251 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
6252 callers.
6253 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
6254 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
6255 SSA_NAME_DEF_STMT.
6256 * tree-flow.h (stmt_is_replaceable_p): New prototype.
6257
a64a8e5a
JM
62582011-02-04 Joseph Myers <joseph@codesourcery.com>
6259
6260 * config/rs6000/xilinx.opt: New.
6261 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
6262
4da2ed2f
JM
62632011-02-04 Joseph Myers <joseph@codesourcery.com>
6264
6265 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
6266
a6e508f9
AS
62672011-02-03 Anatoly Sokolov <aesok@post.ru>
6268
6269 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
6270 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6271 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
6272 secondary_reload_info, xtensa_secondary_reload): Remove.
6273 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
6274 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6275 (xtensa_preferred_reload_class): Make static. Change return and
6276 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
6277 Use CONST_DOUBLE_P predicate.
6278 (xtensa_preferred_output_reload_class): New function.
6279 (xtensa_secondary_reload): Make static.
6280
82dc0de3
JM
62812011-02-03 Joseph Myers <joseph@codesourcery.com>
6282
6283 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
6284 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
6285 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
6286
7fece979
JJ
62872011-02-03 Jakub Jelinek <jakub@redhat.com>
6288
6289 PR middle-end/31490
6290 * output.h (SECTION_RELRO): Define.
6291 (SECTION_MACH_DEP): Adjust.
6292 (get_variable_section): New prototype.
6293 * varpool.c (varpool_finalize_named_section_flags): New function.
6294 (varpool_assemble_pending_decls): Call it.
6295 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
6296 * cgraphunit.c (cgraph_output_in_order): Call
6297 varpool_finalize_named_section_flags.
6298 * varasm.c (get_section): Allow section flags conflicts between
6299 relro and read-only sections if the section hasn't been declared yet.
6300 Set SECTION_OVERRIDE after diagnosing section type conflict.
6301 (get_variable_section): No longer static.
6302 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
6303 readonly sections that need relocations.
6304 (decl_readonly_section_1): New function.
6305 (decl_readonly_section): Use it.
6306
6307 Revert:
509d65dd 6308 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
6309 Steve Ellcey <sje@cup.hp.com>
6310
6311 PR middle-end/31490
6312 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
6313 if section attribute used.
6314
d18d5478
JJ
63152011-02-03 Jakub Jelinek <jakub@redhat.com>
6316
6317 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
6318 * config/darwin.c (SECTION_NO_ANCHOR): Define.
6319 (darwin_init_sections): Remove assertion.
6320
6479ed4b
NC
63212011-02-03 Nick Clifton <nickc@redhat.com>
6322
6323 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
6324 lt and ge.
38be4072 6325 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
6326 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
6327 instead of "n" and "pz".
6328 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
6329 CC_FLAG_S.
6330
89843f5d
JJ
63312011-02-03 Jakub Jelinek <jakub@redhat.com>
6332
65450d64
JJ
6333 PR target/47312
6334 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
6335 fma, expand FMA_EXPR as fma{,f,l} call.
6336
7d58701c
JJ
6337 PR lto/47274
6338 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
6339 copy them into a unsigned char variable and pass address of it to
6340 lto_output_data_stream.
6341
89843f5d
JJ
6342 PR target/47564
6343 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
6344 around backend_init_target and lang_dependent_init_target calls.
6345 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
6346 (verify_cgraph_node): Don't call set_cfun here. Use
6347 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
6348 Set error_found for incorrectly represented calls to thunks.
6349
4deef538
AO
63502011-02-03 Alexandre Oliva <aoliva@redhat.com>
6351
6352 PR debug/43092
6353 PR rtl-optimization/43494
6354 * rtl.h (for_each_inc_dec_fn): New type.
6355 (for_each_inc_dec): Declare.
6356 * rtlanal.c (struct for_each_inc_dec_ops): New type.
6357 (for_each_inc_dec_find_inc_dec): New fn.
6358 (for_each_inc_dec_find_mem): New fn.
6359 (for_each_inc_dec): New fn.
6360 * dse.c (struct insn_size): Remove.
6361 (replace_inc_dec, replace_inc_dec_mem): Remove.
6362 (emit_inc_dec_insn_before): New fn.
6363 (check_for_inc_dec): Use it, along with for_each_inc_dec.
6364 (canon_address): Pass mem modes to cselib_lookup.
6365 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
6366 (cselib_lookup_from_insn): Likewise.
6367 (cselib_subst_to_values): Likewise.
6368 * cselib.c (find_slot_memmode): New var.
6369 (cselib_find_slot): New fn. Use it instead of
6370 htab_find_slot_with_hash everywhere.
6371 (entry_and_rtx_equal_p): Use find_slot_memmode.
6372 (autoinc_split): New fn.
6373 (rtx_equal_for_cselib_p): Rename and implement in terms of...
6374 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
6375 Deal with autoinc. Special-case recursion into MEMs.
6376 (cselib_hash_rtx): Likewise.
6377 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
6378 address and MEM modes.
6379 (cselib_subst_to_values): Add memmode, pass it on.
6380 Deal with autoinc.
6381 (cselib_lookup): Add memmode argument, pass it on.
6382 (cselib_lookup_from_insn): Add memmode.
6383 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
6384 (struct cselib_record_autoinc_data): New.
6385 (cselib_record_autoinc_cb): New fn.
6386 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
6387 mode to cselib_lookup. Reset autoinced REGs here instead of...
6388 (cselib_process_insn): ... here.
6389 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
6390 to cselib_lookup.
6391 (add_uses): Likewise, also to cselib_subst_to_values.
6392 (add_stores): Likewise.
6393 * sched-deps.c (add_insn_mem_dependence): Pass mode to
6394 cselib_subst_to_values.
6395 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
6396 * gcse.c (do_local_cprop): Adjusted.
6397 * postreload.c (reload_cse_simplify_set): Adjusted.
6398 (reload_cse_simplify_operands): Adjusted.
6399 * sel-sched-dump (debug_mem_addr_value): Pass mode.
6400
1551d44a
AO
64012011-02-03 Alexandre Oliva <aoliva@redhat.com>
6402
6403 PR tree-optimization/45122
6404 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
6405 unsafe assumptions when there's more than one loop exit.
6406
c9485473
MM
64072011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6408
6409 PR target/47272
6410 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
6411 Document using vector double with the load/store builtins, and
6412 that the load/store builtins always use Altivec instructions.
6413
6414 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
6415 to use altivec memory instructions, even on VSX.
6416 (vector_altivec_store_<mode>): Ditto.
6417
6418 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
6419 function.
6420
6421 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6422 V2DF, V2DI support to load/store overloaded builtins.
6423
6424 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
6425 altivec load/store builtins for V2DF/V2DI types.
6426
6427 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
6428 set avoid indexed addresses on power6 if -maltivec.
6429 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
6430 vector_altivec_load/vector_altivec_store builtins.
6431 (altivec_expand_st_builtin): Ditto.
6432 (altivec_expand_builtin): Add VSX memory builtins.
6433 (rs6000_init_builtins): Add V2DI types to internal types.
6434 (altivec_init_builtins): Add support for V2DF/V2DI altivec
6435 load/store builtins.
6436 (rs6000_address_for_altivec): Insure memory address is appropriate
6437 for Altivec.
6438
6439 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
6440 vec_vsx_ld and vec_vsx_st.
6441 (vsx_store_<mode>): Ditto.
6442
6443 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
6444 variables to hold long long types for VSX vector memory builtins.
6445 (RS6000_BTI_unsigned_long_long): Ditto.
6446 (long_long_integer_type_internal_node): Ditti.
6447 (long_long_unsigned_type_internal_node): Ditti.
6448
6449 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
6450 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
6451 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
6452
6453 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
6454 short cuts.
6455 (vec_vsx_st): Ditto.
6456
b24d1acf
JM
64572011-02-02 Joseph Myers <joseph@codesourcery.com>
6458
6459 * config/pa/pa-hpux10.opt: New.
6460 * config/hpux11.opt (pthread): New Driver option.
6461 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
6462 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
6463
aa18dd0f
JM
64642011-02-02 Joseph Myers <joseph@codesourcery.com>
6465
6466 * config/ia64/vms.opt: New.
6467 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
6468
28fc3eee
MM
64692011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
6470
6471 PR target/47580
6472 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
6473 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
6474 generator functions.
6475 (vsx_floatuns<VSi><mode>2): Ditto.
6476 (vsx_fix_trunc<mode><VSi>2): Ditto.
6477 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
6478
b5838b1f
JM
64792011-02-02 Joseph Myers <joseph@codesourcery.com>
6480
6481 * config/i386/djgpp.opt (posix): New Driver option.
6482
0db8fa89
GP
64832011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
6484
6485 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
6486 Move to the unsupported targets list.
6487
9cd4f22a
PB
64882011-02-02 Peter Bergner <bergner@vnet.ibm.com>
6489
6490 PR rtl-optimization/47525
6491 * df-scan.c: Update copyright years.
6492 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
6493 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
6494
9ed8059c
RO
64952011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6496
6497 * config/i386/sysv4.h (TARGET_VERSION): Remove.
6498 (SUBTARGET_RETURN_IN_MEMORY): Remove.
6499 (ASM_OUTPUT_ASCII): Remove.
6500 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
6501
2a737389
JL
65022011-02-02 Jeff Law <law@redhat.com>
6503
6504 PR middle-end/47543
6505 * reload.c (find_reloads_address): Handle reg+d address where both
6506 components are invalid by reloading the entire address.
6507
9dac82c4
SP
65082011-02-02 Sebastian Pop <sebastian.pop@amd.com>
6509 Richard Guenther <rguenther@suse.de>
6510
6511 PR tree-optimization/40979
6512 PR bootstrap/47044
6513 * passes.c (init_optimization_passes): After LIM call copy_prop
6514 and DCE to clean up.
6515 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
6516
14dd9aab
SP
65172011-02-02 Sebastian Pop <sebastian.pop@amd.com>
6518
6519 PR tree-optimization/47576
6520 PR tree-optimization/47555
6521 * doc/invoke.texi (scev-max-expr-complexity): Documented.
6522 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6523 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
6524 * tree-scalar-evolution.c (follow_ssa_edge): Use
6525 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
6526
5cbf5c20
RG
65272011-02-02 Richard Guenther <rguenther@suse.de>
6528
6529 PR tree-optimization/47566
6530 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
6531
83d70792
AO
65322011-02-02 Alexandre Oliva <aoliva@redhat.com>
6533
e829c321
AO
6534 PR debug/47106
6535 PR debug/47402
6536 * tree-inline.c (declare_return_variable): Remove unused caller
6537 variable.
6538
83d70792
AO
6539 PR debug/47106
6540 PR debug/47402
6541 * tree-flow-inline.h (clear_is_used, is_used_p): New.
6542 * cfgexpand.c (account_used_vars_for_block): Use them.
6543 * tree-nrv.c (tree_nrv): Likewise.
6544 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
6545 (dump_scope_block): Likewise.
6546 (remove_unused_locals): Likewise.
6547
aaa2ac93
AO
6548 PR debug/47106
6549 PR debug/47402
6550 * tree-inline.c (declare_return_variable): Add result decl to
6551 local decls only once.
6552 * gimple-low.c (record_vars_into): Mark newly-created variables
6553 as referenced.
6554
a59d15cf
AO
65552011-02-02 Alexandre Oliva <aoliva@redhat.com>
6556
6557 PR debug/47498
6558 PR debug/47501
6559 PR debug/45136
6560 PR debug/45130
6561 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6562 debug insns.
6563 (no_real_insns_p, schedule_block, set_priorities): Drop special
6564 treatment of boundary debug insns.
38be4072 6565 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
6566 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
6567 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6568 (BOUNDARY_DEBUG_INSN_P): Likewise.
6569 (SCHEDULE_DEBUG_INSN_P): Likewise.
6570 * sched-rgn.c (init_ready_list): Drop special treatment of
6571 boundary debug insns.
6572 * final.c (rest_of_clean_state): Clear notes' BB.
6573
6fc2f091
JM
65742011-02-01 Joseph Myers <joseph@codesourcery.com>
6575
6576 * config/openbsd.opt (assert=): New Driver option.
6577
fc523387
JM
65782011-02-01 Joseph Myers <joseph@codesourcery.com>
6579
6580 * config/i386/nto.opt: New.
6581 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
6582
6d9821e5
JM
65832011-02-01 Joseph Myers <joseph@codesourcery.com>
6584
6585 * config/i386/netware.opt: New.
6586 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
6587
cef932d4
JM
65882011-02-01 Joseph Myers <joseph@codesourcery.com>
6589
6590 * config/interix.opt (posix): New Driver option.
6591
22843acd
DD
65922011-02-01 DJ Delorie <dj@redhat.com>
6593
56490b74
DD
6594 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
6595
22843acd
DD
6596 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
6597 class for A0/A1.
6598
199c8f2f
SP
65992011-02-01 Sebastian Pop <sebastian.pop@amd.com>
6600
6601 PR tree-optimization/47561
6602 * toplev.c (process_options): Print the Graphite flags. Add
6603 flag_loop_flatten to the list of options requiring Graphite.
6604
926bcf22
JM
66052011-02-01 Joseph Myers <joseph@codesourcery.com>
6606
6607 * config/i386/cygming.opt (posix): New Driver option.
6608
59793c51
JM
66092011-02-01 Joseph Myers <joseph@codesourcery.com>
6610
6611 * config/arm/vxworks.opt: New.
6612 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
6613
183c38a4
JM
66142011-02-01 Joseph Myers <joseph@codesourcery.com>
6615
6616 * config/alpha/elf.opt: New.
6617 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
6618 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
6619
9939e416
RG
66202011-02-01 Richard Guenther <rguenther@suse.de>
6621
6622 PR tree-optimization/47559
6623 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
6624 store-motion on references that can throw.
6625
4a3c9687
BS
66262011-02-01 Bernd Schmidt <bernds@codesourcery.com>
6627
6628 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
6629 * tree-pass.h (TDF_CSELIB): New macro.
6630 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
6631 cselib_lookup): Check for it rather than for TDF_DETAILS.
6632
dd3b31fb
L
66332011-02-01 H.J. Lu <hongjiu.lu@intel.com>
6634
6635 PR driver/47547
6636 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
6637 is HOST_BIT_BUCKET.
6638
6639 * opts.c (finish_options): Don't add x_aux_base_name if it is
6640 HOST_BIT_BUCKET.
6641
34c1de79
RG
66422011-02-01 Richard Guenther <rguenther@suse.de>
6643
6644 PR tree-optimization/47555
6645 Revert
6646 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
6647
6648 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6649
dd2804d2
SB
66502011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
6651
6652 PR gcc/46692
6653 * config/lm32/t-lm32: Add multilib for all CPU options.
6654
3fd3b156
RG
66552011-02-01 Richard Guenther <rguenther@suse.de>
6656
6657 PR tree-optimization/47541
6658 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6659 sure to have a field at offset zero.
6660
f16072b6
JM
66612011-01-31 Joseph Myers <joseph@codesourcery.com>
6662
6663 * config/arc/arc.opt (EB, EL): New Driver options.
6664
6456cf2e
JM
66652011-01-31 Joseph Myers <joseph@codesourcery.com>
6666
6667 * config/alpha/osf5.opt: New.
6668 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
6669
cdde6ab4
JM
66702011-01-31 Joseph Myers <joseph@codesourcery.com>
6671
6672 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
6673
7633415c
SP
66742011-01-31 Sebastian Pop <sebastian.pop@amd.com>
6675
6676 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
6677 -floop-interchange.
6678 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
6679 is an alias of -floop-interchange and that it requires the
6680 Graphite infrastructure.
6681 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
6682 flag_loop_interchange based on the value of flag_tree_loop_linear.
6683
0425d6f5
JJ
66842011-01-31 Jakub Jelinek <jakub@redhat.com>
6685 Richard Guenther <rguenther@suse.de>
6686
6687 PR tree-optimization/47538
6688 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
6689 type instead of r1type, except for comparisons. For right
6690 shifts and comparisons punt if there are mismatches in
6691 sizetype vs. non-sizetype types.
6692
500b16c3
RO
66932011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6694
6695 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6696 avx_runtime.
6697
e279edb0
RO
66982011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6699
6700 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
6701 version number.
6702 * configure: Regenerate.
6703
c6092243
RO
67042011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6705
6706 * configure.ac (gcc_cv_ld_static_option): Define.
6707 (gcc_cv_ld_dynamic_option): Define.
6708 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
6709 instead.
6710 (HAVE_LD_STATIC_DYNAMIC): Update message.
6711 (LD_STATIC_OPTION): Define.
6712 (LD_DYNAMIC_OPTION): Define.
6713 * configure: Regenerate.
6714 * config.in: Regenerate.
6715 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
6716 HAVE_LD_STATIC_DYNAMIC]: Use them.
6717
d7862be3
NC
67182011-01-31 Nick Clifton <nickc@redhat.com>
6719
6720 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
6721 registers inside interrupt handlers if the handler is not a leaf
6722 function.
6723
ba4ec0e0
NC
67242011-01-31 Nick Clifton <nickc@redhat.com>
6725
6726 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
6727 reg_renumber returning an INVALID_REGNUM.
6728
29a63921
AO
67292011-01-31 Alexandre Oliva <aoliva@redhat.com>
6730
6731 PR libgcj/44341
6732 * doc/install.texi: Document host options discarded when cross
6733 configuring target libraries.
6734
ef591d3f
AO
67352011-01-31 Alexandre Oliva <aoliva@redhat.com>
6736
6737 Reverted:
6738 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6739 PR debug/45136
6740 PR debug/45130
6741 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6742 debug insns.
6743 (no_real_insns_p, schedule_block, set_priorities): Drop special
6744 treatment of boundary debug insns.
38be4072 6745 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
6746 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6747 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6748 (BOUNDARY_DEBUG_INSN_P): Likewise.
6749 (SCHEDULE_DEBUG_INSN_P): Likewise.
6750 * sched-rgn.c (init_ready_list): Drop special treatment of
6751 boundary debug insns.
6752 * final.c (rest_of_clean-state): Clear notes' BB.
6753
61052244
AM
67542011-01-31 Alan Modra <amodra@gmail.com>
6755
6756 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
6757 toc relative expressions as we do in print_operand_address.
6758
c4c8962b
KH
67592011-01-30 Kazu Hirata <kazu@codesourcery.com>
6760
6761 * doc/extend.texi: Follow spelling conventions.
6762 * doc/invoke.texi: Fix a typo.
6763
e543b94c
JM
67642011-01-30 Joseph Myers <joseph@codesourcery.com>
6765
6766 * config/hpux11.opt: New.
6767 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
6768 ia64*-*-hpux*): Use hpux11.opt.
6769
509d65dd 67702011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
6771
6772 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
6773 to tmake_file.
6774
7be03a0e
GP
67752011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6776
6777 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
6778 support sites.
6779
419d1d37
GP
67802011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6781
b596ed64
GP
6782 * doc/install.texi (Binaries): Remove outdated reference for
6783 Motorola 68HC11/68HC12 downloads.
6784
67852011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 6786
419d1d37
GP
6787 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
6788 Drepper's paper.
6789
4406d0e9
JW
67902011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6791
6792 PR bootstrap/47147
6793 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
6794 used by NetBSD.
6795
38be4072 67962011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
6797
6798 * value-prof.c (check_counter): Corrected error message.
6799
0cd98787
JZ
68002011-01-29 Jie Zhang <jie@codesourcery.com>
6801
6802 * config/arm/arm.c (arm_legitimize_reload_address): New.
6803 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
6804 arm_legitimize_reload_address.
38be4072 6805 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 6806
9b798ac5
ILT
68072011-01-28 Ian Lance Taylor <iant@google.com>
6808
6809 * godump.c (go_define): Ignore macros whose definitions include
6810 two adjacent operands.
6811
591e29d9
JJ
68122011-01-28 Jakub Jelinek <jakub@redhat.com>
6813
6814 PR target/42894
6815 * varasm.c (force_const_mem): Store copy of x in desc->constant
6816 instead of x itself.
6817 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
6818 itself into REG_EQUAL note.
6819
62dcc44a
JM
68202011-01-28 Joseph Myers <joseph@codesourcery.com>
6821
6822 * config/freebsd.opt (posix, rdynamic): New Driver options.
6823
c9f58b9a
RO
68242011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6825
6826 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
6827 -Bstatic/-Bdynamic.
6828 * configure: Regenerate.
6829
5f02b9db
JM
68302011-01-27 Joseph Myers <joseph@codesourcery.com>
6831
6832 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
6833 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
6834
5df97412
AS
68352011-01-27 Anatoly Sokolov <aesok@post.ru>
6836
6837 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
6838 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
6839 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6840 (s390_preferred_reload_class): Make static. Change return and
6841 'rclass' argument type to reg_class_t.
6842
779d4b91
JH
68432011-01-27 Jan Hubicka <jh@suse.cz>
6844
6845 PR middle-end/46949
6846 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
6847 (process_function_and_variable_attributes): Check defined weakrefs.
6848
e80b21ed
MJ
68492011-01-27 Martin Jambor <mjambor@suse.cz>
6850
6851 PR tree-optimization/47228
6852 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
6853 build_ref_for_offset.
6854
6dcc4f31
UW
68552011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6856
6857 * config/spu/spu-elf.h (ASM_SPEC): Remove.
6858
509d65dd 68592011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
6860
6861 PR rtl-optimization/46856
6862 * postreload.c (reload_combine_recognize_const_pattern): Do not
6863 separate cc0 setter and user on cc0 targets.
6864
04af8788
NP
68652011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
6866
6867 PR c/43082
6868 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
6869 passed a VOID_TYPE expression, immediately emit an error and
6870 return error_mark_node.
6871
f7a60085
JL
68722011-01-26 Jeff Law <law@redhat.com>
6873
6874 PR rtl-optimization/47464
6875 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
6876 rather than may_trap_p as needed.
6877
5c2917ec
DD
68782011-01-26 DJ Delorie <dj@redhat.com>
6879
6880 PR rtl-optimization/46878
6881 * combine.c (insn_a_feeds_b): Check for the implicit cc0
6882 setter/user dependency as well.
6883
bef16e87
EB
68842011-01-26 Eric Botcazou <ebotcazou@adacore.com>
6885
6886 PR rtl-optimization/44469
6887 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
6888 after removing trivially dead basic blocks.
6889
c75d884b
JM
68902011-01-26 Joseph Myers <joseph@codesourcery.com>
6891
6892 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
6893 * config/frv/frv.h (LINK_SPEC): Likewise.
6894 * config/i386/netware.h (LINK_SPEC): Likewise.
6895 * config/m68k/linux.h (ASM_SPEC): Likewise.
6896 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
6897 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6898 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6899 * config/sparc/linux.h (ASM_SPEC): Likewise.
6900 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6901 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6902
d3153553
JM
69032011-01-26 Joseph Myers <joseph@codesourcery.com>
6904
6905 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
6906 * config/frv/frv.h (ASM_SPEC): Likewise.
6907 * config/m68k/linux.h (ASM_SPEC): Likewise.
6908 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6909 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
6910 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6911 * config/sparc/linux.h (ASM_SPEC): Likewise.
6912 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6913 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6914
b89b1e9d
JM
69152011-01-26 Joseph Myers <joseph@codesourcery.com>
6916
6917 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
6918 * config/frv/frv.h (LINK_SPEC): Likewise.
6919 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6920
12eb1a9c
JM
69212011-01-26 Joseph Myers <joseph@codesourcery.com>
6922
6923 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
6924 * config/frv/frv.h (ASM_SPEC): Likewise.
6925 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
6926 * config/m68k/linux.h (ASM_SPEC): Likewise.
6927 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6928 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6929 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6930 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
6931 * config/sparc/linux.h (ASM_SPEC): Likewise.
6932 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6933 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6934 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
6935
e435f098
SE
69362011-01-26 Steve Ellcey <sje@cup.hp.com>
6937
6938 PR target/46997
6939 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
6940 (*mux2): Ditto.
6941 (vec_extract_evenodd_help): Ditto.
6942 (vec_extract_evenv4hi): Ditto.
6943 (vec_extract_oddv4hi): Ditto.
6944 (vec_interleave_lowv2si): Ditto.
6945 (vec_interleave_highv2si): Ditto.
6946 (vec_extract_evenv2si): Ditto.
6947 (vec_extract_oddv2si: Ditto.
6948 (vec_pack_trunc_v2si): Ditto.
6949
34f0eee0
JH
69502011-01-22 Jan Hubicka <jh@suse.cz>
6951
6952 PR target/47237
6953 * cgraph.h (cgraph_local_info): New field can_change_signature.
6954 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
6955 signature can change.
6956 (ipcp_estimate_growth): Call sequence simplify only if calle signature
6957 can change.
6958 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
6959 (cgraph_function_versioning): We can not change signature of functions
6960 that don't allow that.
6961 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
6962 (lto_input_node): Likewise.
38be4072
UB
6963 * ipa-inline.c (compute_inline_parameters): Compute
6964 local.can_change_signature.
34f0eee0 6965 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
6966 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
6967 functions that can not change signature.
34f0eee0 6968 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
6969 init_cumulative_args): Do not use local calling conventions
6970 for functions that can not change signature.
34f0eee0 6971
980ca891
JH
69722011-01-22 Jan Hubicka <jh@suse.cz>
6973
6974 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
6975
768e3c60
RG
69762011-01-26 Richard Guenther <rguenther@suse.de>
6977
6978 PR tree-optimization/47190
61052244
AM
6979 * cgraphunit.c (process_common_attributes): New function.
6980 (process_function_and_variable_attributes): Use it.
768e3c60 6981
21d6a1c7
RG
69822011-01-26 Richard Guenther <rguenther@suse.de>
6983
6984 PR lto/47423
6985 * cgraphbuild.c (record_eh_tables): Record reference to personality
6986 function.
6987
48bb58b1
AO
69882011-01-26 Alexandre Oliva <aoliva@redhat.com>
6989
6990 PR debug/45454
6991 * sel-sched.c (moveup_expr): Don't let debug insns prevent
6992 non-debug insns from moving up.
6993
58c741a6
DK
69942011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6995
6996 PR target/40125
6997 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
6998 t-dlldir{,-x} fragment for build and add it to tmake_file.
6999 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
7000 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
7001 * config/i386/t-dlldir: New file.
7002 (SHLIB_DLLDIR): Define.
7003 * config/i386/t-dlldir-x: New file.
7004 (SHLIB_DLLDIR): Define.
7005 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
7006 (SHLIB_INSTALL): Use it.
7007
bff99262
CLT
70082011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
7009
7010 PR target/47246
7011 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
7012 lower bound of the allowed Thumb-2 coprocessor load/store
7013 index range to -256. Add explaining comment.
7014
82c03907
ILT
70152011-01-25 Ian Lance Taylor <iant@google.com>
7016
7017 * godump.c (go_define): Improve lexing of macro expansion to only
7018 accept expressions which match Go spec.
7019
47ea1edf
DK
70202011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7021
d4dba752 7022 PR c++/43601
47ea1edf
DK
7023 * tree.c (handle_dll_attribute): Handle it.
7024 * doc/extend.texi (@item dllexport): Mention it.
7025 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
7026
744f0946
ILT
70272011-01-25 Ian Lance Taylor <iant@google.com>
7028
7029 PR tree-optimization/26854
7030 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
7031 (decl_jump_unsafe): Move higher in file, with no other change.
7032 (bind): Set has_jump_unsafe_decl if appropriate.
7033 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
7034 (check_earlier_gotos): Likewise.
7035 (c_check_switch_jump_warnings): Likewise.
7036
5734f2b3
JW
70372011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
7038
7039 * doc/invoke.texi (Warning Options): Add missing hyphen.
7040 (-fprofile-dir): Minor grammatical fixes.
7041 (-fbranch-probabilities): Likewise.
7042
9bdbdcef
AO
70432011-01-25 Alexandre Oliva <aoliva@redhat.com>
7044
7045 PR debug/45136
7046 PR debug/45130
7047 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7048 debug insns.
7049 (no_real_insns_p, schedule_block, set_priorities): Drop special
7050 treatment of boundary debug insns.
38be4072 7051 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
7052 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
7053 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7054 (BOUNDARY_DEBUG_INSN_P): Likewise.
7055 (SCHEDULE_DEBUG_INSN_P): Likewise.
7056 * sched-rgn.c (init_ready_list): Drop special treatment of
7057 boundary debug insns.
7058 * final.c (rest_of_clean-state): Clear notes' BB.
7059
b305e3da
SP
70602011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7061
7062 * Makefile.in (LAMBDA_H): Removed.
7063 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
7064 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
7065 lambda-trans.o, and tree-loop-linear.o.
7066 (lto-symtab.o): Remove dependence on LAMBDA_H.
7067 (tree-loop-linear.o): Remove rule.
7068 (lambda-mat.o): Same.
7069 (lambda-trans.o): Same.
7070 (lambda-code.o): Same.
7071 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
7072 (tree-vect-slp.o): Same.
7073 * hwint.h (gcd): Moved here.
7074 (least_common_multiple): Same.
7075 * lambda-code.c: Removed.
7076 * lambda-mat.c: Removed.
7077 * lambda-trans.c: Removed.
7078 * lambda.h: Removed.
7079 * tree-loop-linear.c: Removed.
7080 * lto-symtab.c: Do not include lambda.h.
7081 * omega.c (gcd): Removed.
7082 * passes.c (init_optimization_passes): Remove pass_linear_transform.
7083 * tree-data-ref.c (print_lambda_vector): Moved here.
7084 (lambda_vector_copy): Same.
7085 (lambda_matrix_copy): Same.
7086 (lambda_matrix_id): Same.
7087 (lambda_vector_first_nz): Same.
7088 (lambda_matrix_row_add): Same.
7089 (lambda_matrix_row_exchange): Same.
7090 (lambda_vector_mult_const): Same.
7091 (lambda_vector_negate): Same.
7092 (lambda_matrix_row_negate): Same.
7093 (lambda_vector_equal): Same.
7094 (lambda_matrix_right_hermite): Same.
7095 * tree-data-ref.h: Do not include lambda.h.
7096 (lambda_vector): Moved here.
7097 (lambda_matrix): Same.
7098 (dependence_level): Same.
7099 (lambda_transform_legal_p): Removed declaration.
7100 (lambda_collect_parameters): Same.
7101 (lambda_compute_access_matrices): Same.
7102 (lambda_vector_gcd): Same.
7103 (lambda_vector_new): Same.
7104 (lambda_vector_clear): Same.
7105 (lambda_vector_lexico_pos): Same.
7106 (lambda_vector_zerop): Same.
7107 (lambda_matrix_new): Same.
7108 * tree-flow.h (least_common_multiple): Removed declaration.
7109 * tree-parloops.c (lambda_trans_matrix): Moved here.
7110 (LTM_MATRIX): Same.
7111 (LTM_ROWSIZE): Same.
7112 (LTM_COLSIZE): Same.
7113 (LTM_DENOMINATOR): Same.
7114 (lambda_trans_matrix_new): Same.
7115 (lambda_matrix_vector_mult): Same.
7116 (lambda_transform_legal_p): Same.
7117 * tree-pass.h (pass_linear_transform): Removed declaration.
7118 * tree-ssa-loop.c (tree_linear_transform): Removed.
7119 (gate_tree_linear_transform): Removed.
7120 (pass_linear_transform): Removed.
7121 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
7122 flag_loop_interchange.
7123
6bdfdb96
JJ
71242011-01-25 Jakub Jelinek <jakub@redhat.com>
7125
7126 PR tree-optimization/47265
7127 PR tree-optimization/47443
7128 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
7129 if name still has some uses.
7130
e4cba915
MJ
71312011-01-25 Martin Jambor <mjambor@suse.cz>
7132
7133 PR tree-optimization/47382
7134 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
7135 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
7136
509d65dd 71372011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
7138
7139 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
7140 sjlj_except_unwind_info.
7141
194313e2
RG
71422011-01-25 Richard Guenther <rguenther@suse.de>
7143
7144 PR tree-optimization/47426
7145 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
7146 visible functions results escape.
7147
147a0bcf
JJ
71482011-01-25 Jakub Jelinek <jakub@redhat.com>
7149
7150 PR target/45701
7151 * config/arm/arm.c (any_sibcall_uses_r3): New function.
7152 (arm_get_frame_offsets): Use it.
7153
db963b52
SP
71542011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7155 Jakub Jelinek <jakub@redhat.com>
7156
7157 PR tree-optimization/47271
7158 * tree-if-conv.c (bb_postdominates_preds): New.
7159 (if_convertible_bb_p): Call bb_postdominates_preds.
7160 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
7161 (predicate_scalar_phi): Call bb_postdominates_preds.
7162
bcddd3b9
NC
71632011-01-25 Nick Clifton <nickc@redhat.com>
7164
7165 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
7166 * config/rx/rx.c (rx_function_value): Likewise.
7167 (rx_promote_function_mode): Likewise.
7168 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
7169 in order to make it legitimate.
38be4072
UB
7170 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
7171 make sure that the first operand is the same as the result register.
bcddd3b9
NC
7172 (addsi3_unspec): Delete.
7173 (subdi3): Do not accept immediate operands.
7174 (subdi3_internal): Likewise.
7175
7e6cb022
JL
71762011-01-25 Jeff Law <law@redhat.com>
7177
7178 PR rtl-optimization/37273
7179 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7180 handle them like argument loads from stack slots. Do not double
7181 count memory for memory constants and argument loads from stack slots.
7182
9ffa621e
JJ
71832011-01-25 Jakub Jelinek <jakub@redhat.com>
7184
7185 PR tree-optimization/47427
7186 PR tree-optimization/47428
7187 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7188 coalesce if the new root var would be TREE_READONLY.
7189
5bd6e652
RG
71902011-01-25 Richard Guenther <rguenther@suse.de>
7191
7192 PR middle-end/47414
7193 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
7194 correct type for TBAA.
7195
7c48ea69
SP
71962011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7197
7198 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
7199 (close_phi_written_to_memory): Call for_each_index with
7200 dr_indices_valid_in_loop.
7201
38013f25
SP
72022011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7203
7204 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
7205 when it is initialized.
7206
5c640e29
SP
72072011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7208
7209 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
7210 call to graphite_find_data_references_in_stmt.
7211 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
7212 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
7213 call to graphite_find_data_references_in_stmt.
7214 (analyze_drs_in_stmts): Same.
7215 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
7216 in which the scalar analysis of indices is performed.
7217 (create_data_ref): Same. Update call to dr_analyze_indices.
7218 (find_data_references_in_stmt): Update call to create_data_ref.
7219 (graphite_find_data_references_in_stmt): Same.
7220 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
7221 declaration.
7222 (create_data_ref): Same.
7223 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
7224 call to create_data_ref.
7225
ac53c069
SP
72262011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7227
7228 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 7229 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 7230
3d17df15
SP
72312011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7232
7233 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
7234 VAR_DECL, PARM_DECL, and RESULT_DECL.
7235
c513da01
SP
72362011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7237
7238 * graphite-dependences.c (reduction_dr_1): Allow several reductions
7239 in a reduction PBB.
7240 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
7241 that have already been marked as PBB_IS_REDUCTION.
7242
3a292d59
SP
72432011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7244
7245 * graphite-scop-detection.c (same_close_phi_node): New.
7246 (remove_duplicate_close_phi): New.
7247 (make_close_phi_nodes_unique): New.
7248 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
7249
ba858447
SP
72502011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7251
7252 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
7253 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
7254 of both data references to be the same.
7255
8d865c56
SP
72562011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7257
38be4072
UB
7258 * graphite-dependences.c (build_lexicographical_constraint): Remove
7259 the gdim parameter.
7260 (build_lexicographical_constraint): Adjust call to
7261 ppl_powerset_is_empty.
8d865c56
SP
7262 (dependence_polyhedron): Same.
7263 (graphite_legal_transform_dr): Same.
7264 (graphite_carried_dependence_level_k): Same.
38be4072
UB
7265 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
7266 parameter.
8d865c56
SP
7267 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
7268
50034a36
SP
72692011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7270
7271 * graphite-sese-to-poly.c
7272 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
7273 (close_phi_written_to_memory): New.
7274 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
7275 and unshare_expr.
7276
0deada9e
SP
72772011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7278
7279 * doc/install.texi: Update the expected version number of PPL to 0.11.
7280 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
7281 #if PPL_VERSION_MINOR < 11.
7282
d7d3d6af
SP
72832011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7284
7285 * graphite-dependences.c: Include graphite-cloog-util.h.
7286 (new_poly_ddr): Inlined into dependence_polyhedron.
7287 (free_poly_ddr): Moved close by new_poly_ddr.
7288 (dependence_polyhedron_1): Renamed dependence_polyhedron.
7289 Early return NULL when ppl_powerset_is_empty returns true.
7290 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
7291 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
7292 (graphite_legal_transform_dr): Call new_poly_ddr.
7293 (graphite_carried_dependence_level_k): Same.
7294 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
7295 (dot_transformed_deps_stmt_1): Removed.
7296 (dot_deps_stmt_1): Call dot_deps_stmt_2.
7297 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
7298 (dot_deps_1): Call dot_deps_2.
7299 * Makefile.in (graphite-dependences.o): Add missing dependence on
7300 graphite-cloog-util.h.
7301
28c5db57
SP
73022011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7303
7304 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
7305 (build_lexicographical_constraint): Same.
7306 (dependence_polyhedron_1): Same.
7307 (graphite_legal_transform_dr): Same.
7308 (graphite_carried_dependence_level_k): Same.
7309 * graphite-ppl.c (ppl_powerset_is_empty): New.
7310 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
7311 * tree-data-ref.c (dump_data_reference): Print the basic block index.
7312
5168d98f
SP
73132011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7314
7315 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
7316 the "a followed by b" relation and document it.
7317
4a40293a
SP
73182011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7319
7320 * graphite-dependences.c (build_lexicographical_constraint): Stop the
7321 iteration when the bag of constraints is empty.
7322
271fb6fa
SP
73232011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7324
7325 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
7326
92d23680
SP
73272011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7328
7329 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
7330 nest and two loop depths as parameters.
7331 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
7332 lst_perfect_nestify.
7333
2f51deff
SP
73342011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7335
7336 * graphite-dependences.c (print_pddr): Call
7337 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
7338
07f3593c
SP
73392011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7340
7341 * graphite-ppl.c (debug_gmp_value): New.
7342 * graphite-ppl.h (debug_gmp_value): Declared.
7343
3fae6099
TG
73442011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
7345
7346 * doc/install.texi: Document availability of cloog-0.16.
7347
1c3ba85b
SP
73482011-01-25 Vladimir Kargov <kargov@gmail.com>
7349
7350 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
7351 invalid postdominance info.
7352
e8ba94fc
JH
73532011-01-24 Jan Hubicka <jh@suse.cz>
7354
7355 PR c/21659
7356 * doc/extend.texi (weak pragma): Drop claim that it must
7357 appear before definition.
7358 * varasm.c (merge_weak, declare_weak): Only sanity check
7359 that DECL is not output at a time it is declared weak.
7360
2b6e2d13
KZ
73612011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
7362
7363 * machmode.def: Fixed comments.
1c3ba85b 7364
9841210f
KT
73652011-01-24 Kai Tietz <kai.tietz@onevision.com>
7366
7367 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
7368
73692011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
7370
7371 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 7372 WORDS_BIG_ENDIAN.
e046112d 7373
a6c5070a
L
73742011-01-24 H.J. Lu <hongjiu.lu@intel.com>
7375
7376 PR target/46519
7377 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
7378 (block_info): Add scanned and prev.
7379 (move_or_delete_vzeroupper_2): Return if the basic block
7380 has been scanned and the upper 128bit state is unchanged
7381 from the last scan.
7382 (move_or_delete_vzeroupper_1): Return true if the exit
7383 state is changed.
7384 (move_or_delete_vzeroupper): Visit basic blocks using the
7385 work-list based algorithm based on vt_find_locations in
7386 var-tracking.c.
7387
7388 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
7389
a40d79d7
NC
73902011-01-24 Nick Clifton <nickc@redhat.com>
7391
7392 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
7393 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
7394 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
7395 then define __v850e1__.
7396 * doc/invoke.texi: Document -mv850es.
7397
440eb8de
RH
73982011-01-24 Richard Henderson <rth@redhat.com>
7399
7400 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
7401 compound unordered comparisons.
7402 * config/rx/rx.c (rx_split_fp_compare): Remove.
7403 * config/rx/rx-protos.h: Update.
7404 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
7405 (cbranchsf4): Don't call rx_split_fp_compare.
7406 (*cbranchsf4): Use rx_split_cbranch.
7407 (*cmpsf): Don't accept "i" constraint.
7408 (*conditional_branch): Only valid after reload.
7409 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
7410
3ff79f99
MM
74112011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7412
7413 PR target/47385
7414 * config/rs6000/altivec.md (vector constant splitters): Add
7415 support for creating vector single precision constants if -mvsx is
7416 used and we would create the constant using Altivec primitives.
7417
ff3d9d08
BS
74182011-01-23 Bernd Schmidt <bernds@codesourcery.com>
7419 Richard Sandiford <rdsandiford@googlemail.com>
7420
7421 PR rtl-optimization/47166
7422 * reload1.c (emit_reload_insns): Disable the spill_reg_store
7423 mechanism for PRE_MODIFY and POST_MODIFY.
7424 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
7425 reloadreg.
7426
7fcaf152
AS
74272011-01-23 Andreas Schwab <schwab@linux-m68k.org>
7428
8788adb6 7429 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 7430
d09b58c4
JH
74312011-01-22 Jan Hubicka <jh@suse.cz>
7432
7433 PR lto/47333
7434 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
7435
e8ff8c5a
JH
74362011-01-22 Jan Hubicka <jh@suse.cz>
7437
7438 PR tree-optimization/43884
7439 PR lto/44334
8788adb6 7440 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
7441 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
7442
ccaed3ba
AS
74432011-01-22 Anatoly Sokolov <aesok@post.ru>
7444
7445 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7446 * config/s390/s390.c (s390_register_move_cost,
7447 s390_memory_move_cost): New.
7448 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7449
0cecee06
UW
74502011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7451
7452 PR middle-end/47401
7453 * except.c (sjlj_assign_call_site_values): Move setting the
7454 crtl->uses_eh_lsda flag to ...
7455 (sjlj_mark_call_sites): ... here.
7456 (sjlj_emit_function_enter): Support NULL dispatch label.
7457 (sjlj_build_landing_pads): In a function with no landing pads
7458 that still has must-not-throw regions, generate code to register
7459 a personality function with empty LSDA.
7460
e692f276
RH
74612011-01-21 Richard Henderson <rth@redhat.com>
7462
1b7ae0b7
RH
7463 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
7464
3843787f
RH
7465 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
7466
e692f276
RH
7467 * compare-elim.c: New file.
7468 * Makefile.in (OBJS-common): Add it.
7469 (compare-elim.o): New.
7470 * common.opt (fcompare-elim): New.
7471 * opts.c (default_options_table): Add OPT_fcompare_elim.
7472 * tree-pass.h (pass_compare_elim_after_reload): New.
7473 * passes.c (init_optimization_passes): Add it.
7474 * recog.h: Protect against re-inclusion.
7475 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
7476 * doc/invoke.texi (-fcompare-elim): Document it.
7477 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
7478 * doc/tm.texi: Rebuild.
7479
9a7c2050
NC
74802011-01-22 Nick Clifton <nickc@redhat.com>
7481
7482 * config/rx/rx.md (cstoresf4): Pass comparison operator to
7483 rx_split_fp_compare.
7484
15ba5696
NC
74852011-01-22 Nick Clifton <nickc@redhat.com>
7486
7487 * config/rx/rx.md (UNSPEC_CONST): New.
7488 (deallocate_and_return): Wrap the amount popped off the stack in
7489 an UNSPEC_CONST in order to stop it being rejected by
7490 -mmax-constant-size.
7491 (pop_and_return): Add a "(return)" rtx.
7492 (call): Drop the immediate operand.
7493 (call_internal): Likewise.
7494 (call_value): Likewise.
7495 (call_value_internal): Likewise.
7496 (sibcall_internal): Likewise.
7497 (sibcall_value_internal): Likewise.
7498 (sibcall): Likewise. Generate an explicit call using
7499 sibcall_internal.
7500 (sibcall_value): Likewise.
7501 (mov<>): FAIL if a constant operand is not legitimate.
7502 (addsi3_unpsec): New pattern.
9a7c2050 7503
38be4072 7504 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
7505 (ok_for_max_constant): New function.
7506 (gen_safe_add): New function.
7507 (rx_expand_prologue): Use gen_safe_add.
7508 (rx_expand_epilogue): Likewise.
7509 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
7510 UNSPEC CONSTs.
7511
caaf13d3
JL
75122011-01-21 Jeff Law <law@redhat.com>
7513
7514 PR tree-optimization/47053
7515 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
7516 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
7517 statements are deleted.
7518 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
7519 is nonempty, then purge dead edges and cleanup the CFG.
7520
12c30f2f
AO
75212011-01-21 Alexandre Oliva <aoliva@redhat.com>
7522
7523 PR debug/47402
7524 Temporarily revert:
7525 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
7526 PR debug/47106
7527 * tree-dfa.c (create_var_ann): Mark variable as used.
7528
7360d2ac
JJ
75292011-01-21 Jakub Jelinek <jakub@redhat.com>
7530
aaa52a96
JJ
7531 PR middle-end/45566
7532 * except.c (convert_to_eh_region_ranges): Emit queued no-region
7533 notes from other section in hot/cold partitioning even if
7534 last_action is -3. Increment call_site_base.
7535
7360d2ac
JJ
7536 PR rtl-optimization/47366
7537 * fwprop.c (forward_propagate_into): Return bool. If
7538 any changes are made, -fnon-call-exceptions is used and
7539 REG_EH_REGION note is present, call purge_dead_edges
7540 and return true if it purged anything.
7541 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
7542 any EH edges were purged.
7543
e90b336f
JL
75442011-01-21 Jeff Law <law@redhat.com>
7545
7546 PR rtl-optimization/41619
7547 * caller-save.c (setup_save_areas): Break out code to determine
7548 which hard regs are live across calls by examining the reload chains
7549 so that it is always used.
7550 Eliminate code which checked REG_N_CALLS_CROSSED.
7551
3ffe07e1
JJ
75522011-01-21 Jakub Jelinek <jakub@redhat.com>
7553
7554 PR tree-optimization/47355
7555 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
7556 NOP has non-debug uses beyond PHIs in new_bb.
7557
1c7d0b34
AO
75582011-01-21 Alexandre Oliva <aoliva@redhat.com>
7559
7560 PR debug/47106
7561 * cfgexpand.c (account_used_vars_for_block): Only account vars
7562 that are annotated as used.
7563 (estimated_stack_frame_size): Don't set TREE_USED.
7564 * tree-dfa.c (create_var_ann): Mark variable as used.
7565
f99cc488
RG
75662011-01-21 Richard Guenther <rguenther@suse.de>
7567
7568 PR middle-end/47395
7569 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
7570
3bc27de7
RG
75712011-01-21 Richard Guenther <rguenther@suse.de>
7572
7573 PR tree-optimization/47365
7574 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
7575 (vn_reference_lookup_pieces): Adjust.
7576 (vn_reference_lookup): Likewise.
7577 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
7578 (vn_reference_lookup_3): Only look through kills if in
7579 VN_WALKREWRITE mode.
7580 (vn_reference_lookup_pieces): Adjust.
7581 (vn_reference_lookup): Likewise.
7582 (visit_reference_op_load): Likewise.
7583 (visit_reference_op_store): Likewise.
7584 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
7585 (compute_avail): Likewise.
7586 (eliminate): Likewise.
7587
d8debb1d
JJ
75882011-01-21 Jakub Jelinek <jakub@redhat.com>
7589
7590 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
7591 DECL_IGNORED_P non-reg vars if they are used.
7592
3a2df831
JJ
7593 PR tree-optimization/47391
7594 * varpool.c (const_value_known_p): Return false if
7595 decl is volatile.
7596
1dd584a2
KT
75972011-01-21 Kai Tietz <kai.tietz@onevision.com>
7598
7599 PR bootstrap/47215
7600 * config/i386/i386.c (ix86_local_alignment): Handle
7601 case for va_list_type_node is nil.
7602 (ix86_canonical_va_list_type): Likewise.
7603
7f9f095e
AM
76042011-01-21 Alan Modra <amodra@gmail.com>
7605
7606 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
7607 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
7608
837b01f6
RR
76092011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7610
7611 * config/arm/arm.md (define_attr type): Rename f_load
7612 and f_store to f_fpa_load and f_fpa_store. Update.
7613 (write_conflict): Deal with rename fallout.
7614 (*push_fp_multi): Likewise.
7615 * config/arm/fpa.md (f_load): Use f_fpa_load.
7616 (f_store): Use f_fpa_store.
7617 (*movsf_fpa): Likewise.
7618 (*movdf_fpa): Likewise.
7619 (*movxf_fpa): Likewise.
7620 (*thumb2_movsf_fpa): Likewise.
7621 (*thumb2_movdf_fpa): Likewise.
7622 (*thumb2_movxf_fpa): Likewise.
7623 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
7624 f_loadd and f_stored.
7625 (*thumb2_movdi_vfp): Likewise.
7626 (*thumb2_movsf_vfp): Fix attribute to f_loads.
7627 (*thumb2_movsi_vfp): Likewise.
7628 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
7629 Use f_loads instead of f_load.
7630 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
7631
a1a79768
AS
76322011-01-20 Anatoly Sokolov <aesok@post.ru>
7633
7634 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7635 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
7636 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7637 (xtensa_mode_dependent_address_p): New function.
7638 (constantpool_address_p): Make static. Change return type to bool.
7639 Change argument type to const_rtx. Use CONST_INT_P predicate.
7640
427f6cec
AO
76412011-01-20 Alexandre Oliva <aoliva@redhat.com>
7642
7643 PR debug/46583
7644 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
7645
583ac69c
JJ
76462011-01-20 Jakub Jelinek <jakub@redhat.com>
7647
7648 PR debug/47283
7649 * cfgexpand.c (expand_debug_expr): Instead of generating
7650 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
7651 etc. handling.
7652
93e452ed
RG
76532011-01-20 Richard Guenther <rguenther@suse.de>
7654
7655 PR middle-end/47370
7656 * tree-inline.c (remap_gimple_op_r): Recurse manually for
7657 the pointer operand of MEM_REFs.
7658
28fc44f3
JJ
76592011-01-20 Jakub Jelinek <jakub@redhat.com>
7660
7661 PR tree-optimization/46130
7662 * ipa-split.c (consider_split): If return_bb contains non-virtual
7663 PHIs other than for retval or if split_function would not adjust it,
7664 refuse to split.
7665
ddd268f2
RG
76662011-01-20 Richard Guenther <rguenther@suse.de>
7667
7668 PR tree-optimization/47167
7669 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7670 Revert previous change, only avoid enumeral type changes.
7671
882020aa
MS
76722011-01-19 Mike Stump <mikestump@comcast.net>
7673
7674 * doc/tm.texi.in (BRANCH_COST): Englishify.
7675 * doc/tm.texi (BRANCH_COST): Likewise.
7676
7edb6247
DS
76772011-01-19 Dodji Seketeli <dodji@redhat.com>
7678
7679 PR c++/47291
7680 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
7681 (gen_scheduled_generic_parms_dies): New functions.
7682 (gen_struct_or_union_type_die): Schedule template parameters DIEs
7683 generation for the end of CU compilation.
7684 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 7685
23d5ed5d
AO
76862011-01-19 Alexandre Oliva <aoliva@redhat.com>
7687
7688 PR debug/46240
7689 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
7690 debug bind stmt on merge edges.
7691
37d6a488
AO
76922011-01-19 Alexandre Oliva <aoliva@redhat.com>
7693
7694 PR debug/47079
7695 PR debug/46724
7696 * function.c (instantiate_expr): Instantiate incoming rtl of
7697 implicit arguments, and recurse on VALUE_EXPRs.
7698 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
7699 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
7700
689f2c82
AO
77012011-01-19 Alexandre Oliva <aoliva@redhat.com>
7702
7703 * c-parser.c (c_parser_for_statement): Initialize
7704 collection_expression.
7705
03029de4
JM
77062011-01-19 Joseph Myers <joseph@codesourcery.com>
7707
7708 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
7709
3e03217e
JM
77102011-01-19 Joseph Myers <joseph@codesourcery.com>
7711
7712 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
7713 (LINK_SHLIB_SPEC): Don't use %(link_path).
7714 (SUBTARGET_EXTRA_SPECS): Remove link_path.
7715
5bbe9b3f
JM
77162011-01-19 Joseph Myers <joseph@codesourcery.com>
7717
7718 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
7719 (NO_SHARED_LIB_SUPPORT): Remove.
7720 (LINK_SHLIB_SPEC): Remove one conditional definition.
7721
368e0b39
JM
77222011-01-19 Joseph Myers <joseph@codesourcery.com>
7723
7724 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
7725 %{call_shared}.
7726 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
7727 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
7728 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
7729 %{call_shared} and conditionals on these options not being passed.
7730 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
7731 %{call_shared}.
7732
ed7656f6
JJ
77332011-01-19 Jakub Jelinek <jakub@redhat.com>
7734
68457901
JJ
7735 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
7736 simplify.
7737
ed7656f6
JJ
7738 * ipa-split.c: Spelling fixes.
7739
e0d1958f
RH
77402011-01-19 Richard Henderson <rth@redhat.com>
7741
7742 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
7743 (*mulsi3): Likewise.
7744
27098b6b
RH
7745 * longlong.h [__mn10300__] (count_leading_zeros): New.
7746 [__mn10300__] (umul_ppmm, smul_ppmm): New.
7747 [__mn10300__] (add_ssaaaa, subddmmss): New.
7748 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
7749 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
7750
d6be7c36
UW
77512011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7752
7753 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
7754
b1efde2a
RH
77552011-01-19 Richard Henderson <rth@redhat.com>
7756
44217823
RH
7757 * config/mn10300/mn10300.md (addsi3_flags): New.
7758 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
7759 (subsi3_flags, subc_internal, subdi3): New.
7760 (subdi3_internal, *subdi3_degenerate): New.
7761 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
7762
37a185d7
RH
7763 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
7764 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
7765 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
7766 * config/mn10300/mn10300-protos.h: Update.
7767 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
7768 (return_ret): Likewise. Rename from return_internal_regs.
7769 (return_internal): Remove.
7770
040c5757
RH
7771 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
7772 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
7773 (mn10300_legitimate_constant_p): Likewise.
7774 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
7775 (mn10300_frame_size): New.
7776 (mn10300_expand_prologue): Use it.
7777 (mn10300_expand_epilogue): Likewise.
7778 (mn10300_initial_offset): Likewise.
7779 * config/mn10300/mn10300-protos.h: Update.
7780 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
7781 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
7782 (prologue, epilogue, return_internal): Tidy output code.
7783 (mn10300_store_multiple_operation, return): Likewise.
7784 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
7785 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
7786 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
7787 (load_pic, am33_load_pic): New.
7788 (mn10300_load_pic0, mn10300_load_pic1): New.
7789
bad41521
RH
7790 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
7791 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
7792 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
7793 (cc_flags_for_mode, cc_flags_for_code): New.
7794 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
7795 overflow flag is not valid. Validate that the flags we need
7796 for the comparison are valid.
7797 (mn10300_output_cmp): Remove.
7798 (mn10300_output_add): New.
7799 (mn10300_select_cc_mode): Use cc_flags_for_code.
7800 (mn10300_split_cbranch): New.
7801 (mn10300_match_ccmode): New.
7802 (mn10300_split_and_operand_count): New.
7803 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
7804 to the function.
7805 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
7806 (addsi3): ... here. Use mn10300_output_add.
7807 (*addsi3_flags): New.
7808 (*am33_subsi3, *mn10300_subsi3): Merge...
7809 (subsi3): ... here. Use attribute isa.
7810 (*subsi3_flags): New.
7811 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
7812 when possible.
7813 (*am33_andsi3, *mn10300_andsi3): Merge...
7814 (andsi3): ... here.
7815 (*andsi3_flags): New.
7816 (andsi3 splitters): New.
7817 (*am33_iorsi3, *mn10300_iorsi3): Merge...
7818 (iorsi3): ... here.
7819 (*iorsi3_flags): New.
7820 (*am33_xorsi3, *mn10300_xorsi3): Merge...
7821 (xorsi3): ... here.
7822 (*xorsi3_flags): New.
7823 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
7824 (one_cmplsi2): ... here.
7825 (*one_cmplsi2_flags): New.
7826 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
7827 instead of "dax" in constraints. Use mn10300_split_cbranch.
7828 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
7829 use matching constraints to eliminate a self-comparison.
7830 (*integer_conditional_branch): Rename from integer_conditional_branch.
7831 Use int_mode_flags to match CC_REG.
7832 (*cbranchsi4_btst, *btstsi): New.
7833 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
7834 mn10300_split_cbranch.
7835 (*am33_cmpsf): Rename from am33_cmpsf.
7836 (*float_conditional_branch): Rename from float_conditional_branch.
7837 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
7838 (zero_extendqisi2): ... here.
7839 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
7840 (zero_extendhisi2): ... here.
7841 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
7842 (extendqisi2): ... here.
7843 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
7844 (extendhisi2): ... here.
7845 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
7846 (ashlsi3): ... here.
7847 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
7848 (lshrsi3): ... here.
7849 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
7850 (ashrsi3): ... here.
7851 (consecutive add peephole): Remove.
7852 * config/mn10300/predicates.md (label_ref_operand): New.
7853 (int_mode_flags): New.
7854 (CCZN_comparison_operator): New.
7855
9efb4993
RH
7856 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
7857 (throughput_42_latency_43): New reservation.
7858 (mulsidi3, umulsidi3): New expanders.
7859 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
7860 the MDR register to allocation; separately allocate the low and
7861 high parts of the DImode result.
7862 (umulsidi3_internal): Similarly.
7863 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
7864 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
7865 (udivsi3, umodsi3): Remove.
7866 (udivmodsi4, divmodsi4): New expanders.
7867 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
7868 (*divmodsi4): Simiarly.
7869 (ext_internal): New.
7870
c25a21f5
RH
7871 * config/mn10300/constraints.md ("z"): New constraint.
7872 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
7873 (FIXED_REGISTERS): Don't fix MDR.
7874 (CALL_USED_REGSITERS): Reformat nicely.
7875 (REG_ALLOC_ORDER): Add MDR.
7876 (enum regclass): Add MDR_REGS.
7877 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
7878 (IRA_COVER_CLASSES): Add MDR_REGS.
7879 (REGNO_REG_CLASS): Handle MDR_REG.
7880 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
7881 (mn10300_register_move_cost): Likewise.
7882 * config/mn10300/mn10300.md (MDR_REG): New.
7883 (*movsi_internal): Handle moves to/from MDR_REGS.
7884
36846b26
RH
7885 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
7886 POST_MODIFY.
7887 (mn10300_secondary_reload): Tidy combination reload classes.
7888 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
7889 addresses for AM33. Allow symbolic offsets for reg+imm.
7890 (mn10300_regno_in_class_p): New.
7891 (mn10300_legitimize_reload_address): New.
7892 * config/mn10300/mn10300.h (enum reg_class): Remove
7893 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
7894 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
7895 SP_OR_GENERAL_REGS.
7896 (REG_CLASS_NAMES): Update to match.
7897 (REG_CLASS_CONTENTS): Likewise.
7898 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
7899 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
7900 (REGNO_IN_RANGE_P): Remove.
7901 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
7902 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
7903 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
7904 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
7905 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
7906 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
7907 (REGNO_GENERAL_P): New.
7908 (HAVE_POST_MODIFY_DISP): New.
7909 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
7910 (LEGITIMIZE_RELOAD_ADDRESS): New.
7911 * config/mn10300/mn10300-protos.h: Update.
7912
8b119bb6
RH
7913 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
7914 DATA_REGS for AM33 stack-pointer destination.
7915 (mn10300_preferred_output_reload_class): Likewise.
7916 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
7917 into a form appropriate for ...
7918 (TARGET_SECONDARY_RELOAD): New.
7919 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
7920 * config/mn10300/mn10300-protos.h: Update.
7921 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
7922 reload_insi; use the "A" constraint for the scratch; handle AM33
7923 moves of sp to non-address registers.
7924
b1efde2a
RH
7925 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
7926 (*movqi_internal): ... here.
7927 (*am33_movhi, *mn10300_movhi): Merge into...
7928 (*movhi_internal): ... here.
7929 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
7930 as the source/destination of moves from/to SP.
7931 (movsf): Only allow for AM33-2.
1c3ba85b 7932 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
7933 any integer constant constraint. Only allow for AM33-2. Tidy
7934 all of the alternative outputs.
7935 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
7936 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
7937 for MN103.
7938 (udivsi3, umodsi3): New patterns for MN103 only.
7939
b899fd78
JR
79402011-01-19 Joern Rennecke <amylaar@spamcop.net>
7941
7942 * doc/tm.texi.in: Spell out that a lack of register class unions
7943 can lead to ICEs.
7944 * doc/tm.texi: Regenerate.
7945
afaaa67d
JJ
79462011-01-19 Jakub Jelinek <jakub@redhat.com>
7947
2e0642cd
JJ
7948 PR rtl-optimization/47337
7949 * dce.c (check_argument_store): New function.
7950 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
7951
afaaa67d
JJ
7952 PR tree-optimization/47290
7953 * tree-eh.c (infinite_empty_loop_p): New function.
7954 (cleanup_empty_eh): Use it.
7955
d2cd871f
SE
79562011-01-18 Steve Ellcey <sje@cup.hp.com>
7957
7958 PR target/46997
7959 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
7960 (a64_expand_widen_sum): Ditto.
7961 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
7962 (vec_extract_evenodd_help): Ditto.
7963 (vec_extract_evenv4hi): Ditto.
7964 (vec_extract_oddv4hi): Ditto.
7965 (vec_extract_evenv2si): Ditto.
7966 (vec_extract_oddv2si): Ditto.
7967 (vec_extract_evenv2sf): Ditto.
7968 (vec_extract_oddv2sf): Ditto.
7969 (vec_pack_trunc_v4hi: Ditto.
7970 (vec_pack_trunc_v2si): Ditto.
7971 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
7972 (vec_interleave_highv8qi): Ditto.
7973 (mix1_r): Ditto.
7974 (vec_extract_oddv8qi): Ditto.
7975 (vec_interleave_lowv4hi): Ditto.
7976 (vec_interleave_highv4hi): Ditto.
7977 (vec_interleave_lowv2si): Ditto.
7978 (vec_interleave_highv2si): Ditto.
7979
41a1208a
JDA
79802011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7981
7982 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
7983 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
7984 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
7985 (pa_c_mode_for_suffix): New.
7986 (TARGET_EXPAND_BUILTIN): Define.
7987 (TARGET_C_MODE_FOR_SUFFIX): Define.
7988 (pa_builtins): Define.
7989 (pa_init_builtins): Register __float128 type and init new support
7990 builtins.
7991 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
7992 * config/pa/quadlib.c (_U_Qfcopysign): New.
7993
1ecad98e
EB
79942011-01-18 Eric Botcazou <ebotcazou@adacore.com>
7995
7996 PR middle-end/46894
7997 * explow.c (allocate_dynamic_stack_space): Do not assume more than
7998 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
7999 are defined.
8000
d4f2460a
UW
80012011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8002
8003 PR tree-optimization/47179
8004 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
8005 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
8006
4994da65
RG
80072011-01-18 Richard Guenther <rguenther@suse.de>
8008
8009 PR rtl-optimization/47216
8010 * emit-rtl.c: Include tree-flow.h.
8011 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
8012 of replicating it with different semantics.
8013 * Makefile.in (emit-rtl.o): Adjust.
8014
1eb458d1
RR
80152011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8016
38be4072 8017 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 8018 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 8019
e7ef91dc
JJ
80202011-01-18 Jakub Jelinek <jakub@redhat.com>
8021
8022 PR rtl-optimization/47299
8023 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 8024 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
8025 * expmed.c (expand_widening_mult): Don't try to optimize constant
8026 multiplication if op0 has VOIDmode. Convert op1 constant to mode
8027 before using it.
8028
535b7874
RW
80292011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8030
8031 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
8032 spacing after 'e.g.', typos, comma, hyphenation.
8033
27bf36f3
RH
80342011-01-17 Richard Henderson <rth@redhat.com>
8035
8a5b5449
RH
8036 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
8037 (rx_restricted_mem_operand): New.
8038 (rx_shift_operand): Use register_operand.
8039 (rx_source_operand, rx_compare_operand): Likewise.
8040 * config/rx/rx.md (addsi3_flags): New expander.
8041 (adddi3): Rewrite as expander.
8042 (adc_internal, *adc_flags, adddi3_internal): New patterns.
8043 (subsi3_flags): New expander.
8044 (subdi3): Rewrite as expander.
8045 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
8046
784f69be
RH
8047 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
8048 (rx_init_builtins): Remove sat builtin.
8049 (rx_expand_builtin): Likewise.
8050 * config/rx/rx.md (ssaddsi3): New.
8051 (*sat): Rename from sat. Represent the CC_REG input.
8052
f033541c
RH
8053 * config/rx/predicates.md (rshift_operator): New.
8054 * config/rx/rx.c (rx_expand_insv): Remove.
8055 * config/rx/rx-protos.h: Update.
8056 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
8057 operand to the canonical position.
8058 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
8059 (*bitclr, *bitclr_in_memory): Similarly.
8060 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
8061 (insv): Retain the zero_extract in the expansion.
8062
34fee389
RH
8063 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
8064 (bswaphi2, bitinvert, revw): Likewise.
8065
265c835f
RH
8066 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
8067 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
8068 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
8069 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
8070 (bitset, bitset_in_memory): Likewise.
8071 (bitinvert, bitinvert_in_memory): Likewise.
8072 (bitclr, bitclr_in_memory): Likewise.
8073 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
8074 (rx_strend, rx_cmpstrn): Likewise.
8075 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
8076 (bitop peep2 patterns): Remove.
8077
b4d83be3
RH
8078 * config/rx/rx.c (rx_match_ccmode): New.
8079 * config/rx/rx-protos.h: Update.
8080 * config/rx/rx.md (abssi2): Clobber, don't set flags.
8081 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
8082 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
8083 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
8084 (fix_truncsfsi2, floatsisf2): Likewise.
8085 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
8086 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
8087 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
8088 (*subsi3_flags, *xorsi3_flags): New.
8089
d0acb939
RH
8090 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
8091
c06fc3d9
RH
8092 * config/rx/rx.c (rx_print_operand): Remove workaround for
8093 unsplit comparison operations.
8094
2882702b
RH
8095 * config/rx/rx.md (movsicc): Split after reload.
8096 (*movsicc): Merge *movsieq and *movsine via match_operator.
8097 (*stcc): New pattern.
8098
6f7310f2
RH
8099 * config/rx/rx.c (rx_float_compare_mode): Remove.
8100 * config/rx/rx.h (rx_float_compare_mode): Remove.
8101 * config/rx/rx.md (cstoresi4): Split after reload.
8102 (*sccc): New pattern.
8103
e963cb1a
RH
8104 * config/rx/predicates.md (label_ref_operand): New.
8105 (rx_z_comparison_operator): New.
8106 (rx_zs_comparison_operator): New.
8107 (rx_fp_comparison_operator): New.
8108 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
8109 Validate that the flags are set properly for the comparison.
8110 (rx_gen_cond_branch_template): Remove.
8111 (rx_cc_modes_compatible): Remove.
8112 (mode_from_flags): New.
8113 (flags_from_code): Rename from flags_needed_for_conditional.
8114 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
8115 (rx_select_cc_mode): Likewise.
8116 (rx_split_fp_compare): New.
8117 (rx_split_cbranch): New.
8118 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
8119 (*cbranchsi4): Use match_operator and rx_split_cbranch.
8120 (*cbranchsf4): Similarly.
8121 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
8122 match_operator and rx_split_cbranch.
8123 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
8124 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
8125 (*cmpsi): Rename from cmpsi.
8126 (*tstsi): Rename from tstsi.
8127 (*cmpsf): Rename from cmpsf; use CC_Fmode.
8128 (*conditional_branch): Rename from conditional_branch.
8129 (*reveresed_conditional_branch): Remove.
8130 (b<code>): Remove expander.
8131 * config/rx/rx-protos.h: Update.
8132
af530bb4
RH
8133 * config/rx/rx.c (rx_compare_redundant): Remove.
8134 * config/rx/rx.md (cmpsi): Don't use it.
8135 * config/rx/rx-protos.h: Update.
8136
27bf36f3
RH
8137 * config/rx/rx-modes.def (CC_F): New mode.
8138 * config/rx/rx.c (rx_select_cc_mode): New.
8139 * config/rx/rx.h (SELECT_CC_MODE): Use it.
8140 * config/rx/rx-protos.h: Update.
8141
d7fde127
RH
81422011-01-17 Richard Henderson <rth@redhat.com>
8143
8144 * except.c (dump_eh_tree): Fix stray ; after for statement.
8145
6ff38230
RG
81462011-01-17 Richard Guenther <rguenther@suse.de>
8147
8148 PR tree-optimization/47313
8149 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
8150 handling before copying the body. Properly deal with
8151 by-reference result in SSA form.
8152
114ce554
ILT
81532011-01-17 Ian Lance Taylor <iant@google.com>
8154
bf5cd92b 8155 PR target/47219
114ce554
ILT
8156 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
8157 (struct_value_alias_set): Don't define.
8158 (sparc_option_override): Don't set sparc_sr_alias_set and
8159 struct_value_alias_set.
8160 (save_or_restore_regs): Use gen_frame_mem rather than calling
8161 set_mem_alias_set.
8162 (sparc_struct_value_rtx): Likewise.
8163
98c6d93c
L
81642011-01-17 H.J. Lu <hongjiu.lu@intel.com>
8165
8166 PR target/47318
7a81008b 8167 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
8168 (_mm_maskstore_pd): Likewise.
8169 (_mm_maskload_ps): Likewise.
8170 (_mm_maskstore_ps): Likewise.
8171 (_mm256_maskload_pd): Change mask to __m256i.
8172 (_mm256_maskstore_pd): Likewise.
8173 (_mm256_maskload_ps): Likewise.
8174 (_mm256_maskstore_ps): Likewise.
8175
8176 * config/i386/i386-builtin-types.def: Updated.
8177 (ix86_expand_special_args_builtin): Likewise.
8178
8179 * config/i386/i386.c (bdesc_special_args): Update
8180 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
8181 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
8182 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
8183 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
8184
8185 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
8186 Use <avxpermvecmode> on mask register.
8187 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
8188
b9361af2 81892011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
8190 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8191 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
8192
8193 PR target/46655
8194 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
8195 if <= USHRT_MAX in 32-bit mode.
8196
b7ae9eb5
RW
81972011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8198
8199 * doc/install.texi (Configuration, Specific): Wrap long
8200 lines in examples. Allow line wrapping in long options
8201 and URLs where beneficial for PDF output.
8202
4377fad9
RS
82032011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
8204
8205 * config/mips/mips.c (mips_classify_symbol): Don't return
8206 SYMBOL_PC_RELATIVE for nonlocal labels.
8207
55959ffa 82082011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 8209
55959ffa
EB
8210 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
8211
82122011-01-15 Jan Hubicka <jh@suse.cz>
8213
8214 PR tree-optimization/47276
be46831f
JH
8215 * ipa.c (function_and_variable_visibility): Do not try to mark alias
8216 declarations as needed.
8217
05842ff5
MJ
82182011-01-15 Martin Jambor <mjambor@suse.cz>
8219
8220 * common.opt (fdevirtualize): New flag.
8221 * doc/invoke.texi (Option Summary): Document it.
8222 * opts.c (default_options_table): Add devirtualize flag.
8223 * ipa-prop.c (detect_type_change): Return immediately if
8224 devirtualize flag is not set.
8225 (detect_type_change_ssa): Likewise.
8226 (compute_known_type_jump_func): Likewise.
8227 (ipa_analyze_virtual_call_uses): Likewise.
8228
f65cf2b7
MJ
82292011-01-14 Martin Jambor <mjambor@suse.cz>
8230
8231 PR tree-optimization/45934
8232 PR tree-optimization/46302
8233 * ipa-prop.c (type_change_info): New type.
8234 (stmt_may_be_vtbl_ptr_store): New function.
8235 (check_stmt_for_type_change): Likewise.
8236 (detect_type_change): Likewise.
8237 (detect_type_change_ssa): Likewise.
8238 (compute_complex_assign_jump_func): Check for dynamic type change.
8239 (compute_complex_ancestor_jump_func): Likewise.
8240 (compute_known_type_jump_func): Likewise.
8241 (compute_scalar_jump_functions): Likewise.
8242 (ipa_analyze_virtual_call_uses): Likewise.
8243 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
8244
eb5bb0fd
JM
82452011-01-14 Joseph Myers <joseph@codesourcery.com>
8246
8247 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
8248 * config/i386/i386.opt (msse5): New Alias.
8249
f2060fbe
JM
82502011-01-14 Joseph Myers <joseph@codesourcery.com>
8251
8252 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8253 * config/sparc/linux64.h (CC1_SPEC): Likewise.
8254 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8255 * config/sparc/sparc.h (CC1_SPEC): Likewise.
8256
3a7b4385
JM
82572011-01-14 Joseph Myers <joseph@codesourcery.com>
8258
8259 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
8260 -mcpu options.
8261 * config/sparc/linux64.h (CC1_SPEC): Likewise.
8262 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8263 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
8264 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
8265 Likewise.
8266 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
8267
a7b778f8
JM
82682011-01-14 Joseph Myers <joseph@codesourcery.com>
8269
38be4072 8270 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 8271
a7edae0a
MS
82722011-01-14 Mike Stump <mikestump@comcast.net>
8273
8274 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
8275 * config/fr30/fr30.md: Likweise
8276 (movsi_push): Likewise.
8277 (movsi_pop): Likewise.
8278 (enter_func): Likewise.
8279 * config/moxie/moxie.md (movsi_push): Likewise.
8280 (movsi_pop): Likewise.
8281
cbabf03f
JM
82822011-01-14 Joseph Myers <joseph@codesourcery.com>
8283
8284 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
8285 %{no_archive} %{exact_version}.
8286 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
8287 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
8288 %{no_archive} %{exact_version}.
8289 * config/mips/openbsd.h (LINK_SPEC): Likewise.
8290 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
8291 * config/mips/vxworks.h: Likewise.
8292
438da41a
JM
82932011-01-14 Joseph Myers <joseph@codesourcery.com>
8294
38be4072 8295 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 8296
da290a42
JM
82972011-01-14 Joseph Myers <joseph@codesourcery.com>
8298
8299 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
8300 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
8301
8989d00e
JM
83022011-01-14 Joseph Myers <joseph@codesourcery.com>
8303
8304 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
8305 -nodefaultlib.
8306
a3010a69
JM
83072011-01-14 Joseph Myers <joseph@codesourcery.com>
8308
8309 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
8310 for mcpu not cpu.
8311 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
8312 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
8313 not cpu.
8314 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
8315 Don't handle -shlib.
8316
e7f2f537
JM
83172011-01-14 Joseph Myers <joseph@codesourcery.com>
8318
8319 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
8320 (CC1_SPEC): Don't handle -profile.
8321
34830bfd
JM
83222011-01-14 Joseph Myers <joseph@codesourcery.com>
8323
8324 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
8325 * config/mips/mips.h (CC1_SPEC): Likewise.
8326
b2d36e74
JM
83272011-01-14 Joseph Myers <joseph@codesourcery.com>
8328
8329 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
8330 * config/mips/mips.h (CC1_SPEC): Likewise.
8331
dabadc52
JM
83322011-01-14 Joseph Myers <joseph@codesourcery.com>
8333
8334 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
8335 * config/m32r/linux.h (LINK_SPEC): Likewise.
8336 * config/mips/linux.h (LINK_SPEC): Likewise.
8337 * config/mips/linux64.h (LINK_SPEC): Likewise.
8338 * config/sparc/linux.h (LINK_SPEC): Likewise.
8339 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8340 LINK_SPEC): Likewise.
8341 * config/xtensa/linux.h (LINK_SPEC): Likewise.
8342
43ee6785
JM
83432011-01-14 Joseph Myers <joseph@codesourcery.com>
8344
8345 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
8346 %{version:-v}.
8347 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
8348
45e79dfd
JM
83492011-01-14 Joseph Myers <joseph@codesourcery.com>
8350
8351 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
8352 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
8353
37e9e71d
JM
83542011-01-14 Joseph Myers <joseph@codesourcery.com>
8355
8356 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
8357
bb127cd8
RO
83582011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8359
8360 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
8361 supports -Bstatic/-Bdynamic.
8362 * configure: Regenerate.
8363
89a012ea 83642011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 8365 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
8366
8367 PR target/46037
8368 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
8369 when checking debug_info_level. Test write_symbols instead of
8370 debug_hooks->var_location when setting flag_var_tracking_uninit.
8371
7352c013
RG
83722011-01-14 Richard Guenther <rguenther@suse.de>
8373
8374 PR tree-optimization/47179
8375 * target.def (ref_may_alias_errno): New target hook.
8376 * targhooks.h (default_ref_may_alias_errno): Declare.
8377 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
8378 (default_ref_may_alias_errno): New function.
8379 * target.h (struct ao_ref_s): Declare.
8380 * tree-ssa-alias.c: Include target.h.
8381 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
8382 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
8383 (targhooks.o): Likewise.
8384 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
8385 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
8386
9a6c9288
RG
83872011-01-14 Richard Guenther <rguenther@suse.de>
8388
8389 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
8390
0fdb0d27
RG
83912011-01-14 Richard Guenther <rguenther@suse.de>
8392
8393 PR tree-optimization/47280
8394 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
8395 return CFG changes.
8396 (tree_ssa_forward_propagate_single_use_vars): Deal with
8397 CFG changes from associate_plusminus.
8398
8f66db3b
RG
83992011-01-14 Richard Guenther <rguenther@suse.de>
8400
8401 PR middle-end/47281
8402 Revert
8403 2011-01-11 Richard Guenther <rguenther@suse.de>
8404
280d9630
EB
8405 PR tree-optimization/46076
8406 * tree-ssa.c (useless_type_conversion_p): Conversions from
8407 unprototyped to empty argument list function types are useless.
8f66db3b 8408
6c0c92e6
RG
84092011-01-14 Richard Guenther <rguenther@suse.de>
8410
8411 PR tree-optimization/47286
280d9630 8412 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 8413
db09f943
MJ
84142011-01-14 Martin Jambor <mjambor@suse.cz>
8415
8416 PR middle-end/46823
8417 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
8418
dde8a3a4
AS
84192011-01-13 Anatoly Sokolov <aesok@post.ru>
8420
8421 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
8422 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8423 * config/xtensa/xtensa.c (xtensa_libcall_value,
8424 xtensa_function_value_regno_p): New functions.
8425 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8426
a2b63a20
KT
84272011-01-13 Kai Tietz <kai.tietz@onevision.com>
8428
8429 PR c++/47213
8430 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
8431 PE specific hook.
8432 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
8433 New function prototype.
8434 * config/i386/winnt.c (i386_pe_assemble_visibility):
8435 Warn only if attribute was specified by user.
8436
b41f0b34
MM
84372011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8438
8439 PR target/47251
8440 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
8441 floating point.
8442 (floatunsdidf2_fcfidu): Ditto.
8443
3f3c098d
AK
84442011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8445
8446 * config/s390/s390.c (print_operand_address): Replace 'error' with
8447 'output_operand_lossage'.
8448 (print_operand): Likewise.
8449
29fa95ed
JL
84502011-01-13 Jeff Law <law@redhat.com>
8451
280d9630 8452 PR rtl-optimization/39077
29fa95ed
JL
8453 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
8454 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
8455 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
8456 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
8457 * gcse.c (prune_insertions_deletions): New function.
8458 (compute_pre_data): Use it.
8459
71d12276
DS
84602011-01-13 Dodji Seketeli <dodji@redhat.com>
8461
8462 PR debug/PR46973
8463 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
8464 static function.
61052244 8465 (prune_unused_types_mark): Use it.
71d12276 8466
9b0f04e7
AB
84672011-01-13 Andrey Belevantsev <abel@ispras.ru>
8468
8469 PR rtl-optimization/45352
1c3ba85b 8470 * sel-sched.c: Update copyright years.
9b0f04e7 8471 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 8472 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 8473
d6a3e264
RH
84742011-01-12 Richard Henderson <rth@redhat.com>
8475
a49b692a
RH
8476 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
8477 (TARGET_MD_ASM_CLOBBERS): New.
8478
126b1483
RH
8479 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
8480 (TARGET_DELEGITIMIZE_ADDRESS): New.
8481
f3d9d2e0
RH
8482 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
8483 (clzsi2, *bsch): New patterns.
8484
d84760c9
RH
8485 * config/mn10300/mn10300.md (INT): New mode iterator.
8486 (*mov<INT>_clr): New pattern, and peep2 to generate it.
8487
ec815d65
RH
8488 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
8489 flag_split_wide_types.
8490
d6a3e264
RH
8491 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
8492 (mn10300_trampoline_init): Rewrite without a template, an immediate
8493 load and a direct branch.
8494 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
8495
0f8ab434
AS
84962011-01-12 Anatoly Sokolov <aesok@post.ru>
8497
8498 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8499 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
8500 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
8501 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8502
d8a24b65
KT
85032011-01-12 Kai Tietz <kai.tietz@onevision.com>
8504
8505 PR debug/47209
8506 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
8507 of type.
8508
56e22cab
JH
85092011-01-12 Jan Hubicka <jh@suse.cz>
8510
8511 PR driver/47244
8512 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
8513 (PLUGIN_COND_CLOSE): New macro.
8514 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
8515
4b18b3c2
RG
85162011-01-12 Richard Guenther <rguenther@suse.de>
8517
8518 PR lto/47259
8519 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
8520 register variables in a MEM_REF.
8521
8e38461c
JM
85222011-01-12 Joseph Myers <joseph@codesourcery.com>
8523
8524 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
8525 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
8526 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
8527 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8528 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8529 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
8530 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
8531 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
8532 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
8533 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
8534 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
8535 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
8536 * config/gnu-user.h: New. Copied from linux.h.
8537 (LINUX_TARGET_STARTFILE_SPEC): Rename to
8538 GNU_USER_TARGET_STARTFILE_SPEC.
8539 (LINUX_TARGET_ENDFILE_SPEC): Rename to
8540 GNU_USER_TARGET_ENDFILE_SPEC.
8541 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
8542 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
8543 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
8544 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
8545 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
8546 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
8547 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
8548 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
8549 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
8550 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
8551 * config/arm/linux-eabi.h (CC1_SPEC): Use
8552 GNU_USER_TARGET_CC1_SPEC.
8553 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
8554 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
8555 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
8556 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
8557 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
8558 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
8559 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
8560 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
8561
a570fc16
RG
85622011-01-12 Richard Guenther <rguenther@suse.de>
8563
8564 PR other/46946
8565 * doc/invoke.texi (ffast-math): Document it is turned on
8566 with -Ofast.
8567
b0223c3e
JH
85682011-01-12 Jan Hubicka <jh@suse.cz>
8569
8570 PR tree-optimization/47233
ca1e00b3
EB
8571 * opts.c (common_handle_option): Disable ipa-reference with profile
8572 feedback.
b0223c3e 8573
1c3ba85b 85742011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
8575
8576 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
8577 error message.
8578
d853ee42
NP
85792011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
8580
8581 * c-parser.c (c_lex_one_token): Updated and reindented some
8582 comments. No changes in code.
8583
4053a5a0
ILT
85842011-01-11 Ian Lance Taylor <iant@google.com>
8585
8586 * godump.c (go_output_var): Don't output the variable if there is
8587 already a type with the same name.
8588
fa3e04d2
ILT
85892011-01-11 Ian Lance Taylor <iant@google.com>
8590
8591 * godump.c (go_format_type): Don't generate float80.
8592
885fe07c
RH
85932011-01-11 Richard Henderson <rth@redhat.com>
8594
72d6e3c5
RH
8595 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
8596 declaration. Rewrite for both speed and size.
8597 (mn10300_address_cost_1): Remove.
8598 (mn10300_register_move_cost): New.
8599 (mn10300_memory_move_cost): New.
8600 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
8601 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
8602 extensions, shifts, BSWAP, CLZ.
8603 (mn10300_wide_const_load_uses_clr): Remove.
8604 (TARGET_REGISTER_MOVE_COST): New.
8605 (TARGET_MEMORY_MOVE_COST): New.
8606 * config/mn10300/mn10300-protos.h: Update.
8607 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
8608
df37c023
RH
8609 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
8610 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
8611 * config/mn10300/mn10300-protos.h: Update.
8612 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
8613 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
8614 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
8615 (*test_int_bitfield, *test_byte_bitfield): Remove.
8616 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 8617 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 8618
85a337b5
RH
8619 * config/mn10300/constraints.md ("c"): Rename from "A".
8620 ("A", "D"): New constraint letters.
8621 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
8622 (fmssf4, fnmasf4, fnmssf4): Likewise.
8623
a5c727e3
RH
8624 * config/mn10300/mn10300.md (isa): New attribute.
8625 (enabled): New attribute.
8626
0d9e23f4
RH
8627 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
8628 (abssf2, negsf2): Define only for hardware fp.
8629 (sqrtsf2): Reformat.
8630 (addsf3, subsf3, mulsf3): Merge expander and insn.
8631
c157b3f0
RH
8632 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
8633 (DEBUGGER_AUTO_OFFSET): Remove.
8634 (DEBUGGER_ARG_OFFSET): Remove.
8635
cc909bba
RH
8636 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
8637 Emit register stores with the same offsets as the hardware.
8638 (mn10300_store_multiple_operation): Don't check that the register
8639 save offsets are monotonic.
8640 * config/mn10300/mn10300-protos.h: Update.
8641
e3b5c2f3
RH
8642 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
8643
885fe07c
RH
8644 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
8645 in terms of the value on the stack, not the MDR register.
8646
6e701822
JH
86472011-01-11 Jan Hubicka <jh@suse.cz>
8648
8649 PR lto/45721
8650 PR lto/45375
8651 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
8652 (symbol_alias_set_destroy, symbol_alias_set_contains,
8653 propagate_aliases_backward): Declare.
8654 * lto-streamer-out.c (struct sets): New sturcture.
8655 (trivally_defined_alias): New function.
8656 (output_alias_pair_p): Rewrite.
8657 (output_unreferenced_globals): Fix output of alias pairs.
8658 (produce_symtab): Likewise.
8659 * ipa.c (function_and_variable_visibility): Set weak alias destination
8660 as needed in lto.
8661 * varasm.c (symbol_alias_set_t): Remove.
8662 (symbol_alias_set_destroy): Export.
8663 (propagate_aliases_forward, propagate_aliases_backward): New functions
8664 based on ...
8665 (compute_visible_aliases): ... this one; remove.
8666 (trivially_visible_alias): New
8667 (trivially_defined_alias): New.
8668 (remove_unreachable_alias_pairs): Rewrite.
8669 (finish_aliases_1): Reorganize code checking if alias is defined.
8670 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
8671 in LTO mode.
8672
1b248907
RG
86732011-01-11 Richard Guenther <rguenther@suse.de>
8674
8675 PR tree-optimization/46076
8676 * tree-ssa.c (useless_type_conversion_p): Conversions from
8677 unprototyped to empty argument list function types are useless.
8678
b1923f0a
RG
86792011-01-11 Richard Guenther <rguenther@suse.de>
8680
8681 PR middle-end/45235
8682 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
8683 volatile MEMs as MEM_READONLY_P.
8684
e98965af
RG
86852011-01-11 Richard Guenther <rguenther@suse.de>
8686
8687 PR tree-optimization/47239
8688 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
8689
9f9ca914
JL
86902011-01-11 Jeff Law <law@redhat.com>
8691
1ee3ea05 8692 PR tree-optimization/47086
9f9ca914
JL
8693 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
8694 IVs from statements that might throw.
8695
345fdcb7
JH
86962011-01-10 Jan Hubicka <jh@suse.cz>
8697
8698 PR lto/45375
8699 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
8700
c459c97b
JH
87012011-01-10 Jan Hubicka <jh@suse.cz>
8702
8703 PR lto/45375
8704 * profile.c (read_profile_edge_counts): Ignore profile inconistency
8705 when correcting profile.
8706
06c9eb51
JH
87072011-01-10 Jan Hubicka <jh@suse.cz>
8708
8709 PR lto/46083
8710 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
8711 DECL_FINI_PRIORITY.
8712 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
8713 Restore DECL_FINI_PRIORITY.
8714
ae9fd815
RW
87152011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8716
8717 * doc/gimple.texi: Fix quoting of multi-word return values in
8718 @deftypefn statements. Ensure presence of return value. Wrap
8719 overlong @deftypefn lines.
8720 (is_gimple_operand, is_gimple_min_invariant_address): Remove
8721 descriptions of removed functions.
8722 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
8723 of multi-word return value in @deftypefn statement.
8724
0ecb4a7c
RW
87252011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8726
8727 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
8728 (Conditional Expressions, Logical Operators)
8729 (Statement and operand traversals): Do not indent smallexample
8730 code. Fix duplicate function argument in example.
8731
2e5e346d
JL
87322011-01-10 Jeff Law <law@redhat.com>
8733
1ee3ea05 8734 PR tree-optimization/47141
2e5e346d
JL
8735 * ipa-split.c (split_function): Handle case where we are
8736 returning a value and the return block has a virtual operand phi.
8737
cf9712cc
JH
87382011-01-10 Jan Hubicka <jh@suse.cz>
8739
1c3ba85b 8740 PR tree-optimization/47234
cf9712cc
JH
8741 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
8742 (pass_feedback_split_functions): Declare.
8743 * passes.c (init_optimization_passes): Add ipa-split as subpass of
8744 tree-profile.
8745 * ipa-split.c (gate_split_functions): Update comments; disable
8746 split-functions for profile_arc_flag and branch_probabilities.
8747 (gate_feedback_split_functions): New function.
8748 (execute_feedback_split_functions): New function.
8749 (pass_feedback_split_functions): New global var.
8750
94cd932c
L
87512011-01-10 H.J. Lu <hongjiu.lu@intel.com>
8752
8753 PR lto/46760
8754 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
8755 calling gimple_call_set_cannot_inline.
8756
fbbfcaf1
IS
87572011-01-10 Iain Sandoe <iains@gcc.gnu.org>
8758
8759 * config/darwin-sections.def: Remove unused section.
8760
d06865bf
DK
87612011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
8762
8763 PR c++/47218
8764 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
8765
96bbfbac
NP
87662011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
8767
8768 PR objc/47232
8769 * c-parser.c (c_parser_declaration_or_fndef): Improved
8770 error message.
8771
1ba6516f
KT
87722011-01-09 Kai Tietz <kai.tietz@onevision.com>
8773
8774 * config/i386/winnt.c (i386_pe_start_function): Make sure
8775 to switch back to function's section.
8776
0c5d770e
IS
87772011-01-09 Iain Sandoe <iains@gcc.gnu.org>
8778
8779 PR gcc/46902
8780 PR testsuite/46912
8781 * plugin.c: Move include of dlfcn.h from here...
8782 * system.h: ... to here.
8783
87842011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
8785
8786 * doc/cpp.texi (C++ Named Operators): Fix markup for header
8787 file name.
8788 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
8789 two extra empty pages in PDF output.
8790
046608a3
NP
87912011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
8792
8793 PR objc/47078
8794 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
8795 for error recovery purposes behave as if it was not specified so
8796 that the default type is usd.
8797
8cb114b9
JH
87982011-01-07 Jan Hubicka <jh@suse.cz>
8799
8800 PR tree-optmization/46469
8801 * ipa.c (function_and_variable_visibility): Clear needed flags on
8802 nodes with external decls; handle weakrefs merging correctly.
8803
b294a75e
JM
88042011-01-07 Joseph Myers <joseph@codesourcery.com>
8805
8806 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
8807 not false.
8808
96bdf9b4
JH
88092011-01-07 Jan Hubicka <jh@suse.cz>
8810
8811 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
8812 and no longer claim that gold is required for linker plugin.
8813 * configure: Regenerate.
8814 * gcc.c (PLUGIN_COND): New macro.
8815 (LINK_COMMAND_SPEC): Use it.
8816 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
8817 * config.in (HAVE_LTO_PLUGIN): New.
8818 * configure.ac (--with-lto-plugin): New parameter; autodetect
8819 HAVE_LTO_PLUGIN.
8820
17afc0fe
JH
88212011-01-07 Jan Hubicka <jh@suse.cz>
8822
8823 PR tree-optimization/46367
8824 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
8825 when we can update original.
8826 (cgraph_mark_inline_edge): Sanity check.
8827 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
8828
d4c48c0f
UW
88292011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8830
8831 * config/spu/spu.h (ASM_COMMENT_START): Define.
8832
96f5b137
L
88332011-01-07 H.J. Lu <hongjiu.lu@intel.com>
8834
8835 PR driver/42445
8836 * gcc.c (%>S): New.
8837 (SWITCH_KEEP_FOR_GCC): Likewise.
8838 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
8839 (do_spec_1): Handle "%>".
8840
8841 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
8842
c6a8f6de
JJ
88432011-01-07 Jakub Jelinek <jakub@redhat.com>
8844
c21bbd7a
JJ
8845 PR target/47201
8846 * config/i386/i386.c (ix86_delegitimize_address): If
8847 simplify_gen_subreg fails, return orig_x.
8848
c6a8f6de
JJ
8849 PR bootstrap/47187
8850 * value-prof.c (gimple_stringop_fixed_value): Handle
8851 lhs of the call properly.
8852
fe95fbf9
JH
88532011-01-07 Jan Hubicka <jh@suse.cz>
8854
8855 PR lto/45375
8856 * lto-opt.c (lto_reissue_options): Set flag_shlib.
8857
14d11d40
IS
88582011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8859
72e961c8
EB
8860 * target.def (function_switched_text_sections): New hook.
8861 * doc/tm.texi: Regenerated.
8862 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 8863 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
8864 (final_scan_insn): Call function_switched_text_sections when a
8865 mid-function section change occurs.
14d11d40 8866 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
8867 * config/darwin-protos.h (darwin_function_switched_text_sections):
8868 Likewise.
14d11d40 8869 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 8870 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 8871
0b764288
IS
88722011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8873
8874 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
8875 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
8876 the secondary code fragment when outputting for DWARF == 2.
8877
2ac6bb04
AS
88782011-01-07 Anatoly Sokolov <aesok@post.ru>
8879
8880 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8881 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
8882 Remove.
8883 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
8884 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8885
9f82de11
EB
88862011-01-06 Eric Botcazou <ebotcazou@adacore.com>
8887
8888 PR debug/46704
280d9630
EB
8889 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
8890 when it is not empty.
9f82de11
EB
8891
88922011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 8893
1ed72abf 8894 Bobcat Enablement
14b52538 8895 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 8896 (case ${target}): Add btver1.
14b52538 8897 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 8898 -march=native recognize btver1 processors.
14b52538 8899 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 8900 btver1 def_and_undef
14b52538 8901 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
8902 btver1 cost table.
8903 (m_BTVER1): New definition.
8904 (m_AMD_MULTIPLE): Includes m_BTVER1.
8905 (initial_ix86_tune_features): Add btver1 tune.
8906 (processor_target_table): Add btver1 entry.
8907 (static const char *const cpu_names): Add btver1 entry.
8908 (software_prefetching_beneficial_p): Add btver1.
8909 (ix86_option_override_internal): Add btver1 instruction sets.
8910 (ix86_issue_rate): Add btver1.
8911 (ix86_adjust_cost): Add btver1.
14b52538 8912 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
8913 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
8914 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
8915 * config/i386/i386.md (define_attr "cpu"): Add btver1.
8916
e1a973d8
RO
89172011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8918
8919 PR target/43309
8920 * config/i386/i386.c (legitimize_tls_address)
8921 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
8922 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
8923 (tls_initial_exec_64_sun): New pattern.
8924
c73f67c5
GP
89252011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
8926
8927 * doc/invoke.texi (Overall Options): Improve wording and markup
8928 of the description of -wrapper.
8929
bc4c6f9c
JM
89302011-01-06 Joseph Myers <joseph@codesourcery.com>
8931
8932 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
8933 rdynamic, threads): New Driver options.
8934
adb75db0
RO
89352011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8936
8937 PR target/38118
8938 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
8939 if coming from .tdata.
8940 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8941
402c1cb4
JH
89422011-01-06 Jan Hubicka <jh@suse.cz>
8943
8944 PR lto/47188
8945 * collect2.c (main): Do not enable LTOmode when plugin is active.
8946
a4da6485
RO
89472011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8948
8949 PR other/45915
8950 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
8951 --version output if supported.
8952 * configure: Regenerate.
8953
028dbdf4
JM
89542011-01-06 Joseph Myers <joseph@codesourcery.com>
8955
8956 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
8957 Driver options.
8958
dfe776dd
JJ
89592011-01-06 Jakub Jelinek <jakub@redhat.com>
8960
8961 PR c/47150
8962 * c-convert.c (convert): When converting a complex expression
8963 other than COMPLEX_EXPR to a different complex type, ensure
8964 c_save_expr is called instead of save_expr, unless in_late_binary_op.
8965 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
8966 when converting COMPLEX_TYPE.
8967
210dedfe
IR
89682011-01-06 Ira Rosen <irar@il.ibm.com>
8969
8970 PR tree-optimization/47139
8971 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
8972 only the last reduction value is used outside the loop. Update
8973 documentation.
8974
cd33a412
JM
89752011-01-05 Joseph Myers <joseph@codesourcery.com>
8976
8977 * config/rtems.opt: New.
8978 * config.gcc (*-*-rtems*): Use rtems.opt.
8979
819edd94
CF
89802011-01-05 Changpeng Fang <changpeng.fang@amd.com>
8981
8982 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
8983 processors do not support 3DNow instructions.
8984
dc242c4a
UW
89852011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8986
8987 * config/spu/spu.c (spu_option_override): Set parameter
8988 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
8989
be286227
JH
89902011-01-05 Jan Hubicka <jh@suse.cz>
8991
8992 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
8993 at the command line.
8994
644e637f
MJ
89952011-01-05 Martin Jambor <mjambor@suse.cz>
8996
8997 PR lto/47162
8998 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
8999 deltas on streamed outgoing edges.
9000 (output_node_opt_summary): Output info for outgoing edges only when
9001 the node is in new parameter set.
9002 (output_cgraph_opt_summary): New parameter set, passed to the two
9003 aforementioned functions. Update its forward declaration and its
9004 callee too.
9005
7bd11157
TT
90062011-01-05 Tom Tromey <tromey@redhat.com>
9007
9008 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
9009 operator to c_finish_omp_atomic.
9010 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
9011 (build_unary_op): Update.
9012 (build_modify_expr): Update.
9013 (build_asm_expr): Update.
9014
f626b979
UW
90152011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9016
9017 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
9018 newly inserted insns.
9019 (pad_bb): Likewise.
9020 (spu_emit_branch_hint): Likewise.
9021 (insert_hbrp_for_ilb_runout): Likewise.
9022 (spu_machine_dependent_reorg): Call df_finish_pass after
9023 schedule_insns returns.
9024
4c825c02
UW
90252011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9026
9027 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
9028
5e9fba51
EB
90292011-01-05 Eric Botcazou <ebotcazou@adacore.com>
9030
9031 PR tree-optimization/47005
9032 * tree-sra.c (struct access): Add 'non_addressable' bit.
9033 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
9034 (decide_one_param_reduction): Return 0 if the parameter is passed by
9035 reference and one of the accesses in the group is non_addressable.
9036
3ebb5ca6
EB
90372011-01-04 Eric Botcazou <ebotcazou@adacore.com>
9038
9039 PR tree-optimization/47056
9040 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
9041 (mark_load): Likewise. Handle FUNCTION_DECL specially.
9042 (mark_store): Likewise. Pass STMT to ipa_record_reference.
9043
d5d4d14e
EB
90442011-01-04 Eric Botcazou <ebotcazou@adacore.com>
9045
9046 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
9047 initializer. Skip view conversions from aggregate types.
9048
d996ef70
KT
90492011-01-04 Kai Tietz <kai.tietz@onevision.com>
9050
9051 PR bootstrap/47055
9052 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
9053
509d65dd 90542011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
9055
9056 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
9057 obvious typo.
9058
55c623b5
UW
90592011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9060
9061 * function.c (thread_prologue_and_epilogue_insns): Do not crash
9062 on empty epilogue sequences.
9063
b98d6b35
JM
90642011-01-04 Joseph Myers <joseph@codesourcery.com>
9065
9066 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
9067 non-static): New Driver options.
9068
a0d43bac
JZ
90692011-01-04 Jie Zhang <jie@codesourcery.com>
9070
9071 PR driver/47137
9072 * gcc.c (default_compilers[]): Set combinable field to 0
9073 for all assembly languages.
9074
2b18eb32
MX
90752011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
9076
9077 * config/mips/loongson3a.md: New file.
9078 * config/mips/mips.md: Include loongson3a.md.
9079 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
9080 TUNE_LOONGSON_3A.
9081
42a48c4f
EB
90822011-01-03 Eric Botcazou <ebotcazou@adacore.com>
9083
9084 PR middle-end/47017
9085 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
9086 instead of convert_memory_address_addr_space on the base expression.
9087
9c1732c4
UW
90882011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9089
9090 * config/spu/spu.c (spu_option_override): Update error text
9091 for bad -march= / -mtune= values.
9092
aa474365
UW
90932011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9094
9095 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
9096 if branch-hint optimization will be performed.
9097
9766135b
JJ
90982011-01-03 Jakub Jelinek <jakub@redhat.com>
9099
371556ee
JJ
9100 PR tree-optimization/47148
9101 * ipa-split.c (split_function): Convert arguments to
9102 DECL_ARG_TYPE if possible.
9103
1ac12fa2
JJ
9104 PR tree-optimization/47155
9105 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
9106 when computing uns.
9107
9766135b
JJ
9108 PR rtl-optimization/47157
9109 * combine.c (try_combine): If undobuf.other_insn becomes
9110 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
9111 and set *new_direct_jump_p too.
9112
f4a2e571
SP
91132011-01-03 Sebastian Pop <sebastian.pop@amd.com>
9114
9115 PR tree-optimization/47021
9116 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
9117
9f8e43c0
JJ
91182011-01-03 Jakub Jelinek <jakub@redhat.com>
9119
9120 * gcc.c (process_command): Update copyright notice dates.
9121 * gcov.c (print_version): Likewise.
9122 * gcov-dump.c (print_version): Likewise.
9123 * mips-tfile.c (main): Likewise.
9124 * mips-tdump.c (main): Likewise.
9125
1a2e38f3
MJ
91262011-01-03 Martin Jambor <mjambor@suse.cz>
9127
9128 PR tree-optimization/46801
9129 * tree-sra.c (type_internals_preclude_sra_p): Check whether
9130 aggregate fields start at byte boundary instead of the bit-field flag.
9131
56b721c5
L
91322011-01-03 H.J. Lu <hongjiu.lu@intel.com>
9133
9134 PR driver/47137
9135 * gcc.c (main): Revert revision 168407.
9136
839d549b
MJ
91372011-01-03 Martin Jambor <mjambor@suse.cz>
9138
9139 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
9140
4ce99a20 91412011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
9142
9143 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
9144 vector optab to expand vector/scalar shift, update gimple to vector.
9145
76df0ae6
MJ
91462011-01-03 Martin Jambor <mjambor@suse.cz>
9147
9148 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
9149 a thunk.
9150
ce47fda3
MJ
91512011-01-03 Martin Jambor <mjambor@suse.cz>
9152
9153 PR tree-optimization/46984
9154 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
9155 HOST_WIDE_INT.
9156 (cgraph_create_indirect_edge): Fixed line length.
9157 (cgraph_indirect_call_info): Declare.
9158 (cgraph_make_edge_direct) Update declaration.
9159 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
9160 (cgraph_create_indirect_edge): Use it.
9161 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
9162 callees.
9163 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
9164 the new thunk_delta representation.
9165 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
9166 HOST_WIDE_INT.
9167 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
9168 (ipa_read_indirect_edge_info): Likewise.
9169 * lto-cgraph.c (output_edge_opt_summary): New function.
9170 (output_node_opt_summary): Call it on all outgoing edges.
9171 (input_edge_opt_summary): New function.
9172 (input_node_opt_summary): Call it on all outgoing edges.
9173
1e67fa1f
L
91742011-01-02 H.J. Lu <hongjiu.lu@intel.com>
9175
9176 PR driver/47137
9177 * gcc.c (main): Don't check have_o when settting combine_inputs.
9178
6656b2ac
EB
91792011-01-02 Eric Botcazou <ebotcazou@adacore.com>
9180
9181 * regrename.c: Add general comment describing the pass.
9182 (struct du_head): Remove 'length' field.
9183 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
9184 (regrename_optimize): Do not sort chains. Rework comments, add others.
9185 Force renaming to the preferred class (if any) in the first pass and do
9186 not consider registers that belong to it in the second pass.
9187 (create_new_chain): Do not set 'length' field.
9188 (scan_rtx_reg): Likewise.
9189
bc470c24
JJ
91902011-01-02 Jakub Jelinek <jakub@redhat.com>
9191
4e996296
JJ
9192 PR tree-optimization/47140
9193 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
9194 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
9195 to bit_value_binop.
9196
bc470c24 9197 PR rtl-optimization/47028
6656b2ac
EB
9198 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
9199 parm_birth_insn instead of at the beginning of first bb.
bc470c24 9200
5af62fcd 92012011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
9202
9203 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
9204 Remove the word "see" before "@pxref".
9205 * doc/rtl.texi: Remove the word "see" before "@pxref".
9206
0e20c89f
JH
92072011-01-01 Jan Hubicka <jh@suse.cz>
9208
6656b2ac
EB
9209 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
9210 memory.
0e20c89f 9211
220e83ca
KT
92122011-01-01 Kai Tietz <kai.tietz@onevision.com>
9213
9214 PR target/38662
6656b2ac 9215 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 9216
ad41bd84 9217\f
797103eb 9218Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
9219
9220Copying and distribution of this file, with or without modification,
9221are permitted in any medium without royalty provided the copyright
9222notice and this notice are preserved.