]>
Commit | Line | Data |
---|---|---|
9ed74235 AS |
1 | 2009-09-23 Anatoly Sokolov <aesok@post.ru> |
2 | ||
3 | * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf | |
4 | instead of cfun->machine->is_leaf. | |
5 | * config/avr/avr.h (machine_function): Remove is_leaf field. | |
6 | ||
abab57ef JJ |
7 | 2009-09-23 Jakub Jelinek <jakub@redhat.com> |
8 | ||
9 | PR debug/41439 | |
10 | * dwarf2out.c (address_of_int_loc_descriptor): Don't emit | |
11 | DW_OP_piece after DW_OP_stack_value, adjust size calculations | |
12 | for it, when DW_OP_stack_value and DW_OP_implicit_value has | |
13 | the same size, prefer DW_OP_stack_value. | |
14 | (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref, | |
15 | loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value. | |
16 | ||
7168dc47 AO |
17 | 2009-09-23 Alexandre Oliva <aoliva@redhat.com> |
18 | ||
19 | PR debug/41353 | |
20 | * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses. | |
21 | ||
dda2da58 AO |
22 | 2009-09-23 Alexandre Oliva <aoliva@redhat.com> |
23 | ||
24 | PR debug/41248 | |
25 | * cfgexpand.c (convert_debug_memory_address): New. | |
26 | (expand_debug_expr): Convert base address and offset to the same | |
27 | mode. Use it to convert addresses to other modes. Accept | |
28 | ptr_mode addresses. | |
29 | ||
4c685825 RG |
30 | 2009-09-23 Richard Guenther <rguenther@suse.de> |
31 | ||
32 | * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET | |
33 | produced for bigendian targets with promoted subregs. | |
34 | ||
659ad88e RG |
35 | 2009-09-23 Richard Guenther <rguenther@suse.de> |
36 | ||
37 | * value-prof.c (gimple_ic): Purge old EH edges only after building | |
38 | the new ones. | |
39 | ||
b3901be5 NC |
40 | 2009-09-23 Nick Clifton <nickc@redhat.com> |
41 | ||
42 | * config/arc/arc.c (arc_trampoline_init): Fix typo. | |
43 | ||
66f0e027 JJ |
44 | 2009-09-23 Jakub Jelinek <jakub@redhat.com> |
45 | ||
dc67413d JJ |
46 | PR bootstrap/41405 |
47 | * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf. | |
48 | ||
66f0e027 JJ |
49 | PR bootstrap/41436 |
50 | * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN | |
51 | on non-nested functions. | |
52 | ||
457ff6a1 JJ |
53 | 2009-09-23 Jakub Jelinek <jakub@redhat.com> |
54 | Jan Hubicka <jh@suse.cz> | |
55 | ||
56 | * dwarf2out.c (loc_list_plus_const): Only define if | |
57 | DWARF2_DEBUGGING_INFO. | |
58 | (address_of_int_loc_descriptor): Likewise. | |
59 | ||
60 | PR debug/41411 | |
61 | * dwarf2out.c (mem_loc_descriptor): Handle HIGH. | |
62 | ||
63 | 2009-09-23 Uros Bizjak <ubizjak@gmail.com> | |
be123439 UB |
64 | |
65 | PR c/39779 | |
66 | * c-typeck.c (build_binary_op) <short_shift>: Check that integer | |
67 | constant is more than zero. | |
68 | ||
d57c0139 AM |
69 | 2009-09-23 Alan Modra <amodra@bigpond.net.au> |
70 | ||
71 | PR target/40473 | |
72 | * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't | |
73 | call final to emit non-scheduled prologue, instead insert at entry. | |
74 | ||
f2431d5d LR |
75 | 2009-09-22 Loren J. Rittle <ljrittle@acm.org> |
76 | Joseph S. Myers <joseph@codesourcery.com> | |
77 | ||
78 | * doc/install.texi (*-*-freebsd*): Add proper format codes. | |
79 | ||
41e7ac51 | 80 | 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net> |
be123439 | 81 | Rafael Avila de Espindola <espindola@google.com> |
41e7ac51 BS |
82 | |
83 | * gengtype.c (is_file_equal): New function. | |
84 | (close_output_files): Use is_file_equal. Free of->buf. | |
85 | ||
0182d016 | 86 | 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net> |
be123439 | 87 | Rafael Avila de Espindola <espindola@google.com> |
0182d016 BS |
88 | |
89 | * gengtype.c (write_types, write_local): Add the output_header | |
90 | argument. Update all callers. | |
91 | ||
d40a19da DS |
92 | 2009-09-22 Dodji Seketeli <dodji@redhat.com> |
93 | ||
94 | * dwarf2out.c (template_parameter_pack_die, | |
95 | gen_formal_parameter_pack_die ): New functions. | |
96 | (make_ith_pack_parameter_name): Remove this function. | |
97 | (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and | |
98 | DW_TAG_formal_parameter_pack. | |
99 | (gen_generic_params_dies): Represent each template parameter pack | |
100 | by a DW_TAG_template_parameter_pack DIE. Argument pack elements are | |
101 | represented by usual DW_TAG_template_*_parameter DIEs that are | |
102 | children of the DW_TAG_template_parameter_pack element DIE. | |
103 | (generic_parameter_die): This doesn't deal with parameter pack | |
be123439 UB |
104 | names anymore. Don't generate DW_AT_name for some DIEs, e.g. children |
105 | of parameter pack DIEs. | |
d40a19da DS |
106 | (gen_formal_parameter_die): Add a flag to not emit DW_AT_name |
107 | in certain cases, e.g. for pack elements. | |
108 | (gen_formal_types_die, gen_decl_die): Adjust usage of | |
109 | gen_formal_parameter_die. | |
110 | (gen_subprogram_die): Represent each function parameter pack by a | |
111 | DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are | |
112 | represented by usual DW_TAG_formal_parameter DIEs that are children | |
113 | of the DW_TAG_formal_parameter_pack DIE. Remove references to | |
114 | ____builtin_va_alist decls as no part of the compiler uses those | |
115 | anymore. | |
116 | * langhooks.h (struct lang_hooks_for_decls): Add | |
117 | function_parm_expanded_from_pack_p, get_generic_function_decl | |
118 | and function_parameter_pack_p hooks. Fix comment for | |
119 | get_innermost_generic_parms hook. | |
120 | * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P, | |
121 | LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook | |
122 | macros and use them to initialize lang_hook. | |
123 | ||
82497700 RH |
124 | 2009-09-22 Richard Henderson <rth@redhat.com> |
125 | ||
126 | * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison. | |
127 | (TRAMPOLINE_ADJUST_ADDRESS): Poison. | |
128 | * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize | |
129 | on TRAMPOLINE_TEMPLATE. | |
130 | (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on | |
131 | TRAMPOLINE_ADJUST_ADDRESS. | |
132 | * targhooks.c (default_asm_trampoline_template): Remove. | |
133 | (default_trampoline_adjust_address): Remove. | |
134 | (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE. | |
135 | * targhooks.h: Update decls. | |
136 | ||
6a92b6c7 DK |
137 | 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com> |
138 | ||
139 | * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable. | |
140 | * config/i386/cygwin.h (LIBGCJ_SONAME): Define. | |
141 | * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise. | |
142 | ||
502a1e45 AO |
143 | 2009-09-22 Alexandre Oliva <aoliva@redhat.com> |
144 | ||
145 | PR debug/41295 | |
146 | * reload1.c (reload): Reset debug insns with pseudos without | |
147 | equivalences. | |
148 | ||
7c5c5c6e NV |
149 | 2009-09-22 Neil Vachharajani <nvachhar@google.com> |
150 | ||
151 | * testsuite/gcc.dg/pr40209.c: Add test case. | |
152 | ||
a9ab39d3 JJ |
153 | 2009-09-22 Janis Johnson <janis187@us.ibm.com> |
154 | ||
155 | * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return | |
156 | unconditional true for decimal float modes. | |
157 | * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto. | |
158 | * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto. | |
159 | ||
2208d2ac LR |
160 | 2009-09-22 Loren J. Rittle <ljrittle@acm.org> |
161 | ||
162 | * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME. | |
163 | Enable a new case for __FreeBSD__ >= 7. | |
164 | * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7. | |
165 | * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP. | |
166 | * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC | |
167 | and USE_LD_AS_NEEDED. | |
168 | ||
27ed7478 LR |
169 | * doc/install.texi (*-*-freebsd*): Update target information. |
170 | ||
6eee506e RH |
171 | 2009-09-22 Richard Guenther <rguenther@suse.de> |
172 | ||
173 | PR middle-end/41395 | |
174 | * tree-dfa.c (get_ref_base_and_extent): Handle trailing | |
175 | arrays really properly. | |
176 | ||
531ca746 RH |
177 | 2009-09-22 Richard Henderson <rth@redhat.com> |
178 | ||
179 | PR target/41246 | |
180 | * target.h (struct gcc_target): Add asm_out.trampoline_template, | |
181 | calls.static_chain, calls.trampoline_init, | |
182 | calls.trampoline_adjust_address. | |
183 | * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. | |
184 | (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New. | |
185 | (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New. | |
186 | * builtins.c (expand_builtin_setjmp_receiver): Use | |
187 | targetm.calls.static_chain; only clobber registers. | |
188 | (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init; | |
189 | set up memory attributes properly for the trampoline block. | |
190 | (expand_builtin_adjust_trampoline): Use | |
191 | targetm.calls.trampoline_adjust_address. | |
192 | * calls.c (prepare_call_address): Add fndecl argument. Use | |
193 | targetm.calls.static_chain. | |
194 | * df-scan.c (df_need_static_chain_reg): Remove. | |
195 | (df_get_entry_block_def_set): Use targetm.calls.static_chain; | |
196 | consolodate static chain handling. | |
197 | * doc/tm.texi: Document new hooks. | |
198 | * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove. | |
199 | (init_emit_regs): Don't initialize them. | |
200 | * expr.h (prepare_call_address): Update decl. | |
201 | * final.c (profile_function): Use targetm.calls.static_chain. | |
202 | * function.c (expand_function_start): Likewise. | |
203 | * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove. | |
204 | * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain; | |
205 | only clobber registers. | |
206 | * targhooks.c (default_static_chain): New. | |
207 | (default_asm_trampoline_template, default_trampoline_init): New. | |
208 | (default_trampoline_adjust_address): New. | |
209 | * targhooks.h: Declare them. | |
210 | * varasm.c (assemble_trampoline_template): Use | |
211 | targetm.asm_out.trampoline_template. Make the memory block const | |
212 | and set its size. | |
213 | ||
672f0baa RH |
214 | * config/alpha/alpha.c (alpha_trampoline_init): Rename from |
215 | alpha_initialize_trampoline. Make static. Merge VMS parameter | |
216 | differences into the TARGET_ABI_OPEN_VMS code block. | |
217 | (TARGET_TRAMPOLINE_INIT): New. | |
218 | * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove. | |
219 | (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove. | |
220 | * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove. | |
221 | (INITIALIZE_TRAMPOLINE): Remove. | |
222 | ||
223 | * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New. | |
224 | (TRAMPOLINE_TEMPLATE): Merge with ... | |
225 | (INITIALIZE_TRAMPOLINE): ... this and move ... | |
226 | * config/arc/arc.c (arc_trampoline_init): ... here. | |
2d7b663a | 227 | (TARGET_TRAMPOLINE_INIT): New. |
2d7b663a | 228 | |
0ef9304b RH |
229 | * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
230 | (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New. | |
231 | (arm_asm_trampoline_template): New. | |
232 | (arm_trampoline_init, arm_trampoline_adjust_address): New. | |
233 | * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE, | |
234 | THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all | |
235 | code to arm_asm_trampoline_template. | |
236 | (TRAMPOLINE_ADJUST_ADDRESS): Move code to | |
237 | arm_trampoline_adjust_address. | |
238 | (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init; | |
239 | adjust for target hook parameters. | |
240 | ||
be123439 UB |
241 | * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): |
242 | Remove. | |
2df373c2 | 243 | |
92910d77 RH |
244 | * config/bfin/bfin-protos.h (initialize_trampoline): Remove. |
245 | * config/bfin/bfin.c (bfin_asm_trampoline_template): New. | |
246 | (bfin_trampoline_init): Rename from initialize_trampoline; | |
247 | make static; update for target hook parameters. | |
248 | (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New. | |
249 | * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to | |
250 | bfin_asm_trampoline_template. | |
251 | (INITIALIZE_TRAMPOLINE): Remove. | |
252 | ||
3e322b77 RH |
253 | * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, |
254 | TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template, | |
255 | cris_trampoline_init): New. | |
256 | * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to | |
257 | cris_asm_trampoline_template. | |
258 | (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init; | |
259 | adjust for target hook parameters. | |
260 | ||
956c97fc RH |
261 | * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove. |
262 | ||
98689f5e RH |
263 | * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, |
264 | TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template, | |
265 | fr30_trampoline_init): New. | |
266 | * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to | |
267 | fr30_asm_trampoline_template. | |
268 | (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init; | |
269 | adjust for target hook parameters. | |
270 | ||
e9d5fdb2 RH |
271 | * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New. |
272 | (frv_trampoline_init): Rename from frv_initialize_trampoline; | |
273 | make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook. | |
274 | * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove. | |
275 | * config/frv/frv-protos.h (frv_initialize_trampoline): Remove. | |
276 | ||
9f6ef043 RH |
277 | * config/h8300/h8300.c (h8300_trampoline_init): New. |
278 | (TARGET_TRAMPOLINE_INIT): New. | |
279 | * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code | |
280 | to h8300_trampoline_init and adjust for hook parameters. | |
281 | ||
2a1211e5 RH |
282 | * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove. |
283 | * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New. | |
284 | (ia64_trampoline_init): Rename from ia64_initialize_trampoline; | |
285 | make static; adjust for hook parameters. | |
286 | * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove. | |
287 | ||
f4a33d37 RH |
288 | * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
289 | (TARGET_TRAMPOLINE_INIT): New. | |
290 | (iq2000_asm_trampoline_template, iq2000_trampoline_init): New. | |
291 | * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to | |
292 | iq2000_asm_trampoline_template. | |
293 | (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init. | |
294 | (TRAMPOLINE_CODE_SIZE): New. | |
295 | (TRAMPOLINE_SIZE): Use it. | |
296 | (TRAMPOLINE_ALIGNMENT): Follow Pmode. | |
297 | ||
229fbccb RH |
298 | * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove. |
299 | * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New. | |
300 | (m32c_trampoline_init): Rename from m32c_initialize_trampoline; | |
301 | adjust for hook parameters. | |
302 | * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove. | |
303 | ||
1548bf05 RH |
304 | * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New. |
305 | (m32r_trampoline_init): New. | |
306 | * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to | |
307 | m32r_trampoline_init. | |
308 | ||
0d7e5af1 RH |
309 | * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New. |
310 | (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline; | |
311 | make static; update for hook parameters. | |
312 | * config/m68hc11/m68hc11-protos.h: Update. | |
313 | * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove. | |
314 | ||
71e0af3c RH |
315 | * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
316 | (TARGET_TRAMPOLINE_INIT): New. | |
317 | (mcore_function_value): Fix typo. | |
318 | (mcore_asm_trampoline_template, mcore_trampoline_init): New. | |
319 | * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code | |
320 | to mcore_asm_trampoline_template. | |
321 | (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init. | |
322 | ||
87138d8d RH |
323 | * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove. |
324 | * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New. | |
325 | (mep_trampoline_init): Rename from mep_init_trampoline; make static; | |
326 | update for hook parameters. | |
327 | * config/mep/mep-protos.h (mep_init_trampoline): Remove. | |
328 | ||
a1d29c8c RH |
329 | * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, |
330 | mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT, | |
331 | mips_trampoline_init): New. | |
332 | * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to | |
333 | mips_asm_trampoline_template. | |
334 | (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init; | |
335 | update for hook parameters. | |
336 | ||
dbbdb385 RH |
337 | * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
338 | (TARGET_TRAMPOLINE_INIT): New. | |
339 | (mmix_trampoline_size): Remove. | |
340 | (mmix_asm_trampoline_template): Rename from mmix_trampoline_template; | |
341 | make static. Remove out-of-date tetra vs octa comment. | |
342 | (mmix_trampoline_init): Rename from mmix_initialize_trampoline; | |
343 | make static; update for hook parameters. | |
344 | * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove. | |
345 | (INITIALIZE_TRAMPOLINE): Remove. | |
346 | (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size. | |
347 | (TRAMPOLINE_ALIGNMENT): New. | |
348 | * gcc/config/mmix/mmix-protos.h: Update. | |
349 | ||
bdeb5f0c RH |
350 | * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, |
351 | mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT, | |
352 | mn10300_trampoline_init): New. | |
353 | * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to | |
354 | mn10300_asm_trampoline_template. | |
355 | (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init. | |
356 | ||
4601494d RH |
357 | * config/moxie/moxie.c (moxie_static_chain, |
358 | moxie_asm_trampoline_template, moxie_trampoline_init, | |
359 | TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE, | |
360 | TARGET_TRAMPOLINE_INIT): New. | |
361 | * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to | |
362 | moxie_trampoline_init. | |
363 | (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template. | |
364 | (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove. | |
365 | ||
859c146c RH |
366 | * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE, |
367 | pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT, | |
368 | pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS, | |
369 | pa_trampoline_adjust_address): New. | |
370 | * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to | |
371 | pa_asm_trampoline_template. | |
372 | (TRAMPOLINE_ALIGNMENT): New. | |
373 | (TRAMPOLINE_CODE_SIZE): Move to pa.c. | |
374 | (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init; | |
375 | adjust for hook parameters. | |
376 | (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address. | |
377 | ||
8dd65c37 RH |
378 | * config/pdp11/pdp11.c (pdp11_trampoline_init): New. |
379 | (TARGET_TRAMPOLINE_INIT): New. | |
380 | * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove. | |
381 | (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init. | |
382 | ||
454da451 RH |
383 | * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove. |
384 | ||
44d43e53 RH |
385 | * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove. |
386 | * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New. | |
387 | (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline; | |
388 | make static; adjust parameters for the hook. | |
389 | * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove. | |
390 | ||
b81ecf6f RH |
391 | * config/s390/s390.c (s390_asm_trampoline_template): Rename from |
392 | s390_trampoline_template; make static. | |
393 | (s390_trampoline_init): Rename from s390_initialize_trampoline; | |
394 | make static; adjust for target hook. | |
395 | (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New. | |
396 | * config/s390/s390-protos.h: Remove trampoline decls. | |
397 | * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove. | |
398 | (TRAMPOLINE_TEMPLATE): Remove. | |
399 | (TRAMPOLINE_ALIGNMENT): New. | |
400 | ||
2f5bb28c RH |
401 | * config/score/score-protos.h (score_initialize_trampoline): Remove. |
402 | * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. | |
403 | (TARGET_TRAMPOLINE_INIT): New. | |
404 | (score_asm_trampoline_template): New. | |
405 | (score_trampoline_init): Rename from score_initialize_trampoline; | |
406 | make static; adjust for hook parameters. | |
407 | * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to | |
408 | score[37]_asm_trampoline_template. | |
409 | (INITIALIZE_TRAMPOLINE): Remove. | |
410 | * config/score/score3.c (score3_asm_trampoline_template): New. | |
411 | (score3_trampoline_init): Rename from score3_initialize_trampoline; | |
412 | adjust for target hook. | |
413 | * config/score/score7.c (score7_asm_trampoline_template): New. | |
414 | (score7_trampoline_init): Rename from score7_initialize_trampoline; | |
415 | adjust for target hook. | |
416 | * config/score/score3.h, config/score/score7.h: Update. | |
417 | ||
994322ef RH |
418 | * config/sh/sh-protos.h (sh_initialize_trampoline): Remove. |
419 | * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New. | |
420 | (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New. | |
421 | (sh_trampoline_init): Rename from sh_initialize_trampoline; | |
422 | make static; adjust for target hook parameters. | |
423 | (sh_trampoline_adjust_address): New. | |
424 | * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New. | |
425 | (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address. | |
426 | ||
809e78cc RH |
427 | * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New. |
428 | (sparc32_initialize_trampoline): Rename from | |
429 | sparc_initialize_trampoline; make static; replace tramp parameter | |
430 | with m_tramp and update memory accesses. | |
431 | (sparc64_initialize_trampoline): Similarly. | |
432 | (sparc_trampoline_init): New. | |
433 | * config/sparc/sparc-protos.h: Remove trampoline decls. | |
434 | * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove. | |
435 | * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx. | |
436 | ||
a85b4c91 RH |
437 | * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New. |
438 | (array_to_constant): Make ARR parameter const. | |
439 | (spu_trampoline_init): Rename from spu_initialize_trampoline; | |
440 | make static; update for hook parameters. | |
441 | * config/spu/spu-protos.h: Update decls. | |
442 | * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove. | |
443 | ||
fb8d0fac RH |
444 | * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename |
445 | from xstormy16_initialize_trampoline; make static; update for | |
446 | hook parameters. | |
447 | (TARGET_TRAMPOLINE_INIT): New. | |
448 | * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove. | |
449 | ||
e0c6c273 RH |
450 | * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
451 | (TARGET_TRAMPOLINE_INIT): New. | |
452 | (v850_can_eliminate): Make static. | |
453 | (v850_asm_trampoline_template, v850_trampoline_init): New. | |
454 | * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to | |
455 | v850_asm_trampoline_template. | |
456 | (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init | |
457 | and adjust for target hook parameters. | |
458 | ||
3814318d RH |
459 | * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
460 | (TARGET_TRAMPOLINE_INIT): New. | |
461 | (vax_asm_trampoline_template, vax_trampoline_init): New. | |
462 | * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to | |
463 | vax_asm_trampoline_template. | |
464 | (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init. | |
465 | ||
3c1229cb RH |
466 | * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New. |
467 | (TARGET_TRAMPOLINE_INIT): New. | |
468 | (xtensa_asm_trampoline_template): Rename from | |
469 | xtensa_trampoline_template; make static. | |
470 | (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline; | |
471 | make static; update for hook parameters. | |
472 | * config/xtensa/xtensa-protos.h: Remove trampoline decls. | |
473 | * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove. | |
474 | (INITIALIZE_TRAMPOLINE): Remove. | |
475 | ||
3452586b RH |
476 | * config/i386/i386.c (ix86_function_regparm): Do not issue an |
477 | error for nested functions with regparm=3. | |
478 | (ix86_compute_frame_layout): Adjust frame pointer offset for | |
479 | ix86_static_chain_on_stack. | |
480 | (ix86_expand_prologue): Handle ix86_static_chain_on_stack. | |
481 | (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset, | |
482 | don't reset to UNITS_PER_WORD. | |
483 | (ix86_emit_leave): Adjust ix86_cfa_state. | |
484 | (ix86_expand_epilogue): Handle ix86_static_chain_on_stack. | |
485 | (ix86_static_chain): New. | |
486 | (ix86_trampoline_init): Rename from x86_initialize_trampoline; | |
487 | make static; update for target hook parameters; use ix86_static_chain. | |
488 | (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New. | |
489 | * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove. | |
490 | (INITIALIZE_TRAMPOLINE): Remove. | |
491 | (TRAMPOLINE_SIZE): Use 24 for 64-bit. | |
492 | (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields | |
493 | to the end. Add static_chain_on_stack. | |
494 | (ix86_static_chain_on_stack): New. | |
495 | ||
e0601576 RH |
496 | * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New. |
497 | (m68k_output_mi_thunk): Don't use static_chain_rtx. | |
498 | (m68k_trampoline_init): New. | |
499 | * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to | |
500 | m68k_trampoline_init and adjust for hook parameters. | |
501 | * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove. | |
502 | (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove. | |
503 | ||
39dbcfc3 JJ |
504 | 2009-09-22 Jakub Jelinek <jakub@redhat.com> |
505 | ||
9190e0a9 JJ |
506 | * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes |
507 | for __builtin_altivec_vcmpgt{sb,uh,sh,uw}. | |
508 | ||
39dbcfc3 JJ |
509 | * reload1.c (reload): Call wrap_constant when substituting |
510 | reg for equiv inside of DEBUG_INSNs. | |
511 | ||
65f753a0 JJ |
512 | PR bootstrap/41405 |
513 | * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die, | |
514 | add_call_src_coords_attributes, add_high_low_attributes, | |
515 | gen_compile_unit_die, gen_type_die_with_usage force_decl_die, | |
516 | gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish, | |
517 | dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions | |
518 | when -gdwarf-2 -gstrict-dwarf. | |
519 | (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when | |
520 | -gdwarf-[23] -gstrict-dwarf. | |
521 | (address_of_int_loc_descriptor, loc_descriptor, | |
522 | loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using | |
523 | DWARF4 additions when -gdwarf-[23] -gstrict-dwarf. | |
524 | * common.opt (gno-strict-dwarf, gstrict-dwarf): New options. | |
525 | ||
f61e18ec RG |
526 | 2009-09-22 Richard Guenther <rguenther@suse.de> |
527 | ||
528 | PR tree-optimization/41428 | |
529 | * tree-ssa-ccp.c (ccp_fold_stmt): New function. | |
530 | (ccp_finalize): Pass it to substitute_and_fold. | |
531 | ||
ff7ffb8f RG |
532 | 2009-09-22 Richard Guenther <rguenther@suse.de> |
533 | ||
534 | * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare. | |
535 | (substitute_and_fold): Adjust prototype. | |
536 | * tree-vrp.c (vrp_evaluate_conditional): Make static. | |
537 | (simplify_stmt_using_ranges): Likewise. | |
538 | (fold_predicate_in): Move here from tree-ssa-propagate.c. | |
539 | (vrp_fold_stmt): New function. | |
540 | (vrp_finalize): Pass it to substitute_and_fold. | |
541 | * tree-flow.h (vrp_evaluate_conditional): Remove. | |
542 | (simplify_stmt_using_ranges): Likewise. | |
543 | * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold. | |
544 | * tree-ssa-copy.c (fini_copy_prop): Likewise. | |
545 | * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded | |
546 | member. | |
547 | (fold_predicate_in): Move to tree-vrp.c. | |
548 | (substitute_and_fold): Use the callback instead of calling into | |
549 | tree-vrp.c functions directly. | |
550 | ||
40742b42 JJ |
551 | 2009-09-22 Jakub Jelinek <jakub@redhat.com> |
552 | ||
8b659ecb JJ |
553 | * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned |
554 | comparison warning on rs6000. | |
555 | ||
40742b42 JJ |
556 | PR middle-end/41429 |
557 | * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for | |
558 | GIMPLE_EH_MUST_NOT_THROW cleanup. | |
559 | (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW. | |
560 | ||
c9c80434 JH |
561 | 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu> |
562 | ||
563 | PR middle-end/41260 | |
564 | * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later. | |
565 | * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on | |
566 | LIB_SPEC for darwin10 and later since it always uses the unwinder in | |
567 | libSystem which is derived from the gcc 4.2.1 unwinder. | |
568 | ||
e0fd7469 DK |
569 | 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com> |
570 | ||
571 | PR middle-end/41357 | |
572 | * varasm.c (default_encode_section_info): Copy TLS model into | |
573 | sym_ref flags regardless of backend support for TLS, for all | |
574 | model types except TLS_MODEL_EMULATED. | |
575 | ||
cf09842e DK |
576 | 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com> |
577 | ||
578 | PR bootstrap/41404 | |
579 | * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until | |
580 | we can handle it correctly. | |
581 | ||
c1493544 GP |
582 | 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com> |
583 | ||
584 | * doc/install.texi (os2): Remove section. | |
585 | ||
2f55829e GP |
586 | 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com> |
587 | ||
588 | * doc/standards.texi (Objective-C): Adjust two URLs. | |
589 | ||
d9334061 GS |
590 | 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org> |
591 | ||
be123439 UB |
592 | * tree-tailcall.c (process_assignment): Don't check if a |
593 | multiplication or an addition are already present. | |
d9334061 GS |
594 | (find_tail_calls): Combine multiple additions and multiplications. |
595 | (adjust_accumulator_values): Emit accumulators. | |
596 | ||
4b51caf2 KT |
597 | 2009-09-21 Kai Tietz <kai.tietz@onevision.com> |
598 | ||
599 | * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for | |
600 | xmm register restore. | |
601 | ||
5b5fba56 JH |
602 | 2009-09-21 Jan Hubicka <jh@suse.cz> |
603 | ||
604 | * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL. | |
605 | (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and | |
606 | restore at the end. | |
607 | ||
473ebbc5 EB |
608 | 2009-09-21 Eric Botcazou <ebotcazou@adacore.com> |
609 | ||
610 | * stor-layout.c (layout_type): Remove obsolete code. | |
611 | ||
1dbb24a3 L |
612 | 2009-09-20 H.J. Lu <hongjiu.lu@intel.com> |
613 | ||
614 | PR middle-end/41395 | |
615 | * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2. | |
616 | ||
ca75b926 KG |
617 | 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
618 | ||
619 | PR middle-end/30789 | |
620 | * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter. | |
621 | (do_mpc_ckconv): Accept FORCE_CONVERT parameter. | |
622 | (fold_builtin_2, do_mpc_arg1): Update accordingly. | |
623 | * fold-const.c (const_binop): Likewise. | |
624 | * real.h (do_mpc_arg2): Update prototype. | |
625 | ||
c4a80a2d JH |
626 | 2009-09-20 Jan Hubicka <jh@suse.cz> |
627 | ||
628 | * dwarf2out.c (add_const_value_attribute): Return true if successful. | |
be123439 UB |
629 | (add_location_or_const_value_attribute): Rewrite using |
630 | loc_list_from_tree. | |
c4a80a2d JH |
631 | (tree_add_const_value_attribute): Return true if successful. |
632 | (tree_add_const_value_attribute_for_decl): Likewise. | |
633 | ||
634 | * dwarf2out.c (address_of_int_loc_descriptor): Break out from ... | |
635 | (loc_descriptor): ... here; | |
636 | (loc_list_for_address_of_addr_expr_of_indirect_ref): New function. | |
637 | (cst_pool_loc_descr): Break out from ...; do not reffer constant | |
638 | pool items that was not marked for output. | |
639 | (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR; | |
640 | (loc_list_for_address_of_addr_expr_of_indirect_ref): New function. | |
641 | (loc_list_for_address_of_addr_expr_of_indirect_ref): New function. | |
642 | handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR, | |
643 | IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of | |
644 | CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use | |
645 | DW_OP_stack_value to get address of items that are not available | |
646 | as addresses. | |
647 | (dw_loc_list): Handle single element lists correctly. | |
648 | ||
0b1d7060 KT |
649 | 2009-09-20 Kai Tietz <kai.tietz@onevision.com> |
650 | Pascal Obry <obry@adacore.com> | |
651 | ||
652 | * unwind-dw2-fde.c (classify_object_over_fdes): | |
653 | Cast the constant 1 to _Unwind_Ptr. | |
654 | (add_fdes): Likewise. | |
655 | (linear_search_fdes): Likewise. | |
656 | ||
d0566a63 EB |
657 | 2009-09-20 Eric Botcazou <ebotcazou@adacore.com> |
658 | ||
659 | * stor-layout.c (set_sizetype): Avoid useless type copy. | |
660 | ||
49576e25 RS |
661 | 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com> |
662 | ||
663 | * configure.ac (gcc_cv_ld_mips_personality_relaxation): New | |
664 | feature check. | |
665 | (HAVE_LD_PERSONALITY_RELAXATION): New macro definition. | |
666 | * configure, config.in: Regenerate. | |
667 | * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect | | |
668 | DW_EH_PE_absptr. | |
669 | * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro. | |
670 | (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT | |
671 | for global data if the output could be used in a shared library. | |
672 | * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm | |
673 | to 0 if TARGET_WRITABLE_EH_FRAME. | |
674 | ||
63c6c7e0 KT |
675 | 2009-09-20 Paolo Bonzini <bonzini@gnu.org> |
676 | ||
f8e25a2a | 677 | PR rtl-optimization/39886 |
63c6c7e0 KT |
678 | * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU |
679 | just when insn is equal to BB_END (bb). | |
680 | ||
b53da244 AN |
681 | 2009-09-19 Adam Nemet <anemet@caviumnetworks.com> |
682 | ||
683 | * config/mips/mips.opt (mrelax-pic-calls): New option. | |
684 | * config/mips/mips.c (mips_strip_unspec_address): Move it up in | |
685 | the file. | |
686 | (mips_unspec_call): Change "unspec_call" expander into this. | |
687 | (mips_strip_unspec_call): New function. | |
688 | (mips_got_load): Call mips_unspec_call instead of | |
689 | gen_unspec_call<mode>. | |
690 | (mips16_build_call_stub): Fix comment for fp_code. Adjust call to | |
691 | MIPS_CALL. | |
692 | (mips_cfg_in_reorg): New function. | |
693 | (mips16_lay_out_constants): Use it to decide whether to call | |
694 | CFG-aware insn splitting. | |
695 | (r10k_insert_cache_barriers): Move CFG set-up code from here to | |
696 | mips_reorg. Move DF set-up code from here ... | |
697 | (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers | |
698 | from here. | |
699 | (mips_reorg): Call mips_df_reorg instead of | |
700 | r10k_insert_cache_barriers. Move CFG set-up code here from | |
701 | r10k_insert_cache_barriers. | |
702 | (mips_call_expr_from_insn): New function. | |
703 | (mips_pic_call_symbol_from_set): Likewise. | |
704 | (mips_find_pic_call_symbol): Likewise. | |
705 | (mips_annotate_pic_call_expr): Likewise. | |
706 | (mips_get_pic_call_symbol): Likewise. | |
707 | (mips_annotate_pic_calls): Likewise. | |
708 | (mips_override_options): Disable -mrelax-pic-calls unless PIC | |
709 | calls are used. | |
710 | (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16. | |
711 | * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it. | |
712 | * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc | |
713 | directive. | |
714 | * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec. | |
715 | (unspec_call<mode>): Remove it. | |
716 | (sibcall_internal, sibcall_value_internal, | |
717 | sibcall_value_multiple_internal, call_internal, call_split, | |
718 | call_value_internal, call_value_split, | |
719 | call_value_multiple_internal, call_value_multiple_split): Pass | |
720 | SIZE_OPNO to MIPS_CALL. | |
721 | (call_internal_direct, call_direct_split, | |
722 | call_value_internal_direct, call_value_direct_split): Pass -1 as | |
723 | SIZE_OPNO to MIPS_CALL. | |
724 | * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR. | |
725 | * configure: Regenerate. | |
726 | * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls | |
727 | and -mno-relax-pic-calls. | |
be123439 | 728 | (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls. |
b53da244 | 729 | |
1d93c860 RW |
730 | 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
731 | ||
732 | PR bootstrap/35619 | |
733 | * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created | |
734 | in the directory this rule is called from, rather than the | |
735 | toplevel 'gcc' directory, to fix in-tree build. | |
736 | ||
74dc6a11 CD |
737 | 2009-09-19 Chris Demetriou <cgd@google.com> |
738 | ||
739 | PR preprocessor/28435: | |
740 | * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate | |
741 | to cpplib that the preprocessor output is needed. | |
742 | ||
bc8b6c98 JJ |
743 | 2009-09-19 Jakub Jelinek <jakub@redhat.com> |
744 | ||
e0f3e75b JJ |
745 | * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>, |
746 | *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>, | |
747 | *return_and_restore_fpregs_<mode>, | |
748 | *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier. | |
749 | ||
bc8b6c98 JJ |
750 | PR bootstrap/41397 |
751 | * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse | |
752 | instead of assuming it has always a REG inside of it. | |
753 | ||
ca94da48 GP |
754 | 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com> |
755 | ||
756 | * config/freebsd.h: Update comment on types. | |
757 | (WINT_TYPE): Define. | |
758 | ||
5f5babf1 JM |
759 | 2009-09-18 Jason Merrill <jason@redhat.com> |
760 | ||
761 | * c.opt: Add -fno-deduce-init-list. | |
762 | ||
eb99f777 NV |
763 | 2009-09-18 Neil Vachharajani <nvachhar@google.com> |
764 | ||
765 | * value-prof.c (interesting_stringop_to_profile_p): Added output | |
766 | argument to indicate which parameter is the size parameter. | |
767 | * value-prof.c (gimple_stringop_fixed_value): Use | |
768 | INTERESTING_STRINGOP_TO_PROFILE_P to find size argument. | |
769 | * value-prof.c (gimple_stringops_transform): Update call sites to | |
770 | INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change. | |
771 | * testsuite/gcc.dg/tree-prof/val-prof-7.c: Added test case. | |
772 | ||
2a79f8e4 UB |
773 | 2009-09-18 Uros Bizjak <ubizjak@gmail.com> |
774 | ||
775 | PR target/38288 | |
776 | From David Binderman <dcb314@hotmail.com>: | |
777 | * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless | |
778 | local variable f. Remove stale comments. | |
779 | (ix86_compute_frame_layout): Remove useless local variable total_size. | |
780 | Remove #if 0'd code. | |
781 | (legitimate_address_p): Remove useless local variables | |
782 | reason_rtx and reason. | |
783 | (ix86_split_copysign_const): Remove useless local variable op1. | |
784 | (scale_counter): Remove useless local variable piece_size_mask. | |
785 | ||
2b5bcdee JJ |
786 | 2009-09-18 Jakub Jelinek <jakub@redhat.com> |
787 | ||
788 | * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from | |
789 | output decl. | |
790 | ||
43eb8947 MH |
791 | 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at> |
792 | ||
793 | PR target/40913 | |
794 | * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl. | |
795 | ||
591a8495 JJ |
796 | 2009-09-17 Jakub Jelinek <jakub@redhat.com> |
797 | ||
798 | * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of | |
799 | TYPE_STUB_DECL. | |
800 | ||
417b3023 AO |
801 | 2009-09-17 Alexandre Oliva <aoliva@redhat.com> |
802 | ||
803 | * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and | |
804 | DW_OP_implicit_value even without dwarf_version 4. | |
805 | ||
e7f373fa JH |
806 | 2009-09-17 Jan Hubicka <jh@suse.cz> |
807 | ||
808 | * dwarf2out.c: Include tree-pass.h and gimple.h. | |
809 | (loc_list_plus_const): New function. | |
810 | (loc_descriptor_from_tree_1): Rename to ... | |
811 | (loc_descriptor_from_tree): ... remove original. | |
812 | (loc_list_from_tree): New function. | |
813 | (add_AT_location_description): Accept location list. | |
814 | (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree. | |
815 | (concatn_mem_loc_descriptor): Remove. | |
816 | (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by | |
817 | returning NULL. | |
818 | (secname_for_decl): Move up. | |
819 | (hidden_reference_p): New function; break out from ... | |
820 | (loc_by_refernece): ... here; move up. | |
821 | (dw_loc_list): New function. | |
822 | (single_element_loc_list): New function. | |
823 | (single_element_loc_list_p): New function. | |
824 | (add_loc_descr_to_each): New function. | |
825 | (add_loc_list): New function. | |
826 | (loc_descr_from_tree): Make wraper of loc_list_from_tree. | |
827 | (loc_list_from_tree): Reroganized from loc_descr_from_tree; | |
828 | add diagnostics why expansion failed. | |
829 | (add_location_or_const_value_attribute): Support location lists. | |
830 | (add_bound_info): Likewise. | |
831 | (descr_info_loc): Update call of loc_descriptor_from_tree. | |
832 | (gen_variable_die): Work on location lists. | |
833 | * final.c (pass_final): Add dump file. | |
834 | * Makefile.in (dwarf2out.o): Add new dependencies. | |
835 | ||
d2da4af2 JJ |
836 | 2009-09-17 Janis Johnson <janis187@us.ibm.com> |
837 | ||
838 | PR c/41049 | |
839 | * real.c decimal_from_integer, decimal_integer_string): New. | |
840 | (real_from_integer): Use them as special case for decimal float. | |
841 | * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding. | |
842 | (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td): | |
843 | Do not append zero after the decimal point in string to convert. | |
844 | ||
98f3eb1f AM |
845 | 2009-09-17 Alexander Monakov <amonakov@ispras.ru> |
846 | ||
847 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
848 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
849 | ||
07ffa034 MJ |
850 | 2009-09-17 Martin Jambor <mjambor@suse.cz> |
851 | ||
852 | * common.opt (fipa-sra): New switch. | |
853 | * opts.c (decode_options): Turn flag_ipa_sra on for opt2. | |
854 | * timevar.def (TV_IPA_SRA): New timevar. | |
855 | * params.def (ipa-sra-ptr-growth-factor): New parameter. | |
856 | * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor. | |
857 | * tree-sra.c: Include cgraph.c. | |
858 | (enum sra_mode): Added SRA_MODE_EARLY_IPA. | |
859 | (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr | |
860 | and grp_not_necessarilly_dereferenced. | |
861 | (func_param_count): New variable. | |
862 | (encountered_apply_args): New variable. | |
863 | (bb_dereferences): New variable. | |
864 | (final_bbs): New variable. | |
865 | (no_accesses_representant): New variable. | |
866 | (no_accesses_p): New function. | |
867 | (dump_access): Dump the new fields. | |
868 | (sra_initialize): Set encountered_apply_args to false. | |
869 | (get_ssa_base_param): New function. | |
870 | (mark_parm_dereference): New function. | |
871 | (create_access): Caring for INIDRECT_REFs and different handling of | |
872 | varialble length accesses in early IPA SRA. Store the stmt - a new | |
873 | parameter - to the new access. | |
874 | (build_access_from_expr_1): New parameter stmt, passed to | |
875 | create_access. Handle INDIRECT_REFs. | |
876 | (build_access_from_expr): Pass the current statement to | |
877 | build_access_from_expr_1. | |
878 | (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural | |
879 | passes. | |
880 | (build_accesses_from_assign): Pass the current statement to | |
881 | build_access_from_expr_1. Do not create assign links in IPA-SRA. | |
882 | (scan_function): Call handle_ssa_defs on phi nodes. Set bits in | |
883 | final_bbs when necessary. Check for calls to __builtin_apply_args. | |
884 | Fixup EH info if anythng was changed. | |
885 | (is_unused_scalar_param): New function. | |
886 | (ptr_parm_has_direct_uses): New function. | |
887 | (find_param_candidates): New function. | |
888 | (mark_maybe_modified): New function. | |
889 | (analyze_modified_params): New function. | |
890 | (propagate_dereference_distances): New function. | |
891 | (dump_dereferences_table): New function. | |
892 | (analyze_caller_dereference_legality): New function. | |
893 | (unmodified_by_ref_scalar_representative): New function. | |
894 | (splice_param_accesses): New function. | |
895 | (decide_one_param_reduction): New function. | |
896 | (enum ipa_splicing_result): New type. | |
897 | (splice_all_param_accesses): New function. | |
898 | (get_param_index): New function. | |
899 | (turn_representatives_into_adjustments): New function. | |
900 | (analyze_all_param_acesses): New function. | |
901 | (get_replaced_param_substitute): New function. | |
902 | (get_adjustment_for_base): New function. | |
903 | (replace_removed_params_ssa_names): New function. | |
904 | (sra_ipa_reset_debug_stmts): New function. | |
905 | (sra_ipa_modify_expr): New function. | |
906 | (sra_ipa_modify_assign): New function. | |
907 | (convert_callers): New function. | |
908 | (modify_function): New function. | |
909 | (ipa_sra_preliminary_function_checks): New function. | |
910 | (ipa_early_sra): New function. | |
911 | (ipa_early_sra_gate): New function. | |
912 | (pass_early_ipa_sra): New variable. | |
913 | * Makefile.in (tree-sra.o): Add cgraph.h to dependencies. | |
2a79f8e4 | 914 | |
040c6d51 MM |
915 | 2009-09-17 Michael Matz <matz@suse.de> |
916 | ||
917 | PR middle-end/41347 | |
918 | * tree.c (build_type_attribute_qual_variant): Export. | |
919 | * tree.h (build_type_attribute_qual_variant): Declare. | |
920 | * tree-inline.c (remap_type_1): Use it to build variants with | |
921 | the original qualifiers and attributes. | |
922 | ||
10e154df AK |
923 | 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
924 | ||
925 | * cfglayout.c (fixup_reorder_chain): Accept conditional jumps | |
926 | without a fallthrough edge. | |
927 | ||
402f2db8 DD |
928 | 2009-09-16 DJ Delorie <dj@redhat.com> |
929 | ||
930 | * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C | |
931 | chip and ignore the "fast_interrupt" attribute if so. | |
932 | ||
27b4689f RH |
933 | 2009-09-16 Richard Henderson <rth@redhat.com> |
934 | ||
935 | PR middle-end/41360 | |
936 | * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02 | |
937 | barrier fix. | |
938 | ||
fe663f4e RH |
939 | 2009-09-16 Richard Henderson <rth@redhat.com> |
940 | ||
941 | PR target/41246 | |
942 | * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain | |
943 | is set only if DECL_NO_STATIC_CHAIN is unset. | |
944 | * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New. | |
945 | (FOR_EACH_NEST_INFO): New. | |
946 | (walk_all_functions): Use it. | |
947 | (finalize_nesting_tree): Likewise. | |
948 | (unnest_nesting_tree): Likewise. | |
949 | (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next. | |
950 | (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN. | |
951 | (convert_gimple_call): Early out if gimple_call_chain already set. | |
952 | (convert_all_function_calls): Iterate until no new functions | |
953 | require a static chain. | |
954 | (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset | |
955 | when building a trampoline. Use dump_function_to_file instead | |
956 | of dump_function. | |
957 | (lower_nested_functions): Open dump_file. Validate that decls | |
958 | that have DECL_NO_STATIC_CHAIN from the front end don't have that | |
959 | bit reset by this pass. | |
960 | ||
9b87db3c MM |
961 | 2009-09-16 Michael Matz <matz@suse.de> |
962 | ||
963 | PR fortran/41212 | |
964 | * tree.h (struct tree_decl_common): Add decl_restricted_flag, | |
965 | shorten decl_common_unused. | |
966 | (DECL_RESTRICTED_P): New accessor. | |
967 | * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it | |
968 | to disambiguate marked decls and restrict pointers. | |
969 | ||
79876307 RH |
970 | 2009-09-16 Richard Henderson <rth@redhat.com> |
971 | ||
972 | PR middle-end/41360 | |
973 | * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix. | |
974 | ||
e038c37b JJ |
975 | 2009-09-16 Jakub Jelinek <jakub@redhat.com> |
976 | ||
977 | * integrate.c (set_block_abstract_flags): Call | |
978 | set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs. | |
979 | ||
4075e7e8 RG |
980 | 2009-09-16 Richard Guenther <rguenther@suse.de> |
981 | ||
982 | PR middle-end/34011 | |
983 | * tree-flow-inline.h (may_be_aliased): Compute readonly variables | |
984 | as non-aliased. | |
985 | ||
21d05694 DD |
986 | 2009-09-16 DJ Delorie <dj@redhat.com> |
987 | Kaz Kojima <kkojima@gcc.gnu.org> | |
988 | ||
989 | * config/sh/sh.c (output_stack_adjust): Add new argument frame_p. | |
990 | (sh_expand_prologue): Update calls to output_stack_adjust. | |
2a79f8e4 | 991 | (sh_expand_epilogue): Likewise. |
21d05694 | 992 | |
e484d1f0 AN |
993 | 2009-09-15 Adam Nemet <anemet@caviumnetworks.com> |
994 | ||
995 | PR bootstrap/41349 | |
996 | * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when | |
997 | trying to limit the extent of searches in the insn stream. | |
998 | ||
d7a9e7c5 NF |
999 | 2009-09-15 Nathan Froyd <froydnj@codesourcery.com> |
1000 | Jakub Jelinek <jakub@redhat.com> | |
1001 | ||
1002 | PR target/41175 | |
1003 | PR target/40677 | |
1004 | * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence | |
1005 | problem. | |
1006 | (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR, | |
1007 | SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits. | |
1008 | (rs6000_savres_strategy): Always save FP registers inline if the | |
1009 | target doesn't support hardware double-precision. Set the above | |
1010 | bits in return value when needed. | |
1011 | (rs6000_savres_routine_sym): Fix computation for cache selector. | |
1012 | Mark the generated symbol as a function. Rename exitp argument to | |
1013 | lr. Move code for determining the name of the symbol... | |
1014 | (rs6000_savres_routine_name): ...here. New function. Add cases for | |
1015 | getting the names right on AIX and 64-bit Linux. | |
1016 | (savres_routine_name): New variable. | |
1017 | (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert | |
1018 | lr isn't set when savep. Use r12 resp. r1 instead of r11 depending | |
1019 | on what the target routine uses as a base register. If savep && lr | |
1020 | describe saving of r0 into memory slot. | |
1021 | (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of | |
1022 | line calls for AIX ABI. | |
1023 | (rs6000_output_function_prologue): Use rs6000_savres_routine_name to | |
1024 | determine FP save/restore functions. | |
1025 | (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and | |
1026 | frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of | |
1027 | gen_addsi3. | |
1028 | (rs6000_emit_epilogue): Adjust computation of restore_lr. | |
1029 | Duplicate restoration of LR and execute the appropriate one | |
1030 | depending on whether GPRs are being restored inline. Set r11 from | |
1031 | offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is | |
1032 | r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3. | |
1033 | Fix out of line calls for AIX ABI. | |
1034 | * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>): | |
1035 | New insn. | |
1036 | * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for | |
1037 | register 11. | |
1038 | (*restore_gpregs_spe): Likewise. | |
1039 | (*return_and_restore_gpregs_spe): Likewise. | |
1040 | * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): | |
1041 | Define to empty string unconditionally. | |
1042 | * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): | |
1043 | Define to empty string unconditionally. | |
1044 | (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as | |
1045 | !TARGET_64BIT. | |
1046 | ||
c7d68c96 JH |
1047 | 2009-09-15 Jan Hubicka <jh@suse.cz> |
1048 | ||
1049 | * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50. | |
1050 | * params.def (inline-insns-auto): Likewise. | |
1051 | ||
aa9dc284 MJ |
1052 | 2009-09-15 Martin Jambor <mjambor@suse.cz> |
1053 | ||
1054 | * ipa-inline.c (estimate_function_body_sizes): Dump info about | |
1055 | individual statements only at TDF_DETAILS dump level. Format | |
1056 | source for 80 characters per line. | |
1057 | ||
1058 | 2009-09-15 Christian Bruel <christian.bruel@st.com> | |
56550f23 | 1059 | |
2a79f8e4 UB |
1060 | * regrename.c (do_replace): Update REG_DEAD notes. |
1061 | ||
0601d0cf RE |
1062 | 2009-09-15 Revital Eres <eres@il.ibm.com> |
1063 | ||
1064 | * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document. | |
1065 | * targhooks.c (default_builtin_support_vector_misalignment): | |
1066 | New builtin function. | |
1067 | * targhooks.h (default_builtin_support_vector_misalignment): | |
1068 | Declare. | |
1069 | * target.h (builtin_support_vector_misalignment): | |
1070 | New field in struct gcc_target. | |
1071 | * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call | |
1072 | new builtin function. | |
1073 | * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT): | |
1074 | Define. | |
1075 | * config/rs6000/rs6000.c | |
1076 | (rs6000_builtin_support_vector_misalignment): New function. | |
1077 | (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define. | |
1078 | ||
e5e44796 JZ |
1079 | 2009-09-15 Jie Zhang <jie.zhang@analog.com> |
1080 | ||
1081 | * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P | |
1082 | instead of INSN_P. | |
1083 | (bfin_optimize_loop): Likewise. | |
1084 | (bfin_gen_bundles): Likewise. | |
1085 | (workaround_speculation): Likewise. | |
1086 | (find_load): Return NULL_RTX for debug_insn. | |
1087 | ||
6dac2e8e UB |
1088 | 2009-09-15 Uros Bizjak <ubizjak@gmail.com> |
1089 | ||
1090 | * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode. | |
1091 | (sminsf3): Ditto. | |
1092 | ||
d839f1eb DD |
1093 | 2009-09-14 DJ Delorie <dj@redhat.com> |
1094 | ||
1095 | * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define. | |
6dac2e8e UB |
1096 | * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in |
1097 | VLIW mode. | |
d839f1eb | 1098 | |
1c384bf1 | 1099 | 2009-09-14 Richard Henderson <rth@redhat.com> |
6dac2e8e | 1100 | Jakub Jelinek <jakub@redhat.com> |
1c384bf1 RH |
1101 | |
1102 | * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec. | |
1103 | * cfgbuild.c (make_edges): Handle asm goto. | |
1104 | * cfglayout.c (fixup_reorder_chain): Likewise. | |
1105 | * cfgrtl.c (patch_jump_insn): Likewise. | |
1106 | * gimple-pretty-print.c (dump_gimple_asm): Likewise. | |
1107 | * gimple.c (gimple_build_asm_1): Add and use nlabels parameter. | |
1108 | (gimple_build_asm_vec): Add and use labels parameter. | |
1109 | (gimple_build_asm): Remove. | |
1110 | (walk_gimple_asm): Walk labels too. | |
1111 | * gimple.def (GIMPLE_ASM): Update docs. | |
1112 | * gimple.h: Update decls. | |
1113 | (struct gimple_statement_asm): Change nc to use unsigned char; | |
1114 | add nl member. | |
1115 | (gimple_asm_nlabels): New. | |
1116 | (gimple_asm_label_op, gimple_asm_set_label_op): New. | |
1117 | * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR | |
1118 | into gimple_build_asm_vec. | |
1119 | * jump.c (mark_jump_label_asm): New. | |
1120 | (mark_jump_label): Use it. | |
1121 | (redirect_jump_1): Handle asm goto. | |
1122 | (invert_jump_1): Soft fail if X is null. | |
1123 | * recog.c (extract_asm_operands): New. | |
1124 | (asm_noperands): Use it; handle asm labels. | |
1125 | (decode_asm_operands): Use extract_asm_operands. | |
1126 | (asm_operand_ok): Properly handle empty string. | |
1127 | * reg-stack.c (get_asm_operands_in_out): Rename from | |
1128 | get_asm_operand_n_inputs; use extract_asm_operands; return both | |
1129 | inputs and outputs by reference; update all callers. | |
1130 | * rtl.def (ASM_OPERANDS): Add label vector as operand 6. | |
1131 | * rtl.h (ASM_OPERANDS_LABEL_VEC): New. | |
1132 | (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New. | |
1133 | (ASM_OPERANDS_SOURCE_LOCATION): Renumber. | |
1134 | (extract_asm_operands): Declare. | |
1135 | * stmt.c (expand_asm_operands): Add and use labels parameter. | |
1136 | (check_unique_operand_names): Likewise. | |
1137 | (resolve_asm_operand_names, resolve_operand_name_1): Likewise. | |
1138 | (expand_asm_stmt): Handle asm labels. | |
1139 | * tree-cfg.c (make_gimple_asm_edges): New. | |
1140 | (make_edges): Use it. | |
1141 | (cleanup_dead_labels): Handle asm labels. | |
1142 | (is_ctrl_altering_stmt): Likewise. | |
1143 | (gimple_redirect_edge_and_branch): Likewise. | |
1144 | * tree.def (ASM_EXPR): Add 5th operand. | |
1145 | * tree.h (ASM_LABELS): New. | |
1146 | (resolve_asm_operand_names): Update decl. | |
1147 | ||
1148 | * c-parser.c (c_parser_asm_statement): Parse asm goto. | |
1149 | (c_parser_asm_goto_operands): New. | |
1150 | * c-tree.h (build_asm_expr): Update decl. | |
1151 | * c-typeck.c (build_asm_expr): Add and use labels parameter. | |
1152 | * doc/extend.texi: Document asm goto. | |
1153 | ||
1d65f45c RH |
1154 | 2009-09-14 Richard Henderson <rth@redhat.com> |
1155 | ||
1156 | * except.h: Update declarations. | |
1157 | (struct pointer_map_t): Forward declare. | |
1158 | (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove. | |
1159 | (struct eh_landing_pad_d, eh_landing_pad): New. | |
1160 | (struct eh_catch_d, eh_catch): New. | |
1161 | (struct eh_region_d): Remove next_region_sharing_label, aka, | |
1162 | label, tree_label, landing_pad, post_landing_pad, resume, | |
1163 | may_contain_throw. Rename region_number to index. Remove | |
1164 | u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch. | |
1165 | Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg. | |
1166 | (VEC(eh_landing_pad,gc)): New. | |
1167 | (struct eh_status): Remove last_region_number. Add lp_array, | |
1168 | throw_stmt_table, ttype_data, ehspec_data. | |
1169 | (ehr_next, FOR_ALL_EH_REGION_AT): New. | |
1170 | (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New. | |
1171 | * except.c (lang_protect_cleanup_actions): Return tree. | |
1172 | (struct ehl_map_entry): Remove. | |
1173 | (init_eh_for_function): Push zero entries for region and lp_array. | |
1174 | (gen_eh_region): Add to region_array immediately. | |
1175 | (gen_eh_region_catch): Operate on eh_catch objects. | |
1176 | (gen_eh_landing_pad): New. | |
1177 | (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove. | |
1178 | (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove. | |
1179 | (get_eh_region_from_number, get_eh_region_from_number_fn): New. | |
1180 | (get_eh_landing_pad_from_number_fn): New. | |
1181 | (get_eh_landing_pad_from_number): New. | |
1182 | (get_eh_region_from_lp_number_fn): New. | |
1183 | (get_eh_region_from_lp_number): New. | |
1184 | (expand_resx_stmt, note_eh_region_may_contain_throw): Remove. | |
1185 | (get_exception_pointer, get_exception_filter): Remove. | |
1186 | (collect_eh_region_array, can_be_reached_by_runtime): Remove. | |
1187 | (current_function_has_exception_handlers): Simplify. | |
1188 | (bring_to_root, eh_region_replaceable_by_p): Remove. | |
1189 | (replace_region, hash_type_list, hash_eh_region): Remove. | |
1190 | (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove. | |
1191 | (label_to_region_map, num_eh_regions): Remove. | |
1192 | (get_next_region_sharing_label, must_not_throw_labels): Remove. | |
1193 | (find_exception_handler_labels): Remove. | |
1194 | (duplicate_eh_regions_0, find_prev_try): Remove. | |
1195 | (struct duplicate_eh_regions_data): New. | |
1196 | (duplicate_eh_regions_1): Rewrite. | |
1197 | (duplicate_eh_regions): Return a pointer map instead of an | |
1198 | integer offset. | |
1199 | (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove. | |
1200 | (redirect_eh_edge_to_label): Remove. | |
1201 | (eh_region_outermost): Rewrite using eh_region pointers | |
1202 | instead of integers. | |
1203 | (add_ttypes_entry): Update for ttype_data move to eh_status. | |
1204 | (add_ehspec_entry): Rewrite with VEC instead of varray. | |
1205 | (assign_filter_values): Likewise. Export. | |
1206 | (build_post_landing_pads, connect_post_landing_pads): Remove. | |
1207 | (dw2_build_landing_pads): Rewrite to use lp_array. | |
1208 | (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove. | |
1209 | (sjlj_assign_call_site_values): Rewrite to use lp_array. | |
1210 | (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise. | |
1211 | (sjlj_mark_call_sites): Update for landing pad numbers. | |
1212 | (finish_eh_generation): Rewrite. | |
1213 | (gate_handle_eh): Do nothing for no eh tree. | |
1214 | (pass_rtl_eh): Move up near finish_eh_generation. | |
1215 | (remove_eh_landing_pad): New. | |
1216 | (remove_eh_handler): Export. | |
1217 | (remove_eh_region, remove_eh_handler_and_replace): Remove. | |
1218 | (for_each_eh_label): Rewrite to use lp_array. | |
1219 | (make_reg_eh_region_note): New. | |
1220 | (make_reg_eh_region_note_nothrow_nononlocal): New. | |
1221 | (insn_could_throw_p): New. | |
1222 | (copy_reg_eh_region_note_forward): New. | |
1223 | (copy_reg_eh_region_note_backward): New. | |
1224 | (check_handled, add_reachable_handler): Remove. | |
1225 | (reachable_next_level, foreach_reachable_handler): Remove. | |
1226 | (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove. | |
1227 | (get_eh_region_and_lp_from_rtx): New. | |
1228 | (get_eh_region_from_rtx): New. | |
1229 | (can_throw_internal_1, can_throw_external_1): Remove. | |
1230 | (can_throw_internal): Use get_eh_region_from_rtx. | |
1231 | (can_throw_external): Use get_eh_region_and_lp_from_rtx. | |
1232 | (insn_nothrow_p, can_nonlocal_goto): New. | |
1233 | (expand_builtin_eh_common, expand_builtin_eh_pointer): New. | |
1234 | (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New. | |
1235 | (add_action_record): Use VEC not varray. | |
1236 | (collect_one_action_chain): Update for eh_region changes. | |
1237 | (convert_to_eh_region_ranges): Make static. Use VEC not varray. | |
1238 | Use get_eh_region_and_lp_from_rtx. | |
1239 | (gate_convert_to_eh_region_ranges): New. | |
1240 | (pass_convert_to_eh_region_ranges): Use it. | |
1241 | (push_uleb128, push_sleb128): Use VEC not varray. | |
1242 | (output_one_function_exception_table): Likewise. | |
1243 | (dump_eh_tree): Update for eh_region changes. | |
1244 | (verify_eh_tree): Likewise. | |
1245 | (verify_eh_region, default_init_unwind_resume_libfunc): Remove. | |
1246 | * tree-eh.c: Include target.h. | |
1247 | (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn. | |
1248 | Don't disallow GIMPLE_RESX; adjust argument check. | |
1249 | (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region. | |
1250 | (record_stmt_eh_region): Update for landing pad numbers; | |
1251 | generate a landing pad if necessary. | |
1252 | (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region. | |
1253 | (remove_stmt_from_eh_lp_fn): Similarly. | |
1254 | (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn. | |
1255 | Update for lp numbers; don't special case missing throw_stmt_table. | |
1256 | (lookup_expr_eh_lp): Similarly. | |
1257 | (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region. | |
1258 | (eh_seq, eh_region_may_contain_throw): New. | |
1259 | (struct leh_state): Add ehp_region. | |
1260 | (struct leh_tf_state): Remove eh_label. | |
1261 | (emit_post_landing_pad): New. | |
1262 | (emit_resx, emit_eh_dispatch): New. | |
1263 | (note_eh_region_may_contain_throw): New. | |
1264 | (frob_into_branch_around): Take eh_region not eh label; | |
1265 | emit eh code into eh_seq. | |
1266 | (honor_protect_cleanup_actions): Early exit for no actions. Don't | |
1267 | handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw, | |
1268 | lower_eh_must_not_throw. Emit code to eh_seq. | |
1269 | (lower_try_finally_nofallthru): Emit eh code to eh_seq. | |
1270 | (lower_try_finally_onedest): Likewise. | |
1271 | (lower_try_finally_copy): Likewise. | |
1272 | (lower_try_finally_switch): Likewise. | |
1273 | (lower_try_finally): Initialize ehp_region. | |
1274 | (lower_catch): Update for eh_catch objects. | |
1275 | (lower_eh_filter): Don't handle must_not_throw. | |
1276 | (lower_eh_must_not_throw): New. | |
1277 | (lower_cleanup): Don't set eh_label. | |
1278 | (lower_eh_constructs_2): Resolve eh builtins. | |
1279 | Handle GIMPLE_EH_MUST_NOT_THROW. | |
1280 | (lower_eh_constructs): Initialize eh_region_may_contain_throw. | |
1281 | Add eh_seq to the end of the function body. | |
1282 | (make_eh_dispatch_edges): New. | |
1283 | (make_eh_edge): Remove. | |
1284 | (make_eh_edges): Simplify for landing pads. | |
1285 | (redirect_eh_edge_1): New. | |
1286 | (redirect_eh_edge): Use it. | |
1287 | (redirect_eh_dispatch_edge): New. | |
1288 | (stmt_could_throw_p): Use a switch. Allow RESX. | |
1289 | (stmt_can_throw_external): Use lookup_stmt_eh_lp. | |
1290 | (stmt_can_throw_internal): Likewise. | |
1291 | (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New. | |
1292 | (maybe_clean_or_replace_eh_stmt): Update for landing pads. | |
1293 | (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New. | |
1294 | (gate_refactor_eh): New. | |
1295 | (pass_refactor_eh): Use it. | |
1296 | (lower_resx, execute_lower_resx, pass_lower_resx): New. | |
1297 | (lower_eh_dispatch, execute_lower_eh_dispatch): New. | |
1298 | (gate_lower_ehcontrol, pass_lower_eh_dispatch): New. | |
1299 | (remove_unreachable_handlers): Rename from | |
1300 | tree_remove_unreachable_handlers; rewrite for landing pads; | |
1301 | call remove_eh_handler directly. | |
1302 | (remove_unreachable_handlers_no_lp): New. | |
1303 | (unsplit_eh, unsplit_all_eh): New. | |
1304 | (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove. | |
1305 | (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New. | |
1306 | (cleanup_empty_eh_unsplit): New. | |
1307 | (cleanup_empty_eh): Rewrite. | |
1308 | (cleanup_all_empty_eh): New. | |
1309 | (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable | |
1310 | handlers first. Use unsplit_all_eh, cleanup_all_empty_eh. | |
1311 | (gate_cleanup_eh): New. | |
1312 | (pass_cleanup_eh): Use it. | |
1313 | (verify_eh_edges): Move later in file. Expect one EH edge. | |
1314 | (verify_eh_dispatch_edge): New. | |
1315 | ||
1316 | * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h. | |
1317 | (gtype-desc.o): Add TARGET_H. | |
1318 | (tree.o): Use EXCEPT_H, not except.h. | |
1319 | (cfgbuild.o): Add EXPR_H. | |
1320 | (GTFILES): Add vecprim.h. | |
1321 | * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER, | |
1322 | BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES. | |
1323 | * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER, | |
1324 | BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New. | |
1325 | * calls.c (emit_call_1): Use make_reg_eh_region_note. | |
1326 | * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy | |
1327 | calls to can_throw_internal. | |
1328 | (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx. | |
1329 | (make_edges): Don't handle RESX; use can_nonlocal_goto. | |
1330 | * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX. | |
1331 | (expand_gimple_stmt): Use make_reg_eh_region_note. | |
1332 | (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR. | |
1333 | (gimple_expand_cfg): Don't call convert_from_eh_region_ranges, | |
1334 | or find_exception_handler_labels. | |
1335 | * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert | |
1336 | there is exacly one EH edge. Use can_nonlocal_goto and | |
1337 | can_throw_internal. | |
1338 | * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn. | |
1339 | (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt. | |
1340 | * combine.c (can_combine_p, try_combine): Use insn_nothrow_p. | |
1341 | * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p. | |
1342 | * dce.c (deletable_insn_p_1): Don't test may_trap_p. | |
1343 | (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test. | |
1344 | * dse.c (scan_insn): Use insn_could_throw_p. | |
1345 | * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward. | |
1346 | * expr.c (expand_expr_real): Use make_reg_eh_region_note. | |
1347 | (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR. | |
1348 | * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle | |
1349 | EXC_PTR_EXPR or FILTER_EXPR. | |
1350 | (tree_expr_nonzero_warnv_p): Likewise. | |
1351 | * function.h: Include vecprim.h, not varray.h | |
1352 | (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members; | |
1353 | move ttype_data and ehspec_data members to struct eh_status; change | |
1354 | action_record_data member to a VEC. | |
1355 | * gcse.c (hash_scan_set): Use can_throw_internal. | |
1356 | * gengtype.c (open_base_files): Add target.h to gtype-desc.c. | |
1357 | * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt. | |
1358 | * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW. | |
1359 | (block_may_fallthru): Don't handle RESX_EXPR. | |
1360 | * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR. | |
1361 | (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New. | |
1362 | (dump_gimple_stmt): Dump landing pad information with TDF_EH; | |
1363 | handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH. | |
1364 | * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW, | |
1365 | GIMPLE_EH_DISPATCH, GIMPLE_RESX. | |
1366 | (gimple_size): Likewise. | |
1367 | (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New. | |
1368 | (gimple_build_resx): Use gimple_build_with_ops. | |
1369 | (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR. | |
1370 | (is_gimple_val): Likewise. | |
1371 | (is_gimple_stmt): Remove RESX_EXPR. | |
1372 | * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New. | |
1373 | (GIMPLE_RESX): Reorder with other EH constructs. | |
1374 | * gimple.h (struct gimple_statement_eh_mnt): New. | |
1375 | (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx. | |
1376 | (gimple_eh_filter_must_not_throw): Remove. | |
1377 | (gimple_eh_filter_set_must_not_throw): Remove. | |
1378 | (gimple_eh_must_not_throw_fndecl): New. | |
1379 | (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New. | |
1380 | (is_gimple_resx): New. | |
1381 | * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR. | |
1382 | Don't copy EH_FILTER_MUST_NOT_THROW. | |
1383 | * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New. | |
1384 | * ipa-inline.c (estimate_function_body_sizes): Don't try to | |
1385 | handle must_not_throw_labels specially. | |
1386 | * ipa-pure-const.c (check_call): Update debug statement for LP. | |
1387 | * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER. | |
1388 | * ipa-utils.c (get_base_var): Likewise. | |
1389 | * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove. | |
1390 | * lower-subreg.c (move_eh_region_note): Remove. | |
1391 | (resolve_simple_move): Use copy_reg_eh_region_note_forward. | |
1392 | * omp-low.c (new_omp_context): Update for eh_lp_nr. | |
1393 | (create_task_copyfn): Likewise. | |
1394 | (maybe_catch_exception): Use gimple_build_eh_filter. | |
1395 | * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto | |
1396 | REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal. | |
1397 | * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch | |
1398 | and pass_lower_resx. | |
1399 | * print-tree.c (print_node): Dump EH_LANDING_PAD_NR. | |
1400 | * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward, | |
1401 | can_throw_internal, can_nonlocal_goto. | |
1402 | * reload1.c (fixup_eh_region_note): Use insn_could_throw_p, | |
1403 | copy_reg_eh_region_note_forward. | |
1404 | (emit_input_reload_insns): Use copy_reg_eh_region_note_forward. | |
1405 | (emit_output_reload_insns): Likewise. | |
1406 | (copy_eh_notes): Remove. | |
1407 | * rtl.def (RESX): Remove. | |
1408 | * rtl.h: Update declarations. | |
1409 | * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt. | |
1410 | * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH. | |
1411 | (update_eh_label): Remove. | |
1412 | (cleanup_dead_labels_eh): New. | |
1413 | (cleanup_deal_labels): Use it instead of update_eh_label. | |
1414 | (gimple_merge_blocks): Update landing pad data structure when | |
1415 | removing a landing pad label. | |
1416 | (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw | |
1417 | test; handle GIMPLE_EH_MUST_NOT_THROW. | |
1418 | (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH. | |
1419 | (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR. | |
1420 | (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH. | |
1421 | (verify_stmt): Likewise. Verify landing pads. | |
1422 | (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH. | |
1423 | (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt. | |
1424 | (struct move_stmt_d): Add eh_map. | |
1425 | (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New. | |
1426 | (move_stmt_r): Remap eh region numbers in builtin calls, | |
1427 | resx and eh_dispatch. | |
1428 | (move_block_to_fn): Remove eh_offset parameter. Use | |
1429 | maybe_duplicate_eh_stmt_fn. | |
1430 | (find_outermost_region_in_block): Operate on eh_region pointers | |
1431 | instead of region numbers. | |
1432 | (move_sese_region_to_fn): Expect eh_map instead of eh_offset from | |
1433 | duplicate_eh_regions. | |
1434 | * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge | |
1435 | test earlier. Disallow EH landing pads. | |
1436 | * tree-cfa.c (create_tree_common_ann): Don't set ann->rn. | |
1437 | * tree-flow.h: Update declarations. | |
1438 | (struct tree_ann_common_d): Replace rn with lp_nr. | |
1439 | * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR. | |
1440 | (remap_eh_region_nr, remap_eh_region_tree_nr): New. | |
1441 | (remap_gimple_stmt): Remap eh region numbers in builtin calls, | |
1442 | resx and eh_dispatch. | |
1443 | (copy_bb): Use maybe_duplicate_eh_stmt_fn. | |
1444 | (copy_edges_for_bb): Use make_eh_dispatch_edges. | |
1445 | (copy_cfg_body): Expect eh_map instead of eh_region_offset | |
1446 | from duplicate_eh_regions. | |
1447 | (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR; | |
1448 | update RESX; handle EH_DISPATCH. | |
1449 | (expand_call_inline): Set eh_lp_nr, not eh_region. | |
1450 | (maybe_inline_call_in_expr): Likewise. | |
1451 | * tree-inline.h (struct copy_body_data): Replace eh_region with | |
1452 | eh_lp_nr, eh_region_offset with eh_map. | |
1453 | * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt. | |
1454 | * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New. | |
1455 | * tree-pretty-print.c (dump_generic_node): Don't handle | |
1456 | EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR. | |
1457 | * tree-sra.c (scan_function): Use maybe_clean_eh_stmt. | |
1458 | * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle | |
1459 | EXC_PTR_EXPR, FILTER_EXPR. | |
1460 | * tree-ssa-operands.c (get_expr_operands): Likewise. | |
1461 | * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise. | |
1462 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise. | |
1463 | (ao_ref_init_from_vn_reference): Likewise. | |
1464 | * tree-ssa-sink.c (statement_sink_location): Likewise. | |
1465 | * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise. | |
1466 | (mark_virtual_phi_result_for_renaming): Export. Tidy. | |
1467 | * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle | |
1468 | EXC_PTR_EXPR, FILTER_EXPR. | |
1469 | (is_exception_related): Remove. | |
1470 | (compute_avail): Don't call it. | |
1471 | * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned. | |
1472 | * tree.c (find_decls_types_in_eh_region): Update for eh_region changes. | |
1473 | (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN. | |
1474 | (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter. | |
1475 | Build EH builtins. | |
1476 | (build_resx): Remove. | |
1477 | * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove. | |
1478 | * tree.h: Update declarations. | |
1479 | (EH_FILTER_MUST_NOT_THROW): Remove. | |
1480 | (struct tree_label_decl): Add eh_landing_pad_nr. | |
1481 | (EH_LANDING_PAD_NR): New. | |
1482 | * value-prof.c (gimple_ic): Tidy variable names. Update for | |
1483 | landing pad numbers. | |
1484 | (gimple_stringop_fixed_value): Tidy variable names. Assert | |
1485 | that neither call stmt can throw. | |
1486 | * vecprim.h (uchar): New. | |
1487 | (VEC(uchar,heap), VEC(uchar,gc)): New. | |
1488 | ||
1489 | * c-common.c (c_define_builtins): Update call to | |
1490 | build_common_builtin_nodes. | |
1491 | * c-parser.c (c_parse_file): Don't call | |
1492 | default_init_unwind_resume_libfunc. | |
1493 | ||
0c433c31 RS |
1494 | 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com> |
1495 | ||
1496 | * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare. | |
1497 | (mips_cprestore_address_p): Likewise. | |
1498 | (mips_save_gp_to_cprestore_slot): Likewise. | |
1499 | (mips_restore_gp): Rename to... | |
1500 | (mips_restore_gp_from_cprestore_slot): ...this. | |
1501 | (mips_must_initialize_gp_p): Declare. | |
1502 | (mips_emit_save_slot_move): Likewise. | |
1503 | (mips_output_load_label): Return nothing. | |
1504 | (mips_eh_uses): Declare. | |
1505 | * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed. | |
1506 | (TARGET_CPRESTORE_DIRECTIVE): New macro. | |
1507 | (TARGET_ABSOLUTE_JUMPS): Likewise. | |
1508 | (EH_USES): Likewise. | |
1509 | (FIRST_PSEUDO_REGISTER): Update comment. | |
1510 | (MIPS_ABSOLUTE_JUMP): New macro, extracted from... | |
1511 | (MIPS_CALL): ...here. | |
1512 | (REGISTER_NAMES): Add $cprestore. | |
1513 | * config/mips/mips.c (machine_function): Remove has_gp_insn_p. | |
1514 | Add load_label_length, has_inflexible_gp_insn_p, | |
1515 | has_flexible_gp_insn_p, must_initialize_gp_p and | |
1516 | must_restore_gp_when_clobbered_p. | |
1517 | (mips_expand_call): Don't generate split instructions here. | |
1518 | (mips_split_call): Update the call to mips_restore_gp after | |
1519 | the above name change. | |
1520 | (mips16_cfun_returns_in_fpr_p): Move earlier in file. | |
1521 | (mips_find_gp_ref): New function. | |
1522 | (mips_insn_has_inflexible_gp_ref_p): Likewise. | |
1523 | (mips_cfun_has_inflexible_gp_ref_p): Likewise. | |
1524 | (mips_insn_has_flexible_gp_ref_p): Likewise. | |
1525 | (mips_cfun_has_flexible_gp_ref_p): Likewise. | |
1526 | (mips_function_has_gp_insn): Delete. | |
1527 | (mips_global_pointer): Drop the df_regs_ever_live_p check. | |
1528 | Use the new functions above. Only return INVALID_REGNUM | |
1529 | for TARGET_ABSOLUTE_JUMPS. | |
1530 | (mips_must_initialize_gp_p): New function. | |
1531 | (mips_get_cprestore_base_and_offset): New function, extracted from... | |
1532 | (mips_cprestore_slot): ...here. Take a bool parameter. | |
1533 | (mips_cfun_has_cprestore_slot_p): New function. | |
1534 | (mips_cprestore_address_p): Likewise. | |
1535 | (mips_save_gp_to_cprestore_slot): Likewise. | |
1536 | (mips_restore_gp): Rename to... | |
1537 | (mips_restore_gp_from_cprestore_slot): ...this. Assert | |
1538 | epilogue_completed. Update the call to mips_cprestore_slot. | |
1539 | Test cfun->machine->must_restore_gp_when_clobbered_p. | |
1540 | (mips_direct_save_slot_move_p): New function. | |
1541 | (mips_emit_save_slot_move): Likewise. | |
1542 | (mips_output_cplocal): Test mips_must_initialize_gp_p () instead | |
1543 | of cfun->machine->global_pointer. | |
1544 | (mips_output_function_prologue): Check mips_must_initialize_gp_p (). | |
1545 | (mips_save_reg): Use mips_emit_save_slot_move. | |
1546 | (mips_expand_prologue): Set must_initialize_gp_p. | |
1547 | Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore | |
1548 | for all cprestore saves. Emit a use_cprestore instruction after | |
1549 | setting up the cprestore slot. | |
1550 | (mips_restore_reg): Use mips_emit_save_slot_move. | |
1551 | (mips_process_load_label): New function. | |
1552 | (mips_load_label_length): Likewise. | |
1553 | (mips_output_load_label): Don't return asm: output it here instead. | |
1554 | Use mips_process_load_label. | |
1555 | (mips_adjust_insn_length): Adjust the length of branch instructions | |
1556 | that have length MAX_PIC_BRANCH_LENGTH. | |
1557 | (mips_output_conditional_branch): Update the call to | |
1558 | mips_output_load_label. Assume the branch target is OPERANDS[0] | |
1559 | rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps. | |
1560 | (mips_output_order_conditional_branch): Swap the meaning of | |
1561 | OPERANDS[0] and OPERANDS[1]. | |
1562 | (mips_variable_issue): Don't count ghost instructions. | |
1563 | (mips_expand_ghost_gp_insns): New function. | |
1564 | (mips_reorg): Rerun mips_reorg_process_insns if it returns true. | |
1565 | (mips_output_mi_thunk): Set must_initialize_gp_p. | |
1566 | (mips_eh_uses): New function. | |
1567 | * config/mips/predicates.md (cprestore_save_slot_operand) | |
1568 | (cprestore_load_slot_operand): New predicates. | |
1569 | * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec. | |
1570 | (UNSPEC_MOVE_GP): Likewise. | |
1571 | (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN) | |
1572 | (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room. | |
1573 | (CPRESTORE_SLOT_REGNUM): New register. | |
1574 | (MAX_PIC_BRANCH_LENGTH): New constant. | |
1575 | (jal_macro): Use MIPS_ABSOLUTE_JUMPS. | |
1576 | (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long | |
1577 | branches. Fix commentary. | |
1578 | (loadgp_newabi_<mode>): Change from unspec_volatile to unspec. | |
1579 | Only split if mips_must_initialize_gp_p; expand to nothing otherwise. | |
1580 | Change type to "ghost". | |
1581 | (loadgp_absolute_<mode>): Likewise. | |
1582 | (loadgp_rtp_<mode>): Likewise. | |
1583 | (copygp_mips16): Likewise. | |
1584 | (loadgp_blockage): Remove redundant mode attribute. | |
1585 | (potential_cprestore): New instruction. | |
1586 | (cprestore): Turn into an unspec set. | |
1587 | (use_cprestore): New instruction. | |
1588 | (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute. | |
1589 | (*branch_fp_inverted): Likewise. | |
1590 | (*branch_order<mode>): Likewise. | |
1591 | (*branch_order<mode>_inverted): Likewise. | |
1592 | (*branch_equality<mode>): Likewise. | |
1593 | (*branch_equality<mode>_inverted): Likewise. | |
1594 | (*branch_bit<bbv><mode>): Likewise. | |
1595 | (*branch_bit<bbv><mode>_inverted): Likewise. | |
1596 | (*branch_equality<mode>_mips16): Remove redundant mode. | |
1597 | (jump): Turn into a define_expand. | |
1598 | (*jump_absolute): New instruction. | |
1599 | (*jump_pic): Likewise. | |
1600 | (*jump_mips16): Rename previously-unnamed pattern. Remove | |
1601 | redundant mode attribute. | |
1602 | (restore_gp): Split on epilogue_completed rather than | |
1603 | reload_completed. Change type to "ghost". | |
1604 | (move_gp<mode>): New instruction. | |
1605 | * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1. | |
1606 | Remove redundant mode attribute. | |
1607 | * config/mips/mips-ps-3d.md (bc1any4t): Likewise. | |
1608 | (bc1any4f, bc1any2t, bc1any2f): Likewise. | |
1609 | (*branch_upper_lower, *branch_upper_lower_inverted): Likewise. | |
1610 | ||
5910fb59 MM |
1611 | 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
1612 | ||
1613 | PR target/41210 | |
1614 | * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI | |
1615 | are returned in the same register (vs34 or v2) that Altivec vector | |
1616 | types are returned in. | |
1617 | (rs6000_libcall_value): Ditto. | |
1618 | ||
1619 | PR target/41331 | |
1620 | * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn | |
1621 | instead of explicit addsi3/adddi3 calls. | |
1622 | (rs6000_split_multireg_move): Ditto. | |
1623 | (rs6000_emit_allocate_stack): Ditto. | |
1624 | (rs6000_emit_prologue): Ditto. | |
1625 | (rs6000_output_mi_thunk): Ditto. | |
1626 | ||
1627 | * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer | |
1628 | size is 64 bits if we can use 64-bit registers. | |
1629 | ||
49caeea1 BS |
1630 | 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com> |
1631 | ||
1632 | * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak | |
1633 | symbols. | |
1634 | ||
8be6ada8 BS |
1635 | From Jie Zhang <jie.zhang@analog.com>: |
1636 | * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to | |
1637 | save FP and RETS with saveall attribute. | |
1638 | (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS | |
1639 | with saveall attribute. | |
1640 | ||
6c1c1dfa BS |
1641 | * config/bfin/bfin.c (bfin_expand_builtin, |
1642 | case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the | |
1643 | operands. | |
6dac2e8e | 1644 | |
6c1c1dfa BS |
1645 | From Jie Zhang <jie.zhang@analog.com>: |
1646 | * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes | |
1647 | before use in two places. | |
1648 | * config/bfin/bfin.md (AREG): Define mode iterator. | |
1649 | (reload_in, reload_out): Use mode iterator AREG. | |
1650 | ||
cdb4dde5 RG |
1651 | 2009-09-14 Richard Guenther <rguenther@suse.de> |
1652 | ||
1653 | PR middle-end/41350 | |
1654 | * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm | |
1655 | EH personality path. | |
1656 | ||
f9417da1 | 1657 | 2009-09-13 Richard Guenther <rguenther@suse.de> |
6dac2e8e | 1658 | Rafael Avila de Espindola <espindola@google.com> |
f9417da1 RG |
1659 | |
1660 | * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define. | |
1661 | (LANG_HOOKS_EH_PERSONALITY): Likewise. | |
1662 | (LANG_HOOKS_INITIALIZER): Adjust. | |
1663 | (lhd_pass_through_t): Declare. | |
1664 | * langhooks.h (struct lang_hooks): Add eh_runtime_type and | |
1665 | eh_personality. | |
1666 | * langhooks.c (lhd_pass_through_t): New function. | |
6dac2e8e | 1667 | * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc, |
f9417da1 | 1668 | dwarf2out_begin_prologue): Use personality from current_function_decl. |
6dac2e8e | 1669 | * expr.h (get_personality_function): Declare. |
f9417da1 RG |
1670 | * expr.c (get_personality_function): New function. |
1671 | (build_personality_function): Likewise. | |
6dac2e8e UB |
1672 | * libfuncs.h (libfunc_index): Remove LTI_eh_personality. |
1673 | (eh_personality_libfunc): Remove. | |
1674 | * optabs.c (build_libfunc_function): New function split out from ... | |
f9417da1 | 1675 | (init_one_libfunc): ... here. |
6dac2e8e UB |
1676 | * tree.h (DECL_FUNCTION_PERSONALITY): New. |
1677 | (tree_function_decl): Add personality. | |
f9417da1 RG |
1678 | (lhd_gcc_personality): Declare. |
1679 | (build_personality_function): Likewise. | |
1680 | * tree.c (gcc_eh_personality_decl): New. | |
1681 | (lhd_gcc_personality): New function. | |
1682 | * except.h (lang_eh_runtime_type): Remove. | |
1683 | (enum eh_personality_kind): New. | |
1684 | (build_personality_function): Declare. | |
1685 | (function_needs_eh_personality): Declare. | |
6dac2e8e | 1686 | * except.c (lang_eh_runtime_type): Remove. |
f9417da1 RG |
1687 | (function_needs_eh_personality): New function. |
1688 | (add_type_for_runtime): Call lang_hooks.type_for_runtime instead. | |
6dac2e8e UB |
1689 | (sjlj_emit_function_enter, output_function_exception_table): |
1690 | Use personality from current_function_decl. | |
f9417da1 RG |
1691 | * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY. |
1692 | * tree-inline.c (tree_can_inline_p): Do not inline across different | |
1693 | EH personalities. | |
1694 | (expand_call_inline): Likewise. Adjust the callers EH personality. | |
1695 | (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY. | |
1696 | * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY. | |
1697 | * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency. | |
1698 | (c-parser.o): Likewise | |
1699 | * c-tree.h (c_eh_initialized_p): Remove. | |
1700 | (c_maybe_initialize_eh): Likewise. | |
1701 | * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh. | |
1702 | (finish_decl): Don't call c_maybe_initialize_eh. | |
1703 | (c_eh_initialized_p): Remove. | |
1704 | (c_maybe_initialize_eh): Likewise. | |
6dac2e8e | 1705 | * c-parser.c (c_parser_omp_construct): Likewise. |
f9417da1 RG |
1706 | (c_parse_file): Initialize exception handling. |
1707 | ||
933608b7 KT |
1708 | 2009-09-13 Kai Tietz <kai.tietz@onevision.com> |
1709 | ||
1710 | * config.gcc (tm_file): Remove i386/biarch32.h | |
1711 | for i?86-w64-mingw* case. | |
1712 | (i?86-*-mingw* andx86_64-*-mingw*): Add multilib | |
1713 | support. | |
22f34504 KT |
1714 | * config.host: Set for x64 mingw the option |
1715 | use_long_long_for_widest_fast_int to yes. | |
933608b7 | 1716 | |
725730f2 EB |
1717 | 2009-09-13 Eric Botcazou <ebotcazou@adacore.com> |
1718 | ||
1719 | * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL. | |
1720 | * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P. | |
1721 | (dbxout_begin_function): Likewise. | |
1722 | * final.c (dwarf2_debug_info_emitted_p): New predicate. | |
1723 | (final_start_function): Do not emit debug info if DECL_IGNORED_P is | |
1724 | set on the function. | |
1725 | (final_end_function): Likewise. | |
1726 | (final_scan_insn): Likewise. | |
1727 | (rest_of_handle_final): Likewise. | |
1728 | * varasm.c (assemble_start_function): Likewise. | |
1729 | * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise. | |
1730 | ||
1731 | 2009-09-12 Jason Merrill <jason@redhat.com> | |
86373e7e JM |
1732 | |
1733 | * dbgcnt.c (dbg_cnt_process_single_pair): constify. | |
1734 | * opts.c (common_handle_option): constify. | |
1735 | ||
8ff51917 GP |
1736 | 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com> |
1737 | ||
beb1adc1 GP |
1738 | * doc/install.texi (avr): Remove obsolete reference site. |
1739 | ||
1740 | 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com> | |
1741 | ||
8ff51917 GP |
1742 | * doc/install.texi (Binaries): Adjust AIX link. |
1743 | ||
460ba396 AD |
1744 | 2009-09-12 Akim Demaille <demaille@gostai.com> |
1745 | ||
1746 | * doc/invoke.texi (-fstrict-aliasing): Correct two examples. | |
1747 | Use an imperative sentence. | |
1748 | ||
f2c4a81c RH |
1749 | 2009-09-11 Richard Henderson <rth@redhat.com> |
1750 | ||
1751 | * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add | |
1752 | structure-name and has-tree-operands arguments; update all entries. | |
1753 | * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol; | |
1754 | update all entries. | |
1755 | * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument. | |
1756 | (gsstruct_code_size): New. | |
1757 | (gss_for_code_): New. | |
1758 | (gss_for_code): Remove. | |
1759 | (gimple_size): Rewrite using gsstruct_code_size. | |
1760 | (gimple_statement_structure): Move to gimple.h. | |
1761 | * gimple.h (gimple_ops_offset_, gss_for_code_): Declare. | |
1762 | (gss_for_code, gimple_statement_structure): New. | |
1763 | (gimple_ops): Use new arrays; tidy. | |
1764 | ||
85ed9a33 JDA |
1765 | 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
1766 | ||
1767 | * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic | |
1768 | operand to be a PLUS expression. | |
1769 | * config/pa/pa.c (pa_secondary_reload): Likewise. | |
1770 | ||
137a05d3 JJ |
1771 | 2009-09-11 Jakub Jelinek <jakub@redhat.com> |
1772 | ||
9258b4c1 JJ |
1773 | * combine.c (propagate_for_debug_subst): Call wrap_constant on top. |
1774 | ||
137a05d3 JJ |
1775 | * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of |
1776 | XEXP (in_rtx, 8). | |
1777 | ||
603bb63e BS |
1778 | 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com> |
1779 | ||
1780 | From Jie Zhang <jie.zhang@analog.com>: | |
1781 | * doc/extend.texi (node Function Attributes): Document l2 | |
1782 | function attribute. | |
1783 | (node Blackfin Variable Attributes): Document l2 variable attributes. | |
1784 | ||
8a47c6c4 LR |
1785 | 2009-09-11 Loren J. Rittle <ljrittle@acm.org> |
1786 | ||
1787 | * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit | |
1788 | to match the system compiler's configuration at inflection point. | |
1789 | Add comment to remark a remaining difference with system compiler. | |
1790 | ||
61e1d511 LR |
1791 | * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail. |
1792 | * configure: Regenerate. | |
1793 | ||
db689ed6 BS |
1794 | 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com> |
1795 | ||
1796 | From Jie Zhang <jie.zhang@analog.com>: | |
1797 | * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions. | |
1798 | (bfin_handle_l2_attribute): New. | |
1799 | (bfin_attribute_table): Add l2 attribute. | |
1800 | ||
5c3ec539 MM |
1801 | 2009-09-11 Michael Matz <matz@suse.de> |
1802 | ||
1803 | PR middle-end/41275 | |
1804 | * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls | |
1805 | on the local_decls list. | |
1806 | ||
0b7e34d7 AO |
1807 | 2009-09-11 Alexandre Oliva <aoliva@redhat.com> |
1808 | ||
1809 | PR debug/41276 | |
1810 | PR debug/41307 | |
1811 | * cselib.c (cselib_expand_value_rtx_cb): Document callback | |
1812 | interface. | |
1813 | (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust | |
1814 | for VALUEs, to implement the documented interface. | |
1815 | * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs. | |
1816 | Adjust for VALUEs and anything else, to implement the | |
1817 | documented interface. | |
1818 | ||
b851135c NF |
1819 | 2009-09-10 Nathan Froyd <froydnj@codesourcery.com> |
1820 | ||
1821 | * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing | |
1822 | with actual SPE/paired vector modes before using 64-bit alignment. | |
1823 | Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE. | |
1824 | ||
5ba863d7 DD |
1825 | 2009-09-10 DJ Delorie <dj@redhat.com> |
1826 | ||
1827 | * config/mep/mep.md (eh_epilogue): Defer until after epilogue is | |
1828 | emitted. | |
1829 | ||
1830 | * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New. | |
1831 | * config/mep/mep.c (mep_legitimate_constant_p): New. | |
1832 | * config/mep/mep-protos.h: Prototype it. | |
1833 | ||
68bcdeed RH |
1834 | 2009-09-10 Richard Henderson <rth@redhat.com> |
1835 | ||
1836 | * print-rtl.c (print_rtx): Fix JUMP_LABEL index. | |
1837 | ||
ad42ff1e JM |
1838 | 2009-09-10 Jason Merrill <jason@redhat.com> |
1839 | ||
1840 | * tree.c (chain_index): New fn. | |
1841 | * tree.h: Declare it. | |
1842 | ||
0e6748ab RO |
1843 | 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1844 | ||
1845 | * config/sol2-c.c (cmn_err_length_specs): Initialize | |
1846 | scalar_identity_flag. | |
1847 | ||
671f9f30 RH |
1848 | 2009-09-10 Richard Henderson <rth@redhat.com> |
1849 | ||
b6777fea RH |
1850 | * tree.h (struct tree_decl_common): Move align member earlier; |
1851 | move label_decl_uid member ... | |
1852 | (struct tree_label_decl): ... here. | |
1853 | (LABEL_DECL_UID): Update to match. | |
1854 | ||
feb4e5ba RH |
1855 | * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH, |
1856 | not TDF_DETAILS. | |
1857 | ||
1c061be5 RH |
1858 | * tree-cfg.c (gimple_redirect_edge_and_branch): Do |
1859 | gimple_try_redirect_by_replacing_jump test after no-op and EH tests. | |
1860 | ||
88e24a5a RH |
1861 | * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at |
1862 | dest_prev if the edge is complex. | |
1863 | ||
40a32862 RH |
1864 | * tree-cfg.c (is_ctrl_stmt): Use a switch. |
1865 | ||
8e7c5fdd RH |
1866 | * tree-cfg.c (gimple_can_merge_blocks_p): Move label and |
1867 | loop latch tests earlier. | |
1868 | ||
07c358c6 RH |
1869 | * gimple-iterator.c (gimple_find_edge_insert_loc): Insert |
1870 | before GIMPLE_RETURN, not after its predecessor; insert | |
1871 | before GIMPLE_RESX. | |
1872 | ||
671f9f30 RH |
1873 | * gimple-iterator.c (gimple_find_edge_insert_loc): Use |
1874 | gimple_seq_empty_p to test for no PHI nodes. | |
1875 | * tree-cfg.c (split_critical_edges): Likewise. | |
1876 | ||
15a15e8d RH |
1877 | * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify. |
1878 | ||
f90f4827 HS |
1879 | 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com> |
1880 | ||
1881 | * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions | |
6dac2e8e | 1882 | introduced by the VTA branch merge. |
f90f4827 | 1883 | |
edb30094 UB |
1884 | 2009-09-10 Uros Bizjak <ubizjak@gmail.com> |
1885 | ||
1886 | * ira-conflicts.c: Use fputs or putc instead of fprintf | |
1887 | where appropriate. | |
1888 | * cfg.c: Ditto. | |
1889 | * toplev.c: Ditto. | |
1890 | * tree-switch-conversion.c: Ditto. | |
1891 | ||
1892 | 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com> | |
f3d9e91b HS |
1893 | |
1894 | * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions | |
6dac2e8e | 1895 | introduced by the VTA branch merge. |
f3d9e91b | 1896 | |
edb30094 | 1897 | 2009-09-10 Uros Bizjak <ubizjak@gmail.com> |
3a3d54f2 UB |
1898 | |
1899 | Revert: | |
1900 | 2009-09-09 Uros Bizjak <ubizjak@gmail.com> | |
1901 | ||
1902 | PR rtl-optimization/39779 | |
1903 | * expr.c (convert_modes): Return when mode == oldmode after | |
1904 | CONST_INTs are processed. | |
1905 | ||
1c6679e2 NC |
1906 | 2009-09-10 Nick Clifton <nickc@redhat.com> |
1907 | ||
1908 | * config/mep/mep.c (mep_encode_section_info): Copy weakness | |
1909 | attribute and referring decl when creating renamed symbol. | |
1910 | ||
90097c67 RG |
1911 | 2009-09-10 Richard Guenther <rguenther@suse.de> |
1912 | ||
1913 | PR middle-end/41257 | |
1914 | * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for | |
1915 | reachable nodes. | |
1916 | (cgraph_finalize_compilation_unit): Compute reachability | |
1917 | before emitting thunks. Properly process aliases before | |
1918 | possibly removing unreachable nodes. | |
1919 | ||
c7a3980a RG |
1920 | 2009-09-10 Richard Guenther <rguenther@suse.de> |
1921 | ||
1922 | PR middle-end/41254 | |
1923 | * tree.c (struct free_lang_data_d): Add worklist member. | |
1924 | (find_decls_types_r): Push onto the worklist instead of recursing. | |
1925 | Handle TREE_BINFOs properly. | |
1926 | (find_decls_types): New function wrapped around find_decls_types_r | |
1927 | to process the worklist. | |
1928 | (find_decls_types_in_eh_region): Use it. | |
1929 | (find_decls_types_in_node): Likewise. | |
1930 | (find_decls_types_in_var): Likewise. | |
1931 | (free_lang_data_in_cgraph): Likewise. Free the worklist. | |
1932 | * tree.h (RECORD_OR_UNION_TYPE_P): New. | |
1933 | (AGGREGATE_TYPE_P): Adjust. | |
1934 | ||
e00ded68 JM |
1935 | 2009-09-09 Jason Merrill <jason@redhat.com> |
1936 | ||
1937 | * configure.ac: Check glibc version even if we have an in-tree | |
1938 | assembler. | |
1939 | ||
75cd1c8f AG |
1940 | 2009-09-09 Anthony Green <green@moxielogic.com> |
1941 | ||
1942 | * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load | |
1943 | the constant 0 when appropriate. | |
1944 | * config/moxie/constraints.md: Add constraint O. | |
1945 | ||
1946 | * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust | |
1947 | to pass up to 6 32-bit argument values in registers. | |
1948 | (moxie_function_arg): Ditto. | |
1949 | (moxie_arg_partial_bytes): Ditto. | |
1950 | * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto. | |
1951 | (REG_PARM_STACK_SPACE): Ditto. | |
1952 | (FUNCTION_ARG_REGNO_P): Ditto. | |
1953 | ||
1954 | * config/moxie/moxie.c (moxie_expand_prologue): Use dec | |
1955 | instruction to allocate stack space. | |
1956 | ||
93fbf857 SB |
1957 | 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org> |
1958 | ||
1959 | * config/rs6000/rs6000.md (bswapdi2_64bit): Fix | |
1960 | unnecessarily stringent constraints. Fix address | |
1961 | calculation in the splitters. | |
1962 | ||
ed9d5a4a UB |
1963 | 2009-09-09 Uros Bizjak <ubizjak@gmail.com> |
1964 | ||
1965 | PR rtl-optimization/39779 | |
1966 | * expr.c (convert_modes): Return when mode == oldmode after | |
1967 | CONST_INTs are processed. | |
1968 | ||
3d887721 KT |
1969 | 2009-09-09 Kai Tietz <kai.tietz@onevision.com> |
1970 | ||
1971 | PR/41315 | |
ed9d5a4a | 1972 | * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too. |
3d887721 KT |
1973 | (ix86_expand_prologue): Take frame.padding0 into logic of |
1974 | to_allocate checks. | |
1975 | (ix86_expand_epilogue): Likewise. | |
1976 | ||
80a76d1d JJ |
1977 | 2009-09-09 Jakub Jelinek <jakub@redhat.com> |
1978 | ||
1979 | * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK): | |
1980 | New variables. | |
1981 | (SHLIB_LINK, SHLIB_INSTALL): Use them. | |
1982 | * config/t-slibgcc-libgcc: New file. | |
1983 | * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it. | |
1984 | ||
ca1bb752 MJ |
1985 | 2009-09-09 Martin Jambor <mjambor@suse.cz> |
1986 | ||
1987 | PR tree-optimization/41089 | |
1988 | * tree-sra.c (find_var_candidates): Do not consider va_lists in | |
1989 | early SRA. | |
1990 | ||
8b9db065 RH |
1991 | 2009-09-09 Richard Henderson <rth@redhat.com> |
1992 | ||
1993 | * gimple.h (CASE_GIMPLE_OMP): New. | |
1994 | (is_gimple_omp): Use it. | |
1995 | * tree-cfg.c (is_ctrl_altering_stmt): Likewise. | |
1996 | (verify_gimple_debug): Likewise. | |
1997 | ||
70a6b17e RG |
1998 | 2009-09-09 Richard Guenther <rguenther@suse.de> |
1999 | ||
2000 | PR tree-optimization/41101 | |
2001 | * tree-ssa-pre.c (maximal_set): Remove. | |
2002 | (compute_antic_aux): Treat the maximal set as implicitly all ones. | |
2003 | Defer all blocks we didn't visit at least one successor. | |
2004 | (add_to_exp_gen): Do not add to the maximal set. | |
2005 | (make_values_for_phi): Likewise. | |
2006 | (compute_avail): Likewise. | |
2007 | (init_pre): Do not allocate the maximal set. | |
2008 | (execute_pre): Do not dump it. | |
2009 | ||
7648edc4 MJ |
2010 | 2009-09-09 Martin Jambor <mjambor@suse.cz> |
2011 | ||
2012 | * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is | |
2013 | an SSA_NAME rather than a is_gimple_variable. | |
2014 | ||
5a4b005f RG |
2015 | 2009-09-09 Richard Guenther <rguenther@suse.de> |
2016 | ||
2017 | PR middle-end/41317 | |
2018 | * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove | |
2019 | code dealing with plain pointer bases. | |
2020 | (maybe_fold_offset_to_reference): Likewise. | |
2021 | (maybe_fold_stmt_addition): Adjust. | |
2022 | ||
ccffb755 RG |
2023 | 2009-09-09 Richard Guenther <rguenther@suse.de> |
2024 | ||
2025 | * tree.c (free_lang_data_in_type): Do not free the type variant | |
2026 | chains. | |
2027 | (free_lang_data): Merge char_type_node with its properly signed | |
2028 | variant. | |
2029 | (pass_ipa_free): Collect after freeing language specific data. | |
2030 | ||
4e18a7d4 MM |
2031 | 2009-09-09 Michael Matz <matz@suse.de> |
2032 | ||
2033 | PR middle-end/41268 | |
2034 | * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing | |
2035 | SUBREG_PROMOTED_UNSIGNED_P, instead of a bool. | |
2036 | * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments | |
2037 | to reflect reality. | |
2038 | ||
5fb455bc DD |
2039 | 2009-09-08 DJ Delorie <dj@redhat.com> |
2040 | ||
2041 | * config/mep/mep.c (conversions[]): Add "ml" pattern. | |
2042 | ||
d5df7223 JM |
2043 | 2009-09-04 Jason Merrill <jason@redhat.com> |
2044 | ||
2045 | * tree.c (tree_find_value): Remove. | |
2046 | * tree.h: Remove prototype. | |
2047 | * varasm.c (assemble_external): Use value_member instead. | |
2048 | ||
6a57e634 AO |
2049 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2050 | ||
2051 | * toplev.c (process_options): Choose default debugging type when | |
2052 | gtoggle enables debug info and type is unset. | |
2053 | ||
da4a9479 AO |
2054 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2055 | ||
2056 | PR debug/41276 | |
2057 | PR debug/41307 | |
2058 | * cselib.c (cselib_expand_value_rtx_1): Don't return copy of | |
2059 | invalid subreg. | |
2060 | ||
713e2ea6 AO |
2061 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2062 | ||
2063 | * configure: Rebuilt with modified libtool.m4. | |
2064 | ||
91642126 AO |
2065 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2066 | ||
2067 | PR debug/41229 | |
2068 | PR debug/41291 | |
2069 | PR debug/41300 | |
2070 | * tree-ssa.c (execute_update_addresses_taken): Update debug insns. | |
2071 | ||
ae0a4449 AO |
2072 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2073 | ||
2074 | * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove. | |
2075 | (remove_statement): Likewise. | |
2076 | (rewrite_use_nonlinear_expr): Adjust. | |
2077 | (remove_unused_ivs): Collect SSA NAMEs to remove and call... | |
2078 | * tree-ssa.c (release_defs_bitset): ... this. New. | |
2079 | * tree-flow.h (release_defs_bitset): Declare. | |
2080 | ||
21719cea AO |
2081 | 2009-09-08 Alexandre Oliva <aoliva@redhat.com> |
2082 | ||
2083 | PR debug/41232 | |
2084 | * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts | |
2085 | in the middle block. | |
2086 | ||
7c2a2dbf KT |
2087 | 2009-09-08 Kai Tietz <kai.tietz@onevision.com> |
2088 | ||
34c6743c KT |
2089 | * tree-ssa-reassoc.c (find_operand_rank): Cast pointer |
2090 | via intptr_t to long type. | |
2091 | (insert_operand_rank): Cast long type via intptr_t to | |
2092 | pointer type. | |
2093 | * genattrtab.c (RTL_HASH): Use intptr_t to cast from | |
2094 | pointer to scalar. | |
2095 | * c-pretty-print.c (pp_c_tree_decl_identifier): Cast | |
2096 | from pointer to unsigned via uintptr_t. | |
2097 | ||
7c2a2dbf KT |
2098 | * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t, |
2099 | uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T, | |
2100 | and HAVE_INTPTR_T. | |
2101 | * configure: Regenerated. | |
2102 | * config.in: Regenerated | |
2103 | * system.h (stdint.h): Add include. | |
2104 | (inttypes.h): Likewise. | |
2105 | * Makefile.in (aclocal): Add config/stdint.m4. | |
2106 | * aclocal.m4: Regenerated. | |
2107 | ||
8472b255 BS |
2108 | 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com> |
2109 | ||
2110 | * config/bfin/bfin.c (np_check_regno, np_after_branch): New static | |
2111 | variables. | |
2112 | (note_np_check_stores): New function. | |
2113 | (harmless_null_pointer_p): New function. | |
2114 | (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers | |
2115 | changed. Take into account whether we're in the shadow of a condjump | |
2116 | that tested NP_REG for NULL. | |
2117 | Lose all code that tested for SEQUENCEs. | |
2118 | (workaround_speculation): Avoid inserting NOPs for loads that are | |
2119 | either always executed or a NULL pointer. | |
2120 | ||
ac875c2e JH |
2121 | 2009-09-08 Jan Hubicka <jh@suse.cz> |
2122 | ||
2123 | * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8. | |
2124 | * params.def (early-inlining-insns): Likewise. | |
2125 | ||
1098d3a5 JJ |
2126 | 2009-09-08 Jakub Jelinek <jakub@redhat.com> |
2127 | ||
2128 | PR rtl-optimization/41239 | |
2129 | * sched-int.h (struct deps): Add last_function_call_may_noreturn field. | |
2130 | * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn | |
2131 | lists. | |
2132 | * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns | |
2133 | across calls, as the calls might not always return normally. | |
2134 | (call_may_noreturn_p): New function. | |
2135 | (deps_analyze_insn): Update last_function_call_may_noreturn list. | |
2136 | (init_deps): Initialize it. | |
2137 | (remove_from_deps): Also remove calls from | |
2138 | last_function_call_may_noreturn list. | |
2139 | ||
35ecd408 RH |
2140 | 2009-09-07 Richard Henderson <rth@redhat.com> |
2141 | ||
2142 | * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are | |
2143 | more VR->OPERANDS than LHS operands. Free LHS before returning. | |
2144 | ||
c7cb1555 BS |
2145 | 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com> |
2146 | ||
2147 | * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant. | |
2148 | (attr "addrtype"): New member "spreg". | |
2149 | Use it if mem_spfp_address_operand is true for the address. | |
2150 | (attr "type"): New entry "stall". | |
2151 | (cpu_unit "load"): New. | |
2152 | (insn_reservations "load32", "loadp", "loadi"): Add reservation of | |
2153 | "load". | |
2154 | (insn_reservation "loadsp"): New. | |
2155 | (insn_reservation "load_stall1"): New. | |
2156 | (insn_reservation "load_stall3"): New. | |
ed9d5a4a | 2157 | (stall): New insn. |
c7cb1555 BS |
2158 | * config/bfin/predicates.md (const1_operand, const3_operand): New. |
2159 | (mem_p_address_operand): Exclude stack and frame pointer based | |
2160 | addresses. | |
2161 | (mem_spfp_address_operand): New; match them here. | |
2162 | * config/bfin/bfin.c (add_sched_insns_for_speculation): New function. | |
2163 | (bfin_reorg): Call it if scheduling insns. | |
2164 | (bfin_gen_bundles): Remove dummy insns created by | |
2165 | add_sched_insns_for_speculation. | |
2166 | ||
4dce27df BS |
2167 | From Jie Zhang <jie.zhang@analog.com>: |
2168 | * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type, | |
2169 | bfin_si_revision, bfin_workarounds): Move these ... | |
2170 | * config/bfin/bfin.h: ... here. | |
2171 | ||
5254cd50 BS |
2172 | From Mike Frysinger <michael.frysinger@analog.com> |
2173 | * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M, | |
2174 | BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M. | |
ed9d5a4a UB |
2175 | * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m, |
2176 | bf547m, bf548m, and bf549m. | |
5254cd50 | 2177 | * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__ |
ed9d5a4a UB |
2178 | for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M, |
2179 | __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for | |
2180 | BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M. | |
5254cd50 BS |
2181 | * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for |
2182 | bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none. | |
2183 | * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise. | |
2184 | * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise. | |
2185 | * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts | |
2186 | bf542m, bf544m, bf547m, bf548m, and bf549m. | |
2187 | ||
b3187e24 | 2188 | From Jie Zhang <jie.zhang@analog.com>: |
ed9d5a4a | 2189 | * config/bfin/predicates.md (p_register_operand): New predicate. |
b3187e24 BS |
2190 | (dp_register_operand): New predicate. |
2191 | * config/bfin/bfin-protos.h (WA_05000074): Define. | |
2192 | (ENABLE_WA_05000074): Define. | |
ed9d5a4a | 2193 | * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus. |
b3187e24 BS |
2194 | (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0]. |
2195 | * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm. | |
ed9d5a4a | 2196 | (define_attr addrtype): Allow load/store register to be P register. |
b3187e24 BS |
2197 | (define_attr storereg): New. |
2198 | (define_cpu_unit anomaly_05000074): New. | |
2199 | (define_insn_reservation dsp32shiftimm): New. | |
2200 | (define_insn_reservation dsp32shiftimm_anomaly_05000074): New. | |
2201 | (define_insn_reservation loadp): Cannot use slot2. | |
2202 | (define_insn_reservation loadsp): Cannot use slot2. | |
2203 | (define_insn_reservation storep): Cannot use slot2. Does not | |
2204 | apply when working around 05000074. | |
2205 | (define_insn_reservation storep_anomaly_05000074): New. | |
2206 | (define_insn_reservation storei): Does not apply when working | |
2207 | around 05000074. | |
2208 | (define_insn_reservation storei_anomaly_05000074): New. | |
2209 | (define_attr length): Add dsp32shiftimm case. | |
2210 | (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3, | |
2211 | ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low, | |
2212 | movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi, | |
2213 | ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3): | |
2214 | Set type as dsp32shiftimm for dsp32shiftimm alternatives. | |
2215 | ||
4a50e99c MJ |
2216 | 2009-09-07 Martin Jambor <mjambor@suse.cz> |
2217 | ||
2218 | PR middle-end/41282 | |
2219 | * tree-sra.c (create_artificial_child_access): Return NULL if | |
2220 | build_ref_for_offset fails. | |
2221 | (propagate_subacesses_accross_link): Allow build_ref_for_offset | |
2222 | and create_artificial_child_access to fail. | |
2223 | ||
e5b258a4 DG |
2224 | 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com> |
2225 | ||
2226 | PR c++/41214 | |
6dac2e8e | 2227 | * unwind-dw2.c (uw_init_context_1): Mark noinline. |
e5b258a4 DG |
2228 | * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise. |
2229 | * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise. | |
2230 | ||
8ff7f824 BS |
2231 | 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com> |
2232 | ||
2233 | * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic | |
2234 | block, ensure it has an exit edge. Emit a barrier after a jump. | |
2235 | ||
3beb864c NC |
2236 | 2009-09-07 Nick Clifton <nickc@redhat.com> |
2237 | ||
2238 | * gcc.c (this_is_linker_script): New variable. Like | |
2239 | this_is_library_file but for the %T constructor. | |
2240 | (end_going_arg): If this_is_linker_script is set then locate the | |
2241 | script and insert a --script switch before it | |
6dac2e8e UB |
2242 | (do_spec_2): Initialise this_is_linker_script. |
2243 | (do_spec_1): Likewise. Handle %T construct. | |
2244 | (eval_spec_function): Preserve this_is_linker_script. | |
3beb864c NC |
2245 | * doc/invoke.texi: Document %T construct in spec files. |
2246 | * config/m32c/m32c.h (LIB_SPEC): Use it. | |
2247 | ||
3fce100b AK |
2248 | 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
2249 | ||
ed9d5a4a | 2250 | * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro. |
3fce100b AK |
2251 | * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier |
2252 | when volatile flag is set. | |
2253 | * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces. | |
2254 | ||
1362aa31 EB |
2255 | 2009-09-06 Eric Botcazou <ebotcazou@adacore.com> |
2256 | ||
2257 | PR bootstrap/41241 | |
2258 | * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores. | |
2259 | (combine_stack_adjustments_for_block): Allow insns between stack | |
7717df30 EB |
2260 | adjustments and stores with corresponding pre-(dec|inc)rement or |
2261 | pre-modify operation. | |
1362aa31 | 2262 | |
90588a10 JJ |
2263 | 2009-09-06 Jakub Jelinek <jakub@redhat.com> |
2264 | ||
2265 | PR bootstrap/41241 | |
2266 | * combine-stack-adj.c (struct csa_memlist): Rename to... | |
2267 | (struct csa_reflist): ... this. Rename mem field to ref. | |
2268 | (free_csa_memlist): Rename to... | |
2269 | (free_csa_reflist): ... this. | |
2270 | (record_one_stack_memref): Rename to... | |
2271 | (record_one_stack_ref): ... this. Handle also REG_P. | |
2272 | (try_apply_stack_adjustment): Handle also REG_P. | |
2273 | (struct record_stack_memrefs_data): Rename to... | |
2274 | (struct record_stack_refs_data): ... this. Rename memlist field to | |
2275 | reflist. | |
2276 | (record_stack_memrefs): Rename to... | |
2277 | (record_stack_refs): ... this. For DEBUG_INSNs keep traversing | |
2278 | subexpressions instead of failing when a MEM contains SP references. | |
2279 | For SP itself in DEBUG_INSNs queue it also onto reflist chain. | |
2280 | (combine_stack_adjustments_for_block): Adjust for mem to ref renaming. | |
2281 | ||
3797a0ff RG |
2282 | 2009-09-06 Richard Guenther <rguenther@suse.de> |
2283 | ||
2284 | PR middle-end/41144 | |
2285 | * tree.c (build_array_type): Do not record types marked | |
2286 | with structural equality in the canonical type hashtable. | |
2287 | ||
3c45b96b RG |
2288 | 2009-09-06 Richard Guenther <rguenther@suse.de> |
2289 | ||
2290 | PR middle-end/41261 | |
2291 | * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls. | |
2292 | ||
6a129567 RG |
2293 | 2009-09-05 Richard Guenther <rguenther@suse.de> |
2294 | ||
2295 | PR middle-end/41181 | |
2296 | * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type. | |
2297 | ||
432b4b31 RG |
2298 | 2009-09-05 Richard Guenther <rguenther@suse.de> |
2299 | ||
2300 | PR debug/41273 | |
2301 | * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops. | |
2302 | ||
575140c2 RG |
2303 | 2009-09-05 Richard Guenther <rguenther@suse.de> |
2304 | ||
2305 | PR middle-end/41271 | |
2306 | * tree-ssa.c (useless_type_conversion_p): Drop qualifiers | |
2307 | before comparing function argument types. | |
2308 | ||
896237cd FXC |
2309 | 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
2310 | ||
2311 | PR target/41024 | |
2312 | * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to | |
2313 | the assembler. | |
2314 | ||
e139ab34 UB |
2315 | 2009-09-04 Uros Bizjak <ubizjak@gmail.com> |
2316 | ||
2317 | Revert: | |
2318 | 2009-08-18 Uros Bizjak <ubizjak@gmail.com> | |
2319 | ||
2320 | * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn | |
2321 | locators before emit_insn is called. | |
2322 | ||
1fe28116 VM |
2323 | 2009-09-04 Vladimir Makarov <vmakarov@redhat.com> |
2324 | ||
2325 | PR bootstrap/41241 | |
2326 | * ira.c (update_equiv_reg): Revert my previous patch for the PR. | |
2327 | * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary. | |
2328 | (reginfo_init): Don't call allocate_reg_info. | |
2329 | ||
14e58be0 UB |
2330 | 2009-09-04 Uros Bizjak <ubizjak@gmail.com> |
2331 | ||
2332 | PR target/41262 | |
2333 | * config/alpha/alpha.c (alpha_does_function_need_gp): Use | |
2334 | NONDEBUG_INSN_P instead of INSN_P. | |
2335 | ||
3157b0c2 AO |
2336 | 2009-09-04 Alexandre Oliva <aoliva@redhat.com> |
2337 | ||
2338 | PR debug/41225 | |
2339 | * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses. | |
2340 | ||
510bc854 AO |
2341 | 2009-09-04 Alexandre Oliva <aoliva@redhat.com> |
2342 | ||
2343 | PR target/41252 | |
2344 | * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second | |
2345 | pattern of the split. | |
2346 | ||
6751b6f6 AO |
2347 | 2009-09-04 Alexandre Oliva <aoliva@redhat.com> |
2348 | ||
2349 | * toplev.c (process_options): Move setter of flag_var_tracking | |
2350 | before other tests that depend on it. Move down setter of | |
2351 | flag_rename_registers. Don't enable var-tracking-assignments | |
2352 | by default if selective scheduling is enabled. Warn if both | |
2353 | are enabled. | |
2354 | ||
24277d34 AO |
2355 | 2009-09-04 Alexandre Oliva <aoliva@redhat.com> |
2356 | ||
2357 | * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match | |
2358 | comment. Use switch statement to catch overlaps between rtx | |
2359 | and tree codes. Accept FUNCTION_DECLs in addition to those in... | |
2360 | (IS_DECL_CODE): ... here. Remove. | |
2361 | (check_value_is_not_decl): Remove. | |
2362 | (dv_from_decl, dv_from_value): Check after conversion. | |
2363 | ||
5f1a9ebb RG |
2364 | 2009-09-04 Richard Guenther <rguenther@suse.de> |
2365 | ||
2366 | PR middle-end/41257 | |
2367 | * (cgraph_finalize_compilation_unit): Move finalizing aliases | |
2368 | after emitting tunks. Move emitting thunks and ctors from ... | |
2369 | (cgraph_optimize): ... here. Remove redundant | |
2370 | cgraph_analyze_functions. | |
2371 | * varasm.c (find_decl_and_mark_needed): Remove no longer | |
2372 | necessary check. | |
2373 | (finish_aliases_1): Adjust check for thunk aliases. | |
2374 | ||
8d142c15 DG |
2375 | 2009-09-04 Daniel Gutson <dgutson@codesourcery.com> |
2376 | ||
2377 | * config/arm/arm.md (ctzsi2): Added braces | |
2378 | to avoid warning that broke booststrap. | |
2379 | ||
22fc64b4 MJ |
2380 | 2009-09-04 Martin Jambor <mjambor@suse.cz> |
2381 | ||
2382 | PR tree-optimization/41112 | |
2383 | * tree-sra.c (build_ref_for_offset_1): Signal that we cannot | |
2384 | handle variable-bounded arrays. | |
2385 | (expr_with_var_bounded_array_refs_p): New function. | |
2386 | (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p. | |
2387 | ||
2cdece44 WG |
2388 | 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com> |
2389 | ||
2390 | * config/s390/2097.md: Removed two incorrect bypasses. | |
2391 | (z10_fsimpdf): Fixed latency. | |
2392 | (z10_fhex): New insn_reservation. | |
2393 | (z10_floaddf): Fixed latency. | |
2394 | (z10_floadsf): Fixed latency. | |
2395 | (z10_ftrunctf): Fixed latency. | |
2396 | (z10_ftruncdf): Fixed latency. | |
2397 | * config/s390/s390.c (z10_cost): Fixed values. | |
2398 | (s390_adjust_priority): Added z10 path. | |
2399 | * config/s390/s390.md (type): Added fhex. | |
2400 | (*mov<mode>_64dfp): Updated type attribute. | |
2401 | (*mov<mode>_64): Updated type attribute. | |
2402 | (*mov<mode>_31): Updated type attribute. | |
2403 | (*mov<mode>"): Likewise. | |
2404 | * config/s390/2084.md (x_fsimpdf): Updated condition. | |
2405 | ||
b09062ee AK |
2406 | 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com> |
2407 | ||
2408 | * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem | |
2409 | RTXs in the predicate for operand 1. | |
2410 | ||
ca96ed43 DG |
2411 | 2009-09-03 Daniel Gutson <dgutson@codesourcery.com> |
2412 | ||
2413 | * config/arm/arm.md (UNSPEC_RBIT): New constant. | |
2414 | (rbitsi2): New insn. | |
2415 | (ctzsi2): New expand. | |
2416 | * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro. | |
2417 | ||
687b5078 MJ |
2418 | 2009-09-03 Martin Jambor <mjambor@suse.cz> |
2419 | ||
2420 | * tree-sra.c (duplicate_expr_for_different_base): Removed. | |
2421 | (create_artificial_child_access): Use build_ref_for_offset instead | |
2422 | of duplicate_expr_for_different_base. | |
2423 | (propagate_subacesses_accross_link): Likewise. | |
14e58be0 | 2424 | |
006b29ab RS |
2425 | 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com> |
2426 | ||
2427 | * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead | |
2428 | of INSN_P. | |
2429 | (mips16e_collect_argument_saves): Skip debug instructions. | |
2430 | (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P. | |
2431 | (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P. | |
2432 | (r10k_insert_cache_barriers): Likewise. | |
2433 | (mips_reorg_process_insns): Likewise. | |
2434 | ||
691571d2 VM |
2435 | 2009-09-03 Vladimir Makarov <vmakarov@redhat.com> |
2436 | ||
2437 | PR bootstrap/41241 | |
2438 | * ira.c (update_equiv_reg): Remove check on class likely spill. | |
2439 | ||
08ab0acf JJ |
2440 | 2009-09-03 Jakub Jelinek <jakub@redhat.com> |
2441 | ||
7d4507cb JJ |
2442 | PR debug/41236 |
2443 | * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on | |
2444 | SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of | |
2445 | it or SUBREG. | |
2446 | ||
08ab0acf JJ |
2447 | PR debug/41238 |
2448 | * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on | |
2449 | the stack slot if it is passed by invisible reference. | |
755d55bb EB |
2450 | * var-tracking.c (vt_add_function_parameters): Handle arguments passed |
2451 | by invisible reference. | |
08ab0acf | 2452 | |
9840d30a BS |
2453 | 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com> |
2454 | ||
2455 | * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1. | |
2456 | * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1. | |
2457 | * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of | |
2458 | 0. | |
2459 | * config/bfin/sync.md: New file. | |
2460 | * config/bfin/bfin.md: Include it. | |
2461 | (UNSPEC_ATOMIC): New. | |
2462 | (UNSPEC_ONES): Provide a unique number. | |
2463 | ||
2464 | From Jie Zhang <jie.zhang@analog.com>: | |
2465 | * config/bfin/bfin.c (ret_regs): New. | |
2466 | (must_save_fp_p): Don't return true because of frame_pointer_needed. | |
2467 | (must_save_rets_p): New. | |
2468 | (n_regs_saved_by_prologue): Use must_save_rets_p instead of | |
2469 | current_function_is_leaf. | |
2470 | (do_link): Likewise. | |
2471 | (do_unlink): Likewise. | |
2472 | (expand_interrupt_handler_prologue): Use ret_regs array. | |
2473 | (expand_interrupt_handler_epilogue): Use ret_regs array and | |
2474 | pass return register to gen_return_internal. | |
2475 | (bfin_expand_epilogue): Pass return register to | |
2476 | gen_return_internal. | |
2477 | (bfin_expand_call): Explicitly clobber RETS. | |
2478 | * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define. | |
2479 | * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic, | |
2480 | call_insn_fdpic, call_value_insn_fdpic, call_symbol, | |
2481 | call_value_symbol, call_insn, call_value_insn): Explicitly clobber | |
2482 | RETS. | |
2483 | (return_internal): Take a reg rtx rather than the register number. | |
2484 | ||
8e094aa2 L |
2485 | 2009-09-03 H.J. Lu <hongjiu.lu@intel.com> |
2486 | ||
2487 | * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT | |
2488 | when comparing against estimated_loop_iterations_int return. | |
2489 | ||
e20c9328 RG |
2490 | 2009-09-03 Richard Guenther <rguenther@suse.de> |
2491 | ||
2492 | * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of | |
2493 | eh_personality_libfunc. | |
2494 | ||
c9630c40 RL |
2495 | 2009-09-03 Razya Ladelsky <razya@il.ibm.com> |
2496 | ||
2497 | * tree-parloops.c (separate_decls_in_region): Add space. | |
14e58be0 | 2498 | |
e7df16a5 RL |
2499 | 2009-09-03 Razya Ladelsky <razya@il.ibm.com> |
2500 | ||
14e58be0 | 2501 | * tree-parloops.c (separate_decls_in_region): Change the condition |
e7df16a5 RL |
2502 | checking if there are reductions in the loop. |
2503 | ||
785aa2a7 RL |
2504 | 2009-09-03 Razya Ladelsky <razya@il.ibm.com> |
2505 | ||
2506 | PR tree-optimization/38275 | |
14e58be0 | 2507 | * tree-parloops.c (parallelize_loops): Replace profitability condition |
785aa2a7 RL |
2508 | for expected number of iterations. |
2509 | ||
e12c4094 AO |
2510 | 2009-09-03 Alexandre Oliva <aoliva@redhat.com> |
2511 | ||
2512 | * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config. | |
2513 | (bootstrap-debug): Explain conditions in which it becomes default. | |
2514 | (bootstrap-debug-big): Rather than duplicate bootstrap-debug, | |
2515 | make it add to it. | |
2516 | ||
95da10ea NK |
2517 | 2009-09-03 Namhyung Kim <namhyung@gmail.com> |
2518 | ||
2519 | * doc/invoke.texi (Optimize Options): Move | |
2520 | -finline-small-functions to the -O2 list. | |
2521 | ||
73d598d5 AO |
2522 | 2009-09-03 Alexandre Oliva <aoliva@redhat.com> |
2523 | ||
2524 | * toplev.c (process_options): Enable var-tracking-assignments | |
2525 | by default if var-tracking is enabled. | |
2526 | ||
896aa4ea DD |
2527 | 2009-09-02 David Daney <ddaney@caviumnetworks.com> |
2528 | ||
2529 | * cfgbuild.c (find_bb_boundaries): Split blocks containing a | |
2530 | barrier. | |
2531 | * emit-rtl.c (prev_nonnote_insn_bb): New function. | |
2532 | * rtl.h (prev_nonnote_insn_bb): Declare it. | |
2533 | ||
4537ec0c DN |
2534 | 2009-09-03 Diego Novillo <dnovillo@google.com> |
2535 | ||
2536 | * cgraph.c (cgraph_node_for_decl): New. | |
2537 | * cgraph.h (cgraph_node_for_decl): Declare. | |
2538 | * tree.c (host_integerp): Return 0 if T is NULL. | |
2539 | ||
2540 | 2009-09-03 Diego Novillo <dnovillo@google.com> | |
2541 | ||
2542 | * tree.h (struct alias_pair): Move from varasm.c. | |
2543 | (alias_pairs): Likewise. | |
2544 | (TYPE_MAXVAL): Define. | |
2545 | (TYPE_MINVAL): Define. | |
2546 | (iterative_hash_host_wide_int): Declare. | |
2547 | (remove_unreachable_alias_pairs): Declare. | |
2548 | * tree-pass.h (pass_ipa_free_lang_data): Declare. | |
2549 | * diagnostic.c (default_diagnostic_starter): Make extern. | |
2550 | (default_diagnostic_finalizer): Make extern. | |
2551 | * diagnostic.h (default_diagnostic_starter): Declare. | |
2552 | (default_diagnostic_finalizer): Declare. | |
2553 | (default_tree_printer): Declare. | |
2554 | * toplev.c (default_tree_printer): Make extern. | |
2555 | ||
2556 | 2009-09-03 Richard Guenther <rguenther@suse.de> | |
2557 | Diego Novillo <dnovillo@google.com> | |
2558 | ||
2559 | * cgraph.c (cgraph_add_new_function): Remove gimplification. | |
2560 | * cgraphunit.c (cgraph_expand_function): Do not emit | |
2561 | associated thunks from here. | |
2562 | (cgraph_emit_thunks): New. | |
2563 | (cgraph_optimize): Call it. | |
2564 | Return if any IPA pass finds an error. | |
2565 | * varasm.c (finish_aliases_1): Ignore errorneous aliases used | |
2566 | by thunks. | |
2567 | ||
2568 | 2009-09-03 Simon Baldwin <simonb@google.com> | |
2569 | Rafael Espindola <espindola@google.com> | |
2570 | Richard Guenther <rguenther@suse.de> | |
2571 | Doug Kwan <dougkwan@google.com> | |
2572 | Diego Novillo <dnovillo@google.com> | |
2573 | ||
2574 | * tree.c: Include tree-pass.h, langhooks-def.h, | |
2575 | diagnostic.h, cgraph.h, timevar.h, except.h and debug.h. | |
2576 | (free_lang_data_in_type): New. | |
2577 | (need_assembler_name_p): New. | |
2578 | (free_lang_data_in_block): New. | |
2579 | (free_lang_data_in_decl): New. | |
2580 | (struct free_lang_data_d): New. | |
2581 | (add_tree_to_fld_list): New. | |
2582 | (find_decls_types_r): New. | |
2583 | (get_eh_types_for_runtime): New. | |
2584 | (find_decls_types_in_eh_region): New. | |
2585 | (find_decls_types_in_node): New. | |
2586 | (find_decls_types_in_var): New. | |
2587 | (free_lang_data_in_cgraph): New. | |
2588 | (free_lang_data): New. | |
2589 | (gate_free_lang_data): New. | |
2590 | (pass_ipa_free_lang_data): New. | |
2591 | ||
2592 | 2009-09-03 Diego Novillo <dnovillo@google.com> | |
2593 | ||
2594 | * timevar.def (TV_IPA_FREE_LANG_DATA): Define. | |
2595 | * langhooks.h (struct lang_hooks): Add field free_lang_data. | |
2596 | (lang_hooks): Remove const qualifier. | |
2597 | * ipa.c (cgraph_remove_unreachable_nodes): Call | |
2598 | remove_unreachable_alias_pairs. | |
2599 | * except.c (add_type_for_runtime): Check if TYPE has | |
2600 | already been converted. | |
2601 | (lookup_type_for_runtime): Likewise. | |
2602 | (check_handled): Handle converted types. | |
2603 | * varasm.c (remove_unreachable_alias_pairs): New. | |
2604 | * gimple.c: Include demangle.h. | |
2605 | (gimple_decl_printable_name): New. | |
2606 | (gimple_fold_obj_type_ref): New. | |
2607 | * gimple.h (gimple_decl_printable_name): Declare. | |
2608 | (gimple_fold_obj_type_ref): Declare. | |
2609 | * passes.c (init_optimization_passes): Add pass | |
2610 | pass_ipa_free_lang_data. | |
2611 | * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define. | |
2612 | (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA. | |
2613 | ||
2614 | 2009-09-03 Diego Novillo <dnovillo@google.com> | |
2615 | ||
2616 | * c-lang.c (lang_hooks): Remove const qualifier. | |
2617 | ||
02c8b4f8 LR |
2618 | 2009-09-02 Loren James Rittle <ljrittle@acm.org> |
2619 | ||
2620 | * doc/install.texi (*-*-freebsd*): Update target information. | |
2621 | ||
adee59ae AS |
2622 | 2009-09-02 Anatoly Sokolov <aesok@post.ru> |
2623 | ||
2624 | * hard-reg-set.h (call_fixed_regs): Remove. | |
2625 | * reginfo.c (call_fixed_regs): Remove. | |
2626 | (init_reg_sets_1): Remove initialization of call_fixed_regs. | |
2627 | (globalize_reg): Don't use call_fixed_regs. | |
2628 | * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of | |
2629 | call_fixed_regs. | |
2630 | ||
28ed065e MM |
2631 | 2009-09-01 Michael Matz <matz@suse.de> |
2632 | ||
2633 | * expr.h (emit_storent_insn, expand_expr_real_1, | |
2634 | expand_expr_real_2): Declare. | |
2635 | * expr.c (emit_storent_insn, expand_expr_real_1, | |
2636 | expand_expr_real_2): Export. | |
ed9d5a4a | 2637 | (store_expr): Setting and evaluating dont_return_target is useless. |
28ed065e MM |
2638 | (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR, |
2639 | LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable. | |
2640 | * except.c (expand_resx_expr): Rename to ... | |
2641 | (expand_resx_stmt): ... this. Rewrite to take gimple statement. | |
2642 | * except.h (expand_resx_stmt): Declare. | |
2643 | * stmt.c: Add include gimple.h | |
2644 | (expand_asm_expr): Rename to ... | |
2645 | (expand_asm_stmt): ... this. Rewrite to take gimple statement. | |
2646 | (expand_case): Rewrite to take gimple statement. | |
2647 | * tree.h (expand_asm_stmt): Declare. | |
2648 | (expand_case): Change prototype. | |
2649 | * Makefile.in (stmt.o): Depend on gimple.h. | |
2650 | * builtins.c (expand_builtin_synchronize): Build gimple asm | |
2651 | statement, not an ASM_EXPR. | |
2652 | * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r, | |
2653 | gimple_to_tree, release_stmt_tree): Remove. | |
2654 | (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or | |
2655 | ggc_free, but hold comparison code and operands separately. | |
2656 | Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot. | |
2657 | (expand_call_stmt, expand_gimple_stmt_1, | |
2658 | expand_gimple_stmt): New helpers. | |
2659 | (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt, | |
2660 | release_stmt_tree. Call expand_gimple_stmt instead. | |
2661 | (expand_gimple_basic_block): Ditto. | |
2662 | ||
2663 | * calls.c (emit_call_1): Don't look at EH regions here, make | |
2664 | fntree parameter useless. | |
2665 | (expand_call): New local rettype for TREE_TYPE(exp), use it | |
2666 | throughout. Remove local p, use addr instead. | |
2667 | Don't look at EH regions here. | |
2668 | ||
ce18efcb VM |
2669 | 2009-09-02 Vladimir Makarov <vmakarov@redhat.com> |
2670 | ||
2671 | * doc/invoke.texi (-fsched-pressure): Document it. | |
2672 | (-fsched-reg-pressure-heuristic): Remove it. | |
14e58be0 | 2673 | |
ce18efcb VM |
2674 | * reload.c (ira.h): Include. |
2675 | (find_reloads): Add choosing reload on number of small spilled | |
2676 | classes. | |
14e58be0 | 2677 | |
ce18efcb VM |
2678 | * haifa-sched.c (ira.h): Include. |
2679 | (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure, | |
2680 | saved_reg_pressure, curr_reg_live, saved_reg_live, | |
2681 | region_ref_regs): New variables. | |
2682 | (sched_init_region_reg_pressure_info, mark_regno_birth_or_death, | |
2683 | initiate_reg_pressure_info, setup_ref_regs, | |
2684 | initiate_bb_reg_pressure_info, save_reg_pressure, | |
2685 | restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New | |
2686 | functions. | |
2687 | (setup_insn_reg_pressure_info): New function. | |
2688 | (rank_for_schedule): Add pressure checking and insn issue time. | |
2689 | Remove comparison of insn reg weights. | |
2690 | (ready_sort): Set insn reg pressure info. | |
2691 | (update_register_pressure, setup_insn_max_reg_pressure, | |
2692 | update_reg_and_insn_max_reg_pressure, | |
2693 | sched_setup_bb_reg_pressure_info): New functions. | |
ed9d5a4a | 2694 | (schedule_insn): Add code for printing and updating reg pressure info. |
ce18efcb VM |
2695 | (find_set_reg_weight, find_insn_reg_weight): Remove. |
2696 | (ok_for_early_queue_removal): Do nothing if pressure_only_p. | |
2697 | (debug_ready_list): Print reg pressure info. | |
2698 | (schedule_block): Ditto. Check insn issue time. | |
2699 | (sched_init): Set up sched_pressure_p. Allocate and set up some | |
2700 | reg pressure related info. | |
2701 | (sched_finish): Free some reg pressure related info. | |
2702 | (fix_tick_ready): Make insn always ready if pressure_p. | |
2703 | (init_h_i_d): Don't call find_insn_reg_weight. | |
2704 | (haifa_finish_h_i_d): Free insn reg pressure info. | |
14e58be0 | 2705 | |
ce18efcb VM |
2706 | * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs, |
2707 | ira_memory_move_cost, ira_class_hard_regs, | |
2708 | ira_class_hard_regs_num, ira_no_alloc_regs, | |
2709 | ira_available_class_regs, ira_reg_class_cover_size, | |
2710 | ira_reg_class_cover, ira_class_translate): Move to ira.h. | |
2711 | ||
2712 | * ira-lives.c (single_reg_class): Check mode to find how many | |
2713 | registers are necessary for operand. | |
2714 | (ira_implicitly_set_insn_hard_regs): New. | |
2715 | ||
2716 | * common.opt (fsched-pressure): New options. | |
2717 | (fsched-reg-pressure-heuristic): Remove. | |
2718 | ||
2719 | * ira.c (setup_eliminable_regset): Rename to | |
2720 | ira_setup_eliminable_regset. Make it external. | |
2721 | (expand_reg_info): Pass cover class to setup_reg_classes. | |
2722 | (ira): Call resize_reg_info instead of allocate_reg_info. | |
2723 | ||
2724 | * sched-deps.c: Include ira.h. | |
2725 | (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New. | |
2726 | (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses, | |
2727 | reg_pressure_info, insn_use_p, mark_insn_pseudo_birth, | |
2728 | mark_insn_hard_regno_birth, mark_insn_reg_birth, | |
2729 | mark_pseudo_death, mark_hard_regno_death, mark_reg_death, | |
2730 | mark_insn_reg_store, mark_insn_reg_clobber, | |
2731 | setup_insn_reg_pressure_info): New. | |
2732 | (sched_analyze_1): Update implicit_reg_pending_uses. | |
2733 | (sched_analyze_insn): Find implicit sets, uses, clobbers of regs. | |
2734 | Use them to create dependencies. Set insn reg uses and pressure | |
2735 | info. Process reg_pending_uses in one place. | |
2736 | (free_deps): Free implicit sets. | |
2737 | (remove_from_deps): Remove implicit sets if necessary. Check | |
2738 | implicit sets when clearing reg_last_in_use. | |
2739 | (init_deps_global): Clear implicit_reg_pending_clobbers and | |
2740 | implicit_reg_pending_uses. | |
14e58be0 | 2741 | |
ce18efcb VM |
2742 | * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs, |
2743 | ira_memory_move_cost, ira_class_hard_regs, | |
2744 | ira_class_hard_regs_num, ira_no_alloc_regs, | |
2745 | ira_available_class_regs, ira_reg_class_cover_size, | |
2746 | ira_reg_class_cover, ira_class_translate): Move from ira-int.h. | |
2747 | (ira_setup_eliminable_regset, ira_set_pseudo_classes, | |
2748 | ira_implicitly_set_insn_hard_regs): New prototypes. | |
14e58be0 | 2749 | |
ce18efcb VM |
2750 | * ira-costs.c (pseudo_classes_defined_p, allocno_p, |
2751 | cost_elements_num): New variables. | |
2752 | (allocno_costs, total_costs): Rename to costs and | |
2753 | total_allocno_costs. | |
2754 | (COSTS_OF_ALLOCNO): Rename to COSTS. | |
2755 | (allocno_pref): Rename to pref. | |
2756 | (allocno_pref_buffer): Rename to pref_buffer. | |
2757 | (common_classes): Rename to regno_cover_class. | |
2758 | (COST_INDEX): New. | |
2759 | (record_reg_classes): Set allocno attributes only if allocno_p. | |
ed9d5a4a | 2760 | (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM. |
ce18efcb VM |
2761 | (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM |
2762 | and COSTS_OF_ALLOCNO. | |
2763 | (print_costs): Rename to print_allocno_costs. | |
2764 | (print_pseudo_costs): New. | |
2765 | (process_bb_node_for_costs): Split into 2 functions with new | |
2766 | function process_bb_for_costs. Pass BB to process_bb_for_costs. | |
2767 | (find_allocno_class_costs): Rename to find_costs_and_classes. Add | |
2768 | new parameter dump_file. Use cost_elements_num instead of | |
2769 | ira_allocnos_num. Make one iteration if preferred classes were | |
2770 | already calculated for scheduler. Make 2 versions of code | |
2771 | depending on allocno_p. | |
2772 | (setup_allocno_cover_class_and_costs): Check allocno_p. Use | |
2773 | regno_cover_class and COSTS instead of common_classes and | |
2774 | COSTS_OF_ALLOCNO. | |
2775 | (init_costs, finish_costs): New. | |
2776 | (ira_costs): Set up allocno_p and cost_elements_num. Call | |
2777 | init_costs and finish_costs. | |
2778 | (ira_set_pseudo_classes): New. | |
2779 | ||
2780 | * rtl.h (allocate_reg_info): Remove. | |
2781 | (resize_reg_info): Change return type. | |
2782 | (reg_cover_class): New. | |
2783 | (setup_reg_classes): Add new parameter. | |
14e58be0 | 2784 | |
ce18efcb | 2785 | * sched-int.h (struct deps_reg): New member implicit_sets. |
ed9d5a4a | 2786 | (sched_pressure_p, sched_regno_cover_class): New external definitions. |
ce18efcb VM |
2787 | (INCREASE_BITS): New macro. |
2788 | (struct reg_pressure_data, struct reg_use_data): New. | |
2789 | (struct _haifa_insn_data): Remove reg_weight. Add members | |
2790 | reg_pressure, reg_use_list, reg_set_list, and | |
2791 | reg_pressure_excess_cost_change. | |
2792 | (struct deps): New member implicit_sets. | |
2793 | (pressure_p): New variable. | |
2794 | (COVER_CLASS_BITS, INCREASE_BITS): New macros. | |
2795 | (struct reg_pressure_data, struct reg_use_data): New. | |
2796 | (INSN_REG_WEIGHT): Remove. | |
2797 | (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST, | |
ed9d5a4a | 2798 | INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros. |
ce18efcb VM |
2799 | (sched_init_region_reg_pressure_info, |
2800 | sched_setup_bb_reg_pressure_info): New prototypes. | |
14e58be0 UB |
2801 | |
2802 | * reginfo.c (struct reg_pref): New member coverclass. | |
ce18efcb VM |
2803 | (reg_cover_class): New function. |
2804 | (reginfo_init, pass_reginfo_init): Move after free_reg_info. | |
2805 | (reg_info_size): New variable. | |
2806 | (allocate_reg_info): Make static. Setup reg_info_size. | |
2807 | (resize_reg_info): Use reg_info_size. Return flag of resizing. | |
2808 | (setup_reg_classes): Add a new parameter. Setup cover class too. | |
2809 | ||
ed9d5a4a UB |
2810 | * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to |
2811 | the dependencies. | |
ce18efcb VM |
2812 | |
2813 | * sched-rgn.c (deps_join): Set up implicit_sets. | |
2814 | (schedule_region): Set up region and basic blocks pressure | |
2815 | relative info. | |
14e58be0 | 2816 | |
ce18efcb VM |
2817 | * passes.c (init_optimization_passes): Move |
2818 | pass_subregs_of_mode_init before pass_sched. | |
14e58be0 | 2819 | |
fef94f76 MJ |
2820 | 2009-09-02 Martin Jambor <mjambor@suse.cz> |
2821 | ||
2822 | * tree-sra.c (struct access): New field grp_hint. | |
2823 | (dump_access): Dump grp_hint. | |
2824 | (sort_and_splice_var_accesses): Set grp_hint if a group is read | |
2825 | multiple times. | |
2826 | (analyze_access_subtree): Only scalarize accesses with grp_hint set or | |
2827 | those which have been specifically read and somehow written to. | |
2828 | (propagate_subacesses_accross_link): Set grp_hint of right child and | |
2829 | also possibly of the left child. | |
2830 | ||
ded97380 JJ |
2831 | 2009-09-02 Jakub Jelinek <jakub@redhat.com> |
2832 | ||
2833 | * tree-object-size.c (addr_object_size): Always use object_size_type | |
2834 | 0 or 2 when determining the pointer pointed object size. | |
2835 | ||
63838157 RG |
2836 | 2009-09-02 Richard Guenther <rguenther@suse.de> |
2837 | ||
2838 | Revert | |
2839 | 2009-08-31 Richard Guenther <rguenther@suse.de> | |
2840 | ||
2841 | * builtins.c (fold_builtin_memory_op): Use the alias oracle | |
2842 | to query if the memory regions for memmove overlap. | |
2843 | * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the | |
2844 | asserts on pointers, instead deal with odd trees. | |
2845 | (ptr_derefs_may_alias_p): Likewise. | |
2846 | (refs_may_alias_p_1): Constructor bases also never alias. | |
2847 | ||
c68e4eed CB |
2848 | 2009-08-01 Christian Bruel <christian.bruel@st.com> |
2849 | ||
2850 | Revert: | |
2851 | 2009-07-31 Christian Bruel <christian.bruel@st.com> | |
2852 | * gcc/config.gcc (sh*-*-elf): test with_libgloss. | |
14e58be0 | 2853 | |
8fc68cba AO |
2854 | 2009-09-01 Alexandre Oliva <aoliva@redhat.com> |
2855 | ||
2856 | * doc/invoke.texi (-fvar-tracking-assignments): New. | |
2857 | (-fvar-tracking-assignments-toggle): New. | |
2858 | (-fdump-final-insns=file): Mark filename as optional. | |
2859 | (--param min-nondebug-insn-uid): New. | |
2860 | (-gdwarf-@{version}): Mention version 4. | |
2861 | * opts.c (common_handle_option): Accept it. | |
2862 | * tree-vrp.c (find_assert_locations_1): Skip debug stmts. | |
2863 | * regrename.c (regrename_optimize): Drop last. Don't count debug | |
2864 | insns as uses. Don't reject change because of debug insn. | |
2865 | (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno | |
ed9d5a4a | 2866 | from the chain starter, and check for inexact matches in DEBUG_INSNS. |
8fc68cba AO |
2867 | (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs. |
2868 | (build_def_use): Simplify and fix the marking of DEBUG_INSNs. | |
2869 | * sched-ebb.c (schedule_ebbs): Skip boundary debug insns. | |
2870 | * fwprop.c (forward_propagate_and_simplify): ...into debug insns. | |
2871 | * doc/gimple.texi (is_gimple_debug): New. | |
2872 | (gimple_debug_bind_p): New. | |
2873 | (is_gimple_call, gimple_assign_cast_p): End sentence with period. | |
2874 | * doc/install.texi (bootstrap-debug): More details. | |
2875 | (bootstrap-debug-big, bootstrap-debug-lean): Document. | |
2876 | (bootstrap-debug-lib): More details. | |
2877 | (bootstrap-debug-ckovw): Update. | |
2878 | (bootstrap-time): New. | |
2879 | * tree-into-ssa.c (mark_def_sites): Skip debug stmts. | |
2880 | (insert_phi_nodes_for): Insert debug stmts. | |
2881 | (rewrite_stmt): Take iterator. Insert debug stmts. | |
2882 | (rewrite_enter_block): Adjust. | |
2883 | (maybe_replace_use_in_debug_stmt): New. | |
2884 | (rewrite_update_stmt): Use it. | |
2885 | (mark_use_interesting): Return early for debug stmts. | |
2886 | * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug | |
2887 | stmts before replacing stmt. | |
2888 | (move_computations_stmt): Likewise. | |
2889 | * ira-conflicts.c (add_copies): Skip debug insns. | |
2890 | * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns. | |
2891 | (regstat_bb_compute_ri): Skip debug insns. | |
2892 | * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts. | |
2893 | * tree-ssa-loop-manip.c (find_uses_to_rename_stmt, | |
2894 | check_loop_closed_ssa_stmt): Skip debug stmts. | |
2895 | * tree-tailcall.c (find_tail_calls): Likewise. | |
2896 | * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise. | |
2897 | * tree.h (MAY_HAVE_DEBUG_STMTS): New. | |
2898 | (build_var_debug_value_stat): Declare. | |
2899 | (build_var_debug_value): Define. | |
2900 | (target_for_debug_bind): Declare. | |
2901 | * reload.c (find_equiv_reg): Skip debug insns. | |
2902 | * rtlanal.c (reg_used_between_p): Skip debug insns. | |
2903 | (side_effects_p): Likewise. | |
2904 | (canonicalize_condition): Likewise. | |
14e58be0 | 2905 | * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug |
8fc68cba AO |
2906 | insns never depend on debug insns. |
2907 | (create_ddg_dep_no_link): Likewise. | |
2908 | (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns. | |
2909 | Don't add inter-loop dependencies for debug insns. | |
2910 | (build_intra_loop_deps): Likewise. | |
2911 | (create_ddg): Count debug insns. | |
2912 | * ddg.h (struct ddg::num_debug): New. | |
2913 | (num_backargs): Pair up with previous int field. | |
2914 | * diagnostic.c (diagnostic_report_diagnostic): Skip notes on | |
2915 | -fcompare-debug-second. | |
2916 | * final.c (get_attr_length_1): Skip debug insns. | |
2917 | (rest_of_clean-state): Don't dump CFA_RESTORE_STATE. | |
2918 | * gcc.c (invoke_as): Call compare-debug-dump-opt. | |
2919 | (driver_self_specs): Map -fdump-final-insns to | |
2920 | -fdump-final-insns=.. | |
2921 | (get_local_tick): New. | |
2922 | (compare_debug_dump_opt_spec_function): Test for . argument and | |
2923 | compute output name. Compute temp output spec without flag name. | |
2924 | Compute -frandom-seed. | |
2925 | (OPT): Undef after use. | |
2926 | * cfgloopanal.c (num_loop_insns): Skip debug insns. | |
2927 | (average_num_loop_insns): Likewise. | |
2928 | * params.h (MIN_NONDEBUG_INSN_UID): New. | |
2929 | * gimple.def (GIMPLE_DEBUG): New. | |
2930 | * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts. | |
2931 | * auto-inc-dec.c (merge_in_block): Skip debug insns. | |
2932 | (merge_in_block): Fix whitespace. | |
2933 | * toplev.c (flag_var_tracking): Update comment. | |
2934 | (flag_var_tracking_assignments): New. | |
2935 | (flag_var_tracking_assignments_toggle): New. | |
2936 | (process_options): Don't open final insns dump file if we're not | |
2937 | going to write to it. Compute defaults for var_tracking. | |
2938 | * df-scan.c (df_insn_rescan_debug_internal): New. | |
2939 | (df_uses_record): Handle debug insns. | |
2940 | * haifa-sched.c (ready): Initialize n_debug. | |
2941 | (contributes_to_priority): Skip debug insns. | |
2942 | (dep_list_size): New. | |
2943 | (priority): Use it. | |
14e58be0 | 2944 | (rank_for_schedule): Likewise. Schedule debug insns as soon as |
8fc68cba AO |
2945 | they're ready. Disregard previous debug insns to make decisions. |
2946 | (queue_insn): Never queue debug insns. | |
2947 | (ready_add, ready_remove_first, ready_remove): Count debug insns. | |
2948 | (schedule_insn): Don't reject debug insns because of issue rate. | |
2949 | (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns. | |
2950 | (queue_to_ready): Skip and discount debug insns. | |
2951 | (choose_ready): Let debug insns through. | |
2952 | (schedule_block): Check boundary debug insns. Discount debug | |
2953 | insns, schedule them early. Adjust whitespace. | |
2954 | (set_priorities): Check for boundary debug insns. | |
2955 | (add_jump_dependencies): Use dep_list_size. | |
2956 | (prev_non_location_insn): New. | |
2957 | (check_cfg): Use it. | |
2958 | * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug | |
2959 | stmts. | |
2960 | (remove_unused_ivs): Reset debug stmts. | |
2961 | * modulo-sched.c (const_iteration_count): Skip debug insns. | |
2962 | (res_MII): Discount debug insns. | |
2963 | (loop_single_full_bb_p): Skip debug insns. | |
2964 | (sms_schedule): Likewise. | |
2965 | (sms_schedule_by_order): Likewise. | |
2966 | (ps_has_conflicts): Likewise. | |
2967 | * caller-save.c (refmarker_fn): New. | |
2968 | (save_call_clobbered_regs): Replace regs with saved mem in | |
2969 | debug insns. | |
2970 | (mark_referenced_regs): Take pointer, mark and arg. Adjust. | |
2971 | Call refmarker_fn mark for hardregnos. | |
2972 | (mark_reg_as_referenced): New. | |
2973 | (replace_reg_with_saved_mem): New. | |
2974 | * ipa-pure-const.c (check_stmt): Skip debug stmts. | |
2975 | * cse.c (cse_insn): Canonicalize debug insns. Skip them when | |
2976 | searching back. | |
2977 | (cse_extended_basic_block): Skip debug insns. | |
2978 | (count_reg_usage): Likewise. | |
2979 | (is_dead_reg): New, split out of... | |
2980 | (set_live_p): ... here. | |
2981 | (insn_live_p): Use it for debug insns. | |
2982 | * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts. | |
2983 | (execute_optimize_stdarg): Likewise. | |
2984 | * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise. | |
2985 | * tree-ssa-propagate.c (substitute_and_fold): Don't regard | |
2986 | changes in debug stmts as changes. | |
2987 | * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New. | |
2988 | (moveup_expr): Don't move across debug insns. Don't move | |
2989 | debug insn if it would create a bookkeeping block. | |
2990 | (moveup_expr_cached): Don't use cache for debug insns that | |
2991 | are heads of blocks. | |
2992 | (compute_av_set_inside_bb): Skip debug insns. | |
2993 | (sel_rank_for_schedule): Schedule debug insns first. Remove | |
2994 | dead code. | |
2995 | (block_valid_for_bookkeeping_p); Support lax searches. | |
2996 | (create_block_for_bookkeeping): Adjust block numbers when | |
2997 | encountering debug-only blocks. | |
2998 | (find_place_for_bookkeeping): Deal with debug-only blocks. | |
2999 | (generate_bookkeeping_insn): Accept no place to insert. | |
3000 | (remove_temp_moveop_nops): New argument full_tidying. | |
3001 | (prepare_place_to_insert): Deal with debug insns. | |
3002 | (advance_state_on_fence): Debug insns don't start cycles. | |
3003 | (update_boundaries): Take fence as argument. Deal with | |
3004 | debug insns. | |
3005 | (schedule_expr_on_boundary): No full_tidying on debug insns. | |
3006 | (fill_insns): Deal with debug insns. | |
3007 | (track_scheduled_insns_and_blocks): Don't count debug insns. | |
3008 | (need_nop_to_preserve_insn_bb): New, split out of... | |
3009 | (remove_insn_from_stream): ... this. | |
3010 | (fur_orig_expr_not_found): Skip debug insns. | |
3011 | * rtl.def (VALUE): Move up. | |
3012 | (DEBUG_INSN): New. | |
ed9d5a4a | 3013 | * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts. |
8fc68cba AO |
3014 | (nearest_common_dominator_of_uses): Take debug_stmts argument. |
3015 | Set it if debug stmts are found. | |
3016 | (statement_sink_location): Skip debug stmts. Propagate | |
3017 | moving defs into debug stmts. | |
3018 | * ifcvt.c (first_active_insn): Skip debug insns. | |
3019 | (last_active_insns): Likewise. | |
3020 | (cond_exec_process_insns): Likewise. | |
3021 | (noce_process_if_block): Likewise. | |
3022 | (check_cond_move_block): Likewise. | |
3023 | (cond_move_convert_if_block): Likewise. | |
3024 | (block_jumps_and_fallthru_p): Likewise. | |
3025 | (dead_or_predicable): Likewise. | |
3026 | * dwarf2out.c (debug_str_hash_forced): New. | |
3027 | (find_AT_string): Add comment. | |
3028 | (gen_label_for_indirect_string): New. | |
3029 | (get_debug_string_label): New. | |
3030 | (AT_string_form): Use it. | |
3031 | (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV, | |
3032 | MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but | |
3033 | discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and | |
3034 | several operations that cannot be represented with DWARF opcodes. | |
3035 | (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require | |
3036 | dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value. | |
3037 | (dwarf2out_var_location): Take during-call mark into account. | |
3038 | (output_indirect_string): Update comment. Output if there are | |
3039 | label and references. | |
3040 | (prune_indirect_string): New. | |
3041 | (prune_unused_types): Call it if debug_str_hash_forced. | |
3042 | More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>: | |
3043 | (dw_long_long_const): Remove. | |
3044 | (struct dw_val_struct): Change val_long_long type to rtx. | |
3045 | (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for | |
3046 | val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair. | |
3047 | (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each | |
3048 | component instead of HOST_BITS_PER_LONG. | |
14e58be0 | 3049 | (output_loc_operands): Likewise. For const8* assert |
8fc68cba AO |
3050 | HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64. |
3051 | (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT | |
3052 | rather than HOST_BITS_PER_LONG is >= 64. | |
3053 | (add_AT_long_long): Remove val_hi and val_lo arguments, add | |
3054 | val_const_double. | |
3055 | (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of | |
3056 | HOST_BITS_PER_LONG for dw_val_class_long_long. | |
3057 | (add_const_value_attribute): Adjust add_AT_long_long caller. Don't | |
3058 | handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse. | |
3059 | (dwarf_stack_op_name): Handle DW_OP_implicit_value and | |
3060 | DW_OP_stack_value. | |
3061 | (size_of_loc_descr, output_loc_operands, output_loc_operands_raw): | |
3062 | Handle DW_OP_implicit_value. | |
3063 | (extract_int): Move prototype earlier. | |
3064 | (mem_loc_descriptor): For SUBREG punt if inner | |
3065 | mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND | |
3066 | and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle | |
3067 | EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN, | |
3068 | UMAX, SIGN_EXTRACT, ZERO_EXTRACT. | |
3069 | (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE | |
3070 | instead of Pmode size. | |
3071 | (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE, | |
3072 | CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode, | |
3073 | attempt to handle other expressions. Don't handle TLS SYMBOL_REFs. | |
3074 | (concat_loc_descriptor, concatn_loc_descriptor, | |
3075 | loc_descriptor_from_tree_1): Adjust loc_descriptor callers. | |
3076 | (add_location_or_const_value_attribute): Likewise. For single | |
3077 | location loc_lists attempt to use add_const_value_attribute | |
3078 | for constant decls. Add DW_AT_const_value even if | |
3079 | NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING | |
3080 | in its expression. | |
3081 | * cfgbuild.c (inside_basic_block_p): Handle debug insns. | |
3082 | (control_flow_insn_p): Likewise. | |
ed9d5a4a | 3083 | * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt. |
8fc68cba AO |
3084 | (separate_decls_in_region_debug_bind): New. |
3085 | (separate_decls_in_region): Process debug bind stmts afterwards. | |
3086 | * recog.c (verify_changes): Handle debug insns. | |
3087 | (extract_insn): Likewise. | |
3088 | (peephole2_optimize): Skip debug insns. | |
3089 | * dse.c (scan_insn): Skip debug insns. | |
3090 | * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument. | |
3091 | Pass it on. | |
3092 | (setup_id_for_insn): Handle debug insns. | |
3093 | (maybe_tidy_empty_bb): Adjust whitespace. | |
3094 | (tidy_control_flow): Skip debug insns. | |
3095 | (sel_remove_insn): Adjust for debug insns. | |
3096 | (sel_estimate_number_of_insns): Skip debug insns. | |
3097 | (create_insn_rtx_from_pattern): Handle debug insns. | |
3098 | (create_copy_of_insn_rtx): Likewise. | |
3099 | * sel-sched-.h (sel_bb_end): Declare. | |
3100 | (sel_bb_empty_or_nop_p): New. | |
3101 | (get_all_loop_exits): Use it. | |
3102 | (_eligible_successor_edge_p): Likewise. | |
3103 | (return_nop_to_pool): Adjust. | |
3104 | * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts. | |
3105 | * ira-lives.c (process_bb_node_lives): Skip debug insns. | |
3106 | * gimple-pretty-print.c (dump_gimple_debug): New. | |
3107 | (dump_gimple_stmt): Use it. | |
3108 | (dump_bb_header): Skip gimple debug stmts. | |
3109 | * regmove.c (optimize_reg_copy_1): Discount debug insns. | |
3110 | (fixup_match_2): Likewise. | |
3111 | (regmove_backward_pass): Likewise. Simplify combined | |
3112 | replacement. Handle debug insns. | |
3113 | * function.c (instantiate_virtual_regs): Handle debug insns. | |
3114 | * function.h (struct emit_status): Add x_cur_debug_insn_uid. | |
3115 | * print-rtl.h: Include cselib.h. | |
ed9d5a4a | 3116 | (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs. |
8fc68cba AO |
3117 | * df.h (df_inns_rescan_debug_internal): Declare. |
3118 | * gcse.c (alloc_hash_table): Estimate n_insns. | |
3119 | (cprop_insn): Don't regard debug insns as changes. | |
3120 | (bypass_conditional_jumps): Skip debug insns. | |
3121 | (one_pre_gcse_pass): Adjust. | |
3122 | (one_code_hoisting_pass): Likewise. | |
3123 | (compute_ld_motion_mems): Skip debug insns. | |
3124 | (one_cprop_pass): Adjust. | |
3125 | * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts. | |
3126 | (if_convertible_stmt_p): Handle debug stmts. | |
3127 | * init-regs.c (initialize_uninitialized_regs): Skip debug insns. | |
3128 | * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts. | |
3129 | * ira-build.c (create_bb_allocnos): Skip debug insns. | |
3130 | * tree-flow-inline.h (has_zero_uses): Discount debug stmts. | |
3131 | (has_single_use): Likewise. | |
3132 | (single_imm_use): Likewise. | |
3133 | (num_imm_uses): Likewise. | |
3134 | * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts. | |
3135 | * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts. | |
3136 | (create_outofssa_var_map): Likewise. | |
3137 | * lower-subreg.c (adjust_decomposed_uses): New. | |
3138 | (resolve_debug): New. | |
3139 | (decompose_multiword_subregs): Use it. | |
3140 | * tree-dfa.c (find_referenced_vars): Skip debug stmts. | |
3141 | * emit-rtl.c: Include params.h. | |
3142 | (cur_debug_insn_uid): Define. | |
3143 | (set_new_first_and_last_insn): Set cur_debug_insn_uid too. | |
3144 | (copy_rtx_if_shared_1): Handle debug insns. | |
3145 | (reset_used_flags): Likewise. | |
3146 | (set_used_flags): LIkewise. | |
3147 | (get_max_insn_count): New. | |
3148 | (next_nondebug_insn): New. | |
3149 | (prev_nondebug_insn): New. | |
3150 | (make_debug_insn_raw): New. | |
3151 | (emit_insn_before_noloc): Handle debug insns. | |
3152 | (emit_jump_insn_before_noloc): Likewise. | |
3153 | (emit_call_insn_before_noloc): Likewise. | |
3154 | (emit_debug_insn_before_noloc): New. | |
3155 | (emit_insn_after_noloc): Handle debug insns. | |
3156 | (emit_jump_insn_after_noloc): Likewise. | |
3157 | (emit_call_insn_after_noloc): Likewise. | |
3158 | (emit_debug_insn_after_noloc): Likewise. | |
3159 | (emit_insn_after): Take loc from earlier non-debug insn. | |
3160 | (emit_jump_insn_after): Likewise. | |
3161 | (emit_call_insn_after): Likewise. | |
3162 | (emit_debug_insn_after_setloc): New. | |
3163 | (emit_debug_insn_after): New. | |
3164 | (emit_insn_before): Take loc from later non-debug insn. | |
3165 | (emit_jump_insn_before): Likewise. | |
3166 | (emit_call_insn_before): Likewise. | |
3167 | (emit_debug_insn_before_setloc): New. | |
3168 | (emit_debug_insn_before): New. | |
3169 | (emit_insn): Handle debug insns. | |
3170 | (emit_debug_insn): New. | |
3171 | (emit_jump_insn): Handle debug insns. | |
3172 | (emit_call_insn): Likewise. | |
3173 | (emit): Likewise. | |
3174 | (init_emit): Take min-nondebug-insn-uid into account. | |
3175 | Initialize cur_debug_insn_uid. | |
3176 | (emit_copy_of_insn_after): Handle debug insns. | |
3177 | * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite | |
3178 | location of single rhs in place. | |
3179 | (maybe_dump_rtl_for_gimple_stmt): Dump lineno. | |
3180 | (floor_sdiv_adjust): New. | |
3181 | (cell_sdiv_adjust): New. | |
3182 | (cell_udiv_adjust): New. | |
3183 | (round_sdiv_adjust): New. | |
3184 | (round_udiv_adjust): New. | |
3185 | (wrap_constant): Moved from cselib. | |
3186 | (unwrap_constant): New. | |
3187 | (expand_debug_expr): New. | |
3188 | (expand_debug_locations): New. | |
3189 | (expand_gimple_basic_block): Drop hiding redeclaration. Expand | |
3190 | debug bind stmts. | |
3191 | (gimple_expand_cfg): Expand debug locations. | |
3192 | * cselib.c: Include tree-pass.h. | |
3193 | (struct expand_value_data): New. | |
3194 | (cselib_record_sets_hook): New. | |
3195 | (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New. | |
3196 | (cselib_clear_table): Move, and implemnet in terms of... | |
3197 | (cselib_reset_table_with_next_value): ... this. | |
3198 | (cselib_get_next_unknown_value): New. | |
3199 | (discard_useless_locs): Don't discard preserved values. | |
3200 | (cselib_preserve_value): New. | |
3201 | (cselib_preserved_value_p): New. | |
3202 | (cselib_preserve_definitely): New. | |
3203 | (cselib_clear_preserve): New. | |
3204 | (cselib_preserve_only_values): New. | |
3205 | (new_cselib_val): Take rtx argument. Dump it in details. | |
3206 | (cselib_lookup_mem): Adjust. | |
3207 | (expand_loc): Take regs_active in struct. Adjust. Silence | |
3208 | dumps unless details are requested. | |
3209 | (cselib_expand_value_rtx_cb): New. | |
3210 | (cselib_expand_value_rtx): Rename and reimplment in terms of... | |
3211 | (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps | |
3212 | without details. Copy more subregs. Try to resolve values | |
3213 | using a callback. Wrap constants. | |
3214 | (cselib_subst_to_values): Adjust. | |
3215 | (cselib_log_lookup): New. | |
3216 | (cselib_lookup): Call it. | |
ed9d5a4a | 3217 | (cselib_invalidate_regno): Don't count preserved values as useless. |
8fc68cba AO |
3218 | (cselib_invalidate_mem): Likewise. |
3219 | (cselib_record_set): Likewise. | |
3220 | (struct set): Renamed to cselib_set, moved to cselib.h. | |
3221 | (cselib_record_sets): Adjust. Call hook. | |
3222 | (cselib_process_insn): Reset table when it would be cleared. | |
3223 | (dump_cselib_val): New. | |
3224 | (dump_cselib_table): New. | |
3225 | * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts. | |
3226 | (remove_forwarder_block): Support moving debug stmts. | |
3227 | * cselib.h (cselib_record_sets_hook): Declare. | |
3228 | (cselib_expand_callback): New type. | |
3229 | (cselib_expand_value_rtx_cb): Declare. | |
3230 | (cselib_reset_table_with_next_value): Declare. | |
3231 | (cselib_get_next_unknown_value): Declare. | |
3232 | (cselib_preserve_value): Declare. | |
3233 | (cselib_preserved_value_p): Declare. | |
3234 | (cselib_preserve_only_values): Declare. | |
3235 | (dump_cselib_table): Declare. | |
3236 | * cfgcleanup.c (flow_find_cross_jump): Skip debug insns. | |
3237 | (try_crossjump_to_edge): Likewise. | |
3238 | (delete_unreachable_blocks): Remove dominant GIMPLE blocks after | |
3239 | dominated blocks when debug stmts are present. | |
3240 | * simplify-rtx.c (delegitimize_mem_from_attrs): New. | |
3241 | * tree-ssa-live.c (remove_unused_locals): Skip debug stmts. | |
3242 | (set_var_live_on_entry): Likewise. | |
3243 | * loop-invariant.c (find_invariants_bb): Skip debug insns. | |
3244 | * cfglayout.c (curr_location, last_location): Make static. | |
3245 | (set_curr_insn_source_location): Don't avoid bouncing. | |
3246 | (get_curr_insn_source_location): New. | |
3247 | (get_curr_insn_block): New. | |
3248 | (duplicate_insn_chain): Handle debug insns. | |
3249 | * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate | |
3250 | into debug stmts. | |
3251 | * common.opt (fcompare-debug): Move to sort order. | |
3252 | (fdump-unnumbered-links): Likewise. | |
3253 | (fvar-tracking-assignments): New. | |
3254 | (fvar-tracking-assignments-toggle): New. | |
3255 | * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks | |
3256 | because of debug stmts. | |
3257 | (mark_stmt_if_obviously_necessary): Mark debug stmts. | |
3258 | (eliminate_unnecessary_stmts): Walk dominated blocks before | |
3259 | dominators. | |
3260 | * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts. | |
3261 | * ira.c (memref_used_between_p): Skip debug insns. | |
3262 | (update_equiv_regs): Likewise. | |
3263 | * sched-deps.c (sd_lists_size): Accept empty list. | |
3264 | (sd_init_insn): Mark debug insns. | |
3265 | (sd_finish_insn): Unmark them. | |
3266 | (sd_add_dep): Reject non-debug deps on debug insns. | |
3267 | (fixup_sched_groups): Give debug insns group treatment. | |
3268 | Skip debug insns. | |
3269 | (sched_analyze_reg): Don't mark debug insns for sched before call. | |
3270 | (sched_analyze_2): Handle debug insns. | |
3271 | (sched_analyze_insn): Compute next non-debug insn. Handle debug | |
3272 | insns. | |
3273 | (deps_analyze_insn): Handle debug insns. | |
3274 | (deps_start_bb): Skip debug insns. | |
3275 | (init_deps): Initialize last_debug_insn. | |
3276 | * tree-ssa.c (target_for_debug_bind): New. | |
3277 | (find_released_ssa_name): New. | |
3278 | (propagate_var_def_into_debug_stmts): New. | |
3279 | (propagate_defs_into_debug_stmts): New. | |
3280 | (verify_ssa): Skip debug bind stmts without values. | |
3281 | (warn_uninialized_vars): Skip debug stmts. | |
3282 | * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default. | |
3283 | * rtl.c (rtx_equal_p_cb): Handle VALUEs. | |
3284 | (rtx_equal_p): Likewise. | |
3285 | * ira-costs.c (scan_one_insn): Skip debug insns. | |
3286 | (process_bb_node_for_hard_reg_moves): Likewise. | |
3287 | * rtl.h (DEBUG_INSN_P): New. | |
3288 | (NONDEBUG_INSN_P): New. | |
3289 | (MAY_HAVE_DEBUG_INSNS): New. | |
3290 | (INSN_P): Accept debug insns. | |
3291 | (RTX_FRAME_RELATED_P): Likewise. | |
3292 | (INSN_DELETED_P): Likewise | |
3293 | (PAT_VAR_LOCATION_DECL): New. | |
3294 | (PAT_VAR_LOCATION_LOC): New. | |
3295 | (PAT_VAR_OCATION_STATUS): New. | |
3296 | (NOTE_VAR_LOCATION_DECL): Reimplement. | |
3297 | (NOTE_VAR_LOCATION_LOC): Likewise. | |
3298 | (NOTE_VAR_LOCATION_STATUS): Likewise. | |
3299 | (INSN_VAR_LOCATION): New. | |
3300 | (INSN_VAR_LOCATION_DECL): New. | |
3301 | (INSN_VAR_LOCATION_LOC): New. | |
3302 | (INSN_VAR_LOCATION_STATUS): New. | |
3303 | (gen_rtx_UNKNOWN_VAR_LOC): New. | |
3304 | (VAR_LOC_UNKNOWN_P): New. | |
3305 | (NOTE_DURING_CALL_P): New. | |
3306 | (SCHED_GROUP_P): Accept debug insns. | |
3307 | (emit_debug_insn_before): Declare. | |
3308 | (emit_debug_insn_before_noloc): Declare. | |
3309 | (emit_debug_insn_beore_setloc): Declare. | |
3310 | (emit_debug_insn_after): Declare. | |
3311 | (emit_debug_insn_after_noloc): Declare. | |
3312 | (emit_debug_insn_after_setloc): Declare. | |
3313 | (emit_debug_insn): Declare. | |
3314 | (make_debug_insn_raw): Declare. | |
3315 | (prev_nondebug_insn): Declare. | |
3316 | (next_nondebug_insn): Declare. | |
3317 | (delegitimize_mem_from_attrs): Declare. | |
3318 | (get_max_insn_count): Declare. | |
3319 | (wrap_constant): Declare. | |
3320 | (unwrap_constant): Declare. | |
3321 | (get_curr_insn_source_location): Declare. | |
3322 | (get_curr_insn_block): Declare. | |
3323 | * tree-inline.c (insert_debug_decl_map): New. | |
3324 | (processing_debug_stmt): New. | |
3325 | (remap_decl): Don't create new mappings in debug stmts. | |
3326 | (remap_gimple_op_r): Don't add references in debug stmts. | |
3327 | (copy_tree_body_r): Likewise. | |
3328 | (remap_gimple_stmt): Handle debug bind stmts. | |
3329 | (copy_bb): Skip debug stmts. | |
3330 | (copy_edges_for_bb): Likewise. | |
3331 | (copy_debug_stmt): New. | |
3332 | (copy_debug_stmts): New. | |
3333 | (copy_body): Copy debug stmts at the end. | |
3334 | (insert_init_debug_bind): New. | |
3335 | (insert_init_stmt): Take id. Skip and emit debug stmts. | |
ed9d5a4a | 3336 | (setup_one_parameter): Remap variable earlier, register debug mapping. |
8fc68cba AO |
3337 | (estimate_num_insns): Skip debug stmts. |
3338 | (expand_call_inline): Preserve debug_map. | |
3339 | (optimize_inline_calls): Check for no debug_stmts left-overs. | |
3340 | (unsave_expr_now): Preserve debug_map. | |
3341 | (copy_gimple_seq_and_replace_locals): Likewise. | |
3342 | (tree_function_versioning): Check for no debug_stmts left-overs. | |
3343 | Init and destroy debug_map as needed. Split edges unconditionally. | |
3344 | (build_duplicate_type): Init and destroy debug_map as needed. | |
3345 | * tree-inline.h: Include gimple.h instead of pointer-set.h. | |
3346 | (struct copy_body_data): Add debug_stmts and debug_map. | |
3347 | * sched-int.h (struct ready_list): Add n_debug. | |
3348 | (struct deps): Add last_debug_insn. | |
3349 | (DEBUG_INSN_SCHED_P): New. | |
3350 | (BOUNDARY_DEBUG_INSN_P): New. | |
3351 | (SCHEDULE_DEBUG_INSN_P): New. | |
3352 | (sd_iterator_cond): Accept empty list. | |
3353 | * combine.c (create_log_links): Skip debug insns. | |
3354 | (combine_instructions): Likewise. | |
3355 | (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the | |
3356 | return value is always unshared. | |
3357 | (struct rtx_subst_pair): New. | |
3358 | (auto_adjust_pair): New. | |
3359 | (propagate_for_debug_subst): New. | |
3360 | (propagate_for_debug): New. | |
3361 | (try_combine): Skip debug insns. Propagate removed defs into | |
3362 | debug insns. | |
3363 | (next_nonnote_nondebug_insn): New. | |
3364 | (distribute_notes): Use it. Skip debug insns. | |
3365 | (distribute_links): Skip debug insns. | |
3366 | * tree-outof-ssa.c (set_location_for_edge): Likewise. | |
3367 | * resource.c (mark_target_live_regs): Likewise. | |
3368 | * var-tracking.c: Include cselib.h and target.h. | |
3369 | (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and | |
3370 | MO_VAL_SET. | |
3371 | (micro_operation_type_name): New. | |
3372 | (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN. | |
3373 | (struct micro_operation_def): Update comments. | |
3374 | (decl_or_value): New type. Use instead of decls. | |
3375 | (struct emit_note_data_def): Add vars. | |
3376 | (struct attrs_def): Use decl_or_value. | |
3377 | (struct variable_tracking_info_def): Add permp, flooded. | |
3378 | (struct location_chain_def): Update comment. | |
3379 | (struct variable_part_def): Use decl_or_value. | |
3380 | (struct variable_def): Make var_part a variable length array. | |
3381 | (valvar_pool): New. | |
3382 | (scratch_regs): New. | |
3383 | (cselib_hook_called): New. | |
3384 | (dv_is_decl_p): New. | |
3385 | (dv_is_value_p): New. | |
3386 | (dv_as_decl): New. | |
3387 | (dv_as_value): New. | |
3388 | (dv_as_opaque): New. | |
3389 | (dv_onepart_p): New. | |
3390 | (dv_pool): New. | |
3391 | (IS_DECL_CODE): New. | |
3392 | (check_value_is_not_decl): New. | |
3393 | (dv_from_decl): New. | |
3394 | (dv_from_value): New. | |
3395 | (dv_htab_hash): New. | |
3396 | (variable_htab_hash): Use it. | |
3397 | (variable_htab_eq): Support values. | |
3398 | (variable_htab_free): Free from the right pool. | |
3399 | (attrs_list_member, attrs_list_insert): Use decl_or_value. | |
3400 | (attrs_list_union): Adjust. | |
3401 | (attrs_list_mpdv_union): New. | |
3402 | (tie_break_pointers): New. | |
3403 | (canon_value_cmp): New. | |
3404 | (unshare_variable): Return possibly-modified slot. | |
3405 | (vars_copy_1): Adjust. | |
3406 | (var_reg_decl_set): Adjust. Split out of... | |
3407 | (var_reg_set): ... this. | |
3408 | (get_init_value): Adjust. | |
3409 | (var_reg_delete_and_set): Adjust. | |
3410 | (var_reg_delete): Adjust. | |
3411 | (var_regno_delete): Adjust. | |
3412 | (var_mem_decl_set): Split out of... | |
3413 | (var_mem_set): ... this. | |
3414 | (var_mem_delete_and_set): Adjust. | |
3415 | (var_mem_delete): Adjust. | |
3416 | (val_store): New. | |
3417 | (val_reset): New. | |
3418 | (val_resolve): New. | |
3419 | (variable_union): Adjust. Speed up merge of 1-part vars. | |
3420 | (variable_canonicalize): Use unshared slot. | |
3421 | (VALUED_RECURSED_INTO): New. | |
3422 | (find_loc_in_1pdv): New. | |
3423 | (struct dfset_merge): New. | |
3424 | (insert_into_intersection): New. | |
3425 | (intersect_loc_chains): New. | |
3426 | (loc_cmp): New. | |
3427 | (canonicalize_loc_order_check): New. | |
3428 | (canonicalize_values_mark): New. | |
3429 | (canonicalize_values_star): New. | |
3430 | (variable_merge_over_cur): New. | |
3431 | (variable_merge_over_src): New. | |
3432 | (dataflow_set_merge): New. | |
3433 | (dataflow_set_equiv_regs): New. | |
3434 | (remove_duplicate_values): New. | |
3435 | (struct dfset_post_merge): New. | |
3436 | (variable_post_merge_new_vals): New. | |
3437 | (variable_post_merge_perm_vals): New. | |
3438 | (dataflow_post_merge_adjust): New. | |
3439 | (find_mem_expr_in_1pdv): New. | |
3440 | (dataflow_set_preserve_mem_locs): New. | |
3441 | (dataflow_set_remove_mem_locs): New. | |
3442 | (dataflow_set_clear_at_call): New. | |
3443 | (onepart_variable_different_p): New. | |
3444 | (variable_different_p): Use it. | |
ed9d5a4a | 3445 | (dataflow_set_different_1): Adjust. Make detailed dump more verbose. |
8fc68cba AO |
3446 | (track_expr_p): Add need_rtl parameter. Don't generate rtl |
3447 | if not needed. | |
3448 | (track_loc_p): Pass it true. | |
3449 | (struct count_use_info): New. | |
3450 | (find_use_val): New. | |
3451 | (replace_expr_with_values): New. | |
3452 | (log_op_type): New. | |
3453 | (use_type): New, partially split out of... | |
3454 | (count_uses): ... this. Count new micro-ops. | |
3455 | (count_uses_1): Adjust. | |
3456 | (count_stores): Adjust. | |
3457 | (count_with_sets): New. | |
3458 | (VAL_NEEDS_RESOLUTION): New. | |
3459 | (VAL_HOLDS_TRACK_EXPR): New. | |
3460 | (VAL_EXPR_IS_COPIED): New. | |
3461 | (VAL_EXPR_IS_CLOBBERED): New. | |
3462 | (add_uses): Adjust. Generate new micro-ops. | |
3463 | (add_uses_1): Adjust. | |
3464 | (add_stores): Generate new micro-ops. | |
3465 | (add_with_sets): New. | |
3466 | (find_src_status): Adjust. | |
3467 | (find_src_set_src): Adjust. | |
3468 | (compute_bb_dataflow): Use dataflow_set_clear_at_call. | |
3469 | Handle new micro-ops. Canonicalize value equivalances. | |
3470 | (vt_find_locations): Compute total size of hash tables for | |
3471 | dumping. Perform merge for var-tracking-assignments. Don't | |
3472 | disregard single-block loops. | |
3473 | (dump_attrs_list): Handle decl_or_value. | |
3474 | (dump_variable): Take variable. Deal with decl_or_value. | |
3475 | (dump_variable_slot): New. | |
3476 | (dump_vars): Use it. | |
3477 | (dump_dataflow_sets): Adjust. | |
3478 | (set_slot_part): New, extended to support one-part variables | |
3479 | after splitting out of... | |
3480 | (set_variable_part): ... this. | |
3481 | (clobber_slot_part): New, split out of... | |
3482 | (clobber_variable_part): ... this. | |
3483 | (delete_slot_part): New, split out of... | |
3484 | (delete_variable_part): .... this. | |
3485 | (check_wrap_constant): New. | |
3486 | (vt_expand_loc_callback): New. | |
3487 | (vt_expand_loc): New. | |
3488 | (emit_note_insn_var_location): Adjust. Handle values. Handle | |
3489 | EMIT_NOTE_AFTER_CALL_INSN. | |
3490 | (emit_notes_for_differences_1): Adjust. Handle values. | |
3491 | (emit_notes_for_differences_2): Likewise. | |
3492 | (emit_notes_for_differences): Adjust. | |
ed9d5a4a UB |
3493 | (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes. |
3494 | Adjust. Handle new micro-ops. | |
8fc68cba AO |
3495 | (vt_add_function_parameters): Adjust. Create and bind values. |
3496 | (vt_initialize): Adjust. Initialize scratch_regs and | |
3497 | valvar_pool, flooded and perm.. Initialize and use cselib. Log | |
3498 | operations. Move some code to count_with_sets and add_with_sets. | |
3499 | (delete_debug_insns): New. | |
3500 | (vt_debug_insns_local): New. | |
3501 | (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish | |
3502 | cselib. | |
3503 | (var_tracking_main): If var-tracking-assignments is enabled | |
3504 | but var-tracking isn't, delete debug insns and leave. Likewise | |
3505 | if we exceed limits or fail the stack adjustments tests, and | |
3506 | after all var-tracking processing. | |
3507 | More in var-tracking, from Jakub Jelinek <jakub@redhat.com>: | |
3508 | (dataflow_set): Add traversed_vars. | |
3509 | (value_chain, const_value_chain): New typedefs. | |
3510 | (value_chain_pool, value_chains): New variables. | |
3511 | (value_chain_htab_hash, value_chain_htab_eq, add_value_chain, | |
3512 | add_value_chains, add_cselib_value_chains, remove_value_chain, | |
3513 | remove_value_chains, remove_cselib_value_chains): New functions. | |
3514 | (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1, | |
3515 | shared_hash_find_slot_noinsert_1, shared_hash_find_1): New | |
3516 | static inlines. | |
3517 | (shared_hash_find_slot_unshare, shared_hash_find_slot, | |
3518 | shared_hash_find_slot_noinsert, shared_hash_find): Update. | |
3519 | (dst_can_be_shared): New variable. | |
3520 | (unshare_variable): Unshare set->vars if shared, use shared_hash_*. | |
3521 | Clear dst_can_be_shared. If set->traversed_vars is non-NULL and | |
3522 | different from set->vars, look up slot again instead of using the | |
3523 | passed in slot. | |
3524 | (dataflow_set_init): Initialize traversed_vars. | |
3525 | (variable_union): Use shared_hash_*. Use initially NO_INSERT | |
3526 | lookup if set->vars is shared. Don't keep slot cleared before | |
3527 | calling unshare_variable. Unshare set->vars if needed. Adjust | |
3528 | unshare_variable callers. Clear dst_can_be_shared if needed. | |
3529 | Even ->refcount == 1 vars must be unshared if set->vars is shared | |
3530 | and var needs to be modified. | |
3531 | (dataflow_set_union): Set traversed_vars during canonicalization. | |
3532 | (VALUE_CHANGED, DECL_CHANGED): Define. | |
14e58be0 | 3533 | (set_dv_changed, dv_changed_p): New static inlines. |
8fc68cba AO |
3534 | (track_expr_p): Clear DECL_CHANGED. |
3535 | (dump_dataflow_sets): Set it. | |
3536 | (variable_was_changed): Call set_dv_changed. | |
3537 | (emit_note_insn_var_location): Likewise. | |
3538 | (changed_variables_stack): New variable. | |
3539 | (check_changed_vars_1, check_changed_vars_2): New functions. | |
3540 | (emit_notes_for_changes): Do nothing if changed_variables is | |
3541 | empty. Traverse changed_variables with check_changed_vars_1, | |
3542 | call check_changed_vars_2 on each changed_variables_stack entry. | |
3543 | (emit_notes_in_bb): Add SET argument. Just clear it at the | |
ed9d5a4a | 3544 | beginning, use it instead of local &set, don't destroy it at the end. |
8fc68cba AO |
3545 | (vt_emit_notes): Call dataflow_set_clear early on all |
3546 | VTI(bb)->out sets, never use them, instead use emit_notes_in_bb | |
3547 | computed set, dataflow_set_clear also VTI(bb)->in when we are | |
3548 | done with the basic block. Initialize changed_variables_stack, | |
3549 | free it afterwards. If ENABLE_CHECKING verify that after noting | |
3550 | differences to an empty set value_chains hash table is empty. | |
3551 | (vt_initialize): Initialize value_chains and value_chain_pool. | |
3552 | (vt_finalize): Delete value_chains htab, free value_chain_pool. | |
3553 | (variable_tracking_main): Call dump_dataflow_sets before calling | |
3554 | vt_emit_notes, not after it. | |
3555 | * tree-flow.h (propagate_defs_into_debug_stmts): Declare. | |
3556 | (propagate_var_def_into_debug_stmts): Declare. | |
3557 | * df-problems.c (df_lr_bb_local_compute): Skip debug insns. | |
3558 | (df_set_note): Reject debug insns. | |
3559 | (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't | |
3560 | add notes to debug insns. | |
3561 | (df_note_bb_compute): Adjust. Likewise. | |
3562 | (df_simulate_uses): Skip debug insns. | |
3563 | (df_simulate_initialize_backwards): Likewise. | |
3564 | * reg-stack.c (subst_stack_regs_in_debug_insn): New. | |
3565 | (subst_stack_regs_pat): Reject debug insns. | |
3566 | (convert_regs_1): Handle debug insns. | |
3567 | * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H. | |
3568 | (print-rtl.o): Depend on cselib.h. | |
3569 | (cselib.o): Depend on TREE_PASS_H. | |
3570 | (var-tracking.o): Depend on cselib.h and TARGET_H. | |
ed9d5a4a | 3571 | * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns. |
8fc68cba AO |
3572 | (init_ready_list): Skip boundary debug insns. |
3573 | (add_branch_dependences): Skip debug insns. | |
ed9d5a4a | 3574 | (free_block_dependencies): Check for blocks with only debug insns. |
8fc68cba AO |
3575 | (compute_priorities): Likewise. |
3576 | * gimple.c (gss_for_code): Handle GIMPLE_DEBUG. | |
3577 | (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust | |
3578 | all callers. | |
3579 | (gimple_build_debug_bind_stat): New. | |
3580 | (empty_body_p): Skip debug stmts. | |
3581 | (gimple_has_side_effects): Likewise. | |
3582 | (gimple_rhs_has_side_effects): Likewise. | |
3583 | * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New. | |
3584 | (gimple_build_debug_bind_stat): Declare. | |
3585 | (gimple_build_debug_bind): Define. | |
3586 | (is_gimple_debug): New. | |
3587 | (gimple_debug_bind_p): New. | |
3588 | (gimple_debug_bind_get_var): New. | |
3589 | (gimple_debug_bind_get_value): New. | |
3590 | (gimple_debug_bind_get_value_ptr): New. | |
3591 | (gimple_debug_bind_set_var): New. | |
3592 | (gimple_debug_bind_set_value): New. | |
3593 | (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro. | |
3594 | (gimple_debug_bind_reset_value): New. | |
3595 | (gimple_debug_bind_has_value_p): New. | |
3596 | (gsi_next_nondebug): New. | |
3597 | (gsi_prev_nondebug): New. | |
3598 | (gsi_start_nondebug_bb): New. | |
3599 | (gsi_last_nondebug_bb): New. | |
3600 | * sched-vis.c (print_pattern): Handle VAR_LOCATION. | |
3601 | (print_insn): Handle DEBUG_INSN. | |
3602 | * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc | |
3603 | of first insn prevail. | |
3604 | (first_stmt): Skip debug stmts. | |
3605 | (first_non_label_stmt): Likewise. | |
3606 | (last_stmt): Likewise. | |
3607 | (has_zero_uses_1): New. | |
3608 | (single_imm_use_1): New. | |
3609 | (verify_gimple_debug): New. | |
3610 | (verify_types_in_gimple_stmt): Handle debug stmts. | |
3611 | (verify_stmt): Likewise. | |
3612 | (debug_loop_num): Skip debug stmts. | |
3613 | (remove_edge_and_dominated_blocks): Remove dominators last. | |
ed9d5a4a | 3614 | * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts. |
8fc68cba AO |
3615 | (linearize_expr): Likewise. |
3616 | * config/i386/i386.c (ix86_delegitimize_address): Call | |
3617 | default implementation. | |
ed9d5a4a | 3618 | * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns. |
8fc68cba AO |
3619 | (group_barrier_needed): Skip debug insns. |
3620 | (emit_insn_group_barriers): Likewise. | |
3621 | (emit_all_insn_group_barriers): Likewise. | |
3622 | (ia64_variable_issue): Handle debug insns. | |
3623 | (ia64_dfa_new_cycle): Likewise. | |
3624 | (final_emit_insn_group_barriers): Skip debug insns. | |
3625 | (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't | |
3626 | def cfa without frame. | |
3627 | (process_set): Likewise. | |
3628 | (process_for_unwind_directive): Pass frame on. | |
3629 | * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define. | |
3630 | (rs6000_delegitimize_address): New. | |
3631 | (rs6000_debug_adjust_cost): Handle debug insns. | |
3632 | (is_microcoded_insn): Likewise. | |
3633 | (is_cracked_insn): Likewise. | |
3634 | (is_nonpipeline_insn): Likewise. | |
3635 | (insn_must_be_first_in_group): Likewise. | |
3636 | (insn_must_be_last_in_group): Likewise. | |
3637 | (force_new_group): Likewise. | |
3638 | * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block | |
3639 | contains only debug insns. | |
3640 | (rtl_merge_blocks): Skip debug insns. | |
3641 | (purge_dead_edges): Likewise. | |
3642 | (rtl_block_ends_with_call_p): Skip debug insns. | |
3643 | * dce.c (deletable_insn_p): Handle VAR_LOCATION. | |
3644 | (mark_reg_dependencies): Skip debug insns. | |
3645 | * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New. | |
ed9d5a4a | 3646 | * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts. |
8fc68cba AO |
3647 | * tree-ssa-threadedge.c |
3648 | (record_temporary_equivalences_from_stmts): Skip debug stmts. | |
3649 | * regcprop.c (replace_oldest_value_addr): Skip debug insns. | |
3650 | (replace_oldest_value_mem): Use ALL_REGS for debug insns. | |
3651 | (copyprop_hardreg_forward_1): Handle debug insns. | |
3652 | * reload1.c (reload): Skip debug insns. Replace unassigned | |
3653 | pseudos in debug insns with their equivalences. | |
3654 | (eliminate_regs_in_insn): Skip debug insns. | |
3655 | (emit_input_reload_insns): Skip debug insns at first, adjust | |
3656 | them later. | |
3657 | * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts. | |
3658 | (get_indirect_ref_operands): Pass opf_no_vops on. | |
3659 | (get_expr_operands): Likewise. Skip debug stmts. | |
3660 | (parse_ssa_operands): Scan debug insns with opf_no_vops. | |
3661 | ||
cd6ea7a2 RH |
3662 | 2009-09-01 Richard Henderson <rth@redhat.com> |
3663 | ||
14e58be0 | 3664 | * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate |
cd6ea7a2 RH |
3665 | stmt_ends_pp_p statements at least once. |
3666 | * tree-vrp.c (vrp_initialize): Likewise. | |
3667 | (vrp_visit_stmt): Be prepared for non-interesting stmts. | |
3668 | ||
d3bc57f2 DS |
3669 | 2009-09-01 Dodji Seketeli <dodji@redhat.com> |
3670 | ||
3671 | PR bootstrap/41205 | |
3672 | Fix AIX bootstrap after PR debug/30161 | |
3673 | * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen | |
3674 | that is a GNU extension. | |
3675 | (tmpl_value_parm_die_table): Move the definition of this global | |
3676 | outside #ifdef DWARF2_DEBUGGING_INFO region. | |
3677 | ||
71c00b5c RG |
3678 | 2009-09-01 Richard Guenther <rguenther@suse.de> |
3679 | ||
3680 | * tree.c (tree_expr_size): New function. | |
3681 | * tree.h (tree_expr_size): Declare. | |
3682 | * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment. | |
3683 | * builtins.c (fold_builtin_memory_op): Use tree_expr_size. | |
3684 | * langhooks.c (lhd_expr_size): Remove. | |
3685 | * langhooks.h (struct lang_hooks): Remove expr_size. | |
3686 | * explow.c (expr_size): Use tree_expr_size. | |
3687 | (int_expr_size): Likewise. | |
3688 | * langhooks-def.h (lhd_expr_size): Remove. | |
3689 | (LANG_HOOKS_EXPR_SIZE): Likewise. | |
3690 | (LANG_HOOKS_INITIALIZER): Adjust. | |
3691 | ||
58f986ca RG |
3692 | 2009-09-01 Richard Guenther <rguenther@suse.de> |
3693 | ||
3694 | * tree-flow.h (mark_addressable): Move declaration ... | |
3695 | * tree.h (mark_addressable): ... here. | |
3696 | * stmt.c (expand_asm_operands): Use mark_addressable, not | |
3697 | lang_hooks.mark_addressable. | |
3698 | * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove | |
3699 | LANG_HOOKS_MARK_ADDRESSABLE. | |
3700 | * langhooks.h (struct lang_hooks): Remove mark_addressable langhook. | |
3701 | * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove. | |
3702 | ||
5fa162c0 CD |
3703 | 2009-08-31 Chris Demetriou <cgd@google.com> |
3704 | ||
3705 | * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never | |
3706 | vectorize if not TARGET_SSE2. | |
3707 | ||
453503d6 DD |
3708 | 2009-08-31 DJ Delorie <dj@redhat.com> |
3709 | ||
3710 | * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor | |
3711 | registers if no coprocessor is enabled. | |
3712 | ||
f9329c35 DS |
3713 | 2009-08-31 Dodji Seketeli <dodji@redhat.com> |
3714 | ||
3715 | PR debug/30161 | |
3716 | * cgraph.h (cgraph_get_node): Declare ... | |
3717 | * cgraph.c (cgraph_get_node): ... new function. | |
3718 | * dwarf2out.c (gen_generic_params_dies, | |
3719 | generic_parameter_die, tree_add_const_value_attribute_for_decl, | |
3720 | make_ith_pack_parameter_name, | |
3721 | append_entry_to_tmpl_value_parm_die_table, | |
3722 | gen_remaining_tmpl_value_param_die_attribute): New functions. | |
3723 | (gen_subprogram_die): Generate debug info for template parameters | |
3724 | if debug info level is higher than DINFO_LEVEL_TERSE. | |
3725 | Use tree_add_const_value_attribute_for_decl instead of | |
3726 | tree_add_const_value_attribute. | |
3727 | (gen_const_die): Use tree_add_const_value_attribute_for_decl | |
3728 | instead of tree_add_const_value_attribute. | |
3729 | (gen_struct_or_union_type_die): Generate debug | |
3730 | info for template parameters if debug info level is higher than | |
3731 | DINFO_LEVEL_TERSE. | |
3732 | (tree_add_const_value_attribute): Handle integral and pointer | |
3733 | constants. Update comment. | |
3734 | (dwarf_tag_name): Support DW_TAG_GNU_template_template_param. | |
3735 | (dwarf_attr_name): Support DW_AT_GNU_template_name. | |
3736 | (reference_to_unused): Fix thinko. Remove redundant predicates from | |
3737 | tests. | |
3738 | (tree_add_const_value_attribute): Make this work for constant | |
3739 | expressions only. | |
3740 | tree_add_const_value_attribute_for_decl is to be used for variable | |
3741 | DECLs now. | |
3742 | (add_location_or_const_value_attribute): Use | |
3743 | tree_add_const_value_attribute_for_decl now. | |
3744 | (dwarf2out_finish): Emit the DW_AT_const_value attribute of | |
3745 | DW_TAG_template_value_param DIEs after function DIEs have been | |
3746 | emitted. | |
3747 | * langhooks.h (lang_hooks_for_types): Add | |
3748 | get_argument_pack_elems. | |
3749 | (lang_hooks_for_decls): Add generic_generic_parameter_decl_p. | |
3750 | (lang_hooks): Added get_innermost_generic_parms, | |
3751 | get_innermost_generic_args. | |
3752 | * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS, | |
3753 | LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS, | |
3754 | LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS, | |
3755 | LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks. | |
3756 | ||
e756464b DD |
3757 | 2009-08-31 DJ Delorie <dj@redhat.com> |
3758 | ||
3759 | * config/mep/mep.c (machine_function): Add frame_locked flag. Set | |
3760 | it once we start generating the prologue or epilogue. | |
5fa162c0 CD |
3761 | (mep_call_saves_register): If the frame is locked, re-use |
3762 | cached values. | |
e756464b DD |
3763 | (mep_assign_save_slots): New, broken out from mep_expand_prologue. |
3764 | (mep_expand_prologue): Call it. | |
3765 | (mep_expand_epilogue): Likewise. | |
3766 | (mep_start_function): Use the same logic as mep_expand_prologue. | |
3767 | (mep_pass_by_reference): Make logic more readable. | |
3768 | (mep_return_in_memory): Zero-sized objects are passed in memory. | |
3769 | (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes. | |
3770 | ||
e2abde5f RG |
3771 | 2009-08-31 Richard Guenther <rguenther@suse.de> |
3772 | ||
3773 | * builtins.c (fold_builtin_memory_op): Use the alias oracle | |
3774 | to query if the memory regions for memmove overlap. | |
3775 | * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the | |
3776 | asserts on pointers, instead deal with odd trees. | |
3777 | (ptr_derefs_may_alias_p): Likewise. | |
3778 | (refs_may_alias_p_1): Constructor bases also never alias. | |
3779 | ||
c4331d93 GP |
3780 | 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com> |
3781 | ||
3782 | * doc/install.texi (Final install): Adjust reference on where to | |
3783 | order printed manuals. | |
3784 | ||
40a99889 OH |
3785 | 2009-08-30 Olivier Hainque <hainque@adacore.com> |
3786 | ||
3787 | * dwarf2out.c (switch_to_frame_table_section): Move | |
3788 | definition prior to first use. | |
3789 | ||
a778c4e7 RG |
3790 | 2009-08-30 Richard Guenther <rguenther@suse.de> |
3791 | ||
3792 | PR tree-optimization/41186 | |
3793 | * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove. | |
3794 | (ao_ref_init_from_ptr_and_size): New function. | |
3795 | (ref_maybe_used_by_call_p_1): Be more precise tracking | |
3796 | used ranges for builtin functions. | |
3797 | (ref_maybe_used_by_call_p): Adjust. | |
3798 | (call_may_clobber_ref_p_1): Be more precise tracking clobbered | |
3799 | ranges for builtin functions. | |
3800 | * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare. | |
3801 | ||
e85122be AM |
3802 | 2009-08-30 Alan Modra <amodra@bigpond.net.au> |
3803 | ||
3804 | PR target/41081 | |
3805 | * fwprop.c (get_reg_use_in): Delete. | |
3806 | (free_load_extend): New function. | |
3807 | (forward_propagate_subreg): Use it. | |
3808 | ||
2d606e03 KK |
3809 | 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org> |
3810 | ||
3811 | * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf. | |
3812 | ||
ce557b74 KT |
3813 | 2009-08-29 Kai Tietz<kai.tietz@onevision.com> |
3814 | ||
d1eda136 L |
3815 | PR/41184 |
3816 | * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for | |
3817 | padding. | |
ce557b74 | 3818 | |
6d83cb32 DR |
3819 | 2009-08-29 Douglas B Rupp <rupp@gnat.com> |
3820 | ||
3821 | * crtstuff.c (__do_global_dtors_aux): Use atexit if no | |
3822 | fini or fini_array section. | |
3823 | ||
211694b6 SP |
3824 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
3825 | ||
3826 | * graphite-dependences.c (graphite_legal_transform_bb): Call | |
3827 | pbb_remove_duplicate_pdrs. | |
3828 | * graphite-poly.c (can_collapse_pdr): Removed. | |
3829 | (pdr_find_duplicate): Removed. | |
3830 | (can_collapse_pdrs): New. | |
3831 | (pbb_remove_duplicate_pdrs): New. | |
3832 | (new_poly_dr): Do not look for duplicates. | |
3833 | * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed. | |
3834 | (PBB_PDR_DUPLICATES_REMOVED): New. | |
3835 | (pbb_remove_duplicate_pdrs): Declared. | |
3836 | ||
7bd2a8a7 SP |
3837 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
3838 | ||
3839 | * graphite-interchange.c (pbb_interchange_profitable_p): Adjust | |
3840 | the strides by multiplying by PDR_NB_REFS. | |
3841 | * graphite-poly.c (can_collapse_pdr): New. | |
3842 | (pdr_find_duplicate): New. | |
3843 | (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs. | |
3844 | Initialize PDR_NB_REFS. | |
3845 | * graphite-poly.h (struct poly_dr): Add field nb_refs. | |
3846 | (PDR_NB_REFS): New. | |
3847 | (new_poly_dr): Number of subscripts is a graphite_dim_t. | |
3848 | ||
93b2db87 SP |
3849 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
3850 | ||
3851 | PR middle-end/40965 | |
3852 | * graphite-poly.c (apply_poly_transforms): Remove legality test before | |
3853 | any transform. | |
3854 | ||
d8eeb078 SP |
3855 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
3856 | ||
3857 | * graphite-dependences.c (pddr_original_scattering): Return NULL | |
3858 | for read-read dependence relations. | |
3859 | * graphite-poly.h (enum poly_dr_type): Fix comment. | |
3860 | (pdr_read_p): New. | |
3861 | (pdr_write_p): New. | |
3862 | (pdr_may_write_p): New. | |
3863 | ||
e6dec0fb SP |
3864 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
3865 | ||
3866 | * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type. | |
3867 | (struct poly_dr): Same. | |
3868 | (new_poly_dr): Same. | |
3869 | * graphite-poly.c (new_poly_dr): Same. | |
3870 | * graphite-dependences.c (dot_deps): Disable call to system. | |
3871 | ||
3ff4c25d CC |
3872 | 2009-08-28 Cary Coutant <ccoutant@google.com> |
3873 | ||
3874 | PR debug/41063 | |
3875 | * dwarf2out.c (gen_type_die_with_usage): Use proper context for | |
3876 | struct/union/enum types local to a function. | |
3877 | ||
baf4b881 KT |
3878 | 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
3879 | Sebastian Pop <sebastian.pop@amd.com> | |
3880 | ||
3881 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed | |
3882 | pbb_strip_mine_time_depth. Changed the implementation so that | |
3883 | transformation is expressed as a transformation on | |
3884 | time (scatttering) dimensions. Also, ensures that the 2d+1 | |
3885 | scheduling format is preserved. | |
3886 | (pbb_strip_mine_profitable_p): Profitability is based on the | |
3887 | iteration number of a given time (scattering) dimension, | |
3888 | and not on a original loop depth dimension. | |
3889 | (pbb_strip_mine): Call pbb_number_of_iterations_at_time. | |
3890 | (pbb_do_strip_mine): Call psct_dynamic_dim. | |
3891 | * graphite-poly.c (pbb_number_of_iterations_at_time): New. | |
3892 | * graphite-poly.h (pbb_number_of_iterations_at_time): Declared. | |
3893 | (pbb_nb_dynamic_scattering_transform): New. | |
3894 | (psct_dynamic_dim): New. | |
3895 | ||
059a5f9f KT |
3896 | 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
3897 | ||
3898 | * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
3899 | * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
3900 | * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le. | |
3901 | * graphite-interchange.c (build_linearized_memory_access): Same. | |
3902 | (memory_stride_in_loop): Same. | |
3903 | ||
afae0207 SP |
3904 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
3905 | ||
3906 | * graphite-dependences.c (pddr_original_scattering): New. | |
3907 | (graphite_legal_transform_dr): Call pddr_original_scattering. | |
3908 | (dot_deps_1): New. | |
3909 | (dot_deps): New. | |
3910 | * graphite-dependences.h (dot_deps): Declared. | |
3911 | * graphite-poly.c (new_poly_dr): Initialize PDR_ID. | |
3912 | (print_pdr): Print PDR_ID. | |
3913 | * graphite-poly.h (struct poly_dr): Add field id. | |
3914 | (PDR_ID): New. | |
3915 | (pbb_index): New. | |
3916 | * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment. | |
3917 | ||
f8e0bb8b SP |
3918 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
3919 | ||
3920 | * graphite-dependences.c (graphite_carried_dependence_level_k): Do | |
3921 | not delete the original dependence relation. | |
3922 | ||
e37f165f SP |
3923 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
3924 | ||
3925 | * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr. | |
3926 | (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p. | |
3927 | (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p. | |
3928 | (free_poly_ddr): New. | |
3929 | (pddr_is_empty): New. | |
3930 | (dependence_polyhedron_1): Now returns a poly_ddr_p. | |
3931 | (dependence_polyhedron): Same. Remove useless gcc_assert. | |
3932 | Remove fprintfs. | |
3933 | (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr. | |
3934 | (graphite_carried_dependence_level_k): Call pddr_is_empty. | |
3935 | * graphite-dependences.h (enum poly_dependence_kind): New. | |
3936 | (poly_dr_pair): Renamed poly_ddr. Added a field kind. | |
3937 | (PDRP_SOURCE): Renamed PDDR_SOURCE. | |
3938 | (PDRP_SINK): Renamed PDDR_SINK. | |
3939 | (PDRP_DDP): Renamed PDDR_DDP. | |
3940 | (PDDR_KIND): New. | |
3941 | (free_poly_ddr): Declared. | |
3942 | * graphite-poly.c (new_scop): Use the new hash function names. | |
3943 | * graphite-poly.h (struct scop): Renamed field original_pdr_pairs | |
3944 | into original_pddrs. | |
3945 | (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS. | |
3946 | ||
45e76e9f SP |
3947 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
3948 | ||
3949 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper | |
3950 | bounds with LT_EXPR to make niter analysis more precise on code | |
3951 | generated by Graphite. | |
3952 | ||
66b466c3 SP |
3953 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> |
3954 | ||
3955 | * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting. | |
3956 | (graphite_legal_transform_bb): Same. | |
3957 | (poly_drs_may_alias_p): Same. | |
3958 | ||
81fa17da RG |
3959 | 2009-08-28 Richard Guenther <rguenther@suse.de> |
3960 | ||
3961 | * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS. | |
3962 | ||
a858e912 JB |
3963 | 2009-08-28 Jan Beulich <jbeulich@novell.com> |
3964 | ||
3965 | * config/i386/netware.c: Include langhooks.h. | |
3966 | (i386_nlm_encode_section_info): Simplify. | |
3967 | (netware_override_options): Delete. | |
3968 | * config/i386/netware.h (netware_override_options): Delete | |
3969 | declaration. | |
3970 | (OVERRIDE_OPTIONS): Delete definition. | |
3971 | (SUBTARGET_OVERRIDE_OPTIONS): Define. | |
3972 | (ASM_COMMENT_START): Define. | |
3973 | * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define. | |
3974 | ||
39ba7b7d JB |
3975 | 2009-08-28 Jan Beulich <jbeulich@novell.com> |
3976 | ||
3977 | * configure.ac: For in-tree ld, do a plain version check to | |
3978 | determine whether comdat groups are supported. | |
3979 | * configure: Regenerate. | |
3980 | ||
7e49a4b3 OH |
3981 | 2009-08-28 Olivier Hainque <hainque@adacore.com> |
3982 | ||
3983 | * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro, | |
3984 | always defined. Reflect definition or absence of such for | |
3985 | COLLECT_EXPORT_LIST. Readability helper. | |
3986 | (scanfilter): New enum, to help control what symbols | |
3987 | are to be considered or ignored by scan_prog_file. | |
3988 | (enum pass): Rename as "scanpass", moved together with scanfilter | |
3989 | prior to scan_prog_file's prototype. | |
3990 | (scan_prog_file): Accept and honor scanpass and scanfilter arguments. | |
3991 | Group prototype with the scanpass/scanfilter definitions, factorize | |
3992 | head comments for the several implementations at the prototype. | |
3993 | (main): Reorganize the first pass link control to let AIX | |
3994 | drag only the needed frame tables in executables. Prevent | |
3995 | frame tables collection during the scan aimed at static ctors. | |
3996 | Pre-link and scan for frame tables later to compensate. | |
3997 | * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro. | |
3998 | A C statement to issue assembly directives that create a reference | |
3999 | to the given DWARF table identifier label from the current function | |
4000 | section. | |
4001 | * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument | |
4002 | to differentiate first time section entry. Only emit a .data | |
4003 | tables start identifier label the first time around. | |
4004 | (switch_to_frame_table_section): New function. Helper for | |
4005 | output_call_frame_info to switch possibly BACK into the eh_frame | |
4006 | or the debug_frame section depending on FOR_EH. | |
4007 | (output_call_frame_info): Use helper to first enter the proper | |
4008 | frame section. | |
4009 | (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to | |
4010 | emit a link to the frame table start label from each function | |
4011 | section. | |
4012 | * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref): | |
4013 | New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF. | |
4014 | * config/rs6000/rs6000-protos.h: Declare it. | |
4015 | * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define. | |
4016 | ||
a7d6f306 KK |
4017 | 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org> |
4018 | ||
4019 | * config/sh/sh.c (split_branches): Check the result of | |
4020 | next_active_insn. | |
4021 | ||
715fda99 SE |
4022 | 2009-08-27 Steve Ellcey <sje@cup.hp.com> |
4023 | ||
4024 | * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when | |
4025 | using -pthread -fopenmp | |
4026 | ||
2711df18 GP |
4027 | 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com> |
4028 | ||
4029 | * doc/service.texi (service directory): Update URL. | |
4030 | ||
2b3b22d3 UB |
4031 | 2009-08-27 Uros Bizjak <ubizjak@gmail.com> |
4032 | ||
4033 | PR rtl-optimization/40861 | |
4034 | * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to | |
4035 | extract word from a multi-word subreg for negative byte positions. | |
4036 | ||
30ed9d3d TG |
4037 | 2009-08-27 Tristan Gingold <gingold@adacore.com> |
4038 | Douglas B Rupp <rupp@gnat.com> | |
4039 | ||
2b3b22d3 | 4040 | * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry. |
30ed9d3d TG |
4041 | (SECTION_VMS_OVERLAY): Define. |
4042 | (ia64_vms_common_object_attribute): Added. Handle the "common_object" | |
4043 | attribute. | |
4044 | (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op | |
4045 | for common_object. | |
4046 | (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for | |
4047 | common_object declarations. | |
4048 | (ia64_section_type_flags): Set section flag for common_object. | |
4049 | * config/ia64/ia64-protos.h | |
4050 | (ia64_vms_output_aligned_decl_common): Declare. | |
4051 | (ia64_vms_elf_asm_named_section): Declare. | |
4052 | ||
f994f296 MM |
4053 | 2009-08-27 Michael Matz <matz@suse.de> |
4054 | ||
4055 | * expr.c (expand_expr_real_2): New function taking exploded | |
4056 | unary or binary expression, split out from ... | |
4057 | (expand_expr_real_1): ... here. Move over all unary/binary | |
4058 | switch parts to above function, in particular these codes: | |
4059 | PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR, | |
4060 | MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR, | |
4061 | ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR, | |
4062 | FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR, | |
4063 | FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR, | |
4064 | BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR, | |
4065 | BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR, | |
4066 | LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR, | |
4067 | NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, | |
4068 | UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR, | |
4069 | WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR, | |
4070 | VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR, | |
4071 | VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR, | |
4072 | VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR, | |
4073 | VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR, | |
4074 | VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR, | |
4075 | VEC_PACK_FIX_TRUNC_EXPR. | |
4076 | (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the | |
4077 | full expression. | |
4078 | ||
c6a21142 RG |
4079 | 2009-08-27 Richard Guenther <rguenther@suse.de> |
4080 | ||
4081 | * gengtype.c (main): Handle uint64_t. | |
4082 | * ipa-utils.c (get_base_var): Indent properly. | |
4083 | * tree-ssa-live.c (debug_scope_block): New function. | |
4084 | * tree-flow.h (debug_scope_block): Declare. | |
4085 | * tree-ssa-copy.c (replace_exp_1): Add vertical space. | |
4086 | * basic-block.h (enum profile_status): Rename to | |
4087 | enum profile_status_d. | |
4088 | (x_profile_status): Adjust type. | |
4089 | ||
7842a9db DS |
4090 | 2009-08-27 Dodji Seketeli <dodji@redhat.com> |
4091 | ||
d1eda136 | 4092 | PR debug/41170 |
7842a9db DS |
4093 | * dwarf2out.c (get_context_die): Declare this static function. |
4094 | (gen_type_die_with_usage): Make sure a DIE is a generated for | |
4095 | the context of a typedef. | |
4096 | ||
98f6d48a AS |
4097 | 2009-08-26 Anatoly Sokolov <aesok@post.ru> |
4098 | ||
4099 | * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack | |
4100 | switch. | |
4101 | ||
6f5a62e9 RS |
4102 | 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com> |
4103 | ||
4104 | * config/mips/mips-protos.h (mips_output_sync): Declare. | |
4105 | (mips_sync_loop_insns): Likewise. | |
4106 | (mips_output_sync_loop): Replace first two parameters with an rtx. | |
4107 | * config/mips/mips.c (mips_multi_member): New structure. | |
4108 | (mips_multi_members): New variable. | |
4109 | (mips_multi_start): New function. | |
4110 | (mips_multi_add): Likewise. | |
4111 | (mips_multi_add_insn): Likewise. | |
4112 | (mips_multi_add_label): Likewise. | |
4113 | (mips_multi_last_index): Likewise. | |
4114 | (mips_multi_copy_insn): Likewise. | |
4115 | (mips_multi_set_operand): Likewise. | |
4116 | (mips_multi_write): Likewise. | |
4117 | (mips_print_operand_punctuation): Remove '%|' and '%-'. | |
4118 | (mips_init_print_operand_punct): Update accordingly. | |
4119 | (mips_start_ll_sc_sync_block): New function. | |
4120 | (mips_end_ll_sc_sync_block): Likewise. | |
4121 | (mips_output_sync): Likewise. | |
4122 | (mips_sync_insn1_template): Likewise. | |
4123 | (mips_sync_insn2_template): Likewise. | |
4124 | (mips_get_sync_operand): Likewise. | |
4125 | (mips_process_sync_loop): Likewise. | |
4126 | (mips_output_sync_loop): Use mips_process_sync_loop. | |
4127 | (mips_sync_loop_insns): New function. | |
4128 | * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete. | |
4129 | (MIPS_COMPARE_AND_SWAP_12): Likewise. | |
4130 | (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise. | |
4131 | (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise. | |
4132 | (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise. | |
4133 | (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise. | |
4134 | (MIPS_SYNC_OLD_OP_12): Likewise. | |
4135 | (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise. | |
4136 | (MIPS_SYNC_NEW_OP_12): Likewise. | |
4137 | (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise. | |
4138 | (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise. | |
4139 | (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise. | |
4140 | (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise. | |
4141 | (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise. | |
4142 | (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise. | |
4143 | * config/mips/mips.md (sync_mem): New attribute. | |
4144 | (sync_oldval, sync_newval, sync_inclusive_mask): Likewise. | |
4145 | (sync_exclusive_mask, sync_required_oldval): Likewise. | |
4146 | (sync_insn1_op2, sync_insn1, sync_insn2): Likewise. | |
4147 | (sync_release_barrier): Likewise. | |
4148 | (length): Handle sync loops. | |
4149 | (sync): Use mips_output_sync. | |
4150 | * config/mips/sync.md (*memory_barrier): Use mips_output_sync. | |
4151 | (sync_compare_and_swap<mode>): Set the new sync_* attributes | |
4152 | and use mips_output_sync_loop. | |
4153 | (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise. | |
4154 | (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise. | |
4155 | (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise. | |
4156 | (sync_old_add<mode>, sync_old_sub<mode>): Likewise. | |
4157 | (sync_new_add<mode>, sync_new_sub<mode>): Likewise. | |
4158 | (sync_<optab><mode>, sync_old_<optab><mode>): Likewise. | |
4159 | (sync_new_<optab><mode>, sync_nand<mode>): Likewise. | |
4160 | (sync_old_nand<mode>, sync_new_nand<mode>): Likewise. | |
4161 | (sync_lock_test_and_set<mode>, test_and_set_12): Likewise. | |
4162 | ||
6b8b9e42 RG |
4163 | 2009-08-26 Richard Guenther <rguenther@suse.de> |
4164 | ||
4165 | PR middle-end/41163 | |
4166 | * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if | |
4167 | the types to not match. | |
4168 | * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR | |
4169 | verification. | |
4170 | * tree-ssa.c (useless_type_conversion_p): Conversions to | |
4171 | pointers to unprototyped functions are useless. | |
4172 | ||
bacd3fb6 RG |
4173 | 2009-08-26 Richard Guenther <rguenther@suse.de> |
4174 | ||
5fa162c0 CD |
4175 | * tree-ssa-structalias.c (create_variable_info_for): Remove strange |
4176 | whole-program condition, prepare to be called for non-globals. | |
bacd3fb6 RG |
4177 | (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE |
4178 | params build a representative with known type and track its fields. | |
4179 | ||
7b3d1847 UB |
4180 | 2009-08-26 Uros Bizjak <ubizjak@gmail.com> |
4181 | ||
4182 | * config/alpha/sync.md: Update comment about unpredictable LL/SC lock | |
4183 | clearing by a taken branch. | |
4184 | (sync_<fetchop_name><mode>): Split when epilogue_completed is set, | |
4185 | effectively after bbro pass. | |
4186 | (sync_nand<mode>): Ditto. | |
4187 | (sync_old_<fetchop_name><mode>): Ditto. | |
4188 | (sync_old_nand<mode>): Ditto. | |
4189 | (sync_new_<fetchop_name><mode>): Dito. | |
4190 | (sync_new_nand<mode>): Ditto. | |
4191 | (sync_compare_and_swap<mode>_1): Ditto. | |
4192 | (*sync_compare_and_swap<mode>): Ditto. | |
4193 | (sync_lock_test_and_set<mode>_1): Ditto. | |
4194 | ("sync_lock_test_and_set<mode>): Ditto. | |
4195 | ||
edb89024 DR |
4196 | 2009-08-25 Douglas B Rupp <rupp@gnat.com> |
4197 | ||
4198 | * hwint.h (HOST_LONG_FORMAT): New macro | |
4199 | * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c: | |
4200 | Use HOST_PTR_PRINTF. | |
4201 | * system.h (HOST_PTR_PRINTF): Resurrect old macro | |
4202 | * doc/hostconfig.texi (HOST_LONG_FORMAT): Document. | |
4203 | (HOST_PTR_PRINTF): Document. | |
4204 | ||
5c1a2bb1 JH |
4205 | 2009-08-25 Jan Hubicka <jh@suse.cz> |
4206 | ||
4207 | * config/i386/bmmintrin.h: Replace by #error. | |
4208 | ||
4209 | Revert: | |
4210 | Michael Meissner <michael.meissner@amd.com> | |
4211 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
4212 | Tony Linthicum <tony.linthicum@amd.com> | |
4213 | ||
4214 | * config/i386/i386.h (TARGET_SSE5): New macro for SSE5. | |
4215 | (TARGET_ROUND): New macro for the round/ptest instructions which | |
4216 | are shared between SSE4.1 and SSE5. | |
4217 | (OPTION_MASK_ISA_ROUND): Ditto. | |
4218 | (OPTION_ISA_ROUND): Ditto. | |
4219 | (TARGET_FUSED_MADD): New macro for -mfused-madd swtich. | |
4220 | (TARGET_CPU_CPP_BUILTINS): Add SSE5 support. | |
4221 | ||
4222 | * config/i386/i386.opt (-msse5): New switch for SSE5 support. | |
4223 | (-mfused-madd): New switch to give users control over whether the | |
4224 | compiler optimizes to use the multiply/add SSE5 instructions. | |
4225 | ||
4226 | * config/i386/i386.c (enum pta_flags): Add PTA_SSE5. | |
4227 | (ix86_handle_option): Turn off 3dnow if -msse5. | |
4228 | (override_options): Add SSE5 support. | |
4229 | (print_operand): %Y prints comparison codes for SSE5 com/pcom | |
4230 | instructions. | |
4231 | (ix86_expand_sse_movcc): Add SSE5 support. | |
4232 | (ix86_expand_sse5_unpack): New function to use pperm to unpack a | |
4233 | vector type to the next largest size. | |
4234 | (ix86_expand_sse5_pack): New function to use pperm to pack a | |
4235 | vector type to the next smallest size. | |
4236 | (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic. | |
4237 | (IX86_BUILTIN_FMADDSD): Ditto. | |
4238 | (IX86_BUILTIN_FMADDPS): Ditto. | |
4239 | (IX86_BUILTIN_FMADDPD): Ditto. | |
4240 | (IX86_BUILTIN_FMSUBSS): Ditto. | |
4241 | (IX86_BUILTIN_FMSUBSD): Ditto. | |
4242 | (IX86_BUILTIN_FMSUBPS): Ditto. | |
4243 | (IX86_BUILTIN_FMSUBPD): Ditto. | |
4244 | (IX86_BUILTIN_FNMADDSS): Ditto. | |
4245 | (IX86_BUILTIN_FNMADDSD): Ditto. | |
4246 | (IX86_BUILTIN_FNMADDPS): Ditto. | |
4247 | (IX86_BUILTIN_FNMADDPD): Ditto. | |
4248 | (IX86_BUILTIN_FNMSUBSS): Ditto. | |
4249 | (IX86_BUILTIN_FNMSUBSD): Ditto. | |
4250 | (IX86_BUILTIN_FNMSUBPS): Ditto. | |
4251 | (IX86_BUILTIN_FNMSUBPD): Ditto. | |
4252 | (IX86_BUILTIN_PCMOV_V2DI): Ditto. | |
4253 | (IX86_BUILTIN_PCMOV_V4SI): Ditto. | |
4254 | (IX86_BUILTIN_PCMOV_V8HI): Ditto. | |
4255 | (IX86_BUILTIN_PCMOV_V16QI): Ditto. | |
4256 | (IX86_BUILTIN_PCMOV_V4SF): Ditto. | |
4257 | (IX86_BUILTIN_PCMOV_V2DF): Ditto. | |
4258 | (IX86_BUILTIN_PPERM): Ditto. | |
4259 | (IX86_BUILTIN_PERMPS): Ditto. | |
4260 | (IX86_BUILTIN_PERMPD): Ditto. | |
4261 | (IX86_BUILTIN_PMACSSWW): Ditto. | |
4262 | (IX86_BUILTIN_PMACSWW): Ditto. | |
4263 | (IX86_BUILTIN_PMACSSWD): Ditto. | |
4264 | (IX86_BUILTIN_PMACSWD): Ditto. | |
4265 | (IX86_BUILTIN_PMACSSDD): Ditto. | |
4266 | (IX86_BUILTIN_PMACSDD): Ditto. | |
4267 | (IX86_BUILTIN_PMACSSDQL): Ditto. | |
4268 | (IX86_BUILTIN_PMACSSDQH): Ditto. | |
4269 | (IX86_BUILTIN_PMACSDQL): Ditto. | |
4270 | (IX86_BUILTIN_PMACSDQH): Ditto. | |
4271 | (IX86_BUILTIN_PMADCSSWD): Ditto. | |
4272 | (IX86_BUILTIN_PMADCSWD): Ditto. | |
4273 | (IX86_BUILTIN_PHADDBW): Ditto. | |
4274 | (IX86_BUILTIN_PHADDBD): Ditto. | |
4275 | (IX86_BUILTIN_PHADDBQ): Ditto. | |
4276 | (IX86_BUILTIN_PHADDWD): Ditto. | |
4277 | (IX86_BUILTIN_PHADDWQ): Ditto. | |
4278 | (IX86_BUILTIN_PHADDDQ): Ditto. | |
4279 | (IX86_BUILTIN_PHADDUBW): Ditto. | |
4280 | (IX86_BUILTIN_PHADDUBD): Ditto. | |
4281 | (IX86_BUILTIN_PHADDUBQ): Ditto. | |
4282 | (IX86_BUILTIN_PHADDUWD): Ditto. | |
4283 | (IX86_BUILTIN_PHADDUWQ): Ditto. | |
4284 | (IX86_BUILTIN_PHADDUDQ): Ditto. | |
4285 | (IX86_BUILTIN_PHSUBBW): Ditto. | |
4286 | (IX86_BUILTIN_PHSUBWD): Ditto. | |
4287 | (IX86_BUILTIN_PHSUBDQ): Ditto. | |
4288 | (IX86_BUILTIN_PROTB): Ditto. | |
4289 | (IX86_BUILTIN_PROTW): Ditto. | |
4290 | (IX86_BUILTIN_PROTD): Ditto. | |
4291 | (IX86_BUILTIN_PROTQ): Ditto. | |
4292 | (IX86_BUILTIN_PROTB_IMM): Ditto. | |
4293 | (IX86_BUILTIN_PROTW_IMM): Ditto. | |
4294 | (IX86_BUILTIN_PROTD_IMM): Ditto. | |
4295 | (IX86_BUILTIN_PROTQ_IMM): Ditto. | |
4296 | (IX86_BUILTIN_PSHLB): Ditto. | |
4297 | (IX86_BUILTIN_PSHLW): Ditto. | |
4298 | (IX86_BUILTIN_PSHLD): Ditto. | |
4299 | (IX86_BUILTIN_PSHLQ): Ditto. | |
4300 | (IX86_BUILTIN_PSHAB): Ditto. | |
4301 | (IX86_BUILTIN_PSHAW): Ditto. | |
4302 | (IX86_BUILTIN_PSHAD): Ditto. | |
4303 | (IX86_BUILTIN_PSHAQ): Ditto. | |
4304 | (IX86_BUILTIN_FRCZSS): Ditto. | |
4305 | (IX86_BUILTIN_FRCZSD): Ditto. | |
4306 | (IX86_BUILTIN_FRCZPS): Ditto. | |
4307 | (IX86_BUILTIN_FRCZPD): Ditto. | |
4308 | (IX86_BUILTIN_CVTPH2PS): Ditto. | |
4309 | (IX86_BUILTIN_CVTPS2PH): Ditto. | |
4310 | (IX86_BUILTIN_COMEQSS): Ditto. | |
4311 | (IX86_BUILTIN_COMNESS): Ditto. | |
4312 | (IX86_BUILTIN_COMLTSS): Ditto. | |
4313 | (IX86_BUILTIN_COMLESS): Ditto. | |
4314 | (IX86_BUILTIN_COMGTSS): Ditto. | |
4315 | (IX86_BUILTIN_COMGESS): Ditto. | |
4316 | (IX86_BUILTIN_COMUEQSS): Ditto. | |
4317 | (IX86_BUILTIN_COMUNESS): Ditto. | |
4318 | (IX86_BUILTIN_COMULTSS): Ditto. | |
4319 | (IX86_BUILTIN_COMULESS): Ditto. | |
4320 | (IX86_BUILTIN_COMUGTSS): Ditto. | |
4321 | (IX86_BUILTIN_COMUGESS): Ditto. | |
4322 | (IX86_BUILTIN_COMORDSS): Ditto. | |
4323 | (IX86_BUILTIN_COMUNORDSS): Ditto. | |
4324 | (IX86_BUILTIN_COMFALSESS): Ditto. | |
4325 | (IX86_BUILTIN_COMTRUESS): Ditto. | |
4326 | (IX86_BUILTIN_COMEQSD): Ditto. | |
4327 | (IX86_BUILTIN_COMNESD): Ditto. | |
4328 | (IX86_BUILTIN_COMLTSD): Ditto. | |
4329 | (IX86_BUILTIN_COMLESD): Ditto. | |
4330 | (IX86_BUILTIN_COMGTSD): Ditto. | |
4331 | (IX86_BUILTIN_COMGESD): Ditto. | |
4332 | (IX86_BUILTIN_COMUEQSD): Ditto. | |
4333 | (IX86_BUILTIN_COMUNESD): Ditto. | |
4334 | (IX86_BUILTIN_COMULTSD): Ditto. | |
4335 | (IX86_BUILTIN_COMULESD): Ditto. | |
4336 | (IX86_BUILTIN_COMUGTSD): Ditto. | |
4337 | (IX86_BUILTIN_COMUGESD): Ditto. | |
4338 | (IX86_BUILTIN_COMORDSD): Ditto. | |
4339 | (IX86_BUILTIN_COMUNORDSD): Ditto. | |
4340 | (IX86_BUILTIN_COMFALSESD): Ditto. | |
4341 | (IX86_BUILTIN_COMTRUESD): Ditto. | |
4342 | (IX86_BUILTIN_COMEQPS): Ditto. | |
4343 | (IX86_BUILTIN_COMNEPS): Ditto. | |
4344 | (IX86_BUILTIN_COMLTPS): Ditto. | |
4345 | (IX86_BUILTIN_COMLEPS): Ditto. | |
4346 | (IX86_BUILTIN_COMGTPS): Ditto. | |
4347 | (IX86_BUILTIN_COMGEPS): Ditto. | |
4348 | (IX86_BUILTIN_COMUEQPS): Ditto. | |
4349 | (IX86_BUILTIN_COMUNEPS): Ditto. | |
4350 | (IX86_BUILTIN_COMULTPS): Ditto. | |
4351 | (IX86_BUILTIN_COMULEPS): Ditto. | |
4352 | (IX86_BUILTIN_COMUGTPS): Ditto. | |
4353 | (IX86_BUILTIN_COMUGEPS): Ditto. | |
4354 | (IX86_BUILTIN_COMORDPS): Ditto. | |
4355 | (IX86_BUILTIN_COMUNORDPS): Ditto. | |
4356 | (IX86_BUILTIN_COMFALSEPS): Ditto. | |
4357 | (IX86_BUILTIN_COMTRUEPS): Ditto. | |
4358 | (IX86_BUILTIN_COMEQPD): Ditto. | |
4359 | (IX86_BUILTIN_COMNEPD): Ditto. | |
4360 | (IX86_BUILTIN_COMLTPD): Ditto. | |
4361 | (IX86_BUILTIN_COMLEPD): Ditto. | |
4362 | (IX86_BUILTIN_COMGTPD): Ditto. | |
4363 | (IX86_BUILTIN_COMGEPD): Ditto. | |
4364 | (IX86_BUILTIN_COMUEQPD): Ditto. | |
4365 | (IX86_BUILTIN_COMUNEPD): Ditto. | |
4366 | (IX86_BUILTIN_COMULTPD): Ditto. | |
4367 | (IX86_BUILTIN_COMULEPD): Ditto. | |
4368 | (IX86_BUILTIN_COMUGTPD): Ditto. | |
4369 | (IX86_BUILTIN_COMUGEPD): Ditto. | |
4370 | (IX86_BUILTIN_COMORDPD): Ditto. | |
4371 | (IX86_BUILTIN_COMUNORDPD): Ditto. | |
4372 | (IX86_BUILTIN_COMFALSEPD): Ditto. | |
4373 | (IX86_BUILTIN_COMTRUEPD): Ditto. | |
4374 | (IX86_BUILTIN_PCOMEQUB): Ditto. | |
4375 | (IX86_BUILTIN_PCOMNEUB): Ditto. | |
4376 | (IX86_BUILTIN_PCOMLTUB): Ditto. | |
4377 | (IX86_BUILTIN_PCOMLEUB): Ditto. | |
4378 | (IX86_BUILTIN_PCOMGTUB): Ditto. | |
4379 | (IX86_BUILTIN_PCOMGEUB): Ditto. | |
4380 | (IX86_BUILTIN_PCOMFALSEUB): Ditto. | |
4381 | (IX86_BUILTIN_PCOMTRUEUB): Ditto. | |
4382 | (IX86_BUILTIN_PCOMEQUW): Ditto. | |
4383 | (IX86_BUILTIN_PCOMNEUW): Ditto. | |
4384 | (IX86_BUILTIN_PCOMLTUW): Ditto. | |
4385 | (IX86_BUILTIN_PCOMLEUW): Ditto. | |
4386 | (IX86_BUILTIN_PCOMGTUW): Ditto. | |
4387 | (IX86_BUILTIN_PCOMGEUW): Ditto. | |
4388 | (IX86_BUILTIN_PCOMFALSEUW): Ditto. | |
4389 | (IX86_BUILTIN_PCOMTRUEUW): Ditto. | |
4390 | (IX86_BUILTIN_PCOMEQUD): Ditto. | |
4391 | (IX86_BUILTIN_PCOMNEUD): Ditto. | |
4392 | (IX86_BUILTIN_PCOMLTUD): Ditto. | |
4393 | (IX86_BUILTIN_PCOMLEUD): Ditto. | |
4394 | (IX86_BUILTIN_PCOMGTUD): Ditto. | |
4395 | (IX86_BUILTIN_PCOMGEUD): Ditto. | |
4396 | (IX86_BUILTIN_PCOMFALSEUD): Ditto. | |
4397 | (IX86_BUILTIN_PCOMTRUEUD): Ditto. | |
4398 | (IX86_BUILTIN_PCOMEQUQ): Ditto. | |
4399 | (IX86_BUILTIN_PCOMNEUQ): Ditto. | |
4400 | (IX86_BUILTIN_PCOMLTUQ): Ditto. | |
4401 | (IX86_BUILTIN_PCOMLEUQ): Ditto. | |
4402 | (IX86_BUILTIN_PCOMGTUQ): Ditto. | |
4403 | (IX86_BUILTIN_PCOMGEUQ): Ditto. | |
4404 | (IX86_BUILTIN_PCOMFALSEUQ): Ditto. | |
4405 | (IX86_BUILTIN_PCOMTRUEUQ): Ditto. | |
4406 | (IX86_BUILTIN_PCOMEQB): Ditto. | |
4407 | (IX86_BUILTIN_PCOMNEB): Ditto. | |
4408 | (IX86_BUILTIN_PCOMLTB): Ditto. | |
4409 | (IX86_BUILTIN_PCOMLEB): Ditto. | |
4410 | (IX86_BUILTIN_PCOMGTB): Ditto. | |
4411 | (IX86_BUILTIN_PCOMGEB): Ditto. | |
4412 | (IX86_BUILTIN_PCOMFALSEB): Ditto. | |
4413 | (IX86_BUILTIN_PCOMTRUEB): Ditto. | |
4414 | (IX86_BUILTIN_PCOMEQW): Ditto. | |
4415 | (IX86_BUILTIN_PCOMNEW): Ditto. | |
4416 | (IX86_BUILTIN_PCOMLTW): Ditto. | |
4417 | (IX86_BUILTIN_PCOMLEW): Ditto. | |
4418 | (IX86_BUILTIN_PCOMGTW): Ditto. | |
4419 | (IX86_BUILTIN_PCOMGEW): Ditto. | |
4420 | (IX86_BUILTIN_PCOMFALSEW): Ditto. | |
4421 | (IX86_BUILTIN_PCOMTRUEW): Ditto. | |
4422 | (IX86_BUILTIN_PCOMEQD): Ditto. | |
4423 | (IX86_BUILTIN_PCOMNED): Ditto. | |
4424 | (IX86_BUILTIN_PCOMLTD): Ditto. | |
4425 | (IX86_BUILTIN_PCOMLED): Ditto. | |
4426 | (IX86_BUILTIN_PCOMGTD): Ditto. | |
4427 | (IX86_BUILTIN_PCOMGED): Ditto. | |
4428 | (IX86_BUILTIN_PCOMFALSED): Ditto. | |
4429 | (IX86_BUILTIN_PCOMTRUED): Ditto. | |
4430 | (IX86_BUILTIN_PCOMEQQ): Ditto. | |
4431 | (IX86_BUILTIN_PCOMNEQ): Ditto. | |
4432 | (IX86_BUILTIN_PCOMLTQ): Ditto. | |
4433 | (IX86_BUILTIN_PCOMLEQ): Ditto. | |
4434 | (IX86_BUILTIN_PCOMGTQ): Ditto. | |
4435 | (IX86_BUILTIN_PCOMGEQ): Ditto. | |
4436 | (IX86_BUILTIN_PCOMFALSEQ): Ditto. | |
4437 | (IX86_BUILTIN_PCOMTRUEQ): Ditto. | |
4438 | (enum multi_arg_type): New enum for describing the various SSE5 | |
4439 | intrinsic argument types. | |
4440 | (bdesc_multi_arg): New table for SSE5 intrinsics. | |
4441 | (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support. | |
4442 | (ix86_expand_multi_arg_builtin): New function for creating SSE5 | |
4443 | intrinsics. | |
4444 | (ix86_expand_builtin): Add SSE5 intrinsic support. | |
4445 | (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4 | |
4446 | operand instructions. | |
4447 | (ix86_expand_sse5_multiple_memory): New function to split the | |
4448 | second memory reference from SSE5 instructions. | |
4449 | (type_has_variadic_args_p): Delete in favor of stdarg_p. | |
4450 | (ix86_return_pops_args): Use stdarg_p to determine if the function | |
4451 | has variable arguments. | |
4452 | (ix86_setup_incoming_varargs): Ditto. | |
4453 | (x86_this_parameter): Ditto. | |
4454 | ||
4455 | * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add | |
4456 | declaration. | |
4457 | (ix86_expand_sse5_pack): Ditto. | |
4458 | (ix86_sse5_valid_op_p): Ditto. | |
4459 | (ix86_expand_sse5_multiple_memory): Ditto. | |
4460 | ||
4461 | * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC | |
4462 | constant for SSE5 support. | |
4463 | (UNSPEC_SSE5_UNSIGNED_CMP): Ditto. | |
4464 | (UNSPEC_SSE5_TRUEFALSE): Ditto. | |
4465 | (UNSPEC_SSE5_PERMUTE): Ditto. | |
4466 | (UNSPEC_SSE5_ASHIFT): Ditto. | |
4467 | (UNSPEC_SSE5_LSHIFT): Ditto. | |
4468 | (UNSPEC_FRCZ): Ditto. | |
4469 | (UNSPEC_CVTPH2PS): Ditto. | |
4470 | (UNSPEC_CVTPS2PH): Ditto. | |
4471 | (PCOM_FALSE): Add new constant for true/false SSE5 comparisons. | |
4472 | (PCOM_TRUE): Ditto. | |
4473 | (COM_FALSE_S): Ditto. | |
4474 | (COM_FALSE_P): Ditto. | |
4475 | (COM_TRUE_S): Ditto. | |
4476 | (COM_TRUE_P): Ditto. | |
4477 | (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types. | |
4478 | (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg | |
4479 | types. | |
4480 | (memory attribute): Ditto. | |
4481 | (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1. | |
4482 | Use SSE4_1_ROUND_* constants instead of hard coded numbers. | |
4483 | (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1. | |
4484 | (floor<mode>2): Ditto. | |
4485 | (ceil<mode>2): Ditto. | |
4486 | (btrunc<mode>2): Ditto. | |
4487 | (nearbyintdf2): Ditto. | |
4488 | (nearbyintsf2): Ditto. | |
4489 | (sse_setccsf): Disable if SSE5. | |
4490 | (sse_setccdf): Ditto. | |
4491 | (sse5_setcc<mode>): New support for SSE5 conditional move. | |
4492 | (sse5_pcmov_<mode>): Ditto. | |
4493 | ||
4494 | * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5. | |
4495 | (SSEMODEF4): Ditto. | |
4496 | (SSEMODEF2P): Ditto. | |
4497 | (ssemodesuffixf4): New mode attribute for SSE5. | |
4498 | (ssemodesuffixf2s): Ditto. | |
4499 | (ssemodesuffixf2c): Ditto. | |
4500 | (sserotatemax): Ditto. | |
4501 | (ssescalarmode): Ditto. | |
4502 | (sse_maskcmpv4sf3): Disable if SSE5. | |
4503 | (sse_maskcmpv2df3): Ditto. | |
4504 | (sse_vmmaskcmpv4sf3): Ditto. | |
2b3b22d3 | 4505 | (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions. |
5c1a2bb1 JH |
4506 | (sse5_vmfmadd<mode>4): Ditto. |
4507 | (sse5_fmsub<mode>4): Ditto. | |
4508 | (sse5_vmfmsub<mode>4): Ditto. | |
4509 | (sse5_fnmadd<mode>4): Ditto. | |
4510 | (sse5_vmfnmadd<mode>4): Ditto. | |
4511 | (sse5_fnmsub<mode>4): Ditto. | |
4512 | (sse5_vmfnmsub<mode>4): Ditto. | |
4513 | (sse5i_fmadd<mode>4): Ditto. | |
4514 | (sse5i_fmsub<mode>4): Ditto. | |
4515 | (sse5i_fnmadd<mode>4): Ditto. | |
4516 | (sse5i_fnmsub<mode>4): Ditto. | |
4517 | (sse5i_vmfmadd<mode>4): Ditto. | |
4518 | (sse5i_vmfmsub<mode>4): Ditto. | |
4519 | (sse5i_vmfnmadd<mode>4): Ditto. | |
4520 | (sse5i_vmfnmsub<mode>4): Ditto. | |
4521 | (mulv16qi3): Add SSE5 support. | |
4522 | (mulv4si3): Ditto. | |
4523 | (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5. | |
4524 | (sse2_mulv4si3): Disable if SSE5. | |
4525 | (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1. | |
4526 | (sse4_1_roundps): Ditto. | |
4527 | (sse4_1_roundsd): Ditto. | |
4528 | (sse4_1_roundss): Ditto. | |
4529 | (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will | |
4530 | be generated. | |
4531 | (sse_maskcmpsf3): Ditto. | |
4532 | (sse_vmmaskcmpv4sf3): Ditto. | |
4533 | (sse2_maskcmpv2df3): Ditto. | |
4534 | (sse2_maskcmpdf3): Ditto. | |
4535 | (sse2_vmmaskcmpv2df3): Ditto. | |
4536 | (sse2_eq<mode>3): Ditto. | |
4537 | (sse2_gt<mode>3): Ditto. | |
4538 | (sse5_pcmov_<mode>): Add SSE5 support. | |
4539 | (vec_unpacku_hi_v16qi): Ditto. | |
4540 | (vec_unpacks_hi_v16qi): Ditto. | |
4541 | (vec_unpacku_lo_v16qi): Ditto. | |
4542 | (vec_unpacks_lo_v16qi): Ditto. | |
4543 | (vec_unpacku_hi_v8hi): Ditto. | |
4544 | (vec_unpacks_hi_v8hi): Ditto. | |
4545 | (vec_unpacku_lo_v8hi): Ditto. | |
4546 | (vec_unpacks_lo_v8hi): Ditto. | |
4547 | (vec_unpacku_hi_v4si): Ditto. | |
4548 | (vec_unpacks_hi_v4si): Ditto. | |
4549 | (vec_unpacku_lo_v4si): Ditto. | |
4550 | (vec_unpacks_lo_v4si): Ditto. | |
4551 | (sse5_pmacsww): New SSE5 intrinsic insn. | |
4552 | (sse5_pmacssww): Ditto. | |
4553 | (sse5_pmacsdd): Ditto. | |
4554 | (sse5_pmacssdd): Ditto. | |
4555 | (sse5_pmacssdql): Ditto. | |
4556 | (sse5_pmacssdqh): Ditto. | |
4557 | (sse5_pmacsdqh): Ditto. | |
4558 | (sse5_pmacsswd): Ditto. | |
4559 | (sse5_pmacswd): Ditto. | |
4560 | (sse5_pmadcsswd): Ditto. | |
4561 | (sse5_pmadcswd): Ditto. | |
4562 | (sse5_pcmov_<move>): Conditional move support on SSE5. | |
4563 | (sse5_phaddbw): New SSE5 intrinsic insn. | |
4564 | (sse5_phaddbd): Ditto. | |
4565 | (sse5_phaddbq): Ditto. | |
4566 | (sse5_phaddwd): Ditto. | |
4567 | (sse5_phaddwq): Ditto. | |
4568 | (sse5_phadddq): Ditto. | |
4569 | (sse5_phaddubw): Ditto. | |
4570 | (sse5_phaddubd): Ditto. | |
4571 | (sse5_phaddubq): Ditto. | |
4572 | (sse5_phadduwd): Ditto. | |
4573 | (sse5_phadduwq): Ditto. | |
4574 | (sse5_phaddudq): Ditto. | |
4575 | (sse5_phsubbw): Ditto. | |
4576 | (sse5_phsubwd): Ditto. | |
4577 | (sse5_phsubdq): Ditto. | |
4578 | (sse5_pperm): Ditto. | |
4579 | (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5. | |
4580 | (sse5_pperm_zero_v16qi_v8hi): Ditto. | |
4581 | (sse5_pperm_sign_v8hi_v4si): Ditto. | |
4582 | (sse5_pperm_zero_v8hi_v4si): Ditto. | |
4583 | (sse5_pperm_sign_v4si_v2di): Ditto. | |
4584 | (sse5_pperm_sign_v4si_v2di): Ditto. | |
4585 | (sse5_pperm_pack_v2di_v4si): Ditto. | |
4586 | (sse5_pperm_pack_v4si_v8hi): Ditto. | |
4587 | (sse5_pperm_pack_v8hi_v16qi): Ditto. | |
4588 | (sse5_perm<mode>): New SSE5 intrinsic insn. | |
4589 | (rotl<mode>3): Ditto. | |
4590 | (sse5_rotl<mode>3): Ditto. | |
4591 | (sse5_ashl<mode>3): Ditto. | |
4592 | (sse5_lshl<mode>3): Ditto. | |
4593 | (sse5_frcz<mode>2): Ditto. | |
4594 | (sse5s_frcz<mode>2): Ditto. | |
4595 | (sse5_cvtph2ps): Ditto. | |
4596 | (sse5_cvtps2ph): Ditto. | |
4597 | (sse5_vmmaskcmp<mode>3): Ditto. | |
4598 | (sse5_com_tf<mode>3): Ditto. | |
4599 | (sse5_maskcmp<mode>3): Ditto. | |
4600 | (sse5_maskcmp_uns<mode>3): Ditto. | |
4601 | (sse5_maskcmp_uns2<mode>3): Ditto. | |
4602 | (sse5_pcom_tf<mode>3): Ditto. | |
7b3d1847 UB |
4603 | |
4604 | * config/i386/predicates.md (sse5_comparison_float_operator): | |
4605 | New predicate to match the comparison operators supported by | |
4606 | the SSE5 com instruction. | |
5c1a2bb1 JH |
4607 | (ix86_comparison_int_operator): New predicate to match just the |
4608 | signed int comparisons. | |
4609 | (ix86_comparison_uns_operator): New predicate to match just the | |
4610 | unsigned int comparisons. | |
4611 | ||
4612 | * doc/invoke.texi (-msse5): Add documentation. | |
4613 | (-mfused-madd): Ditto. | |
4614 | ||
4615 | * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics. | |
4616 | ||
4617 | * config.gcc (i[34567]86-*-*): Include bmmintrin.h and | |
4618 | mmintrin-common.h. | |
4619 | (x86_64-*-*): Ditto. | |
4620 | ||
4621 | * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit. | |
4622 | ||
4623 | * config/i386/bmmintrin.h: New file, provide common x86 compiler | |
4624 | intrinisics for SSE5. | |
4625 | ||
4626 | * config/i386/smmintrin.h: Move instructions shared with SSE5 to | |
4627 | mmintrin-common.h. | |
4628 | ||
4629 | * config/i386/mmintrin-common.h: New file, to contain common | |
4630 | instructions between SSE4.1 and SSE5. | |
4631 | ||
4632 | * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use | |
4633 | FOREACH_FUNCTION_ARGS to iterate over the argument list. | |
4634 | (gen_regparm_prefix): Ditto. | |
4635 | ||
4636 | * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use | |
4637 | FOREACH_FUNCTION_ARGS to iterate over the argument list. Use | |
4638 | prototype_p to determine if a function is prototyped. | |
4639 | ||
f4e8a943 VV |
4640 | 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com> |
4641 | ||
4642 | * c-common.c (c_common_reswords) add the alignof keyword, | |
4643 | with same RID as __alignof and __alignof__ | |
4644 | ||
7b5cbb57 AS |
4645 | 2009-08-25 Anatoly Sokolov <aesok@post.ru> |
4646 | ||
4647 | * hooks.h (hook_bool_const_int_const_int_true): Declare. | |
4648 | * hooks.c (hook_bool_const_int_const_int_true): New function. | |
4649 | * target.h (struct gcc_target): Add can_eliminate field. | |
4650 | * target-def.h (TARGET_CAN_ELIMINATE): Define. | |
4651 | (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE. | |
4652 | * ira.c (setup_eliminable_regset): Use can_eliminate target hook. | |
4653 | * reload1.c (update_eliminables, init_elim_table): (Ditto.). | |
4654 | (elim_table): Revise comment. | |
4655 | * system.h (CAN_ELIMINATE): Poison. | |
4656 | * defaults.h (CAN_ELIMINATE): Remove. | |
4657 | * doc/tm.texi (CAN_ELIMINATE): Revise documentation. | |
4658 | ||
4659 | * config/alpha/vms.h (CAN_ELIMINATE): Remove macro. | |
4660 | * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]: | |
4661 | Define macro. | |
4662 | (alpha_vms_can_eliminate): Declare as static, change return type to | |
4663 | bool. | |
4664 | * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove. | |
4665 | ||
4666 | * config/arm/arm.h (CAN_ELIMINATE): Remove macro. | |
4667 | * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro. | |
4668 | (arm_can_eliminate): New function. | |
4669 | ||
4670 | * config/avr/avr.h (CAN_ELIMINATE): Remove macro. | |
4671 | * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro. | |
4672 | (avr_can_eliminate): Declare as static. | |
4673 | * config/avr/avr-protos.h (avr_can_eliminate): Remove. | |
4674 | ||
4675 | * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro. | |
4676 | * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro. | |
4677 | (bfin_can_eliminate): New function. | |
4678 | ||
4679 | * config/crx/crx.h (CAN_ELIMINATE): Remove macro. | |
4680 | * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro. | |
4681 | (crx_can_eliminate): New function. | |
7b3d1847 | 4682 | |
7b5cbb57 AS |
4683 | * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro. |
4684 | * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro. | |
4685 | (fr30_can_eliminate): New function. | |
4686 | ||
4687 | * config/frv/frv.h (CAN_ELIMINATE): Remove macro. | |
4688 | * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro. | |
4689 | (frv_can_eliminate): New function. | |
4690 | ||
4691 | * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro. | |
4692 | * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro. | |
4693 | (h8300_can_eliminate): New function. | |
4694 | ||
4695 | * config/i386/i386.h (CAN_ELIMINATE): Remove macro. | |
4696 | * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro. | |
4697 | (i386_can_eliminate): Declare as static, change return type to bool. | |
4698 | * config/i386/i386-protos.h (i386_can_eliminate): Remove. | |
4699 | ||
4700 | * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro. | |
4701 | * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro. | |
4702 | (ia64_can_eliminate): New function. | |
4703 | ||
4704 | * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro. | |
4705 | * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro. | |
4706 | (iq2000_can_eliminate): New function. | |
4707 | ||
4708 | * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro. | |
4709 | * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro. | |
4710 | (m32r_can_eliminate): New function. | |
4711 | ||
4712 | * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro. | |
4713 | * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro. | |
4714 | (m68hc11_can_eliminate): New function. | |
4715 | ||
4716 | * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro. | |
4717 | * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro. | |
4718 | (m68k_can_eliminate): New function. | |
4719 | ||
4720 | * config/mep/mep.h (CAN_ELIMINATE): Remove macro. | |
4721 | * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro. | |
4722 | (mep_can_eliminate): New function. | |
4723 | ||
4724 | * config/mips/mips.h (CAN_ELIMINATE): Remove macro. | |
4725 | * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro. | |
4726 | (mips_can_eliminate): New function. | |
4727 | ||
4728 | * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro. | |
4729 | * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro. | |
4730 | (rs6000_can_eliminate): New function. | |
4731 | ||
4732 | * config/s390/s390.h (CAN_ELIMINATE): Remove macro. | |
4733 | * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro. | |
4734 | (s390_can_eliminate): Declare as static. | |
4735 | * config/s390/s390-protos.h (sparc_can_eliminate): Remove. | |
4736 | ||
4737 | * config/score/score.h (CAN_ELIMINATE): Remove macro. | |
4738 | * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro. | |
4739 | (score_can_eliminate): New function. | |
4740 | ||
4741 | * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro. | |
4742 | * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro. | |
4743 | (sparc_can_eliminate): Declare as static. | |
4744 | * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove. | |
4745 | ||
4746 | * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro. | |
4747 | * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro. | |
4748 | (xstormy16_can_eliminate): New function. | |
4749 | ||
4750 | * config/v850/v850.h (CAN_ELIMINATE): Remove macro. | |
4751 | * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro. | |
4752 | (v850_can_eliminate): New function. | |
4753 | ||
e7f8fba9 UB |
4754 | 2009-08-25 Uros Bizjak <ubizjak@gmail.com> |
4755 | ||
4756 | * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove. | |
4757 | (*cmpdf_internal): Enable for all ALPHA_FPTM levels. | |
4758 | (*movdfcc_ext[1234]): Disable for IEEE mode. | |
4759 | ||
f76d6e6f EB |
4760 | 2009-08-25 Eric Botcazou <ebotcazou@adacore.com> |
4761 | ||
4762 | * gimplify.c (prepare_gimple_addressable): New static function. | |
4763 | (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking | |
4764 | it addressable. | |
4765 | (gimplify_addr_expr): Invoke it similarly on the operand instead of | |
4766 | manually fiddling with it. | |
4767 | ||
4df62c77 MM |
4768 | 2009-08-25 Michael Matz <matz@suse.de> |
4769 | ||
4770 | * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare. | |
4771 | * dojump.c (do_jump_by_parts_greater): Take two operands instead of | |
4772 | full expression. | |
4773 | (do_jump_by_parts_equality, do_compare_and_jump): Ditto. | |
4774 | (jumpifnot_1, jumpif_1): New wrappers for do_jump_1. | |
4775 | (do_jump): Split out code for simple binary comparisons into ... | |
4776 | (do_jump_1): ... this, taking the individual operands and code. | |
4777 | Change callers to helper function above accordingly. | |
4778 | * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary | |
4779 | comparisons. | |
4780 | ||
8e7aa1f9 MM |
4781 | 2009-08-25 Michael Matz <matz@suse.de> |
4782 | ||
4783 | * expr.h (struct separate_ops, sepops): New type for passing | |
4784 | around an exploded simple expression. | |
4785 | * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr): | |
4786 | Use this structure instead of expression tree. | |
4787 | (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole | |
4788 | expression, only its type. | |
4789 | (expand_vec_cond_expr): Take type and individual operands instead | |
4790 | of full expression. | |
4791 | * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr, | |
4792 | expand_vec_shift_expr): Change prototype accordingly. | |
4793 | * tree-vect-stmts.c (vectorizable_condition): Change call of | |
4794 | expand_vec_cond_expr_p to pass only type. | |
4795 | * expr.c (do_store_flags): Change prototype and implementation | |
4796 | to take an exploded expression. | |
4797 | (expand_expr_real_1): New local ops initialized with details | |
4798 | of the full expression. Use it instead of full | |
4799 | expression in calls to do_store_flags, expand_vec_cond_expr, | |
4800 | expand_widen_pattern_expr and expand_vec_shift_expr. | |
4801 | ||
b32e7cdb MM |
4802 | 2009-08-25 Michael Matz <matz@suse.de> |
4803 | ||
4804 | * expr.c (expand_expr_real_1): New local treeop0, treeop1, | |
4805 | treeop2 initialized with first three operands of the full expression. | |
4806 | Substitute all TREE_OPERAND (exp, [012]) calls with them. | |
4807 | ||
ce4a9de3 KT |
4808 | 2009-08-25 Kai Tietz <kai.tietz@onevision.com> |
4809 | ||
4810 | * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present. | |
4811 | (__gthread_objc_condition_allocate): Mark arguments as unused. | |
4812 | (__gthread_objc_condition_deallocate): Likewise. | |
4813 | (__gthread_objc_condition_wait): Likewise. | |
4814 | (__gthread_objc_condition_broadcast): Likewise. | |
4815 | (__gthread_objc_condition_signal): Likewise. | |
4816 | (__gthread_objc_thread_detach): Cast via INT_PTR to pointer. | |
4817 | (__gthread_objc_thread_id): Likewise. | |
4818 | ||
d69b8a03 JW |
4819 | 2009-08-25 Janus Weil <janus@gcc.gnu.org> |
4820 | ||
4821 | PR middle-end/41149 | |
4822 | * tree-pretty-print.c (print_call_name): Print the correct call name | |
4823 | for procedure pointer components. | |
4824 | ||
c3313412 SE |
4825 | 2009-08-24 Steve Ellcey <sje@cup.hp.com> |
4826 | ||
4827 | * config/ia64/ia64.c (ia64_promote_function_mode): Call | |
4828 | default_promote_function_mode when not VMS. | |
4829 | ||
c767899e OH |
4830 | 2009-08-24 Olivier Hainque <hainque@adacore.com> |
4831 | ||
4832 | * convert.c (convert_to_integer): Don't assume an input pointer is | |
4833 | POINTER_SIZE wide. Fetch from the type instead. | |
4834 | ||
df58e648 RW |
4835 | 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
4836 | ||
4837 | * configure.ac (AC_PREREQ): Bump to 2.64. | |
4838 | ||
2ef4a8e1 RAE |
4839 | 2009-08-24 Rafael Avila de Espindola <espindola@google.com> |
4840 | ||
4841 | * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove. | |
4842 | (process_command): Don't search standard_exec_prefix_1 and | |
4843 | standard_exec_prefix_2. | |
4844 | ||
c7e9ab97 RR |
4845 | 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
4846 | ||
7b3d1847 UB |
4847 | * config/arm/arm.c (output_return_instruction): Handle for |
4848 | unified syntax. | |
c7e9ab97 | 4849 | |
3e2d9dcf RR |
4850 | 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
4851 | ||
7b3d1847 | 4852 | * config/arm/arm.c (arm_select_cc_mode): Handle subreg. |
3e2d9dcf | 4853 | |
54f52b81 RR |
4854 | 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
4855 | ||
7b3d1847 UB |
4856 | * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable. |
4857 | (*arm_movdf_vfp): Likewise. | |
54f52b81 | 4858 | |
d44463a9 RR |
4859 | 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
4860 | ||
7b3d1847 UB |
4861 | * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3. |
4862 | (vashr<mode>3): Rename from ashr<mode>3. | |
4863 | (vlshr<mode>3): Rename from lshr<mode>3. | |
d44463a9 | 4864 | |
b241b475 KT |
4865 | 2009-08-24 Kai Tietz <kai.tietz@onevision.com> |
4866 | ||
4867 | PR/40786 | |
5fa162c0 | 4868 | * c-format.c (format_wanted_type): Add new member scalar_identity_flag. |
b241b475 KT |
4869 | (check_format_info_main): Use scalar_identify_flag. |
4870 | (check_format_types): Check for scalar size identity if | |
4871 | scalar_identify_flag is set. | |
4872 | (printf_length_specs): Extend by new field. | |
4873 | (asm_fprintf_length_specs): Likewise. | |
4874 | (gcc_diag_length_specs): Likewise. | |
4875 | (scanf_length_specs): Likewise. | |
4876 | (strfmon_length_specs): Likewise. | |
4877 | (gcc_gfc_length_specs): Likewise. | |
4878 | * config/i386/msformat-c.c (ms_printf_length_specs): Likewise. | |
4879 | (ms_printf_flag_specs): Likewise. | |
4880 | * c-format.h (format_length_info): Add new member scalar_identity_flag. | |
4881 | ||
8c40d061 UB |
4882 | 2009-08-23 Uros Bizjak <ubizjak@gmail.com> |
4883 | ||
4884 | PR target/40718 | |
4885 | * config/i386/i386.c (*call_pop_1): Disable for sibling calls. | |
fe62197b | 4886 | (*call_value_pop_1): Ditto. |
8c40d061 | 4887 | (*sibcall_pop_1): New insn pattern. |
fe62197b | 4888 | (*sibcall_value_pop_1): Ditto. |
8c40d061 | 4889 | |
0aa580f4 AM |
4890 | 2009-08-23 Alan Modra <amodra@bigpond.net.au> |
4891 | ||
4892 | PR target/41081 | |
4893 | * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64, | |
4894 | ashrsi3_64): New. | |
4895 | ||
e25b7843 AM |
4896 | 2009-08-23 Alan Modra <amodra@bigpond.net.au> |
4897 | ||
4898 | PR target/41081 | |
4899 | * fwprop.c (try_fwprop_subst): Allow multiple sets. | |
4900 | (get_reg_use_in): New function. | |
4901 | (forward_propagate_subreg): Propagate through subreg of zero_extend | |
4902 | or sign_extend. | |
4903 | ||
79052be3 KK |
4904 | 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org> |
4905 | ||
4906 | * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define. | |
4907 | * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee. | |
4908 | ||
5213506e RW |
4909 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
4910 | ||
70fa0efa RW |
4911 | * configure.ac: Remove --with-datarootdir, --with-docdir, |
4912 | --with-htmldir switches. No need to call AC_SUBST for | |
4913 | datarootdir, docdir, htmldir any more. | |
4914 | * configure: Regenerate. | |
4915 | * doc/install.texi (Configuration): Document --datarootdir, | |
4916 | --docdir, --htmldir, --pdfdir; update documentation for | |
4917 | --infodir, --mandir. | |
e7f8fba9 UB |
4918 | (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11, |
4919 | M4 to 1.4.6. | |
70fa0efa | 4920 | |
5213506e RW |
4921 | * aclocal.m4: Regenerate. |
4922 | * config.in: Regenerate. | |
4923 | * configure: Regenerate. | |
4924 | ||
f2972bf8 DR |
4925 | 2009-08-21 Douglas B Rupp <rupp@gnat.com> |
4926 | Olivier Hainque <hainque@adacore.com> | |
4927 | ||
4928 | * config/ia64/ia64.c: Include libfuncs.h. | |
4929 | (TARGET_PROMOTE_FUNCITON_MODE): Define target macro. | |
4930 | (ia64_expand_call): Use reg 25 on VMS. | |
4931 | (ia64_initialize_trampoline): Fix for VMS ABI. | |
4932 | (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS. | |
4933 | (ia64_function_arg): Initialize reg 25 on VMS. | |
4934 | Fix OpenVMS ABI issues for varargs. | |
4935 | For OpenVMS, emit the Argument Information register set in the | |
4936 | incoming/sibcall case as well. | |
4937 | (ia64_arg_type): New function. | |
4938 | (ia64_function_arg_advance): Keep track of cum->words. | |
4939 | Fix OpenVMS ABI issues for varargs. | |
4940 | (ia64_function_value): On VMS, promote mode of non-aggregate types. | |
4941 | (ia64_override_options): Set flag_no_common on VMS. | |
4942 | (ia64_init_builtins): Disable FWRITE builtin. | |
4943 | (ia64_asm_output_external): Call DO_CRTL_NAMES. | |
4944 | (ia64_vms_init_libfuncs): Add decc$ routines. | |
4945 | (ia64_vms_valid_pointer_mode): New function. | |
4946 | (ia64_struct_value_rtx): Allways NULL_RTX on VMS. | |
4947 | (ia64_promote_function_mode): New function | |
4948 | * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default. | |
4949 | (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS. | |
4950 | (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise. | |
4951 | (INIT_CUMULATIVE_ARGS): Add atypes for VMS. | |
4952 | (INIT_CUMULATIVE_INCOMING_ARGS): Likewise. | |
4953 | (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit. | |
4954 | Suppress trailing '#' if VALUE is numeric. | |
4955 | * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to | |
4956 | ia64_promote_function_mode. | |
4957 | (TARGET_VALID_POINTER_MODE): Define. | |
4958 | ||
30402573 MM |
4959 | 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com> |
4960 | ||
4961 | PR target/40671 | |
4962 | * config/rs6000/rs6000.c (rs6000_override_options): Use | |
8c40d061 | 4963 | TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers. |
30402573 MM |
4964 | |
4965 | PR target/41145 | |
4966 | * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix | |
c89f5009 | 4967 | reporting of vector + decimal/boolean/complex error. |
30402573 | 4968 | |
08ffd640 JJ |
4969 | 2009-08-21 Jakub Jelinek <jakub@redhat.com> |
4970 | ||
4971 | * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of | |
4972 | __vector double TYPE_DECL. | |
4973 | ||
46107b99 RE |
4974 | 2009-08-21 Richard Earnshaw <rearnsha@arm.com> |
4975 | ||
4976 | * arm.h (MACHMODE): New define. Include insn-modes.h if available. | |
4977 | (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode. | |
4978 | * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode | |
4979 | to pointer to enum machine_mode. Update all callers as needed. | |
4980 | ||
7450a081 UB |
4981 | 2009-08-21 Uros Bizjak <ubizjak@gmail.com> |
4982 | ||
4983 | * config/alpha/alpha.md (exception_receiver): Emit alternative | |
4984 | GP load sequence if flag_reorder_blocks_and_partition is set. | |
4985 | (*exception_receiver_2): Also enable when | |
4986 | flag_reorder_blocks_and_partition is set. | |
4987 | ||
6d383c5e MR |
4988 | 2009-08-20 Matt Rice <ratmice@gmail.com> |
4989 | Diego Novillo <dnovillo@google.com> | |
4990 | ||
4991 | * Makefile.in (PLUGIN_HEADERS): Include incpath.h and | |
4992 | tree-ssa-sccvn.h. | |
4993 | ||
29cc57cf RG |
4994 | 2009-08-20 Richard Guenther <rguenther@suse.de> |
4995 | ||
8c40d061 | 4996 | * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define. |
29cc57cf RG |
4997 | * c-tree.h (c_dup_lang_specific_decl): Remove. |
4998 | (struct lang_decl, struct lang_type): Move definitions ... | |
4999 | * c-lang.h: ... here. New file. | |
5000 | * c-decl.c: Include c-lang.h. | |
5001 | (c_dup_lang_specific_decl): Remove. | |
5002 | * c-typeck.c: Include c-lang.h. | |
5003 | * Makefile.in (c-decl.o): Add c-lang.h dependency. | |
5004 | (c-typeck.o): Likewise. | |
5005 | * c-config-lang.in (gtfiles): Add c-lang.h. | |
5006 | * gengtype.c (get_output_file_with_visibility): Handle c-lang.h | |
5007 | like c-tree.h. | |
5008 | ||
7e9f2c0f UB |
5009 | 2009-08-20 Uros Bizjak <ubizjak@gmail.com> |
5010 | ||
5011 | * config/alpha/alpha.c (alpha_end_function): Do not clear | |
5012 | crtl->emit structure and free insn locators if cfun->is_thunk is true, | |
5013 | this is now handled in generic code. | |
5014 | ||
b0f86a7e AK |
5015 | 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com> |
5016 | ||
5017 | * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro. | |
5018 | (s390_z10_fix_long_loop_prediction): New function. | |
5019 | (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg. | |
5020 | (s390_reorg): Walk over the INSNs and invoke | |
5021 | s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp. | |
5022 | ||
f1149235 AK |
5023 | 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com> |
5024 | ||
5025 | * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit", | |
5026 | "*brx_64bit", "*brx_31bit"): New patterns. | |
5027 | * config/s390/s390.c ('E'): New output modifier. | |
5028 | ||
a552b644 | 5029 | 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
7e9f2c0f | 5030 | Richard Earnshaw <richard.earnshaw@arm.com> |
a552b644 | 5031 | |
7e9f2c0f UB |
5032 | * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT. |
5033 | * config/arm/arm.md (*arm_movtas_ze): New pattern for movt. | |
a552b644 | 5034 | |
2fd74bff JDA |
5035 | 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
5036 | ||
5037 | * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New | |
5038 | patterns. | |
5039 | * pa.c (emit_move_sequence): Check if address of operand1 is valid | |
5040 | for mode mode of operand0 when doing secondary reload for SAR. | |
5041 | ||
b8e444f4 JJ |
5042 | 2009-08-19 Jakub Jelinek <jakub@redhat.com> |
5043 | ||
5044 | PR middle-end/41123 | |
5045 | * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds | |
5046 | of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT. | |
5047 | ||
6c879482 JM |
5048 | 2009-08-19 Jason Merrill <jason@redhat.com> |
5049 | ||
5050 | * doc/invoke.texi (C++ Dialect Options): Note change of minimum | |
5051 | supported template depth in C++0x. | |
5052 | ||
dc0c6451 JJ |
5053 | 2009-08-19 Jakub Jelinek <jakub@redhat.com> |
5054 | ||
5055 | * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call | |
5056 | free_after_compilation. | |
5057 | * config/score/score7.c (score7_output_mi_thunk): Likewise. | |
5058 | * config/score/score3.c (score3_output_mi_thunk): Likewise. | |
5059 | * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise. | |
5060 | * config/mips/mips.c (mips_output_mi_thunk): Likewise. | |
5061 | * config/sh/sh.c (sh_output_mi_thunk): Likewise. | |
5062 | * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise. | |
5063 | * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise. | |
5064 | ||
9302a061 ILT |
5065 | 2009-08-19 Ian Lance Taylor <iant@google.com> |
5066 | ||
5067 | * doc/md.texi (Insn Canonicalizations): Correct canonicalization | |
5068 | of (plus (mult (neg B) C) A). | |
5069 | ||
9600efe1 MM |
5070 | 2009-08-18 Michael Matz <matz@suse.de> |
5071 | ||
5072 | * omp-low.c (optimize_omp_library_calls): Use types_compatible_p | |
5073 | instead of comparing TYPE_MAIN_VARIANT for equality. | |
5074 | * tree-vect-patterns.c (vect_recog_dot_prod_pattern, | |
5075 | vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto. | |
5076 | * tree-vect-loop.c (vect_is_simple_reduction): Ditto. | |
5077 | * gimplify.c (goa_lhs_expr_p): Ditto and use | |
5078 | STRIP_USELESS_TYPE_CONVERSION. | |
5079 | ||
10174ddf MM |
5080 | 2009-08-18 Michael Matz <matz@suse.de> |
5081 | ||
5082 | * tree-ssa-structalias.c (create_variable_info_for): Also mark | |
5083 | first field in a struct. | |
5084 | (intra_create_variable_infos): Don't deal with flag_argument_noalias. | |
5085 | ||
e72cee90 UB |
5086 | 2009-08-18 Uros Bizjak <ubizjak@gmail.com> |
5087 | ||
5088 | * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn | |
5089 | locators before emit_insn is called. Remove assert that | |
5090 | cfun->is_thunk. | |
5091 | (alpha_end_function): Clear crtl->emit structure and free insn | |
5092 | locators if cfun->is_thunk is true. | |
5093 | ||
e31bcd1b JM |
5094 | 2009-08-18 Jason Merrill <jason@redhat.com> |
5095 | ||
5096 | * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object | |
5097 | type if available. | |
5098 | * configure.ac: Test for it. | |
5099 | * configure, config.in: Regenerate. | |
5100 | * doc/install.texi: Document --enable-gnu-unique-object. | |
5101 | ||
776e7174 RG |
5102 | 2009-08-18 Richard Guenther <rguenther@suse.de> |
5103 | ||
5104 | PR middle-end/41094 | |
5105 | * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to | |
5106 | pow(x,y*z) only if x is nonnegative. | |
5107 | ||
68a31530 JJ |
5108 | 2009-08-18 Jakub Jelinek <jakub@redhat.com> |
5109 | ||
5110 | * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump | |
5111 | on jumps. | |
5112 | ||
f3252b3c JJ |
5113 | PR target/40971 |
5114 | * config/rs6000/rs6000.c (rs6000_legitimize_address): For | |
5115 | [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000. | |
5116 | ||
65655f79 DD |
5117 | 2009-08-17 DJ Delorie <dj@redhat.com> |
5118 | ||
5119 | * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New. | |
5120 | * config/m32c/prologue.md (epilogue_freit): New. | |
5121 | (fset_b): New. | |
5122 | * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype. | |
5123 | (bank_switch_p): Likewise. | |
5124 | (fast_interrupt_p): Likewise. | |
5125 | (interrupt_p): Likewise. | |
5126 | (m32c_conditional_register_usage): Round memregs size up. | |
5127 | (need_to_save): We only need to save $a0 when we use ENTER. | |
5128 | (interrupt_p): Check for fast_interrupt too. | |
5129 | (bank_switch_p): New. | |
5130 | (fast_interrupt_p): New. | |
5131 | (m32c_attribute_table): Add bank_switch and fast_interrupt. | |
5132 | (m32c_emit_prolog): Support bank switching and fast interrupts. | |
5133 | * doc/extend.texi (Function Attributes): Add bank_switch and | |
5134 | fast_interrupt. | |
5135 | ||
dfe6ba6d DR |
5136 | 2009-08-17 Douglas B Rupp <rupp@gnat.com> |
5137 | ||
5138 | * config/alpha/alpha.c (vms_valid_pointer_mode): New function. | |
5139 | * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define. | |
5140 | ||
dcad28fd DR |
5141 | 2009-08-16 Douglas B Rupp <rupp@gnat.com> |
5142 | ||
8c40d061 | 5143 | * doc/invoke.texi (Target options): Add new option list for IA-64/VMS. |
dcad28fd DR |
5144 | (menu): Add IA-64/VMS Options. |
5145 | (IA-64/VMS Options): Likewise. | |
5146 | ||
30fff3d8 RS |
5147 | 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com> |
5148 | ||
5149 | PR target/38599 | |
5150 | * config/mips/mips.md (*lwxs): Use :P for pointer values. | |
5151 | ||
cf5fb4b0 RS |
5152 | 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com> |
5153 | ||
5154 | * config/mips/mips-protos.h (mips_push_asm_switch): New function. | |
5155 | (mips_pop_asm_switch): Likewise. | |
5156 | * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace | |
5157 | with... | |
5158 | (mips_noreorder, mips_nomacro, mips_noat): ...these new variables. | |
5159 | (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions. | |
5160 | (mips_push_asm_switch, mips_pop_asm_switch): Likewise. | |
5161 | (mips_print_operand_punctuation): Use them. Check mips_noreorder | |
5162 | instead of set_noreorder. | |
5163 | (mips_output_function_prologue): Use the new functions. | |
5164 | (mips_output_function_epilogue): Likewise. | |
5165 | (mips_need_noat_wrapper_p): New function, split out from... | |
5166 | (mips_final_prescan_insn, mips_final_postscan_insn): ...here. | |
5167 | Use mips_push_asm_switch and mips_pop_asm_switch. | |
5168 | * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch | |
5169 | and mips_pop_asm_switch. | |
5170 | (ASM_OUTPUT_REG_POP): Likewise. | |
5171 | (DBR_OUTPUT_SEQEND): Remove boilerplate comment. | |
5172 | Use mips_pop_asm_switch. | |
5173 | (mips_asm_switch): New structure. | |
5174 | (set_noreorder, set_nomacro): Replace with... | |
5175 | (mips_noreorder, mips_nomacro, mips_noat): ...these new variables. | |
5176 | * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro | |
5177 | instead of set_nomacro. | |
5178 | (fix_truncsfsi2_macro): Likewise. | |
5179 | (cprestore): Likewise. | |
5180 | (hazard): Use mips_noreorder instead of set_noreorder. | |
5181 | * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h. | |
5182 | ||
3eb96d01 UB |
5183 | 2009-08-16 Uros Bizjak <ubizjak@gmail.com> |
5184 | ||
8a067ce4 | 5185 | * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned |
3eb96d01 UB |
5186 | from prev_active_insn. |
5187 | ||
164709cf AS |
5188 | 2009-08-16 Anatoly Sokolov <aesok@post.ru> |
5189 | ||
5190 | * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros. | |
5191 | * config/avr/avr.c (avr_override_options): Initialize | |
5192 | avr_current_arch variable. | |
5193 | (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or | |
5194 | __AVR_HAVE_16BIT_SP__ according to the device type. | |
5195 | (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of | |
5196 | TARGET_TINY_STACK. | |
5197 | (expand_epilogue): Use correct QI mode frame pointer for tiny stack. | |
5198 | Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK. | |
5199 | ||
5782bb7a DS |
5200 | 2009-08-16 Dodji Seketeli <dodji@redhat.com> |
5201 | ||
52ac997d | 5202 | PR debug/37801 |
5782bb7a DS |
5203 | * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on |
5204 | generating inlined subroutine die only. We shouldn't be | |
5205 | called for anything else. | |
5206 | (gen_block_die): Don't generate inline subroutine debug info for | |
5207 | abstract blocks. | |
5208 | ||
07636543 SP |
5209 | 2009-08-15 Sebastian Pop <sebastian.pop@amd.com> |
5210 | ||
5211 | * graphite-poly.c (print_pbb): Print PBB index. | |
5212 | ||
f263917c SP |
5213 | 2009-08-15 Sebastian Pop <sebastian.pop@amd.com> |
5214 | ||
5215 | PR middle-end/40981 | |
5216 | * graphite-interchange.c (ppl_max_for_le): Moved... | |
5217 | * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le. | |
5218 | * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of | |
5219 | ppl_Pointset_Powerset_C_Polyhedron_maximize. | |
5220 | * graphite-ppl.h (ppl_max_for_le): Declared. | |
5221 | ||
c54d7dc9 OR |
5222 | 2009-08-14 Olatunji Ruwase <tjruwase@google.com> |
5223 | ||
5224 | * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is | |
5225 | supported on all platforms. | |
8c40d061 UB |
5226 | * target.h (struct gcc_target): Remove handle_pragma_redefine_extname. |
5227 | * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname. | |
c54d7dc9 OR |
5228 | * c-pragma.c: Likewise. |
5229 | * target-def.h (TARGET_INITIALIZER): Remove | |
5230 | TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME. | |
8c40d061 | 5231 | * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME. |
c54d7dc9 | 5232 | |
b874a90d DR |
5233 | 2009-08-14 Douglas B Rupp <rupp@gnat.com> |
5234 | ||
5235 | * config/ia64/fde-vms.c: New file. | |
5236 | * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg. | |
5237 | * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h | |
5238 | (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default. | |
5239 | (uw_frame_state_for): Only register a personality routine if it is | |
5240 | known to be compatible with our expectations. | |
5241 | (_Unwind_FindEnclosingFunction, uw_frame_state_for): | |
5242 | Declare unw_table_entry stack variable and | |
5243 | mod all calls to _Unwind_FindTableEntry to add arg. | |
5244 | * config/ia64/unwind-ia64.h (UNW_ accessors): Move here. | |
5245 | (_Unwind_FindTableEntry): Add arg to prototype. | |
5246 | ||
ac77b88e EB |
5247 | 2009-08-14 Eric Botcazou <ebotcazou@adacore.com> |
5248 | ||
5249 | * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new | |
5250 | field 'signal_pfs_loc'. | |
5251 | (uw_frame_state_for): Remove duplicate code dealing with leaf | |
5252 | procedures without unwind info. | |
5253 | If in the frame after unwinding through a signal handler, restore | |
5254 | the AR.PFS register instead of the CFM if AR.PFS has not been saved. | |
5255 | * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set | |
5256 | 'pfs_loc' to the AR.PFS location in the signal context; instead | |
5257 | set 'signal_pfs_loc'. | |
5258 | Manually generate the unwind info for the AR.PFS register. | |
5259 | (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT, | |
5260 | ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define. | |
5261 | (ia64_handle_unwabi): Test 'fs->unwabi' against them. | |
5262 | Do not set 'pfs_loc' to the AR.PFS location in the signal context; | |
5263 | instead set 'signal_pfs_loc'. | |
5264 | Remove code preventing the AR.PFS register from being restored | |
5265 | from the signal context. | |
5266 | ||
c24db304 DR |
5267 | 2009-08-14 Douglas B Rupp <rupp@gnat.com> |
5268 | Tristan Gingold <gingold@adacore.com> | |
5269 | ||
5270 | * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file. | |
5271 | * config/ia64/t-vms: New file. | |
5272 | * config/ia64/vms64.h: New file. | |
5273 | * config/ia64/vms.h: New file. | |
5274 | * config/ia64/vms-crtinit.asm: New file. | |
5275 | * config/ia64/vms_symvec_libgcc_s.opt: New file. | |
5276 | * config/ia64/vms-unwind.h: New file. | |
5277 | ||
387c39e1 UB |
5278 | 2009-08-14 Uros Bizjak <ubizjak@gmail.com> |
5279 | ||
5280 | * config/alpha/alpha.c (alpha_emit_conditional_move): Handle | |
5281 | TFmode compares. | |
5282 | ||
2f440f6a KG |
5283 | 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
5284 | ||
5285 | PR middle-end/30789 | |
8c40d061 UB |
5286 | * builtins.c (do_mpc_arg2): Make extern, define for any MPC version. |
5287 | Move declaration... | |
2f440f6a KG |
5288 | * real.h (do_mpc_arg2): ... here. |
5289 | * fold-const.c (const_binop): Use MPC for complex MULT_EXPR | |
5290 | and RDIV_EXPR. | |
5291 | ||
fe83055d RAE |
5292 | 2009-08-14 Rafael Avila de Espindola <espindola@google.com> |
5293 | ||
c54d7dc9 OR |
5294 | * final.c (add_debug_prefix_map): Don't use GC memory for |
5295 | old_prefix and new_prefix. | |
fe83055d | 5296 | |
1a15bfdc RG |
5297 | 2009-08-14 Richard Guenther <rguenther@suse.de> |
5298 | ||
5299 | * ipa-prop.c (compute_complex_pass_through): If we cannot | |
5300 | compute a non-varying offset for IPA_JF_ANCESTOR punt. | |
5301 | ||
065312cf UW |
5302 | 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
5303 | ||
5304 | * c-lex.c (c_lex_with_flags): Increase size of local variable | |
5305 | to avoid memory clobber. | |
5306 | ||
371015a8 PB |
5307 | 2009-08-14 Paolo Bonzini <bonzini@gnu.org> |
5308 | ||
5309 | PR target/40934 | |
5310 | * config/i386/i386.c (ix86_fp_comparison_strategy): | |
387c39e1 | 5311 | Only enable/disable sahf at function granularity. |
371015a8 | 5312 | |
94aca67a HPN |
5313 | 2009-08-14 Hans-Peter Nilsson <hp@axis.com> |
5314 | ||
5315 | PR rtl-optimization/41064 | |
5316 | * reload1.c (reload_as_needed): Don't call extract_insn | |
5317 | for known invalid replacements after calling | |
5318 | validate_replace_rtx_group and verify_changes. | |
5319 | ||
1262fd02 UB |
5320 | 2009-08-14 Uros Bizjak <ubizjak@gmail.com> |
5321 | ||
5322 | PR target/41019 | |
5323 | * config/i386/sse.md (SSEMODE124C8): New mode iterator. | |
5324 | (vcond<SSEMODEF2P:mode>): Assert that operation is supported by | |
5325 | ix86_expand_fp_vcond. | |
5326 | (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124. | |
5327 | Assert that operation is supported by ix86_expand_int_vcond. | |
5328 | (vcondu<SSEMODE124C8:mode>): Ditto. | |
5329 | ||
3e3877f8 DD |
5330 | 2009-08-13 DJ Delorie <dj@redhat.com> |
5331 | ||
5332 | * config/i386/djgpp-stdint.h: New. | |
5333 | * config.gcc (djgpp): Use it. | |
5334 | ||
91d1d521 KK |
5335 | 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org> |
5336 | ||
5337 | * config/sh/sh.c (sh_override_options): When flag_exceptions or | |
1262fd02 | 5338 | flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off. |
91d1d521 | 5339 | |
2c6dd136 GS |
5340 | 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com> |
5341 | ||
387c39e1 UB |
5342 | * tree-ssa-loop-prefetch.c |
5343 | (prune_ref_by_group_reuse): Enhance probabilistic analysis | |
2c6dd136 GS |
5344 | for long-stride pruning. |
5345 | (compute_miss_rate): New function to compute the probability | |
387c39e1 | 5346 | that two memory references access different cache lines. |
2c6dd136 | 5347 | |
241547bb DK |
5348 | 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com> |
5349 | ||
5350 | * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base. | |
5351 | ||
e5fdcd8c RG |
5352 | 2009-08-13 Richard Guenther <rguenther@suse.de> |
5353 | ||
5354 | PR middle-end/41047 | |
5355 | * tree-ssa-ccp.c (ccp_fold): When folding pointer additions | |
5356 | use the constant pointer type. | |
5357 | * gimplify.c (canonicalize_addr_expr): Canonicalize independent | |
5358 | of CV qualifiers on the target pointer type. | |
5359 | * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer | |
5360 | conversion check before restrict check. | |
5361 | ||
d5652a5a KK |
5362 | 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org> |
5363 | ||
5364 | PR target/41029 | |
5365 | * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko. | |
5366 | ||
d8158ff1 KK |
5367 | 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org> |
5368 | ||
5369 | * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED. | |
5370 | ||
88ccda10 RG |
5371 | 2009-08-12 Richard Guenther <rguenther@suse.de> |
5372 | ||
5373 | PR tree-optimization/41011 | |
5374 | * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold | |
5375 | and reference constructing. | |
5376 | ||
6eb29714 XDL |
5377 | 2009-08-12 Xinliang David Li <davidxl@google.com> |
5378 | ||
5379 | PR tree-optimization/41012 | |
5380 | * tree-flow.h : New external interface. | |
5381 | * gimple-low.c (check_call_arg): Change to public function. | |
5382 | Remove argument mismatch check in lowering. | |
5383 | * tree-inline.h (tree_can_inline_p): Interface change. | |
5384 | * tree-inline.c (tree_can_inline_p): Fold argument mismatch check | |
5385 | into this function. | |
f100a4a8 | 5386 | * ipa-inline.c (cgraph_decide_inlining_of_small_functions): |
6eb29714 XDL |
5387 | Call change to tree_can_inline_p function. |
5388 | (cgraph_decide_inlining_incrementally): Ditto. | |
5389 | ||
b2a58473 RS |
5390 | 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com> |
5391 | ||
5392 | PR tree-optimization/41031 | |
5393 | * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode | |
5394 | on the partition variable rather than promote_mode on the source | |
5395 | type. Assert that the partition variable's type has the same | |
5396 | mode as the source value's. | |
5397 | ||
666e3ceb PB |
5398 | 2009-08-12 Paolo Bonzini <bonzini@gnu.org> |
5399 | ||
5400 | * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation | |
5401 | for for_return == 2. | |
5402 | * function.c (assign_parm_setup_reg): Use for_return == 2, improve | |
5403 | comments. | |
5404 | * calls.c (expand_call): Fix typo. | |
5405 | * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL | |
5406 | and PARM_DECL. | |
5407 | * stmt.c (expand_value_return): Use promote_function_mode to copy out | |
5408 | of pseudo. | |
5409 | * targhooks.c (default_promote_function_mode): Handle for_return == 2. | |
5410 | * config/cris/cris.c (cris_promote_function_mode): Likewise. | |
5411 | * config/mmix/mmix.c (mmix_promote_function_mode): Likewise. | |
5412 | * config/pa/pa.c (pa_promote_function_mode): Likewise. | |
5413 | ||
46107b99 | 5414 | 2009-08-12 Andrew Haley <aph@redhat.com> |
353a58f7 AH |
5415 | |
5416 | * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize. | |
5417 | ||
4654745d SP |
5418 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5419 | ||
5420 | PR bootstrap/40103 | |
5421 | * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat". | |
5422 | ||
daad0278 RG |
5423 | 2009-08-12 Richard Guenther <rguenther@suse.de> |
5424 | ||
5425 | * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P. | |
5426 | * gimplify.c (gimplify_modify_expr): Do not use | |
5427 | lang_hooks.types_compatible_p. | |
5428 | * tree-ssa.c (useless_type_conversion_p): For aggregates | |
5429 | just return false if the canonical types differ. | |
5430 | ||
30de1632 SP |
5431 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5432 | ||
5433 | PR middle-end/40980 | |
5434 | * sese.c (convert_for_phi_arg): New. | |
5435 | (add_guard_exit_phis): Use convert_for_phi_arg. | |
5436 | ||
8c31ebfa SP |
5437 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5438 | ||
5439 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add | |
5440 | unknown subscript upper bounds. | |
5441 | ||
fb9fb290 SP |
5442 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5443 | Pranav Garg <pranav.garg2107@gmail.com> | |
5444 | ||
5445 | * graphite-interchange.c (gather_access_strides): Removed. | |
5446 | (ppl_max_for_le): New. | |
5447 | (build_linearized_memory_access): New. | |
5448 | (memory_stride_in_loop): New. | |
5449 | (pbb_interchange_profitable_p): Reimplemented. | |
5450 | * graphite-ppl.h (ppl_new_id_map): New. | |
5451 | (ppl_interchange): New. | |
5452 | ||
312aea7f SP |
5453 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5454 | ||
5455 | * graphite-interchange.c (compute_subscript): Removed. | |
5456 | (compute_array_size_cstr): Removed. | |
5457 | (compute_array_size_poly): Removed. | |
5458 | (compute_array_size): Removed. | |
5459 | (gather_access_strides_poly): Removed. | |
5460 | (gather_access_strides): Empty. | |
5461 | ||
25d7cc15 SP |
5462 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5463 | ||
5464 | * graphite-dependences.c (dependence_polyhedron_1): Replace | |
5465 | pdr_nb_subscripts with PDR_NB_SUBSCRIPTS. | |
5466 | (graphite_legal_transform_dr): Same. | |
5467 | (graphite_carried_dependence_level_k): Same. | |
5468 | * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts. | |
5469 | Initialize PDR_NB_SUBSCRIPTS. | |
5470 | (print_pdr_access_layout): Replace pdr_nb_subscripts with | |
5471 | PDR_NB_SUBSCRIPTS. | |
5472 | * graphite-poly.h (struct poly_dr): Add nb_subscripts field. | |
5473 | (PDR_NB_SUBSCRIPTS): New. | |
5474 | (pdr_nb_subscripts): Removed. | |
5475 | (pdr_dim): Simplified. | |
5476 | * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts | |
5477 | with PDR_NB_SUBSCRIPTS. | |
5478 | ||
66096911 SP |
5479 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5480 | ||
5481 | * graphite-interchange.c (compute_array_size): Remove use of | |
5482 | PDR_DATA_CONTAINER. | |
5483 | * graphite-poly.c (new_poly_dr): Remove argument data_container. | |
5484 | Do not initialize PDR_DATA_CONTAINER. | |
5485 | (print_pdr): Do not print PDR_DATA_CONTAINER. | |
5486 | * graphite-poly.h (struct poly_dr): Remove data_container field. | |
5487 | (PDR_DATA_CONTAINER): Removed. | |
5488 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of | |
5489 | PDR_DATA_CONTAINER. | |
5490 | (build_poly_dr): Same. | |
5491 | ||
7491e5f0 KT |
5492 | 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
5493 | Sebastian Pop <sebastian.pop@amd.com> | |
5494 | ||
5495 | * graphite-dependences.c (graphite_legal_transform_dr): Work on a | |
5496 | copy of the dependence polyhedron. Free the temporary objects. | |
5497 | (graphite_carried_dependence_level_k): Free unused objects before | |
5498 | returning. | |
5499 | ||
5500 | * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed. | |
5501 | * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed. | |
5502 | * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed. | |
5503 | * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed. | |
5504 | * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed. | |
5505 | ||
f4648ed1 SP |
5506 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5507 | ||
5508 | * graphite-blocking.c (scop_do_strip_mine): Call store_scattering. | |
5509 | Early return without analyzing the data dependences if no | |
5510 | transform has been done. Call restore_scattering if the transform | |
5511 | is not legal. | |
5512 | (graphite-interchange.c): Same. | |
1262fd02 UB |
5513 | * graphite-poly.c (print_scattering_function): Test for |
5514 | PBB_TRANSFORMED. | |
f4648ed1 SP |
5515 | (graphite_read_transforms): Initialize PBB_TRANSFORMED. |
5516 | (apply_poly_transforms): Do not gcc_assert that | |
5517 | the transform is legal. | |
1262fd02 | 5518 | (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL. |
f4648ed1 SP |
5519 | Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES, |
5520 | PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING. | |
5521 | (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
5522 | * graphite-poly.h (struct poly_scattering): New. | |
5523 | (struct poly_bb): Add original, transformed, and saved fields. | |
1262fd02 UB |
5524 | Remove transformed_scattering, original_scattering, |
5525 | nb_local_variables and nb_scattering_transform fields. | |
f4648ed1 SP |
5526 | (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New. |
5527 | (poly_scattering_new): New. | |
5528 | (poly_scattering_free): New. | |
5529 | (poly_scattering_copy): New. | |
5530 | (store_scattering_pbb): New. | |
5531 | (store_scattering): New. | |
5532 | (restore_scattering_pbb): New. | |
5533 | (restore_scattering): New. | |
5534 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
5535 | Initialize PBB_TRANSFORMED and PBB_ORIGINAL. | |
5536 | ||
e31a5bd4 SP |
5537 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5538 | ||
5539 | * graphite-poly.c (print_pbb): Add parentheses in the pretty print. | |
5540 | (print_scop): Same. | |
5541 | ||
8e88f9fd SP |
5542 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5543 | ||
5544 | * Makefile.in (graphite.o): Depends on PREDICT_H. | |
5545 | * graphite.c: Include predict.h. | |
5546 | (graphite_finalize): Call tree_estimate_probability. | |
5547 | * predict.c (predict_loops): Do not call scev_initialize and | |
5548 | scev_finalize. | |
5549 | (tree_estimate_probability_bb): New. | |
5550 | (tree_estimate_probability): Do not initialize loops: move that | |
5551 | code to the driver. Call tree_estimate_probability_bb. | |
5552 | (tree_estimate_probability_driver): New. | |
5553 | (pass_profile): Use tree_estimate_probability_driver. | |
5554 | * predict.h (tree_estimate_probability): Declared. | |
5555 | ||
87d4d0ee SP |
5556 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> |
5557 | ||
5558 | * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN. | |
5559 | * graphite-dependences.c (graphite_legal_transform): Add time to | |
5560 | TV_GRAPHITE_DATA_DEPS. | |
5561 | (dependency_between_pbbs_p): Same. | |
5562 | * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New. | |
5563 | ||
4c7af939 AB |
5564 | 2009-08-12 Andrey Belevantsev <abel@ispras.ru> |
5565 | ||
5566 | PR rtl-optimization/41033 | |
f100a4a8 | 5567 | * alias.c (nonoverlapping_component_refs_p): Punt when strict |
4c7af939 AB |
5568 | aliasing is disabled. |
5569 | ||
b2c9d70f AN |
5570 | 2009-08-11 Adam Nemet <anemet@caviumnetworks.com> |
5571 | ||
5572 | * config/mips/predicates.md (qi_mask_operand, hi_mask_operand, | |
5573 | si_mask_operand, and_load_operand, low_bitmask_operand, | |
5574 | and_reg_operand, and_operand): New predicates. | |
5575 | * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints. | |
5576 | * config/mips/mips.c (and_operands_ok): New function. | |
5577 | * config/mips/mips-protos.h (and_operands_ok): Declare it. | |
5578 | * config/mips/mips.md (move_type): Add ext_ins and logical. | |
5579 | (type): Handle them. | |
1262fd02 | 5580 | (and<mode>3): Use and_reg_operand as the second operand's predicate. |
b2c9d70f AN |
5581 | (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and |
5582 | shift_shift. Remove commutative constraint modifier. | |
5583 | (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and | |
5584 | shift_shift. | |
5585 | (*clear_upper32_dext): Remove define_insn_and_split. | |
5586 | (*clear_upper32): Turn this define_insn_and_split ... | |
5587 | (splitter for ANDing register with 0xffff_ffff): .. into this. | |
5588 | ||
842e098c AN |
5589 | 2009-08-11 Adam Nemet <anemet@caviumnetworks.com> |
5590 | ||
5591 | * combine.c (try_widen_shift_mode): Factor out code to check if an | |
f100a4a8 | 5592 | integer constant is a low-order bitmask from here ... |
842e098c AN |
5593 | * rtlanal.c (low_bitmask_len): ... to here. |
5594 | * rtl.h (low_bitmask_len): Declare. | |
5595 | ||
c53c2591 UB |
5596 | 2009-08-11 Uros Bizjak <ubizjak@gmail.com> |
5597 | ||
5598 | PR target/8603 | |
5599 | * config/alpha/alpha.md (addsi3): Remove expander. | |
5600 | (addsi3): Rename from *addsi3_internal insn pattern. | |
5601 | (subsi3): Remove expander. | |
5602 | (subsi3): Rename from *subsi3_internal insn pattern. | |
5603 | ||
b0d0a8a7 DR |
5604 | 2009-08-11 Douglas B Rupp <rupp@gnat.com> |
5605 | ||
5606 | * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and | |
5607 | FWRITE_UNLOCKED. | |
5608 | ||
050d3f9d | 5609 | 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com> |
c53c2591 UB |
5610 | Eric Botcazou <botcazou@adacore.com> |
5611 | Douglas B Rupp <rupp@gnat.com> | |
050d3f9d VF |
5612 | |
5613 | * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure | |
5614 | that records that fit in 64 bits are returned by immediate value, | |
5615 | as required by OpenVMS Calling Standard. | |
5616 | (function_value): Adjust for above modification. | |
5617 | (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use | |
5618 | virtual_incoming_args_rtx as base object, not next_arg. | |
5619 | * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0. | |
5620 | ||
2fa8205d UW |
5621 | 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
5622 | ||
5623 | * reload.c (find_reloads_subreg_address): Check the original | |
5624 | req_equiv_mem address to detect the case where an address is | |
5625 | not valid in the outer mode. | |
5626 | ||
ac8f7e42 | 5627 | 2009-08-11 Richard Guenther <rguenther@suse.de> |
f100a4a8 | 5628 | |
c53c2591 UB |
5629 | PR bootstrap/40788 |
5630 | * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION. | |
ac8f7e42 | 5631 | |
fddeba6d DR |
5632 | 2009-08-10 Douglas B Rupp <rupp@gnat.com> |
5633 | ||
5634 | * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove | |
5635 | (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS. | |
5636 | ||
1d3499d8 | 5637 | 2009-08-10 Olivier Hainque <hainqueu@adacore.com> |
c53c2591 | 5638 | Douglas B Rupp <rupp@gnat.com> |
1d3499d8 OH |
5639 | |
5640 | * config/alpha/alpha.c (alpha_sa_size): Force procedure type to | |
5641 | PT_STACK when frame_pointer_needed on OpenVMS. | |
5642 | (alpha_pv_save_size, alpha_using_fp): Remove. | |
5643 | (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE | |
5644 | with proper processing for PT_NULL. | |
5645 | (alpha_vms_initial_elimination_offset): New function. Support for | |
5646 | INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL. | |
5647 | (alpha_sa_size): Force procedure type to PT_STACK when | |
5648 | frame_pointer_needed on OpenVMS. | |
5649 | * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype. | |
5650 | (alpha_using_fp): Likewise. | |
5651 | (alpha_vms_can_eliminate): Add prototype. | |
5652 | (alpha_vms_initial_elimination_offset): Likewise. | |
5653 | * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): | |
5654 | Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset. | |
5655 | ||
18fd5621 | 5656 | 2009-08-10 Eric Botcazou <botcazou@adacore.com> |
c53c2591 | 5657 | Douglas B Rupp <rupp@gnat.com> |
18fd5621 EB |
5658 | |
5659 | * config/alpha/alpha.c (common_object_handler): New function. | |
5660 | (vms_attribute_table): Declare a single attribute "common_object". | |
5661 | (vms_output_aligned_decl_common): New global function. | |
5662 | (SECTION_VMS_OVERLAY): Delete. | |
5663 | (SECTION_VMS_GLOBAL): Likewise. | |
5664 | (SECTION_VMS_INITIALIZE): Likewise. | |
5665 | (vms_asm_named_section): Remove support for above flags. | |
5666 | (vms_section_type_flags): Delete. | |
5667 | (TARGET_SECTION_TYPE_FLAGS): Likewise. | |
5668 | * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New. | |
5669 | * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete. | |
5670 | (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro. | |
5671 | ||
092f3f97 ST |
5672 | 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp> |
5673 | ||
5674 | PR target/41015 | |
5675 | * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list. | |
5676 | (sub_ddmmss): Likewise. | |
5677 | ||
35076532 AT |
5678 | 2009-08-10 Andreas Tobler <a.tobler@schweiz.org> |
5679 | ||
5680 | PR bootstrap/41018 | |
5681 | * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright | |
5682 | year. | |
5683 | ||
0159ec79 UW |
5684 | 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
5685 | ||
5686 | PR target/37053 | |
5687 | * reload1.c (reload_as_needed): Use cancel_changes to completely | |
5688 | undo a failed replacement attempt. | |
5689 | ||
4f4e722e RG |
5690 | 2009-08-10 Richard Guenther <rguenther@suse.de> |
5691 | ||
5692 | PR middle-end/41006 | |
5693 | * tree-ssa.c (useless_type_conversion_p_1): Fold into ... | |
5694 | (useless_type_conversion_p): ... here. Require pointer targets | |
5695 | to be compatible. | |
5696 | ||
b1d82db0 DS |
5697 | 2009-08-10 Dodji Seketeli <dodji@redhat.com> |
5698 | ||
5699 | PR c++/40866 | |
5700 | * tree-inline.c (copy_statement_list): The resulting copy shouldn't | |
5701 | loose the original type of the statement list. | |
5702 | ||
5e3fef6c DR |
5703 | 2009-08-09 Douglas B Rupp <rupp@gnat.com> |
5704 | ||
5705 | * config/alpha/alpha.c: Include libfuncs.h | |
5706 | (avms_asm_output_extern): New function. | |
5707 | (alpha_init_libfuncs): Init some decc libfuncs. | |
5708 | * config/alpha/alpha-protos.h (avms_asm_output_external): Declare. | |
5709 | * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define. | |
5710 | (DO_CRTL_NAMES): Define. | |
5711 | (LIB_SPEC): Remove. | |
5712 | * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef. | |
5713 | (LONG_TYPE_SIZE): Define. | |
5714 | (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1 | |
5715 | (SUBTARGET_SWITCHES): Define malloc64 switch. | |
5716 | (TARGET_DEFAULT): Default MASK_MALLOC64 set. | |
5717 | (MASK_RETURN_ADDR): Define. | |
5718 | doc/invoke.texi (mmalloc64): Document switch. | |
5719 | ||
221cf9ab | 5720 | 2009-08-09 Olivier Hainque <hainque@adacore.com> |
c53c2591 | 5721 | Douglas B Rupp <rupp@gnat.com> |
221cf9ab OH |
5722 | |
5723 | * config/alpha/alpha.c (struct machine_function): New flag for VMS, | |
5724 | uses_condition_handler. | |
5725 | (alpha_expand_builtin_establish_vms_condition_handler): New expander. | |
5726 | (alpha_expand_builtin_revert_vms_condition_handler): New expander. | |
5727 | (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER | |
5728 | and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values. | |
5729 | (code_for_builtin): New insn codes for the new alpha_builtins. | |
5730 | (alpha_init_builtins): Register the new functions as BUILT_IN_MD. | |
5731 | (alpha_sa_size): Account for uses_condition_handler. | |
5732 | (alpha_expand_prologue): Likewise. | |
5733 | (alpha_start_function): Likewise. | |
5734 | (alpha_expand_epilogue): Likewise. | |
5735 | * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin | |
5736 | establish/revert expanders. | |
5737 | * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define. | |
5738 | * config/alpha/alpha.md (builtin_establish_vms_condition_handler): | |
5739 | New expander, resorting to the alpha.c associated function. | |
5740 | (builtin_revert_vms_condition_handler): Likewise. | |
5741 | * config/alpha/vms-gcc_shell_handler.c: New file. Implements | |
5742 | __gcc_shell_handler, the static VMS condition handler used as | |
5743 | an indirection wrapper to the current dynamically established | |
5744 | handler. | |
5745 | * config/alpha/vms-unwind.h: Complete rewrite. | |
5746 | * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c | |
5747 | * config/alpha/vms.h (MD_UNWIND_SUPPORT): | |
f100a4a8 | 5748 | |
b714133e | 5749 | 2009-08-09 Eric Botcazou <botcazou@adacore.com> |
c53c2591 | 5750 | Douglas B Rupp <rupp@gnat.com> |
b714133e EB |
5751 | |
5752 | * config/alpha/alpha.c (alpha_links): Add 'target' field. | |
5753 | (alpha_need_linkage): Handle aliases. Return function symbol. | |
5754 | (alpha_use_linkage): Rename 'linkage' argument to 'func'. | |
5755 | Use ultimate alias target for the linkage name. | |
5756 | * config/alpha/alpha.md (movmemdi): Use the symbol returned | |
5757 | by alpha_need_linkage for the function symbol. | |
5758 | (setmemdi): Likewise. | |
5759 | ||
3bd1b109 DR |
5760 | 2009-08-09 Douglas B Rupp <rupp@gnat.com> |
5761 | ||
5762 | * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS. | |
5763 | * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define. | |
5764 | (ASM_WEAKEN_LABEL): Define. | |
5765 | (CRT_CALL_STATIC_FUNCTION): Define. | |
5766 | (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o. | |
5767 | (ENDFILE_SPEC): Define. | |
5768 | (INIT_SECTION_ASM_OP): Define. | |
5769 | * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove. | |
5770 | * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o | |
5771 | crtend.o crtendS.o. | |
5772 | (MULTILIB_OSDIRNAMES): Define. | |
5773 | (shlib_version): Define. | |
5774 | (SHLIB_EXT): Define. | |
5775 | (SHLIB_OBJS): Define. | |
5776 | (SHLIB_NAME): Define. | |
5777 | (SHLIB_MULTILIB): Define. | |
5778 | (SHLIB_INSTALL): Define. | |
5779 | (SHLIB_SYMVEC): Define. | |
5780 | (SHLIB_SYMVECX2): Define. | |
5781 | (SHLIB_LINK): Define. | |
5782 | ||
fe2786f5 DR |
5783 | 2009-08-09 Douglas B Rupp <rupp@gnat.com> |
5784 | ||
5785 | * config/alpha/alpha.c (alpha_initialize_trampoline): | |
5786 | Initialize VMS trampoline IAW ABI for bounded procedure calls. | |
5787 | (alpha_start_function): Emit transfer address on nested functions | |
5788 | for VMS trampoline call. | |
5789 | * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm | |
5790 | since no longer used. | |
5791 | * config/alpha/vms-tramp.asm: Remove. | |
5792 | * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined | |
5793 | since now only data initialized at runtime. | |
5794 | ||
c889a16f DR |
5795 | 2009-08-09 Douglas B Rupp <rupp@gnat.com> |
5796 | ||
5797 | * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define. | |
5798 | (LINK_GCC_C_SEQUENCE_SPEC): Define. | |
5799 | (MD_EXEC_PREFIX): Remove, no longer used. | |
5800 | (MD_STARTFILE_PREFIX): Likewise. | |
5801 | (INCLUDE_DEFAULTS): Likewise. | |
5802 | * config/alpha/t-vms: | |
5803 | (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile. | |
5804 | ||
a6450905 RG |
5805 | 2009-08-09 Richard Guenther <rguenther@suse.de> |
5806 | ||
5807 | PR tree-optimization/41016 | |
c53c2591 | 5808 | * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug. |
a6450905 RG |
5809 | (operand_precision): Remove. |
5810 | (integral_operand_p): Likewise. | |
5811 | (recognize_single_bit_test): Adjust. | |
5812 | ||
f5178456 RS |
5813 | 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com> |
5814 | ||
5815 | * c-common.c (c_fully_fold_internal): Issue a warning if a binary | |
5816 | operation overflows. Likewise non-cast unary arithmetic. | |
5817 | If one arm of a conditional expression is always taken, | |
5818 | inhibit evaluation warnings for the other arm. Likewise inhibit | |
5819 | evaluation warnings for the second && or || operand if the first | |
5820 | operand is enough to determine the result. | |
5821 | * c-typeck.c (build_conditional_expr): Apply the same inhibition | |
5822 | rules here. | |
5823 | (build_binary_op): Prevent duplicate evaluation warnings. | |
5824 | ||
8f048d2f RS |
5825 | 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com> |
5826 | ||
5827 | * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source | |
5828 | and destination have different modes, Use promote_mode to | |
5829 | determine the signedness of the conversion. Assert that the | |
5830 | promoted source mode matches the destination mode. Don't pass | |
5831 | the destination and destination mode to expand_expr if the source | |
5832 | mode is different. Simplify conversion logic. | |
5833 | ||
6f4454fc IR |
5834 | 2009-08-09 Ira Rosen <irar@il.ibm.com> |
5835 | ||
5836 | PR tree-optimization/41008 | |
5837 | * tree-vect-loop.c (vect_is_simple_reduction): Get operands | |
f100a4a8 | 5838 | from condition only in case it's a comparison. Adjust checks. |
6f4454fc | 5839 | |
2c08497a BS |
5840 | 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com> |
5841 | ||
5842 | * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function. | |
5843 | * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it. | |
5844 | * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer. | |
5845 | (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE. | |
5846 | (dump_cand): Handle them. | |
5847 | (struct iv_cand): New members COST_STEP and AINC_USE. | |
5848 | (stmt_after_increment): Likewise. | |
5849 | (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All | |
5850 | callers changed. Use gimple_uid comparison instead of scanning. | |
5851 | (add_candidate_1): When looking for identical candidates, take | |
5852 | AINC_USE into account. Set it for new candidates. | |
5853 | (force_expr_to_var_cost): Cast target_spill_cost to int. | |
5854 | (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC. | |
5855 | All callers changed. Check for availability of autoinc addressing | |
c53c2591 | 5856 | modes, both in general for a given mode, and in the specific use case. |
2c08497a BS |
5857 | (get_computation_cost_at): New argument CAN_AUTOINC. All callers |
5858 | changed. | |
5859 | (get_computation_cost): Likewise. | |
5860 | (autoinc_possible_for_pair, set_autoinc_for_original_candidates, | |
5861 | add_autoinc_candidates): New static functions. | |
5862 | (add_candidate): Call add_autoinc_candidates for candidates based on | |
5863 | a USE_ADDRESS use. | |
5864 | (find_iv_candidates): Call set_autoinc_for_original_candidates. | |
5865 | (determine_use_iv_cost_address): If we have an autoinc candidate at | |
5866 | the matching use, verify autoinc is possible and subtract the cost | |
5867 | of the candidate's step from the cost. | |
5868 | (determine_iv_cost): Record the cost of the increment in the COST_STEP | |
5869 | member of the candidate. | |
5870 | (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and | |
5871 | determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks. | |
5872 | ||
a9a25daa DR |
5873 | 2009-08-09 Douglas B Rupp <rupp@gnat.com> |
5874 | ||
5875 | * config.build (ia64-hp-*vms*): New target. | |
5876 | (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify | |
5877 | with ia64-hp-*vms*. | |
5878 | * config.gcc (ia64-hp-*vms*): New target. | |
5879 | (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify | |
5880 | with ia64-hp-*vms*. | |
5881 | * config.host (ia64-hp-*vms*): New target. | |
5882 | (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify | |
5883 | with ia64-hp-*vms*. | |
5884 | ||
55194b0b RG |
5885 | 2009-08-08 Richard Guenther <rguenther@suse.de> |
5886 | ||
5887 | PR tree-optimization/40991 | |
5888 | * tree-ssa-pre.c (eliminate): Delay purging EH edges. | |
5889 | ||
d686d892 RS |
5890 | 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com> |
5891 | ||
5892 | * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from | |
5893 | mode check. Do truncations in an integer mode. | |
5894 | (force_to_mode): Handle subregs for all mode types. Only do | |
5895 | arithmetic simplifications on integer modes. | |
5896 | ||
0adef8e9 RG |
5897 | 2009-08-07 Richard Guenther <rguenther@suse.de> |
5898 | ||
5899 | PR tree-optimization/40999 | |
5900 | * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs. | |
5901 | (maybe_fold_reference): Lookup constant initializers. | |
5902 | (fold_gimple_assign): Likewise. | |
5903 | ||
60419cc8 RG |
5904 | 2009-08-07 Richard Guenther <rguenther@suse.de> |
5905 | ||
5906 | * tree-ssa.c (useless_type_conversion_p_1): Only for types | |
5907 | that require structural equality defer to the langhook. | |
5908 | ||
685b0d13 MJ |
5909 | 2009-08-07 Martin Jambor <mjambor@suse.cz> |
5910 | ||
5911 | * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed | |
5912 | comments. | |
5913 | (struct ipa_pass_through_data): New type. | |
5914 | (struct ipa_ancestor_jf_data): New type. | |
5915 | (union jump_func_value): Removed field formal_id, added fields | |
5916 | pass_through and ancestor. | |
5917 | (struct ipa_param_call_note): Changed type of formal_id to int from | |
5918 | unsigned. | |
5919 | * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with | |
5920 | operations jump functions and ancestor jump functions. | |
5921 | (compute_complex_pass_through): New function. | |
5922 | (compute_scalar_jump_functions): Call compute_complex_pass_through, | |
5923 | reflect changes in the jump function strucutre. | |
5924 | (update_jump_functions_after_inlining): Ignore complex pass-through | |
5925 | and ancestor jump functions. | |
5926 | * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and | |
5927 | polynomial pass-through with operation jump functions. | |
5928 | ||
17f6e37d JJ |
5929 | 2009-08-07 Jakub Jelinek <jakub@redhat.com> |
5930 | ||
5931 | * dwarf2out.c (output_fde): When doing hot/cold partitioning, use | |
5932 | fde->dw_fde_begin as begin label instead of hot/cold label. | |
5933 | Use LLSDAC label instead of LLSDA for second section lsda. | |
5934 | (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC | |
5935 | label instead of LLSDA if it is true. | |
5936 | (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust | |
5937 | callers. | |
5938 | * except.c (add_call_site, dw2_size_of_call_site_table): Add | |
5939 | SECTION argument. Use it as index into crtl->eh.call_site_record | |
5940 | array. | |
5941 | (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument, | |
5942 | use it to determine how to print table entries instead of using | |
5943 | #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold | |
5944 | label instead of normal begin label as base. | |
5945 | (sjlj_assign_call_site_values): Adjust add_call_site caller. | |
5946 | (convert_to_eh_region_ranges): When doing hot/cold partitioning, | |
5947 | ensure no EH range spans between sections and that landing pads | |
5948 | are always in the corresponding section. | |
5949 | (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust | |
5950 | for crtl->eh.call_site_record being an array rather than scalar. | |
5951 | (output_one_function_exception_table): New function, copied | |
5952 | from output_function_exception_table. Adjust | |
5953 | dw2_size_of_call_site_table, dw2_output_call_site_table | |
5954 | callers. For SECOND section use *C suffixed labels. | |
5955 | (output_function_exception_table): Call | |
5956 | output_one_function_exception_table and, when doing hot/cold | |
5957 | partitioning, also another time for the second section. | |
5958 | * opts.c: Include except.h. | |
5959 | (decode_options): Allow -freorder-blocks-and-partition with | |
5960 | exceptions, unless SJLJ or TARGET_UNWIND_INFO. | |
5961 | * Makefile.in (opts.o): Depend on $(EXCEPT_H). | |
5962 | * function.h (struct rtl_eh): Change call_site_record from | |
5963 | scalar into array of 2 elements. | |
5964 | ||
3f84bf08 MJ |
5965 | 2009-08-07 Martin Jambor <mjambor@suse.cz> |
5966 | ||
5967 | * ipa-prop.c (count_formal_params_1): New function. | |
5968 | (ipa_get_vector_of_formal_parms): New function. | |
5969 | (get_vector_of_formal_parm_types): New function. | |
5970 | (ipa_modify_formal_parameters): New function. | |
5971 | (ipa_modify_call_arguments): New function. | |
5972 | (index_in_adjustments_multiple_times_p): New function. | |
5973 | (ipa_combine_adjustments): New function. | |
5974 | (ipa_dump_param_adjustments): New function. | |
5975 | * ipa-prop.h (struct ipa_parm_adjustment): New type. | |
5976 | (ipa_get_vector_of_formal_parms): Declare. | |
5977 | (ipa_modify_formal_parameters): Declare. | |
5978 | (ipa_modify_call_arguments): Declare. | |
5979 | (ipa_combine_adjustments): Declare. | |
5980 | (ipa_dump_param_adjustments): Declare. | |
5981 | (build_ref_for_offset): Declare. | |
5982 | * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies. | |
5983 | * tree-sra.c: Include ipa-prop.c. | |
f100a4a8 | 5984 | (build_ref_for_offset): Make public. |
3f84bf08 | 5985 | |
ee26a76d NV |
5986 | 2009-08-06 Neil Vachharajani <nvachhar@gmail.com> |
5987 | ||
5988 | * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC. | |
f100a4a8 | 5989 | |
48c4de16 TS |
5990 | 2009-08-06 Thomas Schwinge <tschwinge@gnu.org> |
5991 | ||
5992 | * gcc/doc/extend.texi (__builtin_extract_return_address) | |
5993 | (__builtin_frob_return_address): Document. | |
5994 | ||
f36d140e PB |
5995 | 2009-08-06 Paul Brook <paul@codesourcery.com> |
5996 | ||
5997 | * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation. | |
5998 | (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1 | |
5999 | implementation on ARMv6-M. | |
6000 | ||
14a782c8 RE |
6001 | 2009-08-06 Richard Earnshaw <rearnsha@arm.com> |
6002 | ||
6003 | * doc/extend.texi (pcs): Document new attribute for ARM. | |
6004 | ||
0f1a24df RE |
6005 | 2009-08-06 Richard Earnshaw <rearnsha@arm.com> |
6006 | ||
6007 | * arm.c (pcs_attribute_args): Comment out unsupported attribute | |
6008 | variants. | |
6009 | ||
a9717079 RE |
6010 | 2009-08-06 Richard Earnshaw <rearnsha@arm.com> |
6011 | ||
6012 | * arm.c (arm_handle_pcs_attribute): Pass the entire name object to | |
6013 | warning (). | |
6014 | ||
d8e6aede RE |
6015 | 2009-08-06 Richard Earnshaw <rearnsha@arm.com> |
6016 | ||
6017 | * arm.c (arm_handle_pcs_attribute): Use %qE in warning. | |
6018 | ||
390b17c2 RE |
6019 | 2009-08-06 Richard Earnshaw <rearnsha@arm.com> |
6020 | ||
6021 | Merge ARM/hard_vfp_branch to trunk. | |
6022 | ||
6023 | 2009-08-04 Richard Earnshaw <rearnsha@arm.com> | |
6024 | ||
6025 | * arm.c (libcall_eq): New function. | |
6026 | (libcall_hash): New function. | |
6027 | (add_libcall): New function. | |
6028 | (arm_libcall_uses_aapcs_base): New function. | |
6029 | (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for | |
6030 | libcalls using the base PCS. | |
6031 | (arm_init_cumulative_args): Likewise. | |
6032 | ||
6033 | 2009-07-20 Joseph Myers <joseph@codesourcery.com> | |
6034 | ||
6035 | * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args): | |
6036 | Use base ABI for conversion libfuncs between HFmode and SFmode. | |
6037 | ||
6038 | 2009-05-12 Joseph Myers <joseph@codesourcery.com> | |
6039 | ||
6040 | * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and | |
6041 | V4SImode as representatives of all 64-bit and 128-bit vector | |
6042 | types. Allow vector types without vector modes. | |
6043 | (aapcs_vfp_is_call_or_return_candidate): Handle vector types | |
6044 | without vector modes like BLKmode. | |
6045 | (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like | |
6046 | BLKmode. Avoid unsupported vector modes or TImode moves for | |
6047 | non-TARGET_NEON. | |
6048 | (aapcs_vfp_allocate_return_reg): Likewise. | |
6049 | (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and | |
6050 | V8QImode if TARGET_NEON || TARGET_IWMMXT. | |
6051 | ||
6052 | 2009-05-12 Joseph Myers <joseph@codesourcery.com> | |
6053 | ||
6054 | * config/arm/arm.c (arm_handle_pcs_attribute): New. | |
6055 | (arm_get_pcs_model): Pass attribute arguments to | |
6056 | arm_pcs_from_attribute. | |
6057 | (arm_init_cumulative_args): Use base AAPCS for conversions from | |
6058 | floating-point types to DImode. | |
6059 | (arm_attribute_table): Add pcs attribute. | |
6060 | (arm_handle_pcs_attribute): New. | |
6061 | * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming | |
6062 | conversions from floating-point types to DImode, also declare them | |
6063 | to use base AAPCS and declare functions they call to use base | |
6064 | AAPCS and their RTABI names. | |
6065 | ||
6066 | 2009-05-12 Joseph Myers <joseph@codesourcery.com> | |
6067 | ||
6068 | * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about | |
6069 | -mfloat-abi=hard not being supported for VFP. | |
6070 | ||
6071 | 2009-05-11 Kazu Hirata <kazu@codesourcery.com> | |
6072 | ||
6073 | * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall | |
6074 | SYMBOL_REF to hard_libcall_value. | |
6075 | ||
6076 | 2009-03-05 Joseph Myers <joseph@codesourcery.com> | |
6077 | Richard Earnshaw <rearnsha@arm.com> | |
6078 | ||
6079 | * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument | |
6080 | has been put on the stack, all remaining co-processory arguments for | |
6081 | that co-processor also go on the stack. | |
6082 | ||
6083 | 2009-03-05 Joseph Myers <joseph@codesourcery.com> | |
6084 | ||
6085 | * config/arm/arm.c (arm_return_in_memory): Handle returning | |
6086 | vectors of suitable size in registers also for AAPCS case. | |
6087 | ||
6088 | 2009-01-13 Richard Earnshaw <rearnsha@arm.com> | |
6089 | ||
6090 | * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement. | |
6091 | ||
6092 | 2008-12-09 Richard Earnshaw <rearnsha@arm.com> | |
6093 | ||
6094 | ARM Hard-VFP calling convention | |
6095 | * target-def.h (TARGET_LIBCALL_VALUE): New hook. | |
6096 | * target.h (gcc_target): Add libcall_value to table of call hooks. | |
6097 | * targhooks.h (default_libcall_value): Default implementation. | |
6098 | * targhooks.c (default_libcall_value): Likewise. | |
6099 | * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it. | |
6100 | * optabs.c (expand_unop): Use it. | |
6101 | * expr.h (hard_libcall_value): Pass the function RTX through. | |
f100a4a8 | 6102 | * calls.c (emit_library_call_value_1): Update call to |
390b17c2 RE |
6103 | hard_libcall_value. |
6104 | * explow.c (hard_libcall_value): Use new target hook. | |
6105 | * testsuite/lib/target-supports.exp | |
6106 | (check_effective_target_arm_hard_vfp_ok): New hook. | |
6107 | (check_effective_target_arm_neon_ok): Improve test for neon | |
6108 | availability. | |
6109 | * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant. | |
6110 | * config/arm/arm.c: Include cgraph.h | |
6111 | (TARGET_FUNCTION_VALUE): Override default hook. | |
6112 | (arm_pcs_default): New variable. | |
6113 | (arm_override_options): Don't fault hard calling convention with VFP. | |
6114 | Add support for AAPCS variants. | |
6115 | (arm_function_value): Make static. Handle AAPCS variants. | |
6116 | (arm_libcall_value): New function. | |
6117 | (arm_apply_result_size): Handle VFP registers in results. | |
6118 | (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp | |
6119 | conventions. | |
6120 | (pcs_attribute_args): New variable. | |
6121 | (arm_pcs_from_attribute): New function. | |
6122 | (arm_get_pcs_model): New function. | |
6123 | (aapcs_vfp_cum_init): New function. | |
6124 | (aapcs_vfp_sub_candidate): New function. | |
6125 | (aapcs_vfp_is_return_candidate): New function. | |
6126 | (aapcs_vfp_is_call_candidate): New function. | |
6127 | (aapcs_vfp_allocate): New function. | |
6128 | (aapcs_vfp_allocate_return_reg): New function. | |
6129 | (aapcs_vfp_advance): New function. | |
6130 | (aapcs_cp_arg_layout): New variable. | |
6131 | (aapcs_select_call_coproc): New function. | |
6132 | (aapcs_select_return_coproc): New function. | |
6133 | (aapcs_allocate_return_reg): New function. | |
6134 | (aapcs_libcall_value): New function. | |
6135 | (aapcs_layout_arg): New function. | |
6136 | (arm_init_cumulative_args): Initialize AAPCS args data. | |
6137 | (arm_function_arg): Handle AAPCS variants using new interface. | |
6138 | (arm_arg_parital_bytes): Likewise. | |
6139 | (arm_function_arg_advance): New function. | |
6140 | (arm_function_ok_for_sibcall): Ensure that sibling calls agree on | |
6141 | calling conventions. | |
6142 | (arm_setup_incoming_varargs): Handle new AAPCS args data. | |
6143 | * arm.h (NUM_VFP_ARG_REGS): Define. | |
6144 | (LIBCALL_VALUE): Update. | |
6145 | (FUNCTION_VALUE): Delete. | |
6146 | (FUNCTION_VALUE_REGNO_P): Add VFP regs. | |
6147 | (arm_pcs): New enum. | |
6148 | (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling. | |
6149 | (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance. | |
6150 | (FUNCTION_ARG_REGNO_P): Add VFP regs. | |
6151 | * arm-protos.h (arm_function_arg_advance): Add. | |
6152 | (aapcs_libcall_value): Add. | |
6153 | (arm_function_value): Delete. | |
6154 | ||
4dbf26d5 UB |
6155 | 2009-08-06 Uros Bizjak <ubizjak@gmail.com> |
6156 | H.J. Lu <hongjiu.lu@intel.com> | |
6157 | ||
6158 | PR target/40957 | |
6159 | * config/i386/i386.c (standard_sse_mode_p): Remove. | |
6160 | (standard_sse_constant_p): Return 2 for integer mode | |
6161 | vector_all_ones_operand when SSE2 is enabled. | |
6162 | (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd. | |
6163 | (ix86_expand_vector_move): Do not check for negative values from | |
6164 | standard_sse_constant_p. | |
6165 | ||
e52201b6 RG |
6166 | 2009-08-06 Richard Guenther <rguenther@suse.de> |
6167 | ||
6168 | * tree-ssa.c (useless_type_conversion_p_1): Make function and | |
6169 | array type comparisons frontend independent. | |
6170 | * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency. | |
6171 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill | |
6172 | out array reference lower bound and element size operands. | |
6173 | (ao_ref_init_from_vn_reference): Properly compute the offset | |
6174 | for ARRAY_RANGE_REF. | |
6175 | (vn_reference_fold_indirect): Fill out array reference lower | |
6176 | bound and element size operands. | |
6177 | * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate | |
6178 | a non gimple valued reference operand which can happen for | |
6179 | array reference lower bound or element size. | |
6180 | (create_component_ref_by_pieces_1): Properly generate the | |
6181 | element size operand for array references. | |
6182 | ||
b92fbdd7 RB |
6183 | 2009-08-06 Richard Guenther <rguenther@suse.de> |
6184 | ||
6185 | PR tree-optimization/40964 | |
6186 | * tree.c (iterative_hash_host_wide_int): Export. | |
6187 | * tree.h (iterative_hash_host_wide_int): Declare. | |
6188 | * tree-ssa-structalias.c (heapvar_map): New struct. | |
6189 | (heapvar_map_eq): New function. | |
6190 | (heapvar_map_hash): Likewise. | |
6191 | (heapvar_lookup): Adjust. | |
6192 | (heapvar_insert): Likewise. | |
6193 | (make_constraint_from_heapvar): Allow multiple heap variables | |
6194 | per decl at different offsets. | |
6195 | (init_alias_heapvars): Adjust. | |
6196 | ||
068ca03a DD |
6197 | 2009-08-04 David Daney <ddaney@caviumnetworks.com> |
6198 | ||
6199 | * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro. | |
6200 | * mips_output_sync_loop (mips_output_sync_loop): Only emit | |
6201 | trailing sync if TARGET_SYNC_AFTER_SC. | |
6202 | ||
40a4a37b DD |
6203 | 2009-08-05 David Daney <ddaney@caviumnetworks.com> |
6204 | ||
6205 | * gcc/config/mips/sync.md (sync_compare_and_swap<mode>, | |
6206 | compare_and_swap_12, sync_add<mode>, sync_<optab>_12, | |
6207 | sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12, | |
6208 | sync_old_nand_12, sync_new_nand_12, sync_sub<mode>, | |
6209 | sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>, | |
6210 | sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>, | |
6211 | sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>, | |
6212 | sync_new_nand<mode>, sync_lock_test_and_set<mode>, | |
6213 | test_and_set_12): Rewrite calls to mips_output_sync_loop. | |
6214 | * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make | |
6215 | the prototype declaration match the definition. | |
6216 | * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync | |
6217 | instructions explicitly. Add barrier_before and operands | |
6218 | parameters. | |
6219 | * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP, | |
6220 | MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12, | |
6221 | MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP, | |
6222 | MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, | |
6223 | MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE, | |
6224 | MIPS_SYNC_EXCHANGE_12): Remove sync instructions. | |
6225 | ||
dcbd7063 AP |
6226 | 2009-08-05 Andrew Pinski <pinskia@gmail.com> |
6227 | ||
6228 | * tree-ssa-alias.c: Fix intervals to use [) syntax. | |
6229 | ||
2c4389d8 UB |
6230 | 2009-08-05 Uros Bizjak <ubizjak@gmail.com> |
6231 | Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> | |
6232 | ||
6233 | PR target/40906 | |
6234 | * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part | |
6235 | source operand. | |
6236 | ||
403c7520 JJ |
6237 | 2009-08-05 Jakub Jelinek <jakub@redhat.com> |
6238 | ||
6239 | PR rtl-optimization/40924 | |
6240 | * dse.c (canon_address): Before calling cselib_expand_value_rtx | |
6241 | make sure canon_rtx (mem_address) isn't simpler than | |
6242 | canon_rtx (expanded_mem_address). | |
6243 | ||
64393e40 LF |
6244 | 2009-08-05 Li Feng <nemokingdom@gmail.com> |
6245 | ||
6246 | * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set | |
6247 | for each poly_bb_p. | |
6248 | (build_scop_drs): Build alias set for each SCoP. | |
6249 | ||
5dce6dbd SL |
6250 | 2009-08-04 Sandra Loosemore <sandra@codesourcery.com> |
6251 | ||
6252 | * doc/invoke.texi (MIPS Options): Document new 1004K -march options. | |
6253 | * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores. | |
6254 | * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K. | |
6255 | (MIPS_ARCH_FLOAT_SPEC): Likewise. | |
6256 | (BASE_DRIVER_SELF_SPECS): Likewise. | |
6257 | ||
f9fc1a02 AP |
6258 | 2009-08-04 Andrew Pinski <pinskia@gmail.com> |
6259 | ||
6260 | * tree-ssa-alias.c: Fix some comment typos. | |
6261 | ||
09a7d0af KK |
6262 | 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org> |
6263 | ||
6264 | * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP, | |
6265 | ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define. | |
6266 | ||
50cd60be JJ |
6267 | 2009-08-03 Janis Johnson <janis187@us.ibm.com> |
6268 | ||
6269 | PR c/39902 | |
6270 | * simplify-rtx.c (simplify_binary_operation_1): Disable | |
6271 | simplifications for decimal float operations. | |
6272 | ||
1768a052 JJ |
6273 | 2009-08-03 Jakub Jelinek <jakub@redhat.com> |
6274 | ||
6275 | PR middle-end/40943 | |
6276 | * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for | |
6277 | operand of INDIRECT_REF. | |
6278 | ||
42a9ba1d UB |
6279 | 2009-08-03 Uros Bizjak <ubizjak@gmail.com> |
6280 | ||
6281 | * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST | |
6282 | constants referencing TLS symbols. | |
6283 | ||
9f774cb0 ST |
6284 | 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp> |
6285 | ||
6286 | * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename | |
6287 | __sync_compare_and_swap_* to __sync_val_compare_and_swap_*. | |
6288 | ||
907dd6ae RG |
6289 | 2009-08-03 Richard Guenther <rguenther@suse.de> |
6290 | ||
6291 | * tree.c (make_vector_type): Build a main variant first, | |
6292 | get the canonical one and then build the variant. | |
6293 | * tree-ssa.c (useless_type_conversion_p_1): Handle | |
6294 | fixed-point types. | |
6295 | (useless_type_conversion_p): Conversions to pointers to | |
6296 | incomplete record types are useless. | |
6297 | ||
2329c6f5 RG |
6298 | 2009-08-03 Richard Guenther <rguenther@suse.de> |
6299 | ||
6300 | * tree-cfg.c (pass_warn_unused_result): Mark name that no dump | |
6301 | file will be created. | |
6302 | * omp-low.c (pass_diagnose_omp_blocks): Likewise. | |
6303 | * toplev.c (compile_file): Adjust comment. | |
6304 | ||
d055ce45 KK |
6305 | 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org> |
6306 | ||
6307 | * config/sh/sh-protos.h (sh_promote_function_mode): Remove. | |
6308 | * config/sh/sh.c (sh_promote_function_mode): Wrap long lines. | |
6309 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6310 | (TARGET_PROMOTE_FUNCTION_ARGS): Remove. | |
6311 | (sh_promote_function_mode): Fix typo. | |
6312 | ||
b1680483 AK |
6313 | 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com> |
6314 | ||
42a9ba1d | 6315 | * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused. |
b1680483 | 6316 | |
4ce3042d JDA |
6317 | 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
6318 | ||
6319 | * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from | |
6320 | declaration arguments. | |
6321 | ||
0589e07d UB |
6322 | 2009-08-02 Uros Bizjak <ubizjak@gmail.com> |
6323 | ||
6324 | * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead | |
6325 | of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01). | |
6326 | (ix86_split_ashl): Ditto. | |
6327 | (ix86_expand_vector_init_one_nonzero): Ditto. | |
6328 | (ix86_expand_vector_set): Ditto. | |
6329 | (ix86_expand_reduc_v4sf): Ditto. | |
6330 | ||
6331 | 2009-08-02 Paolo Bonzini <bonzini@gnu.org> | |
6e957ac8 PB |
6332 | |
6333 | * explow.c (promote_function_mode): Remove assert. | |
6334 | * config/sh/sh.c (sh_promote_function_mode): Declare. | |
6335 | ||
be3e4ef6 JDA |
6336 | 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
6337 | ||
6e957ac8 PB |
6338 | * config/pa/pa.c (pa_promote_function_mode): Declare. |
6339 | Change to static. Fix promote_mode call. | |
02095c50 | 6340 | |
1f7ec57e JDA |
6341 | * gthr-dce.h (CONST_CAST2): Define if not defined. |
6342 | (__gthread_setspecific): Use CONST_CAST2 to fix warning. | |
6343 | ||
be3e4ef6 JDA |
6344 | * config.gcc (hppa[12]*-*-hpux10*): Add stdint support. |
6345 | ||
6e957ac8 | 6346 | 2009-08-01 Paolo Bonzini <bonzini@gnu.org> |
cde0f3fd PB |
6347 | |
6348 | * expr.c (store_constructor): Use promote_decl_mode. Remove | |
6349 | now write-only variable unsignedp. | |
6350 | (expand_expr_real_1): Use promote_decl_mode. | |
6351 | * expr.h (promote_function_mode, promote_decl_mode): New. | |
6352 | (promote_mode): Remove last argument. | |
6353 | * function.c (assign_temp): Drop last argument of promote_mode. | |
6354 | (assign_parm_find_data_types): Use promote_function_mode. | |
6355 | (assign_parm_setup_reg): Likewise. | |
6356 | (expand_function_end): Use promote_function_mode. | |
6357 | * calls.c (initialize_argument_information): Use promote_function_mode. | |
6358 | (precompute_arguments): Use promote_mode instead of checking if | |
6359 | only PROMOTE_FUNCTION_MODE is defined. | |
6360 | (expand_call): When making sibcall decisions, use promote_function_mode. | |
6361 | Below, remove an if for targetm.calls.promote_function_return and | |
6362 | and use promote_function_mode. | |
6363 | (emit_library_call_value_1): Use promote_function_mode, fix bug | |
6364 | where promote_mode was passed FOR_CALL == 0 for a return value in an | |
6365 | assertion. | |
6366 | * cfgexpand.c (expand_one_register_var): Use promote_decl_mode. | |
6367 | * explow.c (promote_function_mode, promote_decl_mode): New. | |
6368 | (promote_mode): Keep only the FOR_CALL == 0 case. | |
6369 | * combine.c (setup_incoming_promotion): Remove test of | |
6370 | promote_function_args. Use promote_function_mode. | |
6371 | * stmt.c (expand_value_return): Use promote_decl_mode. | |
6372 | (expand_decl): Use promote_decl_mode. | |
6373 | ||
6374 | * expr.c (store_constructor): Use promote_decl_mode. Remove | |
6375 | now write-only variable unsignedp. | |
6376 | (expand_expr_real_1): Use promote_decl_mode. | |
6377 | * expr.h (promote_function_mode, promote_decl_mode): New. | |
6378 | (promote_mode): Remove last argument. | |
6379 | * function.c (assign_temp): Drop last argument of promote_mode. | |
6380 | (assign_parm_find_data_types): Use promote_function_mode. | |
6381 | (assign_parm_setup_reg): Likewise. | |
6382 | (expand_function_end): Use promote_function_mode. | |
6383 | * calls.c (initialize_argument_information): Use promote_function_mode. | |
6384 | (precompute_arguments): Use promote_mode instead of checking if | |
6385 | only PROMOTE_FUNCTION_MODE is defined. | |
6386 | (expand_call): When making sibcall decisions, use promote_function_mode. | |
6387 | Below, remove an if for targetm.calls.promote_function_return and | |
6388 | and use promote_function_mode. | |
6389 | (emit_library_call_value_1): Use promote_function_mode, fix bug | |
6390 | where promote_mode was passed FOR_CALL == 0 for a return value in an | |
6391 | assertion. | |
6392 | * cfgexpand.c (expand_one_register_var): Use promote_decl_mode. | |
6393 | * explow.c (promote_function_mode, promote_decl_mode): New. | |
6394 | (promote_mode): Keep only the FOR_CALL == 0 case. | |
6395 | * combine.c (setup_incoming_promotion): Remove test of | |
6396 | promote_function_args. Use promote_function_mode. | |
6397 | * stmt.c (expand_value_return): Use promote_decl_mode. | |
6398 | (expand_decl): Use promote_decl_mode. | |
6399 | ||
6400 | * explow.c (promote_function_mode): Just call the target hook. | |
6401 | * targhooks.c (default_promote_function_mode, | |
6402 | default_promote_function_mode_always_promote): New. | |
6403 | * targhooks.h (default_promote_function_mode, | |
6404 | default_promote_function_mode_always_promote): Declare. | |
6405 | * target.h (promote_function_args, promote_function_return): Remove. | |
6406 | (promote_function_mode): New. | |
6407 | * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS, | |
6408 | TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6409 | (TARGET_PROMOTE_FUNCTION_MODE): New. | |
6410 | (TARGET_CALLS): Adjust. | |
6411 | * system.h (TARGET_PROMOTE_FUNCTION_ARGS, | |
6412 | TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison. | |
6413 | ||
6414 | * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move... | |
6415 | * config/s390/s390.c (s390_promote_function_mode): ... here, | |
6416 | with pointer handling. | |
6417 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6418 | (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6419 | ||
6420 | * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move... | |
6421 | * config/sparc/sparc.c (sparc_promote_function_mode): ... here, | |
6422 | with pointer handling. | |
6423 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6424 | (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
f100a4a8 | 6425 | |
cde0f3fd PB |
6426 | * config/sh/sh-protos.h (sh_promote_function_mode): New. |
6427 | * config/sh/sh.c (sh_promote_function_mode): New. | |
6428 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6429 | (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6430 | ||
6431 | * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move... | |
6432 | * config/cris/cris.c (cris_promote_function_mode): ... here. | |
6433 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6434 | (TARGET_PROMOTE_FUNCTION_ARGS): Remove. | |
6435 | ||
6436 | * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move... | |
6437 | * config/mmix/mmix.c (mmix_promote_function_mode): ... here. | |
6438 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6439 | (TARGET_PROMOTE_FUNCTION_ARGS): Remove. | |
6440 | ||
6441 | * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move... | |
0589e07d UB |
6442 | * config/arm/arm.c (arm_promote_function_mode): ... here, without |
6443 | complex type handling. | |
cde0f3fd PB |
6444 | (TARGET_PROMOTE_FUNCTION_MODE): Define. |
6445 | (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6446 | ||
6447 | * config/pa/pa.c (pa_promote_function_mode): New. | |
6448 | (TARGET_PROMOTE_FUNCTION_MODE): Define. | |
6449 | (TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6450 | ||
6451 | * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS, | |
6452 | TARGET_PROMOTE_FUNCTION_RETURN): Remove. | |
6453 | (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently. | |
6454 | * config/xtensa/xtensa.c: Likewise. | |
6455 | * config/stormy16/stormy16.c: Likewise. | |
6456 | * config/iq2000/iq2000.c: Likewise. | |
6457 | * config/rs6000/rs6000.c: Likewise. | |
6458 | * config/picochip/picochip.c: Likewise. | |
6459 | * config/arc/arc.c: Likewise. | |
6460 | * config/mcore/mcore.c: Likewise. | |
6461 | * config/score/score.c: Likewise. | |
6462 | * config/mips/mips.c: Likewise. | |
6463 | * config/bfin/bfin.c: Likewise. | |
6464 | * config/ia64/ia64.c: Likewise (disabled though). | |
6465 | ||
6466 | * config/frv/frv.h: Remove pointless remark. | |
6467 | ||
6468 | * doc/tm.texi (PROMOTE_FUNCTION_MODE, | |
6469 | TARGET_PROMOTE_FUNCTION_ARGS, | |
6470 | TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into... | |
6471 | (TARGET_PROMOTE_FUNCTION_MODE): ... this. | |
6472 | ||
3cf0e270 SP |
6473 | 2009-08-01 Sebastian Pop <sebastian.pop@amd.com> |
6474 | ||
6475 | * doc/invoke.texi (-fgraphite-force-parallel): Renamed | |
6476 | -floop-parallelize-all. | |
6477 | * toplev.c (process_options): Rename flag_graphite_force_parallel to | |
6478 | flag_loop_parallelize_all. | |
6479 | * tree-ssa-loop.c (gate_graphite_transforms): Same. | |
6480 | * graphite.c (graphite_transform_loops): Same. | |
6481 | * common.opt: Same. | |
6482 | * graphite-poly.c (apply_poly_transforms): Same. | |
6483 | ||
6f7b8b70 RE |
6484 | 2009-07-31 Richard Earnshaw <rearnsha@arm.com> |
6485 | ||
6486 | PR tree-optimization/40914 | |
6487 | * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta, | |
6488 | if set, then check the delta field of the PMF record. | |
6489 | (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta. | |
6490 | (ipa_analyze_call_uses): Handle machines where the vbit for a PMF | |
6491 | call is stored in the delta. | |
6492 | ||
17320477 AN |
6493 | 2009-07-31 Adam Nemet <anemet@caviumnetworks.com> |
6494 | ||
6495 | * config/mips/mips.md (*clear_upper32_dext): New pattern. | |
6496 | ||
e61c6562 UB |
6497 | 2009-07-31 Uros Bizjak <ubizjak@gmail.com> |
6498 | ||
6499 | * config/i386/bsd.h (ASM_BYTE): New define. | |
6500 | * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP. | |
6501 | * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of | |
6502 | .byte. Use fputs or putc instead of fprintf where appropriate. | |
6503 | * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use | |
6504 | fputs or putc instead of fprintf where appropriate. | |
6505 | * config/i386/i386elf.h: Ditto. | |
6506 | * config/i386/sysv4.h: Ditto. | |
f100a4a8 | 6507 | |
e61c6562 UB |
6508 | * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define. |
6509 | * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte. | |
6510 | (*tls_global_dynamic_64): Ditto. | |
6511 | ||
f100a4a8 | 6512 | 2009-07-31 Christian Bruel <christian.bruel@st.com> |
ea2002ba CB |
6513 | |
6514 | * gcc/config.gcc (sh*-*-elf): test with_libgloss. | |
f100a4a8 | 6515 | |
17eb4921 RR |
6516 | 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
6517 | ||
f100a4a8 | 6518 | * config/arm/arm.c (arm_arm_address_cost): Fix typo. |
17eb4921 RR |
6519 | Remove dead code for MINUS. |
6520 | ||
23865616 AG |
6521 | 2009-07-31 Anthony Green <green@moxielogic.com> |
6522 | ||
6523 | * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of | |
6524 | $r12 in prologue. | |
6525 | (moxie_expand_epilogue): Ditto for epilogue. | |
6526 | (moxie_setup_incoming_varargs): ABI change. Use 5 registers for | |
6527 | incoming arguments. | |
6528 | (moxie_function_arg): Ditto. | |
6529 | (moxie_pass_by_reference): Ditto. | |
6530 | (moxie_arg_partial_bytes): Ditto. | |
6531 | * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto. | |
6532 | (FUNCTION_ARG_ADVANCE) Ditto. | |
6533 | (REG_PARM_STACK_SPACE) Ditto. | |
6534 | (FUNCTION_ARG_REGNO_P) Dito. | |
6535 | ||
6536 | * config.gcc: Add moxie linux config support. | |
6537 | * gcc/config/moxie/uclinux.h: New file. | |
6538 | ||
20e19db4 DD |
6539 | 2009-07-31 DJ Delorie <dj@redhat.com> |
6540 | ||
6541 | * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New. | |
6542 | (UNSPECV_SP_SWITCH_E): New. | |
6543 | (sp_switch_1): Change to an unspec. | |
6544 | (sp_switch_2): Change to an unspec. Don't use post-inc when we | |
6545 | replace $r15. | |
6546 | * config/sh/sh.c (sh_expand_prologue): Use the constant pool to | |
6547 | reference the new stack's address | |
6548 | ||
204b560f SP |
6549 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6550 | ||
6551 | * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o, | |
6552 | graphite-clast-to-gimple.o, graphite-dependences.o, | |
6553 | graphite-interchange.o, graphite-poly.o, graphite-ppl.o, | |
6554 | graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o. | |
6555 | (graphite-blocking.o, | |
6556 | graphite-clast-to-gimple.o, graphite-dependences.o, | |
6557 | graphite-interchange.o, graphite-poly.o, graphite-ppl.o, | |
6558 | graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New. | |
6559 | * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false. | |
6560 | * cfgloop.h (struct loop): Add can_be_parallel field. | |
6561 | * common.opt (fgraphite-identity): Moved up. | |
6562 | (fgraphite-force-parallel): New flag. | |
6563 | * graphite.c: Rewrite. | |
6564 | * graphite.h: Rewrite. | |
6565 | * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM | |
6566 | after Graphite. | |
6567 | * toplev.c (graphite_out_file): New file descriptor. | |
6568 | (graphite_in_file): New. | |
6569 | (process_options): flag_graphite_force_parallel cannot be used without | |
6570 | Graphite. | |
6571 | * tree-ssa-loop.c: Include toplev.h. | |
6572 | (gate_graphite_transforms): Enable flag_graphite for | |
6573 | flag_graphite_force_parallel. | |
6574 | ||
2abae5f1 SP |
6575 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6576 | ||
6577 | * ChangeLog.graphite: New. | |
6578 | * graphite-blocking.c: New. | |
6579 | * graphite-clast-to-gimple.c: New. | |
6580 | * graphite-clast-to-gimple.h: New. | |
6581 | * graphite-dependences.c: New. | |
6582 | * graphite-dependences.h: New. | |
6583 | * graphite-interchange.c: New. | |
6584 | * graphite-poly.c: New. | |
6585 | * graphite-poly.h: New. | |
6586 | * graphite-ppl.c: New. | |
6587 | * graphite-ppl.h: New. | |
6588 | * graphite-scop-detection.c: New. | |
6589 | * graphite-scop-detection.h: New. | |
6590 | * graphite-sese-to-poly.c: New. | |
6591 | * graphite-sese-to-poly.h: New. | |
6592 | * sese.c: New. | |
6593 | * sese.h: New. | |
6594 | ||
e7c705bb SP |
6595 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6596 | ||
6597 | * tree-chrec.c (evolution_function_right_is_integer_cst): New. | |
6598 | * tree-chrec.h (evolution_function_right_is_integer_cst): Declared. | |
6599 | ||
765deab7 SP |
6600 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6601 | ||
6602 | * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR. | |
6603 | (scev_is_linear_expression): Return false if the evolution is not | |
6604 | affine multivariate. | |
6605 | ||
ed91d661 SP |
6606 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6607 | ||
6608 | * tree-data-ref.c (graphite_find_data_references_in_stmt): New. | |
6609 | * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared. | |
6610 | ||
a37d995a SP |
6611 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6612 | ||
6613 | * tree-data-ref.c (debug_data_references): New. | |
6614 | (debug_data_reference): New. | |
6615 | * tree-data-ref.h (debug_data_references): Declared. | |
6616 | (debug_data_reference): Declared. | |
6617 | ||
ae5b9860 SP |
6618 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6619 | ||
6620 | * tree-data-ref.c (stmt_simple_memref_p: Removed. | |
6621 | * tree-data-ref.h (scop_p): Removed. | |
6622 | (struct data_reference): Remove field scop. | |
6623 | (DR_SCOP): Removed. | |
6624 | (stmt_simple_memref_p): Removed. | |
6625 | ||
8e74b397 SP |
6626 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6627 | ||
6628 | * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument. | |
6629 | * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch | |
6630 | basic block empty. | |
6631 | ||
109e0d57 SP |
6632 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6633 | ||
6634 | * doc/invoke.texi (-fgraphite-force-parallel): Documented. | |
6635 | ||
66a7961b SP |
6636 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6637 | ||
6638 | * doc/invoke.texi (-fgraphite-identity): Documented. | |
6639 | ||
52bdd655 SP |
6640 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6641 | ||
6642 | * tree-scalar-evolution.c: Fix comment. | |
6643 | (instantiate_scev_1): Return unknow from scev instantiation if the | |
6644 | result is not above instantiate_below. | |
6645 | ||
42e6eec5 SP |
6646 | 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> |
6647 | ||
6648 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not | |
6649 | static anymore. Instantiate the symbols that may have been introduced | |
6650 | by chrec_apply. | |
6651 | * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop): | |
6652 | Declared. | |
6653 | ||
77806925 DD |
6654 | 2009-07-30 DJ Delorie <dj@redhat.com> |
6655 | ||
6656 | * config/mep/mep.c (mep_asm_init_sections): Add section flags and | |
6657 | .vliw directive to VLIW sections. | |
6658 | ||
6efbd53f RW |
6659 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
6660 | ||
6661 | * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps): | |
6662 | New variables. | |
6663 | ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules. | |
6664 | (AUTOHEADER): New variable. | |
6665 | ($(srcdir)/cstamp-h.in): Use it. | |
6666 | ||
29e6733c MM |
6667 | 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com> |
6668 | Pat Haugen <pthaugen@us.ibm.com> | |
6669 | Revital Eres <ERES@il.ibm.com> | |
6670 | ||
6671 | * config/rs6000/vector.md (VEC_F): Add VSX support. | |
6672 | (VEC_A): Ditto. | |
6673 | (VEC_N): Ditto. | |
6674 | (mov<mode>): Ditto. | |
6675 | (vector_load_<mode>): Ditto. | |
6676 | (vector_store_<mode>): Ditto. | |
6677 | (vector GPR move split): Ditto. | |
6678 | (vec_reload_and_plus_<mptrsize>): Ditto. | |
6679 | (vec_reload_and_reg_<mptrsize>): Ditto. | |
6680 | (add<mode>3): Ditto. | |
6681 | (sub<mode>3): Ditto. | |
6682 | (mul<mode>3): Ditto. | |
6683 | (neg<mode>2): Ditto. | |
6684 | (abs<mode>2): Ditto. | |
6685 | (smin<mode>3): Ditto. | |
6686 | (smax<mode>3): Ditto. | |
6687 | (vector_eq<mode>): Ditto. | |
6688 | (vector_gt<mode>): Ditto. | |
6689 | (vector_ge<mode>): Ditto. | |
6690 | (vector_gtu<mode>): Ditto. | |
6691 | (vector_select_<mode>_uns): Ditto. | |
6692 | (vector_eq_<mode>_p): Ditto. | |
6693 | (vector_gt_<mode>_p): Ditto. | |
6694 | (vector_ge_<mode>_p): Ditto. | |
6695 | (vector_gtu_<mode>_p): Ditto. | |
6696 | (cr6_test_for_zero): Ditto. | |
6697 | (cr6_test_for_zero_reverse): Ditto. | |
6698 | (cr6_test_for_lt): Ditto. | |
6699 | (cr6_test_for_lt_reverse): Ditto. | |
6700 | (xor<mode>3): Ditto. | |
6701 | (ior<mode>3): Ditto. | |
6702 | (and<mode>3): Ditto. | |
6703 | (one_cmpl<mode>2): Ditto. | |
6704 | (nor<mode>2): Ditto. | |
6705 | (andc<mode>2): Ditto. | |
6706 | (float<VEC_int<mode>2): Ditto. | |
6707 | (unsigned_float<VEC_int><mode>2): Ditto. | |
6708 | (fix_trunc<mode><VEC_int>2): Ditto. | |
6709 | (fixuns_trunc<mode><VEC_int>2): Ditto. | |
6710 | (vec_init<mode>): | |
6711 | (vec_set<mode>): Ditto. | |
6712 | (vec_extract<mode>): Ditto. | |
6713 | (vec_interleave_highv4sf): Ditto. | |
6714 | (vec_interleave_lowv4sf): Ditto. | |
6715 | (vec_realign_load_<mode>): Ditto. | |
6716 | (vec_shl_<mode>): Ditto. | |
6717 | (vec_shr_<mode>): Ditto. | |
6718 | (div<mode>3): New patterns for VSX. | |
6719 | (vec_interleave_highv2df): Ditto. | |
6720 | (vec_interleave_lowv2df): Ditto. | |
6721 | (vec_pack_trunc_v2df): Ditto. | |
6722 | (vec_pack_sfix_trunc_v2df): Ditto. | |
6723 | (vec_pack_ufix_trunc_v2df): Ditto. | |
6724 | (vec_unpacks_hi_v4sf): Ditto. | |
6725 | (vec_unpacks_lo_v4sf): Ditto. | |
6726 | (vec_unpacks_float_hi_v4si): Ditto. | |
29e6733c | 6727 | (vec_unpacks_float_lo_v4si): Ditto. |
1262fd02 UB |
6728 | (vec_unpacku_float_hi_v4si): Ditto. |
6729 | (vec_unpacku_float_lo_v4si): Ditto. | |
29e6733c MM |
6730 | (movmisalign<mode>): Ditto. |
6731 | (vector_ceil<mode>2): New patterns for vectorizing math library. | |
6732 | (vector_floor<mode>2): Ditto. | |
6733 | (vector_btrunc<mode>2): Ditto. | |
6734 | (vector_copysign<mode>3): Ditto. | |
6735 | ||
6736 | * config/rs6000/predicates.md (easy_vector_constant_msb): New | |
e61c6562 | 6737 | predicate for setting the high bit in each word, used for copysign. |
29e6733c MM |
6738 | |
6739 | * config/rs6000/ppc-asm.h (f19): Whitespace. | |
6740 | (f32-f63): Define if VSX. | |
6741 | (v0-v31): Define if Altivec. | |
6742 | (vs0-vs63): Define if VSX. | |
6743 | ||
6744 | * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md. | |
6745 | ||
6746 | * config/rs6000/power7.md: New file, provide tuning parameters for | |
6747 | -mcpu=power7. | |
6748 | ||
e61c6562 | 6749 | * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support. |
29e6733c MM |
6750 | (rs6000_cpu_cpp_builtins): Ditto. |
6751 | (altivec_overloaded_builtins): Ditto. | |
6752 | (altivec_resolve_overloaded_builtin): Ditto. | |
6753 | ||
6754 | * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new | |
6755 | debug switch to disable vectorizing simple math builtin | |
6756 | functions. | |
6757 | ||
6758 | * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): | |
6759 | Vectorize simple math builtin functions. | |
6760 | (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target | |
6761 | hook to vectorize math builtins. | |
6762 | (rs6000_override_options): Enable -mvsx on -mcpu=power7. | |
6763 | (rs6000_builtin_conversion): Add VSX/power7 support. | |
6764 | (rs6000_builtin_vec_perm): Ditto. | |
6765 | (vsplits_constant): Add support for loading up a vector constant | |
6766 | with just the high bit set in each part. | |
6767 | (rs6000_expand_vector_init): Add VSX/power7 support. | |
6768 | (rs6000_expand_vector_set): Ditto. | |
6769 | (rs6000_expand_vector_extract): Ditto. | |
6770 | (rs6000_emit_move): Ditto. | |
6771 | (bdesc_3arg): Ditto. | |
6772 | (bdesc_2arg): Ditto. | |
6773 | (bdesc_1arg): Ditto. | |
6774 | (rs6000_expand_ternop_builtin): Ditto. | |
6775 | (altivec_expand_builtin): Ditto. | |
6776 | (rs6000_expand_unop_builtin): Ditto. | |
6777 | (rs6000_init_builtins): Ditto. | |
6778 | (altivec_init_builtins): Ditto. | |
6779 | (builtin_function_type): Ditto. | |
6780 | (rs6000_common_init_builtins): Ditto. | |
6781 | (rs6000_handle_altivec_attribute); Ditto. | |
6782 | (rs6000_mangle_type): Ditto. | |
6783 | (rs6000_vector_mode_supported_p): Ditto. | |
6784 | (rs6000_mode_dependent_address): Altivec addresses with AND -16 | |
6785 | are mode dependent. | |
6786 | ||
6787 | * config/rs6000/vsx.md: New file for VSX support. | |
6788 | ||
6789 | * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for | |
6790 | identifing values with just the most significant bit set. | |
6791 | (enum rs6000_builtins): Add builtins for VSX. Add simple math | |
6792 | vectorized builtins. | |
6793 | ||
6794 | * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete. | |
6795 | (UNSPEC_VRFIM): Delete. | |
6796 | (splitter for loading up vector with most significant bit): New | |
6797 | splitter for vectorizing copysign. | |
6798 | (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for | |
6799 | vectorizing simple math functions. | |
e61c6562 | 6800 | (altivec_vrfip): Add support for vectorizing simple math functions. |
29e6733c MM |
6801 | (altivec_vrfim): Ditto. |
6802 | (altivec_copysign_v4sf3): New insn for Altivec copysign support. | |
6803 | ||
6804 | * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant. | |
6805 | (power7.md, vsx.md): Include for power7 support. | |
6806 | (copysigndf3): Use VSX instructions if -mvsx. | |
6807 | (negdf2_fpr): Ditto. | |
6808 | (absdf2_fpr): Ditto. | |
6809 | (nabsdf2_fpr): Ditto. | |
6810 | (adddf3_fpr): Ditto. | |
6811 | (subdf3_fpr): Ditto. | |
6812 | (muldf3_fpr): Ditto. | |
6813 | (divdf3_fpr): Ditto. | |
6814 | (fix_truncdfdi2_fpr): Ditto. | |
6815 | (cmpdf_internal1): Ditto. | |
6816 | (fred, fred_fpr): Convert into expander/insn to add VSX support. | |
6817 | (btruncdf2, btruncdf2_fpr): Ditto. | |
6818 | (ceildf2, ceildf2_fpr): Ditto. | |
6819 | (floordf2, floordf2_fpr): Ditto. | |
6820 | (floatdidf2, floatdidf2_fpr): Ditto. | |
6821 | (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx. | |
6822 | (fmsubdf4_fpr): Ditto. | |
6823 | (fnmadddf4_fpr_1): Ditto. | |
6824 | (fnmadddf4_fpr_2): Ditto. | |
6825 | (fnmsubdf4_fpr_1): Ditto. | |
6826 | (fnmsubdf4_fpr_2): Ditto. | |
6827 | (fixuns_truncdfdi2): Add expander for VSX support. | |
6828 | (fix_truncdfdi2): Ditto. | |
6829 | (fix_truncdfsi2): Ditto. | |
6830 | (ftruncdf2): Ditto. | |
6831 | (btruncsf2): Whitespace. | |
6832 | (movdf_hardfloat32): Add support for VSX registers. | |
6833 | (movdf_softfloat32): Ditto. | |
6834 | (movdf_hardfloat64): Ditto. | |
6835 | (movdf_hardfloat64_mfpgpr): Ditto. | |
6836 | (movdf_softfloat64): Ditto. | |
6837 | (movti splitters): Add check for vector registers supporting | |
6838 | TImode in the future. | |
6839 | (bpermd): Add power7 bpermd instruction. | |
6840 | ||
6841 | * config/rs6000/altivec.h (vec_div): Define if VSX. | |
6842 | (vec_mul): Ditto. | |
6843 | (vec_msub): Ditto. | |
6844 | (vec_nmadd): Ditto. | |
6845 | (vec_nearbyint): Ditto. | |
6846 | (vec_rint): Ditto. | |
6847 | (vec_sqrt): Ditto. | |
e61c6562 UB |
6848 | (all predicates): Use the generic builtin function, and not the V4SF |
6849 | specific function so that the predicates will work with VSX's V2DF. | |
29e6733c MM |
6850 | (vec_all_*): Ditto. |
6851 | (vec_any_*): Ditto. | |
6852 | ||
6853 | * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions): | |
6854 | Document new VSX functions and types. | |
6855 | ||
6856 | * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx | |
6857 | switches. | |
6858 | ||
6859 | * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws", | |
6860 | "wa", and "j" constraints. Modify "v" to talk about Altivec | |
6861 | instead of just vector. | |
6862 | ||
f5045c96 AM |
6863 | 2009-07-30 Andrew MacLeod <amacleod@redhat.com> |
6864 | ||
6865 | PR debug/26475 | |
6866 | * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set | |
6867 | location for phi arguments. | |
6868 | (rewrite_update_phi_arguments): Find locations for reaching defs. | |
6869 | * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): | |
6870 | Add location to add_phi_arg calls. | |
6871 | * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations. | |
6872 | * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge, | |
6873 | split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations. | |
6874 | * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call, | |
6875 | create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations. | |
6876 | * tree.h (struct phi_arg_d): Add location_t to PHI arguments. | |
6877 | * tree-phinodes.c (make_phi_node): Initialize location. | |
6878 | (resize_phi_node): Initialize location to UNKNOWN_LOCATION. | |
6879 | (add_phi_arg): Add location parameter. | |
6880 | (remove_phi_arg_num): Move location when moving phi argument. | |
f100a4a8 | 6881 | * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set |
f5045c96 AM |
6882 | location. |
6883 | * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop, | |
6884 | slpeel_update_phi_nodes_for_guard1, | |
6885 | slpeel_update_phi_nodes_for_guard2, | |
6886 | slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations, | |
6887 | vect_loop_versioning): Set locations. | |
6888 | * tree-parloops.c (create_phi_for_local_result, | |
6889 | transform_to_exit_first_loop, create_parallel_loop): Add locations. | |
6890 | * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present. | |
6891 | * tree-vect-loop.c (get_initial_def_for_induction, | |
6892 | vect_create_epilog_for_reduction, vect_finalize_reduction): Add | |
6893 | locations. | |
6894 | * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus. | |
6895 | (gimple_phi_arg_location_from_edge): New. Return locus from an edge. | |
6896 | (gimple_phi_arg_set_location): New. Set locus. | |
6897 | (gimple_phi_arg_has_location): New. Check for locus. | |
6898 | (redirect_edge_var_map_location): New. Return locus from var_map. | |
6899 | * tree-vect-data-refs.c (vect_setup_realignment): Set location. | |
6900 | * tree-ssa-phiopt.c (conditional_replacement): Set locus when | |
6901 | combining PHI arguments. | |
6902 | (cond_store_replacement): Set location. | |
6903 | * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible. | |
6904 | * grpahite.c (add_loop_exit_phis, add_guard_exit_phis, | |
6905 | scop_add_exit_phis_edge): Add locations. | |
6906 | * tree-cfgcleanup.c (remove_forwarder_block, | |
6907 | remove_forwarder_block_with_phi): Add locations. | |
6908 | * tree-ssa-pre.c (insert_into_preds_of_block): Add locations. | |
6909 | * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add | |
6910 | locations. | |
6911 | * tree-ssa-dce.c (forward_edge_to_pdom): Add locations. | |
6912 | * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge, | |
6913 | flush_pending_stmts): Add source location. | |
6914 | * lambda-code.c (perfect_nestify): Maintain location stack with argument | |
6915 | stack to preserve locations. | |
6916 | * tree-vect-stmts.c (vectorizable_load): Add location. | |
6917 | * tree-inline.c (copy_phis_for_bb): Copy locus. | |
6918 | (setup_one_parameter): Add call locus to inlined parameter stmts. | |
6919 | (initialize_inlined_parameters): Pass in call location as parameter | |
6920 | assignment locus. | |
6921 | (tree_function_versioning): Pass location to setup_one_parameter. | |
6922 | * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations. | |
6923 | * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for | |
6924 | copy and edge lists. | |
6925 | (insert_partition_copy_on_edge, insert_value_copy_on_edge, | |
f100a4a8 | 6926 | insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a |
f5045c96 AM |
6927 | locus parameter and override the stmt default if provided. |
6928 | (new_elim_graph, clear_elim_graph, delete_elim_graph, | |
6929 | elim_graph_add_edge, elim_graph_remove_succ_edge, | |
6930 | FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build, | |
6931 | elim_forward, elim_unvisited_predecessor, elim_backward, elim_create, | |
6932 | eliminate_phi): Add locus info in elimination graph for each edge and | |
6933 | value copy. | |
6934 | (insert_backedge_copies): Copy locus if present. | |
6935 | * tree-flow.h (struct _edge_var_map): Add locus field. | |
6936 | * tree-switch_conversions.c (fix_phi_nodes): Add locations. | |
6937 | * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block, | |
f100a4a8 | 6938 | add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add |
f5045c96 AM |
6939 | locations. |
6940 | * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations. | |
f100a4a8 | 6941 | |
2d4b90b1 MJ |
6942 | 2009-07-30 Martin Jambor <mjambor@suse.cz> |
6943 | ||
6944 | PR tree-optimization/40570 | |
6945 | * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single | |
6946 | use inlining loops. | |
6947 | ||
08dab97a RL |
6948 | 2009-07-30 Razya Ladelsky <razya@il.ibm.com> |
6949 | ||
6950 | * ssa-loop-manip.c: Include langhooks.h. | |
6951 | (rewrite_phi_with_iv): New. | |
6952 | (rewrite_all_phi_nodes_with_iv): New. | |
6953 | (canonicalize_loop_ivs): Move here from tree-parloops.c. | |
6954 | Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv. | |
6955 | * tree-parloops.c (loop_parallel_p): Move out all conditions | |
6956 | except dependency check. | |
6957 | (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c. | |
6958 | (gen_parallel_loop): Call canonicalize_loop_ivs without | |
6959 | reduction_list argument. | |
6960 | (build_new_reduction): New. | |
6961 | (gather_scalar_reductions): New. | |
6962 | (try_get_loop_niter): New. | |
6963 | (try_create_reduction_list): New. | |
6964 | (parallleize_loops): Change the parallel conditions check. | |
6965 | * tree-flow.h (canonicalize_loop_ivs): Remove one argument. | |
6966 | * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency. | |
6967 | ||
88c2fd3d DK |
6968 | 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com> |
6969 | ||
6970 | * opt-functions.awk (opt_args): Allow argument to be enclosed in | |
6971 | curly braces. | |
6972 | * doc/options.texi (Option properties): Mention new quoting syntax. | |
6973 | ||
5ea8f977 DR |
6974 | 2009-07-29 Douglas B Rupp <rupp@gnat.com> |
6975 | ||
6976 | * config/alpha/alpha.c (alpha_start_function): | |
6977 | Handle VMS_DEBUG_MAIN_POINTER | |
6978 | * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro. | |
6979 | * doc/invoke.texi: Document -mdebug-main switch. | |
6980 | ||
9b2a5ef7 RH |
6981 | 2009-07-29 Richard Henderson <rth@redhat.com> |
6982 | ||
6983 | * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy. | |
6984 | (cgraph_create_edge_including_clones): Likewise. | |
6985 | * tree-inline.c (copy_bb): Operate on the correct edges | |
6986 | when updating the callgraph. | |
6987 | ||
71cd2220 DR |
6988 | 2009-07-29 Douglas B Rupp <rupp@gnat.com> |
6989 | ||
6990 | * config/alpha/vms-cc.c: Deleted. | |
6991 | * config/alpha/vms-ld.c: Deleted. | |
6992 | * config/alpha/t-vms64: Moved to config/vms | |
6993 | * config/alpha/vms-crt0-64.c: Moved to config/vms | |
6994 | * config/alpha/vms-crt0.c: Moved to config/vms | |
6995 | * config/alpha/vms-psxcrt0-64.c: Moved to config/vms | |
6996 | * config/alpha/vms-psxcrt0.c: Moved to config/vms | |
6997 | * config/alpha/xm-vms.h: Moved to config/vms | |
6998 | * config/alpha/x-vms: Moved to config/vms | |
6999 | * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file | |
7000 | config/vms/t-vms. | |
7001 | * config/vms/t-vms: Moved here from config/alpha. Alpha specific | |
7002 | parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set. | |
7003 | (version): Set. | |
7004 | * config/vms/t-vms64: Moved here from config/alpha | |
7005 | * config/vms/vms-crt0-64.c: Moved here from config/alpha. | |
7006 | (argc,argv,envp): Enforce 32bit malloc'ing. | |
7007 | * config/vms/vms-psxcrt0-64.c: Likewise. | |
7008 | * config/vms/vms-crt0.c: Moved here from config/alpha. | |
7009 | * config/vms/vms-psxcrt0.c: Likewise. | |
7010 | * config/vms/vms-crtl-64.h: New file. | |
7011 | * config/vms/vms-crtl.h: New file. | |
7012 | * config/vms/vms.opt: New file. | |
7013 | * config/vms/xm-vms64.h: New file. | |
7014 | * config/vms/xm-vms.h: Moved here from config/alpha. | |
7015 | (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR): | |
7016 | Set. | |
7017 | * config/vms/x-vms: Moved here from config/alpha. | |
7018 | (version, VMS_EXTRA_PARTS): Moved to t-vms. | |
7019 | (vms-ld.o, vms-cc.o): Removed. | |
7020 | (LN, LN_S, USE_COLLECT2, POD2MAN): Set. | |
7021 | ||
82b75b46 DR |
7022 | 2009-07-29 Douglas B Rupp <rupp@gnat.com> |
7023 | ||
7024 | * dwarf2out.c (add_name_and_src_coords_attributes): Push on the | |
7025 | correct stack (obvious VMS fix). | |
7026 | ||
c2cffdc8 DR |
7027 | 2009-07-29 Douglas B Rupp <rupp@gnat.com> |
7028 | ||
7029 | * dwarf2out.c (output_file_names): Output VMS style file name, size, | |
7030 | date, version info if VMS_DEBUGGING_INFO defined. | |
7031 | * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name, | |
7032 | size, date calculating code moved here. | |
7033 | ||
0244b03f PB |
7034 | 2009-07-29 Paul Brook <paul@codesourcery.com> |
7035 | ||
7036 | * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and | |
7037 | do_push/do_pop. | |
7038 | ||
bc4eac6d UB |
7039 | 2009-07-29 Uros Bizjak <ubizjak@gmail.com> |
7040 | ||
7041 | PR target/40577 | |
7042 | * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src | |
7043 | to DImode when generating insq_le insn. | |
7044 | ||
6f1595d3 DR |
7045 | 2009-07-28 Douglas B Rupp <rupp@gnat.com> |
7046 | ||
7047 | * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET): | |
7048 | New macro set for VMS_DEBUGGGING_INFO. | |
7049 | (AT_string_form): Use it. | |
7050 | ||
820ca276 DD |
7051 | 2009-07-28 DJ Delorie <dj@redhat.com> |
7052 | ||
7053 | * config/mep/mep.c (vtext_section): New. | |
7054 | (vftext_section): New. | |
7055 | (ftext_section): New. | |
7056 | (mep_select_section): Add support for functions. | |
7057 | (mep_unique_section): Likewise. | |
7058 | (mep_asm_init_sections): Likewise. | |
3fb0a660 | 7059 | (mep_encode_section_info): Remove it from here. |
820ca276 DD |
7060 | |
7061 | * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define. | |
7062 | ||
e2121f17 PB |
7063 | 2009-07-28 Paolo Bonzini <bonzinI@gnu.org> |
7064 | ||
7065 | * tree.h (TREE_DEPRECATED): Document it is used for types too. | |
7066 | (TYPE_VECTOR_OPAQUE): Use default_def_flag | |
7067 | ||
dde08f9b DR |
7068 | 2009-07-28 Douglas B Rupp <rupp@gnat.com> |
7069 | ||
7070 | * dwarf2out.c (output_file_names): Test new macro | |
7071 | DWARF2_DIR_SHOULD_END_WITH_SEPARATOR. | |
7072 | (add_comp_dir_attribute): Likewise. | |
7073 | ||
032502c2 KT |
7074 | 2009-07-28 Kai Tietz <kai.tietz@onevision.com> |
7075 | ||
7076 | * config/i386/mingw-w64.h (LINK_SPEC): Add | |
7077 | separating space between commands. | |
7078 | ||
b29c2ffd JH |
7079 | 2009-07-28 Jan Hubicka <jh@suse.cz> |
7080 | ||
7081 | PR tree-optimization/40759 | |
7082 | * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses | |
7083 | for renaming. | |
7084 | ||
683a1be6 DD |
7085 | 2009-07-27 DJ Delorie <dj@redhat.com> |
7086 | ||
7087 | * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit | |
7088 | types are dword-aligned. | |
7089 | (mep_expand_va_start): Likewise. | |
7090 | ||
cf157324 | 7091 | 2009-07-27 Olivier Hainque <hainque@adacore.com> |
bc4eac6d | 7092 | Douglas B Rupp <rupp@gnat.com> |
cf157324 OH |
7093 | |
7094 | * convert.c (convert_to_pointer): Don't assume the target | |
7095 | pointer type is POINTER_SIZE long. Fetch its precision instead. | |
7096 | ||
d4d798a3 DR |
7097 | 2009-07-27 Douglas B Rupp <rupp@gnat.com> |
7098 | ||
7099 | * system.h (fopen): Undefine if macro. | |
7100 | ||
5823ade1 JJ |
7101 | 2009-07-27 Jakub Jelinek <jakub@redhat.com> |
7102 | ||
7103 | * dwarf2out.c (output_cfi_p): Removed. | |
7104 | (output_cfis): New function. | |
7105 | (output_fde): New function, split from output_call_frame_info. | |
7106 | (output_call_frame_info): Use it. | |
7107 | (dwarf2out_switch_text_section): Use output_cfis. | |
7108 | ||
648abd76 KT |
7109 | 2009-07-24 Kai Tietz <kai.tietz@onevision.com> |
7110 | ||
7111 | * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when | |
7112 | TARGET_BI_ARCH is specified without enabling SJLJ. | |
7113 | * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT, | |
7114 | if TARGET_64BIT and TARGET_BI_ARCH aren't defined. | |
7115 | ||
4b89636e MP |
7116 | 2009-07-26 Mikael Pettersson <mikpe@it.uu.se> |
7117 | ||
7118 | * arm.md (negdi2): Use DImode if forcing a value into a register. | |
7119 | ||
63827fb8 IR |
7120 | 2009-07-26 Ira Rosen <irar@il.ibm.com> |
7121 | ||
7122 | PR tree-optimization/40801 | |
7123 | * tree-vect-stmts.c (vectorizable_call): Get previous copy | |
7124 | of vector operand from the previous copy of vector statement. | |
7125 | Pass the correct definition type value to | |
7126 | vect_get_vec_def_for_stmt_copy(). | |
7127 | ||
db9369bb JDA |
7128 | 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
7129 | ||
7130 | * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to | |
7131 | const char ** conversion. | |
7132 | ||
2df77822 DD |
7133 | 2009-07-25 David Daney <ddaney@caviumnetworks.com> |
7134 | ||
7135 | * system.h (gcc_assert): Invoke __builtin_unreachable() instead of | |
7136 | fancy_abort() if !ENABLE_ASSERT_CHECKING. | |
7137 | (gcc_unreachable): Invoke __builtin_unreachable() if | |
7138 | !ENABLE_ASSERT_CHECKING. | |
7139 | ||
1e211590 DD |
7140 | 2009-07-25 David Daney <ddaney@caviumnetworks.com> |
7141 | ||
7142 | PR rtl-optimization/40445 | |
7143 | * emit-rtl.c (next_nonnote_insn_bb): New function. | |
7144 | * rtl.h (next_nonnote_insn_bb): Declare new function. | |
7145 | * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block | |
7146 | with no successors that is the successor of the ENTRY_BLOCK. | |
7147 | Continue from the top after removing an empty fallthrough block. | |
7148 | * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead | |
7149 | of next_nonnote_insn. | |
7150 | ||
ba21aba3 DD |
7151 | 2009-07-25 David Daney <ddaney@caviumnetworks.com> |
7152 | ||
bc4eac6d | 7153 | * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks. |
f100a4a8 | 7154 | |
86631ea3 MJ |
7155 | 2009-07-25 Martin Jambor <mjambor@suse.cz> |
7156 | ||
7157 | * c-common.c (c_common_attribute_table): New element for noclone. | |
7158 | (handle_noclone_attribute): New function. Forward-declare. | |
7159 | * tree-inline.c (tree_versionable_function_p): Check for noclone | |
7160 | attribute. | |
7161 | * doc/extend.texi (Labels as Values): Document need for noclone. | |
7162 | (Function Attributes): Document noclone attribute. | |
7163 | ||
0cf856b7 JJ |
7164 | 2009-07-25 Jakub Jelinek <jakub@redhat.com> |
7165 | ||
7166 | PR rtl-optimization/34999 | |
7167 | * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi | |
7168 | and dw_fde_switched_cold_to_hot fields. | |
7169 | (output_cfi_p): New function. | |
7170 | (output_call_frame_info): If fde->dw_fde_switched_sections, | |
7171 | output 2 FDEs instead of one with corrupted header. | |
7172 | (dwarf2out_do_cfi_startproc): New function. | |
7173 | (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi | |
7174 | and fde->dw_fde_switched_cold_to_hot. | |
7175 | (dwarf2out_switch_text_section): Compute | |
7176 | fde->dw_fde_switched_cold_to_hot. Switch to new text section here. | |
7177 | If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call | |
7178 | dwarf2out_do_cfi_startproc plus emit again currently active CFI insns. | |
7179 | Otherwise, compute fde->dw_fde_switch_cfi. | |
7180 | ||
2a2869d6 CC |
7181 | 2009-07-24 Cary Coutant <ccoutant@google.com> |
7182 | ||
7183 | * tree-cfg.c (assign_discriminator): Add explicit parentheses. | |
7184 | ||
cbea518e CC |
7185 | 2009-07-24 Cary Coutant <ccoutant@google.com> |
7186 | ||
7187 | * cfghooks.c (split_block): Copy discriminator to new block. | |
7188 | * tree-cfg.c (assign_discriminator): Check location of last | |
7189 | instruction in block as well as first. | |
7190 | ||
87da3843 UB |
7191 | 2009-07-24 Uros Bizjak <ubizjak@gmail.com> |
7192 | ||
7193 | * config/i386/linux.c: Use fputs or putc instead of fprintf | |
7194 | where appropriate. | |
7195 | * config/i386/gas.h: Ditto. | |
7196 | * config/i386/x86-64.h: Ditto. | |
7197 | * config/i386/att.h: Ditto. | |
7198 | ||
a22fb74c AK |
7199 | 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
7200 | ||
7201 | * expmed.c (emit_store_flag): Use a recursive call to optimize the | |
7202 | xor case. | |
7203 | ||
5b9633c8 MJ |
7204 | 2009-07-24 Martin Jambor <mjambor@suse.cz> |
7205 | ||
7206 | * ipa-prop.h (struct ipa_node_params): New flag node_enqued. | |
7207 | (ipa_push_func_to_list_1): Declare. | |
7208 | (ipa_push_func_to_list): New function. | |
7209 | ||
7210 | * ipa-prop.c (ipa_push_func_to_list_1): New function. | |
7211 | (ipa_init_func_list): Call ipa_push_func_to_list_1. | |
7212 | (ipa_push_func_to_list): Removed. | |
7213 | (ipa_pop_func_from_list): Clear node_enqueued flag. | |
7214 | ||
ff5b964d | 7215 | 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com> |
f100a4a8 | 7216 | |
ff5b964d AK |
7217 | * config/s390/s390.c (override_options): Default |
7218 | max-unrolled-insns to 100 for z10 tuning. | |
7219 | ||
223cf84d TG |
7220 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> |
7221 | ||
7222 | * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o | |
7223 | tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o, | |
7224 | tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o, | |
7225 | tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o, | |
7226 | tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o | |
7227 | tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o, | |
7228 | lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H. | |
7229 | ||
3a802a9e KT |
7230 | 2009-07-24 Kai Tietz <kai.tietz@onevision.com> |
7231 | ||
7232 | * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and | |
7233 | use default set in mingw32.h header. | |
7234 | * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and | |
7235 | 64-bit /mingw/include path. | |
7236 | (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib | |
7237 | path. | |
7238 | ||
c580edc8 NV |
7239 | 2009-07-23 Neil Vachharajani <nvachhar@google.com> |
7240 | ||
7241 | PR rtl-optimization/40209 | |
7242 | * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem. | |
7243 | ||
0d42d490 UB |
7244 | 2009-07-23 Uros Bizjak <ubizjak@gmail.com> |
7245 | ||
7246 | * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate | |
7247 | ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings | |
7248 | with the rest of string where appropriate. Use fputs or putc | |
7249 | instead of fprintf where appropriate. | |
7250 | ||
a72c65c7 MM |
7251 | 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com> |
7252 | Pat Haugen <pthaugen@us.ibm.com> | |
7253 | Revital Eres <ERES@il.ibm.com> | |
7254 | ||
7255 | * config/rs6000/vector.md: New file. Move most of the vector | |
7256 | expander support here from altivec.md to allow for the VSX vector | |
7257 | unit in the future. Add support for secondary_reload patterns. | |
7258 | Rewrite the patterns for vector comparison, and vector comparison | |
7259 | predicate instructions so that the RTL expresses the desired | |
7260 | behavior, instead of using unspec. | |
7261 | ||
7262 | * config/rs6000/constraints.md ("f" constraint): Use | |
7263 | rs6000_constraints to hold the precalculated register class. | |
7264 | ("d" constraint): Ditto. | |
7265 | ("wd" constraint): New constraint for VSX. | |
7266 | ("wf" constraint): Ditto. | |
7267 | ("ws" constraint): Ditto. | |
7268 | ("wa" constraint): Ditto. | |
7269 | ("wZ" constraint): Ditto. | |
7270 | ("j" constraint): Ditto. | |
7271 | ||
7272 | * config/rs6000/predicates.md (vsx_register_operand): New | |
7273 | predicate for VSX. | |
7274 | (vfloat_operand): New predicate for vector.md. | |
7275 | (vint_operand): Ditto. | |
7276 | (vlogical_operand): Ditto. | |
7277 | (easy_fp_constant): If VSX, 0.0 is an easy constant. | |
7278 | (easy_vector_constant): Add VSX support. | |
7279 | (altivec_indexed_or_indirect_operand): New predicate for | |
7280 | recognizing Altivec style memory references with AND -16. | |
7281 | ||
7282 | * config/rs6000/rs6000.c (rs6000_vector_reload): New static global | |
7283 | for vector secondary reload support. | |
87da3843 UB |
7284 | (rs6000_vector_reg_class): Delete, replacing it with |
7285 | rs6000_constraints. | |
a72c65c7 MM |
7286 | (rs6000_vsx_reg_class): Ditto. |
7287 | (rs6000_constraints): New array to hold the register classes of | |
7288 | each of the register constraints that can vary at runtime. | |
7289 | (builtin_mode_to_type): New static array for builtin function type | |
7290 | creation. | |
7291 | (builtin_hash_table): New static hash table for builtin function | |
7292 | type creation. | |
7293 | (TARGET_SECONDARY_RELOAD): Define target hook. | |
7294 | (TARGET_IRA_COVER_CLASSES): Ditto. | |
7295 | (rs6000_hard_regno_nregs_internal): If -mvsx, floating point | |
0d42d490 | 7296 | registers are 128 bits if VSX memory reference instructions are used. |
a72c65c7 MM |
7297 | (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory |
7298 | unit is being used. | |
7299 | (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global. | |
7300 | (rs6000_debug_reg_global): Move -mdebug=reg statements here. | |
7301 | Print several of the scheduling related parameters. | |
7302 | (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in | |
7303 | rs6000_constraints instead of rs6000_vector_reg_class. Move | |
7304 | -mdebug=reg code to rs6000_debug_reg_global. Add support for | |
7305 | -mvsx-align-128 debug switch. Drop testing float_p if VSX or | |
7306 | Altivec. Add VSX support. Setup for secondary reload support on | |
7307 | Altivec/VSX registers. | |
7308 | (rs6000_override_options): Make power7 set the scheduling groups | |
7309 | like the power5. Add support for new debug switches to override | |
7310 | the scheduling defaults. Temporarily disable -mcpu=power7 from | |
7311 | setting -mvsx. Add support for debug switches -malways-hint, | |
7312 | -msched-groups, and -malign-branch-targets. | |
7313 | (rs6000_buitlin_conversion): Add support for returning unsigned | |
7314 | vector conversion functions to fix regressions due to stricter | |
7315 | type checking. | |
7316 | (rs6000_builtin_mul_widen_even): Ditto. | |
7317 | (rs6000_builtin_mul_widen_odd): Ditto. | |
7318 | (rs6000_builtin_vec_perm): Ditto. | |
7319 | (rs6000_vec_const_move): On VSX, use xxlxor to clear register. | |
7320 | (rs6000_expand_vector_init): Initial VSX support for using xxlxor | |
7321 | to zero a register. | |
7322 | (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is | |
7323 | generated upstream. | |
7324 | (bdesc_3arg): Add builtins for unsigned types. Add builtins for | |
7325 | VSX types for bit operations. Changes to accomidate vector.md. | |
7326 | (bdesc_2arg): Ditto. | |
7327 | (bdesc_1arg): Ditto. | |
7328 | (struct builtin_description_predicates): Rewrite predicate | |
7329 | handling so that RTL describes the operation, instead of passing | |
7330 | the instruction to be used as a string argument. | |
7331 | (bdesc_altivec_preds): Ditto. | |
7332 | (altivec_expand_predicate_builtin): Ditto. | |
7333 | (altivec_expand_builtin): Ditto. | |
7334 | (rs6000_expand_ternop_builtin): Use a switch instead of an if | |
7335 | statement for vsldoi support. | |
0d42d490 | 7336 | (altivec_expand_ld_builtin): Change to use new names from vector.md. |
a72c65c7 MM |
7337 | (altivec_expand_st_builtin): Ditto. |
7338 | (paired_expand_builtin): Whitespace changes. | |
7339 | (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the | |
7340 | builtin_mode_to_type table for secondary reload. Call | |
7341 | builtin_function_type to build random builtin functions. | |
7342 | (altivec_init_builtins): Change to use builtin_function_type to | |
7343 | create builtin function types dynamically as we need them. | |
7344 | (builtin_hash_function): New support for hashing the tree types | |
7345 | for builtin function as we need it, rather than trying to build | |
0d42d490 | 7346 | all of the trees that we need. Add initial preliminary VSX support. |
a72c65c7 MM |
7347 | (builtin_function_type): Ditto. |
7348 | (builtin_function_eq): Ditto. | |
7349 | (builtin_hash_struct): Ditto. | |
7350 | (rs6000_init_builtins): Ditto. | |
7351 | (rs6000_common_init_builtins): Ditto. | |
7352 | (altivec_init_builtins): Ditto. | |
7353 | (rs6000_common_init_builtins): Ditto. | |
7354 | (enum reload_reg_type): New enum for simplifing reg classes. | |
7355 | (rs6000_reload_register_type): Simplify register classes into GPR, | |
0d42d490 | 7356 | Vector, and other registers. Altivec and VSX addresses in reload. |
a72c65c7 MM |
7357 | (rs6000_secondary_reload_inner): Ditto. |
7358 | (rs6000_ira_cover_classes): New target hook, that returns the | |
7359 | appropriate cover classes, based on -mvsx being used or not. | |
7360 | (rs6000_secondary_reload_class): Add VSX support. | |
7361 | (get_vec_cmp_insn): Delete, rewrite vector conditionals. | |
7362 | (get_vsel_insn): Ditto. | |
7363 | (rs6000_emit_vector_compare): Rewrite vector conditional support | |
7364 | so that where we can, we use RTL operators, instead of blindly use | |
7365 | UNSPEC. | |
7366 | (rs6000_emit_vector_select): Ditto. | |
7367 | (rs6000_emit_vector_cond_expr): Ditto. | |
0d42d490 | 7368 | (rs6000_emit_minmax): Directly generate min/max under altivec, vsx. |
a72c65c7 | 7369 | (create_TOC_reference): Add -mdebug=addr support. |
0d42d490 | 7370 | (emit_frame_save): VSX loads/stores need register indexed addressing. |
a72c65c7 MM |
7371 | |
7372 | * config/rs6000/rs6000.md: Include vector.md. | |
7373 | ||
7374 | * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md. | |
7375 | ||
7376 | * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add | |
7377 | support for V2DI, V2DF in logical, permute, select operations. | |
7378 | ||
7379 | * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug | |
7380 | switch for vsx/power7. | |
7381 | (-mvsx-scalar-memory): Ditto. | |
7382 | (-mvsx-align-128): Ditto. | |
7383 | (-mallow-movmisalign): Ditto. | |
7384 | (-mallow-df-permute): Ditto. | |
7385 | (-msched-groups): Ditto. | |
7386 | (-malways-hint): Ditto. | |
7387 | (-malign-branch-targets): Ditto. | |
f100a4a8 | 7388 | |
a72c65c7 MM |
7389 | * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target |
7390 | hook instead. | |
7391 | (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx. | |
7392 | (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx. | |
7393 | (rs6000_vector_reg_class): Delete. | |
7394 | (rs6000_vsx_reg_class): Ditto. | |
7395 | (enum rs6000_reg_class_enum): New enum for the constraints that | |
7396 | vary based on target switches. | |
7397 | (rs6000_constraints): New array to hold the register class for all | |
7398 | of the register constraints that vary based on the switches used. | |
7399 | (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions. | |
7400 | (enum rs6000_builtins): Add unsigned varients for the builtin | |
7401 | declarations returned by target hooks for expanding multiplies, | |
7402 | select, and permute operations. Add VSX builtins. | |
7403 | (enum rs6000_builtin_type_index): Add entries for VSX. | |
7404 | (V2DI_type_node): Ditto. | |
7405 | (V2DF_type_node): Ditto. | |
7406 | (unsigned_V2DI_type_node): Ditto. | |
7407 | (bool_long_type_node): Ditto. | |
7408 | (intDI_type_internal_node): Ditto. | |
7409 | (uintDI_type_internal_node): Ditto. | |
7410 | (double_type_internal_node): Ditto. | |
7411 | ||
7412 | * config/rs6000/altivec.md (whole file): Move all expanders to | |
7413 | vector.md from altivec.md. Rename insn matching functions to be | |
7414 | altivec_foo. | |
7415 | (UNSPEC_VCMP*): Delete, rewrite vector comparisons. | |
7416 | (altivec_vcmp*): Ditto. | |
7417 | (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm. | |
7418 | (VM): New iterator for moves that includes the VSX types. | |
7419 | (altivec_vperm_<mode>): Add VSX types. Add unsigned types. | |
7420 | (altivec_vperm_<mode>_uns): New, for unsigned types. | |
0d42d490 | 7421 | (altivec_vsel_*): Rewrite vector comparisons and predicate builtins. |
a72c65c7 MM |
7422 | (altivec_eq<mode>): Ditto. |
7423 | (altivec_gt<mode>): Ditto. | |
7424 | (altivec_gtu<mode>): Ditto. | |
7425 | (altivec_eqv4sf): Ditto. | |
7426 | (altivec_gev4sf): Ditto. | |
7427 | (altivec_gtv4sf): Ditto. | |
7428 | (altivec_vcmpbfp_p): Ditto. | |
7429 | ||
6d53a79f RE |
7430 | 2009-07-23 Richard Earnshaw <rearnsha@arm.com> |
7431 | ||
f100a4a8 | 7432 | * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to |
6d53a79f RE |
7433 | unsigned HWI. |
7434 | ||
33ecc126 UB |
7435 | 2009-07-23 Uros Bizjak <ubizjak@gmail.com> |
7436 | ||
7437 | PR target/40832 | |
011a3198 | 7438 | * config/i386/i386.c (output_387_ffreep): Rewrite to use |
33ecc126 UB |
7439 | ASM_SHORT instead of .word. |
7440 | * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT | |
7441 | instead of .word in asm template. | |
7442 | ||
db1a8d98 VM |
7443 | 2009-07-22 Vladimir Makarov <vmakarov@redhat.com> |
7444 | ||
7445 | PR target/37488 | |
7446 | * ira-lives.c (bb_has_abnormal_call_pred): New function. | |
7447 | (process_bb_node_lives): Use it. | |
7448 | ||
7449 | * ira.c (setup_cover_and_important_classes): Don't setup | |
7450 | ira_important_class_nums. Add cover classes to the end of | |
7451 | important classes. | |
011a3198 UB |
7452 | (cover_class_order, comp_reg_classes_func, reorder_important_classes): |
7453 | New. | |
db1a8d98 VM |
7454 | (find_reg_class_closure): Use reorder_important_classes. |
7455 | ||
7456 | * config/i386/i386.h (IRA_COVER_CLASSES): Remove. | |
7457 | ||
7458 | * config/i386/i386.c (i386_ira_cover_classes): New function. | |
7459 | (TARGET_IRA_COVER_CLASSES): Redefine. | |
7460 | ||
7461 | * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about | |
7462 | importance of order of cover classes in the array. | |
f100a4a8 | 7463 | |
cae63f88 DN |
7464 | 2009-07-22 Diego Novillo <dnovillo@google.com> |
7465 | ||
7466 | * tree-pass.h (TDF_EH): Define. | |
7467 | * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS | |
7468 | contains TDF_EH, print the EH region number holding GS. | |
7469 | * tree-dump.c (dump_options): Add "eh". | |
7470 | * doc/invoke.texi: Document it. | |
7471 | ||
61ed6392 DK |
7472 | 2009-07-22 Doug Kwan <dougkwan@google.com> |
7473 | ||
7474 | * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers. | |
7475 | ||
a8338640 MM |
7476 | 2009-07-22 Michael Matz <matz@suse.de> |
7477 | ||
7478 | PR tree-optimization/35229 | |
7479 | PR tree-optimization/39300 | |
7480 | ||
7481 | * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h. | |
7482 | (inhibit_phi_insertion): New function. | |
7483 | (insert_into_preds_of_block): Call it for REFERENCEs. | |
7484 | (init_pre): Initialize and finalize scalar evolutions. | |
7485 | * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h . | |
7486 | ||
1a66936f UB |
7487 | 2009-07-22 Uros Bizjak <ubizjak@gmail.com> |
7488 | ||
7489 | * config/i386/predicates.md (zero_extended_scalar_load_operand): | |
7490 | Use CONST_VECTOR_NUNITS to determine number of elements. | |
7491 | ||
4fe6dea8 AK |
7492 | 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com> |
7493 | ||
7494 | * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints. | |
7495 | (U, W): Constraints are now deprecated and will be removed if we | |
f100a4a8 | 7496 | run out of letters. |
4fe6dea8 AK |
7497 | * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout |
7498 | the file. | |
7499 | ("prefetch"): Add the stcmh instruction for prefetching. | |
7500 | * config/s390/s390.c (s390_symref_operand_p): Function moved. No | |
7501 | changes. | |
7502 | (s390_short_displacement): Return always true if compiling for | |
7503 | machines not providing the long displacement facility. | |
7504 | (s390_mem_constraint): Support the new constraint letter Z. | |
7505 | (s390_check_qrst_address): New function. | |
7506 | ||
072ebd49 DD |
7507 | 2009-07-21 DJ Delorie <dj@redhat.com> |
7508 | ||
7509 | * config/mep/mep.c (mep_legitimize_arg): Leave control registers | |
7510 | alone too. | |
7511 | ||
4afe7ad7 JM |
7512 | 2009-07-21 Jason Merrill <jason@redhat.com> |
7513 | ||
7514 | * c-common.c (max_tinst_depth): Increase default to 1024. | |
7515 | ||
848e6317 UB |
7516 | 2009-07-21 Uros Bizjak <ubizjak@gmail.com> |
7517 | ||
7518 | * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander. | |
7519 | (vec_unpacku_float_lo_v4si): Ditto. | |
7520 | ||
54e86f6b UB |
7521 | 2009-07-21 Uros Bizjak <ubizjak@gmail.com> |
7522 | ||
7523 | PR target/40811 | |
7524 | * config/i386/sse.md (sse2_cvtudq2ps): New expander. | |
7525 | (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS. | |
7526 | (builtin_description): Add __builtin_ia32_cvtudq2ps. | |
7527 | (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS. | |
7528 | ||
4a2b7f24 JJ |
7529 | 2009-07-21 Jakub Jelinek <jakub@redhat.com> |
7530 | ||
7531 | PR tree-optimization/40813 | |
7532 | * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before | |
7533 | it. | |
7534 | ||
a1516d08 KK |
7535 | 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org> |
7536 | ||
7537 | * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result | |
7538 | with a NOP_EXPR if needed. | |
7539 | ||
cba146eb PB |
7540 | 2009-07-21 Paul Brook <paul@codesourcery.com> |
7541 | ||
7542 | * tree-vectorizer.c (increase_alignment): Handle nested arrays. | |
7543 | Terminate debug dump with newline. | |
7544 | ||
ef8d9a0e JDA |
7545 | 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
7546 | ||
7547 | * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb. | |
7548 | Cast "1" to unsigned HOST_WIDE_INT. | |
7549 | (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit | |
7550 | deposit length to the maximum length - lsb. Extend length if | |
7551 | HOST_BITS_PER_WIDE_INT is 32. | |
7552 | ||
d48e9cea OR |
7553 | 2009-07-20 Olatunji Ruwase <tjruwase@google.com> |
7554 | ||
7555 | * cgraph.h (constant_pool_htab): New function. | |
7556 | (constant_descriptor_tree): Move from varasm.c. | |
7557 | * varasm.c (constant_pool_htab): New function. | |
7558 | (constant_descriptor_tree): Move to cgraph.h. | |
7559 | ||
9c8e65c3 OR |
7560 | 2009-07-20 Olatunji Ruwase <tjruwase@google.com> |
7561 | ||
848e6317 | 7562 | * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize(). |
9c8e65c3 | 7563 | |
3e014341 SZ |
7564 | 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com> |
7565 | ||
7566 | * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove | |
7567 | $(VARRAY_H). | |
7568 | ||
d0763469 XDL |
7569 | 2009-07-20 Xinliang David Li <davidxl@google.com> |
7570 | ||
7571 | * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check. | |
7572 | ||
752fd2a8 AN |
7573 | 2009-07-20 Adam Nemet <anemet@caviumnetworks.com> |
7574 | ||
7575 | * config/mips/mips.md (move_type): Add arith. | |
7576 | (type): Handle arith. | |
7577 | (zero_extendsidi2): Rename this into ... | |
7578 | (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS. | |
7579 | (zero_extendsidi2): New expander. | |
7580 | (*zero_extendsidi2_dext): New pattern. | |
7581 | ||
621114bc NC |
7582 | 2009-07-20 Nick Clifton <nickc@redhat.com> |
7583 | ||
7584 | * config.gcc (mips64-*-*): Add definition of tm_defines in order | |
7585 | to set MIPS_ABI_DEFAULT. | |
7586 | * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition. | |
7587 | ||
e338758d JJ |
7588 | 2009-07-20 Jakub Jelinek <jakub@redhat.com> |
7589 | ||
38027156 JJ |
7590 | * tree-object-size.c (addr_object_size): Handle unions with |
7591 | array in it as last field of structs in __bos (, 1) as __bos (, 0). | |
7592 | ||
e338758d JJ |
7593 | PR tree-optimization/40792 |
7594 | * tree.c (build_function_type_skip_args): Remove bogus assert. | |
7595 | ||
08ad1d6d | 7596 | 2009-07-20 Jan Hubicka <jh@suse.cz> |
848e6317 | 7597 | Martin Jambor <mjambor@suse.cz> |
08ad1d6d JH |
7598 | |
7599 | * cgraph.h (combined_args_to_skip): New field. | |
7600 | * cgraph.c (cgraph_create_virtual_clone): Properly handle | |
7601 | combined_args_to_skip and args_to_skip. | |
7602 | * tree-inline.c (update_clone_info): New function. | |
7603 | (tree_function_versioning): Call update_clone_info. | |
1a66936f UB |
7604 | * cgraphunit.c: (cgraph_materialize_clone): Dump materialized |
7605 | functions. | |
08ad1d6d JH |
7606 | (cgraph_materialize_all_clones): More extensive dumping, working |
7607 | with combined_args_to_skip rather than args_to_skip. | |
7608 | ||
4bbe8262 IR |
7609 | 2009-07-20 Ira Rosen <irar@il.ibm.com> |
7610 | ||
7611 | * tree-vectorizer.h (vectorizable_condition): Add parameters. | |
7612 | * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR. | |
7613 | (get_initial_def_for_reduction): Likewise. | |
7614 | (vectorizable_reduction): Skip the check of first operand in case | |
7615 | of COND_EXPR. Add check that it is outer loop vectorization if | |
f100a4a8 | 7616 | nested cycle was detected. Call vectorizable_condition() for |
4bbe8262 IR |
7617 | COND_EXPR. If reduction epilogue cannot be created do not fail for |
7618 | nested cycles (if it is not double reduction). Assert that there | |
7619 | is only one type in the loop in case of COND_EXPR. Call | |
7620 | vectorizable_condition() to vectorize COND_EXPR. | |
7621 | * tree-vect-stmts.c (vectorizable_condition): Update comment. | |
f100a4a8 | 7622 | Add parameters. Allow nested cycles if called from |
4bbe8262 IR |
7623 | vectorizable_reduction(). Use reduction vector variable if provided. |
7624 | (vect_analyze_stmt): Call vectorizable_reduction() before | |
7625 | vectorizable_condition(). | |
7626 | (vect_transform_stmt): Update call to vectorizable_condition(). | |
7627 | ||
6a799f6e | 7628 | 2009-07-20 Christian Bruel <christian.bruel@st.com> |
f100a4a8 | 7629 | |
6a799f6e CB |
7630 | * config/sh/sh.opt (-mfmovd): Resurrect and document. |
7631 | * doc/invoke.texi (-mfmovd): Likewise. | |
7632 | * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting. | |
f100a4a8 | 7633 | |
eab09a51 JH |
7634 | 2009-07-20 Jan Hubicka <jh@suse.cz> |
7635 | ||
7636 | * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs | |
7637 | when handling SSA name. | |
7638 | ||
a915ab00 JH |
7639 | 2009-07-19 Jan Hubicka <jh@suse.cz> |
7640 | ||
7641 | PR tree-optimization/40676 | |
7642 | * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all | |
7643 | virtual PHIs in empty BBs. | |
7644 | ||
827f4079 AN |
7645 | 2009-07-18 Adam Nemet <anemet@caviumnetworks.com> |
7646 | ||
7647 | * combine.c (make_compound_operation) <SUBREG>: If force_to_mode | |
7648 | re-expanded the compound use gen_lowpart instead to convert to the | |
7649 | desired mode. | |
7650 | ||
f3ce1088 AN |
7651 | 2009-07-18 Adam Nemet <anemet@caviumnetworks.com> |
7652 | ||
7653 | * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and | |
7654 | OUTER_CONST arguments. | |
7655 | <LSHIFTRT>: Use them to allow widening if the bits shifted in from | |
7656 | the new wider mode will be masked off. | |
7657 | (simplify_shift_const_1): Adjust calls to try_widen_shift_mode. | |
7658 | ||
3e63dd3a AN |
7659 | 2009-07-18 Adam Nemet <anemet@caviumnetworks.com> |
7660 | ||
7661 | * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the | |
7662 | high-order bits are zero. | |
7663 | ||
b641d7fc AN |
7664 | 2009-07-18 Adam Nemet <anemet@caviumnetworks.com> |
7665 | ||
7666 | * combine.c (simplify_shift_const_1): Split code to determine | |
7667 | shift_mode into ... | |
7668 | (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the | |
7669 | new bits shifted in are identical to the old sign bit. | |
7670 | ||
33922890 RG |
7671 | 2009-07-18 Richard Guenther <rguenther@suse.de> |
7672 | ||
7673 | PR c/40787 | |
7674 | * gimplify.c (gimplify_call_expr): Reject code using results from | |
7675 | functions returning void. | |
7676 | ||
1d447995 RS |
7677 | 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com> |
7678 | ||
7679 | * doc/md.texi: Document the new PowerPC "es" constraint. | |
7680 | Document that "m" can include automodified addresses on this target, | |
7681 | and explain how %U must be used. Extend the "Q" and "Z" documentation | |
7682 | to suggest "es" as well as "m". | |
7683 | * config/rs6000/constraints.md (es): New memory constraint. | |
7684 | (Q, Z): Update strings to match new documentation. | |
7685 | ||
406d1650 RS |
7686 | 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com> |
7687 | ||
7688 | * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any | |
7689 | offset from virtual_stack_vars_rtx and arg_pointer_rtx. | |
7690 | * config/rs6000/predicates.md (volatile_mem_operand): Use | |
7691 | offsettable_nonstrict_memref_p. | |
7692 | * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check. | |
7693 | (*floatunssidf2_internal): Likewise. | |
7694 | (*fix_truncdfsi2_internal): Likewise. | |
7695 | (*fix_trunctfsi2_internal): Likewise. | |
7696 | ||
a0ce0e6e AS |
7697 | 2009-07-17 Anatoly Sokolov <aesok@post.ru> |
7698 | ||
7699 | * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and | |
7700 | atmega32u2 devices. | |
7701 | * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.). | |
7702 | ||
a406865a RG |
7703 | 2009-07-17 Richard Guenther <rguenther@suse.de> |
7704 | ||
7705 | PR c/40401 | |
7706 | * tree-pass.h (pass_diagnose_omp_blocks): Declare. | |
7707 | (pass_warn_unused_result): Likewise. | |
7708 | (TODO_set_props): Remove. | |
7709 | * omp-low.c (diagnose_omp_structured_block_errors): Change to | |
7710 | run as a pass. | |
7711 | (pass_diagnose_omp_blocks): Define. | |
7712 | * c-decl.c (pop_file_scope): Do not finalize the CU here. | |
7713 | (c_gimple_diagnostics_recursively): Remove. | |
7714 | (finish_function): Do not call it. | |
7715 | (c_write_global_declarations): Continue after errors. | |
7716 | Finalize the CU here. | |
7717 | * c-gimplify.c (c_genericize): Do not gimplify here. | |
7718 | * c-common.c (c_warn_unused_result): Move ... | |
7719 | * tree-cfg.c (do_warn_unused_result): ... here. | |
7720 | (run_warn_unused_result): New function. | |
7721 | (gate_warn_unused_result): New function. | |
7722 | (pass_warn_unused_result): New pass. | |
7723 | * c-common.h (c_warn_unused_result): Remove. | |
7724 | * flags.h (flag_warn_unused_result): Declare. | |
7725 | * c-opts.c (c_common_init_options): Enable flag_warn_unused_result. | |
7726 | * opts.c (flag_warn_unused_result): Initialize to false. | |
7727 | * toplev.c (compile_file): Add comment. | |
7728 | * omp-low.c (create_omp_child_function): Do not register | |
7729 | the function with the frontend. | |
7730 | (diagnose_omp_structured_block_errors): Prepare to be | |
7731 | called as optimization pass. | |
7732 | (gate_diagnose_omp_blocks): New function. | |
7733 | (pass_diagnose_omp_blocks): New pass. | |
7734 | * cgraph.h (cgraph_optimize): Remove. | |
7735 | (cgraph_analyze_function): Likewise. | |
7736 | * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks. | |
7737 | * cgraphunit.c (cgraph_lower_function): Lower nested functions | |
7738 | before their parents here. | |
7739 | (cgraph_finalize_function): Not here. | |
7740 | (cgraph_analyze_function): Gimplify functions here. | |
7741 | (cgraph_finalize_compilation_unit): Continue after errors. | |
7742 | Optimize the callgraph from here. | |
7743 | (cgraph_optimize): Make static. | |
7744 | * langhooks.c (write_global_declarations): Finalize the CU. | |
7745 | * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors. | |
7746 | (gimplify_function_tree): Assert we gimplify only once. | |
7747 | Set PROP_gimple_any property. | |
7748 | * tree-nested.c (gimplify_all_functions): New function. | |
7749 | (lower_nested_functions): Gimplify all nested functions. | |
7750 | * gimple.h (diagnose_omp_structured_block_errors): Remove. | |
7751 | * passes.c (init_optimization_passes): Add pass_warn_unused_result | |
7752 | and pass_diagnose_omp_blocks after gimplification. Do not | |
7753 | set TODO_set_props on all_lowering_passes. | |
7754 | (execute_one_pass): Do not handle TODO_set_props. | |
7755 | * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency. | |
7756 | (gimplify.o): Add tree-pass.h dependency. | |
7757 | * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST. | |
7758 | (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR. | |
7759 | (unsave_r): Likewise. | |
7760 | * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the | |
7761 | temporary variable. | |
7762 | ||
2e687c2c SL |
7763 | 2009-07-17 Sandra Loosemore <sandra@codesourcery.com> |
7764 | ||
7765 | * doc/service.texi (Service): Restore previously removed link, | |
7766 | which isn't broken after all. | |
7767 | ||
7763473e RG |
7768 | 2009-07-17 Richard Guenther <rguenther@suse.de> |
7769 | ||
7770 | PR tree-optimization/40321 | |
7771 | * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by | |
7772 | PHI nodes to the maximal set. | |
7773 | (make_values_for_phi): Add PHI arguments to the maximal set. | |
7774 | (execute_pre): Dump PHI_GEN and the maximal set. | |
7775 | ||
4f934809 JJ |
7776 | 2009-07-17 Jakub Jelinek <jakub@redhat.com> |
7777 | ||
7778 | PR c++/40780 | |
7779 | * gimplify.c (gimplify_conversion): Don't change non-conversions into | |
7780 | VIEW_CONVERT_EXPR. | |
7781 | ||
63a26b78 SL |
7782 | 2009-07-16 Sandra Loosemore <sandra@codesourcery.com> |
7783 | ||
7784 | * doc/extend.texi (Nested Functions): Replace broken link with | |
7785 | textual reference. | |
7786 | * doc/service.texi (Service): Remove broken link. | |
7787 | ||
3ac337c3 L |
7788 | 2009-07-16 H.J. Lu <hongjiu.lu@intel.com> |
7789 | ||
7790 | PR bootstrap/40781 | |
7791 | * builtins.c (expand_builtin_memcmp): Use loc instead of | |
7792 | EXPR_LOCATION (exp). | |
7793 | (expand_builtin_strncmp): Likewise. | |
7794 | ||
db3927fb AH |
7795 | 2009-07-17 Aldy Hernandez <aldyh@redhat.com> |
7796 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
7797 | ||
f100a4a8 | 7798 | PR 40435 |
db3927fb AH |
7799 | * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h, |
7800 | builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c, | |
7801 | tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c, | |
7802 | c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c, | |
7803 | calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c, | |
7804 | tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c, | |
7805 | tree-inline.c, c-common.c, c-common.h, gimple.c, | |
7806 | tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c, | |
7807 | convert.c: Add location argument to fold_{unary,binary,ternary}, | |
7808 | fold_build[123], build_call_expr, build_size_arg, | |
7809 | build_fold_addr_expr, build_call_array, non_lvalue, size_diffop, | |
7810 | fold_build1_initializer, fold_build2_initializer, | |
7811 | fold_build3_initializer, fold_build_call_array, | |
7812 | fold_build_call_array_initializer, fold_single_bit_test, | |
7813 | omit_one_operand, omit_two_operands, invert_truthvalue, | |
7814 | fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref, | |
7815 | combine_comparisons, fold_builtin_*, fold_call_expr, | |
7816 | build_range_check, maybe_fold_offset_to_address, round_up, | |
7817 | round_down. | |
7818 | ||
c32097d8 JM |
7819 | 2009-07-16 Jason Merrill <jason@redhat.com> |
7820 | ||
7821 | PR libstdc++/37907 | |
7822 | * c-common.c (c_common_reswords): Add __is_standard_layout | |
7823 | and __is_trivial. | |
7824 | * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL. | |
7825 | * doc/implement-cxx.texi: New. | |
7826 | * doc/gcc.texi: Include it. | |
7827 | ||
b3c5a409 DD |
7828 | 2009-07-16 DJ Delorie <dj@redhat.com> |
7829 | ||
7830 | * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing | |
7831 | compares that may be indirectly affected by previous instructions. | |
7832 | ||
a41d064d KG |
7833 | 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
7834 | ||
7835 | * builtins.c (do_mpc_arg2): New. | |
7836 | (fold_builtin_2): Fold builtin cpow. | |
7837 | * real.h (HAVE_mpc_pow): New. | |
7838 | ||
db87b56d BM |
7839 | 2009-07-16 Bingfeng Mei <bmei@broadcom.com> |
7840 | ||
9e7c935a UB |
7841 | * modulo-sched.c (sms_schedule): stage_count <= 1 as correct |
7842 | comparison to skip unprofitable schedule | |
7843 | ||
ba0c638e SB |
7844 | 2009-07-16 Simon Baldwin <simonb@google.com> |
7845 | ||
7846 | * gcc.c (option_map): New flag -no-canonical-prefixes. | |
7847 | * (display_help): Print help text for new flag. | |
7848 | * (process_command): Move options translation and language specifics | |
7849 | and handle new flag early. Use it to set a function pointer to a | |
7850 | prefix builder. Replace make_relative_prefix calls with calls to | |
7851 | the function pointed to. Ignore new flag in regular options handling. | |
7852 | * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes. | |
7853 | ||
11af2d7b DD |
7854 | 2009-07-15 DJ Delorie <dj@redhat.com> |
7855 | ||
7856 | * config/mep/mep.md (sibcall_internal): Change register to avoid | |
7857 | argument registers. | |
7858 | (sibcall_value_internal): Likewise. | |
7859 | ||
9d2bb902 EB |
7860 | 2009-07-15 Eric Botcazou <ebotcazou@adacore.com> |
7861 | ||
7862 | PR rtl-optimization/40710 | |
7863 | * resource.c (mark_target_live_regs): Reset DF problem to LR. | |
7864 | ||
da45599c AN |
7865 | 2009-07-15 Adam Nemet <anemet@caviumnetworks.com> |
7866 | ||
7867 | * config/mips/mips.md (*extenddi_truncate<mode>, | |
7868 | *extendsi_truncate<mode>): Change type attribute to move_type | |
7869 | with shift_shift. Split out code handling exts from here ... | |
7870 | (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new | |
7871 | pattern. | |
7872 | (*extendhi_truncateqi): Change type attribute to move_type with | |
7873 | shift_shift. Split out code handling exts from here ... | |
7874 | (*extendhi_truncateqi_exts): ... to this new pattern. | |
7875 | ||
31f44cd0 | 7876 | 2009-07-15 Uros Bizjak <ubizjak@gmail.com> |
1fba7394 | 7877 | |
31f44cd0 UB |
7878 | * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction |
7879 | instead of "and" with inverted sign bit mask value. Use | |
7880 | "nonimmediate_operand" for operand 1 and operand 2 predicate. | |
7881 | Allocate registers only for operand 4 and operand 5. | |
1fba7394 | 7882 | |
b4e4232d JJ |
7883 | 2009-07-15 Jakub Jelinek <jakub@redhat.com> |
7884 | ||
7885 | PR middle-end/40747 | |
7886 | * fold-const.c (fold_cond_expr_with_comparison): When folding | |
7887 | < and <= to MIN, make sure the MIN uses the same type as the | |
7888 | comparison's operands. | |
7889 | ||
fa01135d RE |
7890 | 2009-07-15 Richard Earnshaw <rearnsha@arm.com> |
7891 | ||
7892 | * arm.md (ior_xor): New code iterator. | |
7893 | (split for ior/xor with shift and zero-extend): New split pattern. | |
7894 | * arm/predicates.md (subreg_lowpart_operator): New special predicate. | |
7895 | ||
b41e33fe RG |
7896 | 2009-07-15 Richard Guenther <rguenther@suse.de> |
7897 | ||
7898 | * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize | |
7899 | offset member. | |
7900 | ||
c9b2f286 RG |
7901 | 2009-07-15 Richard Guenther <rguenther@suse.de> |
7902 | ||
7903 | PR middle-end/40753 | |
1fba7394 | 7904 | * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases. |
c9b2f286 | 7905 | |
31d29c40 MK |
7906 | 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com> |
7907 | ||
7908 | * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to | |
7909 | handle 2.6.30 kernel. | |
7910 | ||
18e67adf DD |
7911 | 2009-07-15 DJ Delorie <dj@redhat.com> |
7912 | ||
7913 | * config/mep/mep.md (sibcall_internal): Change register to allow | |
7914 | for 24-bit addresses. | |
7915 | (sibcall_value_internal): Likewise. | |
7916 | ||
96809b41 | 7917 | 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com> |
f100a4a8 | 7918 | |
1fba7394 UB |
7919 | * doc/invoke.texi: Added descriptions of the scheduling heuristics |
7920 | that are enabled/disabled by the flags introduced by a previous patch. | |
f100a4a8 | 7921 | |
54a1e1d0 DD |
7922 | 2009-07-14 DJ Delorie <dj@redhat.com> |
7923 | ||
7924 | * config/mep/mep.md (sibcall_internal): Include non-toggling | |
7925 | non-jmp case. | |
7926 | (sibcall_value_internal): Likewise. | |
7927 | ||
2a4c0366 TG |
7928 | 2009-07-14 Taras Glek <tglek@mozilla.com> |
7929 | Rafael Espindola <espindola@google.com> | |
7930 | ||
7931 | * doc/sourcebuild.texi: Document install-plugin target. | |
7932 | * configure.ac: Added install-plugin target to language makefiles. | |
7933 | * configure: Regenerate. | |
7934 | * Makefile.in: (install-plugin): Install more headers, | |
7935 | depend on lang.install-plugin. | |
7936 | ||
2349c14b MLI |
7937 | 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7938 | ||
7939 | * tree-vrp.c (vrp_evaluate_conditional): Mark strings for | |
7940 | translation. | |
f100a4a8 | 7941 | |
a9d1723f DD |
7942 | 2009-07-14 DJ Delorie <dj@redhat.com> |
7943 | ||
7944 | * config/mep/mep.c (mep_vliw_jmp_match): New function. | |
7945 | * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it. | |
7946 | * config/mep/mep.md (sibcall_internal): Change test from | |
7947 | mep_vliw_mode_match to mep_vliw_jmp_match. | |
7948 | (sibcall_value_internal): Likewise. | |
7949 | ||
af766f2d UB |
7950 | 2009-07-14 Uros Bizjak <ubizjak@gmail.com> |
7951 | ||
7952 | * config/i386/sse.md (copysign<mode>3): New expander. | |
7953 | * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype. | |
7954 | * config/i386/i386.c (ix86_build_signbit_mask): Make public. | |
7955 | Use ix86_build_const_vector. | |
7956 | (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and | |
7957 | IX86_BUILTIN_CPYSGNPD. | |
7958 | (builtin_description): Add __builtin_ia32_copysignps and | |
7959 | __builtin_ia32_copysignpd. | |
7960 | (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN | |
7961 | and BUILT_IN_COPYSIGNF. | |
7962 | ||
b35c8160 JM |
7963 | 2009-07-13 Jason Merrill <jason@redhat.com> |
7964 | ||
7965 | * builtins.c (can_trust_pointer_alignment): New fn. | |
7966 | (get_pointer_alignment): Factor it out from here. | |
7967 | * tree.h: Declare it. | |
7968 | ||
e02e8e58 DE |
7969 | 2009-07-14 David Edelsohn <edelsohn@gnu.org> |
7970 | ||
7971 | * config/rs6000/predicates.md (offsettable_mem_operand): Test | |
7972 | RTX_AUTOINC class. | |
7973 | ||
4fdaccea DS |
7974 | 2009-07-14 Dodji Seketeli <dodji@redhat.com> |
7975 | ||
7976 | PR debug/40705 | |
7977 | PR c++/403057 | |
7978 | * dwarf2.out.c (gen_type_die_with_usage): Added comment. | |
7979 | ||
0b200b80 | 7980 | 2009-07-14 Richard Guenther <rguenther@suse.de> |
af766f2d | 7981 | Andrey Belevantsev <abel@ispras.ru> |
0b200b80 RG |
7982 | |
7983 | PR middle-end/40745 | |
7984 | * cfgexpand.c (partition_stack_vars): Do not bother to update | |
7985 | alias information when not optimizing. | |
7986 | ||
55b34b5f | 7987 | 2009-07-14 Richard Guenther <rguenther@suse.de> |
848e6317 | 7988 | Andrey Belevantsev <abel@ispras.ru> |
55b34b5f RG |
7989 | |
7990 | * tree-ssa-alias.h (refs_may_alias_p_1): Declare. | |
7991 | (pt_solution_set): Likewise. | |
7992 | * tree-ssa-alias.c (refs_may_alias_p_1): Export. | |
7993 | * tree-ssa-structalias.c (pt_solution_set): New function. | |
7994 | * final.c (rest_of_clean_state): Free SSA data structures. | |
7995 | * print-rtl.c (print_decl_name): Remove. | |
7996 | (print_mem_expr): Implement in terms of print_generic_expr. | |
7997 | * alias.c (ao_ref_from_mem): New function. | |
7998 | (rtx_refs_may_alias_p): Likewise. | |
7999 | (true_dependence): Query alias-export info. | |
8000 | (canon_true_dependence): Likewise. | |
8001 | (write_dependence_p): Likewise. | |
8002 | * tree-dfa.c (get_ref_base_and_extent): For void types leave | |
8003 | size unknown. | |
8004 | * emit-rtl.c (component_ref_for_mem_expr): Remove. | |
8005 | (mem_expr_equal_p): Use operand_equal_p. | |
8006 | (set_mem_attributes_minus_bitpos): Do not use | |
8007 | component_ref_for_mem_expr. | |
8008 | * cfgexpand.c (add_partitioned_vars_to_ptset): New function. | |
8009 | (update_alias_info_with_stack_vars): Likewise. | |
8010 | (partition_stack_vars): Call update_alias_info_with_stack_vars. | |
8011 | * tree-ssa.c (delete_tree_ssa): Do not release SSA names | |
8012 | explicitly nor clear stmt operands. | |
8013 | Free the decl-to-pointer map. | |
8014 | * tree-optimize.c (execute_free_datastructures): Do not free | |
8015 | SSA data structures here. | |
8016 | * tree-flow.h (struct gimple_df): Add decls_to_pointers member. | |
8017 | * Makefile.in (emit-rtl.o): Add pointer-set.h dependency. | |
8018 | (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H) | |
8019 | dependencies. | |
8020 | (print-rtl.o): Add $(DIAGNOSTIC_H) dependency. | |
8021 | ||
a46f0964 DD |
8022 | 2009-07-13 DJ Delorie <dj@redhat.com> |
8023 | ||
1700c2e7 DD |
8024 | * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger |
8025 | unrolling at the right iteration count. | |
8026 | ||
a46f0964 DD |
8027 | * config/mep/mep.c (mep_expand_prologue): Fix frame pointer |
8028 | calculations. | |
8029 | ||
ee4764a8 | 8030 | 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com> |
f100a4a8 | 8031 | |
af766f2d UB |
8032 | * haifa-sched.c (rank_for_schedule): Introduced flags to |
8033 | enable/disable individual scheduling heuristics. | |
8034 | * common.opt: Introduced flags to enable/disable individual | |
f100a4a8 | 8035 | heuristics in the scheduler. |
af766f2d UB |
8036 | * doc/invoke.texi: Introduced flags to enable/disable individual |
8037 | heuristics in the scheduler. | |
f100a4a8 | 8038 | |
9122666c KT |
8039 | 2009-07-13 Kai Tietz <kai.tietz@onevision.com> |
8040 | ||
8041 | * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file | |
8042 | config/i386/mingw-tls.c. | |
8043 | * config/i386/mingw-tls.c: Removed. | |
8044 | ||
2f3e235b IR |
8045 | 2009-07-13 Ira Rosen <irar@il.ibm.com> |
8046 | ||
f100a4a8 | 8047 | * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the |
2f3e235b IR |
8048 | checks access only relevant statements. |
8049 | (vectorizable_reduction): Likewise. | |
8050 | ||
f345f84a KT |
8051 | 2009-07-12 Kai Tietz <kai.tietz@onevision.com> |
8052 | ||
8053 | * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_ | |
8054 | just for 32-bit case. | |
8055 | ||
f645e9a2 JH |
8056 | 2009-07-12 Jan Hubicka <jh@suse.cz> |
8057 | ||
8058 | PR tree-optimization/40585 | |
8059 | * except.c (expand_resx_expr): When there already is resume | |
8060 | instruction, produce linked list. | |
8061 | (build_post_landing_pads): Assert that resume is empty. | |
8062 | (connect_post_landing_pads): Handle resume lists. | |
8063 | (dump_eh_tree): Dump resume list. | |
8064 | ||
06066f92 IR |
8065 | 2009-07-12 Ira Rosen <irar@il.ibm.com> |
8066 | ||
8067 | * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction | |
8068 | with additional argument. | |
7c8b1a77 | 8069 | * tree-vectorizer.h (enum vect_def_type): Add |
06066f92 IR |
8070 | vect_double_reduction_def. |
8071 | (vect_is_simple_reduction): Add argument. | |
7c8b1a77 | 8072 | * tree-vect-loop.c (vect_determine_vectorization_factor): Fix |
06066f92 IR |
8073 | indentation. |
8074 | (vect_analyze_scalar_cycles_1): Detect double reduction. Call | |
8075 | vect_is_simple_reduction with additional argument. | |
8076 | (vect_analyze_loop_operations): Handle exit phi nodes in case of | |
8077 | double reduction. | |
8078 | (reduction_code_for_scalar_code): Handle additional codes by | |
8079 | returning ERROR_MARK for them. Fix comment and indentation. | |
8080 | (vect_is_simple_reduction): Fix comment, add argument to specify | |
8081 | double reduction. Detect double reduction. | |
8082 | (get_initial_def_for_induction): Fix indentation. | |
8083 | (get_initial_def_for_reduction): Fix comment and indentation. | |
8084 | Handle double reduction. Create initial definitions that do not | |
8085 | require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases. | |
8086 | (vect_create_epilog_for_reduction): Fix comment, add argument to | |
8087 | handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in | |
8088 | epilogue result extraction. Create double reduction phi node and | |
8089 | replace relevant uses. | |
8090 | (vectorizable_reduction): Call vect_is_simple_reduction with | |
8091 | additional argument. Fix indentation. Update epilogue code treatment | |
7c8b1a77 | 8092 | according to the changes in reduction_code_for_scalar_code. Check |
06066f92 IR |
8093 | for double reduction. Call vect_create_epilog_for_reduction with |
8094 | additional argument. | |
8095 | * tree-vect-stmts.c (process_use): Handle double reduction, update | |
8096 | documentation. | |
8097 | (vect_mark_stmts_to_be_vectorized): Handle double reduction. | |
8098 | (vect_get_vec_def_for_operand): Likewise. | |
8099 | ||
b20231fe DS |
8100 | 2009-07-12 Danny Smith <dansmister@gmail.com> |
8101 | ||
8102 | * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't | |
8103 | dllexport if !TREE_PUBLIC. | |
8104 | (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC. | |
8105 | ||
97c281da AS |
8106 | 2009-07-11 Anatoly Sokolov <aesok@post.ru> |
8107 | ||
8108 | * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine. | |
8109 | (avr_extra_arch_macro) Remove declatation. | |
8110 | * config/avr/avr.c (avr_cpu_cpp_builtins): New function. | |
8111 | (avr_extra_arch_macro) Declare as static. | |
8112 | * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare. | |
8113 | ||
6b45de00 JH |
8114 | 2009-07-11 Jan Hubicka <jh@suse.cz> |
8115 | ||
8116 | PR middle-end/48388 | |
8117 | * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap. | |
8118 | ||
dd67163f JJ |
8119 | 2009-07-11 Jakub Jelinek <jakub@redhat.com> |
8120 | ||
3e3a9a6a JJ |
8121 | PR debug/40713 |
8122 | * dwarf2out.c (dw_fde_struct): Add in_std_section and | |
8123 | cold_in_std_section bits. | |
8124 | (dwarf2out_begin_prologue): Initialize them. | |
8125 | (dwarf2out_finish): Don't emit FDE range into .debug_ranges | |
8126 | if already covered by text_section or cold_text_section range. | |
8127 | ||
ae58e548 JJ |
8128 | PR rtl-optimization/40667 |
8129 | * defaults.h (MINIMUM_ALIGNMENT): Define if not defined. | |
8130 | * doc/tm.texi (MINIMUM_ALIGNMENT): Document it. | |
8131 | * config/i386/i386.h (MINIMUM_ALIGNMENT): Define. | |
8132 | * config/i386/i386.c (ix86_minimum_alignment): New function. | |
8133 | * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype. | |
8134 | * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT. | |
8135 | * emit-rtl.c (gen_reg_rtx): Likewise. | |
8136 | * function.c (assign_parms): Likewise. If nominal_type needs | |
8137 | bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment | |
8138 | rather than passed_type's alignment. | |
8139 | ||
dd67163f JJ |
8140 | PR target/40668 |
8141 | * function.c (assign_parm_setup_stack): Adjust | |
8142 | MEM_OFFSET (data->stack_parm) if promoted_mode is different | |
8143 | from nominal_mode on big endian. | |
8144 | ||
e9edda23 PB |
8145 | 2009-07-11 Paolo Bonzini <bonzini@gnu.org> |
8146 | ||
8147 | * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension. | |
8148 | ||
82e45095 DD |
8149 | 2009-07-10 DJ Delorie <dj@redhat.com> |
8150 | ||
8151 | * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify. | |
8152 | ||
98ac6510 MM |
8153 | 2009-07-10 Mark Mitchell <mark@codesourcery.com> |
8154 | ||
8155 | * config/arm/thumb2.md (thumb2_cbz): Correct computation of length | |
8156 | attribute. | |
8157 | (thumb2_cbnz): Likewise. | |
8158 | ||
b96c5923 DD |
8159 | 2009-07-10 David Daney <ddaney@caviumnetworks.com> |
8160 | ||
8161 | PR target/39079 | |
8162 | * config.gcc (supported_defaults): Add synci. | |
8163 | (with_synci): Add validation. | |
8164 | (all_defaults): Add synci. | |
8165 | * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of | |
8166 | ISA_HAS_SYNCI. | |
8167 | (synci): Same. | |
8168 | * config/mips/mips.opt (msynci): New option. | |
8169 | * config/mips/mips.c (mips_override_options): Warn on use of | |
8170 | -msynci for targets that do now support it. | |
8171 | * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for | |
8172 | msynci. | |
8173 | * gcc/doc/invoke.texi (-msynci): Document the new option. | |
8174 | * doc/install.texi (--with-synci): Document the new option. | |
8175 | ||
182e00b1 RG |
8176 | 2009-07-10 Richard Guenther <rguenther@suse.de> |
8177 | ||
8178 | PR tree-optimization/40496 | |
8179 | * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create | |
8180 | the PHI result with a compatible type. | |
8181 | ||
156f545a MLI |
8182 | 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8183 | ||
8184 | PR 25509 | |
8185 | PR 40614 | |
8186 | * c.opt (Wunused-result): New. | |
8187 | * doc/invoke.texi: Document it. | |
8188 | * c-common.c (c_warn_unused_result): Use it. | |
8189 | ||
06c43499 DD |
8190 | 2009-07-09 DJ Delorie <dj@redhat.com> |
8191 | ||
5cec9f59 DD |
8192 | * targhooks.c (default_target_can_inline_p): Rename from |
8193 | default_target_option_can_inline_p. | |
8194 | * targhooks.h (default_target_can_inline_p): Likewise. | |
8195 | * target-def.h (TARGET_CAN_INLINE_P): Rename from | |
8196 | TARGET_OPTION_CAN_INLINE_P. | |
8197 | * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise. | |
8198 | * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise. | |
8199 | (mep_target_can_inline_p): Rename from | |
8200 | mep_target_option_can_inline_p. | |
8201 | ||
8202 | PR target/40626 | |
b9263ae5 DD |
8203 | * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor |
8204 | registers used to pass vectors. | |
8205 | ||
06c43499 DD |
8206 | * config/mep/mep.c (mep_option_can_inline_p): Remove error call. |
8207 | ||
a80b0574 TT |
8208 | 2009-07-09 Tom Tromey <tromey@redhat.com> |
8209 | ||
8210 | * unwind-dw2-fde-darwin.c: Include dwarf2.h. | |
8211 | * config/mmix/mmix.c: Include dwarf2.h. | |
8212 | * config/rs6000/darwin-fallback.c: Include dwarf2.h. | |
8213 | * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h. | |
8214 | * config/sh/sh.c: Include dwarf2.h. | |
8215 | * config/i386/i386.c: Include dwarf2.h. | |
8216 | * Makefile.in (DWARF2_H): Remove 'elf'. | |
8217 | * except.c: Include dwarf2.h. | |
8218 | * unwind-dw2.c: Include dwarf2.h. | |
8219 | * dwarf2out.c: Include dwarf2.h. | |
8220 | * unwind-dw2-fde-glibc.c: Include dwarf2.h. | |
8221 | * unwind-dw2-fde.c: Include dwarf2.h. | |
8222 | * dwarf2asm.c: Include dwarf2.h. | |
8223 | ||
356c23b3 | 8224 | 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com> |
7c8b1a77 | 8225 | |
356c23b3 | 8226 | * haifa-sched.c (insn_finishes_cycle_p): New static function. |
7c8b1a77 UB |
8227 | (max_issue): Use it. |
8228 | * sched-int.h (struct sched_info: insn_finishes_block_p): New | |
8229 | scheduler hook. | |
8230 | * sched-rgn.c (rgn_insn_finishes_block_p): Implement it. | |
8231 | (region_sched_info): Update. | |
8232 | * sched-ebb.c (ebb_sched_info): Update. | |
8233 | * modulo-sched.c (sms_sched_info): Update. | |
356c23b3 MK |
8234 | * sel-sched-ir.c (sched_sel_haifa_sched_info): Update. |
8235 | ||
5223c588 MK |
8236 | 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com> |
8237 | ||
8238 | * varasm.c (build_constant_desc): Don't share RTL in pool entries. | |
8d4cf6d7 BS |
8239 | |
8240 | 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net> | |
8241 | ||
f100a4a8 | 8242 | * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen. |
8d4cf6d7 | 8243 | |
b9da76de JJ |
8244 | 2009-07-09 Jakub Jelinek <jakub@redhat.com> |
8245 | ||
8246 | PR middle-end/40692 | |
8247 | * fold-const.c (fold_cond_expr_with_comparison): Don't replace | |
8248 | arg1 with arg01 if arg1 is already INTEGER_CST. | |
8249 | ||
fcaf7e12 AN |
8250 | 2009-07-08 Adam Nemet <anemet@caviumnetworks.com> |
8251 | ||
7c8b1a77 UB |
8252 | * simplify-rtx.c (simplify_binary_operation_1) <AND>: |
8253 | Transform (and (truncate)) into (truncate (and)). | |
fcaf7e12 | 8254 | |
3f36bac2 AN |
8255 | 2009-07-08 Adam Nemet <anemet@caviumnetworks.com> |
8256 | ||
8257 | * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before | |
8258 | creating LHS paradoxical subregs. Fix surrounding returns to | |
8259 | use NULL_RTX rather than 0. | |
8260 | ||
ae30c1fa DD |
8261 | 2009-07-08 DJ Delorie <dj@redhat.com> |
8262 | ||
8263 | * config/mep/mep.c: (mep_option_can_inline_p): New. | |
8264 | (TARGET_OPTION_CAN_INLINE_P): Define. | |
8265 | ||
3d78d293 MW |
8266 | 2009-07-08 Mark Wielaard <mjw@redhat.com> |
8267 | ||
8268 | PR debug/40659 | |
8269 | * dwarf2out.c (add_data_member_location_attribute): When we have | |
8270 | only a constant offset don't emit a new location description using | |
8271 | DW_OP_plus_uconst, but just add the constant with add_AT_int, when | |
8272 | dwarf_version > 2. | |
8273 | ||
ac2e563f RH |
8274 | 2009-07-08 Richard Henderson <rth@redhat.com> |
8275 | ||
8276 | PR target/38900 | |
8277 | * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c. | |
8278 | (enum reg_class): Add CLOBBERED_REGS. | |
8279 | (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise. | |
8280 | * config/i386/i386.c (ix86_conditional_register_usage): Moved | |
8281 | from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit. | |
8282 | (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls. | |
8283 | (ix86_expand_call): Use sibcall_insn_operand when needed. Don't | |
8284 | force 64-bit sibcalls into R11. | |
8285 | * config/i386/constraints.md (U): New constraint. | |
8286 | * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it. | |
8287 | (sibcall_1_rex64, sibcall_value_1_rex64): Likewise. | |
8288 | (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove. | |
8289 | ||
8ed77e22 SZ |
8290 | 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com> |
8291 | ||
8292 | * basic-block.h (dump_regset, debug_regset): Remove duplicate | |
8293 | prototypes. | |
8294 | * c-objc-common.h (c_initialize_diagnostics): Ditto. | |
8295 | * ebitmap.h (dump_ebitmap): Ditto. | |
8296 | * optabs.h (optab_libfunc): Ditto. | |
8297 | * tree.h (tree_expr_nonzero_warnv_p): Ditto. | |
8298 | * tree-flow.h (vect_can_force_dr_alignment_p, | |
3f36bac2 | 8299 | get_vectype_for_scalar_type): Ditto. |
8ed77e22 | 8300 | (vectorize_loops): Move prototype to ... |
3f36bac2 | 8301 | * tree-vectorizer.h: ... here. Also, adjust comment. |
8ed77e22 SZ |
8302 | (vect_set_verbosity_level): Remove duplicate prototype. |
8303 | * tree-ssa-loop.c: Include tree-vectorizer.h. | |
8304 | * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h. | |
8305 | ||
c6075b13 NC |
8306 | 2009-07-08 Nick Clifton <nickc@redhat.com> |
8307 | ||
8308 | * config/i386/unix.h (ASM_COMMENT_START): Add a space after the | |
8309 | forward slash. | |
8310 | ||
d1b5afd5 DD |
8311 | 2009-07-08 DJ Delorie <dj@redhat.com> |
8312 | ||
8313 | * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3, | |
8314 | cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1, | |
8315 | cpmovtocc_P0S_P1): Mark volatile. Note which registers are | |
8316 | written to. | |
8317 | * config/mep/intrinsics.md: Regenerated. | |
8318 | * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control | |
8319 | registers when asm() or calls are detected. | |
3f36bac2 | 8320 | |
d665b6e5 MLI |
8321 | 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8322 | ||
8323 | PR c++/31246 | |
8324 | * gimplify.c (gimplify_expr): Propagate no_warning flag when | |
8325 | gimplifying. | |
8326 | * gimple (gimple_build_call_from_tree): Likewise. | |
8327 | * tree-cfg.c (remove_useless_stmts_warn_notreached): Check | |
8328 | no_warning flag before warning. | |
3f36bac2 | 8329 | |
5e278028 MLI |
8330 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8331 | ||
8332 | * tree.c (set_expr_locus): Remove. | |
8333 | * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove. | |
8334 | * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by | |
8335 | EXPR_LOCATION. | |
8336 | * gimplify.c (internal_get_tmp_var): Likewise. | |
8337 | (gimplify_call_expr): Likewise. | |
8338 | (gimplify_one_sizepos): Likewise. | |
8339 | ||
ed3346c2 EB |
8340 | 2009-07-07 Eric Botcazou <ebotcazou@adacore.com> |
8341 | ||
8342 | PR debug/40666 | |
8343 | * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing | |
8344 | to variables for debugging purposes. | |
8345 | ||
4db19cc7 ML |
8346 | 2009-06-23 Mark Loeser <mark@halcy0n.com> |
8347 | ||
8348 | PR build/40010 | |
8349 | * Makefile.in (gcc.pod): Depend on gcc-vers.texi. | |
8350 | ||
72f90fde MLI |
8351 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8352 | ||
8353 | * pretty-print.c (pp_base_format): Remove %J. | |
8354 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
8355 | gcc_cxxdiag_char_table): Likewise. | |
8356 | (init_dynamic_diag_info): Likewise. | |
4db19cc7 | 8357 | |
dcb91ebe MLI |
8358 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8359 | ||
8360 | * pretty-print.c (pp_base_format): Remove %H. | |
8361 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
8362 | gcc_cxxdiag_char_table): Likewise. | |
8363 | (init_dynamic_diag_info): Likewise. | |
8364 | * config/mep/mep.c (mep_select_section): Likewise. | |
8365 | ||
cf400ddb DS |
8366 | 2009-07-07 Duncan Sands <baldrick@free.fr> |
8367 | ||
7c8b1a77 UB |
8368 | * final.c (pass_clean_state): Give the pass a name. |
8369 | * passes.c (pass_rest_of_compilation): Likewise. | |
8370 | * tree-optimize.c (pass_all_optimizations): Likewise. | |
cf400ddb | 8371 | |
d575725b L |
8372 | 2009-07-07 H.J. Lu <hongjiu.lu@intel.com> |
8373 | ||
8374 | * config/ia64/ia64.c (ia64_handle_model_attribute): Remove | |
8375 | an extra 'decl' for error_at. | |
8376 | ||
535536b4 JJ |
8377 | 2009-07-07 Jakub Jelinek <jakub@redhat.com> |
8378 | ||
8379 | PR middle-end/40669 | |
8380 | * tree-tailcall.c (adjust_return_value_with_ops, | |
8381 | create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary | |
8382 | if it has complex or vector type. | |
8383 | ||
f062f8f2 OH |
8384 | 2009-07-07 Olivier Hainque <hainque@adacore.com> |
8385 | ||
d575725b L |
8386 | * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak |
8387 | pthread symbols. | |
f062f8f2 | 8388 | |
cac1b0ee BS |
8389 | 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net> |
8390 | ||
8391 | * Makefile.in: added more lists of includes to PLUGIN_HEADERS. | |
8392 | ||
c5d75364 MLI |
8393 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8394 | ||
7c8b1a77 | 8395 | * cgraphunit.c: Replace %J by an explicit location. Update all calls. |
c5d75364 MLI |
8396 | * c-decl.c: Likewise. |
8397 | * function.c: Likewise. | |
8398 | * varasm.c: Likewise. | |
8399 | * tree-ssa.c: Likewise. | |
8400 | * c-common.c: Likewise. | |
8401 | * tree-cfg.c: Likewise. | |
8402 | * config/spu/spu.c: Likewise. | |
8403 | * config/ia64/ia64.c: Likewise. | |
8404 | * config/v850/v850.c: Likewise. | |
8405 | ||
b932c20b DD |
8406 | 2009-07-06 DJ Delorie <dj@redhat.com> |
8407 | ||
8408 | * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE. | |
8409 | * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make | |
8410 | unspecified accesses to control registers. | |
8411 | * config/mep/intrinsics.md: Regenerate. | |
8412 | * config/mep/intrinsics.h: Regenerate. | |
8413 | * config/mep/mep-intrin.h: Regenerate. | |
3f36bac2 | 8414 | |
fab922b1 MLI |
8415 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8416 | ||
8417 | * c-lex.c: Replace %H by an explicit location. Update all calls. | |
8418 | * c-common.c: Likewise. | |
8419 | * c-decl.c: Likewise. | |
8420 | * c-typeck.c: Likewise. | |
8421 | * fold-const.c: Likewise. | |
8422 | * gimplify.c: Likewise. | |
8423 | * stmt.c: Likewise. | |
8424 | * tree-cfg.c: Likewise. | |
8425 | * tree-ssa-loop-niter.c: Likewise. | |
8426 | * tree-vrp.c: Likewise. | |
8427 | * value-prof.c: Likewise. | |
8428 | ||
66350781 DN |
8429 | 2009-07-06 Diego Novillo <dnovillo@google.com> |
8430 | ||
8431 | * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR | |
8432 | if it has one. Handle cases where VAR does not have an | |
8433 | annotation or cfun is NULL. | |
8434 | ||
d251bfca DN |
8435 | 2009-07-06 Diego Novillo <dnovillo@google.com> |
8436 | ||
8437 | * tree.c: Include debug.h. | |
8438 | (initialize_tree_contains_struct): New. | |
8439 | (init_ttree): Call it. | |
8440 | (tree_node_structure_for_code): Factor out of ... | |
8441 | (tree_node_structure): ... here. | |
8442 | * treestruct.def (TS_PHI_NODE): Remove. | |
8443 | (TS_GIMPLE_STATEMENT): Remove. | |
8444 | ||
e923c8ea DN |
8445 | 2009-07-06 Diego Novillo <dnovillo@google.com> |
8446 | ||
7c8b1a77 | 8447 | * tree-pretty-print.c (dump_generic_node): Protect against NULL op0. |
e923c8ea DN |
8448 | (debug_tree_chain): Handle cycles. |
8449 | ||
7a61cf6f NC |
8450 | 2009-07-06 Nick Clifton <nickc@redhat.com> |
8451 | DJ Delorie <dj@redhat.com> | |
8452 | ||
8453 | * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if | |
8454 | __FMOVD_ENABLED__ is defined. | |
8455 | * config/sh/sh.h | |
8456 | (TARGET_FMOVD): Provide a default definition. | |
8457 | (MASK_FMOVD): Likewise. | |
8458 | (TARGET_CPU_CPP_BUILTINS): Define | |
8459 | __FMOVD_ENABLED__ if TARGET_FMOVD is true. | |
8460 | * config/sh/sh.md (movdf_i4): For alternative 0 use either one or | |
7c8b1a77 | 8461 | two fmov instructions depending upon whether TARGET_FMOVD is enabled. |
7a61cf6f NC |
8462 | (split for DF load from memory into register): Also handle |
8463 | MEMs which consist of REG+DISP addressing. | |
8464 | (split for DF store from register to memory): Likewise. | |
8465 | (movsf_ie): Always use single fp_mode. | |
8466 | * config/sh/sh.c (sh_override_options): Do not automatically | |
8467 | enable TARGET_MOVD for the SH2A when supporting doubles - leave | |
8468 | that to the -mfmovd command line switch. | |
8469 | (broken_move): Do not restrict fldi test to only the SH4 and SH4A. | |
8470 | (fldi_ok): Always allow. | |
8471 | * config/sh/sh.opt (mfmovd): Remove this switch. | |
8472 | * doc/invoke.texi (-mfmovd): Remove documentation of this switch. | |
8473 | ||
83f63251 R |
8474 | 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com> |
8475 | Kaz Kojima <kkojima@gcc.gnu.org> | |
8476 | ||
8477 | PR rtl-optimization/30807 | |
8478 | * postreload.c (reload_combine): For every new use of REG_SUM, | |
8479 | record the use of BASE. | |
8480 | ||
172d54e0 JH |
8481 | 2009-07-06 Jan Hubicka <jh@suse.cz> |
8482 | ||
8483 | * params.def: Revert my accidental commit at 2009-06-30. | |
8484 | ||
34097e36 ILT |
8485 | 2009-07-04 Ian Lance Taylor <iant@google.com> |
8486 | ||
8487 | PR target/40636 | |
8488 | * config/i386/msformat-c.c (mingw_format_attributes): Declare as | |
8489 | EXPORTED_CONST. | |
8490 | (mingw_format_attribute_overrides): Likewise. | |
8491 | ||
bd5b2c2d JJ |
8492 | 2009-07-04 Jakub Jelinek <jakub@redhat.com> |
8493 | ||
8494 | PR debug/40596 | |
8495 | * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried | |
8496 | don't check cfa.reg. Instead of cfa.indirect use | |
8497 | fde && fde->drap_reg != INVALID_REGNUM test. | |
8498 | ||
39ba6ab7 EB |
8499 | 2009-07-04 Eric Botcazou <ebotcazou@adacore.com> |
8500 | ||
8501 | * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG. | |
8502 | ||
54a0ac2d VM |
8503 | 2009-07-03 Vladimir Makarov <vmakarov@redhat.com> |
8504 | ||
8505 | PR target/40587 | |
7c8b1a77 | 8506 | * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out. |
3f36bac2 | 8507 | |
fae1034e RG |
8508 | 2009-07-03 Richard Guenther <rguenther@suse.de> |
8509 | ||
8510 | PR tree-optimization/40640 | |
8511 | * tree-switch-conversion.c (build_arrays): Perform arithmetic | |
8512 | in original type. | |
8513 | ||
ba8978d0 JH |
8514 | 2009-07-03 Jan Hubicka <jh@suse.cz> |
8515 | ||
8516 | * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing | |
8517 | for size, reduce amount of inlining. | |
8518 | ||
d73fb533 RG |
8519 | 2009-07-03 Richard Guenther <rguenther@suse.de> |
8520 | ||
8521 | PR middle-end/34163 | |
7c8b1a77 UB |
8522 | * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x |
8523 | if t +- x is known to not overflow and the conversion widens the | |
8524 | operation. | |
d73fb533 RG |
8525 | * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency. |
8526 | ||
7351bcaa JH |
8527 | 2009-07-03 Jan Hubicka <jh@suse.cz> |
8528 | ||
8529 | * ipa-pure-const.c (analyze): Update loop optimizer init. | |
8530 | * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop, | |
8531 | try_remove_empty_loop, remove_empty_loops): Remove. | |
8532 | * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove. | |
8533 | * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info | |
8534 | to mark regular loops as neccesary. | |
8535 | (degenerate_phi_p): New function. | |
8536 | (propagate_necessity, remove_dead_phis): Use it. | |
8537 | (forward_edge_to_pdom): Likewise. | |
8538 | (eliminate_unnecessary_stmts): Take care to remove uses of results of | |
8539 | virtual PHI nodes that became unreachable. | |
8540 | (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer. | |
8541 | * tree-flow.h (remove_empty_loops): Remove. | |
8542 | * passes.c (init_optimization_passes): Remove. | |
8543 | ||
5071eab7 UB |
8544 | 2009-07-03 Uros Bizjak <ubizjak@gmail.com> |
8545 | ||
8546 | * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use | |
8547 | can_create_pseudo_p. | |
8548 | (*fix_trunc<mode>_i387_1): Ditto. | |
8549 | (*floathi<mode>2_1): Ditto. | |
8550 | (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto. | |
8551 | (*fistdi2_1): Ditto. | |
8552 | (*fist<mode>2_1): Ditto. | |
8553 | (frndintxf2_floor): Ditto. | |
8554 | (*fist<mode>2_floor_1): Ditto. | |
8555 | (frndintxf2_ceil): Ditto. | |
8556 | (*fist<mode>2_ceil_1): Ditto. | |
8557 | (frndintxf2_trunc): Ditto. | |
8558 | (frndintxf2_mask_pm): Ditto. | |
8559 | (fxam<mode>2_i387_with_temp): Ditto. | |
8560 | * config/i386/sse.md (mulv16qi3): Ditto. | |
8561 | (*sse2_mulv4si3): Ditto. | |
8562 | (mulv2di3): Ditto. | |
8563 | (sse4_2_pcmpestr): Ditto. | |
8564 | (sse4_2_pcmpistr): Ditto. | |
8565 | ||
1fc41282 JH |
8566 | 2009-07-03 Jan Hubicka <jh@suse.cz> |
8567 | ||
8568 | * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap. | |
8569 | (mark_stmt_necessary): Set it. | |
8570 | (mark_operand_necessary): Set it. | |
8571 | (mark_control_dependent_edges_necessary): Set it. | |
8572 | (mark_virtual_phi_result_for_renaming): New function. | |
8573 | (get_live_post_dom): New function. | |
8574 | (forward_edge_to_pdom): New function. | |
8575 | (remove_dead_stmt): Fix handling of control dependences. | |
8576 | (tree_dce_init): Init new bitmap. | |
8577 | (tree_dce_done): Free it. | |
8578 | ||
02583d3c RG |
8579 | 2009-07-02 Richard Guenther <rguenther@suse.de> |
8580 | ||
8581 | PR bootstrap/40617 | |
8582 | * tree-ssa-structalias.c (new_var_info): Initialize | |
8583 | is_restrict_var. | |
8584 | ||
3c1832c3 JH |
8585 | 2009-07-02 Jan Hubicka <jh@suse.cz> |
8586 | ||
8587 | * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is | |
8588 | local. | |
8589 | ||
92355a9c PB |
8590 | 2009-07-02 Paolo Bonzini <bonzini@gnu.org> |
8591 | ||
8592 | * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode | |
8593 | instead of recomputing it. Adjust calls. | |
8594 | (emit_store_flag): Adjust recursive calls. | |
8595 | ||
91deb937 RG |
8596 | 2009-07-02 Richard Guenther <rguenther@suse.de> |
8597 | ||
8598 | * tree-ssa-live.c (remove_unused_locals): Do not remove | |
8599 | heap variables. | |
8600 | * tree-ssa-structalias.c (handle_lhs_call): Delay setting | |
8601 | of DECL_EXTERNAL for HEAP variables. | |
8602 | (compute_points_to_sets): Set DECL_EXTERNAL for escaped | |
8603 | HEAP variables. Do not adjust RESTRICT vars. | |
8604 | (find_what_var_points_to): Nobody cares if something | |
8605 | points to READONLY. | |
8606 | ||
2011dbb0 BE |
8607 | 2009-07-02 Ben Elliston <bje@au.ibm.com> |
8608 | ||
8609 | * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move | |
8610 | pc_low and pc_high declarations to the top of the function. | |
8611 | ||
f2082f90 DD |
8612 | 2009-07-01 DJ Delorie <dj@redhat.com> |
8613 | ||
8614 | * config/mep/mep.c (mep_handle_option): Leave IVC2 control | |
8615 | registers as fixed. | |
5071eab7 | 8616 | (mep_interrupt_saved_reg): Save appropriate IVC2 control registers. |
f2082f90 DD |
8617 | * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make |
8618 | unspecified accesses to control registers. | |
8619 | * config/mep/intrinsics.md: Regenerate. | |
8620 | * config/mep/intrinsics.h: Regenerate. | |
8621 | * config/mep/mep-intrin.h: Regenerate. | |
3f36bac2 | 8622 | |
9df748c0 AG |
8623 | 2009-07-01 Anthony Green <green@moxielogic.com> |
8624 | ||
8625 | * config/moxie/moxie.c (moxie_expand_prologue): Use dec | |
8626 | instruction when possible. | |
8627 | (moxie_expand_prologue): Ditto. Also, save an instruction and | |
3f36bac2 | 8628 | some complexity by popping off of $r12 instead of $sp. |
9df748c0 AG |
8629 | * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two |
8630 | operands. | |
3f36bac2 | 8631 | |
997704f1 RH |
8632 | 2009-07-01 Richard Henderson <rth@redhat.com> |
8633 | ||
8634 | PR bootstrap/40347 | |
8635 | * function.c (reposition_prologue_and_epilogue_notes): If epilogue | |
8636 | contained no insns, reposition note before last insn. | |
8637 | ||
9f2af3ce RH |
8638 | 2009-07-01 Richard Henderson <rth@redhat.com> |
8639 | ||
8640 | PR debug/40431 | |
8641 | * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for | |
8642 | DW_CFA_def_cfa_offset and DW_CFA_def_cfa. | |
8643 | ||
d66a97e2 MM |
8644 | 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com> |
8645 | ||
8646 | PR bootstrap/40558 | |
8647 | * config/rs6000/rs6000.c (print_operand): Undo change that breaks | |
8648 | darwin9 for printing reg addresses with %y. | |
8649 | ||
479b1013 AN |
8650 | 2009-07-01 Adam Nemet <anemet@caviumnetworks.com> |
8651 | ||
8652 | * combine.c (force_to_mode): Handle TRUNCATE. Factor out | |
8653 | truncation from operands in binary operations. | |
8654 | ||
c600a155 AN |
8655 | 2009-07-01 Adam Nemet <anemet@caviumnetworks.com> |
8656 | ||
8657 | Revert: | |
8658 | 2009-01-11 Adam Nemet <anemet@caviumnetworks.com> | |
8659 | * expmed.c (store_bit_field_1): Properly truncate the paradoxical | |
8660 | subreg of op0 to the original op0. | |
8661 | ||
8662 | * expmed.c (store_bit_field_1): Use a temporary as the destination | |
8663 | instead of a paradoxical subreg when we need to truncate the result. | |
8664 | ||
a12e9a5f DD |
8665 | 2009-07-01 DJ Delorie <dj@redhat.com> |
8666 | ||
5071eab7 UB |
8667 | * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic |
8668 | names to VLIW variants. | |
a12e9a5f DD |
8669 | (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants. |
8670 | * config/mep/intrinsics.md: Regenerate. | |
8671 | * config/mep/intrinsics.h: Regenerate. | |
8672 | * config/mep/mep-intrin.h: Regenerate. | |
8673 | ||
2a5bd62a JJ |
8674 | 2009-07-01 Jakub Jelinek <jakub@redhat.com> |
8675 | ||
8676 | PR debug/40462 | |
8677 | * jump.c (returnjump_p): Revert last patch. | |
8678 | * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs. | |
8679 | ||
3232e9d8 JDA |
8680 | 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
8681 | ||
4aa7f896 JDA |
8682 | PR target/40575 |
8683 | * pa.md (casesi32p): Use jump table label to determine the offset | |
8684 | of the jump table. | |
8685 | (casesi64p): Likewise. | |
8686 | ||
5071eab7 UB |
8687 | * pa.c (forward_branch_p): Return bool type. Use instruction |
8688 | addresses when available. Assert that INSN has a jump label. | |
3232e9d8 JDA |
8689 | (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't |
8690 | have a jump label. | |
8691 | ||
14c41b9b RG |
8692 | 2009-07-01 Richard Guenther <rguenther@suse.de> |
8693 | ||
8694 | PR tree-optimization/19831 | |
8695 | * tree-ssa-dce.c (propagate_necessity): Calls to functions | |
5071eab7 | 8696 | that only act as barriers do not make any previous stores necessary. |
14c41b9b RG |
8697 | * tree-ssa-structalias.c (handle_lhs_call): Delay making |
8698 | HEAP variables global, do not add a constraint from nonlocal. | |
8699 | (find_func_aliases): Handle escapes through return statements. | |
8700 | (compute_points_to_sets): Make escaped HEAP variables global. | |
8701 | ||
1ed20a40 PB |
8702 | 2009-07-01 Paolo Bonzini <bonzini@gnu.org> |
8703 | ||
8704 | PR bootstrap/40597 | |
8705 | * expmed.c (emit_store_flag): Perform a conversion if necessary, | |
8706 | after reducing a DImode cstore to SImode. | |
8707 | ||
ce3aea35 PB |
8708 | 2009-07-01 Paolo Bonzini <bonzini@gnu.org> |
8709 | ||
8710 | * expr.c (expand_expr_real_1): Reinstate fallthrough to | |
8711 | TRUTH_ANDIF_EXPR if do_store_flag returns NULL. | |
8712 | ||
1df34d4d MR |
8713 | 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org> |
8714 | ||
8715 | * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1. | |
8716 | * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the | |
8717 | to 0. | |
8718 | * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab | |
8719 | and umod_optab if TARGET_BSD_DIVMOD. | |
8720 | * config/vax/lib1funcs.asm: New file. | |
8721 | * config/vax/t-linux: New file. | |
8722 | * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux. | |
8723 | ||
085e05ac JJ |
8724 | 2009-06-30 Jakub Jelinek <jakub@redhat.com> |
8725 | ||
5ccde5a0 JJ |
8726 | PR c++/40566 |
8727 | * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert | |
8728 | to type arguments that have void type. | |
8729 | ||
085e05ac JJ |
8730 | PR debug/40573 |
8731 | * dwarf2out.c (gen_formal_parameter_die): Call | |
8732 | equate_decl_number_to_die if node is different from origin. | |
8733 | ||
9fb374d6 AG |
8734 | 2009-06-30 Anthony Green <green@moxielogic.com> |
8735 | ||
8736 | Clean up moxie port for --enable-build-with-cxx. | |
8737 | * config/moxie/moxie.c (moxie_function_value): First two | |
8738 | parameters are const_tree, not tree. | |
8739 | * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS. | |
8740 | (REG_CLASS_NAMES): Ditto. | |
8741 | (REGNO_REG_CLASS): Ditto. | |
8742 | * config/moxie/moxie-protos.h (moxie_override_options): Declare. | |
8743 | (moxie_function_value): Fix constyness of arguments. | |
8744 | ||
f82a627c EB |
8745 | 2009-06-30 Eric Botcazou <ebotcazou@adacore.com> |
8746 | ||
8747 | * cgraphunit.c (cgraph_finalize_compilation_unit): Call | |
8748 | finalize_size_functions before further processing. | |
8749 | * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h. | |
8750 | (variable_size): Call self_referential_size on size expressions | |
8751 | that contain a PLACEHOLDER_EXPR. | |
8752 | (size_functions): New static variable. | |
8753 | (copy_self_referential_tree_r): New static function. | |
8754 | (self_referential_size): Likewise. | |
8755 | (finalize_size_functions): New global function. | |
8756 | * tree.c: Include tree-inline.h. | |
8757 | (push_without_duplicates): New static function. | |
8758 | (find_placeholder_in_expr): New global function. | |
8759 | (substitute_in_expr) <tcc_declaration>: Return the replacement object | |
8760 | on equality. | |
8761 | <tcc_expression>: Likewise. | |
8762 | <tcc_vl_exp>: If the replacement object is a constant, try to inline | |
8763 | the call in the expression. | |
8764 | * tree.h (finalize_size_functions): Declare. | |
8765 | (find_placeholder_in_expr): Likewise. | |
8766 | (FIND_PLACEHOLDER_IN_EXPR): New macro. | |
8767 | (substitute_placeholder_in_expr): Update comment. | |
8768 | * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare | |
8769 | is true. | |
8770 | (copy_tree_body_r): Likewise. | |
8771 | (copy_tree_body): New static function. | |
8772 | (maybe_inline_call_in_expr): New global function. | |
8773 | * tree-inline.h (struct copy_body_data): Add do_not_unshare field. | |
8774 | (maybe_inline_call_in_expr): Declare. | |
8775 | * Makefile.in (tree.o): Depend on TREE_INLINE_H. | |
8776 | (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and | |
8777 | GIMPLE_H. | |
8778 | ||
67635176 RG |
8779 | 2009-06-30 Richard Guenther <rguenther@suse.de> |
8780 | ||
8781 | * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always | |
8782 | continue walking. | |
8783 | (propagate_necessity): Do not mark reaching defs of stores | |
8784 | as necessary. | |
8785 | ||
2de58650 JH |
8786 | 2009-06-30 Jan Hubicka <jh@suse.cz> |
8787 | ||
8788 | * cfgloopanal.c (check_irred): Move into ... | |
8789 | (mark_irreducible_loops): ... here; return true if ireducible | |
8790 | loops was found. | |
8791 | * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h | |
8792 | (analyze_function): Try to prove loop finiteness. | |
8793 | * cfgloop.h (mark_irreducible_loops): Update prototype. | |
8794 | * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP. | |
8795 | ||
46db44cc BS |
8796 | 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net> |
8797 | ||
8798 | * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print. | |
8799 | ||
1825a1f3 IR |
8800 | 2009-06-30 Ira Rosen <irar@il.ibm.com> |
8801 | ||
8802 | PR tree-optimization/40542 | |
f100a4a8 | 8803 | * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile |
1825a1f3 IR |
8804 | types. |
8805 | ||
71d4d3eb MJ |
8806 | 2009-06-30 Martin Jambor <mjambor@suse.cz> |
8807 | ||
8808 | PR tree-optimization/40582 | |
8809 | * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather | |
8810 | than useless_type_conversion_p. | |
8811 | (generate_subtree_copies): Increment sra_stats.subtree_copies at a | |
8812 | proper place. | |
8813 | ||
f57017cd MJ |
8814 | 2009-06-30 Martin Jambor <mjambor@suse.cz> |
8815 | ||
8816 | PR middle-end/40554 | |
8817 | * tree-sra.c (sra_modify_expr): Add access->offset to start_offset. | |
8818 | ||
42bc61e0 RG |
8819 | 2009-06-30 Richard Guenther <rguenther@suse.de> |
8820 | ||
8821 | * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to | |
8822 | use ao_ref references. | |
8823 | (walk_aliased_vdefs): Likewise. | |
8824 | * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype. | |
8825 | * tree-ssa-dce.c (struct ref_data): Remove. | |
8826 | (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument. | |
8827 | (mark_aliased_reaching_defs_necessary): Adjust. | |
8828 | (mark_all_reaching_defs_necessary_1): Likewise. | |
8829 | ||
ef12ae45 PB |
8830 | 2009-06-30 Paolo Bonzini <bonzini@gnu.org> |
8831 | ||
8832 | PR boostrap/40597 | |
8833 | * expmed.c (emit_cstore): New name of emit_store_flag_1. | |
8834 | (emit_store_flag_1): Extract from emit_store_flag, adjust | |
8835 | calls to (what now is) emit_cstore. | |
8836 | (emit_store_flag): Call emit_store_flag_1 and also use it | |
8837 | for what used to be recursive calls. | |
8838 | ||
791b59e3 WG |
8839 | 2009-06-30 Wei Guozhi <carrot@google.com> |
8840 | ||
8841 | PR/40416 | |
8842 | * tree-ssa-sink.c (statement_sink_location): Stop sinking expression | |
8843 | if the target bb post dominates from bb. | |
8844 | * config/i386/i386.c (memory_address_length): Check existence of base | |
8845 | register before using it. | |
8846 | ||
7a61cf6f NC |
8847 | 2009-06-30 Nick Clifton <nickc@redhat.com> |
8848 | DJ Delorie <dj@redhat.com> | |
8849 | ||
8850 | * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if | |
8851 | __FMOVD_ENABLED__ is defined. | |
8852 | * config/sh/sh.h | |
8853 | (TARGET_FMOVD): Provide a default definition. | |
8854 | (MASK_FMOVD): Likewise. | |
8855 | (TARGET_CPU_CPP_BUILTINS): Define | |
8856 | __FMOVD_ENABLED__ if TARGET_FMOVD is true. | |
8857 | * config/sh/sh.md (movdf_i4): For alternative 0 use either one or | |
8858 | two fmov instructions depending upon whether TARGET_FMOVD is | |
8859 | enabled. | |
8860 | (split for DF load from memory into register): Also handle | |
8861 | MEMs which consist of REG+DISP addressing. | |
8862 | (split for DF store from register to memory): Likewise. | |
8863 | * config/sh/sh.opt (mfmovd): Remove this switch. | |
8864 | * doc/invoke.texi (-mfmovd): Remove documentation of this switch. | |
8865 | * config/sh/sh.c (sh_override_options): Do not automatically | |
8866 | enable TARGET_MOVD for the SH2A when supporting doubles - leave | |
8867 | that to the -mfmovd command line switch. | |
8868 | ||
8869 | * config/sh/sh.c (broken_move): Do not restrict fldi test to only | |
8870 | the SH4 and SH4A. | |
8871 | (fldi_ok): Always allow. | |
8872 | * config/sh/sh.md (movsf_ie): Always use single fp_mode. | |
8873 | ||
5a99fe3e DD |
8874 | 2009-06-29 DJ Delorie <dj@redhat.com> |
8875 | ||
8876 | * doc/install.texi (mep-x-elf): Correct chip's full name. | |
8877 | ||
ddaa3488 L |
8878 | 2009-06-29 H.J. Lu <hongjiu.lu@intel.com> |
8879 | ||
8880 | * doc/extend.texi: Fix typo. | |
8881 | ||
bbf531f0 TT |
8882 | 2009-06-29 Tom Tromey <tromey@redhat.com> |
8883 | ||
8884 | * dwarf2.h: Remove. | |
8885 | * Makefile.in (DWARF2_H): New variable. | |
8886 | (except.o): Use it. | |
8887 | (dwarf2out.o): Likewise. | |
8888 | (dwarf2asm.o): Likewise. | |
8889 | * config/i386/t-i386: Use DWARF2_H. | |
8890 | * except.c: Include elf/dwarf2.h. | |
8891 | * unwind-dw2.c: Include elf/dwarf2.h. | |
8892 | * dwarf2out.c: Include elf/dwarf2.h. | |
8893 | (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield. | |
8894 | <dtprel>: New field. | |
8895 | (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr. | |
8896 | (size_of_loc_descr): Likewise. | |
8897 | (output_loc_operands_raw): Likewise. | |
8898 | (output_loc_operands): Handle new dtprel field. | |
8899 | (loc_checksum): Update. | |
8900 | (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field. | |
8901 | * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h. | |
8902 | * unwind-dw2-fde.c: Include elf/dwarf2.h. | |
8903 | * dwarf2asm.c: Include elf/dwarf2.h. | |
8904 | * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h. | |
8905 | * config/mmix/mmix.c: Include elf/dwarf2.h. | |
8906 | * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h. | |
8907 | * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h. | |
8908 | * config/sh/sh.c: Include elf/dwarf2.h. | |
8909 | * config/i386/i386.c: Include elf/dwarf2.h. | |
8910 | ||
e2491744 DD |
8911 | 2009-06-29 DJ Delorie <dj@redhat.com> |
8912 | ||
bae38135 DD |
8913 | * config/mep/mep.h (CPP_SPEC): Remove __cop macro. |
8914 | ||
e2491744 DD |
8915 | * doc/extend.texi: Add MeP attributes and pragmas. |
8916 | * doc/invoke.text: Add MeP Options. | |
8917 | * doc/contrib.texi: Add MeP contribution. | |
8918 | * doc/md.texi: Add MeP constraints. | |
8919 | * doc/install.texi: Add MeP target. | |
8920 | ||
b52b1749 AS |
8921 | 2009-06-30 Anatoly Sokolov <aesok@post.ru> |
8922 | ||
8923 | * target.h (struct gcc_target): Add frame_pointer_required field. | |
8924 | * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New. | |
8925 | (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED. | |
8926 | * ira.c (setup_eliminable_regset): Use frame_pointer_required target | |
8927 | hook. | |
8928 | * reload1.c (update_eliminables): (Ditto.). | |
8929 | * gcc/system.h (FRAME_POINTER_REQUIRED): Poison. | |
8930 | * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation. | |
8931 | (INITIAL_FRAME_POINTER_OFFSET): (Ditto.). | |
8932 | ||
8933 | * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8934 | ||
8935 | * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8936 | * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define. | |
8937 | (arm_frame_pointer_required): New function. | |
8938 | ||
8939 | * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8940 | * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
8941 | (avr_frame_pointer_required_p): Declare as static. | |
8942 | * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove. | |
8943 | ||
8944 | * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8945 | * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define. | |
8946 | (bfin_frame_pointer_required): Make as static, change return type | |
8947 | to bool. | |
8948 | * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove. | |
8949 | ||
8950 | * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8951 | * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
8952 | (cris_frame_pointer_required): New function. | |
f100a4a8 | 8953 | |
b52b1749 AS |
8954 | * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro. |
8955 | ||
8956 | * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8957 | * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
8958 | (fr30_frame_pointer_required): New function. | |
f100a4a8 | 8959 | |
b52b1749 AS |
8960 | * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro. |
8961 | * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define. | |
8962 | (frv_frame_pointer_required): Make as static, change return type | |
8963 | to bool. | |
8964 | * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove. | |
8965 | ||
8966 | * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8967 | * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
8968 | (ix86_frame_pointer_required): Make as static, change return type to | |
8969 | bool. | |
8970 | * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove. | |
8971 | ||
8972 | * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8973 | * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
8974 | ||
8975 | * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8976 | ||
8977 | * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro. | |
f100a4a8 | 8978 | |
b52b1749 AS |
8979 | * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro. |
8980 | ||
8981 | * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8982 | * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
8983 | (mips_frame_pointer_required): Make as static. | |
8984 | * config/mips/mips-protos.h (mips_frame_pointer_required): Remove. | |
f100a4a8 | 8985 | |
b52b1749 AS |
8986 | * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro. |
8987 | * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
8988 | (mmix_frame_pointer_required): Mew function. | |
8989 | ||
8990 | * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8991 | * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
8992 | ||
8993 | * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8994 | ||
8995 | * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro. | |
8996 | ||
8997 | * config/sh/sh.h (CAN_ELIMINATE): Remove macro. | |
8998 | ||
8999 | * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9000 | (CAN_ELIMINATE): Redefine. | |
9001 | * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro. | |
9002 | (sparc_frame_pointer_required): New function. | |
9003 | (sparc_can_eliminate): New function. | |
9004 | * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare. | |
9005 | ||
9006 | * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9007 | * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define. | |
9008 | ||
9009 | * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro. | |
9010 | * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define. | |
9011 | (xtensa_frame_pointer_required): Make as static, change return type | |
9012 | to bool. | |
9013 | * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required): | |
9014 | Remove. | |
9015 | ||
5071eab7 | 9016 | 2009-06-29 Olatunji Ruwase <tjruwase@google.com> |
78bf7bd0 OR |
9017 | |
9018 | * doc/plugins.texi: Document PLUGIN_START_UNIT. | |
9019 | * toplev.c (compile_file): Call PLUGIN_START_UNIT. | |
9020 | * gcc-plugin.h (PLUGIN_START_UNIT): Added new event. | |
9021 | * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT. | |
9022 | (register_callback): Handle PLUGIN_START_UNIT. | |
9023 | (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT. | |
9024 | ||
96da8066 EB |
9025 | 2009-06-29 Eric Botcazou <ebotcazou@adacore.com> |
9026 | ||
9027 | * tree.c (process_call_operands): Propagate TREE_READONLY from the | |
9028 | operands. | |
9029 | (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P. | |
9030 | (build3_stat): Propagate TREE_READONLY for COND_EXPR. | |
9031 | ||
356ecb15 DJ |
9032 | 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com> |
9033 | ||
9034 | * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register | |
9035 | move cost. | |
9036 | ||
897eef7b UB |
9037 | 2009-06-29 Uros Bizjak <ubizjak@gmail.com> |
9038 | ||
9039 | * doc/extend.texi (Additional Floating Types): __float128 is also | |
9040 | supported on i386 targets. | |
9041 | ||
74d27244 RG |
9042 | 2009-06-29 Richard Guenther <rguenther@suse.de> |
9043 | ||
9044 | PR middle-end/14187 | |
9045 | * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict | |
9046 | flag. | |
9047 | (pt_solutions_same_restrict_base): Declare. | |
9048 | * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var | |
9049 | flag. | |
9050 | (new_var_info): Initialize is_global_var properly for SSA_NAMEs. | |
9051 | (make_constraint_from, make_copy_constraint): Move earlier. | |
9052 | (make_constraint_from_heapvar): New function. | |
9053 | (make_constraint_from_restrict): Likewise. | |
9054 | (handle_lhs_call): Use it. | |
9055 | (find_func_aliases): Use it to track conversions to restrict | |
9056 | qualified pointers. | |
9057 | (struct fieldoff): Add only_restrict_pointers flag. | |
9058 | (push_fields_onto_fieldstack): Initialize it. | |
9059 | (create_variable_info_for): Track global restrict qualified pointers. | |
9060 | (intra_create_variable_infos): Use make_constraint_from_heapvar. | |
9061 | Track restrict qualified pointer arguments. | |
9062 | (set_uids_in_ptset): Use varinfo is_global_var flag. | |
9063 | (find_what_var_points_to): Set the vars_contains_restrict flag. | |
9064 | Always create the points-to solution for sets including restrict tags. | |
9065 | (pt_solutions_same_restrict_base): New function. | |
9066 | * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict | |
9067 | qualified pointers use pt_solutions_same_restrict_base as | |
9068 | additional source for disambiguation. | |
9069 | ||
5b21f0f3 RG |
9070 | 2009-06-29 Richard Guenther <rguenther@suse.de> |
9071 | ||
9072 | PR middle-end/38212 | |
9073 | * alias.c (find_base_decl): Remove. | |
9074 | (get_deref_alias_set_1): Remove restrict handling. | |
9075 | * c-common.c (c_apply_type_quals_to_decl): Do not set | |
9076 | DECL_POINTER_ALIAS_SET. | |
9077 | * gimplify.c (find_single_pointer_decl_1): Remove. | |
9078 | (find_single_pointer_decl): Likewise. | |
9079 | (internal_get_tmp_var): Remove restrict handling. | |
9080 | (gimple_regimplify_operands): Likewise. | |
9081 | * omp-low.c (expand_omp_atomic_pipeline): Do not set | |
9082 | DECL_POINTER_ALIAS_SET. Use ref-all pointers. | |
9083 | * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET. | |
9084 | * tree.c (restrict_base_for_decl): Remove. | |
9085 | (init_ttree): Do not allocate it. | |
9086 | (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set | |
9087 | LABEL_DECL_UID for label decls. | |
9088 | (copy_node_stat): Do not copy restrict information. | |
9089 | (decl_restrict_base_lookup): Remove. | |
9090 | (decl_restrict_base_insert): Likewise. | |
9091 | (print_restrict_base_statistics): Likewise. | |
9092 | (dump_tree_statistics): Do not call print_restrict_base_statistics. | |
9093 | * tree.h (DECL_POINTER_ALIAS_SET): Remove. | |
9094 | (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise. | |
9095 | (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid. | |
9096 | (LABEL_DECL_UID): Adjust. | |
9097 | (DECL_BASED_ON_RESTRICT_P): Remove. | |
9098 | (DECL_GET_RESTRICT_BASE): Likewise. | |
9099 | (SET_DECL_RESTRICT_BASE): Likewise. | |
9100 | (struct tree_decl_with_vis): Remove based_on_restrict_p flag. | |
9101 | ||
9102 | * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers | |
9103 | instead of DECL_POINTER_ALIAS_SET. | |
9104 | * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise. | |
9105 | * config/s390/s390.c (s390_gimplify_va_arg): Likewise. | |
9106 | * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise. | |
9107 | ||
09a782eb RG |
9108 | 2009-06-29 Richard Guenther <rguenther@suse.de> |
9109 | ||
9110 | PR tree-optimization/40579 | |
9111 | * tree-vrp.c (vrp_evaluate_conditional): Bail out early if | |
9112 | the IL to simplify has constants that overflowed. | |
9113 | ||
1e9ae5ab UB |
9114 | 2009-06-28 Uros Bizjak <ubizjak@gmail.com> |
9115 | ||
9116 | PR tree-optimization/40550 | |
9117 | * tree-vect-generic.c (expand_vector_operations_1): Compute in | |
9118 | vector_compute_type only when the size of vector_compute_type is | |
9119 | less than the size of type. | |
9120 | ||
c703e618 EB |
9121 | 2009-06-28 Eric Botcazou <ebotcazou@adacore.com> |
9122 | ||
9123 | * fold-const.c (contains_label_1): Fix comments. | |
9124 | (contains_label_p): Do not walk trees multiple time. | |
9125 | ||
0948ccb2 PB |
9126 | 2009-06-28 Paolo Bonzini <bonzini@gnu.org> |
9127 | ||
897eef7b UB |
9128 | * config/i386/i386.h (enum ix86_fpcmp_strategy): New. |
9129 | * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4, | |
9130 | cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to | |
9131 | ix86_fp_comparison_operator. | |
9132 | (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed, | |
9133 | *fp_jcc_2_sse, *fp_jcc_2_387): Delete | |
9134 | (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387, | |
9135 | *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to | |
9136 | !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call | |
9137 | to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator. | |
9138 | (related splits): Change predicate to ix86_fp_comparison_operator. | |
9139 | * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator | |
9140 | instead of ix86_fp_comparison_codes. | |
9141 | (ix86_trivial_fp_comparison_operator, | |
9142 | ix86_fp_comparison_operator): New. | |
9143 | * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New. | |
9144 | (ix86_expand_compare): Eliminate last two parameters. | |
9145 | (ix86_fp_jump_nontrivial_p): Kill. | |
9146 | * config/i386/i386.c (put_condition_code): Eliminate call to | |
9147 | ix86_fp_comparison_codes and subsequent assertion. | |
9148 | (ix86_fp_comparison_codes): Eliminate. | |
9149 | (ix86_fp_swap_condition): New. | |
9150 | (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost, | |
9151 | ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate | |
9152 | into ix86_fp_comparison_cost and ix86_fp_comparison_strategy. | |
9153 | (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy | |
9154 | and ix86_fp_swap_condition. | |
9155 | (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump. | |
9156 | Use ix86_fp_comparison_strategy. | |
9157 | (ix86_expand_compare): Likewise. Eliminate last two arguments. | |
9158 | (ix86_fp_jump_nontrivial_p): Eliminate. | |
9159 | (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust | |
9160 | call to ix86_expand_compare. | |
9161 | (ix86_split_fp_branch, ix86_expand_setcc, | |
9162 | ix86_expand_carry_flag_compare, ix86_expand_int_movcc, | |
9163 | ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump. | |
0948ccb2 | 9164 | |
accbd151 PB |
9165 | 2009-06-28 Paolo Bonzini <bonzini@gnu.org> |
9166 | ||
897eef7b UB |
9167 | * config/arm/arm.c (arm_final_prescan_ins): Eliminate code |
9168 | related to jump_clobbers. | |
9169 | * config/arm/arm.md (conds): Remove jump_clob case. | |
9170 | (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two | |
9171 | splits): Change comparison_operator to arm_comparison_operator. | |
9172 | (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed): | |
9173 | Eliminate. | |
accbd151 | 9174 | |
45475a3f PB |
9175 | 2009-06-28 Paolo Bonzini <bonzini@gnu.org> |
9176 | ||
897eef7b UB |
9177 | * dojump.c (do_compare_rtx_and_jump): Try swapping the |
9178 | condition for floating point modes. | |
9179 | * expmed.c (emit_store_flag_1): Move here a bigger part | |
9180 | of emit_store_flag. | |
9181 | (emit_store_flag): Try swapping the condition for floating point | |
9182 | modes. | |
9183 | * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better. | |
45475a3f | 9184 | |
495499da PB |
9185 | 2009-06-28 Paolo Bonzini <bonzini@gnu.org> |
9186 | ||
897eef7b UB |
9187 | * expr.c (expand_expr_real_1): Just use do_store_flag. |
9188 | (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use | |
9189 | emit_store_flag_force. | |
9190 | * expmed.c (emit_store_flag_force): Copy here trick | |
9191 | previously in expand_expr_real_1. Try reversing the comparison. | |
9192 | (emit_store_flag_1): Work if target is NULL. | |
9193 | (emit_store_flag): Work if target is NULL, using the result mode | |
9194 | from the comparison. Use split_comparison, restructure final part | |
9195 | to simplify conditionals. | |
495499da | 9196 | |
337e5d98 PB |
9197 | 2009-06-28 Paolo Bonzini <bonzini@gnu.org> |
9198 | ||
897eef7b UB |
9199 | * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump. |
9200 | * dojump.c (do_jump): Change handling of floating-point | |
9201 | ops to use just do_compare_and_jump. | |
9202 | (split_comparison): New. | |
9203 | (do_compare_rtx_and_jump): Add here logic coming previously | |
9204 | in do_jump, using split_comparison. | |
337e5d98 | 9205 | |
2ca57608 L |
9206 | 2009-06-27 H.J. Lu <hongjiu.lu@intel.com> |
9207 | ||
9208 | PR target/40489 | |
9209 | * config/ia64/ia64.c (ia64_reorg): Check NULL insn. | |
9210 | ||
8122ccf1 PB |
9211 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> |
9212 | ||
9213 | * tree-ssa-alias.c: Fix unintentional commit. | |
9214 | ||
b9cafe60 PB |
9215 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> |
9216 | ||
9217 | * passes.c (execute_one_pass): Fix unintentional commit. | |
9218 | ||
4c78c26b PB |
9219 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> |
9220 | ||
2ca57608 L |
9221 | * df-problems.c (df_set_seen, df_unset_seen): Delete. |
9222 | (df_rd_local_compute, df_md_local_compute): Inline them. | |
4c78c26b | 9223 | |
2ca57608 L |
9224 | (df_md_scratch): New. |
9225 | (df_md_alloc, df_md_free): Allocate/free it. | |
9226 | (df_md_local_compute): Only include live registers in init. | |
9227 | (df_md_transfer_function): Prune the in-set computed by | |
9228 | the confluence function, and the gen-set too. | |
4c78c26b PB |
9229 | |
9230 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> | |
c6741572 PB |
9231 | |
9232 | PR rtl-optimization/26854 | |
2ca57608 L |
9233 | * timevar.def: Remove TV_DF_RU, add TV_DF_MD. |
9234 | * df-problems.c (df_rd_add_problem): Fix comment. | |
9235 | (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc, | |
9236 | df_md_simulate_artificial_defs_at_top, | |
9237 | df_md_simulate_one_insn, df_md_bb_local_compute_process_def, | |
9238 | df_md_bb_local_compute, df_md_local_compute, df_md_reset, | |
9239 | df_md_transfer_function, df_md_init, df_md_confluence_0, | |
9240 | df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump, | |
9241 | problem_MD, df_md_add_problem): New. | |
9242 | * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md, | |
9243 | df_md_get_bb_info): New. | |
1e9ae5ab | 9244 | (DF_LAST_PROBLEM_PLUS1): Adjust. |
2ca57608 L |
9245 | |
9246 | * Makefile.in (fwprop.o): Include domwalk.h. | |
9247 | * fwprop.c: Include domwalk.h. | |
9248 | (reg_defs, reg_defs_stack): New. | |
9249 | (bitmap_only_bit_between): Remove. | |
9250 | (process_defs): New. | |
9251 | (process_uses): Use reg_defs and local_md instead of | |
9252 | bitmap_only_bit_between and local_rd. | |
9253 | (single_def_use_enter_block): New, from build_single_def_use_links. | |
9254 | (single_def_use_leave_block): New. | |
9255 | (build_single_def_use_links): Remove code moved to | |
9256 | single_def_use_enter_block, invoke domwalk. | |
9257 | (use_killed_between): Adjust comment. | |
c6741572 | 9258 | |
7ff23740 PB |
9259 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> |
9260 | ||
9261 | * bitmap.h (bitmap_ior_and_into): New. | |
9262 | * bitmap.c (bitmap_ior_and_into): New. | |
9263 | ||
ccf5c864 PB |
9264 | 2009-06-27 Paolo Bonzini <bonzini@gnu.org> |
9265 | ||
2ca57608 L |
9266 | * domwalk.h (struct dom_walk_data): Remove all callbacks except |
9267 | before_dom_children_before_stmts and after_dom_children_after_stmts. | |
f100a4a8 | 9268 | Rename the two remaining callbacks to just before_dom_children and |
2ca57608 L |
9269 | after_dom_children. Remove other GIMPLE statement walking bits. |
9270 | * domwalk.c (walk_dominator_tree): Remove now unsupported features. | |
9271 | * graphite.c: Do not include domwalk.h. | |
9272 | * tree-into-ssa.c (interesting_blocks): New global. | |
9273 | (struct mark_def_sites_global_data): Remove it and names_to_rename. | |
9274 | (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments, | |
9275 | rewrite_update_stmt, rewrite_update_phi_arguments): Simplify | |
9276 | now that they're not domwalk callbacks. | |
9277 | (rewrite_initialize_block): Rename to... | |
9278 | (rewrite_enter_block): ... this, place after called functions. Test | |
9279 | interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments. | |
9280 | (rewrite_finalize_block): Rename to... | |
9281 | (rewrite_leave_block): ... this, place after called functions. | |
9282 | (rewrite_update_init_block): Rename to... | |
9283 | (rewrite_update_enter_block): ... this, place after called functions. | |
f100a4a8 | 9284 | Test interesting_blocks, call rewrite_update_stmt and |
2ca57608 L |
9285 | rewrite_update_phi_arguments. |
9286 | (rewrite_update_fini_block): Rename to... | |
9287 | (rewrite_leave_block): ... this, place after called functions. | |
9288 | (rewrite_blocks): Remove last argument, simplify initialization of | |
9289 | walk_data. | |
9290 | (mark_def_sites_initialize_block): Rename to... | |
9291 | (mark_def_sites_block): ... this, call mark_def_sites. | |
9292 | (mark_def_sites_blocks): Remove argument, simplify initialization of | |
9293 | walk_data. | |
9294 | (rewrite_into_ssa): Adjust for interesting_blocks_being a global. | |
9295 | (update_ssa): Likewise. | |
9296 | * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk | |
9297 | callback. | |
9298 | (tree_ssa_dominator_optimize): Simplify initialization of walk_data. | |
9299 | (dom_opt_initialize_block): Rename to... | |
9300 | (dom_opt_enter_block): ... this, place after called functions. Walk | |
9301 | statements here, inline propagate_to_outgoing_edges. | |
9302 | (dom_opt_finalize_block): Rename to... | |
9303 | (dom_opt_leave_block): ... this, place after called functions. | |
9304 | * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a | |
9305 | domwalk callback. | |
9306 | (dse_enter_block, dse_record_phi): New. | |
9307 | (dse_record_phis): Delete. | |
9308 | (dse_finalize_block): Rename to... | |
9309 | (dse_leave_block): ... this. | |
9310 | (tree_ssa_dse): Simplify initialization of walk_data. | |
9311 | * tree-ssa-loop-im.c (determine_invariantness, move_computations): | |
9312 | Adjust initialization of walk_data. | |
9313 | * tree-ssa-loop-unswitch.c: Do not include domwalk.h. | |
9314 | * tree-ssa-loop-phiopt.c (get_non_trapping): | |
9315 | Adjust initialization of walk_data. | |
9316 | * tree-ssa-loop-threadedge.c: Do not include domwalk.h. | |
9317 | * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that | |
9318 | it's not a domwalk callback. | |
9319 | (uncprop_initialize_block): Rename to... | |
9320 | (dse_enter_block): ... this, call uncprop_into_successor_phis. | |
9321 | (dse_finalize_block): Rename to... | |
9322 | (dse_leave_block): ... this. | |
9323 | (tree_ssa_uncprop): Simplify initialization of walk_data. | |
9324 | * Makefile.in: Adjust dependencies. | |
ccf5c864 | 9325 | |
75d28030 RE |
9326 | 2009-06-27 Richard Earnshaw <rearnsha@arm.com> |
9327 | ||
9328 | * arm.md (casesi): Fix test for Thumb1. | |
9329 | (thumb1_casesi_internal_pic): Likewise. | |
9330 | (thumb1_casesi_dispatch): Likewise. | |
9331 | ||
9833720d DG |
9332 | 2009-06-26 Daniel Gutson <dgutson@codesourcery.com> |
9333 | ||
9334 | * config/arm/arm-cores.def: Added core cortex-m0. | |
9335 | * config/arm/arm-tune.md: Regenerated. | |
9336 | * doc/invoke.texi: Added entry for cpu ARM Cortex-M0. | |
9337 | ||
bb7681bf DD |
9338 | 2009-06-26 DJ Delorie <dj@redhat.com> |
9339 | ||
9340 | * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything. | |
9341 | ||
9342 | * config/mep/mep.c (mep_bundle_insns): Account for the fact that | |
9343 | the scheduler doesn't tag jump insns. | |
9344 | ||
a35120a3 L |
9345 | 2009-06-26 H.J. Lu <hongjiu.lu@intel.com> |
9346 | ||
9347 | * c-decl.c (merge_decls): Re-indent. | |
9348 | ||
4b6e55df JJ |
9349 | 2009-06-26 Janis Johnson <janis187@us.ibm.com> |
9350 | ||
9351 | PR c/39902 | |
9352 | * tree.c (real_zerop, real_onep, real_twop, real_minus_onep): | |
9353 | Special-case decimal float constants. | |
9354 | ||
27dbd3ac RH |
9355 | 2009-06-26 Richard Henderson <rth@redhat.com> |
9356 | ||
9357 | * function.h (struct function): Add cannot_be_copied_reason, | |
9358 | and cannot_be_copied_set. | |
9359 | * tree-inline.c (has_label_address_in_static_1): Rename from | |
9360 | inline_forbidden_p_2; don't set inline_forbidden_reason here. | |
9361 | (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise | |
9362 | don't set inline_forbidden_reason. | |
9363 | (copy_forbidden): New function, split out of inline_forbidden_p. | |
9364 | (inline_forbidden_p_stmt): Don't check for nonlocal labels here. | |
9365 | (inline_forbidden_p): Use copy_forbidden. | |
9366 | (tree_versionable_function_p): Likewise. | |
9367 | (inlinable_function_p): Merge into tree_inlinable_function_p. | |
9368 | (tree_function_versioning): Remap cfun->nonlocal_goto_save_area. | |
9369 | * ipa-cp.c (ipcp_versionable_function_p): New function. | |
9370 | (ipcp_cloning_candidate_p): Use it. | |
9371 | (ipcp_node_modifiable_p): Likewise. | |
9372 | ||
efb303b1 OR |
9373 | 2009-06-26 Olatunji Ruwase <tjruwase@google.com> |
9374 | ||
9375 | * builtins.c (expand_builtin_alloca): Handle builtin alloca | |
9376 | that is marked not to be inlined. Remove flag_mudflap use. | |
9377 | * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements. | |
9378 | (mf_xform_statements): Mark builtin alloca calls as un-inlineable. | |
9379 | ||
947e21c1 SE |
9380 | 2009-06-26 Steve Ellcey <sje@cup.hp.com> |
9381 | ||
9382 | PR bootstrap/40338 | |
9383 | * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed. | |
9384 | * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto. | |
9385 | ||
bae4cf87 KT |
9386 | 2009-06-26 Kai Tietz <kai.tietz@onevision.com> |
9387 | ||
9388 | * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none | |
9389 | shared libgcc. | |
9390 | (__mingwthr_remove_key_dtor): Likewise. | |
9391 | ||
46aaa417 RG |
9392 | 2009-06-26 Richard Guenther <rguenther@suse.de> |
9393 | ||
1e9ae5ab | 9394 | * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling. |
46aaa417 | 9395 | |
b3c54c8f SB |
9396 | 2009-06-26 Steven Bosscher <steven@gcc.gnu.org> |
9397 | ||
9398 | PR middle-end/40525 | |
9399 | * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails, | |
9400 | try the non-cond_exec path also. | |
9401 | ||
f5e66865 JDA |
9402 | 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
9403 | ||
9404 | PR target/40468 | |
9405 | * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions. | |
9406 | (output_cbranch): Use new functions. | |
9407 | (output_lbranch, output_bb, output_bvb, output_dbra, output_movb): | |
9408 | Likewise. | |
9409 | ||
8beb65e3 MM |
9410 | 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com> |
9411 | Pat Haugen <pthaugen@us.ibm.com> | |
9412 | Revital Eres <ERES@il.ibm.com> | |
9413 | ||
d66a97e2 MM |
9414 | * config/rs6000/rs6000.c (print_operand): Correct lossage message |
9415 | for %c error. Add %x support to print VSX registers as a unified | |
9416 | register set, instead of separate float and altivec registers. | |
9417 | Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for | |
9418 | %y case, and add support for VSX pre-modify addresses. | |
9419 | (output_toc): Add assert for CONST containing an integer constant | |
9420 | in the PLUS case. | |
9421 | (rs6000_adjust_cost): Add POWER7 support. | |
9422 | (insn_must_be_first_in_group): Ditto. | |
9423 | (insn_must_be_last_in_group): Ditto. | |
9424 | (rs6000_emit_popcount): Ditto. | |
9425 | (rs6000_vector_mode_supported_p): Ditto. | |
9426 | ||
8beb65e3 MM |
9427 | * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class): |
9428 | Change some of the functions called by macros to being called | |
9429 | through a pointer, so debug functions can be inserted if | |
f100a4a8 | 9430 | -mdebug=addr or -mdebug=cost. |
8beb65e3 MM |
9431 | (rs6000_preferred_reload_class_ptr): Ditto. |
9432 | (rs6000_secondary_reload_class_ptr): Ditto. | |
9433 | (rs6000_secondary_memory_needed_ptr): Ditto. | |
9434 | (rs6000_cannot_change_mode_class_ptr): Ditto. | |
9435 | (rs6000_secondary_reload_inner): Ditto. | |
9436 | (rs6000_legitimize_reload_address): Ditto. | |
9437 | (rs6000_legitimize_reload_address_ptr): Ditto. | |
9438 | (rs6000_mode_dependent_address): Ditto. | |
9439 | (rs6000_mode_dependent_address_ptr): Ditto. | |
9440 | ||
9441 | * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New | |
9442 | function to return true if the mode allows reg + integer | |
9443 | addresses. | |
9444 | (virtual_stack_registers_memory_p): New function to return true if | |
9445 | the address refers to a virtual stack register. | |
9446 | (rs6000_legitimate_offset_address_p): Move code to say whether a | |
9447 | mode supports reg+int addressing to reg_offset_addressing_ok_p and | |
9448 | call it. | |
9449 | (rs6000_legitimate_address_p): Add checks for modes that only can | |
9450 | do reg+reg addressing. Start adding VSX support. | |
9451 | (rs6000_legitimize_reload_address): Ditto. | |
9452 | (rs6000_legitimize_address): Ditto. | |
9453 | (rs6000_debug_legitimate_address_p): New debug functions for | |
9454 | -mdebug=addr and -mdebug=cost. | |
9455 | (rs6000_debug_rtx_costs): Ditto. | |
9456 | (rs6000_debug_address_costs): Ditto. | |
9457 | (rs6000_debug_adjust_cost): Ditto. | |
9458 | (rs6000_debug_legitimize_address): Ditto. | |
9459 | (rs6000_legitimize_reload_address_ptr): Point to call normal | |
9460 | function or debug function. Make functions called via pointer | |
9461 | static. | |
9462 | (rs6000_mode_dependent_address_ptr): Ditto. | |
9463 | (rs6000_secondary_reload_class_ptr): Ditto. | |
9464 | (rs6000_hard_regno_mode_ok): Add preliminary VSX support. | |
9465 | (rs6000_emit_move): Add -mdebug=addr support. Change an abort | |
9466 | into a friendlier error. | |
9467 | (rs6000_init_builtins): Add initial VSX support. | |
9468 | (rs6000_adjust_cost): Fix some spacing issues. | |
9469 | ||
9470 | * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS. | |
9471 | (REG_CLASS_NAMES): Ditto. | |
9472 | (REG_CLASS_CONTENTS): Ditto. | |
9473 | (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a | |
9474 | pointer, to add -mdebug=addr support. | |
9475 | (CANNOT_CHANGE_MODE_CLASS): Ditto. | |
9476 | (SECONDARY_RELOAD_CLASS): Call through a pointer to add | |
9477 | -mdebug=addr support. | |
9478 | (LEGITIMIZE_RELOAD_ADDRESS): Ditto. | |
9479 | (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto. | |
9480 | (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI. | |
9481 | ||
9482 | * config/rs6000/rs6000.md (bswaphi*): Add support for swapping | |
9483 | 16-bit values. | |
9484 | (bswapsi*): Set attribute types for load/store. Add combiner | |
9485 | patterns to eliminate zero extend on 64-bit. | |
9486 | (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and | |
9487 | stdbrx if the hardware supports those instructions. | |
9488 | ||
96be7a11 ILT |
9489 | 2009-06-25 Ian Lance Taylor <iant@google.com> |
9490 | ||
9491 | * doc/invoke.texi (Option Summary): Mention -static-libstdc++. | |
9492 | (Link Options): Document -static-libstdc++. | |
9493 | ||
777a3a6a AP |
9494 | 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com> |
9495 | ||
9496 | PR target/38731 | |
9497 | * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use | |
9498 | DATA_ALIGNMENT instead. | |
9499 | ||
1cb367ae RG |
9500 | 2009-06-25 Richard Guenther <rguenther@suse.de> |
9501 | ||
9502 | * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate | |
9503 | indirect references against the callused/escaped solutions. | |
9504 | (call_may_clobber_ref_p_1): Likewise. | |
9505 | ||
fac52fdd MJ |
9506 | 2009-06-25 Martin Jambor <mjambor@suse.cz> |
9507 | ||
9508 | PR tree-optimization/40493 | |
9509 | * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers. | |
9510 | (enum unscalarized_data_handling): New type. | |
9511 | (handle_unscalarized_data_in_subtree): Return what has been done. | |
9512 | (load_assign_lhs_subreplacements): Handle left flushes differently. | |
9513 | (sra_modify_assign): Use unscalarized_data_handling, simplified | |
9514 | condition determining whether to remove the statement. | |
9515 | ||
3cb71167 | 9516 | 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net> |
c8aca64f EB |
9517 | |
9518 | * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile | |
9519 | excerpt - @ should be doubled for texinfo. | |
3cb71167 | 9520 | |
5a82ecd9 ILT |
9521 | 2009-06-24 Ian Lance Taylor <iant@google.com> |
9522 | ||
9523 | * config/arc/arc.c: Include "df.h". | |
9524 | (arc_attribute_table): Make static. Move higher in file. | |
9525 | (arc_address_cost): Call SMALL_INT on INTVAL, not rtx. | |
9526 | (output_shift): Initialize n later to avoid warning. | |
9527 | * config/arm/arm.c (arm_attribute_table): Make static. Move | |
9528 | higher in file. | |
9529 | * config/avr/avr.c (avr_attribute_table): Make static. Move | |
9530 | higher in file. | |
9531 | (reg_class_tab): Change array type from int to enum reg_class. | |
9532 | (avr_jump_mode): Change GET_MODE to GET_CODE when checking for | |
9533 | LABEL_REF. | |
9534 | (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and". | |
9535 | (lshrhi3_out): Likewise. | |
9536 | (class_likely_spilled_p): Change return type to bool. | |
9537 | (avr_rtx_costs): Use local code variable with enum type. | |
9538 | * config/avr/avr.md (movmemhi): Use add_reg_note. | |
9539 | (andhi3, andsi3): Don't use AS2 with "and". | |
9540 | (iorhi3, iorsi3): Don't use AS2 with "or". | |
1e9ae5ab | 9541 | * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration. |
5a82ecd9 ILT |
9542 | * config/crx/crx.c: Include "df.h". |
9543 | (crx_attribute_table): Make static. | |
9544 | * config/m32r/m32r.c: Include "df.h". | |
9545 | (m32r_attribute_table): Make static. Move higher in file. | |
9546 | (pop): Use add_reg_note. | |
9547 | (block_move_call): Change 0 to LCT_NORMAL in function call. | |
9548 | * config/m32r/m32r.md (movsi_insn): Remove unused local value. | |
9549 | * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise. | |
9550 | * config/m32r/m32r-protos.h (m32r_compute_function_type): Always | |
9551 | declare, not just when TREE_CODE is defined. | |
9552 | * config/m68hc11/m68hc11.c: Include "expr.h". | |
9553 | (m68hc11_attribute_table): Make static. Move higher in file. | |
9554 | (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in | |
9555 | function call. | |
9556 | (m68hc11_register_indirect_p): Likewise. | |
9557 | (m68hc11_function_arg_padding): Change return type to enum | |
9558 | direction. | |
9559 | (emit_move_after_reload): Use add_reg_note. | |
9560 | (m68hc11_emit_logical): Change code parameter to enum rtx_code. | |
9561 | (m68hc11_split_logical): Likewise. | |
9562 | (m68hc11_rtx_costs): Add local code_and outer_code variables with | |
9563 | enum type. | |
9564 | * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0 | |
9565 | to VOIDmode in function call. | |
9566 | * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if | |
9567 | tree is defined. | |
9568 | (m68hc11_split_logical): Update declaration. | |
9569 | (m68hc11_function_arg_padding): Update declaration. | |
9570 | * config/mcore/mcore.c (regno_reg_class): Change form array of int | |
9571 | to array of enum reg_class. | |
9572 | (mcore_attribute_table): Make static. Move higher in file. | |
9573 | (mcore_rtx_costs): Add cast to enum type. | |
9574 | * config/mcore/mcore.h (regno_reg_class): Update declaration. | |
9575 | (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning. | |
9576 | * config/sh/sh.c (sh_attribute_table): Make static. Move higher | |
9577 | in file. | |
9578 | * config/sh/predicates.md (trapping_target_operand): Rename and to | |
9579 | and_expr. | |
9580 | * config/sparc/sparc.c (sparc_attribute_table): Make static. Move | |
9581 | higher in file. | |
9582 | * config/spu/spu.c (spu_attribute_table): Make static. Move | |
9583 | higher in file. | |
9584 | * config/v850/v850.c (v850_attribute_table): Make static. Move | |
9585 | higher in file. | |
9586 | (v850_rtx_costs): Use local code with enum type. | |
9587 | (expand_epilogue): Add cast. | |
9588 | * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat. | |
9589 | ||
b4589acc TY |
9590 | 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com> |
9591 | ||
9592 | PR target/40515 | |
9593 | * doc/invoke.texi (SH Options): Document -m2a, -m2a-single, | |
9594 | -m2a-single-only and -m2a-nofpu. | |
f100a4a8 | 9595 | * config/sh/sh.opt: Document m2a generates FPU code. |
b4589acc | 9596 | |
3be639f7 AS |
9597 | 2009-06-24 Anatoly Sokolov <aesok@post.ru> |
9598 | ||
9599 | * defaults.h (CAN_ELIMINATE): Provide default. | |
9600 | * doc/tm.texi (CAN_ELIMINATE): Revise documentation. | |
9601 | * config/alpha/alpha.h (CAN_ELIMINATE): Delete. | |
9602 | * config/m32c/m32c.h (CAN_ELIMINATE): Delete. | |
9603 | * config/spu/spu.h (CAN_ELIMINATE): Delete. | |
9604 | * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete. | |
9605 | * config/moxie/moxie.h (CAN_ELIMINATE): Delete. | |
9606 | * config/cris/cris.h (CAN_ELIMINATE): Delete. | |
9607 | * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete. | |
9608 | * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete. | |
9609 | * config/mmix/mmix.h (CAN_ELIMINATE): Delete. | |
9610 | ||
b6402fc3 DD |
9611 | 2009-06-24 DJ Delorie <dj@redhat.com> |
9612 | ||
9613 | * mep-ext-cop.cpu: Fix copyright notice. | |
9614 | * mep-default: Fix copyright notice. | |
9615 | * mep-core: Fix copyright notice. | |
9616 | * mep: Fix copyright notice. | |
9617 | * mep-ivc2: Fix copyright notice. | |
9618 | * mep-c5: Fix copyright notice. | |
9619 | ||
ead1eb1d DC |
9620 | 2009-06-24 Denis Chertykov <chertykov@gmail.com> |
9621 | ||
f100a4a8 | 9622 | * doc/contrib.texi (Contributors): |
ead1eb1d | 9623 | |
fb6234e0 | 9624 | 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com> |
f100a4a8 | 9625 | |
fb6234e0 AK |
9626 | PR middle-end/40501 |
9627 | * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap | |
9628 | src and dst operands if necessary. | |
9629 | ||
7acf4da6 DD |
9630 | 2009-06-23 DJ Delorie <dj@redhat.com> |
9631 | ||
9632 | Add MeP port. | |
9633 | * config.gcc: Add mep support. | |
9634 | * recog.c: Resurrect validate_replace_rtx_subexp(). | |
9635 | * recog.h: Likewise. | |
9636 | * config/mep/: Add new port: | |
9637 | * config/mep/constraints.md: New file. | |
9638 | * config/mep/default.h: New file. | |
9639 | * config/mep/intrinsics.h: New file. | |
9640 | * config/mep/intrinsics.md: New file. | |
9641 | * config/mep/ivc2-template.h: New file. | |
9642 | * config/mep/mep-c5.cpu: New file. | |
9643 | * config/mep/mep-core.cpu: New file. | |
9644 | * config/mep/mep-default.cpu: New file. | |
9645 | * config/mep/mep-ext-cop.cpu: New file. | |
9646 | * config/mep/mep-intrin.h: New file. | |
9647 | * config/mep/mep-ivc2.cpu: New file. | |
9648 | * config/mep/mep-lib1.asm: New file. | |
9649 | * config/mep/mep-lib2.c: New file. | |
9650 | * config/mep/mep-pragma.c: New file. | |
9651 | * config/mep/mep-protos.h: New file. | |
9652 | * config/mep/mep-tramp.c: New file. | |
9653 | * config/mep/mep.c: New file. | |
9654 | * config/mep/mep.cpu: New file. | |
9655 | * config/mep/mep.h: New file. | |
9656 | * config/mep/mep.md: New file. | |
9657 | * config/mep/mep.opt: New file. | |
9658 | * config/mep/predicates.md: New file. | |
9659 | * config/mep/t-mep: New file. | |
9660 | ||
00020c16 ILT |
9661 | 2009-06-23 Ian Lance Taylor <iant@google.com> |
9662 | ||
9663 | * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings | |
9664 | from loose_warn into c_loose_warn and from strict_warn into | |
9665 | c_strict_warn. Set and substitute warn_cxxflags. Check for | |
9666 | --enable-build-with-cxx. Set and substitute | |
9667 | ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS. | |
9668 | * Makefile.in (CXXFLAGS): New variable. | |
9669 | (C_LOOSE_WARN, C_STRICT_WARN): New variables. | |
9670 | (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if | |
9671 | the default is the same as $(STRICT_WARN). | |
9672 | (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables. | |
9673 | (CXX): New variable. | |
9674 | (COMPILER): New value if ENABLE_BUILD_WITH_CXX. | |
9675 | (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise. | |
9676 | (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise. | |
9677 | (HOST_LIBS): New variable. | |
9678 | (GCC_CFLAGS): Add $(C_LOOSE_WARN). | |
9679 | (ALL_CXXFLAGS): New variable. | |
9680 | (LIBS, BACKENDLIBS): Add $(HOST_LIBS). | |
9681 | * doc/install.texi (Configuration): Document | |
9682 | --enable-build-with-cxx, --with-stage1-ldflags, | |
9683 | --with-stage1-libs, --with-boot-ldflags, --with-boot-libs. | |
9684 | * configure: Rebuild. | |
9685 | ||
2d8b752f | 9686 | 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
9df5bfe4 | 9687 | |
2d8b752f EB |
9688 | * config/arm/arm.c (arm_override_options): Fix braces and formatting |
9689 | from previous commit. | |
9df5bfe4 | 9690 | |
73267076 ILT |
9691 | 2009-06-23 Ian Lance Taylor <iant@google.com> |
9692 | ||
9693 | * Makefile.in ($(out_object_file)): Depend upon $(DF_H). | |
9694 | ||
9a476c9c ILT |
9695 | 2009-06-23 Ian Lance Taylor <iant@google.com> |
9696 | ||
9697 | * reload.c (alternative_allows_const_pool_ref): Mark mem parameter | |
9698 | with ATTRIBUTE_UNUSED. | |
9699 | ||
cacf1ca8 MM |
9700 | 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com> |
9701 | Pat Haugen <pthaugen@us.ibm.com> | |
2d8b752f | 9702 | Revital Eres <eres@il.ibm.com> |
cacf1ca8 MM |
9703 | |
9704 | * config.in (HAVE_AS_POPCNTD): Add default definition. | |
9705 | (HAVE_AS_LWSYNC): Ditto. | |
9706 | ||
9707 | * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils | |
9708 | release number. | |
9709 | (gcc_cv_as_powerpc_cmpb): Ditto. | |
9710 | (gcc_cv_as_powerpc_dfp): Ditto. | |
9711 | (gcc_cv_as_powerpc_vsx): Ditto. | |
9712 | (gcc_cv_as_powerpc_popcntd): Add feature test for assembler | |
9713 | supporting the popcntd/lwsync instructions. | |
9714 | (gcc_cv_as_powerpc_lwsync): Ditto. | |
9715 | * configure: Regenerate. | |
9716 | ||
9717 | * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for | |
9718 | -mcpu=native and -mcpu=power7. | |
9719 | * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto. | |
9720 | ||
9721 | * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be | |
9722 | a variable instead of a mask to reduce the number of mask bits. | |
9723 | * config/rs6000/sysv4.opt (-mbit-align): Ditto. | |
9724 | (-mbit-word): Ditto. | |
9725 | (-mregnames): Ditto. | |
9726 | * config/rs6000/rs6000.opt (-mupdate): Ditto. | |
9727 | (-mfused-madd): Ditto. | |
9728 | ||
9729 | * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA | |
9730 | 2.06 instructions. | |
9731 | (-mvsx): New switch for VSX instructions. | |
9732 | (-misel): Move from a variable to a mask to allow it to be set by | |
9733 | -mcpu=. | |
9734 | ||
9735 | * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change | |
9736 | function declaration to an array declaration. | |
9737 | (rs6000_hard_regno_nregs): New external array declaration. | |
9738 | ||
9739 | * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md | |
9740 | files included by rs6000.md. | |
9741 | ||
9742 | * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use | |
9743 | SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch. | |
9744 | ||
9745 | * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be | |
9746 | a target mask. | |
9747 | (rs6000_debug_reg): New -mdebug= variables. | |
9748 | (rs6000_debug_addr): Ditto. | |
9749 | (rs6000_debug_cost): Ditto. | |
9750 | (rs6000_pmode): New variable to hold Pmode. | |
9751 | (rs6000_pointer_size): New variable to hold POINTER_SIZE. | |
9752 | (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS | |
9753 | calculated at compiler start. | |
9754 | (rs6000_hard_regno_nregs): Change function to an array which holds | |
9755 | HARD_REGNO_NREGS calculated at compiler start. | |
9756 | (rs6000_explicit_options): Delete isel field. | |
9757 | (rs6000_vector_unit): New array to hold which vector unit | |
9758 | supports arithmetic options for a given type. | |
9759 | (rs6000_vector_mem): New array to hold which vector unit supports | |
9760 | memory reference operations for a given type. | |
9761 | (rs6000_vector_align): New array to given the alignment of each | |
9762 | vector type. | |
9763 | (power7_cost): New basic costs for power7. | |
9764 | (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel. | |
9765 | (rs6000_hard_regno_nregs_internal): New function, moved from | |
9766 | HARD_REGNO_NREGS, to calculate the number of registers each hard | |
9767 | register takes for each type. | |
9768 | (rs6000_debug_reg_print): New function for -mdebug=reg support. | |
1e9ae5ab | 9769 | (rs6000_debug_vector_unit): New array, map rs6000_vector to string. |
cacf1ca8 MM |
9770 | (+rs6000_init_hard_regno_mode_ok): New function, move calculation |
9771 | of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector | |
9772 | unit information here so it is calculated once at compiler startup | |
9773 | time. | |
9774 | (rs6000_override_options): Make -misel a target mask. Add more | |
9775 | power7 target masks. Setup Pmode and POINTER_SIZE. Add initial | |
9776 | VSX support. Add support for -mdebug=reg, -mdebug=addr, and | |
9777 | -mdebug=cost. | |
9778 | (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL. | |
9779 | (rs6000_handle_option): Move -misel from variable to target mask. | |
9780 | (rs6000_builtin_mask_for_load): Add VSX support. | |
9781 | (rs6000_conditional_register_usage): Ditto. | |
9782 | (USE_ALTIVEC_FOR_ARG_P): Ditto. | |
9783 | (function_arg_boundary): Ditto. | |
9784 | (rs6000_expand_builtin): Ditto. | |
9785 | (def_builtin): Make abort message a little friendlier. | |
9786 | (rs6000_emit_int_cmove): Add support for 64-bit isel. | |
9787 | ||
9788 | * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the | |
9789 | assembler support the popcntd instruction instead of a vsx | |
9790 | instruction to enable power7 support. | |
9791 | (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7. | |
9792 | (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right | |
9793 | option to the assembler if -mcpu=native. | |
9794 | (ASM_CPU_NATIVE_SPEC): Ditto. | |
9795 | (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off | |
9796 | ISA 2.06 features. | |
9797 | (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue | |
9798 | the lwsync instruction. | |
9799 | (enum processor_type): Add PROCESSOR_POWER7. | |
9800 | (rs6000_debug_reg): New -mdebug= options. | |
9801 | (rs6000_debug_addr): Ditto. | |
9802 | (rs6000_debug_cost): Ditto. | |
9803 | (rs6000_isel): Delete. | |
9804 | (enum rs6000_vector): New enum to say what vector unit we have. | |
9805 | (VECTOR_UNIT_*): New macros to say which vector unit has | |
9806 | arithmetic operations for a given type. | |
9807 | (VECTOR_MEM_*): New macros to say which vector unit has memory | |
9808 | operations for a given type. | |
9809 | (TARGET_LDBRX): Whether the machine supports the ldbrx | |
9810 | instruction. | |
9811 | (TARGET_ISEL): Delete, -misel moved to be a mask. | |
9812 | (TARGET_ISEL64): New macro for 64-bit isel support. | |
9813 | (UNITS_PER_VSX_WORD): New macro. | |
9814 | (POINTER_SIZE): Move to be an external variable, rather than | |
9815 | calculating whether we are generating 32 ot 64-bit code. | |
9816 | (Pmode): Ditto. | |
9817 | (STACK_BOUNDARY): Add VSX support. | |
9818 | (LOCAL_ALIGNMENT): Ditto. | |
9819 | (SLOW_UNALIGNED_ACCESS): Ditto. | |
9820 | (VSX_REGNO_P): New macro for VSX support. | |
9821 | (VFLOAT_REGNO_P): Ditto. | |
9822 | (VINT_REGNO_P): Ditto. | |
9823 | (VLOGICAL_REGNO_P): Ditto. | |
9824 | (VSX_VECTOR_MODE): Ditto. | |
9825 | (VSX_SCALAR_MODE): Ditto. | |
9826 | (VSX_MODE): Ditto. | |
9827 | (VSX_MOVE_MODE): Ditto. | |
9828 | (VSX_REG_CLASS_P): Ditto. | |
9829 | (HARD_REGNO_NREGS): Instead of calling a function, use an array | |
9830 | lookup. | |
9831 | (UNITS_PER_SIMD_WORD): Add VSX support. | |
9832 | (MODES_TIEABLE_P): Ditto. | |
9833 | (STARTING_FRAME_OFFSET): Ditto. | |
9834 | (STACK_DYNAMIC_OFFSET): Ditto. | |
9835 | (EPILOGUE_USES): Ditto. | |
9836 | (REGNO_REG_CLASS): Move to array lookup. | |
9837 | (CLASS_MAX_NREGS): Ditto. | |
9838 | (rs6000_vector_reg_class): Add declaration. | |
9839 | (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that | |
9840 | overlap with the floating point and Altivec registers. | |
9841 | ||
9842 | * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx. | |
9843 | ||
9844 | * config/rs6000/driver-rs6000.c (asm_names): New static array to | |
9845 | give the appropriate asm switches if -mcpu=native. | |
9846 | (host_detect_local_cpu): Add support for "asm". | |
9847 | (host_detect_local_cpu): Follow GNU code guidelines for name. | |
9848 | ||
9849 | * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move | |
9850 | -mbit-word to a variable instead of being a target mask. | |
9851 | ||
9852 | * config/rs6000/sync.md (lwsync): If the assembler supports it, | |
9853 | emit the lwsync instruction instead of emitting the instruction as | |
9854 | an integer constant. | |
9855 | ||
9856 | * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from | |
9857 | fixuns_trundfsi2, move expander into rs6000.md. | |
9858 | ||
9859 | * config/rs6000/rs6000.md (cpu): Add power7. | |
9860 | (sel, *ptrsize): New mode attributes for 32/64-bit isel. | |
9861 | (logical predicate patterns): Change the single instruction | |
9862 | primitives that set CR0 to be fast_compare instead of compare. | |
9863 | (norsi*): Ditto. | |
9864 | (popcntwsi2): Add support for ISA 2.06 popcount instructions. | |
9865 | (popcntddi2): Ditto. | |
9866 | (popcount<mode>): Ditto. | |
9867 | (floating multiply/add insns): Name the floating point | |
9868 | multiply/add insns. | |
9869 | (isel_signed_<mode>): Add support for -misel on 64-bit systems. | |
9870 | (isel_unsigned_<mode>): Ditto. | |
9871 | (fixuns_trundfsi2): Move expander here from spe.md. | |
9872 | (smindi3): Define if we have -misel on 64-bit systems. | |
9873 | (smaxdi3): Ditto. | |
9874 | (umindi3): Ditto. | |
9875 | (umaxdi3): Ditto. | |
9876 | ||
59ab92d2 AS |
9877 | 2009-06-23 Anatoly Sokolov <aesok@post.ru> |
9878 | ||
9879 | * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and | |
9880 | extra_objs. | |
9881 | * config/avr/avr.c (avr_current_device): New variable. | |
9882 | (avr_arch_types, avr_mcu_types): Move to avr-deveces.c. | |
9883 | (avr_arch, mcu_type_s): Move to avr.h. | |
9884 | * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and | |
9885 | default_data_section_start fields. | |
9886 | (avr_arch): Moved from avr.c. | |
9887 | (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and | |
9888 | library_name fields. | |
9889 | (avr_current_device, avr_mcu_types, avr_arch_types, | |
9890 | avr_device_to_arch, avr_device_to_data_start, | |
9891 | avr_device_to_startfiles, avr_device_to_devicelib): Declare. | |
9892 | (EXTRA_SPEC_FUNCTIONS): Define. | |
9893 | (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker | |
9894 | options mapping. Use device_to_arch and device_to_data_start insted. | |
9895 | (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils. | |
9896 | (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove. | |
9897 | * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules. | |
9898 | * config/avr/driver-avr.c: New file. | |
9899 | * config/avr/avr-devices.c: New file. | |
9900 | ||
8593e0b6 JJ |
9901 | 2009-06-23 Jakub Jelinek <jakub@redhat.com> |
9902 | ||
7eb3f1f7 JJ |
9903 | * var-tracking.c (unshare_variable): Force initialized to |
9904 | be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit. | |
9905 | (set_variable_part): Likewise. | |
9906 | (struct variable_union_info): Remove pos_src field. | |
9907 | (vui_vec, vui_allocated): New variables. | |
9908 | (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable | |
9909 | unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l | |
9910 | == 1 use a simpler sorting algorithm. Compute pos field right | |
9911 | away, don't fill in pos_src. For dst_l == 2 avoid qsort. | |
9912 | Avoid quadratic comparison if !flag_var_tracking_uninit. | |
9913 | (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to | |
f100a4a8 | 9914 | unshare_variable unconditionally. |
7eb3f1f7 JJ |
9915 | (dataflow_set_different_2): Removed. |
9916 | (dataflow_set_different): Don't traverse second hash table. | |
9917 | (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED | |
9918 | unconditionally to var_reg_set or var_mem_set. | |
9919 | (emit_notes_in_bb): Likewise. | |
9920 | (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to | |
9921 | unshare_variable. | |
9922 | (emit_note_insn_var_location): Don't set initialized to | |
9923 | VAR_INIT_STATUS_INITIALIZED early. | |
9924 | (vt_finalize): Free vui_vec if needed, clear vui_vec and | |
9925 | vui_allocated. | |
9926 | * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb. | |
9927 | ||
8593e0b6 JJ |
9928 | * tree-object-size.c (addr_object_size): Instead of checking |
9929 | for non-NULL TREE_CHAIN of the FIELD_DECL check that there | |
9930 | are no FIELD_DECLs following it. | |
9931 | ||
fef015a8 AK |
9932 | 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com> |
9933 | ||
9934 | * tree-ssa-math-opts.c (find_bswap): Increase the search depth in | |
9935 | order to match bswaps with signed source operands. | |
9936 | ||
b6d83244 RO |
9937 | 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
9938 | ||
9939 | * sdbout.c (sdbout_one_type): Fix braces in switch. | |
9940 | ||
0bbf2ffa RG |
9941 | 2009-06-23 Richard Guenther <rguenther@suse.de> |
9942 | ||
9943 | * tree-ssa-structalias.c (struct variable_info): Add is_global_var | |
9944 | member. | |
9945 | (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly, | |
9946 | readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree, | |
9947 | var_callused, callused_tree, var_storedanything, storedanything_tree, | |
9948 | var_integer, integer_tree): Remove global variables. | |
9949 | (new_var_info): Do not pass new id, append the new var to the | |
9950 | global variable vector. | |
9951 | (do_ds_constraint): Use is_global_var member of the variable-info. | |
9952 | (new_scalar_tmp_constraint_exp): Adjust. | |
9953 | (create_function_info_for): Likewise. | |
9954 | (create_variable_info_for): Likewise. | |
9955 | (find_what_var_points_to): Remove dead code. | |
9956 | (init_base_vars): Simplify. | |
9957 | (compute_points_to_sets): Adjust. | |
9958 | ||
28a5fb2e AN |
9959 | 2009-06-22 Adam Nemet <anemet@caviumnetworks.com> |
9960 | ||
9961 | * combine.c (try_combine): Dump information about the insns we're | |
9962 | combining. | |
9963 | ||
cfb8805e AN |
9964 | 2009-06-22 Adam Nemet <anemet@caviumnetworks.com> |
9965 | ||
9966 | * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION | |
9967 | check when calling force_to_mode on TRUNCATE's operand. | |
9968 | ||
df4ba119 ILT |
9969 | 2009-06-22 Ian Lance Taylor <iant@google.com> |
9970 | ||
897eef7b | 9971 | * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog. |
df4ba119 | 9972 | |
c986683b SB |
9973 | 2009-06-22 Steven Bosscher <steven@gcc.gnu.org> |
9974 | ||
9975 | * config/arm/arm.md (prologue_use): Set length of fake insn to 0. | |
9976 | ||
5c6927bd RW |
9977 | 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
9978 | ||
9979 | * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib | |
9980 | override library linkage flags such as -static-libgcc or | |
9981 | -shared-libgcc. | |
9982 | ||
19973be2 MK |
9983 | 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com> |
9984 | ||
9985 | * config/m68k/m68k-devices.def: Add line for MCF5221x. | |
9986 | ||
7a5d2eb8 ILT |
9987 | 2009-06-22 Ian Lance Taylor <iant@google.com> |
9988 | ||
9989 | * config/linux.opt: Put mglibc ahead of muclibc. | |
9990 | ||
9991 | * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning | |
9992 | for duplicate decls. | |
9993 | ||
86e3c83a MK |
9994 | 2009-06-22 Matthias Klose <doko@ubuntu.com> |
9995 | ||
9996 | * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR). | |
9997 | ||
0a7d7dea MK |
9998 | 2009-06-22 Steven Bosscher <steven@gcc.gnu.org> |
9999 | ||
10000 | PR objc/28050 | |
10001 | * c-parser.c (c_parser_objc_message_args): Return error_mark_node | |
10002 | instead of NULL if a parser error occurs. | |
10003 | ||
a77264d5 RO |
10004 | 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
10005 | ||
10006 | * dwarf2out.c (dwarf2_debug_hooks): Initialize | |
10007 | non-DWARF2_DEBUGGING_INFO version. | |
10008 | ||
54f549af KT |
10009 | 2009-06-22 Kai Tietz <kai.tietz@onevision.com> |
10010 | ||
34481f28 UB |
10011 | * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add |
10012 | i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file. | |
10013 | ||
10014 | * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define. | |
54f549af KT |
10015 | (LIBGCC2_TF_CEXT): Define. |
10016 | (TF_SIZE): Define. | |
10017 | ||
7cea01df RR |
10018 | 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
10019 | ||
10020 | PR target/40463 | |
10021 | * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition. | |
10022 | ||
3ce14752 RR |
10023 | 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
10024 | ||
34481f28 UB |
10025 | * config/arm/arm.c (arm_override_options): Disable |
10026 | -mcaller-super-interworking and -mcallee-super-interworking. | |
10027 | * doc/invoke.texi (ARM Options): Document this. | |
3ce14752 | 10028 | |
d58bc084 NS |
10029 | 2009-06-22 Nathan Sidwell <nathan@codesourcery.com> |
10030 | ||
10031 | * config/arm/arm.c (arm_print_operand): Deal with HIGH. | |
10032 | * config/arm/constraints.md (j): New constraint for movw operands. | |
10033 | (N): Remove thumb2 meaning. | |
10034 | * config/arm/arm.md (*arm_movw): Delete. | |
10035 | (*arm_movsi_insn): Use j constraint for movw instead of N constraint. | |
10036 | * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise. | |
10037 | * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise. | |
10038 | ||
ac6cb60c MJ |
10039 | 2009-06-22 Martin Jambor <mjambor@suse.cz> |
10040 | ||
10041 | PR tree-optimization/40492 | |
10042 | * tree-sra.c (sra_modify_assign): Pass zero offsets to | |
10043 | build_ref_for_offset. | |
10044 | ||
481683e1 SZ |
10045 | 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com> |
10046 | ||
10047 | * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and | |
10048 | JUMP_TABLE_DATA_P predicates where applicable. | |
10049 | * auto-inc-dec.c: Ditto. | |
10050 | * builtins.c: Ditto. | |
10051 | * caller-save.c: Ditto. | |
10052 | * calls.c: Ditto. | |
10053 | * cfgcleanup.c: Ditto. | |
10054 | * cfglayout.c: Ditto. | |
10055 | * cfgrtl.c: Ditto. | |
10056 | * combine.c: Ditto. | |
10057 | * combine-stack-adj.c: Ditto. | |
10058 | * cse.c: Ditto. | |
10059 | * cselib.c: Ditto. | |
10060 | * dbxout.c: Ditto. | |
10061 | * df-scan.c: Ditto. | |
10062 | * dse.c: Ditto. | |
10063 | * dwarf2asm.c: Ditto. | |
10064 | * dwarf2out.c: Ditto. | |
10065 | * emit-rtl.c: Ditto. | |
10066 | * except.c: Ditto. | |
10067 | * explow.c: Ditto. | |
10068 | * expmed.c: Ditto. | |
10069 | * expr.c: Ditto. | |
10070 | * final.c: Ditto. | |
10071 | * function.c: Ditto. | |
10072 | * fwprop.c: Ditto. | |
10073 | * gcse.c: Ditto. | |
10074 | * genpreds.c: Ditto. | |
10075 | * genrecog.c: Ditto. | |
10076 | * ifcvt.c: Ditto. | |
10077 | * ira-costs.c: Ditto. | |
10078 | * ira-lives.c: Ditto. | |
10079 | * jump.c: Ditto. | |
10080 | * loop-iv.c: Ditto. | |
10081 | * lower-subreg.c: Ditto. | |
10082 | * modulo-sched.c: Ditto. | |
10083 | * optabs.c: Ditto. | |
10084 | * postreload.c: Ditto. | |
10085 | * print-rtl.c: Ditto. | |
10086 | * recog.c: Ditto. | |
10087 | * reginfo.c: Ditto. | |
10088 | * regmove.c: Ditto. | |
10089 | * reload1.c: Ditto. | |
10090 | * reload.c: Ditto. | |
10091 | * reorg.c: Ditto. | |
10092 | * rtlanal.c: Ditto. | |
10093 | * rtl.c: Ditto. | |
10094 | * sched-vis.c: Ditto. | |
10095 | * sdbout.c: Ditto. | |
10096 | * sel-sched-ir.c: Ditto. | |
10097 | * simplify-rtx.c: Ditto. | |
10098 | * targhooks.c: Ditto. | |
10099 | * var-tracking.c: Ditto. | |
10100 | * vmsdbgout.c: Ditto. | |
10101 | ||
1407d6cf MK |
10102 | 2009-06-22 Matthias Klose <doko@ubuntu.com> |
10103 | ||
10104 | * Makefile.in (install-plugin): Always use DESTDIR. | |
10105 | ||
28326880 | 10106 | 2009-06-22 Olivier Hainque <hainque@adacore.com> |
f100a4a8 | 10107 | |
28326880 OH |
10108 | * config/pa/pa.c (output_call): Don't optimize post call jumps |
10109 | into return address adjustments if the call may throw. | |
10110 | ||
907dd0c7 RE |
10111 | 2009-06-21 Richard Earnshaw <rearnsha@arm.com> |
10112 | ||
10113 | * arm.c (thumb1_output_casesi): New function. | |
10114 | * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if | |
10115 | optimizing for size or PIC. | |
10116 | (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1. | |
10117 | * arm.md (UNSPEC_THUMB1_CASESI): New constant. | |
10118 | (casesi): Handle Thumb-1 when optimizing for size or PIC. | |
10119 | (thumb1_casesi_internal_pic): New expand rule. | |
10120 | (thumb1_casesi_dispatch): New pattern. | |
10121 | * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for | |
10122 | thumb-1 mode. | |
10123 | * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now | |
10124 | in the text seciton when PIC or optimizing for size. | |
10125 | * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise. | |
10126 | * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack | |
10127 | preservation properties of code. | |
10128 | (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions. | |
10129 | (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions. | |
10130 | (__gnu_thumb1_case_si): New function. | |
10131 | * t-arm (LIB1ASMSRC): Define here. | |
10132 | (LIB1ASMFUNCS): Add some common functions. | |
10133 | * t-arm-elf (LIB1ASMSRC): Delete. | |
10134 | (LIB1ASMFUNCS): Append to existing set. | |
10135 | * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise. | |
10136 | * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise. | |
10137 | * t-symbian (LIB1ASMFUNCS): Likewise. | |
10138 | * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise. | |
10139 | * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise. | |
10140 | ||
2cee1509 RG |
10141 | 2009-06-21 Richard Guenther <rguenther@suse.de> |
10142 | ||
10143 | PR tree-optimization/38729 | |
10144 | * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict | |
10145 | to loops with a single exit if -fno-expensive-optimizations. | |
10146 | ||
d24686d7 JJ |
10147 | 2009-06-21 Jakub Jelinek <jakub@redhat.com> |
10148 | ||
10149 | * var-tracking.c (struct shared_hash_def, shared_hash): New types. | |
10150 | (dataflow_set): Change vars type from htab_t to shared_hash. | |
10151 | (shared_hash_pool, empty_shared_hash): New variables. | |
10152 | (vars_clear): Removed. | |
10153 | (shared_hash_shared, shared_hash_htab, shared_hash_copy, | |
10154 | shared_hash_find_slot_unshare, shared_hash_find_slot, | |
10155 | shared_hash_find_slot_noinsert, shared_hash_find): New | |
10156 | static inlines. | |
10157 | (shared_hash_unshare, shared_hash_destroy): New functions. | |
10158 | (unshare_variable): Unshare set->vars if shared, use | |
10159 | shared_hash_htab. | |
10160 | (vars_copy): Use htab_traverse_noresize instead of htab_traverse. | |
10161 | (get_init_value, find_src_set_src, dump_dataflow_set, | |
10162 | clobber_variable_part, emit_notes_for_differences): Use | |
10163 | shared_hash_htab. | |
10164 | (dataflow_set_init): Remove second argument, set vars to | |
10165 | empty_shared_hash instead of creating a new htab. | |
10166 | (dataflow_set_clear): Call shared_hash_destroy and set vars | |
10167 | to empty_shared_hash instead of calling vars_clear. | |
10168 | (dataflow_set_copy): Don't call vars_copy, instead just share | |
10169 | the src htab with dst. | |
10170 | (variable_union): Use shared_hash_*, use initially NO_INSERT | |
10171 | lookup if set->vars is shared. Don't keep slot cleared before | |
10172 | calling unshare_variable. Unshare set->vars if needed. | |
10173 | Even ->refcount == 1 vars must be unshared if set->vars is shared | |
10174 | and var needs to be modified. | |
10175 | (variable_canonicalize): New function. | |
10176 | (dataflow_set_union): If dst->vars is empty, just share src->vars | |
10177 | with dst->vars and traverse with variable_canonicalize to canonicalize | |
10178 | and unshare what is needed. | |
10179 | (dataflow_set_different): If old_set and new_set use the same shared | |
10180 | htab, they aren't different. If number of htab elements is different, | |
10181 | htabs are different. Use shared_hash_*. | |
10182 | (dataflow_set_destroy): Call shared_hash_destroy instead of | |
10183 | htab_delete. | |
10184 | (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass | |
10185 | second argument to dataflow_set_init. | |
10186 | (vt_initialize): Likewise. Initialize shared_hash_pool and | |
10187 | empty_shared_hash, move bb in/out initialization afterwards. | |
10188 | Use variable_htab_free instead of NULL as changed_variables del hook. | |
10189 | (variable_was_changed): Change type of second argument to pointer to | |
10190 | dataflow_set. When inserting var into changed_variables, bump | |
10191 | refcount. Unshare set->vars if set is shared htab and slot needs to | |
10192 | be cleared. | |
10193 | (set_variable_part): Use shared_hash_*, use initially NO_INSERT | |
10194 | lookup if set->vars is shared. Unshare set->vars if needed. | |
10195 | Even ->refcount == 1 vars must be unshared if set->vars is shared | |
10196 | and var needs to be modified. Adjust variable_was_changed caller. | |
10197 | (delete_variable_part): Use shared_hash_*. Even ->refcount == 1 | |
10198 | vars must be unshared if set->vars is shared and var needs to be | |
10199 | modified. Adjust variable_was_changed caller. | |
10200 | (emit_note_insn_var_location): Don't pool_free var. | |
10201 | (emit_notes_for_differences_1): Initialize empty_var->refcount to 0 | |
10202 | instead of 1. | |
10203 | (vt_finalize): Call htab_delete on empty_shared_hash->htab and | |
10204 | free_alloc_pool on shared_hash_pool. | |
10205 | ||
525b459f AG |
10206 | 2009-06-20 Anthony Green <green@moxielogic.com> |
10207 | ||
10208 | * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define. | |
10209 | * config/moxie/moxie.h (LOAD_EXTEND_OP): Define. | |
10210 | ||
825be69e RG |
10211 | 2009-06-20 Richard Guenther <rguenther@suse.de> |
10212 | ||
10213 | * tree-ssa-structalias.c (find_func_aliases): For memset use | |
10214 | a constraint from NULL if we memset to zero. | |
10215 | * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins | |
10216 | we explicitly handle that do not read from memory. | |
10217 | (call_may_clobber_ref_p_1): Properly handle builtins that may | |
10218 | set errno. | |
10219 | ||
b14e9388 RG |
10220 | 2009-06-20 Richard Guenther <rguenther@suse.de> |
10221 | ||
10222 | PR tree-optimization/40495 | |
10223 | * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove. | |
10224 | (new_scalar_tmp_constraint_exp): New function. | |
10225 | (process_constraint): Do not create temporary decls. | |
10226 | (process_all_all_constraints): Likewise. | |
10227 | (handle_const_call): Likewise. | |
10228 | (create_function_info_for): Do not set decl. | |
10229 | ||
c885ca89 ILT |
10230 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10231 | ||
10232 | * config/rs6000/rs6000.c (rs6000_explicit_options): Make static. | |
10233 | (rs6000_attribute_table): Make static; move before use. | |
10234 | ||
6569d386 EB |
10235 | 2009-06-19 Eric Botcazou <ebotcazou@adacore.com> |
10236 | ||
10237 | * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat. | |
10238 | <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR. | |
10239 | Propagate the TREE_READONLY flag without overwriting it. | |
10240 | (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise. | |
10241 | Propagate the TREE_READONLY flag onto the result. | |
10242 | (process_call_operands): Move around. Use correct constant value. | |
10243 | ||
ce41c38b RR |
10244 | 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
10245 | ||
10246 | PR target/40482 | |
897eef7b | 10247 | * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits. |
ce41c38b RR |
10248 | * config/arm/arm.md: Likewise. |
10249 | ||
96be7a11 | 10250 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
d130ae11 ILT |
10251 | |
10252 | * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK | |
10253 | to GIMPLE_ERROR_MARK. | |
10254 | ||
10255 | * c-typeck.c (build_conditional_expr): Add op1_original_type and | |
897eef7b | 10256 | op2_original_type parameters. Warn about using different enum types. |
d130ae11 ILT |
10257 | * c-parser.c (c_parser_conditional_expression): Pass original |
10258 | types to build_conditional_expr. | |
10259 | * c-tree.h (build_conditional_expr): Update declaration. | |
10260 | ||
d4aa4f4b ILT |
10261 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10262 | ||
10263 | * config/i386/i386.c (ix86_function_specific_save): Test that | |
10264 | fields match values, rather than testing the values are in a | |
10265 | certain range. | |
10266 | ||
779704e7 RG |
10267 | 2009-06-19 Richard Guenther <rguenther@suse.de> |
10268 | ||
10269 | * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle | |
10270 | ADDR_EXPR pointers. | |
10271 | (ptr_derefs_may_alias_p): Likewise. | |
10272 | (ptr_deref_may_alias_ref_p_1): New function. | |
10273 | (ptr_deref_may_alias_ref_p): Likewise. | |
10274 | (ref_maybe_used_by_call_p_1): Handle builtins that are not | |
10275 | covered by looking at the ESCAPED solution. | |
10276 | (call_may_clobber_ref_p_1): Likewise. | |
10277 | * tree-ssa-structalias.c (get_constraint_for_ptr_offset): | |
10278 | Handle NULL_TREE offset. Do not produce redundant constraints. | |
10279 | (process_all_all_constraints): New helper function. | |
10280 | (do_structure_copy): Use it. | |
10281 | (handle_lhs_call): Likewise. | |
10282 | (find_func_aliases): Handle some builtins with pointer arguments | |
10283 | and/or return values explicitly. | |
10284 | ||
217655da ILT |
10285 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10286 | ||
10287 | * varasm.c (const_rtx_hash_1): Remove const qualifier from shift. | |
10288 | ||
50ae5fea ILT |
10289 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10290 | ||
10291 | * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int. | |
10292 | ||
642324bb ILT |
10293 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10294 | ||
10295 | * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes. | |
10296 | * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO | |
10297 | version. | |
10298 | ||
10299 | * c-decl.c (finish_decl): If -Wc++-compat, warn about | |
10300 | uninitialized const. | |
10301 | ||
dc491a25 ILT |
10302 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10303 | ||
10304 | * dse.c (struct store_info): Rename bitmap field to bmap. Change | |
10305 | all uses. | |
10306 | ||
10307 | * c-decl.c (in_struct, struct_types): Remove. | |
10308 | (struct c_binding): Add in_struct field. | |
10309 | (c_binding_ptr): Define type, along with VEC. | |
10310 | (struct c_struct_parse_info): Define. | |
10311 | (struct_parse_info): New static variable. | |
10312 | (bind): Initialize in_struct field. | |
10313 | (start_struct): Remove enclosing_in_struct and | |
10314 | enclosing_struct_types parameters. Add | |
10315 | enclosing_struct_parse_info parameter. Change all callers. Set | |
10316 | struct_parse_info rather than in_struct and struct_types. | |
10317 | (grokfield): If -Wc++-compat and there is a symbol binding for the | |
10318 | field name, set the in_struct flag and push it on the | |
10319 | struct_parse_info->fields vector. | |
10320 | (warn_cxx_compat_finish_struct): New static function. | |
10321 | (finish_struct): Remove enclosing_in_struct and | |
10322 | enclosing_struct_types parameters. Add | |
10323 | enclosing_struct_parse_info parameter. Change all callers. Don't | |
10324 | set C_TYPE_DEFINED_IN_STRUCT here. Call | |
10325 | warn_cxx_compat_finish_struct. Free struct_parse_info and set to | |
10326 | parameter. Only push on struct_types if warn_cxx_compat. | |
10327 | (finish_enum): Only push on struct_types if warn_cxx_compat. | |
10328 | (declspecs_add_type): Add loc parameter. Change all callers. | |
10329 | Change all error calls to error_at. Pass loc, not input_location, | |
10330 | to pedwarn calls. Warn if -Wc++-compat and a typedef name is | |
10331 | defined in a struct. If -Wc++-compat and parsing a struct, record | |
10332 | that a typedef name was used. | |
10333 | * c-parser.c (c_parser_declspecs): Get location to pass to | |
10334 | declspecs_add_type. | |
10335 | (c_parser_struct_or_union_specifier): Update calls to start_struct | |
10336 | and finish_struct. | |
10337 | * c-tree.h (struct c_struct_parse_info): Declare. | |
10338 | (finish_struct, start_struct): Update declarations. | |
10339 | (declspecs_add_type): Update declaration. | |
10340 | ||
88eeff6f ILT |
10341 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
10342 | ||
10343 | * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global | |
10344 | variable with an anonymous type. | |
10345 | ||
28a876a4 UB |
10346 | 2009-06-19 Uros Bizjak <ubizjak@gmail.com> |
10347 | ||
10348 | * see.c: Remove for real. | |
10349 | ||
dc6707b8 UB |
10350 | 2009-06-19 Uros Bizjak <ubizjak@gmail.com> |
10351 | ||
10352 | * optabs.h (enum optab_index): Add new OTI_significand. | |
10353 | (significand_optab): Define corresponding macro. | |
10354 | * optabs.c (init_optabs): Initialize significand_optab. | |
10355 | * genopinit.c (optabs): Implement significand_optab using | |
10356 | significand?f2 patterns. | |
10357 | * builtins.c (expand_builtin_mathfn): Handle | |
10358 | BUILT_IN_SIGNIFICAND{,F,L}. | |
10359 | (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using | |
10360 | expand_builtin_mathfn if flag_unsafe_math_optimizations is set. | |
10361 | ||
10362 | * config/i386/i386.md (significandxf2, significand<mode>2): New | |
10363 | expanders to implement significandf, significand and significandl | |
10364 | built-ins as inline x87 intrinsics. | |
10365 | ||
dd26af70 AS |
10366 | 2009-06-18 Anatoly Sokolov <aesok@post.ru> |
10367 | ||
10368 | * config/avr/avr.c (avr_override_options): Remove setting value of | |
10369 | PARAM_INLINE_CALL_COST. | |
10370 | ||
394bd84d RH |
10371 | 2009-06-18 Richard Henderson <rth@redhat.com> |
10372 | ||
10373 | PR 40488 | |
10374 | * tree-pass.h (TDF_ASMNAME): New. | |
10375 | * tree-dump.c (dump_options): Add asmname. | |
10376 | * doc/invoke.texi: Document it. | |
10377 | ||
10378 | * tree-pretty-print.c (maybe_dump_asm_name): Merge into... | |
10379 | (dump_decl_name): ...here. | |
10380 | (dump_function_name): New flags arg; mind TDF_ASMNAME. | |
10381 | (dump_generic_node): Update dump_function_name calls. | |
10382 | (print_call_name): New flags arg; update all dump calls. | |
10383 | * diagnostic.h (print_call_name): Update. | |
10384 | * gimple-pretty-print.c (dump_gimple_call): Update. | |
10385 | ||
2a457a9b L |
10386 | 2009-06-18 H.J. Lu <hongjiu.lu@intel.com> |
10387 | ||
10388 | PR target/40470 | |
10389 | * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG. | |
10390 | ||
fca5bb5c DN |
10391 | 2009-06-18 Diego Novillo <dnovillo@google.com> |
10392 | ||
10393 | * doc/plugins.texi: Document plugin_is_GPL_compatible. | |
10394 | * plugin.c (str_license): Declare. | |
10395 | (try_init_one_plugin): Assert that the symbol | |
10396 | 'plugin_is_GPL_compatible' exists. | |
10397 | ||
b6680d72 SD |
10398 | 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com> |
10399 | ||
10400 | * see.c: Remove. | |
10401 | * Makefile.in (OBJS-common): Remove see.o. | |
10402 | (see.o): Remove. | |
10403 | * common.opt (fsee): Mark as preserved for backward compatibility. | |
f100a4a8 | 10404 | * opts.c (common_handle_option): Add OPT_fsee to the backward |
b6680d72 SD |
10405 | compatibility section. |
10406 | * passes.c (init_optimization_passes, pass_see): Remove pass. | |
10407 | * timevar.def (TV_SEE): Remove. | |
10408 | * tree-pass.h (pass_see): Remove declaration. | |
10409 | * doc/invoke.texi (-fsee): Remove documentation. | |
f100a4a8 | 10410 | |
2a45675f MJ |
10411 | 2009-06-18 Martin Jambor <mjambor@suse.cz> |
10412 | ||
10413 | * tree-sra.c: Include statistics.h | |
10414 | (sra_stats): New variable. | |
10415 | (sra_initialize): Clear sra_stats. | |
10416 | (create_access_replacement): Increment sra_stats.replacements. | |
10417 | (get_access_replacement): Do not return twice. | |
10418 | (analyze_all_variable_accesses): Increment statistics counter by the | |
10419 | number of scalarized aggregates. | |
10420 | (generate_subtree_copies): Increment sra_stats.subtree_copies. | |
10421 | (sra_modify_expr): Increment sra_stats.exprs. | |
10422 | (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements. | |
10423 | (sra_modify_assign): Increment sra_stats.exprs, | |
10424 | sra_stats.separate_lhs_rhs_handling and sra_stats.deleted. | |
10425 | (perform_intra_sra): Update statistics counters. | |
10426 | * Makefile.in (tree-sra.o): Add statistics.h to dependencies. | |
10427 | ||
bdc4827b SL |
10428 | 2009-06-18 Sandra Loosemore <sandra@codesourcery.com> |
10429 | ||
10430 | * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine. | |
10431 | (arm_scalar_mode_supported_p): New function. | |
10432 | ||
d9dd51dc PB |
10433 | 2009-06-18 Paul Brook <paul@codesourcery.com> |
10434 | Sandra Loosemore <sandra@codesourcery.com> | |
10435 | ||
10436 | * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define. | |
10437 | (__extendhfsf2, __truncsfhf2): Define. | |
10438 | * config/arm/fp16.c: New file. | |
10439 | * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c. | |
10440 | * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c. | |
10441 | ||
0fd8c3ad SL |
10442 | 2009-06-18 Sandra Loosemore <sandra@codesourcery.com> |
10443 | ||
10444 | * doc/extend.texi (Half-Precision): New section. | |
10445 | * doc/invoke.texi (Option Summary): List -mfp16-format. | |
10446 | (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format. | |
10447 | * config/arm/arm.opt (mfp16-format=): New. | |
10448 | * config/arm/arm.c: Include intl.h. | |
10449 | (TARGET_INVALID_PARAMETER_TYPE): Redefine. | |
10450 | (TARGET_INVALID_RETURN_TYPE): Redefine. | |
10451 | (TARGET_PROMOTED_TYPE): Redefine. | |
10452 | (TARGET_CONVERT_TO_TYPE): Redefine. | |
10453 | (arm_fp16_format): Define. | |
10454 | (all_fpus): Add entry for neon-fp16. | |
10455 | (fp_model_for_fpu): Likewise. | |
10456 | (struct fp16_format): Declare. | |
10457 | (all_fp16_formats): Define. | |
10458 | (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic | |
10459 | functions. | |
10460 | (arm_override_options): Set arm_fp16_format. Call sorry for fp16 | |
10461 | and no ldrh. | |
10462 | (arm_legitimate_index_p): Treat HFmode like HImode. | |
10463 | (thumb1_legitimate_address_p): Make it recognize HFmode constants. | |
10464 | (coproc_secondary_reload_class): Special-case HFmode. | |
10465 | (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16. | |
10466 | (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers. | |
10467 | (arm_init_fp16_builtins): New. | |
10468 | (arm_init_builtins): Call it. | |
10469 | (arm_invalid_parameter_type): New. | |
10470 | (arm_invalid_return_type): New. | |
10471 | (arm_promoted_type): New. | |
10472 | (arm_convert_to_type). | |
10473 | (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16 | |
10474 | format. | |
10475 | (arm_emit_fp16_const): New function. | |
10476 | (arm_mangle_type): Mangle __fp16 as "Dh". | |
10477 | * config/arm/arm.h (TARGET_VFPD32): Make it know about | |
10478 | FPUTYPE_NEON_FP16. | |
10479 | (TARGET_NEON_FP16): New. | |
10480 | (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16. | |
10481 | (enum fputype): Add FPUTYPE_NEON_FP16. | |
10482 | (enum arm_fp16_format_type): Declare. | |
10483 | (arm_fp16_format): Declare. | |
10484 | (LARGEST_EXPONENT_IS_NORMAL): Define. | |
10485 | * config/arm/arm-protos.h (arm_emit_fp16_const): Declare. | |
10486 | * config/arm/arm-modes.def (HFmode): Define. | |
10487 | * config/arm/vfp.md: (*movhf_vfp): New. | |
10488 | (extendhfsf2): New. | |
10489 | (truncsfhf2): New. | |
10490 | * config/arm/arm.md: (fpu): Add neon_fp16. | |
10491 | (floatsihf2, floatdihf2): New. | |
10492 | (fix_trunchfsi2, fix_trunchfdi2): New. | |
10493 | (truncdfhf2): New. | |
10494 | (extendhfdf2): New. | |
10495 | (movhf): New. | |
10496 | (*arm32_movhf): New. | |
10497 | (*thumb1_movhf): New. | |
10498 | (consttable_2): Add check for HFmode constants. | |
10499 | (consttable_4): Handle HFmode constants. | |
10500 | ||
2c2f70e1 UB |
10501 | 2009-06-18 Uros Bizjak <ubizjak@gmail.com> |
10502 | ||
10503 | * convert.c (convert_to_integer): Convert (int)logb() into ilogb(). | |
10504 | ||
db4fa1c1 OH |
10505 | 2009-06-17 Olivier Hainque <hainque@adacore.com> |
10506 | ||
10507 | * collect2.c (main): Use CONST_CAST2 to perform char ** to | |
10508 | const char ** conversion in AIX specific section. | |
f100a4a8 | 10509 | |
6bec4135 L |
10510 | 2009-06-17 H.J. Lu <hongjiu.lu@intel.com> |
10511 | ||
10512 | * config/i386/i386.c (ix86_special_builtin_type): Remove | |
10513 | UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED. | |
10514 | (bdesc_special_args): Updated. | |
10515 | (ix86_init_mmx_sse_builtins): Likewise. | |
10516 | (ix86_expand_special_args_builtin): Likewise. | |
10517 | ||
958d6d58 RH |
10518 | 2009-06-17 Richard Henderson <rth@redhat.com> |
10519 | ||
10520 | * tree-pretty-print.c (maybe_dump_asm_name): New. | |
10521 | (dump_decl_name): Use it. | |
10522 | (PRINT_FUNCTION_NAME): Merge into... | |
10523 | (dump_function_name): ... here. Use maybe_dump_asm_name. | |
10524 | ||
ed5ef2e4 CC |
10525 | 2009-06-17 Cary Coutant <ccoutant@google.com> |
10526 | ||
10527 | * dbxout.c (dbxout_source_line): Add is_stmt parameter. | |
10528 | Change caller. | |
10529 | * debug.c (struct gcc_debug_hooks): Change placeholder for | |
10530 | source_line hook. | |
10531 | (debug_nothing_int_charstar_int): Replaced by... | |
10532 | (debug_nothing_int_charstar_int_bool): ...this. | |
10533 | * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to | |
10534 | source_line prototype. | |
10535 | (debug_nothing_int_charstar_int): Replaced by... | |
10536 | (debug_nothing_int_charstar_int_bool): ...this. | |
10537 | * defaults.h (SUPPORTS_DISCRIMINATOR): New constant. | |
10538 | * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter. | |
10539 | Output is_stmt operand when necessary. | |
01a0acb7 | 10540 | * final.c (final_scan_insn): Pass is_stmt to source_line debug hook. |
ed5ef2e4 CC |
10541 | (notice_source_line): Add is_stmt parameter. |
10542 | * sdbout.c (sdbout_source_line): Add is_stmt parameter. | |
10543 | * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter. | |
10544 | Change callers. | |
10545 | * xcoffout.c (xcoffout_source_line): Add is_stmt parameter. | |
10546 | * xcoffout.h (xcoffout_source_line): Add is_stmt parameter. | |
10547 | ||
b0f43ca0 ILT |
10548 | 2009-06-17 Ian Lance Taylor <iant@google.com> |
10549 | ||
10550 | * expr.c (struct move_by_pieces_d): Rename from move_by_pieces. | |
10551 | Change all uses. | |
10552 | (struct store_by_pieces_d): Rename from store_by_pieces. Change | |
10553 | call uses. | |
10554 | ||
23314e77 AN |
10555 | 2009-06-17 Adam Nemet <anemet@caviumnetworks.com> |
10556 | ||
10557 | * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, | |
10558 | STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions, | |
10559 | tree_strip_sign_nop_conversions and | |
10560 | tree_ssa_strip_useless_type_conversions rather than stripping | |
10561 | the operations here. | |
10562 | (tree_strip_nop_conversions, tree_strip_sign_nop_conversions): | |
10563 | Declare them. | |
10564 | * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it. | |
10565 | * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function. | |
10566 | * tree.c (tree_nop_conversion, tree_sign_nop_conversion, | |
10567 | tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New | |
10568 | functions. | |
10569 | ||
799dbb0f ME |
10570 | 2009-06-17 Michael Eager <eager@eagercon.com> |
10571 | ||
c637b0fa UB |
10572 | * config/rs6000/constraints.md (register_constraint "d"): New. |
10573 | * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2, | |
10574 | truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr, | |
10575 | *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64, | |
10576 | *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2, | |
10577 | trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3, | |
10578 | divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2, | |
10579 | fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd' | |
10580 | * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs, | |
799dbb0f ME |
10581 | __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte, |
10582 | __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw, | |
c637b0fa UB |
10583 | __fctiwz): Same. |
10584 | * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr, | |
799dbb0f ME |
10585 | *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr, |
10586 | *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2, | |
10587 | *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal, | |
c637b0fa UB |
10588 | *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt, |
10589 | fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2, | |
10590 | stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1, | |
10591 | *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64, | |
10592 | *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1, | |
10593 | trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper, | |
10594 | *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32, | |
10595 | *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2, | |
10596 | *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same. | |
799dbb0f ME |
10597 | * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint. |
10598 | ||
1469de3c ILT |
10599 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
10600 | ||
10601 | * profile.c (total_num_never_executed): Don't define. | |
10602 | (compute_branch_probabilities): Don't count or print | |
10603 | num_never_executed. | |
10604 | (init_branch_prob): Don't set total_num_never_executed. | |
10605 | (end_branch_prob): Don't print total_num_never_executed. | |
10606 | ||
2cb0a60d DD |
10607 | 2009-06-17 David Daney <ddaney@caviumnetworks.com> |
10608 | ||
c637b0fa | 10609 | * jump.c (cleanup_barriers): Handle case of no insns before a barrier. |
2cb0a60d | 10610 | |
82882240 DE |
10611 | 2009-06-17 David Edelsohn <edelsohn@gnu.org> |
10612 | ||
10613 | * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode. | |
10614 | (nabstd2_fpr): Same. | |
10615 | ||
a1a65f89 SE |
10616 | 2009-06-17 Steve Ellcey <sje@cup.hp.com> |
10617 | ||
10618 | * expr.c (expand_assignment): Change complex type check. | |
10619 | ||
07ae5620 BS |
10620 | 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net> |
10621 | ||
f100a4a8 | 10622 | * doc/plugins.texi (Building GCC plugins): Added new section. |
07ae5620 | 10623 | |
5eb4df45 ILT |
10624 | 2009-06-17 Ian Lance Taylor <iant@google.com> |
10625 | ||
10626 | * c-pch.c (get_ident): Don't set size of templ array. | |
10627 | (pch_init): Don't set size of partial_pch array. | |
10628 | ||
10629 | * c-typeck.c (digest_init): If -Wc++-compat, warn about using a | |
10630 | string constant to intialize an array whose size is the length of | |
10631 | the string. | |
10632 | ||
4d61856d RG |
10633 | 2009-06-17 Richard Guenther <rguenther@suse.de> |
10634 | ||
10635 | PR tree-optimization/40389 | |
10636 | * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case | |
10637 | to addressable types. | |
10638 | * gimple.c (walk_stmt_load_store_addr_ops): Likewise. | |
10639 | ||
3cb8677c RG |
10640 | 2009-06-17 Richard Guenther <rguenther@suse.de> |
10641 | ||
10642 | PR middle-end/40460 | |
10643 | * tree-chrec.h (build_polynomial_chrec): If we cannot determine | |
10644 | if there is no evolution of left in the loop bail out. | |
10645 | * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one | |
10646 | chrec_fold_multiply. | |
10647 | ||
a4d99c86 R |
10648 | 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com> |
10649 | Janis Johnson <janis187@us.ibm.com> | |
10650 | ||
10651 | PR target/39254 | |
10652 | * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE | |
10653 | for the symbol ref of a constant that is the source of a move | |
10654 | - nor for any other not-obvious-label-ref constants. | |
10655 | ||
8dd1bca0 OR |
10656 | 2009-06-16 Olatunji Ruwase <tjruwase@google.com> |
10657 | ||
1469de3c | 10658 | * plugin.c (position_pass): Skip newly inserted pass during list |
8dd1bca0 OR |
10659 | traversal to avoid repeated insertion. |
10660 | ||
8019538f ILT |
10661 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
10662 | ||
10663 | * vec.h (VEC_stack_alloc): Define different version if | |
10664 | GATHER_STATISTICS is defined, to accept and ignore MEM_STAT. | |
10665 | (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL. | |
10666 | (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise. | |
10667 | (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise. | |
10668 | ||
7c45393e L |
10669 | 2009-06-16 H.J. Lu <hongjiu.lu@intel.com> |
10670 | ||
10671 | * config.gcc (extra_headers): Add ia32intrin.h for x86. | |
10672 | ||
10673 | * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI, | |
10674 | IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC. | |
10675 | IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI, | |
10676 | IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI. | |
10677 | (ix86_special_builtin_type): Add UINT64_FTYPE_VOID, | |
10678 | UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT, | |
c637b0fa | 10679 | INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT. |
7c45393e L |
10680 | (bdesc_special_args): Add __builtin_ia32_rdtsc and |
10681 | __builtin_ia32_rdtscp. | |
10682 | (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi, | |
10683 | __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi | |
c637b0fa | 10684 | and __builtin_ia32_rorhi. |
7c45393e L |
10685 | (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID, |
10686 | UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT, | |
c637b0fa | 10687 | INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT. |
7c45393e L |
10688 | (ix86_expand_args_builtin): Likewise. |
10689 | (ix86_expand_special_args_builtin): Likewise. | |
10690 | ||
10691 | * config/i386/i386.md (UNSPECV_RDTSCP): New. | |
10692 | (UNSPECV_RDTSC): Likewise. | |
10693 | (UNSPECV_RDPMC): Likewise. | |
c637b0fa | 10694 | (*bsr): Renamed to ... |
7c45393e | 10695 | (bsr): This |
c637b0fa | 10696 | (*bsr_rex64): Renamed to ... |
7c45393e L |
10697 | (bsr_rex64): This. |
10698 | (rdpmc): New. | |
10699 | (*rdpmc): Likewise. | |
10700 | (*rdpmc_rex64): Likewise. | |
10701 | (rdtsc): Likewise. | |
10702 | (*rdtsc): Likewise. | |
10703 | (*rdtsc_rex64): Likewise. | |
10704 | (rdtscp): Likewise. | |
10705 | (*rdtscp): Likewise. | |
10706 | (*rdtscp_rex64): Likewise. | |
10707 | ||
10708 | * config/i386/ia32intrin.h: New. | |
10709 | ||
10710 | * config/i386/x86intrin.h: Include <ia32intrin.h>. | |
10711 | ||
504b33d8 ILT |
10712 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
10713 | ||
10714 | * ira-build.c (copy_info_to_removed_store_destinations): | |
10715 | Initialize parent_a. | |
10716 | ||
f9551830 ILT |
10717 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
10718 | ||
10719 | * c-decl.c (grokdeclarator): Change size_varies to bool. | |
10720 | ||
c32e2175 ILT |
10721 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
10722 | ||
10723 | * sel-sched.c: Make forward declarations of move_op_hooks and | |
10724 | fur_hooks explicitly extern. | |
10725 | ||
415a06c2 ILT |
10726 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
10727 | ||
c637b0fa | 10728 | * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself. |
415a06c2 ILT |
10729 | * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself. |
10730 | ||
675f99c9 ILT |
10731 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
10732 | ||
10733 | * resource.c (mark_referenced_resources): Change | |
10734 | include_delayed_effects parameter to bool. Change all callers. | |
10735 | (mark_end_of_function_resources): Likewise. | |
10736 | * reorg.c (insn_references_resource_p): Likewise. | |
10737 | (insn_sets_resource_p): Likewise. | |
10738 | * resource.h (mark_referenced_resources): Update declaration. | |
10739 | (mark_end_of_function_resources): Update declaration. | |
10740 | ||
a322799d DE |
10741 | 2009-06-16 David Edelsohn <edelsohn@gnu.org> |
10742 | ||
10743 | * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++. | |
10744 | ||
c58c92f5 DE |
10745 | 2009-06-16 David Edelsohn <edelsohn@gnu.org> |
10746 | ||
10747 | * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap. | |
10748 | GCC can bootstrap on AIX with GNU Binutils 2.20. | |
10749 | ||
95228603 ILT |
10750 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
10751 | ||
10752 | * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H). | |
10753 | ||
9c727c9a ILT |
10754 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
10755 | ||
10756 | * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static | |
10757 | inline, not extern inline. | |
10758 | (exact_log2): Likewise. | |
10759 | * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't | |
10760 | test CLZ_HWI. | |
10761 | (exact_log2): Likewise, but don't test CTZ_HWI. | |
10762 | ||
5fd8300b ILT |
10763 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
10764 | ||
10765 | * bitmap.c (bitmap_clear): Don't declare as inline. | |
10766 | * gimple.c (gimplify_assign): Likewise. | |
10767 | * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise. | |
10768 | * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE. | |
10769 | (sched_scan_info): Remove duplicate definition. | |
10770 | ||
7d882b83 ILT |
10771 | 2009-06-16 Ian Lance Taylor <iant@google.com> |
10772 | ||
10773 | * c-common.c (skip_evaluation): Don't define. | |
10774 | (c_inhibit_evaluation_warnings): Define global variable. | |
10775 | (overflow_warning): Check c_inhibit_evaluation_warnings rather | |
10776 | than skip_evaluation. | |
10777 | (convert_and_check, warn_for_div_by_zero): Likewise. | |
10778 | * c-common.h (skip_evaluation): Don't declare. | |
10779 | (c_inhibit_evaluation_warnings): Declare. | |
10780 | * c-parser.c (c_parser_typeof_specifier): Set | |
10781 | c_inhibit_evaluation_warnings rather than skip_evaluation. | |
10782 | (c_parser_conditional_expression): Likewise. | |
10783 | (c_parser_binary_expression): Likewise. | |
10784 | (c_parser_sizeof_expression): Likewise. | |
10785 | (c_parser_alignof_expression): Likewise. | |
10786 | * c-typeck.c (build_indirect_ref): Check | |
10787 | c_inhibit_evaluation_warnings rather than skip_evaluation. | |
10788 | (build_conditional_expr, build_binary_op): Likewise. | |
10789 | ||
2e407842 RG |
10790 | 2009-06-16 Richard Guenther <rguenther@suse.de> |
10791 | ||
10792 | * tree-ssa-alias.c (is_escape_site): Remove. | |
10793 | * tree-ssa-alias.h (enum escape_type): Remove. | |
10794 | (is_escape_site): Likewise. | |
10795 | * tree-ssa-structalias.c (find_func_aliases): Handle escapes | |
10796 | via casts and asms without deferring to is_escape_site. | |
10797 | ||
f2ff8872 JJ |
10798 | 2009-06-16 Jakub Jelinek <jakub@redhat.com> |
10799 | ||
10800 | PR middle-end/40446 | |
10801 | * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't | |
10802 | use gen_lowpart if op0 has complex mode. | |
10803 | ||
de70bb20 RG |
10804 | 2009-06-16 Richard Guenther <rguenther@suse.de> |
10805 | ||
10806 | * tree-ssa-structalias.c (do_ds_constraint): Stores in global | |
10807 | variables add them to ESCAPED. | |
c637b0fa | 10808 | (find_func_aliases): Do not make all indirectly stored values escaped. |
de70bb20 | 10809 | |
daa0eeb8 RAE |
10810 | 2009-06-16 Rafael Avila de Espindola <espindola@google.com> |
10811 | ||
10812 | * config/i386/winnt.c (i386_pe_encode_section_info): Update call to | |
10813 | make_decl_one_only. | |
10814 | ||
0ec19b8c MJ |
10815 | 2009-06-16 Martin Jambor <mjambor@suse.cz> |
10816 | ||
10817 | PR tree-optimization/40432 | |
10818 | * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR, | |
10819 | check whether we need to force gimple register operand. | |
10820 | ||
2b26b801 MJ |
10821 | 2009-06-16 Martin Jambor <mjambor@suse.cz> |
10822 | ||
10823 | PR tree-optimization/40413 | |
10824 | * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to | |
10825 | build_ref_for_offset. | |
10826 | (propagate_subacesses_accross_link): Fix a typo in a comment. | |
10827 | ||
7c5222ff IR |
10828 | 2009-06-16 Ira Rosen <irar@il.ibm.com> |
10829 | ||
10830 | * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction | |
10831 | with additional parameter. | |
c637b0fa | 10832 | * tree-vectorizer.h (enum vect_def_type): Add new value |
7c5222ff IR |
10833 | vect_nested_cycle. |
10834 | (enum vect_relevant): Add comments. | |
10835 | (vect_is_simple_reduction): Add new argument. | |
10836 | * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments. | |
10837 | Detect nested cycles. | |
10838 | (vect_is_simple_reduction): Update documentation, add an argument to | |
10839 | distinguish inner-loop reduction from nested cycle, detect nested | |
10840 | cycles, fix printings and indentation, don't swap operands in case | |
10841 | of nested cycle. | |
10842 | (get_initial_def_for_reduction): Handle subtraction. | |
10843 | (vect_create_epilog_for_reduction): Add new argument to specify | |
10844 | reduction variable. | |
10845 | (vect_finalize_reduction): Handle subtraction, fix comments. | |
c637b0fa | 10846 | (vectorizable_reduction): Handle nested cycles. In case of nested |
f100a4a8 | 10847 | cycle keep track of the reduction variable position. Call |
7c8b1a77 | 10848 | vect_is_simple_reduction with additional parameter. Use original |
7c5222ff IR |
10849 | statement code in reduction epilogue for nested cycle. Call |
10850 | vect_create_epilog_for_reduction with additional parameter. | |
c637b0fa UB |
10851 | * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert |
10852 | inner-loop vectorization. | |
7c5222ff IR |
10853 | (vect_recog_widen_sum_pattern): Likewise. |
10854 | * tree-vect-stmts.c (process_use): Distinguish between nested cycles | |
10855 | and reductions. | |
10856 | (vect_mark_stmts_to_be_vectorized): Likewise. | |
10857 | (vect_get_vec_def_for_operand): Handle nested cycles. | |
10858 | ||
d376d545 RW |
10859 | 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
10860 | ||
10861 | * doc/invoke.texi (Debugging Options): Fix option index entries | |
10862 | for -fdump-statistics, -frandom-seed add entries for | |
10863 | -fdump-tree-original, -fdump-tree-optimized, -frandom-seed. | |
10864 | (FRV Options): Fix entries for -mTLS, -mtls. | |
10865 | (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld. | |
10866 | (i386 and x86-64 Options): Fix entry for -mno-red-zone. | |
10867 | (M68hc1x Options): Fix @itemx for -mnominmax. | |
10868 | (MCore Options): Fix entry for -mno-lsim. | |
10869 | (MMIX Options): Fix entry for -mabi=mmixware. | |
10870 | (PDP-11 Options): Fix entry for -mbcopy-builtin. | |
10871 | ||
bd117bb6 BS |
10872 | 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net> |
10873 | ||
10874 | * doc/plugins.texi (Interacting with the GCC Garbage Collector): | |
10875 | Mention the plugin mode of gengtype. | |
c637b0fa | 10876 | * doc/gty.texi (Source Files Containing Type Information): Likewise. |
bd117bb6 BS |
10877 | * gengtype.c: Updated copyright. |
10878 | (plugin_files, nb_plugin_files) Added new static variables. | |
10879 | (measure_input_list) Care about plugin_files. | |
10880 | (write_rtx_next): Added early return in plugin mode. | |
10881 | (create_file): Updated copyright year in generated file. Added | |
10882 | asserts. | |
10883 | (oprintf): Added early return if NULL outf. | |
10884 | (get_output_file_with_visibility): Care of plugin_files. | |
10885 | (get_output_file_name): May return null. | |
10886 | (write_local): Added early return. | |
10887 | (put_mangled_filename): Ditto. | |
10888 | (finish_root_table): Added check for base_files. | |
10889 | (write_roots): Care about null when plugins. | |
10890 | (main): Added plugin mode. | |
10891 | ||
e1b7793c ILT |
10892 | 2009-06-15 Ian Lance Taylor <iant@google.com> |
10893 | ||
c637b0fa | 10894 | * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch. |
e1b7793c ILT |
10895 | * gcov.c (read_count_file): Add braces around variables declared |
10896 | before label. | |
10897 | ||
10898 | * c.opt (Wjump-misses-init): New warning. | |
10899 | * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for | |
10900 | -Wall and -Wc++-compat if not already set. | |
10901 | (c_common_post_options): Clear warn_jump_misses_init if it was not | |
10902 | set. | |
10903 | * c-decl.c (struct c_binding): Change type field to a union with | |
10904 | new label field. Make it the first field in the struct. Update | |
10905 | references to type to use u.type instead. | |
10906 | (struct c_spot_bindings): Define. | |
10907 | (struct c_goto_bindings): Define. | |
10908 | (c_goto_bindings_p): Define, along with VECs. | |
10909 | (struct c_label_vars): Define. | |
10910 | (struct c_scope): Add has_label_bindings field. | |
10911 | (bind_label, set_spot_bindings): New static functions. | |
10912 | (decl_jump_unsafe, update_spot_bindings): New static functions. | |
10913 | (update_label_decls): New static function. | |
10914 | (pop_scope): Call update_label_decls. Don't call c_end_vm_scope. | |
10915 | Update binding u.label field to shadowed field. | |
10916 | (c_binding_start_stmt_expr): New function. | |
10917 | (c_binding_end_stmt_expr): New function. | |
10918 | (pushdecl): Don't call c_begin_vm_scope. | |
10919 | (make_label): Add defining and p_label_vars parameters. Change | |
10920 | all callers. | |
10921 | (lookup_label): Correct test for whether a label has not yet been | |
10922 | defined. Call bind_label rather than bind. | |
10923 | (warn_about_goto): New static function. | |
10924 | (lookup_label_for_goto): New function. | |
10925 | (declare_label): Call bind_label rather than bind. | |
10926 | (check_earlier_gotos): New static function. | |
10927 | (define_label): Don't give errors about jumping into statement | |
10928 | expressions or scopes of variably modified types. Call | |
10929 | set_spot_bindings and check_earlier_gotos. Call bind_label | |
10930 | instead of bind. Don't set label_context_stack_se or | |
10931 | label_context_stack_vm. | |
10932 | (c_get_switch_bindings): New function. | |
10933 | (c_release_switch_bindings): New function. | |
10934 | (c_check_switch_jump_warnings): New function. | |
10935 | (start_function): Don't set label_context_stack_se or | |
10936 | label_context_stack_vm. | |
10937 | (finish_function): Likewise. | |
10938 | * c-typeck.c (label_context_stack_se): Don't define. | |
10939 | (label_context_stack_vm): Don't define. | |
10940 | (c_finish_goto_label): Call lookup_label_for_goto rather than | |
10941 | lookup_label. Don't give errors about jumping into a statement | |
10942 | expression or the scope of a variably modified type. Don't set | |
10943 | label_context_stack_se or label_context_stack_vm. | |
10944 | (struct c_switch): Remove blocked_stmt_expr and blocked_vm | |
10945 | fields. Add bindings field. | |
10946 | (c_start_case): Don't set deleted fields. Set bindings field. | |
10947 | (do_case): Rework order of tests. Don't check blocked_stmt_expr | |
10948 | or blocked_vm. Call c_check_switch_jump_warnings. | |
10949 | (c_finish_case): Don't test blocked_stmt_expr field. Call | |
10950 | c_release_switch_bindings. | |
10951 | (c_begin_stmt_expr): Don't increment blocked_stmt_expr in | |
10952 | c_switch_stack. Don't walk label_context_stack_se labels. Don't | |
10953 | set label_context_stack_se. Call c_bindings_start_stmt_expr. | |
10954 | (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in | |
10955 | c_switch_stack. Don't walk label_context_stack_se labels. Don't | |
10956 | set label_context_stack_se. Call c_bindings_end_stmt_expr. | |
10957 | (c_begin_vm_scope, c_end_vm_scope): Don't define. | |
10958 | * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define. | |
10959 | (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define. | |
10960 | (C_DECL_UNJUMPABLE_VM): Don't define. | |
10961 | (C_DECL_UNDEFINABLE_VM): Don't define. | |
10962 | (struct c_label_list): Don't define. | |
10963 | (struct c_label_context_se): Don't define. | |
10964 | (struct c_label_context_vm): Don't define. | |
10965 | (struct c_spot_bindings): Declare. | |
10966 | (c_bindings_start_stmt_expr): Declare. | |
10967 | (c_bindings_end_stmt_expr): Declare. | |
10968 | (lookup_label_for_goto): Declare. | |
10969 | (c_get_switch_bindings, c_release_switch_bindings): Declare. | |
10970 | (c_check_switch_jump_warnings): Declare. | |
10971 | (label_context_stack_se, label_context_stack_vm): Don't declare. | |
10972 | (c_finish_goto_label): Update declaration. | |
10973 | (c_begin_vm_scope, c_end_vm_scope): Don't declare. | |
10974 | * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init. | |
10975 | (Warning Options): Document -Wjump-misses-init. | |
10976 | ||
98a129b9 JJ |
10977 | 2009-06-15 Jakub Jelinek <jakub@redhat.com> |
10978 | ||
10979 | * tree-object-size.c (addr_object_size): Fix a pasto in the last | |
10980 | change. | |
10981 | ||
19751f1f RAE |
10982 | 2009-06-15 Rafael Avila de Espindola <espindola@google.com> |
10983 | ||
10984 | * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP. | |
10985 | ||
d40eb158 AH |
10986 | 2009-06-15 Aldy Hernandez <aldyh@redhat.com> |
10987 | ||
10988 | * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl. | |
10989 | ||
10990 | 2009-06-15 Aldy Hernandez <aldyh@redhat.com> | |
10991 | ||
10992 | * tree-eh.c (lower_try_finally_switch): Initialize tf_loc. | |
10993 | ||
fc26fae3 RAE |
10994 | 2009-06-15 Rafael Avila de Espindola <espindola@google.com> |
10995 | ||
10996 | * cgraphunit.c (cgraph_function_versioning,save_inline_function_body): | |
10997 | Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY. | |
10998 | * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP. | |
10999 | * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP. | |
c637b0fa UB |
11000 | * dwarf2asm.c (dw2_force_const_mem): Update call to |
11001 | make_decl_one_only. | |
fc26fae3 RAE |
11002 | * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove. |
11003 | (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP. | |
11004 | * langhooks.c (lhd_comdat_group): Remove. | |
11005 | * langhooks.h (lang_hooks_for_decls): Remove comdat_group. | |
11006 | * tree.h (DECL_COMDAT_GROUP): New. | |
11007 | (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP. | |
11008 | (tree_decl_with_vis): Add comdat_group. Remove one_only. | |
11009 | (make_decl_one_only): Change signature. | |
11010 | * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to | |
11011 | make_decl_one_only. | |
11012 | (make_decl_one_only): Change signature. | |
11013 | (default_elf_asm_named_section): Use DECL_COMDAT_GROUP. | |
11014 | ||
0eb92735 RG |
11015 | 2009-06-15 Richard Guenther <rguenther@suse.de> |
11016 | ||
11017 | PR middle-end/40439 | |
11018 | * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts. | |
11019 | ||
0ab352d5 AK |
11020 | 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
11021 | ||
11022 | * tree-ssa-math-opts.c: Remove extra divide. | |
11023 | ||
677fbff4 AK |
11024 | 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
11025 | ||
11026 | * config/s390/s390.md ("bswap<mode>2"): Only available on z900. | |
11027 | ||
03bd2f1a AK |
11028 | 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
11029 | ||
11030 | * passes.c: Add bswap pass. | |
11031 | * tree-pass.h: Add pass_optimize_bswap declaration. | |
11032 | * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt. | |
11033 | Include rtl.h, expr.h and optabs.h for optab_handler check. | |
11034 | (struct symbolic_number, pass_optimize_bswap): New definition. | |
11035 | (do_shift_rotate, verify_symbolic_number_p): New functions. | |
11036 | (find_bswap_1, find_bswap, execute_optimize_bswap): New functions. | |
11037 | (gate_optimize_bswap): New function. | |
11038 | * tree.c (widest_int_cst_value): New function. | |
11039 | * tree.h (widest_int_cst_value): Prototype added. | |
11040 | ||
fb4c4640 SB |
11041 | 2009-06-14 Steven Bosscher <steven@gcc.gnu.org> |
11042 | ||
11043 | * cfgcleanup.c (old_insns_match_p): Remove code to substitute | |
11044 | REG_EQUAL/REG_EQUIV notes. | |
11045 | ||
1d24fdd9 RG |
11046 | 2009-06-14 Richard Guenther <rguenther@suse.de> |
11047 | ||
11048 | PR middle-end/40389 | |
11049 | * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call | |
11050 | has its address taken if NRV was applied and it is addressable. | |
11051 | * tree-ssa-structalias.c (get_constraint_for_address_of): New | |
11052 | function split out from ... | |
11053 | (get_constraint_for_1): ... here. | |
11054 | (handle_rhs_call): Use it to mark the return slot escaped if | |
11055 | it is addressable and NRV was applied. | |
11056 | ||
4b29c5e5 AH |
11057 | 2009-06-13 Aldy Hernandez <aldyh@redhat.com> |
11058 | ||
11059 | * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin): | |
11060 | Change first argument type to location_t. | |
11061 | * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same. | |
11062 | Do not set input_location. | |
11063 | Use loc instead of input_location throughout. | |
11064 | ||
e1e6dc73 RG |
11065 | 2009-06-13 Richard Guenther <rguenther@suse.de> |
11066 | ||
1d24fdd9 | 11067 | PR tree-optimization/40421 |
e1e6dc73 RG |
11068 | * tree-predcom.c (should_unroll_loop_p): Remove. |
11069 | (tree_predictive_commoning_loop): Use can_unroll_loop_p. | |
11070 | ||
8012b923 MM |
11071 | 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com> |
11072 | ||
11073 | * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): | |
11074 | Add location argument. | |
11075 | ||
4c4bde29 AH |
11076 | 2009-06-13 Aldy Hernandez <aldyh@redhat.com> |
11077 | ||
11078 | * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to | |
11079 | build_decl. | |
11080 | * config/s390/s390.c (s390_build_builtin_va_list): Same. | |
11081 | (s390_gimplify_va_arg): Pass location to create_artificial_label. | |
11082 | * config/spu/spu-protos.h: Add location to | |
11083 | spu_resolve_overloaded_builtin. | |
11084 | * config/spu/spu.c (spu_build_builtin_va_list): Pass location to | |
11085 | spu_build_builtin_va_list. | |
11086 | * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location | |
11087 | argument. Pass location to build_function_call_vec. | |
11088 | * config/sh/sh.c (sh_build_builtin_va_list): Pass location to | |
11089 | build_decl. | |
11090 | (emit_fpu_switch): Same. | |
11091 | (sh_gimplify_va_arg_expr): Pass location to create_artificial_label. | |
11092 | * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location | |
11093 | to build_decl and create_artificial_label. | |
11094 | (xtensa_gimplify_va_arg_expr): Same. | |
11095 | * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same. | |
11096 | (xstormy16_gimplify_va_arg_expr): Same. | |
11097 | * config/iq2000/iq2000.c (iq2000_expand_prologue): Same. | |
11098 | * config/arm/arm.c (arm_build_builtin_va_list): Same. | |
11099 | * config/mips/mips.c (mips_build_builtin_va_list): Same. | |
11100 | (mips16_build_function_stub): Same. | |
11101 | (mips16_build_call_stub): Same. | |
11102 | ||
81beb031 RE |
11103 | 2009-06-13 Richard Earnshaw <rearnsha@arm.com> |
11104 | ||
11105 | PR target/40327 | |
11106 | * arm/constraints.md (Pa, Pb): New constraints. | |
f100a4a8 | 11107 | * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a |
81beb031 RE |
11108 | split pattern to deal with them. |
11109 | ||
98f6c600 JS |
11110 | 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de> |
11111 | ||
11112 | * doc/invoke.texi: Add missing option -Wp,OPTION in list, | |
11113 | fix index entry for -Xpreprocessor. | |
11114 | ||
71856685 AH |
11115 | 2009-06-12 Aldy Hernandez <aldyh@redhat.com> |
11116 | ||
11117 | * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): | |
11118 | Add location argument to build_decl call. | |
11119 | * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same. | |
11120 | (rs6000_init_builtins): Same. | |
11121 | (spe_init_builtins): Same. | |
11122 | (rs6000_gimplify_va_arg): Add location argument to | |
11123 | create_artificial_label call. | |
11124 | ||
756b65f5 SB |
11125 | 2009-06-12 Steven Bosscher <steven@gcc.gnu.org> |
11126 | ||
11127 | * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar. | |
11128 | * combine-stack-adj.c (pass_stack_adjustments): Use it. | |
11129 | * Makefile.in: Fix GGC dependency for gcse.o. | |
11130 | ||
c2255bc4 AH |
11131 | 2009-06-12 Aldy Hernandez <aldyh@redhat.com> |
11132 | ||
11133 | * tree-pretty-print.c (dump_generic_node): Dump column numbers. | |
11134 | * gimple-pretty-print.c (dump_gimple_stmt): Same. | |
11135 | * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs | |
11136 | created. | |
11137 | * c-parser.c (c_parser_binary_expression): Use current column while | |
11138 | building binary operations. | |
11139 | * common.opt (fshow-column): Enable by default. | |
11140 | * tree-vrp.c (check_array_ref): Use warning_at. | |
11141 | (check_array_bounds): Use location from call back if expr has no | |
11142 | location. | |
11143 | * tree.h: Add location argument to maybe_fold_*. | |
11144 | * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*. | |
11145 | (maybe_fold_offset_to_array_ref): Add location argument and use it. | |
11146 | (maybe_fold_offset_to_component_ref): Same. | |
11147 | (maybe_fold_offset_to_reference): Same. | |
11148 | (maybe_fold_offset_to_address): Same. | |
11149 | (maybe_fold_stmt_indirect): Same. | |
11150 | (maybe_fold_stmt_addition): Same. | |
11151 | (fold_stmt_r): Pass location to maybe_fold_*. | |
11152 | (fold_gimple_assign): Same. | |
11153 | * c-tree.h: Add location argument to finish_decl, | |
11154 | default_function_array_conversion, store_init_value. | |
11155 | * c-decl.c (define_label): Use error_at. | |
11156 | (c_make_fname_decl): Pass location to finish_decl. | |
11157 | (finish_decl): New location argument. | |
11158 | (build_compound_literal): Pass location to store_init_value. | |
11159 | (grokdeclarator): Pass location to finish_decl. | |
11160 | (grokfield): Same. | |
11161 | * c-typeck.c (array_to_pointer_conversion): New location argument. | |
11162 | (function_to_pointer_conversion): Same. | |
11163 | (default_function_array_conversion): Same. | |
11164 | (parser_build_unary_op): Pass location to overflow_warning. | |
11165 | (parser_build_binary_op): Same. Use warning_at. | |
11166 | (build_unary_op): Pass location to array_to_pointer_conversion. | |
11167 | (build_c_cast): Pass location to digest_init. | |
11168 | (build_modify_expr): New location argument. | |
11169 | (convert_for_assignment): Same. | |
11170 | (store_init_value): Same. | |
11171 | (digest_init): Same. | |
11172 | (output_init_element): Pass location to digest_init and | |
11173 | array_to_pointer_conversion. | |
11174 | (c_finish_return): Pass location to convert_for_assignment. | |
11175 | * gimplify.c (gimplify_conversion): Pass location to | |
11176 | maybe_fold_offset_to_address. | |
11177 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location | |
11178 | to maybe_fold_stmt_addition. | |
11179 | * c-omp.c (c_finish_omp_atomic): Pass new location to | |
11180 | build_modify_expr. | |
11181 | (c_finish_omp_for): Same. | |
11182 | * c-common.c (overflow_warning): New argument. | |
11183 | * c-common.h: New argument to build_modify_expr, overflow_warning. | |
11184 | * c-parser.c (c_parser_declaration_or_fndef): Pass location to | |
11185 | finish_decl. | |
11186 | (c_parser_initializer): Pass location to | |
11187 | default_function_array_conversion. | |
11188 | (c_parser_initelt): Same. | |
11189 | (c_parser_initval): Same. | |
11190 | (c_parser_asm_operands): Same. | |
11191 | (c_parser_expr_no_commas): Same. Pass location to build_modify_expr. | |
11192 | (c_parser_conditional_expression): Same. | |
11193 | (c_parser_binary_expression): Add location info to stack. Use it. | |
11194 | (c_parser_unary_expression): Pass location to | |
11195 | default_function_array_conversion, parser_build_unary_op, | |
11196 | build_indirect_ref, c_parser_postfix_expression_after_primary. | |
11197 | (c_parser_postfix_expression_after_primary): New location argument. | |
11198 | Use it. | |
11199 | (c_parser_expression_conv): Pass location to | |
11200 | default_function_array_conversion. | |
11201 | (c_parser_expr_list): Same. | |
11202 | (c_parser_omp_atomic): Same. | |
11203 | (c_parser_omp_for_loop): Same. | |
11204 | * c-tree.h: (struct c_declarator): Add comment to id_loc. | |
11205 | (build_array_declarator): New argument. | |
11206 | * c-decl.c (build_array_declarator): Add location argument. | |
11207 | (grokdeclarator): Set id_loc for cdk_array. | |
11208 | * c-parser.c (c_parser_direct_declarator_inner): Pass location to | |
11209 | build_array_declarator. | |
11210 | * tree.c (build_omp_clause): Add location argument. | |
11211 | * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro. | |
11212 | (OMP_CLAUSE_LOCATION): New macro. | |
11213 | (struct tree_omp_clause): Add location field. | |
11214 | (build_omp_clause): Add argument. | |
11215 | * testsuite/gcc.dg/gomp/for-1.c: Fix column. | |
11216 | * cp/pt.c (tsubst_omp_for_iterator): Pass location to | |
11217 | build_omp_clause. | |
11218 | * cp/parser.c (cp_parser_omp_var_list_no_open): Same. | |
11219 | (cp_parser_omp_clause_collapse): Same. | |
11220 | (cp_parser_omp_clause_default): Same. | |
11221 | (cp_parser_omp_clause_if): Same. | |
11222 | (cp_parser_omp_clause_nowait): Same. | |
11223 | (cp_parser_omp_clause_num_threads): Same. | |
11224 | (cp_parser_omp_clause_ordered): Same. | |
11225 | (cp_parser_omp_clause_schedule): Same. | |
11226 | (cp_parser_omp_clause_untied): Same. | |
11227 | (cp_parser_omp_for_loop): Same. | |
11228 | (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses. | |
11229 | * c-tree.h (c_start_case): Add location argument. | |
11230 | (c_process_expr_stmt): Same. | |
11231 | (c_finish_goto_*): Same. | |
11232 | * tree-parloops.c (initialize_reductions): Pass location to | |
11233 | build_omp_clause. | |
11234 | (create_parallel_loop): Same. | |
11235 | * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same. | |
11236 | (gfc_trans_omp_reduction_list): Same. | |
11237 | (gfc_trans_omp_clauses): Same. | |
11238 | (gfc_trans_omp_do): Same. | |
11239 | * c-typeck.c (c_finish_goto_label): Same. | |
11240 | (c_finish_goto_ptr): New location argument. | |
11241 | (c_start_case): Same. | |
11242 | (emit_side_effect_warnings): Same. | |
11243 | (c_process_expr_stmt): Same. | |
11244 | (c_finish_stmt_expr): Same. | |
11245 | (c_finish_omp_clauses): Use error_at instead of error. | |
11246 | * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to | |
11247 | build_omp_clause. | |
11248 | * c-omp.c (c_split_parallel_clauses): New location argument. | |
11249 | * tree-nested.c (convert_nonlocal_reference_stmt): Pass location | |
11250 | to build_omp_clause. | |
11251 | (convert_local_reference_stmt): Same. | |
11252 | (convert_gimple_call): Same. | |
11253 | * c-common.h (c_split_parallel_clauses): New argument. | |
11254 | * c-parser.c (c_parser_statement_after_labels): Pass location to | |
11255 | c_finish_goto_label. | |
11256 | (c_parser_switch_statement): Pass location to c_start_case. | |
11257 | (c_parser_for_statement): Pass location to c_finish_expr_stmt, | |
11258 | and c_process_expr_stmt. | |
11259 | (c_parser_omp_variable_list): Add location argument. | |
c637b0fa | 11260 | (c_parser_omp_clause_collapse): Pass location to build_omp_clause. |
c2255bc4 AH |
11261 | (c_parser_omp_clause_default): Same. |
11262 | (c_parser_omp_clause_if): Same. | |
11263 | (c_parser_omp_clause_num_threads): Same. | |
11264 | (-c_parser_omp_clause_ordered): Same. | |
11265 | (c_parser_omp_clause_reduction): Pass location to | |
11266 | c_parser_omp_variable_list. | |
11267 | (c_parser_omp_clause_schedule): Pass location to build_omp_clause. | |
11268 | (c_parser_omp_clause_untied): Same. | |
11269 | (c_parser_omp_for_loop): Pass location to c_process_expr_stmt. | |
c637b0fa | 11270 | (c_parser_omp_parallel): Pass location to c_split_parallel_clauses. |
c2255bc4 AH |
11271 | |
11272 | * c-tree.h (check_for_loop_decls, undeclared_variable, | |
11273 | build_component_ref, build_array_ref, build_external_ref, | |
11274 | c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op, | |
11275 | build_conditional_expr, build_compound_expr, c_cast_expr, | |
11276 | build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr, | |
11277 | c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New | |
11278 | argument. | |
11279 | * c-semantics.c (build_stmt): Same. | |
11280 | (build_case_label): Same. | |
11281 | * c-decl.c (c_finish_incomplete_decl): Pass location on down. | |
11282 | (undeclared_variable): New argument. | |
11283 | (make_label): Same. | |
11284 | (lookup_label): Pass location on down. | |
11285 | (define_label): Same. | |
11286 | (finish_decl): Same. | |
11287 | (build_compound_literal): Same. | |
11288 | (finish_struct): Same. | |
11289 | (finish_function): Do not set location here. | |
11290 | (check_for_loop_decls): New argument. | |
11291 | * tree.c (save_expr): Set location. | |
11292 | (build_empty_stmt): New argument. | |
11293 | * tree.h (build_empty_stmt): New argument to build_empty_stmt. | |
11294 | (CAN_HAVE_LOCATION_P): Make sure we have a non empty node. | |
11295 | * builtins.c (gimplify_va_arg_expr): Use locations. | |
11296 | (expand_builtin_sync_operation): Same. | |
11297 | * c-typeck.c (build_component_ref): New argument. | |
11298 | (build_array_ref): Same. | |
11299 | (build_external_ref): Same. | |
11300 | (c_expr_sizeof_expr): Same. | |
11301 | (c_expr_sizeof_type): Same. | |
11302 | (parser_build_unary_op): Same. | |
11303 | (build_conditional_expr): Same. | |
11304 | (build_compound_expr): Pass location on down. | |
11305 | (build_compound_expr): New argument. | |
11306 | (build_c_cast): Same. | |
11307 | (c_cast_expr): Same. | |
11308 | (build_asm_expr): Same. | |
11309 | (c_finish_return): Same. | |
11310 | (c_process_expr_stmt): Pass location on down. | |
11311 | (c_finish_stmt_expr): New argument. | |
11312 | (push_clenaup): Same. | |
11313 | (c_finish_omp_parallel): Same. | |
11314 | (c_finish_omp_task): Same. | |
11315 | * gimplify.c (gimplify_call_expr): Pass location on down. | |
11316 | * c-omp.c (c_finish_omp_master): New argument. | |
11317 | (c_finish_omp_critical): Same. | |
11318 | (c_finish_omp_ordered): Same. | |
11319 | (c_finish_omp_barrier): Same. | |
11320 | (-c_finish_omp_taskwait): Same. | |
11321 | (c_finish_omp_atomic): Same. | |
11322 | (c_finish_omp_flush): Same. | |
11323 | * tree-inline.c (copy_tree_body_r): Pass location on down. | |
11324 | (inline_forbidden_p): Remove use of input_location. | |
11325 | * c-gimplify.c (c_build_bind_expr): New argument. | |
11326 | * c-common.c (c_common_truthvalue_conversion): Pass location on down. | |
11327 | (c_sizeof_or_alignof_type): New argument. | |
11328 | (c_alignof_expr): Same. | |
11329 | (build_va_arg): Same. | |
11330 | (c_add_case_label): Same. | |
11331 | * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr, | |
11332 | c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label, | |
11333 | c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt, | |
11334 | c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered, | |
11335 | c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush, | |
11336 | c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses): | |
11337 | New argument. | |
11338 | * stub-objc.c (objc_build_selector_expr): Same. | |
11339 | (objc_build_throw_stmt): Same. | |
11340 | * c-parser.c (c_parser_declaration_or_fndef): Pass location on down. | |
11341 | (c_parser_initelt): Same. | |
11342 | (c_parser_compound_statement): Same. | |
11343 | (c_parser_compound_statement_nostart): Same. | |
11344 | (c_parser_label): Same. | |
11345 | (c_parser_statement_after_labels): Same. | |
11346 | (c_parser_if_body): Same. | |
11347 | (c_parser_else_body): Same. | |
11348 | (c_parser_if_statement): Same. | |
11349 | (c_parser_switch_statement): Same. | |
11350 | (c_parser_while_statement): Same. | |
11351 | (c_parser_do_statement): Same. | |
11352 | (c_parser_for_statement): Same. | |
11353 | (c_parser_asm_statement): Same. | |
11354 | (c_parser_conditional_expression): Same. | |
11355 | (c_parser_binary_expression): Same. | |
11356 | (c_parser_cast_expression): Same. | |
11357 | (c_parser_unary_expression): Same. | |
11358 | (c_parser_sizeof_expression): Same. | |
11359 | (c_parser_alignof_expression): Same. | |
11360 | (c_parser_postfix_expression): Same. | |
11361 | (c_parser_expression): Same. | |
11362 | (c_parser_objc_receiver): Same. | |
11363 | (c_parser_omp_variable_list): Same. | |
11364 | (c_parser_omp_structured_block): Same. | |
11365 | (c_parser_omp_atomic): New argument. | |
11366 | (c_parser_omp_barrier): Same. | |
11367 | (c_parser_omp_critical): Same. | |
11368 | (c_parser_omp_flush): Pass location on down. | |
11369 | (c_parser_omp_for_loop): New argument. | |
11370 | (c_parser_omp_for): Same. | |
11371 | (c_parser_omp_master): Same. | |
11372 | (c_parser_omp_ordered): Same. | |
11373 | (c_parser_omp_sections_scope): Same. | |
11374 | (c_parser_omp_sections): Same. | |
11375 | (c_parser_omp_parallel): Same. | |
11376 | (c_parser_omp_single): Same. | |
11377 | (c_parser_omp_task): Same. | |
11378 | (c_parser_omp_taskwait): Pass location on down. | |
11379 | (c_parser_omp_construct): Same. | |
11380 | (c_parser_omp_threadprivate): Same. | |
11381 | * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h, | |
11382 | builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c, | |
11383 | tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c, | |
11384 | c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c, | |
11385 | c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c, | |
11386 | emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c, | |
11387 | rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h, | |
11388 | tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c, | |
11389 | config/i386/i386.c, stmt.c: | |
11390 | Add location argument to the following function definitions and/or | |
11391 | function calls: build_decl, objcp_start_struct, objcp_finish_struct, | |
11392 | start_struct, finish_struct, PUSH_FIELD, create_artificial_label, | |
11393 | cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl, | |
11394 | build_compound_literal, parser_xref_tag, resolve_overloaded_builtin, | |
11395 | do_case, c_finish_bc_stmt, build_compound_literal, | |
11396 | build_function_call. | |
11397 | * c-decl.c (build_compound_literal): Add location argument. | |
11398 | Make all diagnostic calls use location. | |
11399 | (start_struct): Same. | |
11400 | (finish_struct): Same. | |
11401 | (start_enum): Same. | |
11402 | (build_enumerator): Same. | |
11403 | (start_function): Same. | |
11404 | (grokdeclarator): Make all diagnostic calls use location. | |
11405 | (store_parm_decls_oldstyle): Same. | |
11406 | * c-typeck.c (build_function_call): Add location argument. | |
11407 | Make all diagnostic calls use location. | |
11408 | (do_case): Same. | |
11409 | (c_finish_bc_stmt): Same. | |
11410 | * tree-nested.c (get_trampoline_type): Add argument. | |
11411 | Pass location to build_decl. | |
11412 | (lookup_tramp_for_decl): Pass location to get_trampoline_type. | |
11413 | * rtl.h (RTL_LOCATION): New. | |
11414 | * c-common.c (c_add_case_label): Add location argument. | |
11415 | Make all diagnostic calls use location. | |
11416 | * c-common.h: Add location argument to make_fname_decl, do_case, | |
11417 | c_add_case_label, build_function_call, resolve_overloaded_builtin. | |
11418 | * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc. | |
11419 | Set it appropriately for every case. Pass enum_loc to start_enum | |
11420 | call. Pass value_loc first to build_enumerator. Pass enum_loc to | |
11421 | parser_xref_tag. | |
11422 | (c_parser_struct_or_union_specifier): Save location. Use it for | |
11423 | start_struct, finish_struct, and parser_xref_tag. | |
11424 | ||
3d8b2a98 ILT |
11425 | 2009-06-12 Ian Lance Taylor <iant@google.com> |
11426 | ||
c637b0fa | 11427 | * fold-const.c (fold_unary): Rename local variable and to and_expr. |
3d8b2a98 ILT |
11428 | |
11429 | * c-opts.c (c_common_handle_option): For -Wc++-compat set | |
11430 | cpp_opts->warn_cxx_operator_names. | |
11431 | ||
737142ce AP |
11432 | 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com> |
11433 | ||
11434 | PR tree-opt/38865 | |
11435 | * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup | |
11436 | is returns NULL and OP is a VCE, look through the VCE. | |
11437 | ||
d3a0d55d ILT |
11438 | 2009-06-12 Ian Lance Taylor <iant@google.com> |
11439 | ||
11440 | PR bootstrap/40430 | |
11441 | * collect2.c (main): Use CONST_CAST2 in code inside #if | |
11442 | LINK_ELIMINATE_DUPLICATE_LDIRECTORIES. | |
11443 | ||
f85882d8 JY |
11444 | 2009-06-12 Joey Ye <joey.ye@intel.com> |
11445 | ||
11446 | PR middle-end/39146 | |
11447 | * cfgexpand.c (get_decl_align_unit): Update | |
11448 | max_used_stack_slot_alignment with align instead of | |
11449 | stack_alignment_needed. | |
11450 | ||
11451 | * function.c (assign_stack_local_1): Update | |
11452 | max_used_stack_slot_alignment with alignment_in_bits instead | |
11453 | of stack_alignment_needed. | |
11454 | (locate_and_pad_parm): Don't update max_used_stack_slot_alignment | |
11455 | here. | |
11456 | ||
fc9f468b JJ |
11457 | 2009-06-12 Jakub Jelinek <jakub@redhat.com> |
11458 | ||
11459 | * dwarf2out.c (last_var_location_insn): New variable. | |
11460 | (dwarf2out_end_epilogue): Clear last_var_location_insn. | |
11461 | (dwarf2out_var_location): Don't record anything after last real | |
11462 | insn. Only change labels if there were any real instructions | |
11463 | in between last note and this one, or if changed sections. | |
11464 | ||
7c1db202 RH |
11465 | 2009-06-11 Richard Henderson <rth@redhat.com> |
11466 | ||
f85882d8 | 11467 | * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER |
15cb981a RH |
11468 | note when storing the frame pointer in a register. |
11469 | (FRP): Don't redefine to nothing for epilogue. | |
11470 | (alpha_expand_epilogue): Mark register and sp restores. | |
11471 | (unicosmk_gen_dsib): Don't mark weird frame pointer adjust. | |
11472 | ||
7c1db202 RH |
11473 | * config/alpha/alpha.c (alpha_emit_setcc): Fix test for |
11474 | when gen_lowpart is needed. | |
11475 | ||
f2ae7631 RH |
11476 | 2009-06-11 Richard Henderson <rth@redhat.com> |
11477 | ||
42755c21 RH |
11478 | * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset. |
11479 | ||
f2ae7631 RH |
11480 | * dwarf2out.c (need_data_align_sf_opcode): New. |
11481 | (div_data_align): Move earlier. | |
11482 | (def_cfa_1, reg_save): Use it. | |
11483 | ||
8ed0ce99 L |
11484 | 2009-06-11 H.J. Lu <hongjiu.lu@intel.com> |
11485 | ||
11486 | * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New. | |
11487 | (OPTION_MASK_ISA_CRC32_UNSET): Likewise. | |
11488 | (ix86_handle_option): Handle OPT_mcrc32. | |
11489 | (ix86_target_string): Add -mcrc32. | |
11490 | (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32. | |
11491 | ||
11492 | * config/i386/i386.h (TARGET_CRC32): New. | |
11493 | ||
c637b0fa | 11494 | * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32. |
8ed0ce99 L |
11495 | (sse4_2_crc32di): Likewise. |
11496 | ||
c637b0fa | 11497 | * config/i386/i386.opt (mcrc32): New. |
8ed0ce99 L |
11498 | |
11499 | * doc/invoke.texi: Document -mcrc32. | |
11500 | ||
9fd68a1f RH |
11501 | 2009-06-11 Richard Henderson <rth@redhat.com> |
11502 | ||
8ed0ce99 | 11503 | * common.opt (gdwarf-): Accept a version number. |
9fd68a1f RH |
11504 | * doc/invoke.texi (gdwarf-): Update docs. |
11505 | * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus. | |
11506 | * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf | |
11507 | version level, and record it. | |
11508 | ||
11509 | * dwarf2.h (DW_CIE_VERSION): Remove. | |
11510 | * dwarf2out.c (DWARF_VERSION): Remove. | |
11511 | (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3. | |
11512 | (output_call_frame_info): Use CIE version 3 for dwarf3, | |
11513 | or if the return register column is out of range for version 1. | |
11514 | (dwarf_stack_op_name): Add all dwarf3 values. | |
11515 | (DEBUG_PUBTYPES_SECTION): New. | |
11516 | (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr | |
11517 | encoding change for dwarf3. | |
11518 | (output_die) [dw_val_class_die_ref]: Likewise. | |
11519 | (output_compilation_unit_header): Emit correct version for dwarf3. | |
11520 | (output_line_info): Likewise. | |
11521 | (output_pubnames): Update for DWARF_VERSION removal. | |
11522 | (output_aranges): Likewise. | |
11523 | (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3. | |
11524 | (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION. | |
11525 | (dwarf2out_finish): Likewise. | |
11526 | ||
4de8ce3b DD |
11527 | 2009-06-11 David Daney <ddaney@caviumnetworks.com> |
11528 | ||
11529 | * system.h (gcc_assert, gcc_unreachable): Revert accidental commit | |
11530 | in r148403. | |
11531 | ||
468059bc DD |
11532 | 2009-06-11 David Daney <ddaney@caviumnetworks.com> |
11533 | ||
11534 | PR c/39252 | |
11535 | * doc/extend.texi ( __builtin_unreachable): Document new builtin. | |
11536 | * builtins.c (expand_builtin_unreachable): New function. | |
11537 | (expand_builtin): Handle BUILT_IN_UNREACHABLE case. | |
11538 | * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin. | |
11539 | * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no | |
11540 | successors. | |
11541 | * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when | |
11542 | searching for missing barriers. | |
11543 | ||
b5a6e96f FXC |
11544 | 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
11545 | ||
11546 | * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov | |
11547 | when -fprofile-generate* was passed. | |
11548 | * config/darwin9.h (LINK_COMMAND_SPEC): Likewise. | |
11549 | ||
6be6462e AG |
11550 | 2009-06-11 Anthony Green <green@moxielogic.com> |
11551 | ||
c637b0fa | 11552 | * config/moxie/moxie.md: Define length attribute for all instructions. |
6be6462e AG |
11553 | (rCC): Define. |
11554 | (*b<cond:code>): Support limited branch ranges for new PC-relative | |
11555 | branch instructions. | |
11556 | * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define. | |
11557 | ||
caaabe0a JJ |
11558 | 2009-06-11 Jakub Jelinek <jakub@redhat.com> |
11559 | ||
e5219642 JJ |
11560 | * config/i386/i386.c (min_insn_size): Use get_attr_length |
11561 | for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP. | |
11562 | For __asm return 0. | |
11563 | ||
caaabe0a JJ |
11564 | * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before |
11565 | instead of emit_insn_before. | |
11566 | ||
a567fa6a ILT |
11567 | 2009-06-10 Ian Lance Taylor <iant@google.com> |
11568 | ||
11569 | PR bootstrap/40408 | |
11570 | * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to | |
11571 | GIMPLE_SWITCH. | |
11572 | ||
6a753d5f RE |
11573 | 2009-06-10 Revital Eres <eres@il.ibm.com> |
11574 | ||
11575 | * passes.c (init_optimization_passes): Reschedule | |
11576 | predictive-commoning pass before complete unroll pass. | |
11577 | ||
a550d677 MJ |
11578 | 2009-06-10 Martin Jambor <mjambor@suse.cz> |
11579 | ||
11580 | * cgraph.c (cgraph_node_can_be_local_p): New function. | |
11581 | (cgraph_make_node_local): New function. | |
11582 | * cgraph.h (cgraph_node_can_be_local_p): Declare. | |
11583 | (cgraph_make_node_local): Declare. | |
11584 | ||
d8259b07 NF |
11585 | 2009-06-10 Nathan Froyd <froydnj@codesourcery.com> |
11586 | ||
11587 | * tree.h (tree_base): Add packed_flag and user_align fields. | |
11588 | Decrease size of spare field. | |
11589 | (TYPE_USER_ALIGN): Use user_align from tree_base. | |
11590 | (DECL_USER_ALIGN): Likewise. | |
11591 | (TYPE_PACKED): Use packed_flag from tree_base. | |
11592 | (DECL_PACKED): Likewise. | |
11593 | (tree_type): Delete packed_flag and user_align fields. Widen | |
11594 | precision field. Widen mode field and shuffle fields to align | |
11595 | mode on an 8-bit boundary. | |
11596 | (tree_decl_common): Delete decl_flag_1 and user_align fields. | |
11597 | Renumber decl_flag_* fields. Fix comments. Widen | |
11598 | decl_common_unused field. | |
c637b0fa | 11599 | (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields. |
d8259b07 NF |
11600 | (DECL_EXTERNAL): Likewise. |
11601 | (DECL_BIT_FIELD): Likewise. | |
11602 | (DECL_NONADDRESSABLE_P): Likewise. | |
11603 | (TYPE_DECL_SUPRESS_DEBUG): Likewise. | |
11604 | * config/arm/arm-modes.def (XImode): Make it an INT_MODE. | |
11605 | ||
c2569604 ILT |
11606 | 2009-06-10 Ian Lance Taylor <iant@google.com> |
11607 | ||
11608 | * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I. | |
11609 | (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P. | |
11610 | (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O. | |
11611 | (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc). | |
11612 | (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old | |
11613 | DEF_VEC_ALLOC_FUNC_P. | |
11614 | (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc). | |
11615 | (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old | |
11616 | DEF_VEC_ALLOC_FUNC_O. | |
11617 | (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc). | |
11618 | (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old | |
11619 | DEF_VEC_ALLOC_FUNC_I. | |
11620 | (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare. | |
11621 | (vec_stack_p_reserve_exact_1): Declare. | |
11622 | (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare. | |
11623 | (vec_stack_free): Declare. | |
11624 | (VEC_stack_alloc): Define. | |
11625 | (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define. | |
11626 | (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define. | |
11627 | (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define. | |
11628 | * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P | |
11629 | for void_p. | |
11630 | (stack_vecs): New static variable. | |
11631 | (vec_stack_p_reserve_exact_1): New function. | |
11632 | (vec_stack_o_reserve_1): New static function. | |
11633 | (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions. | |
11634 | (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions. | |
11635 | (vec_stack_free): New function. | |
11636 | * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK. | |
11637 | (VEC_df_ref_stack_alloc): Define. | |
11638 | (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and | |
11639 | DEF_VEC_ALLOC_P_STACK. | |
11640 | (VEC_df_mw_hardreg_ptr_stack_alloc): Define. | |
11641 | (struct df_collection_rec): Change _vec fields to VEC. Remove | |
11642 | _use fields. | |
11643 | (df_free_collection_rec): Adjust for new fields. | |
11644 | (df_insn_rescan): Use new df_collection_rec fields. | |
11645 | (df_notes_rescan, df_canonize_collection_rec): Likewise. | |
11646 | (df_ref_create_structure, df_ref_record): Likewise. | |
11647 | (df_get_conditional_uses, df_get_call_refs): Likewise. | |
11648 | (df_insn_refs_collect, df_bb_refs_collect): Likewise. | |
11649 | (df_bb_refs_record, df_record_entry_block_defs): Likewise. | |
11650 | (df_record_exit_block_uses, df_bb_verify): Likewise. | |
c637b0fa | 11651 | (df_swap_refs): Change ref_vec parameter to VEC. Change all callers. |
c2569604 ILT |
11652 | (df_sort_and_compress_refs): Change ref_vec parameter to VEC. |
11653 | Remove count parameter. Change return type to void. Change all | |
11654 | callers. | |
11655 | (df_sort_and_compress_mws): Change mw_vec parameter to VEC. | |
11656 | Remove count parameter. Change return type to void. Change all | |
11657 | callers. | |
11658 | (df_install_refs): Change old_vec parameter to VEC. Remove count | |
11659 | parameter. Change all callers. | |
11660 | (df_install_mws): Change old_vec parameter to VEC. Remove count | |
11661 | parameter. Change all callers. | |
11662 | (df_refs_verify): Change new_rec parameter to VEC. Change call | |
11663 | callers. | |
11664 | (df_mws_verify): Likewise. | |
11665 | ||
e7aae3e8 AO |
11666 | 2009-06-10 Alexandre Oliva <aoliva@redhat.com> |
11667 | ||
11668 | * gcc.c (compare_files): Cast munmap argumento to caddr_t. | |
11669 | ||
412ac8d5 L |
11670 | 2009-06-10 H.J. Lu <hongjiu.lu@intel.com> |
11671 | ||
11672 | * doc/extend.texi: Add description for __builtin_ia32_crc32di. | |
11673 | ||
cceb575c AG |
11674 | 2009-06-10 Anthony Green <green@moxielogic.com> |
11675 | ||
11676 | * config/moxie/crti.asm: New file. | |
11677 | * config/moxie/crtn.asm: New file. | |
11678 | * config/moxie/moxie.c: New file. | |
11679 | * config/moxie/moxie.h: New file. | |
11680 | * config/moxie/sfp-machine.h: New file. | |
11681 | * config/moxie/moxie-protos.h: New file. | |
11682 | * config/moxie/t-moxie: Created. | |
11683 | * config/moxie/t-moxie-softfp: Created. | |
11684 | * config/moxie/moxie.md: Created. | |
11685 | * config/moxie/constraints.md: Created. | |
11686 | * config.gcc: Add moxie support. | |
11687 | * doc/md.texi (Machine Constraints): Add moxie constraints. | |
11688 | * doc/contrib.texi (Contributors): Mention moxie port. | |
11689 | * doc/install.texi (Specific): Mention the moxie port. | |
11690 | ||
bf406687 ILT |
11691 | 2009-06-09 Ian Lance Taylor <iant@google.com> |
11692 | ||
11693 | * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if | |
11694 | compiling with C++. | |
11695 | * optabs.c (optab_table): Only use designated initializers if | |
11696 | HAVE_DESIGNATED_INITIALIZERS is defined. | |
11697 | (convert_optab_table): Likewise. | |
11698 | (init_optabs): Always call init_insn_codes if | |
11699 | HAVE_DESIGNATED_INITIALIZERS is not defined. | |
11700 | ||
744aa42f ILT |
11701 | 2009-06-09 Ian Lance Taylor <iant@google.com> |
11702 | ||
11703 | * targhooks.c (default_builtin_vectorized_function): Change fn | |
11704 | parameter to unsigned int. | |
11705 | (default_builtin_vectorized_conversion): Change code parameter to | |
11706 | unsigned int. | |
11707 | (default_builtin_reciprocal): Change fn parameter to unsigned int. | |
11708 | * targhooks.h: Update declarations. | |
11709 | * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code | |
11710 | parameter to unsigned int. | |
11711 | ||
11712 | * c-typeck.c (comptypes_check_enum_int): New static function. | |
11713 | (comptypes_internal): Add enum_and_int_p parameter. Change all | |
11714 | callers. | |
11715 | (comp_target_types): Add location parameter. Change all callers. | |
11716 | (tagged_types_tu_compatible_p): Add enum_and_int_p parameter. | |
11717 | Change all callers. | |
11718 | (function_types_compatible_p, type_lists_compatible_p): Likewise. | |
11719 | (build_conditional_expr): Add colon_loc parameter. Change all | |
11720 | callers. | |
c637b0fa | 11721 | (convert_for_assignment): Add location parameter. Change all callers. |
744aa42f ILT |
11722 | * c-parser.c (c_parser_conditional_expression): Pass location of |
11723 | colon to build_conditional_expr. | |
11724 | * c-tree.h (build_conditional_expr): Update declaration. | |
11725 | ||
bcbe3b25 SP |
11726 | 2009-06-09 Sebastian Pop <sebastian.pop@amd.com> |
11727 | ||
11728 | * graphite.c: Revert previous patch. | |
11729 | ||
dc2a6925 SP |
11730 | 2009-06-09 Sebastian Pop <sebastian.pop@amd.com> |
11731 | ||
11732 | PR bootstrap/40103 | |
11733 | * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat". | |
11734 | ||
d81f5387 GS |
11735 | 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com> |
11736 | ||
8ed0ce99 L |
11737 | * tree-ssa-loop-prefetch.c |
11738 | (loop_prefetch_arrays): Fixed a portability problem in printf format | |
11739 | string. | |
d81f5387 | 11740 | |
8056eb4f MJ |
11741 | 2009-06-09 Martin Jambor <mjambor@suse.cz> |
11742 | ||
11743 | PR tree-optimization/40351 | |
c637b0fa UB |
11744 | * tree-sra.c (propagate_subacesses_accross_link): Check that a |
11745 | refrence to a potential artifical subaccess can be constructed. | |
8056eb4f | 11746 | |
bd9a3465 KK |
11747 | 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org> |
11748 | ||
11749 | * config/sh/sh-protos.h (sh_optimization_options): Declare. | |
11750 | (sh_override_options): Likewise. | |
11751 | * config/sh/sh.c: Include params.h. | |
11752 | (sh_optimization_options): New. | |
11753 | (sh_override_options): Likewise. | |
11754 | * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options. | |
11755 | (OVERRIDE_OPTIONS): Use sh_override_options. | |
11756 | ||
8845deab JJ |
11757 | 2009-06-08 Jakub Jelinek <jakub@redhat.com> |
11758 | ||
11759 | * dwarf2out.c (emit_cfa_remember): New variable. | |
11760 | (add_fde_cfi): If emit_cfa_remember, recurse to add | |
11761 | DW_CFA_remember_state first. | |
11762 | (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state, | |
11763 | instead just set emit_cfa_remember. | |
11764 | ||
9ea81b0c JH |
11765 | 2009-06-08 Jan Hubicka <jh@suse.cz> |
11766 | ||
11767 | PR debug/40126 | |
11768 | * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table. | |
11769 | ||
21ecdec5 JH |
11770 | 2009-06-08 Jan Hubicka <jh@suse.cz> |
11771 | ||
11772 | PR middle-end/39834 | |
c637b0fa UB |
11773 | * cgraphunit.c (save_inline_function_body): Do not copy transform |
11774 | hooks for saved inline bodies. | |
21ecdec5 JH |
11775 | * ipa-passes.c (do_per_function): Do not add the hoks multiple times |
11776 | for given function. | |
11777 | ||
72e48218 AN |
11778 | 2009-06-08 Adam Nemet <anemet@caviumnetworks.com> |
11779 | ||
11780 | * jump.c (returnjump_p): Handle delayed branches. Add missing | |
11781 | function comment. | |
11782 | ||
6ce2002b JH |
11783 | 2009-06-08 Jan Hubicka <jh@suse.cz> |
11784 | ||
11785 | PR middle-end/40102 | |
11786 | * cgraph.c (cgraph_create_edge_including_clones): Also asume that the | |
11787 | original node might've been modified. | |
11788 | * tree-inline.c (copy_bb): Do not assume that all clones are the same. | |
11789 | ||
eb9ed98a JJ |
11790 | 2009-06-08 Jakub Jelinek <jakub@redhat.com> |
11791 | ||
11792 | * tree-object-size.c (addr_object_size): Add OSI argument. | |
11793 | Handle also INDIRECT_REF with SSA_NAME inside of it as base address. | |
11794 | (compute_builtin_object_size, expr_object_size): Adjust callers. | |
11795 | (plus_stmt_object_size): Call addr_object_size instead of | |
11796 | compute_builtin_object_size. | |
11797 | ||
db34470d | 11798 | 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com> |
8ed0ce99 | 11799 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> |
f100a4a8 UB |
11800 | |
11801 | * tree-ssa-loop-prefetch.c | |
11802 | (gather_memory_references): Introduced a counter for the number of | |
db34470d | 11803 | memory references. |
f100a4a8 | 11804 | (anything_to_prefetch_p): Introduced a counter for the number of |
db34470d | 11805 | prefetches. |
f100a4a8 | 11806 | (is_loop_prefetching_profitable): New function with a cost model |
db34470d | 11807 | for prefetching. |
f100a4a8 | 11808 | (loop_prefetch_arrays): Use the new cost model to determine if |
db34470d | 11809 | prefetching is profitable. |
f100a4a8 | 11810 | * params.def (MIN_INSN_TO_PREFETCH_RATIO, |
db34470d | 11811 | PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters. |
f100a4a8 | 11812 | * params.h (MIN_INSN_TO_PREFETCH_RATIO, |
db34470d | 11813 | PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters. |
f100a4a8 | 11814 | * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO, |
db34470d | 11815 | PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters. |
f100a4a8 | 11816 | |
eb7adebc MM |
11817 | 2009-06-08 Michael Matz <matz@suse.de> |
11818 | ||
11819 | PR debug/40012 | |
eb7adebc MM |
11820 | * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all |
11821 | partitions use the same. | |
11822 | (expand_one_var): Deal with DECL_RTL sometimes begin set also | |
11823 | for basevars of SSA_NAMEs. | |
11824 | (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs, | |
11825 | to not expand them twice. | |
11826 | (gimple_expand_cfg): Clear DECL_RTL for those decls that have | |
11827 | multiple places. | |
11828 | ||
2153915d AO |
11829 | 2009-06-08 Alexandre Oliva <aoliva@redhat.com> |
11830 | ||
11831 | * common.opt (fcompare-debug=, fcompare-debug-second): New. | |
11832 | (fdump-final-insns=, gtoggle): New. | |
11833 | * doc/invoke.texi: Document them. | |
11834 | * final.c (rest_of_clean_state): Dump final insn stream. | |
11835 | * gcc.c (invoke_as): Hook in -fcompare-debug. | |
11836 | (static_spec_functions): Add compare-debug-dump-opt, | |
11837 | compare-debug-self-opt and compare-debug-auxbase-opt. | |
11838 | (compare_debug, compare_debug_second, compare_debug_opt): New. | |
11839 | (switches_debug_check, n_switches_debug_check): New. | |
11840 | (debug_auxbase_opt, debug_check_temp_file): New. | |
11841 | (process_command): Handle -fno-compare-debug, -fcompare-debug and | |
11842 | -fcompare-debug=*. | |
11843 | (do_self_spec): Handle arguments after switches. | |
11844 | (do_spec_1): Add .gk extension to temp file basenames for compare. | |
11845 | (check_live_switch): Take SWITCH_IGNORE into account, and earlier. | |
11846 | (cc1_options): Use it instead of normal auxbase computation for | |
11847 | the second compare-debug compilation. | |
11848 | (compare_files): New. | |
11849 | (main): Set up and implement compare debug mode. | |
11850 | (compare_debug_dump_opt_spec_function): New. | |
11851 | (compare_debug_self_opt_spec_function): New. | |
11852 | (compare_debug_auxbase_opt_spec_function): New. | |
11853 | * toplev.c (process_options): Handle flag_gtoggle, | |
11854 | flag_dump_final_insns. | |
11855 | * coverage.c (coverage_begin_output): Don't overwrite .gcno file | |
11856 | during -fcompare-debug-second compilation. | |
11857 | ||
cdb88468 ILT |
11858 | 2009-06-07 Ian Lance Taylor <iant@google.com> |
11859 | ||
c637b0fa | 11860 | * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr. |
cdb88468 ILT |
11861 | * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define. |
11862 | ||
11863 | * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch | |
11864 | with no default node. Change warning with %H to warning_at. | |
11865 | Don't clear warn_switch around case checking. | |
11866 | * doc/invoke.texi (Warning Options): Clarify distinction between | |
11867 | -Wswitch and -Wswitch-enum. | |
11868 | ||
4fe8e1a2 BRF |
11869 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
11870 | ||
11871 | * tree-pass.h (TODO_update_ssa_any): Document internal use only. | |
11872 | ||
69952c1d BRF |
11873 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
11874 | ||
11875 | * gbl-ctors.h: Add header guard. | |
11876 | ||
b2ad0284 BRF |
11877 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
11878 | ||
11879 | * tree-flow.h (make_value_handle, set_value_handle, sort_vuses, | |
11880 | sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt, | |
11881 | vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses, | |
11882 | vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove | |
11883 | prototypes for removed functions. | |
11884 | (expressions_equal_p): Move to ... | |
11885 | * tree-ssa-sccvn.h: ... here and ... | |
11886 | * matrix-reorg.c: ... adjust includes. | |
11887 | ||
c3df55f9 BRF |
11888 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
11889 | ||
11890 | * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output. | |
11891 | ||
b5a7159f BRF |
11892 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
11893 | ||
11894 | * c-decl.c (finish_decl): Use bool for variable was_incomplete. | |
11895 | (finish_function): Remove erroneous whitespace. | |
11896 | ||
95bca6b0 BRF |
11897 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
11898 | ||
2cd713a0 BRF |
11899 | * tree-cfg.c (gimple_merge_blocks): Commentary typo fix. |
11900 | (verify_stmts): Print statement who's gimple_bb is set to a wrong BB | |
249eb506 BRF |
11901 | |
11902 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> | |
11903 | ||
11904 | * errors.c (internal_error): Commentary typo fix. | |
11905 | * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto. | |
11906 | * tree-ssa-pre.c: Ditto. | |
95bca6b0 | 11907 | |
2cd713a0 BRF |
11908 | 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
11909 | ||
11910 | * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of | |
11911 | them is supposed to hold actual statements. | |
11912 | ||
5bca4e80 ILT |
11913 | 2009-06-06 Ian Lance Taylor <iant@google.com> |
11914 | ||
11915 | * doc/extend.texi (Attribute Syntax): Document that C++ labels on | |
11916 | empty statements can now have attributes. | |
11917 | ||
47ac44d6 SZ |
11918 | 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com> |
11919 | ||
11920 | * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable. | |
11921 | * config/mips/mips.md: Ditto. | |
11922 | ||
19b905ce NF |
11923 | 2009-06-05 Nathan Froyd <froydnj@codesourcery.com> |
11924 | ||
11925 | * config/rs6000/eabi.asm (__eabi_convert): Don't define if | |
11926 | _RELOCATABLE. | |
11927 | (__eabi_uconvert): Likewise. | |
11928 | ||
16702e19 NF |
11929 | 2009-06-05 Nathan Froyd <froydnj@codesourcery.com> |
11930 | ||
11931 | * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and | |
11932 | CFI_* definitions with IN_GCC. | |
11933 | ||
a735afd1 DE |
11934 | 2009-06-05 David Edelsohn <edelsohn@gnu.org> |
11935 | ||
11936 | * xcoffout.h (xcoffout_source_line): Update prototype. | |
11937 | ||
26a347c5 KG |
11938 | 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
11939 | ||
11940 | * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use | |
11941 | mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM. | |
11942 | ||
9f706f23 JJ |
11943 | 2009-06-05 Jakub Jelinek <jakub@redhat.com> |
11944 | ||
11945 | PR middle-end/40340 | |
11946 | * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune | |
11947 | inlined_function_outer_scope_p blocks for artificial inlines | |
11948 | even at -g0/-g1. | |
11949 | * tree.c (tree_nonartificial_location): Rewrite using | |
11950 | block_nonartificial_location. | |
11951 | ||
8f439681 RE |
11952 | 2009-06-05 Revital Eres <eres@il.ibm.com> |
11953 | Leehod Baruch <leehod@il.ibm.com> | |
11954 | ||
11955 | * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF. | |
11956 | (expand_expr_real_1): Remove comment. | |
11957 | * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): | |
11958 | Vectorize misaligned access when the target supports it. | |
c637b0fa | 11959 | (vect_supportable_dr_alignment): Check for unaligned access support. |
8f439681 RE |
11960 | * tree-vect-stmts.c (vectorizable_store): Generate misaligned store |
11961 | and remove asset. | |
11962 | ||
b89f8e3c JB |
11963 | 2009-06-05 Julian Brown <julian@codesourcery.com> |
11964 | ||
11965 | * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP. | |
11966 | * config/arm/ieee754-sf.S (cmpsf2): Likewise. | |
11967 | ||
47d1f191 RG |
11968 | 2009-06-05 Richard Guenther <rguenther@suse.de> |
11969 | ||
11970 | PR bootstrap/40350 | |
11971 | * dwarf2out.c (dwarf2out_begin_function): Mark discriminator | |
11972 | as possibly unused. | |
11973 | ||
9f706f23 | 11974 | 2009-06-05 Jakub Jelinek <jakub@redhat.com> |
75707b28 JJ |
11975 | |
11976 | * config/s390/s390.c (global_not_special_regno_p): New static inline. | |
11977 | (save_gprs): Don't tell unwinder when a global register is saved. | |
11978 | (s390_emit_epilogue): Emit needed epilogue unwind info. | |
11979 | ||
90f06248 AO |
11980 | 2009-06-05 Alexandre Oliva <aoliva@redhat.com> |
11981 | ||
11982 | * dwarf2out.c (deferred_asm_name): New. | |
11983 | (add_name_and_src_coords_attributes): Defer creation of | |
11984 | DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not | |
11985 | computed yet. | |
11986 | (move_linkage_attr): New. | |
11987 | (dwarf2out_finish): Revisit deferrals and emit attributes at the | |
11988 | right place. | |
11989 | ||
c10348e5 AO |
11990 | 2009-06-05 Alexandre Oliva <aoliva@redhat.com> |
11991 | ||
11992 | * tree-nested.c (finalize_nesting_tree_1): Declare the | |
11993 | frame_decl in the binding tree. | |
11994 | ||
6c52e687 CC |
11995 | 2009-06-04 Cary Coutant <ccoutant@google.com> |
11996 | ||
11997 | * basic-block.h (struct basic_block_def): Add discriminator field. | |
11998 | * dbxout.c (dbxout_source_line): Add new parameter. Change all | |
11999 | callers. | |
12000 | * debug.c (do_nothing_debug_hooks): Add additional entry. | |
12001 | (debug_nothing_int_charstar_int): New function. | |
c637b0fa | 12002 | * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook. |
6c52e687 CC |
12003 | (debug_nothing_int_charstar_int): New declaration. |
12004 | * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write | |
12005 | discriminator value in .loc directive. | |
12006 | * final.c (last_discriminator): New variable. | |
12007 | (discriminator): New variable. | |
12008 | (final_start_function): Initialize above variables, pass current | |
12009 | discriminator to debug hook. | |
12010 | (notice_source_line): Check for discriminator change. | |
12011 | * gimple-pretty-print.c (dump_bb_header): Print discriminator value. | |
12012 | * sdbout.c (sdbout_source_line): New parameter. | |
12013 | * tree-cfg.c (struct locus_discrim_map): New structure type. | |
12014 | (discriminator_per_locus): New hash table. | |
12015 | (build_gimple_cfg): Allocate and free discriminator hash table. | |
12016 | (make_edges): Call assign_discriminator. | |
12017 | (locus_map_hash): New function. | |
12018 | (locus_map_eq): New function. | |
12019 | (next_discriminator_for_locus): New function. | |
12020 | (same_line_p): New function. | |
12021 | (assign_discriminator): New function. | |
12022 | (make_cond_expr_edges): Call assign_discriminator. | |
12023 | (make_gimple_switch_edges): Likewise. | |
12024 | (first_non_label_stmt): New function. | |
12025 | * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change | |
12026 | all callers. | |
12027 | * xcoffout.c (xcoffout_source_line): Add new parameter. | |
12028 | ||
12029 | * configure.ac (gcc_cv_as_discriminator): New configury check for | |
12030 | gas support for discriminator. | |
12031 | * configure: Regenerate. | |
12032 | * config.in: Regenerate. | |
12033 | ||
e07e020b RR |
12034 | 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
12035 | ||
12036 | * config/arm/arm.c (thumb2_legitimate_index_p): Initialize | |
12037 | val after checking for integers. | |
12038 | ||
72fa3605 UB |
12039 | 2009-06-04 Uros Bizjak <ubizjak@gmail.com> |
12040 | ||
12041 | * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from | |
12042 | X64_REGPARM_MAX. | |
12043 | (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX. | |
12044 | (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX. | |
12045 | (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX. | |
12046 | * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of | |
12047 | X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of | |
12048 | X64_SSE_REGPARM_MAX. | |
12049 | * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of | |
12050 | X64_SSE_REGPARM_MAX. | |
12051 | ||
bdde878c AO |
12052 | 2009-06-04 Alexandre Oliva <aoliva@redhat.com> |
12053 | ||
12054 | * gcc.c (report_times_to_file): New. | |
12055 | (execute): Implement it. | |
12056 | (process_command): Support -time=. | |
12057 | * doc/invoke.texi: Document it. | |
12058 | ||
2ce59df7 AO |
12059 | 2009-06-04 Alexandre Oliva <aoliva@redhat.com> |
12060 | ||
12061 | * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables | |
12062 | that have value exprs. | |
12063 | ||
78bd9046 AO |
12064 | 2009-06-04 Alexandre Oliva <aoliva@redhat.com> |
12065 | ||
12066 | * dwarf2asm.c (dw2_force_const_mem): Defer creation of | |
12067 | declarations for constants until... | |
12068 | (dw2_output_indirect_constant_1): ... this point. | |
12069 | ||
e63d4106 RE |
12070 | 2009-06-04 Richard Earnshaw <rearnsha@arm.com> |
12071 | ||
12072 | PR target/10242 | |
12073 | * arm.md (arm_addsi3): Don't try to split an add with an | |
12074 | eliminable register until after reload has completed. | |
12075 | ||
6bc7bc14 ILT |
12076 | 2009-06-03 Ian Lance Taylor <iant@google.com> |
12077 | ||
12078 | * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST. | |
12079 | * genattrtab.c (write_length_unit_log): Likewise. | |
12080 | * genchecksum.c (dosum): Likewise. | |
12081 | * gengtype.c (write_rtx_next): Likewise. | |
12082 | (finish_root_table, write_roots): Likewise. | |
12083 | * gimple.c (gimple_ops_offset_): Likewise. | |
12084 | * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise. | |
12085 | * config/arc/arc.c (arc_attribute_table): Likewise. | |
12086 | * config/arm/arm.c (arm_attribute_table): Likewise. | |
12087 | * config/avr/avr.c (avr_attribute_table): Likewise. | |
12088 | * config/crx/crx.c (crx_attribute_table): Likewise. | |
12089 | * config/m32r/m32r.c (m32r_attribute_table): Likewise. | |
12090 | * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise. | |
12091 | * config/mcore/mcore.c (mcore_attribute_table): Likewise. | |
12092 | * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise. | |
12093 | * config/sh/sh.c (sh_attribute_table): Likewise. | |
12094 | * config/sparc/sparc.c (sparc_attribute_table): Likewise. | |
12095 | * config/spu/spu.c (spu_attribute_table): Likewise. | |
12096 | * config/v850/v850.c (v850_attribute_table): Likewise. | |
12097 | ||
12098 | * config/alpha/alpha.c (vms_attribute_table): Make static. | |
12099 | * config/bfin/bfin.c (bfin_attribute_table): Likewise. | |
12100 | * config/h8300/h8300.c (h8300_attribute_table): Likewise. | |
12101 | * config/mips/mips.c (mips_attribute_table): Likewise. | |
12102 | ||
12103 | * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and | |
12104 | $(SYSTEM_H). | |
12105 | (cc1-checksum.o): Likewise. | |
12106 | ||
19d892fd SE |
12107 | 2009-06-03 Steve Ellcey <sje@cup.hp.com> |
12108 | ||
12109 | * config/ia64/vect.md (*movv2sf_internal): Handle big endian case. | |
12110 | ||
679f3354 JJ |
12111 | 2009-06-03 Jakub Jelinek <jakub@redhat.com> |
12112 | ||
ff35822b JJ |
12113 | * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated |
12114 | insn if it is changing sp. Use gen_add3_insn instead of | |
12115 | conditionally gen_addsi3 and gen_adddi3. | |
12116 | (offset_below_red_zone_p): New static inline function. | |
12117 | (rs6000_emit_epilogue): Emit needed epilogue unwind info. | |
12118 | Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3. | |
12119 | * config/rs6000/ppc-asm.h: Include auto-host.h. | |
12120 | (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET, | |
12121 | CFI_RESTORE): Define. | |
12122 | * config/rs6000/crtresxgpr.asm: Add unwind info. | |
12123 | * config/rs6000/crtresxfpr.asm: Likewise. | |
12124 | * config/rs6000/crtresgpr.asm: Likewise. | |
12125 | * config/rs6000/crtresfpr.asm: Likewise. | |
12126 | * config/rs6000/crtsavgpr.asm: Likewise. | |
12127 | * config/rs6000/crtsavfpr.asm: Likewise. | |
12128 | ||
dc6707b8 UB |
12129 | * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second |
12130 | argument of DWARF2_FRAME_REG_OUT macros. | |
679f3354 | 12131 | |
2e94c12d JB |
12132 | 2009-06-03 Julian Brown <julian@codesourcery.com> |
12133 | ||
12134 | * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four | |
12135 | words or less (including TImode) in core registers. | |
12136 | ||
3111cce0 RG |
12137 | 2009-06-03 Richard Guenther <rguenther@suse.de> |
12138 | ||
12139 | PR middle-end/40328 | |
12140 | * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR. | |
12141 | ||
5e1b50f6 AB |
12142 | 2009-06-03 Andrey Belevantsev <abel@ispras.ru> |
12143 | ||
f100a4a8 | 12144 | * statistics.c (statistics_counter_event): Do not record event |
5e1b50f6 | 12145 | in pass dump if its number == -1. |
f100a4a8 | 12146 | (curr_statistics_hash): Add assert that we never get passes |
5e1b50f6 AB |
12147 | with static number == -1. |
12148 | ||
6f11d690 RG |
12149 | 2009-06-03 Richard Guenther <rguenther@suse.de> |
12150 | Andrey Belevantsev <abel@ispras.ru> | |
12151 | ||
f100a4a8 | 12152 | * cfgexpand.c (discover_nonconstant_array_refs_r): Make only |
6f11d690 RG |
12153 | non-BLKmode arrays addressable. |
12154 | ||
88961471 MK |
12155 | 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com> |
12156 | ||
12157 | * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ... | |
12158 | * config/m68k/m68k.h: ... here. | |
12159 | * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for | |
12160 | m68k and fido. | |
12161 | ||
9961eb45 MJ |
12162 | 2009-06-03 Martin Jambor <mjambor@suse.cz> |
12163 | ||
12164 | PR tree-optimization/40323 | |
12165 | * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single | |
12166 | assignment. | |
12167 | ||
2f2c62a0 RG |
12168 | 2009-06-03 Richard Guenther <rguenther@suse.de> |
12169 | ||
12170 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE | |
12171 | consistently. | |
12172 | ||
d6ced3b7 SZ |
12173 | 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com> |
12174 | ||
12175 | * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, | |
12176 | JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and | |
12177 | JUMP_TABLE_DATA_P where applicable. | |
12178 | * config/sh/sh.c: Ditto. | |
12179 | * config/sh/sh.h: Ditto. | |
12180 | * config/sh/sh.md: Ditto. | |
12181 | * config/sh/symbian.c: Ditto. | |
12182 | ||
f3afc8a7 UB |
12183 | 2009-06-03 Uros Bizjak <ubizjak@gmail.com> |
12184 | ||
12185 | * config/i386/driver-i386.c (describe_cache): Optimize | |
12186 | concatenation of strings. Use snprintf instead of sprintf. | |
12187 | (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native | |
12188 | target when not compiling with GCC. | |
12189 | ||
1964788a KK |
12190 | 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org> |
12191 | ||
12192 | * config/sh/sh.c: Revert last change. | |
12193 | (sh_expand_epilogue): Emit a blockage insn before the frame | |
12194 | pointer adjustment unconditionally. | |
12195 | ||
8633c315 RS |
12196 | 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> |
12197 | ||
12198 | * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program". | |
12199 | * config/pa/pa-hpux10.h (LINK_SPEC): Likewise. | |
12200 | * config/pa/pa-hpux11.h (LINK_SPEC): Likewise. | |
12201 | * gcc.c (set_collect_gcc_options): Don't add -fwhole-program | |
12202 | to COLLECT_GCC_OPTIONS. | |
12203 | ||
781a1758 RS |
12204 | 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> |
12205 | ||
12206 | * collect2.c (target_system_root): New variable. | |
12207 | (main): Handle --sysroot=. | |
12208 | (ignore_library): Strip the sysroot from the library path. | |
12209 | ||
dfb636dc RS |
12210 | 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> |
12211 | ||
12212 | * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o. | |
12213 | (collect2.o): Depend on collect2-aix.h. | |
12214 | (collect2-aix.o): New rule. | |
12215 | * collect2-aix.h: New file. | |
12216 | * collect2-aix.c: Likewise. | |
12217 | * collect2.c: Include collect2-aix.h. Don't undefine | |
12218 | OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined. | |
12219 | Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE. | |
12220 | Use TARGET_AIX_VERSION instead of _AIX51. | |
12221 | * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define. | |
12222 | * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise. | |
12223 | * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise. | |
12224 | * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise. | |
12225 | * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise. | |
12226 | ||
51136ae8 RS |
12227 | 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> |
12228 | ||
12229 | * collect2.c (ignore_library): Avoid premature post-increment | |
12230 | and null deference. | |
12231 | ||
7f142d33 RS |
12232 | 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> |
12233 | ||
12234 | * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT. | |
12235 | * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the | |
12236 | !CROSS_DIRECTORY_STRUCTURE alternative and use it for | |
12237 | CROSS_DIRECTORY_STRUCTURE too. | |
12238 | (LINK_LIBG_SPEC): Likewise. | |
12239 | (LIB_SPEC): Add %R to sysroot paths. | |
12240 | * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths. | |
12241 | (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise. | |
12242 | * config/rs6000/aix51.h: As for aix43.h. | |
12243 | * config/rs6000/aix52.h: Likewise. | |
12244 | * config/rs6000/aix53.h: Likewise. | |
12245 | * config/rs6000/aix61.h: Likewise. | |
12246 | * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT) | |
12247 | to the beginning of sysroot paths. | |
12248 | ||
9e74b7d2 AO |
12249 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12250 | ||
12251 | * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and | |
12252 | INSN_LISTs that are out of the REG_NOTE range. | |
12253 | ||
a9f6ecee AO |
12254 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12255 | ||
12256 | * loop-unroll.c (struct iv_to_split): Add pointer to next. | |
12257 | (struct var_to_expand): Likewise. | |
12258 | (struct opt_info): Add head and tail for linked lists of the above. | |
12259 | (analyze_insn_to_expand_var): Initialize next. | |
12260 | (analyze_iv_to_split_insn): Likewise. | |
12261 | (analyze_insns_in_loop): Create linked lists. | |
12262 | (allocate_basic_variable): Simplify for use without hash table. | |
12263 | (insert_var_expansion_initialization): Likewise, make it type-safer. | |
12264 | (combine_var_copies_in_loop_exit): Likewise. | |
12265 | (apply_opt_in_copies): Walk lists rather than hash tables. | |
12266 | (release_var_copies): Simplified and inlined by hand into... | |
12267 | (free_opt_info): ... this function. | |
12268 | ||
69596c69 RG |
12269 | 2009-06-02 Richard Guenther <rguenther@suse.de> |
12270 | ||
12271 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE | |
12272 | for field decls. | |
12273 | ||
fe8a7779 AO |
12274 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12275 | ||
12276 | * cfgexpand.c (gimple_expand_cfg): Discard the source location | |
12277 | only for builtins that are not overridden. | |
12278 | ||
1bcca2c5 AO |
12279 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12280 | ||
12281 | * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's | |
12282 | label string. | |
12283 | ||
8588f797 AO |
12284 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12285 | ||
12286 | * df-core.c (df_ref_debug): Honor -fdump-noaddr. | |
12287 | ||
45f39d78 AO |
12288 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12289 | ||
12290 | * combine.c (move_deaths): Compare LUIDs within the same BB only. | |
12291 | ||
2aa7c49b AO |
12292 | 2009-06-02 Alexandre Oliva <aoliva@redhat.com> |
12293 | ||
12294 | * common.opt (fdump-unnumbered-links): New. | |
12295 | * doc/invoke.texi (-fdump-unnumbered-links): Document it. | |
12296 | * print-rtl.c (flag_dump_unnumbered_links): New. | |
12297 | (print_rtx): Test it. | |
12298 | ||
55b2829b RE |
12299 | 2009-06-02 Richard Earnshaw <rearnsha@arm.com> |
12300 | ||
12301 | * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a | |
12302 | push/pop multiple to 8-byte alignment. | |
e63d4106 | 12303 | |
6c0d7021 JJ |
12304 | 2009-06-01 Jakub Jelinek <jakub@redhat.com> |
12305 | ||
0aa34d44 JJ |
12306 | * config/i386/i386.c (queued_cfa_restores): New static variable. |
12307 | (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New | |
12308 | functions. | |
12309 | (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes. | |
12310 | (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument. | |
12311 | Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note. | |
12312 | Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET | |
12313 | note unconditionally. | |
12314 | (ix86_emit_restore_regs_using_mov): Likewise. | |
12315 | (ix86_emit_restore_sse_regs_using_mov): Likewise. | |
12316 | (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass | |
12317 | it through to ix86_emit_restore_reg_using_pop. | |
12318 | (ix86_emit_leave): Add RED_OFFSET argument. Call | |
12319 | ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note | |
12320 | instead of adding REG_CFA_OFFSET note unconditionally. | |
12321 | (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to | |
12322 | the above functions. Call ix86_add_queued_cfa_restore_notes when | |
12323 | needed. | |
12324 | ||
12325 | * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true, | |
12326 | force output of the label even for dwarf2out_do_cfi_asm. | |
12327 | (add_fde_cfi): If -g2 and above and cfi might change CFA, | |
12328 | force creation of CFI label and chain DW_CFA_set_loc jumping to it | |
12329 | for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label | |
12330 | caller. | |
12331 | (dwarf2out_stack_adjust, dwarf2out_frame_debug, | |
12332 | dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust | |
12333 | dwarf2out_cfi_label callers. | |
12334 | * tree.h (dwarf2out_cfi_label): Adjust prototype. | |
12335 | * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue): | |
12336 | Adjust dwarf2out_cfi_label callers. | |
12337 | * config/vax/vax.c (vax_output_function_prologue): Likewise. | |
12338 | ||
604a6be9 JJ |
12339 | * config/i386/i386.h (struct machine_cfa_state, |
12340 | struct machine_function): Guard with ifndef USED_FOR_TARGET | |
12341 | instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS. | |
12342 | ||
df0026a7 JJ |
12343 | PR other/40024 |
12344 | * emutls.c (__emutls_get_address): Change arr->size to mean number | |
12345 | of allocated arr->data entries instead of # of slots + 1. | |
12346 | ||
6c0d7021 JJ |
12347 | PR middle-end/40316 |
12348 | * recog.c (peep2_reinit_state): New function. | |
12349 | (peephole2_init_state): Use it at the end of a basic block and also | |
12350 | when seeing a RTX_FRAME_RELATED_P insn. | |
12351 | ||
49df2fb8 SE |
12352 | 2009-06-01 Steve Ellcey <sje@cup.hp.com> |
12353 | ||
12354 | * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf, | |
12355 | fixuns_truncrfdi2): New. | |
12356 | (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts, | |
12357 | *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts, | |
12358 | *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts, | |
12359 | *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf, | |
12360 | *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts, | |
12361 | *recip_approx): Remove. | |
12362 | (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3, | |
12363 | moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr, | |
12364 | divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and | |
12365 | move to div.md. | |
12366 | * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt, | |
12367 | setf_exp_rf): New. | |
12368 | ||
67165eb3 ILT |
12369 | 2009-06-01 Ian Lance Taylor <iant@google.com> |
12370 | ||
12371 | * attribs.c (register_attribute): Use CONST_CAST. | |
12372 | * collect2.c (main): Use CONST_CAST2. | |
12373 | (scan_prog_file): Likewise. | |
12374 | * gcc.c (process_command, main): Likewise. | |
12375 | * toplev.c (toplev_main): Likewise. | |
12376 | ||
12377 | * c-typeck.c (handle_warn_cast_qual): New static function, | |
12378 | partially broken out of build_c_cast. | |
12379 | (build_c_cast): Call handle_warn_cast_qual. | |
12380 | * doc/invoke.texi (Warning Options): Document new effect of | |
12381 | -Wcast-qual. | |
12382 | ||
e74fe492 AH |
12383 | 2009-06-01 Aldy Hernandez <aldyh@redhat.com> |
12384 | ||
12385 | * diagnostic.c (diagnostic_build_prefix): Always print columns. | |
12386 | (diagnostic_report_current_module): Print columns. | |
12387 | * common.opt (flag_show_column): Enable by default. | |
12388 | ||
7eba2d1f LM |
12389 | 2009-06-01 Luis Machado <luisgpm@br.ibm.com> |
12390 | ||
12391 | * alias.c (find_base_term): Check for NULL term before returning. | |
12392 | ||
ee88d9aa MK |
12393 | 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com> |
12394 | ||
12395 | Revert due to PR40320: | |
ee88d9aa MK |
12396 | 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com> |
12397 | * calls.c (emit_library_call_value_1): Don't force_operand for move | |
12398 | and push insns. | |
12399 | ||
324c9b02 | 12400 | 2009-06-01 Olivier Hainque <hainque@adacore.com> |
40d0d9e4 | 12401 | Eric Botcazou <ebotcazou@adacore.com> |
324c9b02 OH |
12402 | |
12403 | * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is | |
12404 | to be processed as a bitfield for constructor output purposes. | |
12405 | * output.h (initializer_constant_valid_for_bitfield_p): Declare | |
12406 | new function. | |
12407 | * varasm.c (oc_local_state): New type, output_constructor | |
12408 | local state to support communication with helpers. | |
12409 | (oc_outer_state): New type, output_constructor outer state of | |
12410 | relevance in recursive calls. | |
12411 | (output_constructor_array_range): New output_constructor helper, | |
12412 | extracted code for an array range element. | |
12413 | (output_constructor_regular_field): New output_constructor helper, | |
12414 | extracted code for an element that is not a bitfield. | |
12415 | (output_constructor_bitfield): New output_constructor helper, | |
12416 | extracted code for a bitfield element. Accept an OUTER state | |
12417 | argument for recursive processing. Recurse on record or array | |
12418 | CONSTRUCTOR values, possibly past noop conversions. | |
62295314 | 12419 | (initializer_constant_valid_for_bitfield_p): New predicate. Whether |
324c9b02 OH |
12420 | VALUE is a valid constant-valued expression for use in a static |
12421 | bit-field initializer. | |
62295314 OH |
12422 | (output_constructor): Rework to use helpers. Accept and honor an |
12423 | OUTER state argument for recursive calls. Return total size. Be | |
324c9b02 OH |
12424 | prepared for nested constructors initializing bitfields. |
12425 | (output_constant): Feed OUTER in calls to output_constructor. | |
12426 | ||
0980d7fe MK |
12427 | 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com> |
12428 | ||
12429 | * calls.c (emit_library_call_value_1): Don't force_operand for move | |
12430 | and push insns. | |
12431 | ||
29661412 NC |
12432 | 2009-06-01 Nick Clifton <nickc@redhat.com> |
12433 | ||
12434 | * doc/invoke.texi (IA-64 Options): Fix typo. | |
12435 | ||
e9dbe7bb IR |
12436 | 2009-06-01 Ira Rosen <irar@il.ibm.com> |
12437 | ||
12438 | PR tree-optimization/39129 | |
7c8b1a77 | 12439 | * tree-vect-loop-manip.c (conservative_cost_threshold): Change the |
e9dbe7bb | 12440 | printed message. |
7c8b1a77 | 12441 | (vect_do_peeling_for_loop_bound): Use |
e9dbe7bb IR |
12442 | LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and |
12443 | LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros. | |
12444 | (vect_loop_versioning): Likewise. | |
12445 | (vect_create_cond_for_alias_checks): Fix indentation. | |
7c8b1a77 | 12446 | * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the |
e9dbe7bb IR |
12447 | macros. |
12448 | (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define. | |
12449 | (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise. | |
7c8b1a77 | 12450 | * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to |
e9dbe7bb | 12451 | "control flow in loop". |
7c8b1a77 | 12452 | (vect_estimate_min_profitable_iters): Use |
e9dbe7bb IR |
12453 | LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and |
12454 | LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros. | |
12455 | * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise. | |
12456 | (vect_create_data_ref_ptr): Don't mention array dimension in printing. | |
7c8b1a77 UB |
12457 | * tree-vect-stmts.c (vectorizable_store): Replace the check that the |
12458 | statement belongs to a group of strided accesses with the exact code | |
e9dbe7bb IR |
12459 | check. |
12460 | (vectorizable_load): Likewise. | |
12461 | * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block". | |
12462 | (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise. | |
12463 | ||
5ac69a80 GP |
12464 | 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com> |
12465 | ||
12466 | * config/freebsd-stdint.h: New file. | |
12467 | * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap. | |
12468 | Add freebsd-stdint.h to tm_file. | |
12469 | ||
54b2b460 RE |
12470 | 2009-06-01 Richard Earnshaw <rearnsha@arm.com> |
12471 | ||
12472 | * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split. | |
12473 | (thumb2_extendhidi2): Likewise. | |
12474 | ||
a7ca77cf ILT |
12475 | 2009-05-31 Ian Lance Taylor <iant@google.com> |
12476 | ||
f3afc8a7 | 12477 | * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition. |
c50d84e3 ILT |
12478 | |
12479 | 2009-05-31 Ian Lance Taylor <iant@google.com> | |
12480 | ||
f3afc8a7 | 12481 | * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H). |
a7ca77cf ILT |
12482 | (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H). |
12483 | (ipa-reference.o): Depend upon gt-ipa-reference.h. | |
12484 | ||
1aec401e JM |
12485 | 2009-05-31 Jason Merrill <jason@redhat.com> |
12486 | ||
12487 | * tree-pretty-print.c (print_call_name): Take the callee, not the | |
f3afc8a7 | 12488 | call itself. Make non-static. Use dump_function_name for functions. |
1aec401e JM |
12489 | (dump_generic_node): Adjust. |
12490 | * diagnostic.h: Declare print_call_name. | |
12491 | * gimple-pretty-print.c (dump_gimple_call): Use it. | |
12492 | ||
ed7910bb KK |
12493 | 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org> |
12494 | ||
12495 | * config/sh/sh.md (ashldi3_std): New define_expand. | |
12496 | (ashldi3): Use it. | |
12497 | ||
47ea8d4e KK |
12498 | 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org> |
12499 | ||
12500 | PR target/40313 | |
12501 | * config/sh/sh.c: Include debug.h. | |
12502 | (sh_expand_epilogue): Emit a blockage insn before the frame | |
12503 | pointer adjustment also when dwarf2out_do_frame returns true. | |
12504 | ||
405e8b49 RE |
12505 | 2009-05-31 Richard Earnshaw <rearnsha@arm.com> |
12506 | ||
12507 | * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern. | |
12508 | (thumb2_extendqidi2): New pattern. | |
12509 | ||
71ece343 IR |
12510 | 2009-05-31 Ira Rosen <irar@il.ibm.com> |
12511 | ||
12512 | * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't | |
12513 | mark phis for renaming. | |
12514 | * tree-vectorizer.c (vect_memsyms_to_rename): Remove. | |
12515 | (vectorize_loops): Don't allocate and free vect_memsyms_to_rename. | |
12516 | Call mark_sym_for_renaming. | |
12517 | * tree-vectorizer.h (vect_memsyms_to_rename): Remove. | |
f3afc8a7 UB |
12518 | * tree-vect-loop.c (vect_transform_loop): Remove |
12519 | vect_memsyms_to_rename initialization and a call to | |
12520 | mark_set_for_renaming. | |
71ece343 | 12521 | |
b3041944 JJ |
12522 | 2009-05-31 Jakub Jelinek <jakub@redhat.com> |
12523 | ||
12524 | PR middle-end/40304 | |
12525 | * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns | |
12526 | frame related even if !set_cfa && style < 0. | |
12527 | ||
a1bda0d7 KT |
12528 | 2009-05-30 Kai Tietz <kai.tietz@onevision.com> |
12529 | ||
12530 | * config/i386/mingw-tls.c: New file. | |
f3afc8a7 UB |
12531 | * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file. |
12532 | * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets | |
12533 | defining _WIN32 but not __CYGWIN__. | |
a1bda0d7 | 12534 | |
acd26225 KG |
12535 | 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
12536 | ||
12537 | * configure.ac: Add MPC support. | |
f100a4a8 UB |
12538 | |
12539 | * config.in, configure: Regenerate. | |
acd26225 | 12540 | |
cd9c1ca8 RH |
12541 | 2009-05-29 Richard Henderson <rth@redhat.com> |
12542 | ||
12543 | * cfgcleanup.c (try_crossjump_to_edge): Only skip past | |
12544 | NOTE_INSN_BASIC_BLOCK. | |
12545 | * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks. | |
12546 | Duplicate NOTE_INSN_EPILOGUE_BEG notes. | |
12547 | * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG | |
12548 | to be deleted. | |
12549 | * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield, | |
12550 | add in_use field. | |
12551 | (add_cfi): Disable check redefining cfa away from drap. | |
12552 | (lookup_cfa_1): Add remember argument; handle remember/restore. | |
12553 | (lookup_cfa): Pass remember argument. | |
12554 | (cfa_remember): New. | |
12555 | (compute_barrier_args_size_1): Remove sibcall check. | |
12556 | (dwarf2out_frame_debug_def_cfa): New. | |
12557 | (dwarf2out_frame_debug_adjust_cfa): New. | |
12558 | (dwarf2out_frame_debug_cfa_offset): New. | |
12559 | (dwarf2out_frame_debug_cfa_register): New. | |
12560 | (dwarf2out_frame_debug_cfa_restore): New. | |
12561 | (dwarf2out_frame_debug): Handle REG_CFA_* notes. | |
12562 | (dwarf2out_begin_epilogue): New. | |
12563 | (dwarf2out_frame_debug_restore_state): New. | |
12564 | (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state, | |
12565 | DW_CFA_restore_state. | |
12566 | (output_cfi_directive): Likewise. | |
12567 | (convert_cfa_to_fb_loc_list): Likewise. | |
12568 | (dw_cfi_oprnd1_desc): Handle DW_CFA_restore. | |
12569 | * dwarf2out.h: Update. | |
12570 | * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P. | |
12571 | (copy_insn_1): Early out for null. | |
12572 | * final.c (final_scan_insn): Call dwarf2out_begin_epilogue | |
12573 | and dwarf2out_frame_debug_restore_state. | |
12574 | * function.c (prologue, epilogue, sibcall_epilogue): Remove. | |
12575 | (prologue_insn_hash, epilogue_insn_hash): New. | |
12576 | (free_after_compilation): Adjust freeing accordingly. | |
12577 | (record_insns): Create hash table if needed; push insns into | |
12578 | hash instead of array. | |
12579 | (maybe_copy_epilogue_insn): New. | |
12580 | (contains): Search hash table instead of array. | |
12581 | (sibcall_epilogue_contains): Remove. | |
12582 | (thread_prologue_and_epilogue_insns): Split eh_return insns | |
12583 | and mark them as epilogues. | |
12584 | (reposition_prologue_and_epilogue_notes): Rewrite epilogue | |
12585 | scanning in terms of basic blocks. | |
12586 | * insn-notes.def (CFA_RESTORE_STATE): New. | |
12587 | * jump.c (returnjump_p_1): Accept EH_RETURN. | |
12588 | (eh_returnjump_p_1, eh_returnjump_p): New. | |
12589 | * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET, | |
12590 | CFA_REGISTER, CFA_RESTORE): New. | |
12591 | * rtl.def (EH_RETURN): New. | |
12592 | * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare. | |
12593 | ||
12594 | * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove. | |
12595 | (eh_return_internal): Use eh_return rtx; split w/ epilogue. | |
12596 | ||
12597 | * config/i386/i386.c (gen_push): Update cfa state. | |
12598 | (pro_epilogue_adjust_stack): Add set_cfa argument. When true, | |
12599 | add a CFA_ADJUST_CFA note. | |
12600 | (ix86_dwarf_handle_frame_unspec): Remove. | |
12601 | (ix86_expand_prologue): Update cfa state. | |
12602 | (ix86_emit_restore_reg_using_pop): New. | |
12603 | (ix86_emit_restore_regs_using_pop): New. | |
12604 | (ix86_emit_leave): New. | |
12605 | (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes. | |
12606 | (ix86_expand_epilogue): Add notes for unwinding the epilogue. | |
12607 | * config/i386/i386.h (struct machine_cfa_state): New. | |
12608 | (ix86_cfa_state): New. | |
12609 | * config/i386/i386.md (UNSPEC_EH_RETURN): Remove. | |
12610 | (eh_return_internal): Merge from eh_return_<mode>, | |
12611 | use eh_return rtx, split w/ epilogue. | |
12612 | ||
72b5577d ILT |
12613 | 2009-05-29 Ian Lance Taylor <iant@google.com> |
12614 | ||
12615 | * builtins.c (validate_gimple_arglist): Don't use va_arg with | |
12616 | enum type. | |
12617 | * calls.c (emit_library_call_value_1): Likewise. | |
12618 | ||
12619 | * c-typeck.c (c_build_va_arg): New function. | |
12620 | * c-tree.h (c_build_va_arg): Declare. | |
12621 | * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg | |
12622 | instead of build_va_arg. | |
12623 | ||
7a2faca1 EB |
12624 | 2009-05-29 Eric Botcazou <ebotcazou@adacore.com> |
12625 | ||
12626 | * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case. | |
12627 | (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise. | |
12628 | (ptr_difference_cost): Use affine combinations to compute it. | |
12629 | (difference_cost): Likewise. | |
12630 | (get_computation_cost_at): Compute more accurate cost for addresses | |
12631 | if the ratio is a multiplier allowed in addresses. | |
12632 | For non-addresses, consider that an additional offset or symbol is | |
12633 | added only once. | |
12634 | ||
725fd454 JJ |
12635 | 2009-05-29 Jakub Jelinek <jakub@redhat.com> |
12636 | ||
a0987204 JJ |
12637 | * config/i386/i386.c (ix86_decompose_address): Avoid useless |
12638 | 0 displacement. Add 0 displacement if base is %[er]bp or %r13. | |
12639 | ||
725fd454 JJ |
12640 | * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for |
12641 | TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default. | |
12642 | (prefix_rex): For UNIT_MMX don't imply the prefix by default | |
12643 | if MODE_DI. | |
12644 | (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and | |
12645 | to 1 for TYPE_SSE{IADD1,CVT1}. | |
12646 | (prefix_vex_imm8): Removed. | |
12647 | (length_vex): Only pass 1 as second argument to | |
12648 | ix86_attr_length_vex_default if prefix_extra is 0. | |
12649 | (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT. | |
12650 | (length): For prefix vex computation use length_immediate | |
12651 | attribute instead of prefix_vex_imm8. | |
12652 | (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64, | |
12653 | addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0, | |
12654 | *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1, | |
12655 | *xorqi_cc_ext_1_rex64): Override modrm attribute to 1. | |
12656 | (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2, | |
12657 | *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit | |
12658 | a space in between the operands. | |
12659 | (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1 | |
12660 | if one operand is 0xff and the other one si, di, bp or sp. | |
12661 | (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the | |
12662 | other one si, di, bp or sp. | |
12663 | (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute. | |
12664 | (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add | |
12665 | type and mode attributes. | |
12666 | (*bsr, *bsr_rex64, *bsrhi): Add type attribute. | |
12667 | (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear | |
12668 | prefix_rep attribute and set prefix_data16 attribute iff MODE_DF. | |
12669 | (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set | |
12670 | prefix_data16 attribute iff MODE_DF. | |
12671 | (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute. | |
12672 | (fix_trunc<mode>di_sse): Set prefix_rex attribute. | |
12673 | (*adddi_4_rex64, *addsi_4): Use const128_operand instead of | |
12674 | constm128_operand in length_immediate computation. | |
12675 | (*addhi_4): Likewise. Fix mode attribute to MODE_HI. | |
12676 | (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq. | |
12677 | (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set | |
12678 | length_immediate attribute to 1. | |
12679 | (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute. | |
12680 | (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes | |
12681 | for certain alternatives. | |
12682 | (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override | |
12683 | prefix_data16 attribute if MODE_V1DF. | |
12684 | (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set | |
12685 | length_immediate to 1. | |
12686 | (set_got_rex64, set_rip_rex64): Remove length attribute, set | |
12687 | length_address to 4, set mode attribute to MODE_DI. | |
12688 | (set_got_offset_rex64): Likewise. Set length_immediate to 0. | |
12689 | (fxam<mode>2_i387): Set length attribute to 4. | |
12690 | (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow, | |
12691 | *prefetch_3dnow_rex): Override length_address attribute. | |
12692 | (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex | |
12693 | attributes. | |
12694 | * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate. | |
12695 | (constm128_operand): Removed. | |
12696 | * config/i386/i386.c (memory_address_length): For | |
12697 | disp && !index && !base in 64-bit mode account for SIB byte if | |
12698 | print_operand_address can't optimize disp32 into disp32(%rip) | |
12699 | and UNSPEC doesn't imply (%rip) addressing. Add 1 to length | |
12700 | for fs: or gs: segment. | |
12701 | (ix86_attr_length_immediate_default): When checking if shortform | |
12702 | is possible, truncate immediate to the length of the non-shortened | |
12703 | immediate. | |
12704 | (ix86_attr_length_address_default): Ignore MEM_P operands | |
12705 | with X constraint. | |
12706 | (ix86_attr_length_vex_default): Only check for DImode on | |
12707 | GENERAL_REG_P operands. | |
12708 | * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear | |
12709 | prefix_rep attribute, set prefix_data16 attribute iff MODE_DF. | |
12710 | (sse_cvttps2pi): Clear prefix_rep attribute. | |
12711 | (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16 | |
12712 | attribute. | |
12713 | (*sse2_cvttpd2dq): Don't clear prefix_rep attribute. | |
12714 | (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3, | |
12715 | *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1 | |
12716 | iff operand 2 is const_int_operand. | |
12717 | (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>, | |
12718 | sse2_shufpd_<mode>): Set length_immediate attribute to 1. | |
12719 | (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex | |
12720 | instead of vex. | |
12721 | (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear | |
12722 | prefix_data16. | |
12723 | (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set | |
12724 | prefix_data16 attribute for movlpd and movhpd instructions. | |
12725 | (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override | |
12726 | length_immediate for shufpd instruction. | |
12727 | (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute. | |
12728 | (avx_cmpp<avxmodesuffixf2c><mode>3, | |
12729 | avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3, | |
12730 | <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3, | |
12731 | avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>, | |
f3afc8a7 | 12732 | *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1. |
725fd454 JJ |
12733 | (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4. |
12734 | (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1. | |
12735 | (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override | |
12736 | prefix_data16 attribute for the first alternative to 1. | |
12737 | (*avx_loadlps): Override length_immediate for the first alternative. | |
12738 | (*vec_concatv2sf_avx): Override length_immediate and prefix_extra | |
12739 | attributes for second alternative. | |
12740 | (*vec_concatv2sf_sse4_1): Override length_immediate and | |
12741 | prefix_data16 attributes for second alternative. | |
12742 | (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>, | |
12743 | vec_extract_hi_<mode>, vec_extract_lo_v16hi, | |
12744 | vec_extract_hi_v16hi, vec_extract_lo_v32qi, | |
12745 | vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1. | |
12746 | (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set | |
12747 | prefix_data16 and length_immediate to 1. | |
12748 | (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra | |
12749 | to 1. | |
12750 | (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set | |
f3afc8a7 | 12751 | prefix_extra attribute for variants that don't have 0f prefix alone. |
725fd454 JJ |
12752 | (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1. |
12753 | (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb, | |
12754 | *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory, | |
12755 | *sse4_1_pextrd): Set length_immediate to 1. | |
12756 | (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1. | |
12757 | (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate | |
12758 | to 1. | |
12759 | (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64, | |
12760 | *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override | |
12761 | length_immediate to 1 for second alternative. | |
12762 | (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override | |
12763 | prefix_extra and length_immediate attributes for the first | |
12764 | alternative. | |
12765 | (vec_concatv2si_sse4_1): Override length_immediate to 1 for the | |
12766 | first alternative. | |
12767 | (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex | |
12768 | to 1 for the first and third alternative. | |
12769 | (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second | |
12770 | alternative. | |
12771 | (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex | |
12772 | attribute. | |
12773 | (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address | |
12774 | attribute to 0. | |
12775 | (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3, | |
12776 | *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi, | |
12777 | *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3, | |
12778 | *avx_psign<mode>3): Set prefix_extra attribute to 1. | |
12779 | (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3, | |
12780 | ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3, | |
12781 | ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3, | |
12782 | ssse3_psign<mode>3): Override prefix_rex attribute. | |
f3afc8a7 | 12783 | (*avx_palignrti): Override prefix_extra and length_immediate to 1. |
725fd454 JJ |
12784 | (ssse3_palignrti): Override length_immediate to 1. |
12785 | (ssse3_palignrdi): Override length_immediate to 1, override | |
12786 | prefix_rex attribute. | |
f3afc8a7 | 12787 | (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute. |
725fd454 JJ |
12788 | (sse4a_extrqi): Override length_immediate to 2. |
12789 | (sse4a_insertqi): Likewise. Override prefix_data16 to 0. | |
12790 | (sse4a_insertq): Override prefix_data16 to 0. | |
12791 | (avx_blendp<avxmodesuffixf2c><avxmodesuffix>, | |
12792 | avx_blendvp<avxmodesuffixf2c><avxmodesuffix>, | |
12793 | avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw, | |
12794 | *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256, | |
12795 | avx_rounds<avxmodesuffixf2c>256): Override prefix_extra | |
12796 | and length_immediate to 1. | |
12797 | (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>, | |
12798 | sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm, | |
12799 | sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri, | |
12800 | sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16 | |
12801 | and length_immediate to 1. | |
12802 | (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1. | |
12803 | (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1. | |
12804 | (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>, | |
12805 | avx_ptest256): Override prefix_extra to 1. | |
12806 | (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>): | |
12807 | Override prefix_data16 and length_immediate to 1. | |
12808 | (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi, | |
12809 | sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si, | |
12810 | sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di, | |
12811 | sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override | |
12812 | prefix_data16 to 0 and prefix_extra to 2. | |
12813 | (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1. | |
12814 | (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra | |
12815 | attribute. | |
12816 | (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3, | |
12817 | sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3): | |
12818 | Override prefix_data16 and prefix_rep to 0, length_immediate to 1 | |
12819 | and prefix_extra to 2. | |
12820 | (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override | |
12821 | prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2. | |
12822 | (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast, | |
12823 | avx_vpermilvar<mode>3, | |
12824 | avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>, | |
12825 | avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256, | |
12826 | avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>, | |
12827 | avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): | |
12828 | Override prefix_extra to 1. | |
12829 | (aeskeygenassist, pclmulqdq): Override length_immediate to 1. | |
12830 | (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3, | |
12831 | vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi, | |
12832 | vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override | |
12833 | prefix_extra and length_immediate to 1. | |
12834 | (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override | |
12835 | modrm to 0. | |
12836 | (*vec_concat<mode>_avx): Override prefix_extra and length_immediate | |
12837 | to 1 for the first alternative. | |
12838 | * config/i386/mmx.md (*mov<mode>_internal_rex64): Override | |
12839 | prefix_rep, prefix_data16 and/or prefix_rex attributes in certain | |
12840 | cases. | |
12841 | (*mov<mode>_internal_avx, *movv2sf_internal_rex64, | |
12842 | *movv2sf_internal_avx, *movv2sf_internal): Override | |
12843 | prefix_rep attribute for certain alternatives. | |
12844 | (*mov<mode>_internal): Override prefix_rep or prefix_data16 | |
12845 | attributes for certain alternatives. | |
12846 | (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex | |
12847 | attributes for certain alternatives. | |
12848 | (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3, | |
12849 | *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2, | |
12850 | mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3, | |
12851 | mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3, | |
12852 | *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw, | |
12853 | mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3, | |
12854 | mmx_pswapdv2si2): Set prefix_extra attribute to 1. | |
12855 | (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set | |
12856 | length_immediate to 1 if operand 2 is const_int_operand. | |
12857 | (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi, | |
f3afc8a7 | 12858 | *vec_extractv2si_1): Set length_immediate attribute to 1. |
725fd454 JJ |
12859 | (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if |
12860 | using old 3DNOW insn rather than SSE/3DNOW_A. | |
12861 | (mmx_emms, mmx_femms): Clear modrm attribute. | |
12862 | ||
0674b9d0 MJ |
12863 | 2009-05-29 Martin Jambor <mjambor@suse.cz> |
12864 | ||
12865 | * tree-sra.c: New implementation of SRA. | |
12866 | ||
12867 | * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed. | |
12868 | (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed. | |
12869 | (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed. | |
12870 | * params.h (SRA_MAX_STRUCTURE_SIZE): Removed. | |
12871 | (SRA_MAX_STRUCTURE_COUNT): Removed. | |
12872 | (SRA_FIELD_STRUCTURE_RATIO): Removed. | |
12873 | * doc/invoke.texi (sra-max-structure-size): Removed. | |
12874 | (sra-field-structure-ratio): Removed. | |
12875 | ||
616f21df JJ |
12876 | 2009-05-29 Jakub Jelinek <jakub@redhat.com> |
12877 | ||
12878 | PR middle-end/40291 | |
12879 | * builtins.c (expand_builtin_memcmp): Convert len to sizetype | |
12880 | before expansion. | |
12881 | ||
da7ba240 AB |
12882 | 2009-05-29 Andrey Belevantsev <abel@ispras.ru> |
12883 | ||
12884 | PR rtl-optimization/40101 | |
12885 | * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative | |
12886 | seqno. Adjust comment. | |
f100a4a8 | 12887 | * sel-sched.c (find_seqno_for_bookkeeping): Assert that when |
da7ba240 AB |
12888 | inserting bookkeeping before a jump, the jump is not scheduled. |
12889 | When no positive seqno found, provide a value. Add comment. | |
12890 | ||
71dcd609 RG |
12891 | 2009-05-29 Richard Guenther <rguenther@suse.de> |
12892 | ||
12893 | * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove | |
12894 | short-cutting on the first component. | |
12895 | ||
a900ae6b JJ |
12896 | 2009-05-29 Jakub Jelinek <jakub@redhat.com> |
12897 | ||
12898 | PR middle-end/39958 | |
12899 | * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE | |
12900 | for trees other than decls/types. | |
12901 | ||
821bb7f8 RG |
12902 | 2009-05-29 Richard Guenther <rguenther@suse.de> |
12903 | ||
12904 | * tree-ssa-operands.c (get_expr_operands): Do not handle | |
12905 | INDIRECT_REFs in the handled-component case. Remove | |
12906 | unused get_ref_base_and_extent case. | |
12907 | * tree-dfa.c (get_ref_base_and_extent): Avoid calling | |
12908 | tree_low_cst and host_integerp where possible. | |
12909 | * tree-ssa-structalias.c (equiv_class_label_eq): Check hash | |
12910 | codes for equivalence. | |
12911 | * dce.c (find_call_stack_args): Avoid redundant bitmap queries. | |
12912 | ||
e997fb9c DB |
12913 | 2009-05-29 David Billinghurst <billingd@gcc.gnu.org> |
12914 | ||
12915 | * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp | |
f100a4a8 | 12916 | to tmake_file for i[34567]86-*-cygwin*. |
e997fb9c | 12917 | |
58195b74 JJ |
12918 | 2009-05-29 Jakub Jelinek <jakub@redhat.com> |
12919 | ||
12920 | PR target/40017 | |
12921 | * config/rs6000/rs6000-c.c (_Bool_keyword): New variable. | |
12922 | (altivec_categorize_keyword, init_vector_keywords, | |
12923 | rs6000_cpu_cpp_builtins): Define _Bool as conditional macro | |
12924 | similar to bool. | |
12925 | ||
055df276 KT |
12926 | 2009-05-29 Kai Tietz <kai.tietz@onevision.com> |
12927 | ||
12928 | * tree.c (handle_dll_attribute): Check if node is | |
12929 | of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check. | |
12930 | ||
f5939ef3 RE |
12931 | 2009-05-29 Richard Earnshaw <rearnsha@arm.com> |
12932 | ||
12933 | * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split | |
12934 | component. | |
12935 | (thumb2_zero_extendqidi2): Likewise. | |
12936 | ||
c185de40 KK |
12937 | 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org> |
12938 | ||
12939 | * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt | |
12940 | instead of gen_movrt. | |
12941 | * config/sh/sh.md (movrt): Remove. | |
12942 | ||
bf3c6caf SE |
12943 | 2009-05-28 Steve Ellcey <sje@cup.hp.com> |
12944 | ||
f3afc8a7 | 12945 | * doc/invoke.texi (IA-64 Options): |
f100a4a8 | 12946 | Add -msdata, -mfused-madd, -mno-inline-float-divide, |
bf3c6caf SE |
12947 | -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc, |
12948 | -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns, | |
12949 | -msched-prefer-non-control-spec-insns, | |
12950 | -msched-stop-bits-after-every-cycle, | |
12951 | -msched-count-spec-in-critical-path, | |
12952 | -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost | |
f3afc8a7 | 12953 | -msched-max-memory-insns-hard-limit, -msched-max-memory-insns. |
bf3c6caf SE |
12954 | Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc, |
12955 | and -msched-spec-verbose. | |
12956 | ||
8a66e987 JM |
12957 | 2009-05-28 Joseph Myers <joseph@codesourcery.com> |
12958 | ||
f3afc8a7 | 12959 | * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache. |
8a66e987 JM |
12960 | * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an |
12961 | error if used. | |
12962 | * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache. | |
12963 | ||
b45d2719 RG |
12964 | 2009-05-28 Richard Guenther <rguenther@suse.de> |
12965 | ||
12966 | * tree-ssa-alias.c (ao_ref_init): New function. | |
12967 | (ao_ref_base): Likewise. | |
12968 | (ao_ref_base_alias_set): Likewise. | |
12969 | (ao_ref_alias_set): Likewise. | |
12970 | (refs_may_alias_p_1): Change signature. | |
12971 | (refs_may_alias_p): Adjust. | |
12972 | (refs_anti_dependent_p): Likewise. | |
12973 | (refs_output_dependent_p): Likewise. | |
12974 | (call_may_clobber_ref_p_1): Change signature. | |
12975 | (call_may_clobber_ref_p): Adjust. | |
12976 | (stmt_may_clobber_ref_p_1): New function split out from ... | |
12977 | (stmt_may_clobber_ref_p): ... here. | |
12978 | (maybe_skip_until): Adjust signature. | |
12979 | (get_continuation_for_phi): Likewise. | |
12980 | (walk_non_aliased_vuses): Likewise. | |
12981 | * tree-ssa-alias.h (struct ao_ref_s): New structure type. | |
12982 | (ao_ref_init): Declare. | |
12983 | (ao_ref_base): Likewise. | |
12984 | (ao_ref_alias_set): Likewise. | |
12985 | (stmt_may_clobber_ref_p_1): Likewise. | |
12986 | (walk_non_aliased_vuses): Adjust. | |
12987 | * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function. | |
12988 | (get_ref_from_reference_ops): remove. | |
12989 | (vn_reference_lookup_2): Adjust signature. | |
12990 | (vn_reference_lookup_3): Do not re-build trees. Handle unions. | |
f3afc8a7 | 12991 | (vn_reference_lookup_pieces): Adjust signature, do not re-build trees. |
b45d2719 RG |
12992 | (vn_reference_lookup): Adjust. |
12993 | (vn_reference_insert): Likewise. | |
12994 | (vn_reference_insert_pieces): Adjust signature. | |
12995 | (visit_reference_op_call): Adjust. | |
12996 | * tree-ssa-pre.c (get_expr_type): Simplify. | |
12997 | (phi_translate_1): Adjust. | |
12998 | (compute_avail): Likewise. | |
12999 | (translate_vuse_through_block): Do not re-build trees. | |
13000 | (value_dies_in_block_x): Likewise. | |
13001 | * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set | |
13002 | fields. | |
13003 | (vn_reference_lookup_pieces): Adjust declaration. | |
13004 | (vn_reference_insert_pieces): Likewise. | |
13005 | ||
554223b6 BK |
13006 | 2009-05-28 Benjamin Kosnik <bkoz@redhat.com> |
13007 | ||
13008 | * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use | |
13009 | with checking disabled. | |
13010 | ||
233215fe DK |
13011 | 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com> |
13012 | ||
13013 | PR target/37216 | |
13014 | ||
13015 | * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and | |
13016 | macro definition for support of three-operand format aligned | |
13017 | .comm directive in assembler on cygwin/pe/mingw target OS. | |
13018 | * configure: Regenerate. | |
13019 | * config.h: Regenerate. | |
13020 | ||
13021 | * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use | |
13022 | aligned form of .comm directive if -mpe-aligned-commons is in effect. | |
13023 | * config/i386/cygming.opt (-mpe-aligned-commons): Add new option. | |
13024 | ||
13025 | * doc/invoke.texi (-mpe-aligned-commons): Document new target option. | |
13026 | * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons. | |
13027 | ||
24adb18f IR |
13028 | 2009-05-28 Ira Rosen <irar@il.ibm.com> |
13029 | ||
13030 | PR tree-optimization/40254 | |
13031 | * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account | |
13032 | in analysis of basic blocks. | |
13033 | ||
2c5bfdf7 AN |
13034 | 2009-05-28 Adam Nemet <anemet@caviumnetworks.com> |
13035 | ||
13036 | PR middle-end/33699 | |
f3afc8a7 | 13037 | * target.h (struct gcc_target): Fix indentation. Add const_anchor. |
2c5bfdf7 AN |
13038 | * target-def.h (TARGET_CONST_ANCHOR): New macro. |
13039 | (TARGET_INITIALIZER): Use it. | |
13040 | * cse.c (CHEAPER): Move it up to the other macros. | |
13041 | (insert): Rename this ... | |
13042 | (insert_with_costs): ... to this. Add cost parameters. Update | |
13043 | function comment. | |
13044 | (insert): New function. Call insert_with_costs. | |
13045 | (compute_const_anchors, insert_const_anchor, insert_const_anchors, | |
13046 | find_reg_offset_for_const, try_const_anchors): New functions. | |
13047 | (cse_insn): Call try_const_anchors. Adjust cost of src_related | |
13048 | when using a const-anchor. Call insert_const_anchors. | |
f3afc8a7 | 13049 | * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor. |
2c5bfdf7 AN |
13050 | * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR. |
13051 | ||
9e6aced0 AO |
13052 | 2009-05-28 Alexandre Oliva <aoliva@redhat.com> |
13053 | ||
13054 | * tree-inline.c (remap_decls): Enable nonlocalized variables | |
13055 | when not optimizing. | |
13056 | ||
89fbbe4e AO |
13057 | 2009-05-28 Alexandre Oliva <aoliva@redhat.com> |
13058 | ||
13059 | * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing. | |
13060 | Simplify other tests involving optimize. | |
13061 | ||
e455776a TT |
13062 | 2009-05-27 Tom Tromey <tromey@redhat.com> |
13063 | ||
13064 | * unwind-dw2.c (_Unwind_DebugHook): New function. | |
13065 | (uw_install_context): Call _Unwind_DebugHook. | |
13066 | ||
cea32bca TT |
13067 | 2009-05-27 Tom Tromey <tromey@redhat.com> |
13068 | ||
13069 | * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++ | |
13070 | ||
c607156f ILT |
13071 | 2009-05-27 Ian Lance Taylor <iant@google.com> |
13072 | ||
13073 | * Makefile.in (LINKER, LINKER_FLAGS): Define. | |
13074 | (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define. | |
13075 | (ALL_LINKERFLAGS): Define. | |
13076 | (xgcc$(exeext)): Change $(COMPILER) to $(LINKER). | |
13077 | (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise. | |
13078 | (collect2$(exeext), mips-tfile, mips-tdump): Likewise. | |
13079 | (gcov$(exeext), gcov-dump$(exeext)): Likewise. | |
13080 | (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to | |
13081 | $(LINKER_FOR_BUILD). | |
13082 | (build/gcov-iov$(build_exeext)): Likewise. | |
13083 | ||
ec0a1343 JB |
13084 | 2009-05-27 Julian Brown <julian@codesourcery.com> |
13085 | ||
13086 | * gcse.c (target.h): Include. | |
13087 | (can_assign_to_reg_without_clobbers_p): Check that the target allows | |
13088 | copy of argument to a pseudo register. | |
13089 | ||
ac80ba07 DN |
13090 | 2009-05-27 Diego Novillo <dnovillo@google.com> |
13091 | ||
13092 | * tree-ssa-live.c (dump_scope_block): Document arguments. | |
13093 | (dump_scope_blocks): Document. | |
13094 | (debug_scope_blocks): New. | |
13095 | * tree-flow.h (debug_scope_blocks): Declare. | |
13096 | ||
d1803a17 DC |
13097 | 2009-05-21 Denis Chertykov <denisc@overta.ru> |
13098 | ||
f3afc8a7 | 13099 | * doc/contrib.texi (Contributors): Add myself to the list. |
d1803a17 | 13100 | |
51fb7760 | 13101 | 2009-05-27 Olivier Hainque <hainque@adacore.com> |
ceadb728 OH |
13102 | |
13103 | * expr.c (target_align): New function. Alignment the TARGET of an | |
13104 | assignment may be assume to have. | |
13105 | (highest_pow2_factor_for_target): Use it instead of relying on | |
13106 | immediate tree attributes of TARGET, not necessarily honored when | |
13107 | intermediate bitfields are involved. | |
f100a4a8 | 13108 | |
634fa334 L |
13109 | 2009-05-27 H.J. Lu <hongjiu.lu@intel.com> |
13110 | ||
13111 | PR target/40266 | |
13112 | * config/i386/driver-i386.c (host_detect_local_cpu): Support | |
13113 | AVX, SSE4, AES, PCLMUL and POPCNT. | |
13114 | ||
65332587 DN |
13115 | 2009-05-27 Diego Novillo <dnovillo@google.com> |
13116 | ||
13117 | * tree-pretty-print.c (dump_location): New. | |
13118 | (dump_generic_node): Call it. | |
13119 | Factor code to handle BLOCK nodes ... | |
13120 | (dump_block_node): ... here. | |
13121 | ||
3e17e31d RAE |
13122 | 2009-05-27 Rafael Avila de Espindola <espindola@google.com> |
13123 | ||
f3afc8a7 UB |
13124 | * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h |
13125 | with it. | |
3e17e31d RAE |
13126 | * doc/plugins.texi: Document that gcc-plugin.h must be the first to be |
13127 | included. | |
13128 | * gcc-plugin.h: Include config.h and system.h. | |
13129 | (IN_GCC): Define if not defined. | |
13130 | ||
5e370570 HPN |
13131 | 2009-05-27 Hans-Peter Nilsson <hp@axis.com> |
13132 | ||
13133 | PR middle-end/40249 | |
13134 | * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions | |
13135 | with -fno-inline. | |
13136 | ||
d000f0d9 SZ |
13137 | 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com> |
13138 | ||
13139 | * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where | |
13140 | applicable. | |
13141 | * config/m32r/m32r.h: Ditto. | |
13142 | * config/m32r/m32r.md: Ditto. | |
13143 | * config/m32r/predicates.md: Ditto. | |
13144 | ||
82f331ff AO |
13145 | 2009-05-27 Alexandre Oliva <aoliva@redhat.com> |
13146 | ||
13147 | * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr. | |
13148 | ||
ae2392a9 BS |
13149 | 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net> |
13150 | ||
13151 | * doc/plugins.texi | |
13152 | (Loading plugins): typo. | |
13153 | (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START, | |
13154 | PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS. | |
13155 | (Interacting with the GCC Garbage Collector): Added new section. | |
13156 | (Giving information about a plugin): Added new section for | |
13157 | PLUGIN_INFO. | |
ae2392a9 BS |
13158 | * ggc.h (ggc_register_root_tab): Added declaration. |
13159 | * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING) | |
13160 | (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events. | |
13161 | (register_callback): Improved comment in declaration. | |
f3afc8a7 UB |
13162 | * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors. |
13163 | (extra_root_vec) Added static variable for dynamic roots registration. | |
ae2392a9 BS |
13164 | (ggc_register_root_tab) Added new routine. |
13165 | (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke | |
13166 | PLUGIN_GGC_MARKING event. | |
13167 | * ggc-zone.c: Include plugin.h. | |
13168 | (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events. | |
13169 | * ggc-page.c: Include plugin.h. | |
13170 | (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events. | |
13171 | * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START, | |
13172 | PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS | |
13173 | (register_callback): check lack of callbacks for | |
13174 | pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS, | |
13175 | PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END. | |
13176 | (invoke_plugin_callbacks): Handle PLUGIN_GGC_START, | |
13177 | PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS. | |
13178 | * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added | |
13179 | dependency on plugin.h. | |
13180 | (plugin.o): Added dependency on ggc.h... | |
13181 | ||
f0cfd3a8 RG |
13182 | 2009-05-26 Richard Guenther <rguenther@suse.de> |
13183 | ||
13184 | PR middle-end/40248 | |
13185 | Revert | |
13186 | * expr.c (expand_expr_real_1): Avoid calling do_store_flag | |
13187 | with mismatched comparison modes. | |
13188 | ||
13189 | * expr.c (expand_expr_real_1): Expand the operand of a | |
13190 | VIEW_CONVERT_EXPR in its natural mode. | |
13191 | ||
7980bfb8 ILT |
13192 | 2009-05-26 Ian Lance Taylor <iant@google.com> |
13193 | ||
13194 | * Makefile.in (COMPILER, COMPILER_FLAGS): Define. | |
13195 | (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define. | |
13196 | (ALL_COMPILERFLAGS): Define. | |
13197 | (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER). | |
13198 | (cc1-dummy$(exeext), cc1$(exeext)): Likewise. | |
13199 | (collect2$(exeext), collect2.o): Likewise. | |
13200 | (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise. | |
13201 | (gcc-options.o, version.o, prefix.o, toplev.o): Likewise. | |
13202 | ($(out_object_file), mips-tfile, mips-tdump): Likewise. | |
13203 | (libbackend.o, intl.o, cppdefault.o): Likewise. | |
13204 | (gcov$(exeext), gcov-dump$(exeext)): Likewise. | |
13205 | (build/%.o): Use $(COMPILER_FOR_BUILD). | |
13206 | (build/gen%$(build_exeext)): Likewise. | |
13207 | (build/gcov-iov$(build_exeext)): LIkewise. | |
13208 | * config/t-darwin (darwin.o): Use $(COMPILER). | |
13209 | (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise. | |
13210 | * config/t-sol2 (sol2-c.o): Likewise. | |
13211 | (sol2.o): Likewise. | |
13212 | * config/t-vxworks (vxworks.o): Likewise. | |
13213 | * config/x-darwin (host-darwin.o): Likewise. | |
13214 | * config/x-hpux (host-hpux.o): Likewise. | |
13215 | * config/x-linux (host-linux.o): Likewise. | |
13216 | * config/x-solaris (host-solaris.o): Likewise. | |
13217 | * config/alpha/x-alpha (driver-alpha.o): Likewise. | |
13218 | * config/arm/t-arm (arm-c.o): Likewise. | |
13219 | * config/arm/t-pe (pe.o): Likewise. | |
13220 | * config/arm/t-wince-pe (pe.o): Likewise. | |
13221 | * config/i386/t-cygming (winnt.o): Likewise. | |
13222 | (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise. | |
13223 | * config/i386/t-cygwin (cygwin1.o): Likewise. | |
13224 | (cygwin2.o): Likewise. | |
13225 | * config/i386/t-i386 (i386-c.o): Likewise. | |
13226 | * config/i386/t-interix (winnt.o): Likewise. | |
13227 | * config/i386/t-netware (netware.o): Likewise. | |
13228 | * config/i386/t-nwld (nwld.o): Likewise. | |
13229 | * config/i386/x-darwin (host-i386-darwin.o): Likewise. | |
13230 | * config/i386/x-i386 (driver-i386.o): Likewise. | |
13231 | * config/i386/x-cygwin (host-cygwin.o): Likewise. | |
13232 | * config/i386/x-mingw32 (host-mingw32.o): Likewise. | |
13233 | * config/ia64/t-ia64 (ia64-c.o): Likewise. | |
13234 | * config/m32c/t-m32c (m32c-pragma.o): Likewise. | |
13235 | * config/mips/x-native (driver-native.o): Likewise. | |
13236 | * config/rs6000/t-rs6000 (rs6000-c.o): Likewise. | |
13237 | * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise. | |
13238 | * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise. | |
13239 | * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise. | |
13240 | * config/score/t-score-elf (score7.o): Likewise. | |
13241 | (score3.o): Likewise. | |
13242 | * config/sh/t-sh (sh-c.o): Likewise. | |
13243 | * config/sh/t-symbian (sh-c.o): Likewise. | |
13244 | (symbian.o): Likewise. | |
13245 | * config/spu/t-spu-elf (spu-c.o): Likewise. | |
13246 | * config/v850/t-v850 (v850-c.o): Likewise. | |
13247 | * config/v850/t-v850e (v850-c.o): Likewise. | |
13248 | ||
23977d3c RG |
13249 | 2009-05-26 Richard Guenther <rguenther@suse.de> |
13250 | ||
13251 | PR tree-optimization/40122 | |
13252 | * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to | |
13253 | VECTOR_CSTs if possible. | |
13254 | (fold_gimple_assign): Likewise. | |
13255 | ||
3d62b895 RG |
13256 | 2009-05-26 Richard Guenther <rguenther@suse.de> |
13257 | ||
13258 | PR middle-end/40252 | |
13259 | * fold-const.c (fold_binary): Use the correct types for building | |
13260 | rotates. | |
13261 | ||
12346147 RG |
13262 | 2009-05-26 Richard Guenther <rguenther@suse.de> |
13263 | ||
13264 | * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove | |
13265 | redundant calls to merge_alias_info. | |
13266 | (bump_vector_ptr): Likewise. | |
13267 | * tree-ssa-copy.c (merge_alias_info): Remove. | |
13268 | (replace_exp_1): Remove call to merge_alias_info. | |
13269 | (propagate_tree_value): Likewise. | |
13270 | (fini_copy_prop): Propagate points-to info. | |
13271 | * tree-flow.h (merge_alias_info): Remove. | |
13272 | ||
807d5e6f HS |
13273 | 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com> |
13274 | ||
13275 | * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove. | |
13276 | ||
85057983 JH |
13277 | 2009-05-25 Jan Hubicka <jh@suse.cz> |
13278 | ||
13279 | * cgraph.c (dump_cgraph_node): Dump size/time/benefit. | |
13280 | * cgraph.h (struct inline_summary): New filed self_wize, | |
13281 | size_inlining_benefit, self_time and time_inlining_benefit. | |
13282 | (struct cgraph_global_info): Replace insns by time ans size fields. | |
13283 | * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size | |
13284 | (ipcp_estimate_growth, ipcp_insert_stage): Likewise. | |
13285 | (ipcp_update_callgraph): Do not touch function bodies. | |
13286 | * ipa-inline.c: Include except.h | |
13287 | (MAX_TIME): New constant. | |
13288 | (overall_insns): Remove. | |
13289 | (leaf_node_p): New. | |
13290 | (overall_size, max_benefit): New static variables. | |
13291 | (cgraph_estimate_time_after_inlining): New function. | |
13292 | (cgraph_estimate_size_after_inlining): Rewrite using benefits. | |
13293 | (cgraph_clone_inlined_nodes): Update size. | |
13294 | (cgraph_mark_inline_edge): Update size. | |
13295 | (cgraph_estimate_growth): Use size info. | |
13296 | (cgraph_check_inline_limits): Check size. | |
13297 | (cgraph_default_inline_p): Likewise. | |
13298 | (cgraph_edge_badness): Compute badness based on benefit and size cost. | |
13299 | (cgraph_decide_recursive_inlining): Check size. | |
f3afc8a7 UB |
13300 | (cgraph_decide_inlining_of_small_function): Update size; dump sizes |
13301 | and times. | |
85057983 JH |
13302 | (cgraph_decide_inlining): Likewise. |
13303 | (cgraph_decide_inlining_incrementally): Likewise; honor | |
13304 | PARAM_EARLY_INLINING_INSNS. | |
13305 | (likely_eliminated_by_inlining_p): New predicate. | |
13306 | (estimate_function_body_sizes): New function. | |
13307 | (compute_inline_parameters): Use it. | |
13308 | * except.c (must_not_throw_labels): New function. | |
13309 | * except.h (must_not_throw_labels): Declare. | |
13310 | * tree-inline.c (init_inline_once): Kill inlining_weigths | |
13311 | * tree-ssa-structalias.c: Avoid uninitialized warning. | |
13312 | * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300. | |
13313 | (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60. | |
13314 | (PARAM_INLINE_CALL_COST): Remove. | |
13315 | (PARAM_EARLY_INLINING_INSNS): New. | |
13316 | ||
01df5c8a RG |
13317 | 2009-05-25 Richard Guenther <rguenther@suse.de> |
13318 | ||
13319 | PR tree-optimization/36327 | |
13320 | * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker | |
f3afc8a7 | 13321 | callback for reference translation or lookup at the point of may-defs. |
01df5c8a RG |
13322 | * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype. |
13323 | * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out | |
13324 | for union COMPONENT_REFs. | |
13325 | (vn_reference_lookup_3): New callback. Lookup from memset | |
13326 | and CONSTRUCTOR assignment, translate through struct copies. | |
13327 | (vn_reference_lookup_pieces): Make sure to not free the | |
13328 | passed operands array. Adjust walk_non_aliased_vuses call. | |
13329 | (vn_reference_lookup): Adjust walk_non_aliased_vuses call, | |
13330 | make sure we do not leak memory. | |
13331 | ||
6b8ed145 RG |
13332 | 2009-05-25 Richard Guenther <rguenther@suse.de> |
13333 | ||
13334 | * tree-ssa-alias.h (dump_points_to_solution): Declare. | |
13335 | * tree-inline.c (expand_call_inline): Reset the escaped and | |
13336 | callused solutions. | |
13337 | * tree-ssa-structalias.c (pass_build_ealias): New. | |
13338 | * tree-pass.h (pass_build_ealias): Declare. | |
f100a4a8 | 13339 | * passes.c (init_optimization_passes): Add PTA during |
6b8ed145 RG |
13340 | early optimizations. |
13341 | * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED | |
13342 | and CALLUSED solutions. | |
13343 | (dump_points_to_solution): New function, split out from ... | |
13344 | (dump_points_to_info_for): ... here. | |
13345 | * tree-parloops.c (parallelize_loops): Reset the escaped and | |
13346 | callused solutions. | |
13347 | ||
0adcf178 RO |
13348 | 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
13349 | ||
13350 | PR bootstrap/40027 | |
13351 | * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing. | |
13352 | * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define. | |
13353 | ||
12aaf609 IR |
13354 | 2009-05-25 Ira Rosen <irar@il.ibm.com> |
13355 | ||
13356 | PR tree-optimization/40238 | |
13357 | * tree-vect-stmts.c (vect_init_vector): Insert initialization | |
13358 | statements after basic block's labels. | |
f100a4a8 | 13359 | * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info() |
12aaf609 IR |
13360 | to free the allocated memory. |
13361 | ||
7f9a14e3 KK |
13362 | 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org> |
13363 | ||
13364 | * gcc/config/sh/sh.c (sh_set_return_address): Mark store of | |
13365 | return address with a USE. | |
13366 | ||
b842d478 RG |
13367 | 2009-05-24 Richard Guenther <rguenther@suse.de> |
13368 | ||
13369 | PR middle-end/40233 | |
13370 | * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs | |
13371 | array type from the main variant of the inner type. | |
13372 | ||
8db7b33f JBG |
13373 | 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de> |
13374 | ||
13375 | * config/vax/vax-protos.h (legitimate_constant_address_p): Change | |
13376 | definition to bool (from int) to un-break build. | |
13377 | (legitimate_constant_p, vax_mode_dependent_address_p): Likewise. | |
13378 | ||
cff4e50d PB |
13379 | 2009-05-24 Paolo Bonzini <bonzini@gnu.org> |
13380 | ||
13381 | * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes, | |
13382 | discard_stmt_changes): Delete. | |
13383 | * tree-ssa-operands.c (scb_stack): Delete. | |
13384 | (init_ssa_operands): Do not initialize it. | |
13385 | (fini_ssa_operands): Do not free it. | |
13386 | (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete. | |
13387 | ||
f100a4a8 | 13388 | * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with |
cff4e50d PB |
13389 | update_stmt, remove the others. Fix comments. |
13390 | * tree-dfa.c (optimize_stack_restore): Likewise. | |
13391 | * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise. | |
13392 | * tree-ssa-loop-ivopts.c (rewrite_use): Likewise. | |
13393 | * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise. | |
13394 | * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins): | |
13395 | Likewise. | |
13396 | * tree-ssa-propagate.c (substitute_and_fold): Likewise. | |
13397 | * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise. | |
f3afc8a7 UB |
13398 | (dom_opt_finalize_block): Likewise, adjusting access to |
13399 | stmts_to_rescan. | |
cff4e50d PB |
13400 | (optimize_stmt): Likewise, adjusting access to stmts_to_rescan. |
13401 | (stmts_to_rescan): Change item type to gimple. | |
13402 | (tree_ssa_dominator_optimize): Change type of stmts_to_rescan. | |
13403 | ||
a70d6342 IR |
13404 | 2009-05-24 Ira Rosen <irar@il.ibm.com> |
13405 | ||
13406 | * doc/passes.texi (Tree-SSA passes): Document SLP pass. | |
13407 | * tree-pass.h (pass_slp_vectorize): New pass. | |
13408 | * params.h (SLP_MAX_INSNS_IN_BB): Define. | |
13409 | * timevar.def (TV_TREE_SLP_VECTORIZATION): Define. | |
13410 | * tree-vectorizer.c (timevar.h): Include. | |
13411 | (user_vect_verbosity_level): Declare. | |
13412 | (vect_location): Fix comment. | |
13413 | (vect_set_verbosity_level): Update user_vect_verbosity_level | |
13414 | instead of vect_verbosity_level. | |
13415 | (vect_set_dump_settings): Add an argument. Ignore user defined | |
13416 | verbosity if dump flags require higher level of verbosity. Print to | |
13417 | stderr only for loop vectorization. | |
13418 | (vectorize_loops): Update call to vect_set_dump_settings. | |
13419 | (execute_vect_slp): New function. | |
13420 | (gate_vect_slp): Likewise. | |
13421 | (struct gimple_opt_pass pass_slp_vectorize): New. | |
13422 | * tree-vectorizer.h (struct _bb_vec_info): Define along macros to | |
13423 | access its members. | |
13424 | (vec_info_for_bb): New function. | |
13425 | (struct _stmt_vec_info): Add bb_vinfo and a macro for its access. | |
13426 | (VECTORIZATION_ENABLED): New macro. | |
13427 | (SLP_ENABLED, SLP_DISABLED): Likewise. | |
13428 | (vect_is_simple_use): Add bb_vec_info argument. | |
13429 | (new_stmt_vec_info, vect_analyze_data_ref_dependences, | |
13430 | vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment, | |
13431 | vect_analyze_data_ref_accesses, vect_analyze_data_refs, | |
13432 | vect_schedule_slp, vect_analyze_slp): Likewise. | |
13433 | (vect_analyze_stmt): Add slp_tree argument. | |
13434 | (find_bb_location): Declare. | |
13435 | (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise. | |
13436 | * tree-vect-loop.c (new_loop_vec_info): Adjust function calls. | |
13437 | (vect_analyze_loop_operations, vect_analyze_loop, | |
13438 | get_initial_def_for_induction, vect_create_epilog_for_reduction, | |
13439 | vect_finalize_reduction, vectorizable_reduction, | |
13440 | vectorizable_live_operation, vect_transform_loop): Likewise. | |
13441 | * tree-data-ref.c (dr_analyze_innermost): Update comment, | |
13442 | skip evolution analysis if analyzing a basic block. | |
13443 | (dr_analyze_indices): Likewise. | |
13444 | (initialize_data_dependence_relation): Skip the test whether the | |
13445 | object is invariant for basic blocks. | |
13446 | (compute_all_dependences): Skip dependence analysis for data | |
13447 | references in basic blocks. | |
13448 | (find_data_references_in_stmt): Don't fail in case of invariant | |
13449 | access in basic block. | |
13450 | (find_data_references_in_bb): New function. | |
13451 | (find_data_references_in_loop): Move code to | |
782dc37a | 13452 | find_data_references_in_bb and add a call to it. |
a70d6342 IR |
13453 | (compute_data_dependences_for_bb): New function. |
13454 | * tree-data-ref.h (compute_data_dependences_for_bb): Declare. | |
13455 | * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case | |
13456 | that STEP is 0. | |
13457 | (vect_analyze_data_ref_dependence): Check for interleaving in case of | |
13458 | unknown dependence in basic block and fail in case of dependence in | |
13459 | basic block. | |
13460 | (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data | |
13461 | dependence instances from either loop or basic block vectorization | |
13462 | info. | |
13463 | (vect_compute_data_ref_alignment): Check if it is loop vectorization | |
13464 | before calling nested_in_vect_loop_p. | |
13465 | (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data | |
13466 | dependence instances from either loop or basic block vectorization | |
13467 | info. | |
13468 | (vect_verify_datarefs_alignment): Likewise. | |
13469 | (vect_enhance_data_refs_alignment): Adjust function calls. | |
13470 | (vect_analyze_data_refs_alignment): Likewise. | |
13471 | (vect_analyze_group_access): Fix printing. Skip different checks if | |
13472 | DR_STEP is 0. Keep strided stores either in loop or basic block | |
13473 | vectorization data structure. Fix indentation. | |
13474 | (vect_analyze_data_ref_access): Fix comments, allow zero step in | |
13475 | basic blocks. | |
13476 | (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data | |
13477 | dependence instances from either loop or basic block vectorization | |
13478 | info. | |
13479 | (vect_analyze_data_refs): Update comment. Call | |
13480 | compute_data_dependences_for_bb to analyze basic blocks. | |
13481 | (vect_create_addr_base_for_vector_ref): Check for outer loop only in | |
13482 | case of loop vectorization. In case of basic block vectorization use | |
782dc37a | 13483 | data-ref itself as a base. |
a70d6342 IR |
13484 | (vect_create_data_ref_ptr): In case of basic block vectorization: |
13485 | don't advance the pointer, add new statements before the current | |
13486 | statement. Adjust function calls. | |
13487 | (vect_supportable_dr_alignment): Support only aligned accesses in | |
13488 | basic block vectorization. | |
13489 | * common.opt (ftree-slp-vectorize): New flag. | |
13490 | * tree-vect-patterns.c (widened_name_p): Adjust function calls. | |
13491 | (vect_pattern_recog_1): Likewise. | |
13492 | * tree-vect-stmts.c (process_use): Likewise. | |
13493 | (vect_init_vector): Add new statements in the beginning of the basic | |
13494 | block in case of basic block SLP. | |
13495 | (vect_get_vec_def_for_operand): Adjust function calls. | |
13496 | (vect_finish_stmt_generation): Likewise. | |
13497 | (vectorizable_call): Add assert that it is loop vectorization, adjust | |
13498 | function calls. | |
13499 | (vectorizable_conversion, vectorizable_assignment): Likewise. | |
13500 | (vectorizable_operation): In case of basic block SLP, take | |
13501 | vectorization factor from statement's type and skip the relevance | |
13502 | check. Adjust function calls. | |
13503 | (vectorizable_type_demotion): Add assert that it is loop | |
13504 | vectorization, adjust function calls. | |
13505 | (vectorizable_type_promotion): Likewise. | |
13506 | (vectorizable_store): Check for outer loop only in case of loop | |
13507 | vectorization. Adjust function calls. For basic blocks, skip the | |
13508 | relevance check and don't advance pointers. | |
13509 | (vectorizable_load): Likewise. | |
13510 | (vectorizable_condition): Add assert that it is loop vectorization, | |
13511 | adjust function calls. | |
13512 | (vect_analyze_stmt): Add argument. In case of basic block SLP, check | |
13513 | that it is not reduction, get vector type, call only supported | |
782dc37a | 13514 | functions, skip loop specific parts. |
a70d6342 IR |
13515 | (vect_transform_stmt): Check for outer loop only in case of loop |
13516 | vectorization. | |
13517 | (new_stmt_vec_info): Add new argument and initialize bb_vinfo. | |
13518 | (vect_is_simple_use): Fix comment, add new argument, fix conditions | |
13519 | for external definition. | |
13520 | * passes.c (pass_slp_vectorize): New pass. | |
13521 | * tree-vect-slp.c (find_bb_location): New function. | |
13522 | (vect_get_and_check_slp_defs): Add argument, adjust function calls, | |
13523 | check for patterns only in loops. | |
13524 | (vect_build_slp_tree): Add argument, adjust function calls, fail in | |
13525 | case of multiple types in basic block SLP. | |
13526 | (vect_mark_slp_stmts_relevant): New function. | |
13527 | (vect_supported_load_permutation_p): Fix comment. | |
13528 | (vect_analyze_slp_instance): Add argument. In case of basic block | |
13529 | SLP, take vectorization factor from statement's type, check that | |
13530 | unrolling factor is 1. Adjust function call. Save SLP instance in | |
13531 | either loop or basic block vectorization structure. Return FALSE, | |
13532 | if SLP failed. | |
13533 | (vect_analyze_slp): Add argument. Get strided stores groups from | |
13534 | either loop or basic block vectorization structure. Return FALSE | |
13535 | if basic block SLP failed. | |
13536 | (new_bb_vec_info): New function. | |
13537 | (destroy_bb_vec_info, vect_slp_analyze_node_operations, | |
13538 | vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise. | |
13539 | (vect_schedule_slp): Add argument. Get SLP instances from either | |
13540 | loop or basic block vectorization structure. Set vectorization factor | |
13541 | to be 1 for basic block SLP. | |
13542 | (vect_slp_transform_bb): New function. | |
13543 | * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define. | |
13544 | ||
0676c393 MM |
13545 | 2009-05-23 Mark Mitchell <mark@codesourcery.com> |
13546 | ||
13547 | * final.c (shorten_branches): Do not align labels for jump tables. | |
13548 | (final_scan_insn): Use JUMP_TABLE_DATA_P. | |
13549 | ||
94324dae EB |
13550 | 2009-05-23 Eric Botcazou <ebotcazou@adacore.com> |
13551 | ||
13552 | * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA. | |
13553 | Remove outdated reference to flow.c and fix nits. | |
13554 | * doc/gccint.texi: Tweak RTL description. | |
13555 | * doc/rtl.texi: Likewise. | |
13556 | ||
92bffc14 DC |
13557 | 2009-05-23 Denis Chertykov <chertykov@gmail.com> |
13558 | ||
13559 | * config/avr/avr.c: Change my email address. | |
13560 | * config/avr/avr.h: Likewise. | |
13561 | * config/avr/avr.md: Likewise. | |
13562 | * config/avr/avr-protos.h: Likewise. | |
13563 | * config/avr/libgcc.S: Likewise. | |
13564 | ||
eec9405e TS |
13565 | 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com> |
13566 | ||
13567 | * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove. | |
13568 | (spu_split_load, spu_split_store): Change return type to int. | |
13569 | (spu_split_convert): Declare. | |
13570 | * config/spu/predicates.md (spu_mem_operand): Remove. | |
13571 | (spu_mov_operand): Update. | |
13572 | (spu_dest_operand, shiftrt_operator, extend_operator): Define. | |
13573 | * config/spu/spu.c (regno_aligned_for_load): Remove. | |
13574 | (reg_aligned_for_addr, spu_expand_load): Define. | |
13575 | (spu_expand_extv): Reimplement and handle MEM. | |
13576 | (spu_expand_insv): Handle MEM. | |
13577 | (spu_sched_reorder): Handle insn's with length 0. | |
13578 | (spu_legitimate_address_p): Reimplement. | |
13579 | (store_with_one_insn_p): Return TRUE for any mode with size | |
13580 | larger than 16 bytes. | |
13581 | (address_needs_split): Define. | |
13582 | (spu_expand_mov): Call spu_split_load and spu_split_store for MEM | |
13583 | operands. | |
13584 | (spu_convert_move): Define. | |
782dc37a | 13585 | (spu_split_load): Use spu_expand_load and change all MEM's to TImode. |
eec9405e TS |
13586 | (spu_split_store): Change all MEM's to TImode. |
13587 | (spu_init_expanders): Preallocate registers that correspond to | |
13588 | LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with | |
13589 | mark_reg_pointer. | |
13590 | (spu_split_convert): Define. | |
13591 | * config/spu/spu.md (QHSI, QHSDI): New mode iterators. | |
13592 | (_move<mode>, _movdi, _movti): Update predicate and condition. | |
13593 | (load, store): Change to define_split. | |
13594 | (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to | |
13595 | extend<mode>ti2. | |
13596 | (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define. | |
13597 | (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one | |
13598 | define_insn_and_split of lshr<mode>3. | |
13599 | (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand. | |
13600 | (<v>ashr<mode>3_imm): Define. | |
13601 | (extv, extzv, insv): Allow MEM operands. | |
13602 | (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti, | |
13603 | shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi, | |
13604 | sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine. | |
13605 | (_spu_convert2): Change to define_insn_and_split and remove the | |
13606 | corresponding define_peephole2. | |
13607 | (stack_protect_set, stack_protect_test, stack_protect_test_si): | |
13608 | Change predicates to memory_operand. | |
13609 | ||
7d31a807 MM |
13610 | 2009-05-22 Mark Mitchell <mark@codesourcery.com> |
13611 | ||
13612 | * config/arm/thumb2.md: Add 16-bit multiply instructions. | |
7d31a807 | 13613 | |
d021d274 MM |
13614 | 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com> |
13615 | ||
13616 | PR tree-optimization/40219 | |
13617 | * tree.c (iterative_hash_expr): Make sure the builtin function is | |
13618 | a normal builtin function and not a front end or back end builtin | |
13619 | before indexing into the built_in_decls array. | |
13620 | ||
4d7a65ea RG |
13621 | 2009-05-22 Richard Guenther <rguenther@suse.de> |
13622 | ||
13623 | PR middle-end/38964 | |
13624 | * alias.c (write_dependence_p): Do not use TBAA for answering | |
13625 | anti-dependence or output-dependence. | |
782dc37a | 13626 | * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code. |
4d7a65ea RG |
13627 | (emit_pointer_definition): Remove. |
13628 | (emit_alias_warning): Likewise. | |
13629 | (find_what_var_points_to): Remove TBAA pruning code. | |
13630 | (find_what_p_points_to): Likewise. Do not warn about strict-aliasing | |
13631 | violations. | |
13632 | (compute_points_to_sets): Remove code computing the set of | |
13633 | dereferenced pointers. | |
13634 | * tree-data-ref.c (dr_may_alias_p): Properly use the split | |
13635 | oracle for querying anti and output dependencies. | |
13636 | * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying | |
13637 | if TBAA may be applied. | |
13638 | (refs_anti_dependent_p): New function. | |
13639 | (refs_output_dependent_p): Likewise. | |
13640 | * tree-ssa-alias.h (refs_anti_dependent_p): Declare. | |
13641 | (refs_output_dependent_p): Likewise. | |
13642 | * doc/tree-ssa.texi (Memory model): New section. | |
13643 | * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove. | |
13644 | * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove. | |
13645 | * cfgexpand.c (expand_gimple_basic_block): Do not handle | |
13646 | GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR. | |
13647 | * expr.c (expand_expr_real_1): Likewise. | |
13648 | * gimple-low.c (lower_stmt): Likewise. | |
13649 | * gimple-pretty-print.c (dump_gimple_stmt): Likewise. | |
13650 | (dump_gimple_cdt): Remove. | |
13651 | * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE. | |
13652 | (gimple_size): Likewise. | |
13653 | (walk_gimple_op): Likewise. | |
13654 | (is_gimple_stmt): Likewise. | |
13655 | (walk_stmt_load_store_addr_ops): Likewise. | |
13656 | (gimple_build_cdt): Remove. | |
13657 | * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove. | |
13658 | * gimple.h (gimple_cdt_new_type): Remove. | |
13659 | (gimple_cdt_new_type_ptr): Likewise. | |
13660 | (gimple_cdt_set_new_type): Likewise. | |
13661 | (gimple_cdt_location): Likewise. | |
13662 | (gimple_cdt_location_ptr): Likewise. | |
13663 | (gimple_cdt_set_location): Likewise. | |
13664 | * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR. | |
13665 | * tree-cfg.c (remove_useless_stmts_1): Do not handle | |
13666 | GIMPLE_CHANGE_DYNAMIC_TYPE. | |
13667 | (verify_types_in_gimple_stmt): Likewise. | |
13668 | * tree-inline.c (estimate_num_insns): Likewise. | |
13669 | (expand_call_inline): Do not copy DECL_NO_TBAA_P. | |
13670 | (copy_decl_to_var): Likewise. | |
13671 | (copy_result_decl_to_var): Likewise. | |
13672 | * tree-pretty-print.c (dump_generic_node): Do not handle | |
13673 | CHANGE_DYNAMIC_TYPE_EXPR. | |
13674 | * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise. | |
13675 | * tree-ssa-operands.c (get_expr_operands): Likewise. | |
13676 | * tree-ssa-structalias.c (struct variable_info): Remove | |
13677 | no_tbaa_pruning member. | |
13678 | (new_var_info): Do not set it based on DECL_NO_TBAA_P. | |
13679 | (unify_nodes): Do not copy it. | |
13680 | (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE. | |
13681 | (dump_solution_for_var): Do not dump no_tbaa_pruning state. | |
13682 | (set_uids_in_ptset): Do not check it. | |
13683 | (find_what_var_points_to): Likewise. | |
13684 | (compute_tbaa_pruning): Remove. | |
13685 | (compute_points_to_sets): Do not call it. | |
13686 | * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR. | |
13687 | * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove. | |
13688 | * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove. | |
13689 | (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise. | |
13690 | (DECL_NO_TBAA_P): Likewise. | |
13691 | (struct tree_decl_common): Move no_tbaa_flag to unused flags section. | |
13692 | * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P. | |
13693 | (expand_omp_atomic_pipeline): Do not set it. | |
13694 | * print-tree.c (print_node): Do not dump it. | |
13695 | * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove | |
13696 | redundant check. | |
13697 | ||
83a6ac60 VM |
13698 | 2009-05-22 Vladimir Makarov <vmakarov@redhat.com> |
13699 | ||
13700 | PR target/39856 | |
13701 | * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note | |
13702 | for clobber. | |
13703 | ||
fe2978fb MM |
13704 | 2009-05-22 Mark Mitchell <mark@codesourcery.com> |
13705 | ||
13706 | * tree.c (handle_dll_attribute): Mark dllexport'd inlines as | |
13707 | non-external. | |
13708 | ||
134ef638 BE |
13709 | 2009-05-22 Ben Elliston <bje@au.ibm.com> |
13710 | ||
13711 | * Makefile.in (bversion.h, s-bversion): New targets. | |
13712 | (TOPLEV_H): Add bversion.h. | |
13713 | * toplev.h: Include "bversion.h". | |
13714 | (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use | |
13715 | the __format__ attribute only if compiling with the same version | |
13716 | of GCC as the sources (the "build version"). | |
13717 | ||
52fc669d BE |
13718 | 2009-05-22 Ben Elliston <bje@au.ibm.com> |
13719 | ||
13720 | * c-format.c (handle_format_attribute): Fix comment typo. | |
13721 | ||
583ca921 SE |
13722 | 2009-05-21 Steve Ellcey <sje@cup.hp.com> |
13723 | ||
13724 | PR target/37846 | |
13725 | * config/ia64/ia64.opt (mfused-madd): New. | |
13726 | * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD. | |
13727 | * config/ia64/hpux.h (TARGET_DEFAULT): Ditto. | |
13728 | * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4, | |
13729 | madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4, | |
13730 | nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf, | |
13731 | msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4, | |
13732 | nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD. | |
f100a4a8 | 13733 | * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms |
583ca921 SE |
13734 | instruction if !TARGET_FUSED_MADD. |
13735 | (fpma, fpms): Remove colon from name. | |
13736 | ||
150e3929 RG |
13737 | 2009-05-22 Richard Guenther <rguenther@suse.de> |
13738 | ||
13739 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record | |
13740 | TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE. | |
13741 | * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle | |
13742 | TARGET_MEM_REF. | |
13743 | (create_expression_by_pieces): Only convert if necessary. | |
13744 | * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF. | |
13745 | * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST. | |
13746 | ||
9a2b090c AN |
13747 | 2009-05-21 Adam Nemet <anemet@caviumnetworks.com> |
13748 | ||
13749 | * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a | |
13750 | regular pattern from a template and rename it ... | |
13751 | (*extzv_truncsi_exts): ... to this. | |
13752 | ||
33b92c9d RG |
13753 | 2009-05-21 Richard Guenther <rguenther@suse.de> |
13754 | ||
13755 | * cgraph.h (struct cgraph_node): Remove inline_decl member. | |
13756 | * ipa-inline.c (cgraph_mark_inline_edge): Do not check it. | |
13757 | (cgraph_default_inline_p): Likewise. | |
13758 | (cgraph_decide_inlining_incrementally): Likewise. | |
13759 | ||
cabf85c3 L |
13760 | 2009-05-21 H.J. Lu <hongjiu.lu@intel.com> |
13761 | Uros Bizjak <ubizjak@gmail.com> | |
13762 | ||
13763 | * config/i386/cpuid.h (bit_MOVBE): New. | |
13764 | ||
13765 | * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe. | |
13766 | ||
13767 | * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New. | |
13768 | (OPTION_MASK_ISA_MOVBE_UNSET): Likewise. | |
13769 | (ix86_handle_option): Handle OPT_mmovbe. | |
13770 | (ix86_target_string): Add -mmovbe. | |
13771 | (pta_flags): Add PTA_MOVBE. | |
13772 | (processor_alias_table): Add PTA_MOVBE to "atom". | |
13773 | (override_options): Handle PTA_MOVBE. | |
13774 | ||
13775 | * config/i386/i386.h (TARGET_MOVBE): New. | |
13776 | ||
13777 | * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE. | |
13778 | (*bswapsi_movbe): New. | |
13779 | (*bswapdi_movbe): Likewise. | |
13780 | (bswapdi2): Renamed to ... | |
13781 | (*bswapdi_1): This. | |
13782 | (bswapdi2): New expander. | |
13783 | ||
13784 | * config/i386/i386.opt (mmovbe): New. | |
13785 | ||
13786 | * doc/invoke.texi: Document -mmovbe. | |
13787 | ||
9fefa0aa TG |
13788 | 2009-05-21 Taras Glek <tglek@mozilla.com> |
13789 | ||
13790 | * plugin.c (try_init_one_plugin): Updated to new plugin_init API. | |
13791 | * gcc-plugin.h (plugin_init): Updated signature. | |
13792 | * gcc-plugin.h (plugin_name_args): Moved to this header. | |
cabf85c3 L |
13793 | * doc/plugins.texi (plugin_init): Updated documention to reflect |
13794 | API change. | |
9fefa0aa TG |
13795 | * doc/plugins.texi (plugin_name_args): Added to documention. |
13796 | ||
1ea9fe56 MM |
13797 | 2009-05-21 Mark Mitchell <mark@codesourcery.com> |
13798 | ||
13799 | * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern. | |
13800 | (*mul<mode>3neg<mode>add<mode>_neon): Likewise. | |
13801 | ||
52f84254 SZ |
13802 | 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com> |
13803 | ||
13804 | * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and | |
13805 | JUMP_TABLE_DATA_P predicates where applicable. | |
13806 | * config/i386/predicates.md: Ditto. | |
13807 | * config/i386/sse.md: Ditto. | |
13808 | ||
a952487c JJ |
13809 | 2009-05-21 Jakub Jelinek <jakub@redhat.com> |
13810 | ||
93cac287 JJ |
13811 | * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For |
13812 | operand2 -128 override length_immediate attribute to 1. | |
13813 | * config/i386/predicates.md (constm128_operand): New predicate. | |
13814 | ||
a952487c JJ |
13815 | * config/i386/i386.c (memory_address_length): Handle %r12 |
13816 | the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp | |
13817 | also check REGNO. | |
13818 | (ix86_attr_length_address_default): For MODE_SI lea in 64-bit | |
13819 | mode look through optional ZERO_EXTEND and SUBREG. | |
13820 | * config/i386/i386.md (R12_REG): New define_constant. | |
13821 | (prefix_data16): For sse unit set also for MODE_TI insns. | |
13822 | (prefix_rex): For -m32 always return 0. For TYPE_IMOVX | |
13823 | insns set if operand 1 is ext_QIreg_operand. | |
13824 | (modrm): For TYPE_IMOV clear only if not MODE_DI. For | |
13825 | TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened | |
13826 | immediate. | |
13827 | (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change | |
13828 | mode from MODE_DI to MODE_SI. | |
13829 | (movdi_1_rex64): Override modrm and length_immediate attributes | |
13830 | only for movabs (TYPE_IMOV, alternative 2). | |
13831 | (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX. | |
13832 | (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit, | |
13833 | *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit, | |
13834 | *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit, | |
13835 | *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set | |
13836 | prefix_rex attribute if DImode. | |
13837 | (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64, | |
13838 | *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3, | |
13839 | *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3, | |
13840 | *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate | |
13841 | attribute to 1 if TYPE_ALU and operand 2 is const128_operand. | |
13842 | (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64): | |
13843 | Likewise. For TYPE_IMOV clear length_immediate attribute. | |
13844 | (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, | |
13845 | *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly, | |
13846 | *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp, | |
13847 | *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp, | |
13848 | *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU | |
13849 | or one operand TYPE_ISHIFT. | |
13850 | (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64, | |
13851 | *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit, | |
13852 | *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp, | |
13853 | *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext, | |
13854 | *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly, | |
13855 | *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp, | |
13856 | *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64, | |
13857 | *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64, | |
13858 | *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp, | |
13859 | *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext, | |
13860 | *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly, | |
13861 | *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp, | |
13862 | *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit, | |
13863 | *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp, | |
13864 | *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit, | |
13865 | *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit, | |
13866 | *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0, | |
13867 | set mode attribute, don't override length attribute. | |
13868 | (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute | |
13869 | to 1. | |
13870 | (return_internal_long): Set length attribute to 2 instead of 1. | |
13871 | (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64, | |
13872 | *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear | |
13873 | prefix_rex attribute. | |
782dc37a UB |
13874 | * config/i386/predicates.md (ext_QIreg_operand, const128_operand): |
13875 | New predicates. | |
13876 | (memory_displacement_only_operand): Always return 0 for TARGET_64BIT. | |
a952487c | 13877 | |
64af62c2 RR |
13878 | 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
13879 | ||
13880 | * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern. | |
13881 | ||
c166b898 ILT |
13882 | 2009-05-20 Ian Lance Taylor <iant@google.com> |
13883 | ||
13884 | * tree.c (build_tree_list_vec_stat): New function. | |
13885 | (ctor_to_vec): New function. | |
13886 | (build_nt_call_vec): New function. | |
13887 | (build_call_array): Change args to be a const pointer. | |
13888 | (build_call_vec): New function. | |
13889 | * tree.h (build_nt_call_vec): Declare. | |
13890 | (build_tree_list_vec_stat): Declare. | |
13891 | (build_tree_list_vec): Define. | |
13892 | (build_call_array): Update declaration. | |
13893 | (build_call_vec): Declare. | |
13894 | (ctor_to_vec): Declare. | |
13895 | * c-common.c (tree_vector_cache): New static variable. | |
13896 | (make_tree_vector): New function. | |
13897 | (release_tree_vector): New function. | |
13898 | (make_tree_vector_single): New function. | |
13899 | (make_tree_vector_copy): New function. | |
13900 | * c-common.h (tree_vector_cache, make_tree_vector): Declare. | |
13901 | (make_tree_vector_single, make_tree_vector_copy): Declare. | |
13902 | * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove. | |
13903 | (c_parser_expr_list): Don't manage cache here, instead call | |
13904 | make_tree_vector. | |
13905 | (c_parser_release_expr_list): Remove static function. | |
13906 | (c_parser_vec_to_tree_list): Remove static function. | |
13907 | (c_parser_attributes): Call build_tree_list_vec instead of | |
13908 | c_parser_vec_to_tree_list. Call release_tree_vector instead of | |
13909 | c_parser_release_expr_list. | |
13910 | (c_parser_postfix_expression_after_primary): Likewise. | |
13911 | (c_parser_objc_keywordexpr): Likewise. | |
13912 | ||
40449a90 SL |
13913 | 2009-05-20 Sandra Loosemore <sandra@codesourcery.com> |
13914 | ||
13915 | * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE, | |
13916 | TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and | |
13917 | TARGET_CONVERT_TO_TYPE. | |
13918 | * hooks.c (hook_tree_const_tree_null): Define. | |
13919 | * hooks.h (hook_tree_const_tree_null): Declare. | |
13920 | * target.h (struct gcc_target): Add invalid_parameter_type, | |
13921 | invalid_return_type, promoted_type, and convert_to_type fields. | |
13922 | * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define. | |
13923 | (TARGET_INVALID_RETURN_TYPE): Define. | |
13924 | (TARGET_PROMOTED_TYPE): Define. | |
13925 | (TARGET_CONVERT_TO_TYPE): Define. | |
13926 | (TARGET_INITIALIZER): Update for new fields. | |
13927 | * c-decl.c (grokdeclarator): Check targetm.invalid_return_type. | |
13928 | (grokparms): Check targetm.invalid_parameter_type. | |
13929 | * c-typeck.c (default_conversion): Check targetm.promoted_type. | |
13930 | * c-convert.c (convert): Check targetm.convert_to_type. | |
13931 | ||
642d97ff AN |
13932 | 2009-05-20 Adam Nemet <anemet@caviumnetworks.com> |
13933 | ||
13934 | * config/mips/mips.md (*extenddi_truncate<mode>, | |
13935 | *extendsi_truncate<mode>): Emit exts if supported. Add attribute | |
13936 | defintions. | |
13937 | (*extendhi_truncateqi): New define_insn_and_sptit. | |
13938 | ||
776248b8 JJ |
13939 | 2009-05-20 Jakub Jelinek <jakub@redhat.com> |
13940 | ||
13941 | PR middle-end/40204 | |
13942 | * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite | |
782dc37a | 13943 | recursion if build_int_cst_type returns the same INTEGER_CST as arg1. |
776248b8 | 13944 | |
d98e8686 EB |
13945 | 2009-05-20 Eric Botcazou <ebotcazou@adacore.com> |
13946 | ||
13947 | * fold-const.c (build_fold_addr_expr_with_type): Take the address of | |
13948 | the operand of VIEW_CONVERT_EXPR. | |
13949 | ||
37c50435 L |
13950 | 2009-05-20 H.J. Lu <hongjiu.lu@intel.com> |
13951 | ||
13952 | * config/i386/driver-i386.c (host_detect_local_cpu): Check | |
f3afc8a7 | 13953 | extended family and model for Intel processors. Support Intel Atom. |
37c50435 | 13954 | |
dbb6088f OH |
13955 | 2009-05-20 Olivier Hainque <hainque@adacore.com> |
13956 | ||
13957 | * gstab.h (stab_code_type): Define, to be used instead of the | |
13958 | __stab_debug_code enum, made anonymous. Add 2009 to the copyright | |
13959 | notice. | |
13960 | * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use | |
13961 | occurrences by stab_code_type. | |
13962 | * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused. | |
13963 | ||
7ec49257 MJ |
13964 | 2009-05-20 Martin Jambor <mjambor@suse.cz> |
13965 | ||
13966 | * tree-flow.h (insert_edge_copies_seq): Undeclare. | |
13967 | (sra_insert_before): Likewise. | |
13968 | (sra_insert_after): Likewise. | |
13969 | (sra_init_cache): Likewise. | |
13970 | (sra_type_can_be_decomposed_p): Likewise. | |
13971 | * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c | |
13972 | * tree-sra.c (sra_type_can_be_decomposed_p): Made static. | |
13973 | (sra_insert_before): Likewise. | |
13974 | (sra_insert_after): Likewise. | |
13975 | (sra_init_cache): Likewise. | |
13976 | (insert_edge_copies_seq): Made static and moved upwards. | |
13977 | ||
13978 | * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch | |
13979 | case. | |
13980 | ||
13981 | * tree-flow-inline.h (contains_view_convert_expr_p): New function. | |
13982 | ||
13983 | * ipa-prop.c (get_ssa_def_if_simple_copy): New function. | |
13984 | (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip | |
13985 | simple copies. | |
13986 | ||
0328ae4d RG |
13987 | 2009-05-20 Richard Guenther <rguenther@suse.de> |
13988 | ||
13989 | * expr.c (expand_expr_real_1): Avoid calling do_store_flag | |
13990 | with mismatched comparison modes. | |
13991 | ||
a7994a57 | 13992 | 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
782dc37a | 13993 | |
a7994a57 | 13994 | * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM. |
782dc37a UB |
13995 | (peephole ior (reg, int) -> mov, ior): Refactored for only ARM. |
13996 | * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic | |
13997 | with shifts for Thumb2. | |
13998 | (orsi_notsi): New for orn. | |
13999 | (*thumb_orsi_notshiftsi_si): Allow orn with shifts. | |
14000 | (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2. | |
14001 | * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2. | |
14002 | (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments. | |
14003 | Don't invert remainder for IOR. | |
f100a4a8 | 14004 | |
e36dc339 ZD |
14005 | 2009-05-19 Zdenek Dvorak <ook@ucw.cz> |
14006 | ||
14007 | PR tree-optimization/40087 | |
14008 | * tree-ssa-loop-niter.c (number_of_iterations_ne_max, | |
14009 | number_of_iterations_ne): Rename never_infinite argument. | |
14010 | (number_of_iterations_lt_to_ne, number_of_iterations_lt, | |
14011 | number_of_iterations_le): Handle pointer-type ivs when | |
14012 | exit_must_be_taken is false. | |
14013 | (number_of_iterations_cond): Do not always assume that | |
14014 | exit_must_be_taken if the control variable is a pointer. | |
14015 | ||
5cfd5d9b AP |
14016 | 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com> |
14017 | ||
14018 | * c-typeck.c (build_binary_op): Allow % on integal vectors. | |
14019 | * doc/extend.texi (Vector Extension): Document that % is allowed too. | |
14020 | ||
2f1c7156 L |
14021 | 2009-05-19 H.J. Lu <hongjiu.lu@intel.com> |
14022 | ||
14023 | * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check | |
14024 | ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN. | |
14025 | ||
7bb27074 MLI |
14026 | 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14027 | ||
14028 | PR c/40172 | |
14029 | * c.opt (Wlogical-op): Disabled by default. | |
14030 | * c-opt (c_common_post_options): Do not enable Wlogical-op with | |
14031 | Wextra. | |
14032 | * doc/invoke.texi (Wlogical-op): Likewise. | |
f100a4a8 | 14033 | |
5aefc6a0 EB |
14034 | 2009-05-19 Eric Botcazou <ebotcazou@adacore.com> |
14035 | ||
14036 | * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn | |
14037 | into CASE_CONVERT. | |
14038 | <PLUS_EXPR>: Strip useless type conversions instead of type nops. | |
14039 | Propagate the type of the first operand. | |
14040 | <ASSERT_EXPR>: Simplify. | |
14041 | (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type. | |
14042 | Rewrite using the RHS code as discriminant. | |
14043 | <NOP_EXPR>: Turn into CASE_CONVERT. | |
14044 | <PLUS_EXPR>: Propagate the type of the first operand. | |
14045 | ||
f3a83111 SE |
14046 | 2009-05-19 Steve Ellcey <sje@cup.hp.com> |
14047 | ||
14048 | * config/ia64/ia64-protos.h (ia64_dconst_0_5): New. | |
14049 | (ia64_dconst_0_375): New. | |
14050 | * config/ia64/ia64.c (ia64_override_options): Remove | |
14051 | -minline-sqrt-min-latency warning. | |
14052 | (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New. | |
14053 | (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New | |
14054 | * config/ia64/ia64.md (*sqrt_approx): Remove. | |
14055 | (sqrtsf2): Remove #if 0. | |
14056 | (sqrtsf2_internal_thr): Rewrite and move to div.md. | |
14057 | (sqrtdf): Remove assert. | |
14058 | (sqrtdf2_internal_thr): Rewrite and move to div.md. | |
14059 | (sqrtxf2): Remove #if 0. | |
14060 | (sqrtxf2_internal_thr): Rewrite and move to div.md. | |
14061 | * div.md (sqrt_approx_rf): New. | |
14062 | (sqrtsf2_internal_thr): New implementation. | |
14063 | (sqrtsf2_internal_lat): New. | |
14064 | (sqrtdf2_internal_thr: New implementation. | |
14065 | (sqrtxf2_internal): New implementation. | |
14066 | ||
1ffc7157 FXC |
14067 | 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com> |
14068 | Hans-Peter Nilsson <hp@axis.com> | |
14069 | ||
14070 | * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE) | |
14071 | (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE) | |
14072 | (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE) | |
14073 | (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE) | |
14074 | (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE) | |
14075 | (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE) | |
14076 | (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE) | |
14077 | (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE) | |
14078 | (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE) | |
14079 | (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here... | |
14080 | * c-common.c: ...from here. | |
14081 | ||
db91d9ef MLI |
14082 | 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14083 | ||
f3afc8a7 | 14084 | * c-common.c (warn_logical_operator): Remove unnecessary conditionals. |
db91d9ef | 14085 | |
bbb9d91f KG |
14086 | 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
14087 | ||
14088 | * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types. | |
14089 | ||
ce883f54 BE |
14090 | 2009-05-19 Ben Elliston <bje@au.ibm.com> |
14091 | ||
14092 | * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning | |
14093 | assignments with memcpy calls. | |
14094 | (add_fdes): Likewise. | |
14095 | (binary_search_unencoded_fdes): Likewise. | |
14096 | (linear_search_fdes): Eliminate type puns. | |
f100a4a8 | 14097 | |
377f099a RG |
14098 | 2009-05-19 Richard Guenther <rguenther@suse.de> |
14099 | ||
14100 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do | |
14101 | not falsely claim to have propagated into all uses. | |
14102 | ||
848bc769 BE |
14103 | 2009-05-19 Ben Elliston <bje@au.ibm.com> |
14104 | ||
14105 | * doc/invoke.texi (C Dialect Options): Update OpenMP specification | |
14106 | version to v3.0. | |
14107 | ||
1bb99877 KK |
14108 | 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org> |
14109 | ||
14110 | * config/sh/sh-protos.h (sh_legitimate_address_p): Remove. | |
14111 | * config/sh/sh.c (sh_legitimate_address_p): Make static. | |
14112 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14113 | * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14114 | * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS. | |
f100a4a8 | 14115 | |
82725547 DS |
14116 | 2009-05-18 Dodji Seketeli <dodji@redhat.com> |
14117 | ||
14118 | PR debug/40109 | |
14119 | * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a | |
14120 | child of the containing namespace's DIE. | |
14121 | ||
f6a1e430 AN |
14122 | 2009-05-18 Adam Nemet <anemet@caviumnetworks.com> |
14123 | ||
14124 | * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>, | |
14125 | *zero_extendhi_truncqi): Move after the zero_extend patterns. | |
14126 | (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the | |
14127 | extend patterns. | |
14128 | ||
6a90d232 L |
14129 | 2009-05-18 H.J. Lu <hongjiu.lu@intel.com> |
14130 | ||
14131 | PR target/39942 | |
14132 | * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace | |
14133 | gen_align with gen_pad. | |
14134 | (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of | |
14135 | #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN. | |
14136 | ||
14137 | * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New. | |
14138 | * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise. | |
14139 | ||
14140 | * config/i386/i386.md (align): Renamed to ... | |
14141 | (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with | |
14142 | ASM_OUTPUT_MAX_SKIP_PAD. | |
14143 | ||
c4406f74 AS |
14144 | 2009-05-18 Andreas Schwab <schwab@linux-m68k.org> |
14145 | ||
06555043 AS |
14146 | * config.gcc: Fix variable syntax. |
14147 | ||
c4406f74 AS |
14148 | PR target/39531 |
14149 | * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies | |
14150 | before calling exact_log2. | |
14151 | (output_iorsi3): Likewise. | |
14152 | (output_xorsi3): Likewise. | |
14153 | ||
99052692 KK |
14154 | 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org> |
14155 | ||
14156 | * config/sh/sh.c (expand_cbranchdi4): Use a scratch register | |
14157 | for the none zero constant operand except for EQ and NE | |
14158 | comprisons even when the first operand is R0. | |
14159 | ||
f4aa3848 AK |
14160 | 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com> |
14161 | ||
14162 | * config/s390/2064.md: Remove trailing whitespaces. | |
14163 | * config/s390/2084.md: Likewise. | |
14164 | * config/s390/constraints.md: Likewise. | |
14165 | * config/s390/fixdfdi.h: Likewise. | |
14166 | * config/s390/libgcc-glibc.ver: Likewise. | |
14167 | * config/s390/s390-modes.def: Likewise. | |
14168 | * config/s390/s390-protos.h: Likewise. | |
14169 | * config/s390/s390.c: Likewise. | |
14170 | * config/s390/s390.h: Likewise. | |
14171 | * config/s390/s390.md: Likewise. | |
14172 | * config/s390/tpf-unwind.h: Likewise. | |
14173 | ||
ab7256e4 MK |
14174 | 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com> |
14175 | ||
14176 | * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature. | |
14177 | ||
75df395f MK |
14178 | 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com> |
14179 | ||
14180 | M68K TLS support. | |
14181 | * configure.ac (m68k-*-*): Check if binutils support TLS. | |
14182 | * configure: Regenerate. | |
14183 | * config/m68k/predicates.md (symbolic_operand): Extend comment. | |
14184 | * config/m68k/constraints.md (Cu): New constraint. | |
14185 | * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove. | |
14186 | (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants. | |
14187 | (movsi): Handle TLS symbols. | |
14188 | (addsi3_5200): Handle XTLS symbols, indent. | |
14189 | * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare. | |
14190 | (m68k_tls_reference_p): Declare. | |
14191 | (m68k_legitimize_address): Declare. | |
14192 | (m68k_unwrap_symbol): Declare. | |
14193 | * config/m68k/m68k.opt (mxtls): New option. | |
14194 | * config/m68k/m68k.c (ggc.h): Include. | |
14195 | (m68k_output_dwarf_dtprel): Implement hook. | |
14196 | (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define. | |
14197 | (m68k_expand_prologue): Load GOT pointer when function needs it. | |
14198 | (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols. | |
14199 | (m68k_legitimate_constant_address_p): Same. | |
14200 | (m68k_decompose_address): Handle TLS references. | |
14201 | (m68k_get_gp): New static function. | |
14202 | (enum m68k_reloc): New contants. | |
14203 | (TLS_RELOC_P): New macro. | |
14204 | (m68k_wrap_symbol): New static function. | |
14205 | (m68k_unwrap_symbol): New function. | |
14206 | (m68k_final_prescan_insn_1): New static function. | |
14207 | (m68k_final_prescan_insn): New function. | |
14208 | (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static | |
14209 | functions. | |
14210 | (legitimize_pic_address): Handle TLS references.. | |
14211 | (m68k_tls_get_addr, m68k_get_tls_get_addr) | |
14212 | (m68k_libcall_value_in_a0_p) | |
14213 | (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp) | |
14214 | (m68k_call_m68k_read_tp): Helper variables and functions for ... | |
14215 | (m68k_legitimize_tls_address): Handle TLS references. | |
14216 | (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p): | |
14217 | New functions. | |
14218 | (m68k_legitimize_address): Handle TLS symbols. | |
14219 | (m68k_get_reloc_decoration): New static function. | |
14220 | (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and | |
14221 | UNSPEC_RELOC32. | |
14222 | (m68k_output_dwarf_dtprel): Implement hook. | |
14223 | (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32. | |
14224 | (m68k_libcall_value): Return result in A0 instead of D0 when asked by | |
14225 | m68k_call_* routines. | |
14226 | (sched_attr_op_type): Handle TLS symbols. | |
14227 | (gt-m68k.h): Include. | |
14228 | * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define. | |
14229 | (LEGITIMATE_PIC_OPERAND_P): Support TLS. | |
14230 | ||
8b75fc9b MJ |
14231 | 2009-05-18 Martin Jambor <mjambor@suse.cz> |
14232 | ||
14233 | * ipa-prop.c (ipa_check_stmt_modifications): Removed. | |
14234 | (visit_store_addr_for_mod_analysis): New function. | |
14235 | (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops. | |
14236 | (determine_cst_member_ptr): Use gimple_assign_single_p. | |
14237 | (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p. | |
14238 | (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of | |
14239 | operands. Don't check number of operands of a NOP_EXPR. | |
14240 | ||
f133d4a2 EF |
14241 | 2009-05-18 Eric Fisher <joefoxreal@gmail.com> |
14242 | ||
14243 | * doc/tree-ssa.texi (SSA Operands): Fix a mistake. | |
14244 | ||
ae8af500 L |
14245 | 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14246 | ||
14247 | PR c/40172 | |
14248 | * c-common.c (warn_logical_operator): Don't warn if one of | |
14249 | expression isn't always true or false. | |
14250 | ||
25e8fde8 KT |
14251 | 2009-05-17 Kai Tietz <kai.tietz@onevision.com> |
14252 | ||
ae8af500 L |
14253 | * config/i386/biarch32.h: New file. |
14254 | * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file. | |
25e8fde8 | 14255 | |
ef67af22 AN |
14256 | 2009-05-17 Adam Nemet <anemet@caviumnetworks.com> |
14257 | ||
14258 | * config/mips/mips.md (*zero_extend<mode>_trunchi, | |
14259 | *zero_extend<mode>_truncqi): Merge these into ... | |
14260 | (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern. | |
14261 | Name the pattern following this as *zero_extendhi_truncqi. | |
14262 | ||
e2d87023 BL |
14263 | 2009-05-16 Brad Lucier <lucier@math.purdue.edu> |
14264 | ||
14265 | PR middle-end/39301 | |
14266 | * hwint.h: Add macro HOST_WIDEST_INT_PRINT. | |
14267 | * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT. | |
14268 | (output_info): Make field HOST_WIDEST_INT. | |
14269 | (print_statistics): Use HOST_WIDEST_INT_PRINT. | |
14270 | (dump_bitmat_statistics): Same. | |
14271 | ||
428ddbf0 FXC |
14272 | 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com> |
14273 | ||
14274 | * config.gcc (use_gcc_stdint): Set to wrap. | |
14275 | * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, | |
14276 | INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, | |
14277 | UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, | |
14278 | INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, | |
14279 | UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE, | |
14280 | INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE, | |
14281 | UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, | |
14282 | UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define. | |
14283 | ||
1ab8a8c2 JM |
14284 | 2009-05-16 Joseph Myers <joseph@codesourcery.com> |
14285 | ||
14286 | * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and | |
14287 | tune_64. | |
14288 | * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT): | |
14289 | Move definitions earlier. | |
14290 | (OPT_ARCH64, OPT_ARCH32): Define. | |
14291 | (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32 | |
14292 | and tune_64. | |
14293 | ||
70544f44 RE |
14294 | 2009-05-16 Richard Earnshaw <rearnsha@arm.com> |
14295 | ||
14296 | PR target/40153 | |
14297 | * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name | |
14298 | implies. | |
14299 | ||
6241ded1 RE |
14300 | 2009-05-16 Richard Earnshaw <rearnsha@arm.com> |
14301 | ||
14302 | * arm.md (movdi2): Copy non-reg values to DImode registers. | |
14303 | ||
a99c6711 JJ |
14304 | 2009-05-16 Jakub Jelinek <jakub@redhat.com> |
14305 | ||
40a8f07a JJ |
14306 | PR target/39942 |
14307 | * final.c (label_to_max_skip): New function. | |
14308 | (label_to_alignment): Only use LABEL_TO_ALIGNMENT if | |
14309 | CODE_LABEL_NUMBER <= max_labelno. | |
14310 | * output.h (label_to_max_skip): New prototype. | |
14311 | * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to... | |
14312 | (ix86_avoid_jump_mispredicts): ... this. Don't define if | |
14313 | ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment. | |
14314 | Handle CODE_LABELs with >= 16 byte alignment or with | |
14315 | max_skip == (1 << align) - 1. | |
14316 | (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if | |
14317 | ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. | |
14318 | ||
a99c6711 JJ |
14319 | PR target/39942 |
14320 | * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second | |
14321 | .p2align 3 if MAX_SKIP is smaller than 7. | |
14322 | * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise. | |
14323 | ||
7e5487a2 ILT |
14324 | 2009-05-15 Ian Lance Taylor <iant@google.com> |
14325 | ||
14326 | * alias.c (struct alias_set_entry_d): Rename from struct | |
14327 | alias_set_entry. Change all uses. | |
14328 | * except.c (struct call_site_record_d): Rename from struct | |
14329 | call_site_record. Change all uses. | |
14330 | * except.h (struct eh_region_d): Rename from struct eh_region. | |
14331 | Change all uses. | |
14332 | * gcse.c (struct hash_table_d): Rename from struct hash_table. | |
14333 | Change all uses. | |
14334 | * graphite.c (struct ivtype_map_elt_d): Rename fromstruct | |
14335 | ivtype_map_elt. Change all uses. | |
14336 | (struct rename_map_elt_d): Rename fromstruct rename_map_elt. | |
14337 | Change all uses. | |
14338 | (struct ifsese_d): Rename fromstruct ifsese. Change all uses. | |
14339 | * graphite.h (struct name_tree_d): Rename from struct name_tree. | |
14340 | Change all uses. | |
14341 | (struct sese_d): Rename from struct sese. Change all uses. | |
782dc37a UB |
14342 | * omega.h (struct eqn_d): Rename from struct eqn. Change all uses. |
14343 | (struct omega_pb_d): Rename from struct omega_pb. Change all uses. | |
7e5487a2 ILT |
14344 | * optabs.h (struct optab_d): Rename from struct optab. Change all |
14345 | uses. | |
14346 | (struct convert_optab_d): Rename from struct convert_optab. | |
14347 | Change all uses. | |
14348 | * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct | |
14349 | ipa_opt_pass. Change all uses. | |
14350 | * tree-predcom.c (struct dref_d): Rename from struct dref. Change | |
14351 | all uses. | |
14352 | ||
14353 | * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already | |
14354 | defined as a typedef. | |
14355 | (grokdeclarator): If -Wc++-compat, warn if a typedef is already | |
14356 | defined as a tag. | |
14357 | ||
a243fb4a MLI |
14358 | 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14359 | ||
14360 | PR 16302 | |
14361 | * fold-const.c (make_range,build_range_check,merge_ranges): Move | |
14362 | declaration to... | |
f100a4a8 | 14363 | (merge_ranges): Returns bool. |
a243fb4a MLI |
14364 | * tree.h (make_range): .. to here. |
14365 | (build_range_check): Likewise. | |
14366 | (merge_ranges): Likewise. Renamed from merge_ranges. | |
14367 | * c-typeck.c (parser_build_binary_op): Update calls to | |
14368 | warn_logical_operator. | |
14369 | * c-common.c (warn_logical_operator): Add new warning. | |
14370 | * c-common.h (warn_logical_operator): Update declaration. | |
f100a4a8 | 14371 | |
1b53c5f3 MLI |
14372 | 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14373 | ||
782dc37a | 14374 | * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional. |
f100a4a8 | 14375 | |
c128599a KG |
14376 | 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
14377 | ||
f9bab007 KG |
14378 | * doc/install.texi: Document MPC requirements, flags etc. |
14379 | ||
c128599a KG |
14380 | * builtins.c (do_mpc_arg1, fold_builtin_ccos): New. |
14381 | (fold_builtin_cexp): Ensure we get a complex REAL_TYPE. | |
14382 | Evaluate constant arguments. | |
14383 | (fold_builtin_carg): Ensure we get a complex REAL_TYPE. | |
14384 | (fold_builtin_1): Likewise, also evaluate constant arguments. | |
14385 | Remove superfluous break. | |
14386 | (do_mpc_ckconv): New. | |
14387 | * real.h: Include mpc.h. | |
14388 | * toplev.c (print_version): Output MPC version info if available. | |
14389 | ||
d33e4b70 SL |
14390 | 2009-05-15 Sandra Loosemore <sandra@codesourcery.com> |
14391 | ||
782dc37a | 14392 | * fold-const.c (fold_convert_const_real_from_real): Check for overflow. |
d33e4b70 | 14393 | |
a02ab464 L |
14394 | 2009-05-15 H.J. Lu <hongjiu.lu@intel.com> |
14395 | ||
14396 | * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p | |
14397 | only once. | |
14398 | ||
796bda22 JH |
14399 | 2009-05-15 Jan Hubicka <jh@suse.cz> |
14400 | ||
14401 | * doc/invoke.texi (max-early-inliner-iterations): New flag. | |
14402 | * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE. | |
14403 | (try_inline): Fix return value. | |
14404 | (cgraph_decide_inlining_incrementally): Honor new value. | |
14405 | (cgraph_early_inlining): Handle indirect inlining. | |
14406 | * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New. | |
14407 | ||
d88e5c37 JH |
14408 | 2009-05-15 Jan Hubicka <jh@suse.cz> |
14409 | ||
14410 | * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag. | |
14411 | * cgraphunit.c (cgraph_finalize_function): Set it. | |
14412 | (cgraph_expand_function): Use it. | |
14413 | ||
ae63687c SL |
14414 | 2009-05-15 Sandra Loosemore <sandra@codesourcery.com> |
14415 | ||
14416 | * real.c (encode_ieee_half): Define. | |
14417 | (decode_ieee_half): Define. | |
14418 | (ieee_half_format): Define. | |
14419 | (arm_half_format): Define. | |
14420 | * real.h (ieee_half_format): Declare. | |
14421 | (arm_half_format): Declare. | |
14422 | ||
1bd74ad9 SL |
14423 | 2009-05-15 Sandra Loosemore <sandra@codesourcery.com> |
14424 | ||
14425 | * optabs.c (prepare_float_lib_cmp): Test that the comparison, | |
14426 | swapped, and reversed optabs exist before trying to use them. | |
14427 | ||
dc34db56 PB |
14428 | 2009-05-15 Paul Brook <paul@codesourcery.com> |
14429 | Sandra Loosemore <sandra@codesourcery.com> | |
14430 | ||
dc34db56 PB |
14431 | * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure |
14432 | loads. Allow PRE_DEC. | |
14433 | (output_move_neon): Handle PRE_DEC. | |
14434 | (arm_print_operand): Add 'A' for neon structure loads. | |
14435 | * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype. | |
14436 | * config/arm/neon.md (neon_mov): Update comment. | |
14437 | * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand | |
14438 | calls. | |
14439 | (Um): New constraint. | |
14440 | ||
1d405d7b JH |
14441 | 2009-05-15 Jan Hubicka <jh@suse.cz> |
14442 | ||
14443 | Revert the following patch until testsuite fallout is fixed: | |
14444 | * cgraph.c (dump_cgraph_node): Dump size/time/benefit. | |
14445 | * cgraph.h (struct inline_summary): New filed self_wize, | |
14446 | size_inlining_benefit, self_time and time_inlining_benefit. | |
14447 | (struct cgraph_global_info): Replace insns by time ans size fields. | |
14448 | * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size | |
14449 | (ipcp_estimate_growth, ipcp_insert_stage): Likewise. | |
14450 | (ipcp_update_callgraph): Do not touch function bodies. | |
14451 | * ipa-inline.c: Include except.h | |
782dc37a | 14452 | (MAX_TIME): New constant. |
1d405d7b JH |
14453 | (overall_insns): Remove |
14454 | (overall_size, max_benefit): New static variables. | |
14455 | (cgraph_estimate_time_after_inlining): New function. | |
14456 | (cgraph_estimate_size_after_inlining): Rewrite using benefits. | |
14457 | (cgraph_clone_inlined_nodes): Update size. | |
14458 | (cgraph_mark_inline_edge): Update size. | |
14459 | (cgraph_estimate_growth): Use size info. | |
14460 | (cgraph_check_inline_limits): Check size. | |
14461 | (cgraph_default_inline_p): Likewise. | |
14462 | (cgraph_edge_badness): Compute badness based on benefit and size cost. | |
14463 | (cgraph_decide_recursive_inlining): Check size. | |
f3afc8a7 UB |
14464 | (cgraph_decide_inlining_of_small_function): Update size; dump sizes |
14465 | and times. | |
1d405d7b | 14466 | (cgraph_decide_inlining): Likewise. |
00c5fa1b EB |
14467 | (cgraph_decide_inlining_incrementally): Likewise; honor |
14468 | PARAM_EARLY_INLINING_INSNS. | |
1d405d7b JH |
14469 | (likely_eliminated_by_inlining_p): New predicate. |
14470 | (estimate_function_body_sizes): New function. | |
14471 | (compute_inline_parameters): Use it. | |
14472 | * except.c (must_not_throw_labels): New function. | |
14473 | * except.h (must_not_throw_labels): Declare. | |
14474 | * tree-inline.c (init_inline_once): Kill inlining_weigths | |
14475 | * tree-ssa-structalias.c: Avoid uninitialized warning. | |
14476 | * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300. | |
14477 | (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60. | |
14478 | (PARAM_INLINE_CALL_COST): Remove. | |
14479 | (PARAM_EARLY_INLINING_INSNS): New. | |
14480 | ||
7ffa47ca RG |
14481 | 2009-05-15 Richard Guenther <rguenther@suse.de> |
14482 | ||
14483 | * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals, | |
14484 | not TODO_update_ssa. | |
14485 | ||
828552ed RG |
14486 | 2009-05-15 Richard Guenther <rguenther@suse.de> |
14487 | ||
14488 | PR tree-optimization/39999 | |
14489 | * gimple.h (gimple_expr_type): Use the expression type looking | |
14490 | through useless conversions. | |
14491 | * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type. | |
14492 | (vn_nary_op_insert_stmt): Likewise. | |
14493 | (simplify_binary_expression): Likewise. | |
14494 | ||
248fc9f3 RG |
14495 | 2009-05-15 Richard Guenther <rguenther@suse.de> |
14496 | ||
14497 | * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta): | |
14498 | New options, enabled by default. | |
14499 | * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta): | |
14500 | Document. | |
14501 | * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop. | |
14502 | * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop. | |
14503 | * tree-ssa-structalias.c (gate_tree_pta): New function. | |
14504 | (pass_build_alias): Use it. | |
14505 | ||
16b29cc4 JM |
14506 | 2009-05-15 Joseph Myers <joseph@codesourcery.com> |
14507 | ||
14508 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also | |
14509 | recurse on an invariant address if a conversion from a pointer | |
14510 | type to a wider integer type is involved. | |
14511 | ||
125cae84 JH |
14512 | 2009-05-15 Jan Hubicka <jh@suse.cz> |
14513 | ||
14514 | * cgraph.c (dump_cgraph_node): Dump size/time/benefit. | |
14515 | * cgraph.h (struct inline_summary): New filed self_wize, | |
14516 | size_inlining_benefit, self_time and time_inlining_benefit. | |
14517 | (struct cgraph_global_info): Replace insns by time ans size fields. | |
14518 | * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size | |
14519 | (ipcp_estimate_growth, ipcp_insert_stage): Likewise. | |
14520 | (ipcp_update_callgraph): Do not touch function bodies. | |
14521 | * ipa-inline.c: Include except.h | |
782dc37a | 14522 | (MAX_TIME): New constant. |
125cae84 JH |
14523 | (overall_insns): Remove |
14524 | (overall_size, max_benefit): New static variables. | |
14525 | (cgraph_estimate_time_after_inlining): New function. | |
14526 | (cgraph_estimate_size_after_inlining): Rewrite using benefits. | |
14527 | (cgraph_clone_inlined_nodes): Update size. | |
14528 | (cgraph_mark_inline_edge): Update size. | |
14529 | (cgraph_estimate_growth): Use size info. | |
14530 | (cgraph_check_inline_limits): Check size. | |
14531 | (cgraph_default_inline_p): Likewise. | |
14532 | (cgraph_edge_badness): Compute badness based on benefit and size cost. | |
14533 | (cgraph_decide_recursive_inlining): Check size. | |
f3afc8a7 UB |
14534 | (cgraph_decide_inlining_of_small_function): Update size; dump sizes |
14535 | and times. | |
125cae84 | 14536 | (cgraph_decide_inlining): Likewise. |
00c5fa1b EB |
14537 | (cgraph_decide_inlining_incrementally): Likewise; honor |
14538 | PARAM_EARLY_INLINING_INSNS. | |
125cae84 JH |
14539 | (likely_eliminated_by_inlining_p): New predicate. |
14540 | (estimate_function_body_sizes): New function. | |
14541 | (compute_inline_parameters): Use it. | |
14542 | * except.c (must_not_throw_labels): New function. | |
14543 | * except.h (must_not_throw_labels): Declare. | |
14544 | * tree-inline.c (init_inline_once): Kill inlining_weigths | |
14545 | * tree-ssa-structalias.c: Avoid uninitialized warning. | |
14546 | * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300. | |
14547 | (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60. | |
14548 | (PARAM_INLINE_CALL_COST): Remove. | |
14549 | (PARAM_EARLY_INLINING_INSNS): New. | |
14550 | doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update. | |
14551 | (inline-call-cost): Remove. | |
14552 | (early-inlining-insns): New. | |
14553 | ||
84fb43a1 EB |
14554 | 2009-05-15 Eric Botcazou <ebotcazou@adacore.com> |
14555 | ||
14556 | * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them | |
14557 | for bounds. | |
14558 | (print_int_cst_bounds_in_octal_p): Likewise. | |
14559 | (dbxout_type): Adjust calls to above functions. Be prepared to deal | |
14560 | with subtypes. | |
14561 | * dwarf2out.c (base_type_die): Likewise. | |
14562 | (is_subrange_type): Delete. | |
14563 | (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds. | |
14564 | (modified_type_die): Call subrange_type_for_debug_p on subtypes. | |
f3afc8a7 UB |
14565 | * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it |
14566 | if the destination type is boolean. | |
84fb43a1 EB |
14567 | (build_range_check): Do not special-case subtypes. |
14568 | (fold_sign_changed_comparison): Likewise. | |
14569 | (fold_unary): Likewise. | |
14570 | * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define. | |
14571 | (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS. | |
14572 | * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds. | |
f3afc8a7 UB |
14573 | * tree.c (subrange_type_for_debug_p): New predicate based on the |
14574 | former is_subrange_type. | |
84fb43a1 EB |
14575 | * tree.h (subrange_type_for_debug_p): Declare. |
14576 | * tree-chrec.c (avoid_arithmetics_in_type_p): Delete. | |
14577 | (convert_affine_scev): Remove call to above function. | |
14578 | (chrec_convert_aggressive): Likewise. | |
14579 | * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return | |
14580 | false for conversions involving subtypes. | |
14581 | * tree-vrp.c (vrp_val_max): Do not special-case subtypes. | |
14582 | (vrp_val_min): Likewise. | |
14583 | (needs_overflow_infinity): Likewise. | |
14584 | (extract_range_from_unary_expr): Likewise. | |
14585 | ||
331d9186 PB |
14586 | 2009-05-15 Paolo Bonzini <bonzini@gnu.org> |
14587 | ||
e9351712 L |
14588 | * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS. |
14589 | * config/frv/frv.c: Likewise. | |
14590 | * config/s390/s390.c: Likewise. | |
14591 | * config/sparc/sparc.h: Likewise. | |
14592 | * config/i386/i386.h: Likewise. | |
14593 | * config/i386/i386.c: Likewise. | |
14594 | * config/crx/crx.c: Likewise. | |
14595 | * config/m68hc11/m68hc11.h: Likewise. | |
14596 | * config/iq2000/iq2000.c: Likewise. | |
14597 | * config/mn10300/mn10300.h: Likewise. | |
14598 | * config/mn10300/mn10300.c: Likewise. | |
14599 | * config/m68k/m68k.c: Likewise. | |
14600 | * config/rs6000/rs6000.c: Likewise. | |
14601 | * config/rs6000/xcoff.h: Likewise. | |
14602 | * config/rs6000/linux64.h: Likewise. | |
14603 | * config/rs6000/sysv4.h: Likewise. | |
14604 | * config/score/score3.c: Likewise. | |
14605 | * config/score/score7.c: Likewise. | |
14606 | * config/score/score.c: Likewise. | |
14607 | * config/arm/arm.md: Likewise. | |
14608 | * config/mips/mips.c: Likewise. | |
14609 | * config/mips/mips.md: Likewise. | |
14610 | * config/bfin/bfin.h: Likewise. | |
14611 | * config/pa/pa.c: Likewise. | |
14612 | * config/pa/constraints.md: Likewise. | |
14613 | ||
14614 | * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete. | |
14615 | * config/pdp11/pdp11.c (legitimate_address_p): Delete. | |
14616 | * config/pdp11/pdp11.h: Use memory_address_p instead. | |
331d9186 | 14617 | |
09639a83 ILT |
14618 | 2009-05-14 Ian Lance Taylor <iant@google.com> |
14619 | ||
14620 | * passes.c (finish_optimization_passes): Change i to int. | |
14621 | * plugin.c (plugins_active_p): Change event to int. | |
14622 | (dump_active_plugins): Likewise. | |
14623 | * reginfo.c (invalid_mode_change_p): Change to to unsigned int. | |
14624 | Add cast. | |
14625 | * tree.c (tree_range_check_failed): Change c to unsigned int. | |
14626 | (omp_clause_range_check_failed): Likewise. | |
14627 | (build_common_builtin_nodes): Change mode to int. Add cast. | |
14628 | * config/ia64/ia64.c (is_emitted): Change r to unsigned int. | |
14629 | (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise. | |
14630 | ||
14631 | * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using | |
14632 | ++ or -- with a variable of enum type. | |
14633 | ||
c04a56bf SB |
14634 | 2009-05-14 Steven Bosscher <steven@gcc.gnu.org> |
14635 | ||
14636 | PR driver/40144 | |
14637 | * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op. | |
14638 | ||
237ee620 SB |
14639 | 2009-05-14 Steven Bosscher <steven@gcc.gnu.org> |
14640 | ||
14641 | * store-motion.c: Do not include params.h | |
14642 | * Makefile.in: Fix dependencies for various files. | |
14643 | ||
1154c4fa SB |
14644 | 2009-05-14 Steven Bosscher <steven@gcc.gnu.org> |
14645 | ||
14646 | * auto-inc-dec.c: Fix pass description, remove apparent | |
14647 | accidental duplication. | |
14648 | ||
61c27353 L |
14649 | 2009-05-14 H.J. Lu <hongjiu.lu@intel.com> |
14650 | ||
14651 | PR middle-end/40147 | |
14652 | * ipa-utils.h (memory_identifier_string): Moved to ... | |
14653 | * tree.h (memory_identifier_string): Here. Add GTY(()). | |
14654 | ||
c6c3dba9 PB |
14655 | 2009-05-14 Paolo Bonzini <bonzini@gnu.org> |
14656 | ||
14657 | * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this | |
14658 | in the former documentation of... | |
14659 | (GO_IF_LEGITIMATE_ADDRESS): ... this. | |
14660 | * ira-conflicts.c (get_dup_num): Use address_operand. | |
14661 | * targhooks.c (default_legitimate_address_p): New. | |
14662 | * targhooks.h (default_legitimate_address_p): New. | |
14663 | * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: | |
14664 | Call hook. | |
14665 | * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook. | |
14666 | * target.h (struct target): Add legitimate_address_p. | |
14667 | * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14668 | (TARGET_INITIALIZER): Include it. | |
14669 | ||
14670 | * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14671 | * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove. | |
14672 | * config/alpha/alpha.c (alpha_legitimate_address_p): Make static. | |
14673 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14674 | ||
14675 | * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14676 | (REG_OK_STRICT_P): Delete. | |
14677 | * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to... | |
14678 | (frv_legitimate_address_p_1): ... this. | |
14679 | * config/frv/frv.c (frv_legitimate_address_p): Forward to... | |
14680 | (frv_legitimate_address_p_1): ... the renamed old | |
14681 | frv_legitimate_address_p. | |
14682 | * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p. | |
14683 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14684 | ||
14685 | * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14686 | * config/s390/s390-protos.h (legitimate_address_p): Remove. | |
14687 | * config/s390/s390.c (legitimate_address_p): Rename to... | |
14688 | (s390_legitimate_address_p): ... this, make static. | |
14689 | (legitimize_address): Adjust call. | |
14690 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14691 | * config/s390/constraints.md ("e"): Call strict_memory_address_p. | |
14692 | ||
14693 | * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14694 | * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove. | |
14695 | * config/m32c/m32c.c (m32c_legitimate_address_p): Make static. | |
14696 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14697 | ||
14698 | * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14699 | * config/spu/spu-protos.h (spu_legitimate_address): Remove. | |
14700 | * config/spu/spu.c (spu_legitimate_address): Rename to... | |
14701 | (spu_legitimate_address_p): ... this, make static. | |
14702 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14703 | ||
14704 | * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14705 | * config/sparc/sparc-protos.h (legitimate_address_p): Remove. | |
14706 | * config/sparc/sparc.c (legitimate_address_p): Rename to... | |
14707 | (sparc_legitimate_address_p): ... this, make static and return bool. | |
14708 | (legitimize_address): Adjust call. | |
14709 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14710 | ||
14711 | * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14712 | * config/i386/i386-protos.h (legitimate_address_p): Remove. | |
14713 | * config/i386/i386.c (legitimate_address_p): Rename to... | |
14714 | (ix86_legitimate_address_p): ... this, make static. | |
14715 | (constant_address_p): Move after it, adjust call. | |
14716 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14717 | ||
14718 | * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14719 | * config/avr/avr-protos.h (legitimate_address_p): Remove. | |
14720 | * config/avr/avr.c (legitimate_address_p): Rename to... | |
14721 | (avr_legitimate_address_p): ... this, make static. | |
14722 | (legitimize_address): Adjust call. | |
14723 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14724 | ||
14725 | * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14726 | * config/crx/crx-protos.h (crx_legitimate_address_p): Remove. | |
14727 | * config/crx/crx.c (crx_legitimate_address_p): Make static. | |
14728 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14729 | ||
14730 | * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14731 | * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove. | |
14732 | * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static. | |
14733 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14734 | ||
14735 | * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14736 | * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p): | |
14737 | Remove. | |
14738 | * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): | |
14739 | Make static. | |
14740 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14741 | ||
14742 | * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14743 | * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address): | |
14744 | Remove. | |
14745 | * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address): | |
14746 | Rename to... | |
14747 | (m68hc11_legitimate_address_p): ... this, make static. | |
14748 | (go_if_legitimate_address_internal): Rename to... | |
14749 | (m68hc11_legitimate_address_p_1): ... this. | |
14750 | (legitimize_address): Adjust call. | |
14751 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14752 | ||
14753 | * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
782dc37a UB |
14754 | * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove. |
14755 | * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static. | |
c6c3dba9 PB |
14756 | (TARGET_LEGITIMATE_ADDRESS_P): New. |
14757 | ||
14758 | * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14759 | * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove. | |
14760 | * config/mn10300/mn10300.c (legitimate_address_p): Rename to... | |
14761 | (mn10300_legitimate_address_p): ... this, make static. | |
14762 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14763 | ||
14764 | * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14765 | * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove. | |
14766 | * config/m68k/m68k.c (m68k_legitimate_address_p): Make static. | |
14767 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14768 | ||
14769 | * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14770 | (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete. | |
14771 | (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above. | |
14772 | * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14773 | * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove. | |
14774 | * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to... | |
14775 | (rs6000_legitimate_address_p): ... this, make static. | |
14776 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14777 | (REG_MODE_OK_FOR_BASE_P): Delete. | |
14778 | (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P. | |
14779 | ||
14780 | * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14781 | * config/picochip/picochip-protos.h (picochip_legitimate_address_p): | |
14782 | Delete. | |
14783 | * config/picochip/picochip.c (picochip_legitimate_address_p): Make | |
14784 | static, adjust types. | |
14785 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14786 | ||
14787 | * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14788 | * config/score/score.c (score_address_p): Rename to... | |
14789 | (score_legitimate_address_p): ... this. | |
14790 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14791 | * config/score/score3.c (score3_address_p): Rename to... | |
14792 | (score3_legitimate_address_p): ... this. | |
14793 | * config/score/score7.c (score7_address_p): Rename to... | |
14794 | (score7_legitimate_address_p): ... this. | |
14795 | ||
14796 | * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS, | |
14797 | THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS, | |
14798 | GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14799 | * config/arm/arm-protos.h (thumb1_legitimate_address_p, | |
14800 | thumb2_legitimate_address_p): Delete. | |
14801 | (arm_legitimate_address_p): Rename to... | |
14802 | (arm_legitimate_address_outer_p): ... this. | |
14803 | * config/arm/constraints.md ("Uq"): Adjust call. | |
14804 | * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise. | |
f3afc8a7 UB |
14805 | * config/arm/arm.c (arm_legitimate_address_p): New, rename old one |
14806 | to... | |
c6c3dba9 | 14807 | (arm_legitimate_address_outer_p): ... this. |
f3afc8a7 UB |
14808 | (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make |
14809 | static. | |
c6c3dba9 PB |
14810 | (TARGET_LEGITIMATE_ADDRESS_P): New. |
14811 | ||
14812 | * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14813 | * config/mips/mips-protos.h (mips_legitimate_address_p): Remove. | |
14814 | * config/mips/mips.c (mips_legitimate_address_p): ... Make static. | |
14815 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14816 | ||
14817 | * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14818 | * config/vax/vax-protos.h (legitimate_address_p): Remove. | |
14819 | * config/vax/vax.c (legitimate_address_p): Rename to... | |
14820 | (vax_legitimate_address_p): ... this, make static. | |
14821 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14822 | ||
14823 | * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14824 | * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove. | |
14825 | * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static. | |
14826 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14827 | ||
14828 | * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14829 | * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove. | |
14830 | * config/mmix/mmix.c (mmix_legitimate_address): Rename to... | |
14831 | (mmix_legitimate_address_p): ... this, make static. | |
14832 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14833 | ||
14834 | * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete. | |
14835 | * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove. | |
14836 | * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static. | |
14837 | (TARGET_LEGITIMATE_ADDRESS_P): New. | |
14838 | ||
3bd0d9c8 PB |
14839 | 2009-05-14 Paolo Bonzini <bonzini@gnu.org> |
14840 | ||
14841 | * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling | |
14842 | of MODE_COMPLEX_INT. | |
14843 | ||
fe049033 RO |
14844 | 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
14845 | ||
14846 | * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to | |
14847 | LCT_NORMAL in function call. | |
14848 | * mips-tdump.c (print_file_desc): Add cast to enum type. | |
14849 | * mips-tfile.c (add_ext_symbol): Add casts to enum types. | |
14850 | (mark_stabs): Add casts to enum types. | |
14851 | (parse_stabs_common): Add casts to enum types. | |
16f7ad42 | 14852 | |
b0907a6c AN |
14853 | 2009-05-13 Adam Nemet <anemet@caviumnetworks.com> |
14854 | ||
14855 | * config/mips/mips.c (mips_print_operand) <REG, MEM, default>: | |
14856 | Check for invalid values of LETTER. | |
14857 | ||
d1c8e08a TG |
14858 | 2009-05-13 Taras Glek <tglek@mozilla.com> |
14859 | ||
f3afc8a7 UB |
14860 | * attribs.c (register_attribute): moved out attribute registration |
14861 | into register_attribute. | |
14862 | * doc/plugins.texi: Documented register_attribute and | |
14863 | PLUGIN_ATTRIBUTES. | |
16f7ad42 TG |
14864 | * gcc-plugin.h: Added forward decl for register_attribute. |
14865 | * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES. | |
14866 | * plugin.c (register_callback, invoke_plugin_callbacks): Added | |
14867 | PLUGIN_ATTRIBUTES boilerplate. | |
d1c8e08a | 14868 | |
4ed7f970 DK |
14869 | 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com> |
14870 | ||
14871 | * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration | |
14872 | values even in sentinel and empty entries. | |
14873 | (ms_printf_flag_specs): Likewise. | |
14874 | (ms_scanf_flag_specs): Likewise. | |
14875 | (ms_strftime_flag_specs): Likewise. | |
14876 | (ms_print_char_table): Likewise. | |
14877 | (ms_scan_char_table): Likewise. | |
14878 | (ms_time_char_table): Likewise. | |
14879 | ||
3d8fa148 DK |
14880 | 2009-05-13 Doug Kwan <dougkwan@google.com> |
14881 | ||
14882 | * tree-ssa-sccvn.c (compare_ops): Stabilize qsort. | |
14883 | ||
f06257d3 AN |
14884 | 2009-05-13 Adam Nemet <anemet@caviumnetworks.com> |
14885 | ||
14886 | * config/mips/mips.md (store): Add attributes for QI and HI. | |
14887 | Update comment. | |
14888 | (truncdisi2, truncdihi2, truncdiqi2): Merge these into ... | |
14889 | (truncdi<mode>2): ... this new pattern. | |
14890 | ||
fb201767 BH |
14891 | 2009-05-13 Brad Hards <bradh@kde.org> |
14892 | ||
14893 | * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi. | |
14894 | ||
c7bda60e | 14895 | 2009-05-14 Jakub Jelinek <jakub@redhat.com> |
efc3527a BE |
14896 | Ben Elliston <bje@au.ibm.com> |
14897 | ||
14898 | PR middle-end/40035 | |
14899 | * dse.c (check_mem_read_rtx): Guard against width == -1. | |
14900 | ||
ce985b43 MM |
14901 | 2009-05-13 Michael Matz <matz@suse.de> |
14902 | ||
14903 | PR middle-end/39976 | |
14904 | * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function. | |
14905 | (trivially_conflicts_p): New function. | |
14906 | (insert_backedge_copies): Use it. | |
14907 | ||
7de1d221 JJ |
14908 | 2009-05-13 Janis Johnson <janis187@us.ibm.com> |
14909 | ||
14910 | * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_. | |
14911 | (handle_stdc_pragma): Use new enum constant names. | |
14912 | (handle_pragma_float_const_decimal64): Ditto. | |
14913 | ||
bfefafc6 ILT |
14914 | 2009-05-13 Ian Lance Taylor <iant@google.com> |
14915 | ||
14916 | * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not | |
14917 | tree.def. | |
14918 | ||
286c4fcb NS |
14919 | 2009-05-13 Nathan Sidwell <nathan@codesourcery.com> |
14920 | ||
14921 | * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX. | |
14922 | * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455 | |
14923 | multilibs. | |
14924 | * config/m68k/m68k.h (FL_UCLINUX): Define. | |
14925 | ||
ebaa6ea7 JH |
14926 | 2009-05-13 Jan Hubicka <jh@suse.cz> |
14927 | ||
14928 | * options.c (gfc_post_options): -fwhole-program imply -fwhole-file. | |
14929 | ||
2b703e1a KK |
14930 | 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org> |
14931 | ||
14932 | * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns | |
14933 | unless -fschedule-insns is specified. | |
14934 | ||
c3537723 KK |
14935 | 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org> |
14936 | ||
14937 | PR target/39561 | |
14938 | * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set | |
14939 | TARGET_EXPAND_CBRANCHDI4. | |
14940 | * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4. | |
14941 | * config/sh/sh.opt (mexpand-cbranchdi): Remove. | |
14942 | (cmpeqdi): Fix comment. | |
14943 | ||
cdeed45a KK |
14944 | 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org> |
14945 | ||
14946 | * config/sh/sh-protos.h (sh_legitimate_index_p): Declare. | |
14947 | (sh_legitimate_address_p): Likewise. | |
14948 | * config/sh/sh.c (sh_legitimate_index_p): New. | |
14949 | (sh_legitimate_address_p): Likewise. | |
14950 | * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter. | |
14951 | (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise. | |
14952 | (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove. | |
14953 | (MAYBE_BASE_REGISTER_RTX_P): New macro. | |
14954 | (MAYBE_INDEX_REGISTER_RTX_P): Likewise. | |
14955 | (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P. | |
14956 | (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P. | |
14957 | (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p. | |
14958 | (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p. | |
14959 | ||
02f0b13a JH |
14960 | 2009-05-12 Jan Hubicka <jh@suse.cz> |
14961 | ||
14962 | * tree-inline.c (estimate_operator_cost): Add operands; | |
14963 | when division happens by constant, it is cheap. | |
14964 | (estimate_num_insns): Loads and stores are not having cost of 0; | |
14965 | EH magic stuff is cheap; when computing runtime cost of switch, | |
14966 | use log2 base of amount of its cases; builtin_expect has cost of 0; | |
14967 | compute cost for moving return value of call. | |
14968 | (init_inline_once): Initialize time_based flags. | |
14969 | * tree-inline.h (eni_weights_d): Add time_based flag. | |
14970 | ||
ecb7f6de PB |
14971 | 2009-05-12 Paolo Bonzini <bonzini@gnu.org> |
14972 | ||
14973 | * df-core.c: Update head documentation. | |
14974 | ||
c24151ce MM |
14975 | 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com> |
14976 | ||
14977 | PR bootstrap/40118 | |
14978 | * rs6000.c (rs6000_generate_compare): Use op1b instead of | |
14979 | shadowing exisiting variable op1. | |
14980 | ||
fbdf817d UB |
14981 | 2009-05-12 Uros Bizjak <ubizjak@gmail.com> |
14982 | ||
704bf7c8 | 14983 | PR target/37179 |
fbdf817d UB |
14984 | * config/i386/driver-i386.c (processor_signatures): New enum. |
14985 | (SIG_GEODE): Move from vendor_signatures to processor_signatures. | |
14986 | (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE | |
14987 | processor signature to detect geode processor. | |
14988 | ||
5e8d1826 PB |
14989 | 2009-05-12 Paolo Bonzini <bonzini@gnu.org> |
14990 | ||
14991 | Revert: | |
14992 | ||
14993 | 2009-05-12 Paolo Bonzini <bonzini@gnu.org> | |
14994 | ||
14995 | * optabs.c (prepare_cmp_insn): Temporarily disable test that | |
14996 | causes spurious differences between trunk and cond-optab branch. | |
14997 | ||
f90b7a5a PB |
14998 | 2009-05-12 Paolo Bonzini <bonzini@gnu.org> |
14999 | ||
fbdf817d UB |
15000 | * dojump.c (compare_from_rtx): Delete. |
15001 | * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize | |
15002 | any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail | |
f90b7a5a PB |
15003 | if the comparison does not satisfy the predicate; test predicates for |
15004 | operands 2 and 3 of a cstore pattern. Don't try cstore optab | |
15005 | further if one existing pattern fails. | |
fbdf817d | 15006 | * expr.h (compare_from_rtx): Delete. |
f90b7a5a | 15007 | (prepare_operand): Declare it. |
fbdf817d | 15008 | * optabs.c: Change "lib call" to "libcall" throughout. |
f90b7a5a | 15009 | (bcc_gen_fctn, setcc_gen_code, trap_rtx, |
fbdf817d UB |
15010 | HAVE_conditional_trap, emit_cmp_insn): Delete. |
15011 | (can_compare_p): Delete cmp_optab case. | |
f90b7a5a | 15012 | (prepare_float_lib_cmp): Return an rtx and a machine mode. |
fbdf817d UB |
15013 | Accept other parameters by value. |
15014 | (prepare_operand): Make non-static. | |
15015 | (prepare_cmp_insn): Return an rtx and a machine mode. Accept | |
15016 | other parameters by value. Try to widen operands here based on | |
15017 | an optab_methods argument and looking at cbranch_optab. | |
15018 | (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening | |
15019 | loop. Use cbranch_optab directly. | |
15020 | (emit_cmp_and_jump_insns): Fix comment. Adjust call to | |
15021 | prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete | |
15022 | assertion. | |
15023 | (emit_conditional_move, emit_conditional_add): Inline what's needed | |
15024 | of compare_from_rtx, using new prepare_cmp_insn for the rest. | |
15025 | (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab | |
15026 | with COMPARE. Move cmov_optab and cstore_optab above | |
15027 | with cbranch_optab, move cmp_optab down with ucmp_optab, | |
15028 | remove tst_otpab. Do not initialize trap_rtx. | |
15029 | (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate | |
f90b7a5a PB |
15030 | for trap code. Do not check HAVE_conditional_trap. Use |
15031 | prepare_cmp_insn. Accept no predicate for operand 3. | |
fbdf817d UB |
15032 | * optabs.h (OTI_cmp): Mark as used only for libcalls. |
15033 | (OTI_ctrap, ctrap_optab): New. | |
15034 | (tst_optab): Delete. | |
15035 | (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete. | |
15036 | * ifcvt.c (find_if_header): Replace HAVE_conditional_trap | |
15037 | with lookup of ctrap_optab. | |
f3afc8a7 UB |
15038 | * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code): |
15039 | Delete. | |
fbdf817d UB |
15040 | (ctrap_optab): New. |
15041 | ||
15042 | * combine.c (combine_simplify_rtx, simplify_set): Do not | |
15043 | special case comparing against zero for cc0 machines. | |
f90b7a5a PB |
15044 | * simplify-rtx.c (simplify_binary_operation_1): Never remove |
15045 | COMPARE on cc0 machines. | |
15046 | (simplify_relational_operation): Return a new expression when | |
15047 | a COMPARE could be removed. | |
fbdf817d UB |
15048 | * final.c (final_scan_insn): Compare cc_status values |
15049 | against LHS of a (compare FOO (const_int 0)) cc0 source. | |
15050 | Also check if cc_status.value is the full compare. | |
f90b7a5a | 15051 | |
fbdf817d UB |
15052 | * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete. |
15053 | (cstoreMM4): Document. | |
f90b7a5a | 15054 | (conditional_trap): Document ctrapMM4 instead. |
fbdf817d | 15055 | (sync_compare_and_swapMM): Refer to cbranchcc4. |
f90b7a5a PB |
15056 | (Dependent Patterns): Eliminate obsolete information referring to |
15057 | the old jump optimization phase. | |
fbdf817d | 15058 | (Canonicalization): Include cbranchcc4 case, omit canonicalization |
f90b7a5a PB |
15059 | of compares with 0 on cc0 machines. |
15060 | (Jump Patterns): Refer to MODE_CC jump patterns preferably, | |
15061 | avoiding references to cc0. Remove text about storing operands | |
15062 | in cmpMM. | |
15063 | * doc/tm.texi (Condition Codes): Include blurb on different | |
15064 | condition code representations, separate into subsections for | |
15065 | CC0, MODE_CC and conditional execution. | |
15066 | ||
fbdf817d UB |
15067 | * config/alpha/alpha-protos.h (alpha_emit_conditional_branch, |
15068 | alpha_emit_setcc): Accept operands and a machine mode. | |
15069 | * config/alpha/alpha.c (alpha_emit_conditional_branch): | |
15070 | Get code/op0/op1 from operands, use machine mode argument | |
15071 | instead of alpha_compare.fp_p. Emit the branch here. | |
15072 | (alpha_emit_setcc): Likewise, and return boolean. | |
15073 | (alpha_emit_conditional_move): Likewise. Assert that | |
15074 | cmp_op_mode == cmp_mode, and simplify accordingly. | |
15075 | * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete. | |
15076 | * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete. | |
15077 | (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4): | |
15078 | Delete. | |
15079 | (stack probe test): Use cbranchdi4. | |
15080 | * config/alpha/predicates.md (alpha_cbranch_operator): New. | |
15081 | ||
f100a4a8 | 15082 | * config/arc/arc.c (gen_compare_reg): Do not emit cmp. |
fbdf817d UB |
15083 | * config/arc/arc.h (movsicc, movsfcc): Use it. |
15084 | (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove. | |
15085 | (cbranchsi4, cstoresi4): New. | |
f100a4a8 | 15086 | (cmpsi, bCC and sCC expanders): Remove. |
fbdf817d UB |
15087 | |
15088 | * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete. | |
15089 | * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete. | |
15090 | * config/arm/predicates.md (arm_comparison_operator): Only include | |
15091 | floating-point operators if there is a hardware floating-point unit. | |
15092 | * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT, | |
15093 | deferring to cbranch_cc and cstore_cc respectively. | |
15094 | (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4, | |
15095 | cbranch_cc, cstore_cc): New. | |
15096 | (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and | |
f90b7a5a | 15097 | arm_compare_op1. |
fbdf817d UB |
15098 | (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete. |
15099 | ||
15100 | * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype. | |
15101 | * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand | |
15102 | as an argument. | |
15103 | (adjust_insn_length): Adjust calls. | |
15104 | (avr_reorg): Handle (compare (foo) (const_int 0)). | |
15105 | * config/avr/avr.md (tstqi, tsthi, tstsi): Remove. | |
15106 | (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize. | |
15107 | (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity. | |
15108 | (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here. | |
15109 | (bCC): Remove. | |
15110 | (cbranchqi4, cbranchhi4, cbranchsi4): New. | |
f90b7a5a PB |
15111 | (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE. |
15112 | ||
fbdf817d UB |
15113 | * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete. |
15114 | (cbranchsi4, cstorebi4, cstoresi4): New. | |
f90b7a5a | 15115 | (movbisi): This insn is duplicate, split it to zero_extend. |
fbdf817d UB |
15116 | * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete |
15117 | (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode. | |
15118 | (bfin_optimize_loop): Use cbranch expander. | |
15119 | * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete. | |
15120 | * config/bfin/predicates.md (bfin_cbranch_operator): Rename to... | |
15121 | (bfin_bimode_comparison_operator): ... this. | |
15122 | (bfin_direct_comparison_operator): New. | |
f100a4a8 | 15123 | |
fbdf817d UB |
15124 | * config/cris/cris.c (cris_normal_notice_update_cc): Look |
15125 | inside (compare FOO (const_int 0)). | |
15126 | (cris_rtx_costs): Handle ZERO_EXTRACT. | |
15127 | * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete. | |
15128 | (*tstdi_non_v32): Fold in *cmpdi_non_v32. | |
15129 | (*tstdi_v32): Delete. | |
15130 | (*cmpdi_non_v32): Add M alternative for operand 1. | |
15131 | (cmpsi, cmp<mode>): Make private. | |
15132 | (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS | |
15133 | with COMPARE. | |
15134 | (cbranch<mode>4, cbranchdi4, cstore<mode>4): New. | |
15135 | ||
15136 | * config/crx/crx.md (cstore<mode>4, cbranchcc4): New. | |
15137 | (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete. | |
15138 | (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator. | |
f90b7a5a PB |
15139 | (cc_reg_operand): New. |
15140 | (any_cond): Delete. | |
fbdf817d UB |
15141 | * config/crx/crx.c (crx_compare_op0, crx_compare_op1, |
15142 | crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete. | |
15143 | * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete. | |
15144 | * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch, | |
15145 | crx_expand_scond): Delete. | |
15146 | ||
15147 | * config/fr30/fr30.md (cmp<mode>, bCC): Delete. | |
15148 | (cbranchsi4): New. | |
15149 | * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete | |
15150 | * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete. | |
15151 | ||
15152 | * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4, | |
15153 | cstoresi4, cstoresf4, cstoredf4): New. | |
15154 | (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove. | |
15155 | * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc): | |
15156 | Receive the entire operands array. | |
15157 | * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete. | |
15158 | * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete. | |
15159 | * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc): | |
15160 | Get test/op0/op1 from the operands array. | |
15161 | (frv_emit_cond_move): Get test/op0/op1 from the test_rtx. | |
15162 | ||
15163 | * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands. | |
15164 | (h8300_expand_store): New. | |
15165 | * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO | |
15166 | (const_int 0)). | |
15167 | (h8300_expand_branch): Emit compare here. Adjust for new arguments. | |
15168 | (h8300_expand_store): New. | |
15169 | * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE | |
15170 | or do not try to produce (set (cc0) REG). | |
15171 | (peepholes): Wrap arguments with COMPARE. Add a peephole to | |
15172 | change a compare into a move to a scratch register. Disable some | |
15173 | peepholes when comparing with zero. | |
15174 | (tstsi, tsthi, tstsi, cmpqi): Make private. | |
15175 | (cmphi): Delete. | |
15176 | (bCC, sCC): Delete. | |
15177 | (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4, | |
15178 | cstoresi4): New. | |
f90b7a5a PB |
15179 | |
15180 | * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc, | |
15181 | ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1. | |
15182 | (ix86_emit_i387_log1p): Use gen_cbranchxf4. | |
15183 | (ix86_emit_i387_log1p): Use cbranchxf2. | |
15184 | (ix86_expand_setcc): Return void. | |
15185 | * config/i386/i386-protos.h (ix86_expand_setcc): Return void. | |
15186 | * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf, | |
15187 | cmp<MODEF>, cmpcc): Remove. | |
fbdf817d UB |
15188 | (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4, |
15189 | cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4, | |
15190 | cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New. | |
f90b7a5a PB |
15191 | (sCC and bCC expanders): Remove. |
15192 | (stack_protect_test): Use cbranchcc4. | |
15193 | ||
fbdf817d UB |
15194 | * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1): |
15195 | Delete. | |
15196 | (ia64_expand_compare): Accept three rtx by reference and return void. | |
15197 | * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete. | |
15198 | (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code | |
15199 | from *expr. Update *expr with the BImode comparison to do. | |
15200 | * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf, | |
15201 | cmptf, bCC, sCC, conditional_trap): Delete. | |
f100a4a8 | 15202 | (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4, |
fbdf817d UB |
15203 | cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4, |
15204 | cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4, | |
15205 | ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New. | |
15206 | * config/ia64/predicates.md (ia64_cbranch_operator): New. | |
15207 | ||
15208 | * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change | |
15209 | type of last argument. | |
15210 | * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove. | |
15211 | (gen_conditional_branch): Get code/cmp0/cmp1 from operands, | |
15212 | use machine mode argument instead of branch_type. Remove dead | |
15213 | code for floating-point comparisons. | |
15214 | * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove. | |
15215 | * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC): | |
15216 | Remove. | |
15217 | (cbranchsi4, cstoresi4): New. | |
15218 | * config/iq2000/predicates.md (reg_or_const_operand): New. | |
15219 | ||
15220 | * config/m32c/m32c.md (cbranch splitter): Use match_op_dup. | |
15221 | * config/m32c/m32c.md (any_cond, gl_cond): Delete. | |
15222 | (b<code>_op): Rewrite to... | |
15223 | (bcc_op): ... this, using match_operator. | |
15224 | (s<code>_op): Rewrite to... | |
15225 | (scc_op): ... this, using match_operator. | |
15226 | (s<code>_24_op): Rewrite to... | |
15227 | (scc_op_24): ... this, using match_operator. | |
15228 | (s<code>_<mode>): Rewrite to... | |
15229 | (cstore<mode>4): ... this, using match_operator. | |
15230 | (s<code>_<mode>_24): Rewrite to... | |
15231 | (cstore<mode>4_24): ... this, using match_operator. | |
15232 | * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare, | |
15233 | m32c_unpend_compare, m32c_expand_scc): Delete. | |
15234 | * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0, | |
15235 | m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete. | |
15236 | (m32c_expand_movcc): Change NE to EQ if necessary. | |
15237 | (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code. | |
15238 | ||
15239 | * config/m32r/m32r-protos.h (gen_cond_store): New. | |
15240 | * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete. | |
15241 | (gen_cond_store): New, from sCC patterns. | |
15242 | (m32r_expand_block_move): Use cbranchsi4. | |
15243 | * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete. | |
15244 | * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete. | |
15245 | (cbranchsi4, cstoresi4): New. | |
f100a4a8 | 15246 | |
fbdf817d UB |
15247 | * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1): |
15248 | Delete. | |
15249 | (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT. | |
f90b7a5a | 15250 | (m68hc11_notice_update_cc): Look into a compare with 0. |
fbdf817d UB |
15251 | * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1): |
15252 | Delete. | |
15253 | * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi, | |
15254 | cmphi, cmpqi, bCC): Delete. | |
15255 | (cbranchsi4, cbranchhi4, cbranchqi4): New. | |
15256 | (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used, | |
15257 | bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg | |
15258 | sets with COMPARE. | |
15259 | ||
15260 | * config/m68k/predicates.md (m68k_cstore_comparison_operator, | |
15261 | const0_operand, const1_operand, m68k_subword_comparison_operand): New. | |
15262 | * config/m68k/constraints.md (H): New. | |
15263 | * config/m68k/m68k.md (tstdi): Remove define_expand, use name for | |
15264 | the define_insn below. | |
15265 | (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete. | |
15266 | (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal, | |
15267 | *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed | |
15268 | patterns): Wrap RHS with COMPARE. | |
15269 | (tst<FP>_68881, tst<FP>_cf): Use const0_operand. | |
15270 | (*cmpdi_internal): Name this pattern. | |
15271 | (cmpdi): Change to define_insn. | |
15272 | (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4, | |
15273 | cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New. | |
15274 | (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator | |
15275 | predicate. | |
15276 | (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered, | |
15277 | sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete | |
15278 | (conditional_trap): Change to... | |
15279 | (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these. | |
15280 | (*conditional_trap): Use the ordered_comparison_operator and | |
15281 | const1_operand predicates. | |
15282 | * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete. | |
15283 | (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap. | |
15284 | (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE. | |
15285 | * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete. | |
15286 | ||
15287 | * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1, | |
15288 | mcore_modify_comparison, mcore_gen_compare_reg): Remove. | |
f100a4a8 | 15289 | (mcore_gen_compare): New. |
fbdf817d UB |
15290 | * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete. |
15291 | (mcore_modify_comparison, mcore_gen_compare_reg): Fold into... | |
15292 | (mcore_gen_compare): ... this. | |
15293 | * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove. | |
15294 | (cbranchsi4, cstoresi4): New, using mcore_gen_compare. | |
15295 | (stack probe pattern): Use cbranchsi4. | |
15296 | ||
15297 | * config/mips/predicates.md (mips_cstore_operator): New. | |
15298 | * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands. | |
15299 | * config/mips/mips.md (any_cond): Delete. | |
15300 | (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates, | |
15301 | always succeed. | |
15302 | (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2, | |
15303 | fixuns_truncsfdi2): Use cbranch patterns. | |
f100a4a8 | 15304 | (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete. |
fbdf817d UB |
15305 | (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4. |
15306 | Adjust call to mips_expand_conditional_branch. | |
15307 | (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to | |
15308 | cstore<GPR:mode>4. | |
15309 | * config/mips/mips-protos.h (mips_expand_conditional_branch, | |
15310 | mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes. | |
15311 | * config/mips/mips.c (cmp_operands): Delete. | |
15312 | (mips_emit_compare): Get comparison operands from *op0/*op1. | |
15313 | (mips_expand_scc): Get code/op0/op1/target from operands. Assert | |
15314 | that it succeeds. Use op0/op1 instead of cmp_operands. | |
15315 | (mips_expand_conditional_branch, mips_expand_conditional_move, | |
15316 | mips_expand_conditional_trap): Likewise. | |
f100a4a8 | 15317 | (mips_block_move_loop): Use cbranch patterns. |
fbdf817d UB |
15318 | * config/mips/mips.h (cmp_operands): Delete. |
15319 | ||
15320 | * config/mmix/mmix.c (mmix_valid_comparison): Delete. | |
15321 | (mmix_gen_compare_reg): Just return a register in the right CC mode. | |
15322 | * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New. | |
15323 | * config/mmix/mmix.md (cmpdi, cmpdf): Remove. | |
15324 | (*cmpcc_folded): Rename to... | |
15325 | (*cmpdi_folded): this. | |
15326 | (*cmpcc): Rename to... | |
15327 | (*cmps): ... this. | |
15328 | (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg. | |
15329 | (bCC): Remove. | |
15330 | (cbranchdi4): New. | |
15331 | (cbranchdf4): New. Handle invalid comparisons here. | |
15332 | * config/mmix/predicates.md (float_comparison_operator): New. | |
15333 | ||
15334 | * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and | |
15335 | zero_extract to be cheap in (compare (zero_extract) (const_int 0). | |
15336 | * config/mn10300/mn10300.md (tst): Delete. | |
15337 | (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi): | |
15338 | Name these patterns and wrap RHS in a compare. | |
15339 | (*cmpsi): Make this pattern private. Include tst. | |
15340 | (*cmpsf): Make this pattern private. | |
15341 | (and and zero_extract cc0 set): Wrap RHS in a COMPARE. | |
15342 | (compare with zero peepholes): Likewise. | |
15343 | (bCC): Remove. | |
15344 | (cbranchsi4, cbranchsf4): New. | |
15345 | (casesi): Use cbranchsi4. | |
15346 | ||
15347 | * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1, | |
15348 | hppa_branch_type): Delete. | |
15349 | (return_addr_rtx): Use cbranchsi4. | |
15350 | (emit_bcond_fp): Accept all operands. Replace CODE with NE. | |
15351 | Emit CCFPmode comparison here. | |
15352 | (gen_cmp_fp): Delete, now part of emit_bcond_fp. | |
15353 | * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1, | |
15354 | hppa_branch_type): Delete. | |
15355 | * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete. | |
15356 | (movsicc, movdicc): Remove references to hppa_compare_op0, | |
15357 | hppa_compare_op1 and compare_from_rtx. | |
15358 | (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New. | |
15359 | (casesi): Use cbranchsi4. | |
15360 | ||
15361 | * config/pdp11/pdp11-protos.h (output_jump): Change prototype. | |
15362 | * config/pdp11/pdp11.c (output_jump): Embed opcodes here. | |
15363 | * config/pdp11/pdp11.md (register_or_const0_operand): New. | |
15364 | (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives. | |
15365 | (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete. | |
15366 | (bCC): Delete. | |
15367 | (cbranchdf4, cbranchhi4, cbranchqi4): New. | |
15368 | (*branch, *branch_inverted): New. | |
15369 | ||
15370 | * config/picochip/picochip.md (cbranchhi4): Use | |
15371 | ordered_comparison_operator. | |
15372 | (cmphi, bCC): Remove. | |
15373 | ||
15374 | * config/rs6000/predicates.md (rs6000_cbranch_operator): New. | |
15375 | (trap_comparison_operator): Delete. | |
15376 | * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND, | |
15377 | rs6000_emit_cbranch): Accept mode and operands. | |
15378 | * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1, | |
f100a4a8 | 15379 | rs6000_compare_fp_p): Delete. |
fbdf817d UB |
15380 | (rs6000_generate_compare): Accept mode and comparison. Extract code |
15381 | and op0/op1 from there. Replace references to rs6000_compare_op0 | |
15382 | and rs6000_compare_op1. | |
15383 | (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and | |
15384 | extract result from passed operands. | |
15385 | (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and | |
15386 | extract loc from passed operands. | |
15387 | (rs6000_emit_cmove): Likewise. | |
15388 | * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1, | |
15389 | rs6000_compare_fp_p): Delete. | |
15390 | * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete. | |
15391 | (cbranch<GPR>4, cbranch<FP>4): New. | |
15392 | (cstore<mode>4): New. Consolidate here all choices about when to use | |
15393 | portable or specialized sCC sequences. | |
15394 | (stack_protect_test): Use cbranchsi4. | |
15395 | (conditional_trap): Replace with ctrap<GPR>4. | |
15396 | (conditional trap insn): Replace trap_comparison_operator with | |
f100a4a8 | 15397 | ordered_comparison_operator. |
fbdf817d UB |
15398 | |
15399 | * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete. | |
15400 | (s390_emit_prologue): Use ctrap. | |
15401 | * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete. | |
15402 | * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator): | |
15403 | New predicates replacing... | |
15404 | * config/s390/s390.md (COMPARE, SCOND): ... these iterators. | |
15405 | (cmp<GPR>, cmp<FP>, cmpcc): Delete. | |
15406 | (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch. | |
15407 | (add<mode>cc): Do not use s390_compare_op0/op1. | |
15408 | (s<code>): Change to... | |
15409 | (cstore<mode>4): ... this. Do not use s390_compare_op0/op1. | |
15410 | (seq): Change to... | |
15411 | (cstorecc4): ... this. Handle EQ or NE equally. | |
15412 | (*sne): Un-privatize for use in cstorecc4. | |
15413 | (b<code>): Change to... | |
15414 | (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these. | |
15415 | (conditional_trap): Replace with... | |
15416 | (ctrap<GPR>4, ctrap<FP>4): ... these. | |
15417 | (stack_protect): Use cbranchcc4. | |
15418 | ||
15419 | * config/score/score-conv.h (cmp_op0, cmp_op1): Delete. | |
15420 | * config/score/score-protos.h (score_gen_cmp): Delete. | |
15421 | * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete. | |
15422 | (score_block_move-loop): Use cbranchsi4. | |
15423 | * config/score/score.md (cbranchsi4): New. | |
15424 | (cmpsi, bCC): Delete. | |
15425 | * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete. | |
15426 | (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1. | |
15427 | * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete. | |
15428 | (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1. | |
15429 | * config/score/score3.h (score3_gen_cmp): Delete. | |
15430 | * config/score/score7.h (score7_gen_cmp): Delete. | |
15431 | ||
15432 | * config/sh/sh-protos.h (prepare_scc_operands): Rename to... | |
15433 | (sh_emit_scc_to_t): ... this. Return void. | |
15434 | (from_compare): Rename to... | |
15435 | (sh_emit_compare_and_branch): ... this. | |
15436 | (sh_emit_compare_and_set): New. | |
15437 | (sh_expand_t_scc): Accept operands. | |
15438 | * config/sh/predicates.md (sh_float_comparison_operator): New. | |
15439 | * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete. | |
15440 | (prepare_scc_operands): Rename to... | |
15441 | (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from | |
15442 | arguments. | |
15443 | (sh_emit_cheap_store_flag): New. | |
f90b7a5a | 15444 | (sh_emit_set_t_insn): New. |
fbdf817d UB |
15445 | (from_compare): Rename to... |
15446 | (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite | |
15447 | handling of TARGET_SH2E floating point to avoid recursive call. | |
15448 | Generate branch here. | |
15449 | (sh_emit_compare_and_set): New. | |
15450 | (sh_expand_t_scc): Get op0/op1 from arguments. | |
15451 | (sh_emit_cheap_store_flag): New. | |
15452 | * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi | |
15453 | cases. | |
f90b7a5a | 15454 | (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint. |
fbdf817d UB |
15455 | (cmpsi, cmpdi, cmpsf, cmpdf): Delete. |
15456 | (movsicc, movdicc): Do nothing when it recreated operands from | |
15457 | sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to | |
15458 | prepare_scc_operands (now sh_emit_scc_to_t). | |
15459 | (udivdi3): Use cstoresi4. | |
15460 | (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq, | |
15461 | bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete. | |
15462 | (cbranchint4_media, cbranchfp4_media): New. | |
15463 | (casesi): Use cbranchdi4. | |
15464 | (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered): | |
15465 | Delete. | |
15466 | (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New. | |
15467 | (movnegt): Remove second operand. | |
15468 | (cbranchsf4, cbranchdf4): New. | |
15469 | (stack_protect): Use cbranchdi4/cbranchsi4. | |
15470 | ||
15471 | * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete. | |
15472 | (gen_compare_reg): Accept comparison, extract part of it to... | |
f100a4a8 | 15473 | (gen_compare_reg_1): ... this. |
fbdf817d UB |
15474 | (gen_compare_operator): Delete. |
15475 | (gen_v9_scc): Accept separate destination, comparison code and arms. | |
15476 | Do not use sparc_compare_op0/sparc_compare_op1. | |
15477 | (emit_scc_insn, emit_conditional_branch_insn): New. | |
15478 | (emit_v9_brxx): Make static. Remove useless assertion. | |
15479 | (sparc_emit_float_lib_cmp): Return RTL instead of calling | |
15480 | emit_cmp_insn. | |
15481 | (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4. | |
15482 | * config/sparc/sparc-protos.h (gen_compare_reg, | |
f90b7a5a PB |
15483 | sparc_emit_float_lib_cmp): Adjust prototype. |
15484 | (emit_scc_insn, emit_conditional_branch_insn): New. | |
15485 | (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete. | |
fbdf817d UB |
15486 | * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete. |
15487 | * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all | |
15488 | iterators to the top. | |
15489 | (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend, | |
15490 | snesi_special_extend, sCC, bCC, seqdi_special_trunc, | |
f90b7a5a | 15491 | snedi_special_trunc): Delete. |
fbdf817d | 15492 | (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc |
f90b7a5a | 15493 | and snedi_special_trunc. |
fbdf817d UB |
15494 | (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4, |
15495 | cbranchdi4, cbranch<F:mode>4): New. | |
15496 | (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp | |
15497 | here. Use gen_compare_reg instead of gen_compare_operator. | |
15498 | (conditional_trap): Replace with... | |
15499 | (ctrapsi4, ctrapdi4): ... this. | |
15500 | (stack_protect_test): Use cbranchcc4. | |
15501 | ||
15502 | * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second | |
15503 | argument to rtx. | |
f100a4a8 | 15504 | * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove. |
fbdf817d UB |
15505 | (spu_emit_branch_or_set): Get code/op0/op1 from second argument. |
15506 | Change spu_compare_op0/op1 to op0/op1 throughout. Get target | |
15507 | from operands[0] or operands[3] depending on is_set. | |
15508 | * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove. | |
15509 | * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>, | |
15510 | cmpdf, bCC), sCC: Remove. | |
f100a4a8 | 15511 | (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4, |
fbdf817d UB |
15512 | cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4, |
15513 | cstoredf4): New. | |
15514 | (mov<mode>cc): Accept ordered_comparison_operator, adjust call to | |
15515 | spu_emit_branch_or_set. | |
15516 | ||
15517 | * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch): | |
15518 | Add two arguments. | |
15519 | * config/stormy16/stormy16.h (xstormy16_compare_op0, | |
15520 | xstormy16_compare_op1): Delete. | |
15521 | * config/stormy16/stormy16.c (xstormy16_compare_op0, | |
f100a4a8 | 15522 | xstormy16_compare_op1): Delete. |
fbdf817d UB |
15523 | (xstormy16_emit_cbranch): Get op0/op1 from the new arguments. |
15524 | Adjust calls. | |
15525 | * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New. | |
15526 | (cmphi, cmpsi, bCC): Remove. | |
15527 | ||
15528 | * config/v850/v850.md (tstsi, cmpsi): Fold into... | |
15529 | (*cmpsi): ... this one. | |
15530 | (cbranchsi4, cstoresi4): New. | |
15531 | (bCC expanders): Delete. | |
15532 | (sCC insns): Fold into... | |
15533 | (*setcc): ... this one. | |
f100a4a8 | 15534 | (casesi): Do not use gen_cmpsi and gen_bgtu. |
f90b7a5a PB |
15535 | (various splits): Wrap "naked" RHS of a cc0 set with COMPARE. |
15536 | (movsicc): Simplify. | |
15537 | * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE. | |
15538 | ||
fbdf817d UB |
15539 | * config/vax/vax-protos.h (cond_name): New. |
15540 | (vax_output_conditional_branch): Remove. | |
15541 | * config/vax/vax.c (cond_name): New. | |
15542 | (vax_output_conditional_branch): Remove. | |
15543 | * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name. | |
15544 | * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove. | |
15545 | (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst. | |
15546 | (bit<VAXint>): Wrap source with (compare). | |
15547 | (b<code> and following unnamed pattern): Rename to *branch and | |
15548 | *branch_reversed. Change macroization to match_operator. | |
15549 | (cbranch<VAXint>4, cbranch<VAXfp>4): New. | |
15550 | ||
15551 | * config/xtensa/predicates.md (xtensa_cstoresi_operator): New. | |
15552 | * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch): | |
15553 | Change last argument to machine_mode. | |
15554 | (xtensa_expand_scc): Add machine_mode argument. | |
15555 | * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove. | |
15556 | (gen_conditional_move, xtensa_expand_conditional_branch, | |
15557 | xtensa_expand_scc, xtensa_expand_conditional_move): Use mode | |
15558 | instead of branch_type, fetch cmp0/cmp1/test_code from operands[]. | |
15559 | Adjust operand numbers. | |
15560 | * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type): | |
15561 | Delete. | |
15562 | * config/xtensa/xtensa.md (any_cond, any_scc): Delete. | |
15563 | (cmpsi, cmpsf, b<code>, s<code>): Delete. | |
15564 | (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New. | |
f90b7a5a | 15565 | |
16670495 PB |
15566 | 2009-05-12 Paolo Bonzini <bonzini@gnu.org> |
15567 | ||
15568 | * optabs.c (prepare_cmp_insn): Temporarily disable test that | |
15569 | causes spurious differences between trunk and cond-optab branch. | |
15570 | ||
4a4a4e99 AO |
15571 | 2009-05-12 Alexandre Oliva <aoliva@redhat.com> |
15572 | ||
15573 | PR target/37137 | |
15574 | * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document. | |
15575 | ||
72b9acff AO |
15576 | 2009-05-12 Alexandre Oliva <aoliva@redhat.com> |
15577 | ||
15578 | * tree.c (iterative_hash_pointer): Delete. | |
15579 | (iterative_hash_expr): Short-circuit handling of NULL pointer. | |
15580 | Hash UIDs and versions of SSA names. Don't special-case built-in | |
15581 | function declarations. | |
15582 | ||
b7dd69ac ILT |
15583 | 2009-05-11 Ian Lance Taylor <iant@google.com> |
15584 | ||
15585 | PR bootstrap/40103 | |
15586 | * graphite.c: Force -Wc++-compat to only be a warning before | |
15587 | #including "cloog/cloog.h". | |
15588 | ||
ed102b70 MJ |
15589 | 2009-05-11 Martin Jambor <mjambor@suse.cz> |
15590 | ||
15591 | * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false. | |
f100a4a8 | 15592 | |
08f1af2e JH |
15593 | 2009-05-11 Jan Hubicka <jh@suse.cz> |
15594 | ||
15595 | * tree-ssa-loop-ivcanon.c: Include target.h | |
15596 | (struct loop_size): new structure. | |
15597 | (constant_after_peeling): New predicate. | |
15598 | (tree_estimate_loop_size): New function. | |
15599 | (estimated_unrolled_size): Rewrite for new estimates. | |
15600 | (try_unroll_loop_completely): Use new estimates. | |
15601 | * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h | |
15602 | ||
a7d39bd3 AP |
15603 | 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com> |
15604 | ||
15605 | * config/spu/spu-c.c (spu_categorize_keyword): Update for recent | |
15606 | libcpp interface change. | |
15607 | (spu_macro_to_expand): Likewise. | |
15608 | ||
f5a1f0d0 PB |
15609 | 2009-05-11 Paolo Bonzini <bonzini@gnu.org> |
15610 | ||
15611 | PR tree-optimization/40026 | |
15612 | * gimplify.c (gimplify_init_constructor): Change initial conditional | |
15613 | to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after | |
15614 | optimize_compound_literals_in_ctor. | |
15615 | ||
c260f01f NS |
15616 | 2009-05-11 Nathan Sidwell <nathan@codesourcery.com> |
15617 | ||
15618 | * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx): | |
15619 | New devices. | |
15620 | * doc/invoke.texi (M680x0 Options): Document new coldfire cpus. | |
15621 | ||
df398a37 L |
15622 | 2009-05-11 H.J. Lu <hongjiu.lu@intel.com> |
15623 | ||
15624 | * tree-vect-data-refs.c (vect_analyze_group_access): Use | |
15625 | HOST_WIDE_INT for gap. | |
15626 | ||
4da39468 IR |
15627 | 2009-05-11 Ira Rosen <irar@il.ibm.com> |
15628 | ||
15629 | PR tree-optimization/40074 | |
15630 | * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into | |
15631 | account in group size and step comparison. | |
15632 | ||
4effdf02 RG |
15633 | 2009-05-11 Richard Guenther <rguenther@suse.de> |
15634 | ||
15635 | * passes.c (init_optimization_passes): Strip now incorrect comment. | |
15636 | (execute_function_todo): Do not set PROP_alias. | |
15637 | * tree-pass.h (PROP_alias): Remove. | |
15638 | * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias. | |
15639 | * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias. | |
15640 | * tree-nrv.c (pass_return_slot): Likewise. | |
15641 | * tree-object-size.c (pass_object_sizes): Likewise. | |
15642 | * tree-ssa-dom.c (pass_dominator): Likewise. | |
15643 | (pass_phi_only_cprop): Likewise. | |
15644 | * tree-ssa-dse.c (pass_dse): Likewise. | |
15645 | * tree-ssa-phiopt.c (pass_phiopt): Likewise. | |
15646 | (pass_cselim): Likewise. | |
15647 | * tree-ssa-pre.c (pass_pre): Likewise. | |
15648 | (pass_fre): Likewise. | |
15649 | * tree-ssa-reassoc.c (pass_reassoc): Likewise. | |
15650 | * tree-ssa-sink.c (pass_sink_code): Likewise. | |
15651 | * tree-stdarg.c (pass_stdarg): Likewise. | |
15652 | * tree-tailcall.c (pass_tail_calls): Likewise. | |
15653 | * tree-vrp.c (pass_vrp): Likewise. | |
15654 | ||
24b97832 ILT |
15655 | 2009-05-10 Ian Lance Taylor <iant@google.com> |
15656 | ||
15657 | * basic-block.h (enum profile_status): Break out of struct | |
15658 | control_flow_graph. | |
15659 | * cgraph.h (struct inline_summary): Break out of struct | |
15660 | cgraph_local_info. | |
15661 | * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out | |
15662 | of struct cgraph_order_sort. | |
fbdf817d | 15663 | * combine.c (enum undo_kind): New enum, broken out of struct undo. |
24b97832 ILT |
15664 | * cse.c (struct branch_path): Break out of struct |
15665 | cse_basic_block_data. | |
15666 | * except.h (enum eh_region_type): Break out of struct eh_region. | |
15667 | * gcc.c (enum add_del): Break out of struct modify_target. | |
fbdf817d | 15668 | * genrecog.c (enum decision_type): Break out of struct decision_test. |
24b97832 ILT |
15669 | * ggc-page.c (struct ggc_pch_ondisk): Break out of struct |
15670 | ggc_pch_data. | |
fbdf817d UB |
15671 | * matrix-reorg.c (struct free_info): Break out of struct matrix_info. |
15672 | * regmove.c (enum match_use): New enum, broken out of struct match. | |
24b97832 ILT |
15673 | * sched-int.h (enum post_call_group): New enum, broken out of |
15674 | struct deps. | |
15675 | (struct deps_reg): Break out of struct deps. | |
15676 | * target.h (struct asm_int_op): Break out of struct gcc_target. | |
15677 | * tree-eh.c (struct goto_queue_node): Break out of struct | |
15678 | leh_tf_state. | |
15679 | * tree-inline.h (enum copy_body_cge_which): Break out of | |
15680 | copy_body_data. | |
15681 | * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass. | |
15682 | ||
15683 | * c-decl.c (in_struct, struct_types): New static variables. | |
15684 | (pushtag): Add loc parameter. Change all callers. | |
15685 | (lookup_tag): Add ploc parameter. Change all callers. | |
15686 | (check_compound_literal_type): New function. | |
15687 | (parser_xref_tag): Add loc parameter. Change all callers. If | |
15688 | -Wc++-compat, warn about struct/union/enum types defined within a | |
15689 | struct or union. | |
15690 | (start_struct): Add enclosing_in_struct, enclosing_struct_types, | |
15691 | and loc parameters. Change all callers. Change error calls to | |
15692 | error_at, using loc. For a redefinition, if the location of the | |
15693 | original definition is known, report it. Set in_struct and | |
fbdf817d | 15694 | struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof. |
24b97832 ILT |
15695 | (finish_struct): Add new parameters enclosing_in_struct and |
15696 | enclosing_struct_types. Change all callers. Set | |
15697 | C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined | |
15698 | in the struct. If in a struct, add this struct to struct_types. | |
15699 | (start_enum): Add loc parameter. Change all callers. Use | |
15700 | error_at for errors, using loc. For a redefinition, if the | |
15701 | location of the original definition is known, report it. If in a | |
15702 | struct, add this enum type to struct_types. If -Wc++-compat warn | |
15703 | if in sizeof, typeof, or alignof. | |
fbdf817d UB |
15704 | * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat. |
15705 | (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate. | |
24b97832 ILT |
15706 | (c_parser_enum_specifier): Get enum location for start_enum. |
15707 | (c_parser_struct_or_union_specifier): Get struct location for | |
15708 | start_struct. Save in_struct and struct_types status between | |
15709 | start_struct and finish_struct. | |
15710 | (c_parser_cast_expression): Get location of cast. | |
15711 | (c_parser_alignof_expression): Get location of type. | |
15712 | (c_parser_postfix_expression): Likewise. | |
15713 | (c_parser_postfix_expression_after_paren_type): Add type_loc | |
fbdf817d UB |
15714 | parameter. Change all callers. Call check_compound_literal_type. |
15715 | Use type_loc for error about variable size type. | |
15716 | * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use | |
15717 | of an enum constant from an enum type defined in a struct or union. | |
24b97832 ILT |
15718 | (c_cast_expr): Add loc parameter. Change all callers. If |
15719 | -Wc++-compat, warn about defining a type in a cast. | |
15720 | * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define. | |
15721 | (start_enum, start_struct, finish_struct): Update declarations. | |
15722 | (parser_xref_tag, c_cast_expr): Update declarations. | |
15723 | (check_compound_literal_type): Declare. | |
15724 | ||
7a2738fa BE |
15725 | 2009-05-11 Ben Elliston <bje@au.ibm.com> |
15726 | ||
15727 | * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update | |
15728 | for recent libcpp interface change. | |
15729 | (rs6000_macro_to_expand): Likewise. | |
15730 | ||
af618949 MM |
15731 | 2009-05-10 Michael Matz <matz@suse.de> |
15732 | ||
15733 | PR target/40031 | |
15734 | * config/arm/arm.c (require_pic_register): Emit on entry edge, | |
15735 | not at entry of function. | |
15736 | ||
b7d7a473 RG |
15737 | 2009-05-10 Richard Guenther <rguenther@suse.de> |
15738 | ||
15739 | PR tree-optimization/40081 | |
15740 | Revert | |
15741 | * tree-sra.c (instantiate_element): Instantiate scalar replacements | |
15742 | using the main variant of the element type. Do not fiddle with | |
15743 | TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS. | |
15744 | ||
15745 | * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose | |
15746 | structs with volatile fields. | |
15747 | ||
078c3644 JH |
15748 | 2009-05-10 Jan Hubicka <jh@suse.cz> |
15749 | ||
15750 | * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare. | |
fbdf817d UB |
15751 | (estimate_move_cost): Assert that it does not get called for |
15752 | VOID_TYPE_P. | |
078c3644 JH |
15753 | (estimate_num_insns): Skip VOID types in argument handling. |
15754 | (optimize_inline_calls): Delete unreachable blocks and verify that | |
15755 | callgraph is valid. | |
15756 | ||
39ff5a96 JH |
15757 | 2009-05-10 Jan Hubicka <jh@suse.cz> |
15758 | ||
15759 | * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node. | |
15760 | * cgraph.c (cgraph_mark_address_taken_node): New function. | |
15761 | (dump_cgraph_node): Dump new flag. | |
15762 | * cgraph.h (struct cgraph_node): Add address_taken. | |
15763 | (cgraph_mark_address_taken_node): New function. | |
39ff5a96 JH |
15764 | * ipa.c (cgraph_postorder): Prioritize functions with address taken |
15765 | since new direct calls can be born. | |
15766 | ||
9a0c6187 JM |
15767 | 2009-05-10 Joseph Myers <joseph@codesourcery.com> |
15768 | ||
15769 | * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in | |
15770 | tok->val.node.node. | |
15771 | ||
4b685e14 JH |
15772 | 2009-05-10 Jan Hubicka <jh@suse.cz> |
15773 | ||
15774 | PR middle-end/40084 | |
fb0be169 EB |
15775 | * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call |
15776 | argument; rewrite. | |
4b685e14 JH |
15777 | (cgraph_update_edges_for_call_stmt): Take old_decl argument. |
15778 | * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype. | |
15779 | * tree-inline.c (copy_bb): Set frequency correctly. | |
fb0be169 EB |
15780 | (fold_marked_statements): Update call to |
15781 | cgraph_update_edges_for_call_stmt. | |
4b685e14 | 15782 | |
29d08eba JM |
15783 | 2009-05-10 Joseph Myers <joseph@codesourcery.com> |
15784 | ||
15785 | * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for | |
15786 | identifiers in diagnostics. | |
15787 | * config/arm/arm.c (arm_handle_fndecl_attribute, | |
15788 | arm_handle_isr_attribute): Likewise. | |
15789 | * config/avr/avr.c (avr_handle_progmem_attribute, | |
782dc37a | 15790 | avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise. |
29d08eba JM |
15791 | * config/bfin/bfin.c (handle_int_attribute, |
15792 | bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute, | |
15793 | bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute, | |
15794 | bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute): | |
15795 | Likewise. | |
15796 | * config/darwin.c (darwin_handle_kext_attribute, | |
15797 | darwin_handle_weak_import_attribute): Likewise. | |
15798 | * config/h8300/h8300.c (h8300_handle_fndecl_attribute, | |
15799 | h8300_handle_eightbit_data_attribute, | |
15800 | h8300_handle_tiny_data_attribute): Likewise. | |
15801 | * config/i386/i386.c (ix86_handle_cconv_attribute, | |
782dc37a | 15802 | ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise. |
29d08eba JM |
15803 | * config/i386/winnt.c (ix86_handle_shared_attribute, |
15804 | ix86_handle_selectany_attribute): Likewise. | |
15805 | * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise. | |
15806 | * config/m32c/m32c.c (function_vector_handler): Likewise. | |
15807 | * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute, | |
15808 | m68hc11_handle_fntype_attribute): Likewise. | |
15809 | * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise. | |
15810 | * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise. | |
15811 | * config/mips/mips.c (mips_insert_attributes, | |
15812 | mips_merge_decl_attributes, mips_expand_builtin): Likewise. | |
15813 | * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute, | |
15814 | rs6000_handle_struct_attribute): Likewise. | |
15815 | * config/sh/sh.c (sh_insert_attributes, | |
15816 | sh_handle_resbank_handler_attribute, | |
15817 | sh_handle_interrupt_handler_attribute, | |
15818 | sh2a_handle_function_vector_handler_attribute, | |
15819 | sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute): | |
15820 | Likewise. | |
15821 | * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise. | |
15822 | * config/spu/spu.c (spu_handle_fndecl_attribute, | |
15823 | spu_handle_vector_attribute): Likewise. | |
15824 | * config/stormy16/stormy16.c | |
15825 | (xstormy16_handle_interrupt_attribute): Likewise. | |
15826 | * config/v850/v850-c.c (ghs_pragma_section): Likewise. | |
15827 | * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise. | |
15828 | ||
f41c4af3 JM |
15829 | 2009-05-10 Joseph Myers <joseph@codesourcery.com> |
15830 | ||
782dc37a | 15831 | * pretty-print.h (struct pretty_print_info): Add translate_identifiers. |
f41c4af3 JM |
15832 | (pp_translate_identifiers): New. |
15833 | (pp_identifier): Only conditionally translate identifier to locale | |
15834 | character set. | |
15835 | * pretty-print.c (pp_construct): Set pp_translate_identifiers. | |
15836 | (pp_base_tree_identifier): Only conditionally translate identifier | |
15837 | to locale character set. | |
15838 | * c-pretty-print.c (M_): Define. | |
15839 | (pp_c_type_specifier, pp_c_primary_expression): Mark English | |
15840 | fragments for conditional translation with M_. | |
15841 | * tree-pretty-print.c (maybe_init_pretty_print): Disable | |
15842 | identifier translation. | |
15843 | ||
896d7dbd RG |
15844 | 2009-05-10 Richard Guenther <rguenther@suse.de> |
15845 | ||
15846 | PR tree-optimization/40081 | |
15847 | * tree-sra.c (instantiate_element): Instantiate scalar replacements | |
15848 | using the main variant of the element type. Do not fiddle with | |
15849 | TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS. | |
15850 | ||
9a23acef JH |
15851 | 2009-05-09 Jan Hubicka <jh@suse.cz> |
15852 | ||
15853 | PR middle-end/40080 | |
15854 | * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect | |
15855 | indirect calls; verify cgraph afterwards. | |
15856 | ||
d563610d JH |
15857 | 2009-05-09 Jan Hubicka <jh@suse.cz> |
15858 | ||
15859 | PR bootstrap/40082 | |
15860 | * ipa.c (update_inlined_to_pointer): New function. | |
15861 | (cgraph_remove_unreachable_nodes): Use it. | |
15862 | ||
f08a18d0 JH |
15863 | 2009-05-09 Jan Hubicka <jh@suse.cz> |
15864 | ||
15865 | * tree-eh.c (struct leh_state): Remove prev_try. | |
15866 | (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do | |
15867 | not track prev_try. | |
f100a4a8 | 15868 | * except.c (gen_eh_region_cleanup, duplicate_eh_regions, |
f08a18d0 JH |
15869 | copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label, |
15870 | remove_eh_handler_and_replace, foreach_reachable_handler, | |
15871 | verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer. | |
15872 | * except.h (struct eh_region): Remove eh_region_u_cleanup. | |
15873 | (gen_eh_region_cleanup): Update prototype. | |
15874 | ||
0afd7219 JH |
15875 | 2009-05-09 Jan Hubicka <jh@suse.cz> |
15876 | ||
15877 | PR middle-end/40043 | |
15878 | * except.c (copy_eh_region): Always set prev_try. | |
15879 | (redirect_eh_edge_to_label): Find outer try. | |
15880 | (foreach_reachable_handler): When looking for prev try | |
15881 | handle case where previous try is not going to be taken. | |
15882 | ||
ad6c0864 MM |
15883 | 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com> |
15884 | ||
15885 | PR tree-optimization/40049 | |
15886 | * tree-vect-stmts.c (vectorizable_operation): If the machine has | |
15887 | only vector/vector shifts, convert the type of the constant to the | |
15888 | appropriate type to avoid building incorrect trees, which | |
15889 | eventually have problems with garbage collection. | |
15890 | ||
c94f9067 JM |
15891 | 2009-05-08 Joseph Myers <joseph@codesourcery.com> |
15892 | ||
15893 | * fold-const.c (fold_binary): Do not fold multiplication by 1 or | |
15894 | -1 for complex floating-point types if honoring signed zeros. | |
15895 | ||
9187e02d JH |
15896 | 2009-05-08 Jan Hubicka <jh@suse.cz> |
15897 | ||
20acb8a2 EB |
15898 | * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function |
15899 | argument; handle correctly when profile is absent. | |
9187e02d JH |
15900 | (build_cgraph_edges): Update. |
15901 | (rebuild_cgraph_edges): Update. | |
20acb8a2 EB |
15902 | * cgraph.c: Do not include varray.h. |
15903 | (cgraph_set_call_stmt_including_clones): New function. | |
15904 | (cgraph_create_edge_including_clones): Likewise | |
15905 | (cgraph_update_edges_for_call_stmt_node): New static cfunction. | |
9187e02d JH |
15906 | (cgraph_update_edges_for_call_stmt): Handle clones. |
15907 | (cgraph_remove_node): Handle clone tree. | |
15908 | (cgraph_remove_node_and_inline_clones): New function. | |
15909 | (dump_cgraph_node): Dump clone tree. | |
15910 | (cgraph_clone_node): Handle clone tree. | |
20acb8a2 | 15911 | (clone_function_name): Bring here from tree-inline.c. |
9187e02d | 15912 | (cgraph_create_virtual_clone): New function. |
20acb8a2 EB |
15913 | * cgraph.h (ipa_replace_map): Move here from ipa.h. |
15914 | (cgraph_clone_info): New function. | |
9187e02d | 15915 | (strut cgraph_node): Add clone_info and new clone tree pointers. |
20acb8a2 EB |
15916 | (cgraph_remove_node_and_inline_clones, |
15917 | cgraph_set_call_stmt_including_clones, | |
15918 | cgraph_create_edge_including_clones, | |
15919 | cgraph_create_virtual_clone): Declare. | |
9187e02d JH |
15920 | (cgraph_function_versioning): Use VEC argument. |
15921 | (compute_call_stmt_bb_frequency): Update prototype. | |
15922 | (cgraph_materialize_all_clones): New function. | |
15923 | * ipa-cp.c (ipcp_update_cloned_node): Remove. | |
15924 | (ipcp_create_replace_map): Update to VECtors. | |
15925 | (ipcp_update_callgraph): Use virtual clones. | |
15926 | (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove. | |
15927 | (ipcp_update_profiling): Do not update local profiling. | |
15928 | (ipcp_insert_stage): Use VECtors and virtual clones. | |
15929 | * cgraphunit.c (verify_cgraph_node): Verify clone tree. | |
15930 | (clone_of_p): New function. | |
15931 | (cgraph_preserve_function_body_p): Use clone tree. | |
15932 | (cgraph_optimize): Materialize clones. | |
15933 | (cgraph_function_versioning): Update for VECtors. | |
15934 | (save_inline_function_body): Use clone tree. | |
20acb8a2 EB |
15935 | (cgraph_materialize_clone): New function. |
15936 | (cgraph_materialize_all_clones): Likewise. | |
9187e02d JH |
15937 | * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags. |
15938 | * ipa.c: Include gimple.h. | |
15939 | (cgraph_remove_unreachable_nodes): Use clone tree. | |
20acb8a2 EB |
15940 | * ipa-prop.c (ipa_note_param_call): Update call to |
15941 | compute_call_stmt_bb_frequencycall. | |
9187e02d | 15942 | * ipa-prop.h (ipa_replace_map): Move to cgraph.h. |
20acb8a2 | 15943 | * tree-inline.c: Do not include varray.h or gt-tree-inline.h. |
9187e02d JH |
15944 | (copy_bb): Handle updating of clone tree; add new edge when new call |
15945 | appears. | |
15946 | (expand_call_inline): Be strict about every call having edge. | |
15947 | (clone_fn_id_num, clone_function_name): Move to cgraph.c. | |
15948 | (delete_unreachable_blocks_update_callgraph): New function. | |
20acb8a2 EB |
15949 | (tree_function_versioning): Use VECtors; always remove unreachable |
15950 | blocks and fold conditionals. | |
15951 | * tree-inline.h: Do not include varray.h. | |
9187e02d JH |
15952 | (tree_function_versioning): Remove. |
15953 | * Makefile.in (GTFILES): Remove tree-inline.c | |
15954 | * passes.c (do_per_function): Do only functions having body. | |
20acb8a2 EB |
15955 | * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone |
15956 | tree. | |
9187e02d | 15957 | |
9b86d6bb L |
15958 | 2009-05-08 H.J. Lu <hongjiu.lu@intel.com> |
15959 | Andrew Morrow <acm@google.com> | |
15960 | ||
15961 | PR c/36892 | |
15962 | * c-common.c (c_common_attribute_table): Permit deprecated | |
15963 | attribute to take an optional argument. | |
15964 | (handle_deprecated_attribute): If the optional argument to | |
15965 | __attribute__((deprecated)) is not a string ignore the attribute | |
15966 | and emit a warning. | |
15967 | ||
15968 | * c-decl.c (grokdeclarator): Updated warn_deprecated_use call. | |
15969 | * c-typeck.c (build_component_ref): Likewise. | |
15970 | (build_external_ref): Likewise. | |
15971 | ||
15972 | * toplev.c (warn_deprecated_use): Add an attribute argument. | |
15973 | Emit the message associated with __attribute__((deprecated)). | |
15974 | ||
15975 | * toplev.h (warn_deprecated_use): Updated. | |
15976 | ||
15977 | * doc/extend.texi: Document new optional parameter to | |
15978 | __attribute__((deprecated)) | |
15979 | ||
82ad047f ME |
15980 | 2009-05-08 Michael Eager <eager@eagercon.com> |
15981 | ||
15982 | * config/rs6000/rs6000.md (*movdf_softfloat32): replace | |
15983 | !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT. | |
15984 | ||
788d3075 RG |
15985 | 2009-05-08 Richard Guenther <rguenther@suse.de> |
15986 | ||
15987 | PR tree-optimization/40062 | |
15988 | * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi): | |
15989 | Avoid exponential behavior. | |
15990 | ||
00952e97 PB |
15991 | 2009-05-08 Paolo Bonzini <bonzini@gnu.org> |
15992 | ||
15993 | PR rtl-optimization/33928 | |
15994 | PR 26854 | |
15995 | * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween, | |
15996 | process_uses, build_single_def_use_links): New. | |
15997 | (update_df): Update use_def_ref. | |
15998 | (forward_propagate_into): Use get_def_for_use instead of use-def | |
15999 | chains. | |
16000 | (fwprop_init): Call build_single_def_use_links and let it initialize | |
16001 | dataflow. | |
16002 | (fwprop_done): Free use_def_ref. | |
16003 | (fwprop_addr): Eliminate duplicate call to df_set_flags. | |
f100a4a8 | 16004 | * df-problems.c (df_rd_simulate_artificial_defs_at_top, |
00952e97 PB |
16005 | df_rd_simulate_one_insn): New. |
16006 | (df_rd_bb_local_compute_process_def): Update head comment. | |
16007 | (df_chain_create_bb): Use the new RD simulation functions. | |
f100a4a8 | 16008 | * df.h (df_rd_simulate_artificial_defs_at_top, |
00952e97 PB |
16009 | df_rd_simulate_one_insn): New. |
16010 | * opts.c (decode_options): Enable fwprop at -O1. | |
16011 | * doc/invoke.texi (-fforward-propagate): Document this. | |
16012 | ||
2ca862e9 JM |
16013 | 2009-05-08 Joseph Myers <joseph@codesourcery.com> |
16014 | ||
16015 | PR c/24581 | |
16016 | * c-typeck.c (build_binary_op): Handle arithmetic between one real | |
16017 | and one complex operand specially. | |
16018 | * tree-complex.c (some_nonzerop): Do not identify a real value as | |
16019 | zero if flag_signed_zeros. | |
16020 | ||
3e807ffc PB |
16021 | 2009-05-08 Paolo Bonzini <bonzini@gnu.org> |
16022 | ||
16023 | PR rtl-optimization/33928 | |
7925c06c | 16024 | * loop-invariant.c (record_use): Fix && vs. || mishap. |
3e807ffc | 16025 | |
1bfdbb29 PB |
16026 | 2009-05-08 Paolo Bonzini <bonzini@gnu.org> |
16027 | ||
16028 | PR rtl-optimization/33928 | |
e913423f EB |
16029 | * loop-invariant.c (struct use): Add addr_use_p. |
16030 | (struct def): Add n_addr_uses. | |
16031 | (struct invariant): Add cheap_address. | |
16032 | (create_new_invariant): Set cheap_address. | |
16033 | (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses. | |
16034 | (record_uses): Pass df_ref to record_use. | |
16035 | (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses | |
16036 | used only as such. | |
1bfdbb29 | 16037 | |
702cb2a0 KK |
16038 | 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org> |
16039 | ||
16040 | * config/sh/sh.c: Do not include c-pragma.h. | |
16041 | ||
5e8df753 AP |
16042 | 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com> |
16043 | ||
16044 | * config/spu/spu.c: Remove include of c-common.h. | |
16045 | ||
6ec637a4 JJ |
16046 | 2009-05-07 Janis Johnson <janis187@us.ibm.com> |
16047 | ||
16048 | PR c/39037 | |
16049 | * c-common.h (mark_valid_location_for_stdc_pragma, | |
16050 | valid_location_for_stdc_pragma_p, set_float_const_decimal64, | |
16051 | clear_float_const_decimal64, float_const_decimal64_p): New. | |
16052 | * c.opt (Wunsuffixed-float-constants): New. | |
16053 | * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for | |
16054 | unsuffixed float constant, handle new warning. | |
16055 | * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants. | |
16056 | * c-decl.c (c_scope): New flag float_const_decimal64. | |
16057 | (set_float_const_decimal64, clear_float_const_decimal64, | |
16058 | float_const_decimal64_p): New. | |
16059 | (push_scope): Set new flag. | |
16060 | * c-parser.c (c_parser_translation_unit): Mark when it's valid | |
16061 | to use STDC pragmas. | |
16062 | (c_parser_external_declaration): Ditto. | |
16063 | (c_parser_compound_statement_nostart): Ditto. | |
16064 | * c-pragma.c (valid_location_for_stdc_pragma, | |
16065 | mark_valid_location_for_stdc_pragma, | |
16066 | valid_location_for_stdc_pragma_p, handle_stdc_pragma, | |
16067 | handle_pragma_float_const_decimal64): New. | |
16068 | (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64. | |
16069 | * cp/semantics.c (valid_location_for_stdc_pragma_p, | |
16070 | set_float_const_decimal64, clear_float_const_decimal64, | |
16071 | float_const_decimal64_p): New dummy functions. | |
16072 | * doc/extend.texi (Decimal Float): Remove statement that the | |
16073 | pragma, and suffix for double constants, are not supported. | |
16074 | * doc/invoke.texi (Warning Options): List new option. | |
16075 | (-Wunsuffixed-float-constants): New. | |
16076 | ||
45b9b2e9 SB |
16077 | 2009-05-08 Steven Bosscher <steven@gcc.gnu.org> |
16078 | ||
16079 | * config/i386/i386.c: Do not include c-common.h. | |
16080 | ||
e71da632 MH |
16081 | 2009-05-07 Mark Heffernan <meheff@google.com> |
16082 | ||
16083 | * doc/invoke.texi (Debugging Options): Document change of debugging | |
16084 | dump location. | |
e913423f | 16085 | * opts.c (decode_options): Make dump_base_name relative to |
e71da632 MH |
16086 | aux_base_name directory. |
16087 | ||
fe4c7bc6 HS |
16088 | 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com> |
16089 | ||
16090 | * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added. | |
16091 | * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton. | |
16092 | ||
3b3e44eb RAE |
16093 | 2009-05-07 Rafael Avila de Espindola <espindola@google.com> |
16094 | ||
16095 | * Makefile.in (install-plugin): Simplify a bit. | |
16096 | ||
fac41238 PB |
16097 | 2009-05-07 Paolo Bonzini <bonzini@gnu.org> |
16098 | ||
16099 | * Makefile.in (OBJS-common): Add regcprop.o. | |
16100 | (regcprop.o): New. | |
16101 | * timevar.def (TV_CPROP_REGISTERS): New. | |
16102 | * regrename.c (regrename_optimize): Return 0. | |
16103 | (rest_of_handle_regrename): Delete. | |
16104 | (pass_rename_registers): Point to regrename_optimize. | |
f100a4a8 | 16105 | (struct value_data_entry, struct value_data, |
fac41238 PB |
16106 | kill_value_one_regno, kill_value_regno, kill_value, |
16107 | set_value_regno, init_value_data, kill_clobbered_value, | |
16108 | kill_set_value, kill_autoinc_value, copy_value, | |
16109 | mode_change_ok, maybe_mode_change, find_oldest_value_reg, | |
16110 | replace_oldest_value_reg, replace_oldest_value_addr, | |
16111 | replace_oldest_value_mem, copyprop_hardreg_forward_1, | |
16112 | debug_value_data, validate_value_data): Move... | |
16113 | * regcprop.c: ... here. | |
16114 | (rest_of_handle_cprop): Delete. | |
16115 | (pass_cprop_hardreg): Point to copyprop_hardreg_forward. | |
16116 | ||
472e0df9 JJ |
16117 | 2009-05-07 Jakub Jelinek <jakub@redhat.com> |
16118 | ||
16119 | PR middle-end/40057 | |
16120 | * dojump.c (prefer_and_bit_test): Use immed_double_const instead of | |
16121 | GEN_INT for 1 << bitnum. | |
16122 | (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of | |
16123 | build_int_cst_type. | |
16124 | ||
0d50d55a UB |
16125 | 2009-05-07 Uros Bizjak <ubizjak@gmail.com> |
16126 | ||
16127 | * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]: | |
7925c06c | 16128 | Remove wrong description of "nand" operation. |
0d50d55a | 16129 | |
22f597f1 RG |
16130 | 2009-05-06 Richard Guenther <rguenther@suse.de> |
16131 | Adam Nemet <anemet@caviumnetworks.com> | |
16132 | ||
16133 | * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the | |
16134 | comment. Add that if LHS is not a gimple register, then RHS1 has | |
16135 | to be a single object (GIMPLE_SINGLE_RHS). | |
16136 | ||
641cac0b AN |
16137 | 2009-05-06 Adam Nemet <anemet@caviumnetworks.com> |
16138 | ||
16139 | * expr.c (get_def_for_expr): Move it up in the file. | |
16140 | (store_field): When expanding a bit-field store, look at the | |
16141 | defining gimple stmt for the masking conversion. | |
16142 | ||
5a5c6435 JJ |
16143 | 2009-05-06 Janis Johnson <janis187@us.ibm.com> |
16144 | ||
16145 | PR middle-end/39986 | |
16146 | * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64, | |
16147 | decode_decimal64, encode_decimal128, decode_decimal128): Avoid | |
16148 | 32-bit memcpy into long. | |
16149 | ||
96474f36 JJ |
16150 | 2009-05-06 Jakub Jelinek <jakub@redhat.com> |
16151 | ||
16152 | * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX. | |
16153 | (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling | |
16154 | new_reg_loc_descr. | |
16155 | (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0 | |
16156 | instead of appending DW_OP_deref*. | |
16157 | ||
529ff441 MM |
16158 | 2009-05-06 Michael Matz <matz@suse.de> |
16159 | ||
16160 | PR middle-end/40021 | |
16161 | * cfgexpand.c (maybe_cleanup_end_of_block): New static function. | |
16162 | (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps. | |
16163 | ||
9419a9fd RAE |
16164 | 2009-05-06 Rafael Avila de Espindola <espindola@google.com> |
16165 | ||
16166 | * Makefile.in (install-plugin): Fix srcdir handling. | |
16167 | ||
fff1894c AB |
16168 | 2009-05-06 Andrey Belevantsev <abel@ispras.ru> |
16169 | ||
16170 | * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF | |
16171 | when processing for not_regs_needed bitmap. | |
16172 | * gimple.c (walk_stmt_load_store_addr_ops): When visiting address, | |
f100a4a8 UB |
16173 | handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while |
16174 | handling it for rhs. | |
fff1894c | 16175 | |
700ae70c L |
16176 | 2009-05-06 H.J. Lu <hongjiu.lu@intel.com> |
16177 | ||
ab3426a7 | 16178 | * config/i386/i386.md (unnamed inc/dec peephole): Use |
aa016ff7 | 16179 | optimize_insn_for_size_p instead of optimize_size. |
700ae70c L |
16180 | * config/i386/predicates.md (incdec_operand): Likewise. |
16181 | (aligned_operand): Likewise. | |
16182 | * config/i386/sse.md (divv8sf3): Likewise. | |
16183 | (sqrtv8sf2): Likewise. | |
16184 | ||
67341fb5 L |
16185 | 2009-05-06 H.J. Lu <hongjiu.lu@intel.com> |
16186 | ||
16187 | * config/i386/i386.c (ix86_build_signbit_mask): Make it static. | |
16188 | ||
16189 | * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed. | |
16190 | ||
87946f42 L |
16191 | 2009-05-06 H.J. Lu <hongjiu.lu@intel.com> |
16192 | ||
16193 | * config/i386/i386.md (*avx_<code><mode>3_finite): Replace | |
16194 | ssemodesuffixf2c with avxmodesuffixf2c. | |
16195 | ||
1202aec1 JM |
16196 | 2009-05-06 Joseph Myers <joseph@codesourcery.com> |
16197 | ||
16198 | PR c/40032 | |
aa016ff7 | 16199 | * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field. |
1202aec1 | 16200 | |
6e57a01d JJ |
16201 | 2009-05-05 Jakub Jelinek <jakub@redhat.com> |
16202 | ||
16203 | * tree.h: Remove DECL_BY_REFERENCE from private_flag comment. | |
16204 | (struct tree_base): Adjust spacing for 8 bit boundaries. | |
16205 | (struct tree_decl_common): Add decl_by_reference_flag bit. | |
16206 | (DECL_BY_REFERENCE): Adjust. | |
16207 | * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL, | |
16208 | print DECL_BY_REFERENCE bit. | |
16209 | * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change. | |
16210 | * dwarf2out.c (loc_by_reference, gen_decl_die): Check | |
16211 | DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones. | |
16212 | (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED | |
16213 | unconditionally. | |
16214 | ||
32f579f6 JJ |
16215 | PR middle-end/39666 |
16216 | * gimplify.c (gimplify_switch_expr): If case labels cover the whole | |
16217 | range of the type, but default label is missing, add it with one | |
16218 | of the existing labels instead of adding a new label for it. | |
16219 | ||
617ab743 JM |
16220 | 2009-05-05 Joseph Myers <joseph@codesourcery.com> |
16221 | ||
16222 | * dwarf.h: Remove. | |
16223 | ||
bf016de8 RAE |
16224 | 2009-05-05 Rafael Avila de Espindola <espindola@google.com> |
16225 | ||
16226 | * Makefile.in (enable_plugin, plugin_includedir): New. | |
16227 | (install): Depend on install-plugin. | |
16228 | (PLUGIN_HEADERS): New. | |
16229 | (install-plugin): New. | |
16230 | * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64. | |
16231 | ||
7f8fdb9f RG |
16232 | 2009-05-05 Richard Guenther <rguenther@suse.de> |
16233 | ||
16234 | PR tree-optimization/40022 | |
16235 | * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for | |
16236 | the only vuse. | |
16237 | (phivn_valid_p): Fix tuplification error, simplify. | |
16238 | (phiprop_insert_phi): Add dumps. | |
16239 | (propagate_with_phi): Simplify. | |
16240 | ||
8d972839 RG |
16241 | 2009-05-05 Richard Guenther <rguenther@suse.de> |
16242 | ||
16243 | PR middle-end/40023 | |
aa016ff7 | 16244 | * builtins.c (gimplify_va_arg_expr): Properly build the address. |
8d972839 | 16245 | |
66ba9b0b SZ |
16246 | 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com> |
16247 | ||
16248 | * tree.h (strip_float_extensions): Remove duplicate declaration. | |
aa016ff7 UB |
16249 | (build_low_bits_mask, debug_fold_checksum, expand_function_end, |
16250 | expand_function_start, stack_protect_prologue, stack_protect_epilogue, | |
16251 | block_ultimate_origin): Rearrange the declarations line to match the | |
16252 | comment that indicates the .c file which the functions are defined. | |
16253 | (dwarf2out_*, set_decl_rtl): Add comment. | |
16254 | (get_base_address): Adjust comment. | |
16255 | (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the | |
16256 | declarations line and add comment. | |
16257 | (is_builtin_name): Add blank after function name, for clarity. | |
66ba9b0b | 16258 | |
4f1e4960 JM |
16259 | 2009-05-04 Joseph Myers <joseph@codesourcery.com> |
16260 | ||
16261 | * attribs.c (decl_attributes): Use %qE for identifiers in | |
16262 | diagnostics. | |
16263 | * cgraphunit.c (verify_cgraph_node): Translate function names to | |
16264 | locale character set in diagnostics. | |
16265 | * coverage.c (get_coverage_counts): Use %qE for identifiers in | |
16266 | diagnostics. | |
16267 | * doc/invoke.texi (-finstrument-functions-exclude-function-list): | |
16268 | Document that functions are named in UTF-8. | |
16269 | * expr.c (expand_expr_real_1): Translate function names to locale | |
16270 | character set in diagnostics. | |
16271 | * gimplify.c (omp_notice_variable, omp_is_private, | |
16272 | gimplify_scan_omp_clauses): Use %qE for identifiers in | |
16273 | diagnostics. | |
16274 | * langhooks.c (lhd_print_error_function): Translate function names | |
16275 | to locale character set. | |
16276 | * langhooks.h (decl_printable_name): Document that return value is | |
16277 | in internal character set. | |
16278 | * stmt.c: Include pretty-print.h | |
16279 | (tree_conflicts_with_clobbers_p): Use %qE for identifiers in | |
16280 | diagnostics. | |
16281 | (resolve_operand_name_1): Translate named operand name to locale | |
16282 | character set. | |
16283 | * stor-layout.c (finalize_record_size): Use %qE for identifiers in | |
16284 | diagnostics. | |
16285 | * toplev.c (announce_function): Translate function names to locale | |
16286 | character set. | |
16287 | (warn_deprecated_use): Use %qE for identifiers in diagnostics. | |
16288 | (default_tree_printer): Use pp_identifier or translate identifiers | |
16289 | to locale character set. Mark "<anonymous>" for translation. | |
16290 | * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE | |
16291 | for identifiers in diagnostics. | |
16292 | * tree.c (handle_dll_attribute): Use %qE for identifiers in | |
16293 | diagnostics. | |
16294 | * varasm.c (output_constructor): Use %qE for identifiers in | |
16295 | diagnostics. | |
16296 | ||
40540e68 RAE |
16297 | 2009-05-04 Rafael Avila de Espindola <espindola@google.com> |
16298 | ||
16299 | * configure.ac: use ` ` instead of $() | |
16300 | * configure: Regenerate. | |
16301 | ||
33fc884c BE |
16302 | 2009-05-05 Ben Elliston <bje@au.ibm.com> |
16303 | ||
16304 | * config/pa/linux-atomic.c: Eliminate conditional include of | |
16305 | errno.h on non-LP64 systems to simplify build requirements. | |
16306 | ||
88388a52 JM |
16307 | 2009-05-04 Joseph Myers <joseph@codesourcery.com> |
16308 | ||
16309 | * c-common.c (handle_mode_attribute): Use %qE for identifiers in | |
16310 | diagnostics. | |
16311 | * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree | |
16312 | and pass value to identifier_to_locale. | |
16313 | (warn_variable_length_array): Make name a tree. | |
16314 | (grokdeclarator): Separate diagnostic texts for named and unnamed | |
16315 | declarators. Use %qE for named declarators. | |
16316 | * c-parser.c (c_lex_one_token): Use %qE for identifiers in | |
16317 | diagnostics. | |
16318 | * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for | |
16319 | identifiers in diagnostics. | |
16320 | * c-typeck.c (push_member_name, start_init): Pass identifiers to | |
16321 | identifier_to_locale. Mark "anonymous" strings for translation. | |
16322 | ||
960c5c79 ME |
16323 | 2009-05-04 Michael Eager <eager@eagercon.com> |
16324 | ||
16325 | * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow | |
aa016ff7 | 16326 | address for DImode/DFmode only if double-precision FP regs. |
960c5c79 | 16327 | |
d083fbba ME |
16328 | 2009-05-04 Michael Eager <eager@eagercon.com> |
16329 | ||
16330 | * config/rs6000/rs6000.c (rs6000_libcall_value): Add | |
16331 | TARGET_SINGLE_FLOAT check. | |
16332 | ||
c3ba8d32 ME |
16333 | 2009-05-04 Michael Eager <eager@eagercon.com> |
16334 | ||
16335 | * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options. | |
16336 | ||
edce9f18 ME |
16337 | 2009-05-04 Michael Eager <eager@eagercon.com> |
16338 | ||
16339 | * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx | |
16340 | * config/rs6000/t-xilinx: New | |
16341 | ||
506d7b68 PB |
16342 | 2009-05-04 Paolo Bonzini <bonzini@gnu.org> |
16343 | ||
e913423f | 16344 | * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation. |
506d7b68 PB |
16345 | * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete. |
16346 | * gcc/explow.c (memory_address): Use target hook. | |
16347 | * gcc/targhooks.c (default_legitimize_address): New. | |
16348 | * gcc/targhooks.h (default_legitimize_address): New. | |
16349 | * gcc/target.h (legitimize_address): New. | |
16350 | * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New. | |
16351 | (TARGET_INITIALIZER): Include it. | |
16352 | * gcc/system.h (LEGITIMIZE_ADDRESS): Poison. | |
16353 | ||
16354 | * config/bfin/bfin-protos.h (legitimize_address): Remove. | |
16355 | * config/bfin/bfin.c (legitimize_address): Remove. | |
16356 | * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove. | |
aa016ff7 UB |
16357 | * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address): |
16358 | Remove. | |
506d7b68 PB |
16359 | * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove. |
16360 | * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove. | |
16361 | ||
16362 | * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS, | |
16363 | THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete. | |
16364 | * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete. | |
16365 | * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete. | |
16366 | * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete. | |
16367 | * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete. | |
16368 | * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete. | |
16369 | * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete. | |
16370 | * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete. | |
16371 | * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete. | |
16372 | * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete. | |
16373 | * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete. | |
16374 | * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete. | |
16375 | * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete. | |
16376 | * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete. | |
16377 | * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete. | |
16378 | * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete. | |
16379 | * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete. | |
16380 | * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete. | |
16381 | * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete. | |
16382 | * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete. | |
16383 | * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete. | |
16384 | * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete. | |
16385 | ||
16386 | * gcc/config/s390/s390-protos.h (legitimize_address): Delete. | |
16387 | * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete. | |
16388 | * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete. | |
16389 | * gcc/config/i386/i386-protos.h (legitimize_address): Delete. | |
16390 | * gcc/config/avr/avr-protos.h (legitimize_address): Delete. | |
16391 | * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete. | |
16392 | * gcc/config/score/score-protos.h (score_legitimize_address): Delete. | |
16393 | * gcc/config/arm/arm-protos.h (arm_legitimize_address, | |
16394 | (thumb_legitimize_address): Delete. | |
16395 | * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete. | |
16396 | * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete. | |
16397 | * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete. | |
16398 | * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete. | |
16399 | * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete. | |
aa016ff7 UB |
16400 | * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address): |
16401 | Delete. | |
16402 | * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address): | |
16403 | Delete. | |
506d7b68 PB |
16404 | |
16405 | * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version. | |
16406 | * config/m32c/m32c.c (m32c_legitimize_address): Standardize. | |
16407 | * config/m32r/m32r.c (m32r_legitimize_address): New. | |
16408 | * config/m68k/m68k.c (m68k_legitimize_address): New. | |
16409 | * config/score/score.c (score_legitimize_address): Standardize. | |
16410 | * config/score/score3.c (score3_legitimize_address): Standardize. | |
16411 | * config/score/score3.h (score3_legitimize_address): Adjust. | |
16412 | * config/score/score7.c (score7_legitimize_address): Standardize. | |
16413 | * config/score/score7.h (score7_legitimize_address): Adjust. | |
16414 | * config/sh/sh.c (sh_legitimize_address): New. | |
16415 | * config/iq2000/iq2000.c (iq2000_legitimize_address): New. | |
16416 | ||
16417 | * gcc/config/s390/s390.c (legitimize_address): Rename to... | |
16418 | (s390_legitimize_address): ... this. | |
16419 | * gcc/config/sparc/sparc.c (legitimize_address): Rename to... | |
16420 | (sparc_legitimize_address): ... this. | |
16421 | * gcc/config/i386/i386.c (legitimize_address): Rename to... | |
16422 | (ix86_legitimize_address): ... this. | |
16423 | * gcc/config/avr/avr.c (legitimize_address): Rename to... | |
16424 | (avr_legitimize_address): ... this. | |
16425 | * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to... | |
16426 | (mn10300_legitimize_address): ... this. | |
16427 | * config/alpha/alpha.c (alpha_legitimize_address): Wrap... | |
16428 | (alpha_legitimize_address_1): ... the old alpha_legitimize_address. | |
16429 | (alpha_expand_mov): Adjust call. | |
16430 | ||
16431 | * config/frv/frv.c (frv_legitimize_address): Return x on failure. | |
16432 | * config/spu/spu.c (spu_legitimize_address): Likewise. | |
16433 | * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise. | |
16434 | * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise. | |
16435 | ||
a3af5087 JM |
16436 | 2009-05-04 Joseph Myers <joseph@codesourcery.com> |
16437 | ||
16438 | * intl.c (locale_encoding, locale_utf8): New. | |
16439 | (gcc_init_libintl): Initialize locale_encoding and locale_utf8. | |
16440 | * intl.h (locale_encoding, locale_utf8): Declare. | |
16441 | * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV. | |
16442 | (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale): | |
16443 | New. | |
16444 | * pretty-print.h (pp_identifier): Call identifier_to_locale on ID | |
16445 | argument. | |
16446 | (pp_tree_identifier): Define to call pp_base_tree_identifier. | |
16447 | (pp_base_tree_identifier): Declare as function. | |
16448 | (identifier_to_locale): Declare. | |
16449 | * Makefile.in (pretty-print.o): Update dependencies. | |
aa016ff7 | 16450 | * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics. |
a3af5087 | 16451 | |
ea5cd5f1 RG |
16452 | 2009-05-04 Richard Guenther <rguenther@suse.de> |
16453 | ||
16454 | PR middle-end/40015 | |
16455 | * builtins.c (fold_builtin_memory_op): Do not decay to element | |
16456 | type if the size matches the whole array. | |
16457 | ||
ddc2690a KH |
16458 | 2009-05-04 Kazu Hirata <kazu@codesourcery.com> |
16459 | ||
16460 | * expmed.c (synth_mult): When trying out a shift, pass the result | |
16461 | of a signed shift. | |
16462 | ||
ef268d34 KH |
16463 | 2009-05-04 Kazu Hirata <kazu@codesourcery.com> |
16464 | ||
16465 | * expmed.c (shiftsub_cost): Rename to shiftsub0_cost. | |
16466 | (shiftsub1_cost): New. | |
16467 | (init_expmed): Compute shiftsub1_cost. | |
16468 | (synth_mult): Optimize multiplications by constants of the form | |
16469 | -(2^^m-1) for some constant positive integer m. | |
16470 | ||
255d3827 RG |
16471 | 2009-05-03 Richard Guenther <rguenther@suse.de> |
16472 | ||
16473 | PR c/39983 | |
16474 | * c-typeck.c (array_to_pointer_conversion): Do not built | |
16475 | ADDR_EXPRs of arrays of pointer-to-element type. | |
16476 | * c-gimplify.c (c_gimplify_expr): Revert change fixing | |
16477 | up wrong ADDR_EXPRs after-the-fact. | |
16478 | * c-common.c (strict_aliasing_warning): Strip pointer | |
16479 | conversions for obtaining the original type. | |
16480 | * builtins.c (fold_builtin_memset): Handle array types. | |
16481 | (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs | |
16482 | and array types | |
16483 | ||
16c33770 RG |
16484 | 2009-05-03 Richard Guenther <rguenther@suse.de> |
16485 | ||
16486 | PR middle-end/23329 | |
16487 | * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set. | |
16488 | Do not lose casts from array types with unknown extent to array | |
16489 | types with known extent. | |
16490 | * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for | |
16491 | alias set compatibility. | |
16492 | ||
62a67c94 MLI |
16493 | 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
16494 | ||
16495 | * flags.h (extra_warnings): Delete. | |
16496 | * toplev.c (process_options): Handle Wuninitialized here. | |
16497 | * opts.c (extra_warnings): Delete. | |
16498 | (set_Wextra): Delete. | |
16499 | (common_handle_option): -Wextra can be handled automatically. | |
16500 | * c-opts.c (c_common_handle_option): Delete obsolete code. | |
16501 | (c_common_post_options): Simplify comment. | |
16502 | * common.opt (W): Add Var. | |
16503 | (Wextra): Add Var. | |
16504 | (Wuninitialized): Initialize to -1. | |
16505 | ||
8c7926c4 AN |
16506 | 2009-05-03 Adam Nemet <anemet@caviumnetworks.com> |
16507 | Richard Guenther <rguenther@suse.de> | |
16508 | ||
16509 | * expr.c (get_def_for_expr): New function. | |
16510 | (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with | |
16511 | SSA rather than trees. | |
16512 | <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of | |
16513 | TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1). | |
f100a4a8 | 16514 | |
fa5da7de JM |
16515 | 2009-05-03 Joseph Myers <joseph@codesourcery.com> |
16516 | ||
16517 | * c-common.c (reswords): Add _Imaginary. | |
16518 | * c-common.c (enum rid): Add RID_IMAGINARY. | |
16519 | ||
2ddd5020 PB |
16520 | 2009-05-03 Paolo Bonzini <bonzini@gnu.org> |
16521 | ||
16522 | * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation. | |
16523 | Patch by Richard Guenther. | |
16524 | ||
aea88c05 AS |
16525 | 2009-05-03 Anatoly Sokolov <aesok@post.ru> |
16526 | ||
16527 | * defaults.h (FRAME_POINTER_REQUIRED): Provide default. | |
16528 | * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation. | |
16529 | * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete. | |
16530 | * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete. | |
16531 | * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete. | |
16532 | * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete. | |
16533 | * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete. | |
16534 | * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete. | |
16535 | * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete. | |
16536 | * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete. | |
16537 | * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete. | |
16538 | * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete. | |
16539 | * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete. | |
16540 | * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete. | |
16541 | * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete. | |
16542 | * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete. | |
16543 | * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete. | |
16544 | * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete. | |
16545 | ||
85e59f3a RG |
16546 | 2009-05-02 Richard Guenther <rguenther@suse.de> |
16547 | ||
16548 | PR tree-optimization/39940 | |
16549 | * tree-ssa-pre.c (eliminate): Make sure we may propagate before | |
16550 | doing so. | |
16551 | ||
4636b850 RG |
16552 | 2009-05-02 Richard Guenther <rguenther@suse.de> |
16553 | ||
16554 | PR middle-end/40001 | |
16555 | * tree-ssa.c (execute_update_addresses_taken): Properly check | |
16556 | if we can mark a variable DECL_GIMPLE_REG_P. | |
16557 | * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P | |
16558 | back to the end of the function. | |
16559 | (is_gimple_reg_type): Remove complex type special casing. | |
16560 | * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P | |
16561 | if not optimizing. | |
16562 | ||
5e10cb5a BE |
16563 | 2009-05-02 Ben Elliston <bje@au.ibm.com> |
16564 | ||
16565 | * doc/collect2.texi (Collect2): Document search path behaviour | |
16566 | when configured with --with-ld. | |
16567 | ||
048bf48b JH |
16568 | 2009-05-02 Jan Hubicka <jh@suse.cz> |
16569 | ||
16570 | * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical | |
16571 | parameter; update callers. | |
aa016ff7 UB |
16572 | (coalesce_cost_edge): EH edges are costier because they needs |
16573 | splitting even if not critical and even more costier when there are | |
16574 | multiple EH predecestors. | |
048bf48b | 16575 | |
d5c5f9ab JH |
16576 | 2009-05-02 Jan Hubicka <jh@suse.cz> |
16577 | ||
16578 | * except.c (remove_eh_handler_and_replace): Handle updating after | |
16579 | removing TRY blocks. | |
16580 | ||
2ed1959a EB |
16581 | 2009-05-02 Eric Botcazou <ebotcazou@adacore.com> |
16582 | ||
16583 | * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard. | |
16584 | ||
d363a7e7 SB |
16585 | 2009-05-02 Steven Bosscher <steven@gcc.gnu.org> |
16586 | ||
16587 | * varasm.c: Do not include c-pragma.h. | |
16588 | * attribs.c: Do not incude c-common.h. | |
16589 | ||
9c3d55b4 MM |
16590 | 2009-05-01 Michael Matz <matz@suse.de> |
16591 | ||
16592 | * calls.c (initialize_argument_information): Handle SSA names like | |
16593 | decls with a non MEM_P DECL_RTL. | |
16594 | ||
ea264ca5 SB |
16595 | 2009-05-01 Steven Bosscher <steven@gcc.gnu.org> |
16596 | ||
16597 | * ipa-reference.c: Do not include c-common.h, include splay-tree.h. | |
16598 | * ipa-utils.c: Likewise. | |
16599 | * ipa-type-escape.c: Likewise. | |
16600 | * cgraphunit.c Do not include c-common.h. | |
16601 | * ipa-pure-const.c: Likewise. | |
16602 | * tree-if-conv.c: Likewise. | |
16603 | * matrix-reorg.c: Do not include c-common.h and c-tree.h. | |
16604 | * ipa-struct-reorg.c: Likewise. | |
16605 | * tree-nomudflap.c: Likewise. | |
16606 | * tree-ssa-structalias.c: Likewise. | |
16607 | ||
6c5d4d1a SB |
16608 | 2009-05-01 Steven Bosscher <steven@gcc.gnu.org> |
16609 | ||
16610 | * store-motion.c: Many cleanups to make this pass a first-class | |
16611 | citizen instead of an appendix to gcse load motion. Add TODO list | |
16612 | to make this pass faster/cleaner/better. | |
16613 | ||
16614 | (struct ls_expr): Post gcse.c-split cleanups. | |
16615 | Rename to st_expr. Rename "loads" field to "antic_stores". Rename | |
16616 | "stores" field to "avail_stores". | |
16617 | (pre_ldst_mems): Rename to store_motion_mems. | |
16618 | (pre_ldst_table): Rename to store_motion_mems_table. | |
16619 | (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users. | |
16620 | (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users. | |
16621 | (ldst_entry): Rename to st_expr_entry, update users. | |
16622 | (free_ldst_entry): Rename to free_st_expr_entry, update users. | |
16623 | (free_ldst_mems): Rename to free_store_motion_mems, update users. | |
aa016ff7 UB |
16624 | (enumerate_ldsts): Rename to enumerate_store_motion_mems, |
16625 | update caller. | |
6c5d4d1a SB |
16626 | (first_ls_expr): Rename to first_st_expr, update users. |
16627 | (next_ls_expr): Rename to next_st_expr, update users. | |
16628 | (print_ldst_list): Rename to print_store_motion_mems. Print names of | |
16629 | fields properly for store motion instead of names inherited from load | |
16630 | motion in gcse.c. | |
16631 | (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove. | |
16632 | (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we | |
16633 | are done with it. | |
16634 | ||
16635 | (ae_kill): Rename to st_kill, update users. | |
16636 | (ae_gen): Rename to st_avloc, update users. | |
16637 | (transp): Rename to st_transp, update users. | |
16638 | (pre_insert_map): Rename to st_insert_map, update users. | |
16639 | (pre_delete_map): Rename to st_delete_map, update users. | |
16640 | (insert_store, build_store_vectors, free_store_memory, | |
16641 | one_store_motion_pass): Update for abovementioned changes. | |
16642 | ||
16643 | (gcse_subst_count, gcse_create_count): Remove. | |
16644 | (one_store_motion_pass): New statistics counters "n_stores_deleted" | |
16645 | and "n_stores_created", local variables. | |
16646 | ||
16647 | (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to | |
16648 | use for_each_rtx. | |
16649 | ||
16650 | (regvec, compute_store_table_current_insn): Remove. | |
16651 | (reg_set_info, reg_clear_last_set): Remove. | |
16652 | (compute_store_table): Use DF caches instead of local dataflow | |
16653 | solvers. | |
16654 | ||
b02cec6e JM |
16655 | 2009-05-01 Joseph Myers <joseph@codesourcery.com> |
16656 | ||
16657 | * c-objc-common.c (c_tree_printer): Print identifiers with | |
16658 | pp_identifier, not pp_string. Mark "({anonymous})" for | |
16659 | translation. | |
16660 | * c-pretty-print.c (pp_c_ws_string): New. | |
16661 | (pp_c_cv_qualifier, pp_c_type_specifier, | |
16662 | pp_c_specifier_qualifier_list, pp_c_parameter_type_list, | |
16663 | pp_c_storage_class_specifier, pp_c_function_specifier, | |
16664 | pp_c_attributes, pp_c_bool_constant, pp_c_constant, | |
16665 | pp_c_primary_expression, pp_c_postfix_expression, | |
16666 | pp_c_unary_expression, pp_c_shift_expression, | |
16667 | pp_c_relational_expression, pp_c_equality_expression, | |
16668 | pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly | |
16669 | use pp_string and pp_c_ws_string in place of pp_identifier and | |
16670 | pp_c_identifier for non-identifiers. Mark English strings for | |
16671 | translation. | |
16672 | * c-pretty-print.h (pp_c_ws_string): Declare. | |
16673 | ||
cd533689 PP |
16674 | 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com> |
16675 | Roland McGrath <roland@redhat.com> | |
16676 | ||
aa016ff7 | 16677 | * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support. |
cd533689 PP |
16678 | (ENABLE_LD_BUILDID): New configuration option. |
16679 | * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID] | |
16680 | (LINK_BUILDID_SPEC): New macro. | |
16681 | (init_spec): If defined, prepend it between LINK_EH_SPEC and | |
16682 | link_spec. | |
16683 | * doc/install.texi: Document --enable-linker-build-id option. | |
16684 | * configure: Rebuild. | |
16685 | * config.in: Rebuild. | |
16686 | ||
ba6adec4 AN |
16687 | 2009-04-30 Adam Nemet <anemet@caviumnetworks.com> |
16688 | ||
16689 | * config/mips/mips.h (FRAME_GROWS_DOWNWARD, | |
16690 | MIPS_GP_SAVE_AREA_SIZE): Define new macros. | |
16691 | (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use | |
16692 | MIPS_GP_SAVE_AREA_SIZE. | |
16693 | * config/mips/mips.c (struct mips_frame_info): Update comment | |
16694 | before arg_pointer_offset and hard_frame_pointer_offset. | |
16695 | (mips_compute_frame_info): Update diagram before function: to | |
16696 | correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to | |
16697 | indicate the position of frame_pointer_rtx with -fstack-protector and | |
16698 | to show args_size. Don't allocate cprestore area for leaf functions | |
16699 | if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set | |
16700 | cprestore_size. | |
16701 | (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD. | |
16702 | ||
48f5b722 MM |
16703 | 2009-04-30 Michael Matz <matz@suse.de> |
16704 | ||
ba6adec4 AN |
16705 | PR tree-optimization/39955 |
16706 | * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs. | |
48f5b722 | 16707 | |
b65d6744 DK |
16708 | 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com> |
16709 | ||
16710 | * ira.c (setup_cover_and_important_classes): Use safe macro | |
16711 | REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint | |
16712 | directly. | |
16713 | * genpreds.c (write_tm_preds_h): Output suitable definition of | |
16714 | REG_CLASS_FOR_CONSTRAINT. | |
16715 | ||
f136c8ae RAE |
16716 | 2009-04-30 Rafael Avila de Espindola <espindola@google.com> |
16717 | ||
16718 | * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value | |
16719 | instead of an int. | |
16720 | * bitmap.c (bitmap_descriptor): Likewise. | |
16721 | * ggc-common.c (loc_descriptor): Likewise. | |
16722 | * varray.c (varray_descriptor): Likewise. | |
16723 | * vec.c (vec_descriptor): Likewise. | |
16724 | ||
43fcece8 | 16725 | 2009-04-30 Eric Botcazou <ebotcazou@adacore.com> |
35debead EB |
16726 | |
16727 | * Makefile.in (dce.o): Add $(EXCEPT_H). | |
16728 | * dce.c: Include except.h and delete redundant vector definitions. | |
16729 | (deletable_insn_p): Return false for non-call insns that can throw | |
16730 | if DF is running. | |
16731 | ||
df35c271 SB |
16732 | 2009-04-30 Steven Bosscher <steven@gcc.gnu.org> |
16733 | ||
16734 | * gcse.c (ae_gen): Remove. | |
16735 | (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p | |
16736 | and make non-static function to make it available in store-motion.c. | |
16737 | Update call sites with search-and-replace. | |
16738 | (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok, | |
16739 | extract_mentioned_regs, extract_mentioned_regs_helper, | |
16740 | find_moveable_store, compute_store_table, load_kills_store, find_loads, | |
16741 | store_killed_in_insn, store_killed_after, store_killed_before, | |
16742 | build_store_vectors, insert_insn_start_basic_block, insert-store, | |
16743 | remove_reachable_equiv_notes, replace_store_insn, delete_store, | |
16744 | free_store_memory, one_store_motion_pass, gate_rtl_store_motion, | |
16745 | execute_rtl_store_motion, pass_rtl_store_motion): Move to... | |
16746 | * store-motion.c: ...new file. Also copy data structures from gcse.c | |
16747 | and clean up to remove parts not used by store motion. | |
16748 | * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype. | |
16749 | * Makefile.in (store-motion.o): New rule. Add to OBJS-common. | |
16750 | ||
f711a87a RR |
16751 | 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
16752 | ||
16753 | PR target/38571 | |
16754 | * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb | |
16755 | when optimizing for size. | |
16756 | ||
fa5ed76e HPN |
16757 | 2009-04-30 Hans-Peter Nilsson <hp@axis.com> |
16758 | ||
16759 | * gcse.c (gcse_constant_p): Fix typo in last change. | |
16760 | ||
0acbbdb0 RAE |
16761 | 2009-04-30 Rafael Avila de Espindola <espindola@google.com> |
16762 | ||
16763 | * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined. | |
16764 | ||
82f5c05d AK |
16765 | 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com> |
16766 | ||
16767 | * gcse.c (gcse_constant_p): Make sure the constant is sharable. | |
16768 | ||
6d8f135b JW |
16769 | 2009-04-29 James E. Wilson <wilson@codesourcery.com> |
16770 | ||
16771 | * config/mips/mips.c (mips_add_offset): Use gen_int_mode for | |
16772 | CONST_HIGH_PART result. | |
16773 | ||
c21ca196 AS |
16774 | 2009-04-29 Anatoly Sokolov <aesok@post.ru> |
16775 | ||
16776 | * config/avr/avr.c (initial_elimination_offset): Rename to | |
16777 | avr_initial_elimination_offset. | |
16778 | (frame_pointer_required_p): Rename to avr_frame_pointer_required_p, | |
16779 | change return type to bool. | |
16780 | (avr_can_eliminate): New function. | |
16781 | * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate. | |
16782 | (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p. | |
16783 | (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset. | |
0d50d55a | 16784 | * config/avr/avr-protos.h (initial_elimination_offset): Rename to |
c21ca196 AS |
16785 | avr_initial_elimination_offset. |
16786 | (frame_pointer_required_p): Rename to avr_frame_pointer_required_p. | |
16787 | (avr_initial_elimination_offset): Define. | |
16788 | ||
2a34bece | 16789 | 2009-04-29 Eric Botcazou <ebotcazou@adacore.com> |
aa016ff7 | 16790 | Steven Bosscher <steven@gcc.gnu.org> |
2a34bece EB |
16791 | |
16792 | PR rtl-optimization/39938 | |
16793 | * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H). | |
16794 | * cfgrtl.c: Include insn-attr.h. | |
16795 | (rest_of_pass_free_cfg): New function. | |
16796 | (pass_free_cfg): Use rest_of_pass_free_cfg as execute function. | |
16797 | * resource.c (init_resource_info): Remove call to df_analyze. | |
16798 | ||
5dc7911e RG |
16799 | 2009-04-29 Richard Guenther <rguenther@suse.de> |
16800 | ||
16801 | PR target/39943 | |
16802 | * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only | |
16803 | allow conversion to signed integers. | |
16804 | ||
1fe479fd RG |
16805 | 2009-04-29 Richard Guenther <rguenther@suse.de> |
16806 | ||
16807 | * tree-cfg.c (verify_gimple_assign_binary): Allow vector | |
16808 | shifts of floating point vectors if the shift amount is | |
16809 | a constant multiple of the element size. | |
16810 | ||
8e001680 AK |
16811 | 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com> |
16812 | Michael Matz <matz@suse.de> | |
16813 | ||
16814 | PR middle-end/39927 | |
16815 | PR bootstrap/39929 | |
16816 | * tree-outof-ssa.c (emit_partition_copy): New function. | |
16817 | (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge, | |
16818 | insert_part_to_rtx_on_edge): Perform the partition base var | |
16819 | copy using emit_partition_copy. | |
16820 | (insert_value_copy_on_edge): Convert constants to the right mode. | |
16821 | (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter. | |
16822 | (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge. | |
16823 | ||
e50e3081 BS |
16824 | 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com> |
16825 | ||
16826 | * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg, | |
16827 | scan backwards to try to find a constant to initialize it. | |
16828 | ||
4e5d521b BS |
16829 | * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last |
16830 | insn before the loop_end instruction, don't look past labels. | |
16831 | ||
7c90021d RG |
16832 | 2009-04-29 Richard Guenther <rguenther@suse.de> |
16833 | ||
16834 | PR middle-end/39937 | |
16835 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not | |
16836 | loose type conversions. | |
16837 | (forward_propagate_addr_expr): Fix tuplification bug. Remove | |
16838 | stmts only if there are no uses of its definition. | |
16839 | ||
97a988bc BS |
16840 | 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com> |
16841 | ||
16842 | * config/bfin/bfin.h (splitting_loops): Declare. | |
16843 | * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315): | |
16844 | Reorder bit definitions to be ascending. | |
16845 | (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros. | |
16846 | * config/bfin/bfin.c (splitting_loops): New variable. | |
16847 | (bfin_cpus): Add WA_LOAD_LCREGS as needed. | |
16848 | (struct loop_info): Remove members INIT and LOOP_INIT. | |
16849 | (bfin_optimize_loop): Don't set them. Reorder the code that generates | |
aa016ff7 UB |
16850 | the LSETUP sequence. Allow LC to be loaded from any register, but |
16851 | also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS. | |
97a988bc BS |
16852 | (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops |
16853 | set to 1. | |
16854 | * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead | |
16855 | of reload_completed. | |
aa016ff7 | 16856 | |
97a988bc BS |
16857 | From Jie Zhang: |
16858 | * config/bfin/bfin.md (movsi_insn): Refine constraints. | |
16859 | ||
0c463e16 RAE |
16860 | 2009-04-29 Rafael Avila de Espindola <espindola@google.com> |
16861 | ||
16862 | * Makefile.in (PLUGIN_VERSION_H): New. | |
16863 | (OBJS-common): Remove plugin-version.o. | |
16864 | (plugin.o): Depend on (PLUGIN_VERSION_H). | |
16865 | (plugin-version.o): Remove. | |
16866 | * configure: Regenerate | |
16867 | * configure.ac: Create plugin-version.h. | |
16868 | * gcc-plugin.h (plugin_gcc_version): Remove. | |
16869 | (plugin_default_version_check): Change signature. | |
16870 | * plugin-version.c: Remove. | |
16871 | * plugin.c: Include plugin-version.h. | |
16872 | (str_plugin_gcc_version_name): Remove. | |
16873 | (try_init_one_plugin): Pass gcc version to plugin_init. | |
16874 | (plugin_default_version_check): Both gcc and plugin versions are now | |
16875 | arguments. | |
16876 | ||
307e7eab | 16877 | 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com> |
f100a4a8 | 16878 | |
307e7eab BS |
16879 | * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of |
16880 | problematic last insns. Test for TYPE_CALL rather than CALL_P. | |
aa016ff7 UB |
16881 | Remove special case testing for last insn of inner loops. Don't fail |
16882 | if the loop ends with a jump, emit an extra nop instead. | |
307e7eab | 16883 | |
c5d96723 BS |
16884 | * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of |
16885 | DREGS rather than comparing directly. Remove code that tries to | |
16886 | account for latencies. | |
16887 | ||
de0b4ad5 RG |
16888 | 2009-04-29 Richard Guenther <rguenther@suse.de> |
16889 | ||
16890 | PR tree-optimization/39941 | |
16891 | * tree-ssa-pre.c (eliminate): Schedule update-ssa after | |
16892 | eliminating an indirect call. | |
16893 | ||
3a19701a RG |
16894 | 2009-04-29 Richard Guenther <rguenther@suse.de> |
16895 | ||
16896 | * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue | |
16897 | parameter. Allow invariants as base if !require_lvalue. | |
16898 | (verify_gimple_assign_single): Adjust. | |
16899 | ||
a0a31d1e BS |
16900 | 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com> |
16901 | ||
16902 | * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro. | |
16903 | (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts, | |
aa016ff7 UB |
16904 | ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3, |
16905 | ssubhi3, ssaddhi3_parts and sssubhi3_parts. | |
a0a31d1e BS |
16906 | (flag_mulhi3_parts): Produce a HImode output rather than trying to set |
16907 | a VEC_SELECT. | |
aa016ff7 UB |
16908 | * config/bfin/bfin.c (bfin_expand_builtin, |
16909 | case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly. | |
a0a31d1e | 16910 | |
795bd26a RG |
16911 | 2009-04-28 Richard Guenther <rguenther@suse.de> |
16912 | ||
16913 | * tree-vect-loop.c (get_initial_def_for_induction): Use | |
16914 | correct types for pointer increment. | |
16915 | ||
04be270f KG |
16916 | 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
16917 | ||
16918 | * toplev.c (print_version): Update GMP version string calculation. | |
16919 | ||
e1a3b85c EB |
16920 | 2009-04-28 Eric Botcazou <ebotcazou@adacore.com> |
16921 | ||
16922 | PR rtl-optimization/39938 | |
16923 | * resource.c (init_resource_info): Add call to df_analyze. | |
16924 | ||
8224166e UB |
16925 | 2009-04-28 Uros Bizjak <ubizjak@gmail.com> |
16926 | ||
16927 | * config/alpha/alpha.md (usegp): Cast the result of | |
16928 | alpha_find_lo_sum_using_gp to enum attr_usegp. | |
16929 | * config/alpha/alpha.c (override_options): Remove end-of-structure | |
16930 | marker element from cpu_table. Use array size of cpu_table to handle | |
16931 | -mcpu and -mtune options. | |
16932 | (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE. | |
16933 | ||
c5f0fe67 JM |
16934 | 2009-04-28 Joseph Myers <joseph@codesourcery.com> |
16935 | ||
16936 | * config.gcc (powerpc*-*-* | rs6000-*-*): Add | |
16937 | rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64, | |
16938 | tune_32 and tune_64. | |
16939 | * doc/install.texi (--with-cpu-32, --with-cpu-64): Document | |
16940 | support on PowerPC. | |
16941 | * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ... | |
16942 | * config/rs6000/option-defaults.h: ... here. New file. | |
16943 | (OPT_64, OPT_32): Define. | |
16944 | (MASK_64BIT): Define to 0 if not already defined. | |
16945 | (OPT_ARCH64, OPT_ARCH32): Define. | |
16946 | (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32 | |
16947 | and tune_64. | |
16948 | ||
0c48a567 RR |
16949 | 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
16950 | ||
16951 | * config/arm/arm.c (arm_override_options): Emit error on using | |
16952 | fpa with AAPCS. | |
16953 | ||
f1028b9d UB |
16954 | 2009-04-28 Uros Bizjak <ubizjak@gmail.com> |
16955 | ||
16956 | PR rtl-optimization/39914 | |
16957 | * ira-conflicts.c (ira_build_conflicts): Prohibit call used | |
16958 | registers for allocnos created from user-defined variables only | |
16959 | when not optimizing. | |
16960 | ||
e0dd989a RG |
16961 | 2009-04-28 Richard Guenther <rguenther@suse.de> |
16962 | ||
16963 | PR middle-end/39937 | |
16964 | * fold-const.c (fold_binary): Use distribute_real_division only | |
16965 | on float types. | |
16966 | ||
9a17c91d SE |
16967 | 2009-04-28 Steve Ellcey <sje@cup.hp.com> |
16968 | ||
16969 | * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and | |
16970 | add hpux-stdint.h to tm_file. | |
16971 | (hppa[12]*-*-hpux11*): Ditto. | |
16972 | (ia64*-*-hpux*): Ditto. | |
16973 | * config/hpux-stdint.h: New. | |
60839f5d | 16974 | * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set |
9a17c91d | 16975 | __STDC_EXT__ for all compiles. |
60839f5d EB |
16976 | * config/pa/pa-hpux.h: Ditto. |
16977 | * config/pa/pa-hpux10.h: Ditto. | |
16978 | * config/pa/pa-hpux11.h: Ditto. | |
9a17c91d | 16979 | |
af04e659 CM |
16980 | 2009-04-28 Catherine Moore <clm@codesourcery.com> |
16981 | ||
16982 | * debug.h (set_name): Add comment. | |
16983 | ||
04ef80ce AP |
16984 | 2009-04-28 Andrew Pinski <pinskia@gmail.com> |
16985 | ||
16986 | PR target/39929 | |
16987 | * config/darwin.c (machopic_gen_offset): Check | |
16988 | currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE. | |
16989 | * config/arm/arm.c (require_pic_register): Likewise. | |
16990 | ||
65ad77af PB |
16991 | 2009-04-28 Paolo Bonzini <bonzini@gnu.org> |
16992 | ||
8224166e UB |
16993 | * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN, |
16994 | m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES, | |
16995 | m32c_promote_prototypes): Delete. | |
65ad77af | 16996 | |
1b15a008 MM |
16997 | 2009-04-28 Michael Matz <matz@suse.de> |
16998 | ||
16999 | PR middle-end/39922 | |
17000 | * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert | |
17001 | constants. | |
17002 | ||
7569a6cc RG |
17003 | 2009-04-28 Richard Guenther <rguenther@suse.de> |
17004 | ||
f1028b9d | 17005 | * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error. |
7569a6cc | 17006 | |
ead204d9 RR |
17007 | 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
17008 | ||
17009 | * config/arm/arm-cores.def: Add support for arm1156t2f-s. | |
17010 | * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s. | |
17011 | * config/arm/arm-tune.md: Regenerate. | |
17012 | ||
f2c45f08 | 17013 | 2009-04-28 Alexander Monakov <amonakov@ispras.ru> |
60839f5d | 17014 | |
f2c45f08 AM |
17015 | * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a |
17016 | block if there are complex incoming edges. | |
17017 | (sel_merge_blocks): Remove useless assert. | |
17018 | (sel_redirect_edge_and_branch): Check that edge was redirected. | |
17019 | * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert. | |
17020 | (sel_find_rgns): Delete declaration. | |
17021 | * sel-sched.c (purge_empty_blocks): Attempt to remove first block of | |
17022 | the region when it is not a preheader. | |
17023 | ||
7a00d767 UB |
17024 | 2009-04-28 Uros Bizjak <ubizjak@gmail.com> |
17025 | ||
17026 | PR c/39323 | |
17027 | * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h | |
17028 | ||
448ee662 RG |
17029 | 2009-04-28 Richard Guenther <rguenther@suse.de> |
17030 | ||
17031 | * tree.h (SSA_NAME_VALUE): Remove. | |
17032 | (struct tree_ssa_name): Remove value_handle member. | |
17033 | * tree-vrp.c (execute_vrp): Initialize/free the value-handle | |
17034 | array for jump threading. | |
17035 | * tree-ssa-propagate.c (ssa_prop_init): Do not initialize | |
17036 | SSA_NAME_VALUEs. | |
17037 | * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs. | |
17038 | * tree-flow.h (threadedge_initialize_values): Declare. | |
17039 | (threadedge_finalize_values): Likewise. | |
17040 | * tree-ssa-threadedge.c (ssa_name_values): New global variable. | |
17041 | (SSA_NAME_VALUE): Define. | |
17042 | (threadedge_initialize_values): New function. | |
17043 | (threadedge_finalize_values): Likewise. | |
17044 | * tree-ssa-dom.c (ssa_name_values): New global variable. | |
17045 | (SSA_NAME_VALUE): Define. | |
f1028b9d | 17046 | (tree_ssa_dominator_optimize): Initialize/free the value-handle array. |
448ee662 | 17047 | |
8644a673 IR |
17048 | 2009-04-28 Ira Rosen <irar@il.ibm.com> |
17049 | ||
17050 | * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): | |
f100a4a8 | 17051 | Use REPORT_VECTORIZED_LOCATIONS instead |
8644a673 IR |
17052 | REPORT_VECTORIZED_LOOPS. |
17053 | * tree-vectorizer.c (vect_verbosity_level): Make static. | |
17054 | (vect_loop_location): Rename to vect_location. | |
17055 | (vect_set_verbosity_level): Update comment. | |
17056 | (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS | |
17057 | and vect_location. | |
17058 | (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS | |
17059 | and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS | |
17060 | instead REPORT_UNVECTORIZED_LOOPS. | |
fbdf817d UB |
17061 | * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def |
17062 | and vect_loop_def to vect_external_def and vect_internal_def. | |
8644a673 | 17063 | (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS |
f100a4a8 | 17064 | and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and |
8644a673 IR |
17065 | REPORT_UNVECTORIZED_LOCATIONS. |
17066 | (enum vect_relevant): Update comment. Rename vect_unused_in_loop | |
f100a4a8 | 17067 | and vect_used_in_loop and to vect_unused_in_scope and |
8644a673 IR |
17068 | vect_used_in_scope. |
17069 | (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope. | |
17070 | (vect_verbosity_level): Remove declaration. | |
17071 | (vect_analyze_operations): Likewise. | |
17072 | (vect_analyze_stmt): Declare. | |
17073 | * tree-vect-loop.c (vect_determine_vectorization_factor): Use | |
17074 | REPORT_UNVECTORIZED_LOCATIONS. | |
17075 | (vect_get_loop_niters): Fix indentation. | |
17076 | (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS. | |
17077 | (vect_analyze_loop_operations): New function. | |
17078 | (vect_analyze_loop): Call vect_analyze_loop_operations instead of | |
17079 | vect_analyze_operations. | |
17080 | (vect_is_simple_reduction): Use new names. | |
17081 | (vectorizable_live_operation, vect_transform_loop): Likewise. | |
fbdf817d UB |
17082 | * tree-vect-data-refs.c (vect_check_interleaving): Add a return value |
17083 | to specify whether the data references can be a part of interleaving | |
17084 | chain. | |
8644a673 IR |
17085 | (vect_analyze_data_ref_dependence): Use new names. |
17086 | (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise. | |
17087 | (vect_create_addr_base_for_vector_ref): Remove redundant code. | |
17088 | * tree-vect-patterns.c (widened_name_p): Use new names. | |
17089 | (vect_recog_dot_prod_pattern): Likewise. | |
17090 | * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names. | |
f100a4a8 | 17091 | (process_use, vect_mark_stmts_to_be_vectorized, |
8644a673 IR |
17092 | vect_model_simple_cost, vect_model_store_cost, |
17093 | vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy, | |
17094 | vectorizable_call, vectorizable_conversion, vectorizable_assignment, | |
17095 | vectorizable_operation, vectorizable_type_demotion, | |
17096 | vectorizable_type_promotion, vectorizable_store, vectorizable_load, | |
17097 | vectorizable_condition): Likewise. | |
17098 | (vect_analyze_operations): Split into vect_analyze_loop_operations | |
17099 | and ... | |
17100 | (vect_analyze_stmt): ... new function. | |
17101 | (new_stmt_vec_info): Use new names. | |
17102 | (vect_is_simple_use): Use new names and fix comment. | |
17103 | * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names. | |
17104 | (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise. | |
17105 | ||
b91322f2 UB |
17106 | 2009-04-28 Uros Bizjak <ubizjak@gmail.com> |
17107 | ||
17108 | PR target/39911 | |
17109 | * config/i386/i386.c (print_operand) ['Z']: Handle floating point | |
17110 | and integer modes for x87 operands. Do not ICE for unsupported size, | |
17111 | generate error instead. Generate error for unsupported operand types. | |
17112 | ['z']: Do not handle HImode memory operands specially. Warning | |
17113 | for floating-point operands. Fallthru to 'Z' for unsupported operand | |
17114 | types. Do not ICE for unsupported size, generate error instead. | |
17115 | (output_387_binary_op): Use %Z to output operands. | |
17116 | (output_fp_compare): Ditto. | |
17117 | (output_387_reg_move): Ditto. | |
17118 | ||
b2ed71b6 BE |
17119 | 2009-04-28 Ben Elliston <bje@au.ibm.com> |
17120 | ||
17121 | PR c++/35652 | |
17122 | Revert: | |
17123 | ||
17124 | 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org> | |
17125 | ||
17126 | * builtins.c (c_strlen): Do not warn here. | |
17127 | * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum. | |
17128 | * c-common.c (pointer_int_sum): Take an explicit location. | |
17129 | Warn about offsets out of bounds. | |
17130 | * c-common.h (pointer_int_sum): Adjust declaration. | |
17131 | ||
81f40b79 ILT |
17132 | 2009-04-27 Ian Lance Taylor <iant@google.com> |
17133 | ||
17134 | * collect2.c (is_ctor_dtor): Change type of ret field in struct | |
17135 | names to symkind. | |
17136 | * dce.c (run_fast_df_dce): Change type of old_flags to int. | |
17137 | * df-core.c (df_set_flags): Change return type to int. Change | |
17138 | type of old_flags to int. | |
17139 | (df_clear_flags): Likewise. | |
17140 | * df-scan.c (df_def_record_1): Change 0 to VOIDmode. | |
17141 | (df_get_conditional_uses): Likewise. | |
17142 | * df.h (df_set_flags, df_clear_flags): Update declarations. | |
17143 | * dwarf2out.c (struct indirect_string_node): Change type of form | |
17144 | field to enum dwarf_form. | |
17145 | (AT_string_form): Change return type to enum dwarf_form. | |
17146 | * fixed-value.c (fixed_compare): Add cast to enum type. | |
17147 | * fwprop.c (update_df): Change 0 to VOIDmode. | |
17148 | * gensupport.c: Change 0 to UNKNOWN. | |
17149 | * gimple.h (gimple_cond_code): Add cast to enum type. | |
17150 | * haifa-sched.c (reemit_notes): Add cast to enum type. | |
17151 | * hooks.c (hook_int_void_no_regs): Remove function. | |
17152 | * hooks.h (hook_int_void_no_regs): Remove declaration. | |
17153 | * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode. | |
7a00d767 | 17154 | * predict.c (combine_predictions_for_insn): Add casts to enum type. |
81f40b79 ILT |
17155 | * real.c (real_arithmetic): Add cast to enum type. |
17156 | (real_compare): Likewise. | |
17157 | * target.h (struct gcc_target): Change return type of | |
17158 | branch_target_register_class to enum reg_class. | |
17159 | * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as | |
17160 | default_branch_target_register_class. | |
7a00d767 | 17161 | * targhooks.c (default_branch_target_register_class): New function. |
81f40b79 | 17162 | * targhooks.h (default_branch_target_register_class): Declare. |
7a00d767 | 17163 | * tree-data-ref.c (print_direction_vector): Add cast to enum type. |
81f40b79 ILT |
17164 | * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove |
17165 | cast to int. | |
17166 | * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to | |
17167 | ERROR_MARK. | |
17168 | * tree-vect-slp.c (vect_build_slp_tree): Change 0 to | |
17169 | vect_uninitialized_def. Change 0 to ERROR_MARK. | |
17170 | * tree-vect-stmts.c (supportable_widening_operation): Don't | |
17171 | initialize icode1 and icode2. | |
7a00d767 | 17172 | * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def. |
81f40b79 ILT |
17173 | * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none |
17174 | and to STD_C89. | |
17175 | (cmn_err_flag_specs): Change 0 to STD_C89. | |
17176 | (cmn_err_char_table): Likewise. | |
17177 | * config/arm/arm.c (get_arm_condition_code): Change type of code | |
17178 | to enum arm_cond_code. | |
17179 | (IWMMXT_BUILTIN): Change 0 to UNKNOWN. | |
17180 | (IWMMXT_BUILTIN2): Likewise. | |
17181 | (neon_builtin_type_bits): Don't define typedef. | |
17182 | (neon_builtin_datum): Change type of bits field to int. | |
17183 | (arm_expand_neon_args): Add cast to enum type. | |
17184 | * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to | |
17185 | TLS_MODEL_NONE. | |
17186 | * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add | |
17187 | casts to enum type. | |
17188 | * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to | |
17189 | MIPS_FP_COND_f. | |
17190 | * config/mips/mips.md (jal_macro): Return enum constant. | |
17191 | (single_insn): Likewise. | |
17192 | * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to | |
17193 | CODE_FOR_nothing. | |
17194 | * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add | |
17195 | casts to enum type. | |
17196 | * config/s390/s390.c (s390_tune_flags): Change type to int. | |
17197 | (s390_arch_flags): Likewise. | |
7a00d767 | 17198 | (s390_handle_arch_option): Change flags field of struct pta to int. |
81f40b79 ILT |
17199 | * config/s390/s390.h (s390_tune_flags): Update declaration. |
17200 | (s390_arch_flags): Likewise. | |
17201 | * config/sh/sh.c (prepare_move_operands): Compare | |
17202 | tls_symbolic_operand result with enum constant. | |
17203 | (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND. | |
17204 | (sh_expand_prologue): Add cast to enum type. | |
17205 | (sh_expand_epilogue): Likewise. | |
17206 | (tls_symbolic_operand): Change return type to enum tls_model. | |
17207 | (fpscr_set_from_mem): Add cast to enum type. | |
17208 | (legitimize_pic_address): Compare tls_symbolic_operand result with | |
17209 | enum constant. | |
17210 | (sh_target_reg_class): Change return type to enum reg_class. | |
17211 | * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to | |
17212 | PROCESSOR_xxx. | |
7a00d767 UB |
17213 | * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration. |
17214 | * config/sparc/sparc.c (sparc_override_options): Add cast to enum type. | |
81f40b79 ILT |
17215 | * config/sparc/sparc.md (empty_delay_slot): Return enum constant. |
17216 | (pic, calls_alloca, calls_eh_return, leaf_function): Likewise. | |
17217 | (delayed_branch, tls_call_delay): Likewise. | |
17218 | (eligible_for_sibcall_delay): Likewise. | |
f100a4a8 | 17219 | (eligible_for_return_delay): Likewise. |
81f40b79 ILT |
17220 | * config/spu/spu.c (expand_builtin_args): Add cast to enum type. |
17221 | (spu_expand_builtin_1): Likewise. | |
17222 | ||
17223 | * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings | |
17224 | for all types of conversions. | |
17225 | (output_init_element): Issue -Wc++-compat warning if needed when | |
17226 | initializing a bitfield with enum type. | |
17227 | * c-parser.c (c_parser_expression): Set original_type to | |
9302a061 | 17228 | original_type of right hand operand of comma operator. |
81f40b79 | 17229 | |
e4ae5e77 RW |
17230 | 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
17231 | ||
17232 | * doc/c-tree.texi (Types, Functions, Expression trees): Fix | |
17233 | grammar nits. | |
7a00d767 | 17234 | * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise. |
e4ae5e77 RW |
17235 | * doc/cpp.texi (Standard Predefined Macros) |
17236 | (Implementation-defined behavior): Likewise. | |
7a00d767 | 17237 | * doc/extend.texi (Function Attributes, Type Attributes): Likewise. |
e4ae5e77 RW |
17238 | * doc/gimple.texi (GIMPLE Exception Handling) |
17239 | (@code{GIMPLE_ASSIGN}): Likewise. | |
7a00d767 | 17240 | * doc/install.texi (Prerequisites, Configuration, Specific): Likewise. |
e4ae5e77 RW |
17241 | * doc/invoke.texi (Warning Options, Optimize Options) |
17242 | (AVR Options, Darwin Options): Likewise. | |
17243 | (Optimize Options): Reformulate -fwhole-program description. | |
17244 | * doc/loop.texi (Lambda): Likewise. | |
17245 | * doc/md.texi (Output Template, Define Constraints) | |
17246 | (Standard Names, Insn Splitting): Likewise. | |
17247 | * doc/options.texi (Option properties): Likewise. | |
17248 | * doc/passes.texi (Tree-SSA passes): Likewise. | |
17249 | * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise. | |
17250 | * doc/tm.texi (Register Classes, Old Constraints, Scalar Return) | |
17251 | (File Names and DBX): Likewise. | |
17252 | * doc/trouble.texi (Incompatibilities): Likewise. | |
17253 | ||
1883802f | 17254 | 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com> |
6e37f6d4 TS |
17255 | |
17256 | * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint | |
17257 | instruction is correct. | |
17258 | ||
1883802f | 17259 | 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com> |
5345cf68 TS |
17260 | |
17261 | Allow non-constant arguments to conversion intrinsics. | |
17262 | * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare. | |
17263 | * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New. | |
17264 | * spu.c (print_operand): Handle 'v' and 'w'. | |
17265 | (exp2_immediate_p, spu_gen_exp2): Define. | |
17266 | * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0, | |
17267 | spu_convtf_1): Update parameter descriptions. | |
7a00d767 | 17268 | * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update. |
5345cf68 TS |
17269 | * constraints.md ('v', 'w'): New. |
17270 | * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU): | |
17271 | Remove. | |
17272 | (i2f, I2F): New define_mode_attr. | |
17273 | (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2, | |
17274 | floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2, | |
17275 | fixuns_truncv4sfv4si2): Update to use mode attribute. | |
17276 | (float<mode><i2f>2_mul, float<mode><i2f>2_div, | |
17277 | fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul, | |
17278 | floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New | |
17279 | patterns for combine. | |
17280 | ||
5f39ad47 SB |
17281 | 2009-04-27 Steven Bosscher <steven@gcc.gnu.org> |
17282 | ||
17283 | * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove | |
17284 | (cprop, hoist, pre, store_motion): New debug counters. | |
17285 | * tree-pass.h (pass_tracer): Move to list of gimple passes, it | |
17286 | is not an RTL pass anymore. | |
17287 | (pass_profiling): Remove extern decl for pass removed in 2005. | |
17288 | (pass_gcse, pass_jump_bypass): Remove. | |
17289 | * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts | |
17290 | to 0 for clean state. | |
17291 | * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration. | |
17292 | * cse.c (gate_handle_cse_after_global_opts, | |
17293 | rest_of_handle_cse_after_global_opts): New functions. | |
17294 | (pass_cse_after_global_opts): New pass, does local CSE. | |
17295 | * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove. | |
17296 | (TV_CPROP): New timevar. | |
17297 | * gcse.c (flag_rerun_cse_after_global_opts): New global variable. | |
17298 | (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars. | |
17299 | (gcse_main, recompute_all_luids): Remove. | |
17300 | (compute_hash_table_work): Call max_reg_num instead of reading | |
17301 | max_gcse_regno. | |
17302 | (cprop_jump): Don't set run_jump_opt_after_gcse. | |
17303 | (constprop_register): Always allow to alter jumps. | |
17304 | (cprop_insn): Likewise. | |
17305 | (do_local_cprop): Likewise. | |
17306 | (local_cprop_pass): Likewise. Return non-zero if something changed. | |
17307 | (cprop): Remove function, fold interesting bits into one_cprop_pass. | |
17308 | (find_implicit_sets): Add note about missed optimization opportunity. | |
17309 | (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the | |
17310 | pass_rtl_cprop execute function. | |
17311 | Don't bother tracking the pass number, each pass gets its own dumpfile | |
17312 | now anyway. | |
17313 | Always allow to alter jumpsand bypass jumps. | |
17314 | (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set | |
17315 | will just find no suitable set. | |
17316 | (pre_edge_insert): Fix dumping, this function is for PRE only. | |
17317 | (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the | |
17318 | pass_rtl_pre execute function. | |
17319 | (hoist_code): Return non-zero if something changed. Keep track of | |
17320 | substitutions and insertions for statistics gathering similar to PRE. | |
17321 | (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass, | |
17322 | called from the pass_rtl_hoist execute function. Show pass statistics. | |
17323 | (compute_store_table): Use max_reg_num directly instead of using the | |
17324 | formerly global max_gcse_regno. | |
17325 | (build_store_vectors): Likewise. | |
17326 | (replace_store_insn): Fix dumping. | |
17327 | (store_motion): Rename to ... | |
17328 | (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION | |
17329 | pass, called from the pass_rtl_store_motion execute function. Keep | |
17330 | track of substitutions and insertions for statistics gathering similar | |
17331 | to PRE. | |
17332 | (bypass_jumps): Remove, fold interesting bits into ... | |
17333 | (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called | |
17334 | from the pass_rtl_cprop execute function. | |
17335 | (gate_handle_jump_bypass, rest_of_handle_jump_bypass, | |
17336 | pass_jump_bypass): Remove. | |
17337 | (gate_handle_gcse, rest_of_handle_gcse): Remove. | |
17338 | (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New. | |
17339 | (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New. | |
17340 | (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New. | |
17341 | (gate_rtl_store_motion, execute_rtl_store_motion, | |
17342 | pass_rtl_store_motion): New. | |
17343 | * common.opt: Remove flag_cse_skip_blocks, adjust documentation to | |
17344 | make it clear that -fcse-skip-blocks is a no-op for backward compat. | |
17345 | * passes.c (init_optimization_passes): Remove pass_gcse and | |
17346 | pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion, | |
17347 | and cse_after_global_opts in place of pass_gcse. Schedule cprop | |
17348 | instead of pass_jump_bypass. | |
17349 | ||
c685de4a RG |
17350 | 2009-04-27 Richard Guenther <rguenther@suse.de> |
17351 | ||
17352 | PR middle-end/39928 | |
17353 | * gimplify.c (gimplify_expr): If we are required to create | |
17354 | a temporary make sure it ends up as register. | |
17355 | ||
72d41f29 L |
17356 | 2009-04-27 H.J. Lu <hongjiu.lu@intel.com> |
17357 | ||
17358 | PR target/39903 | |
17359 | * config/i386/i386.c (construct_container): Don't call | |
17360 | gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS, | |
17361 | X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS. | |
17362 | ||
e97809c6 MM |
17363 | 2009-04-27 Michael Matz <matz@suse.de> |
17364 | ||
17365 | * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap. | |
17366 | (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT. | |
17367 | * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap. | |
17368 | (dump_replaceable_exprs): Take a bitmap. | |
17369 | * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of | |
17370 | array. | |
17371 | (expand_gimple_basic_block): Likewise. | |
17372 | * tree-ssa-ter.c (struct temp_expr_table_d): Make | |
17373 | replaceable_expressions member a bitmap. | |
17374 | (free_temp_expr_table): Pass back and deal with bitmap, not gimple*. | |
17375 | (mark_replaceable): Likewise. | |
17376 | (find_replaceable_in_bb, dump_replaceable_exprs): Likewise. | |
17377 | * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap. | |
17378 | ||
211ca15c RG |
17379 | 2009-04-27 Richard Guenther <rguenther@suse.de> |
17380 | ||
17381 | * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards. | |
17382 | (verify_stmts): Dispatch to gimple/type verification code. | |
17383 | * tree-inline.c (remap_gimple_op_r): Work around C++ FE | |
17384 | issue with call argument types. | |
17385 | ||
fca5f3d1 MM |
17386 | 2009-04-27 Michael Matz <matz@suse.de> |
17387 | ||
17388 | * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove. | |
17389 | (init_update_ssa, delete_update_ssa, update_ssa): Remove references | |
17390 | to above. | |
17391 | ||
a1fa3e79 | 17392 | 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com> |
8224166e | 17393 | Eric Botcazou <ebotcazou@adacore.com> |
a1fa3e79 EB |
17394 | |
17395 | * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up | |
17396 | a label's basic block. | |
17397 | (mark_target_live_regs): Tidy and rework obsolete comments. | |
17398 | Change back DF problem to LIVE. If a label starts a basic block, | |
17399 | assume that all registers that used to be live then still are. | |
17400 | (init_resource_info): If a label starts a basic block, set its | |
17401 | BLOCK_FOR_INSN accordingly. | |
17402 | (fini_resource_info): Undo the setting of BLOCK_FOR_INSN. | |
17403 | ||
33b223c0 RG |
17404 | 2009-04-27 Richard Guenther <rguenther@suse.de> |
17405 | ||
17406 | * tree-flow-inline.h (function_ann): Remove. | |
17407 | (get_function_ann): Likewise. | |
17408 | * tree-dfa.c (create_function_ann): Remove. | |
17409 | * tree-flow.h (struct static_var_ann_d): Remove. | |
17410 | (struct function_ann_d): Likewise. | |
17411 | (union tree_ann_d): Remove fdecl member. | |
17412 | (function_ann_t): Remove. | |
17413 | (function_ann, get_function_ann, create_function_ann): Remove | |
17414 | declarations. | |
17415 | ||
e3136fa2 UB |
17416 | 2009-04-27 Uros Bizjak <ubizjak@gmail.com> |
17417 | ||
17418 | * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code. | |
17419 | ||
f87c9042 JH |
17420 | 2009-04-27 Jan Hubicka <jh@suse.cz> |
17421 | ||
17422 | * ipa-pure-const.c (struct funct_state_d): New fields | |
17423 | state_previously_known, looping_previously_known; remove | |
17424 | state_set_in_source. | |
17425 | (analyze_function): Use new fields. | |
17426 | (propagate): Avoid assumption that state_set_in_source imply | |
17427 | nonlooping. | |
17428 | ||
17429 | * tree-ssa-loop-niter.c (finite_loop_p): New function. | |
17430 | * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it. | |
17431 | * cfgloop.h (finite_loop_p): Declare. | |
17432 | ||
33abd718 MM |
17433 | 2009-04-26 Michael Matz <matz@suse.de> |
17434 | ||
e3136fa2 | 17435 | * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members. |
33abd718 | 17436 | |
ddc34084 MM |
17437 | 2009-04-26 Michael Matz <matz@suse.de> |
17438 | ||
17439 | * tree-pass.h (pass_del_ssa, pass_mark_used_blocks, | |
17440 | pass_free_cfg_annotations, pass_free_datastructures): Remove decls. | |
17441 | * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks, | |
17442 | pass_mark_used_blocks): Remove. | |
17443 | * tree-optimize.c (pass_free_datastructures, | |
17444 | execute_free_cfg_annotations, pass_free_cfg_annotations): Remove. | |
17445 | * passes.c (init_optimization_passes): Don't call | |
17446 | pass_mark_used_blocks, remove dead code. | |
17447 | ||
1fec7ed4 L |
17448 | 2009-04-26 H.J. Lu <hongjiu.lu@intel.com> |
17449 | ||
17450 | * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED. | |
17451 | * tree-ssa-live.h (register_ssa_partition): Likewise. | |
17452 | ||
4e3825db MM |
17453 | 2009-04-26 Michael Matz <matz@suse.de> |
17454 | ||
17455 | Expand from SSA. | |
17456 | * builtins.c (fold_builtin_next_arg): Handle SSA names. | |
17457 | * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly. | |
17458 | * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful | |
f100a4a8 | 17459 | SSA names. |
4e3825db MM |
17460 | (compare_pairs): Swap cost comparison. |
17461 | (coalesce_ssa_name): Don't use change_partition_var. | |
17462 | * tree-nrv.c (struct nrv_data): Add modified member. | |
17463 | (finalize_nrv_r): Set it. | |
17464 | (tree_nrv): Use it to update statements. | |
17465 | (pass_nrv): Require PROP_ssa. | |
17466 | * tree-mudflap.c (mf_decl_cache_locals, | |
17467 | mf_build_check_statement_for): Use make_rename_temp. | |
17468 | (pass_mudflap_2): Require PROP_ssa, run ssa update at finish. | |
17469 | * alias.c (find_base_decl): Handle SSA names. | |
17470 | * emit-rtl (set_reg_attrs_for_parm): Make non-static. | |
17471 | (component_ref_for_mem_expr): Don't leak SSA names into RTL. | |
17472 | * rtl.h (set_reg_attrs_for_parm): Declare. | |
17473 | * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename | |
17474 | to "optimized", remove unused locals at finish. | |
17475 | (execute_free_datastructures): Make global, call | |
17476 | delete_tree_cfg_annotations. | |
17477 | (execute_free_cfg_annotations): Don't call | |
17478 | delete_tree_cfg_annotations. | |
17479 | ||
17480 | * ssaexpand.h: New file. | |
17481 | * expr.c (toplevel): Include ssaexpand.h. | |
e3136fa2 | 17482 | (expand_assignment): Handle SSA names the same as register variables. |
4e3825db MM |
17483 | (expand_expr_real_1): Expand SSA names. |
17484 | * cfgexpand.c (toplevel): Include ssaexpand.h. | |
17485 | (SA): New global variable. | |
17486 | (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates. | |
17487 | (SSAVAR): New macro. | |
17488 | (set_rtl): New helper function. | |
17489 | (add_stack_var): Deal with SSA names, use set_rtl. | |
17490 | (expand_one_stack_var_at): Likewise. | |
17491 | (expand_one_stack_var): Deal with SSA names. | |
17492 | (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker | |
17493 | before unique numbers. | |
17494 | (expand_stack_vars): Use set_rtl. | |
17495 | (expand_one_var): Accept SSA names, add asserts for them, feed them | |
17496 | to above subroutines. | |
17497 | (expand_used_vars): Expand all partitions (without default defs), | |
17498 | then only the local decls (ignoring those expanded already). | |
17499 | (expand_gimple_cond): Remove edges when jumpif() expands an | |
17500 | unconditional jump. | |
17501 | (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here, | |
17502 | or remove abnormal edges. Ignore insns setting the LHS of a TERed | |
17503 | SSA name. | |
17504 | (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize | |
17505 | members of SA; deal with PARM_DECL partitions here; expand | |
17506 | all PHI nodes, free tree datastructures and SA. Commit instructions | |
17507 | on edges, clear EDGE_EXECUTABLE and remove abnormal edges here. | |
17508 | (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow | |
17509 | info and statements at start, collect garbage at finish. | |
17510 | * tree-ssa-live.h (struct _var_map): Remove partition_to_var member. | |
17511 | (VAR_ANN_PARTITION) Remove. | |
17512 | (change_partition_var): Don't declare. | |
17513 | (partition_to_var): Always return SSA names. | |
17514 | (var_to_partition): Only accept SSA names. | |
17515 | (register_ssa_partition): Only check argument. | |
17516 | * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var | |
17517 | member. | |
17518 | (delete_var_map): Don't free it. | |
17519 | (var_union): Only accept SSA names, simplify. | |
17520 | (partition_view_init): Mark only useful SSA names as used. | |
17521 | (partition_view_fini): Only deal with SSA names. | |
17522 | (change_partition_var): Remove. | |
17523 | (dump_var_map): Use ssa_name instead of partition_to_var member. | |
17524 | * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL | |
17525 | basic blocks. | |
17526 | * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h. | |
17527 | (struct _elim_graph): New member const_dests; nodes member vector of | |
17528 | ints. | |
17529 | (set_location_for_edge): New static helper. | |
17530 | (create_temp): Remove. | |
17531 | (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge, | |
e3136fa2 | 17532 | insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions. |
4e3825db MM |
17533 | (new_elim_graph): Allocate const_dests member. |
17534 | (clean_elim_graph): Truncate const_dests member. | |
17535 | (delete_elim_graph): Free const_dests member. | |
17536 | (elim_graph_size): Adapt to new type of nodes member. | |
17537 | (elim_graph_add_node): Likewise. | |
17538 | (eliminate_name): Likewise. | |
17539 | (eliminate_build): Don't take basic block argument, deal only with | |
17540 | partition numbers, not variables. | |
17541 | (get_temp_reg): New static helper. | |
17542 | (elim_create): Use it, deal with RTL temporaries instead of trees. | |
17543 | (eliminate_phi): Adjust all calls to new signature. | |
17544 | (assign_vars, replace_use_variable, replace_def_variable): Remove. | |
17545 | (rewrite_trees): Only do checking. | |
17546 | (edge_leader, stmt_list, leader_has_match, leader_match): Remove. | |
17547 | (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p, | |
17548 | init_analyze_edges_for_bb, fini_analyze_edges_for_bb, | |
17549 | contains_tree_r, MAX_STMTS_IN_LATCH, | |
17550 | process_single_block_loop_latch, analyze_edges_for_bb, | |
17551 | perform_edge_inserts): Remove. | |
17552 | (expand_phi_nodes): New global function. | |
17553 | (remove_ssa_form): Take ssaexpand parameter. Don't call removed | |
17554 | functions, initialize new parameter, remember partitions having a | |
17555 | default def. | |
17556 | (finish_out_of_ssa): New global function. | |
17557 | (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form, | |
17558 | don't reset in_ssa_p here, don't disable TER when mudflap. | |
17559 | (pass_del_ssa): Remove. | |
17560 | * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and | |
17561 | partition members. | |
17562 | (execute_free_datastructures): Declare. | |
17563 | * Makefile.in (SSAEXPAND_H): New variable. | |
17564 | (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H. | |
17565 | * basic-block.h (commit_one_edge_insertion): Declare. | |
17566 | * passes.c (init_optimization_passes): Move pass_nrv and | |
17567 | pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove | |
17568 | pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations. | |
17569 | * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare. | |
17570 | (redirect_branch_edge): Deal with super block when expanding, split | |
17571 | out jump patching itself into ... | |
17572 | (patch_jump_insn): ... here, new static helper. | |
17573 | ||
17c665a9 MM |
17574 | 2009-04-26 Michael Matz <matz@suse.de> |
17575 | ||
17576 | * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate | |
17577 | beyond num_ssa_names. | |
17578 | * tree-ssa-ter.c (free_temp_expr_table): Likewise. | |
17579 | * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise. | |
17580 | ||
92061771 JJ |
17581 | 2009-04-26 Jakub Jelinek <jakub@redhat.com> |
17582 | ||
ce372372 JJ |
17583 | PR inline-asm/39543 |
17584 | * fwprop.c (forward_propagate_asm): New function. | |
17585 | (forward_propagate_and_simplify): Propagate also into __asm, if it | |
17586 | doesn't increase the number of referenced registers. | |
17587 | ||
92061771 JJ |
17588 | PR c/39889 |
17589 | * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR. | |
17590 | ||
17591 | 2009-04-26 Jakub Jelinek <jakub@redhat.com> | |
77f2a970 JJ |
17592 | |
17593 | * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call | |
17594 | note_nonlocal_vla_type for nonlocal VLAs. | |
17595 | (note_nonlocal_vla_type, note_nonlocal_block_vlas, | |
17596 | contains_remapped_vars, remap_vla_decls): New functions. | |
17597 | (convert_nonlocal_reference_stmt): If not optimizing, call | |
17598 | note_nonlocal_block_vlas on GIMPLE_BIND block vars. | |
17599 | (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified | |
17600 | if it wasn't found in var_map. | |
17601 | (finalize_nesting_tree_1): Call remap_vla_decls. If outermost | |
17602 | GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain | |
17603 | to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling | |
17604 | declare_vars. | |
17605 | * gimplify.c (nonlocal_vlas): New variable. | |
17606 | (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local | |
17607 | referenced VLAs. | |
17608 | (gimplify_body): Create and destroy nonlocal_vlas. | |
a9548ddf | 17609 | |
4561e242 JJ |
17610 | * dwarf2out.c (loc_descr_plus_const): New function. |
17611 | (build_cfa_aligned_loc, tls_mem_loc_descriptor, | |
17612 | mem_loc_descriptor, loc_descriptor_from_tree_1, | |
17613 | descr_info_loc, gen_variable_die): Use it. | |
17614 | ||
a9548ddf JJ |
17615 | * tree.h (DECL_BY_REFERENCE): Note that it is also valid for |
17616 | !TREE_STATIC VAR_DECLs. | |
17617 | * dwarf2out.c (loc_by_reference, gen_decl_die): Handle | |
17618 | DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs. | |
17619 | (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if | |
17620 | DECL_BY_REFERENCE is valid. | |
17621 | * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE | |
17622 | for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs. | |
17623 | * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl): | |
17624 | Copy DECL_BY_REFERENCE. | |
17625 | (struct nesting_copy_body_data): New type. | |
17626 | (nesting_copy_decl): New function. | |
17627 | (finalize_nesting_tree_1): Remap types of debug_var_chain variables, | |
17628 | if they have variable length. | |
17629 | ||
10555d08 MM |
17630 | 2009-04-26 Michael Matz <matz@suse.de> |
17631 | ||
17632 | * tree-sra.c (sra_build_assignment): Don't use into_ssa mode, | |
17633 | mark new temporaries for renaming. | |
17634 | ||
e11187cc JM |
17635 | 2009-04-26 Joseph Myers <joseph@codesourcery.com> |
17636 | ||
17637 | PR c/39581 | |
17638 | * c-decl.c (global_bindings_p): Return negative value. | |
17639 | (c_variable_size): New. Based on variable_size from | |
17640 | stor-layout.c. | |
17641 | (grokdeclarator): Call c_variable_size not variable_size. | |
17642 | ||
f6a51d31 UB |
17643 | 2009-04-26 Uros Bizjak <ubizjak@gmail.com> |
17644 | ||
17645 | * config/i386/i386.c (print_operand) ['z']: Fix typo. | |
17646 | ||
4b97723d KT |
17647 | 2009-04-26 Kai Tietz <kai.tietz@onevision.com> |
17648 | ||
17649 | * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): | |
17650 | Redefine it to just use mingw/include. | |
17651 | (ASM_SPEC): Rules for -m32 and -m64. | |
17652 | (LINK_SPEC): Use Likewise. | |
17653 | (SPEC_32): New define. | |
17654 | (SPEC_64): Likewise. | |
17655 | (SUB_LINK_SPEC): Likewise. | |
17656 | (MULTILIB_DEFAULTS): New define. | |
17657 | * config/i386/t-mingw-w64 (MULTILIB_OPTIONS): | |
17658 | Add multilib options. | |
17659 | (MULTILIB_DIRNAMES): Likewise. | |
17660 | (MULTILIB_OSDIRNAMES): Likewise. | |
17661 | (LIBGCC): Likewise. | |
17662 | (INSTALL_LIBGCC): Likewise. | |
17663 | ||
991d6621 JM |
17664 | 2009-04-26 Joseph Myers <joseph@codesourcery.com> |
17665 | ||
17666 | PR c/39556 | |
17667 | * c-tree.h (enum c_inline_static_type): New. | |
17668 | (record_inline_static): Declare. | |
17669 | * c-decl.c (struct c_inline_static, c_inline_statics, | |
17670 | record_inline_static, check_inline_statics): New. | |
17671 | (pop_file_scope): Call check_inline_statics. | |
17672 | (start_decl): Call record_inline_static instead of pedwarning | |
17673 | directly for static in inline function. | |
17674 | * c-typeck.c (build_external_ref): Call record_inline_static | |
17675 | instead of pedwarning directly for static referenced in inline | |
17676 | function. | |
17677 | ||
4a81774c SB |
17678 | 2009-04-26 Steven Bosscher <steven@gcc.gnu.org> |
17679 | ||
17680 | * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is | |
17681 | not new but only being rescanned. | |
17682 | * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set, | |
17683 | reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block, | |
17684 | alloc_reg_set_mem, free_reg_set_mem, record_one_set, | |
17685 | record_set_info, compute_set, grealloc): Remove. | |
17686 | (recompute_all_luids): New function. | |
17687 | (gcse_main): Don't compute sets, and don't do related memory | |
17688 | allocations/free-ing. If something changed before the end of the | |
17689 | pass, update LUIDs using recompute_all_luids. | |
17690 | (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory. | |
17691 | (free_gcse_mem): Don't free it either. | |
17692 | (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info): | |
17693 | Use the df insn LUIDs. | |
17694 | (load_killed_in_block): Likewise. | |
17695 | (compute_hash_table_work): Don't compute reg_set_in_block. | |
17696 | (compute_transp): Use DF_REG_DEF_CHAINs. | |
17697 | (local_cprop_pass): Don't use compute_sets and related functions. | |
17698 | (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass): | |
17699 | Use get_max_uid() instead of max_cuid. | |
17700 | (insert_insn_end_basic_block, pre_insert_copy_insn, | |
17701 | update_ld_motion_stores): Don't try to | |
17702 | keep reg_set tables up to date. | |
17703 | (pre_insert_copies): Use df insn LUIDs. | |
17704 | (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P. | |
17705 | (reg_set_info): Don't use extra bitmap argument. | |
17706 | (compute_store_table): Don't compute reg_set_in_block. Use DF scan | |
17707 | information to compute regs_set_in_block. | |
17708 | (free_store_memory, store_motion): Don't nullify reg_set_in_block. | |
17709 | (bypass_jumps): Don't use compute_sets and friends. | |
17710 | ||
e8f99a9d RW |
17711 | 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
17712 | ||
17713 | PR testsuite/39710 | |
17714 | * opts.c (undocumented_msg): Do not leave blank even with | |
17715 | ENABLE_CHECKING. | |
17716 | ||
6895bac8 JM |
17717 | 2009-04-25 Joseph Myers <joseph@codesourcery.com> |
17718 | ||
17719 | * c-decl.c (build_enumerator): Allow values folding to integer | |
17720 | constants but not integer constant expressions with a pedwarn if | |
17721 | pedantic. | |
17722 | ||
24070fcb JM |
17723 | 2009-04-25 Joseph Myers <joseph@codesourcery.com> |
17724 | ||
17725 | PR c/39582 | |
17726 | * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR | |
17727 | with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length | |
17728 | type is an integer constant. | |
17729 | ||
d6d89aa1 UB |
17730 | 2009-04-25 Uros Bizjak <ubizjak@gmail.com> |
17731 | ||
17732 | PR target/39897 | |
17733 | * config/i386/i386.c (print_operand) ['z']: Revert handling of | |
17734 | HImode operands. | |
17735 | ||
92f6fd0b JM |
17736 | 2009-04-25 Joseph Myers <joseph@codesourcery.com> |
17737 | ||
17738 | PR c/39564 | |
17739 | * c-decl.c (grokdeclarator): Diagnose declarations of functions | |
17740 | with variably modified return type and no storage class | |
17741 | specifiers, except for the case of nested functions. Distinguish | |
17742 | extern declarations of functions with variably modified return | |
17743 | types from those of objects with variably modified types. | |
17744 | ||
a3710436 JH |
17745 | 2009-04-25 Jan Hubicka <jh@suse.cz> |
17746 | ||
17747 | * tree.c (list_equal_p): New function. | |
17748 | * tree.h (list_equal_p): Declare. | |
17749 | * coretypes.h (edge_def, edge, const_edge, basic_block_def | |
17750 | basic_block_def, basic_block, const_basic_block): New. | |
17751 | * tree-eh.c (make_eh_edge): EH edges are not abnormal. | |
17752 | (redirect_eh_edge): New function. | |
17753 | (make_eh_edge_update_phi): EH edges are not abnormal. | |
17754 | * except.c: Include tree-flow.h. | |
17755 | (list_match): New function. | |
17756 | (eh_region_replaceable_by_p): New function. | |
17757 | (replace_region): New function. | |
17758 | (hash_type_list): New function. | |
17759 | (hash_eh_region): New function. | |
17760 | (eh_regions_equal_p): New function. | |
17761 | (merge_peers): New function. | |
17762 | (remove_unreachable_regions): Verify EH tree when checking; | |
17763 | merge peers. | |
17764 | (copy_eh_region_1): New function. | |
17765 | (copy_eh_region): New function. | |
17766 | (push_reachable_handler): New function. | |
17767 | (build_post_landing_pads, dw2_build_landing_pads): Be ready for | |
17768 | regions without label but with live RESX. | |
17769 | * except.h (redirect_eh_edge_to_label): New. | |
17770 | * tree-flow.h (redirect_eh_edge): New. | |
17771 | * coretypes.h (edge_def, edge, const_edge, basic_block_def | |
17772 | basic_block_def, basic_block, const_basic_block): Remove. | |
17773 | * Makefile.in (except.o): Add dependency on tree-flow.h | |
17774 | * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges. | |
17775 | * basic-block.h (edge, const_edge, basic_block, const_basic_block): | |
17776 | Remove. | |
17777 | ||
3764d512 EB |
17778 | 2009-04-25 Eric Botcazou <ebotcazou@adacore.com> |
17779 | ||
17780 | PR bootstrap/39645 | |
17781 | * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE | |
17782 | on the destination of memcpy. | |
17783 | ||
1c62e8f2 PB |
17784 | 2009-04-25 Paolo Bonzini <bonzini@gnu.org> |
17785 | ||
17786 | * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P, | |
17787 | REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P, | |
17788 | REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference. | |
17789 | ||
496a4ef5 JH |
17790 | 2009-04-25 Jan Hubicka <jh@suse.cz> |
17791 | ||
17792 | * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels. | |
17793 | (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region | |
17794 | to be reached by different label than left. | |
17795 | (update_eh_edges): Update comment; remove edge_to_remove if possible | |
17796 | and return true if suceeded. | |
17797 | (cleanup_empty_eh): Accept sharing map; handle shared regions. | |
17798 | (cleanup_eh): Compute sharing map. | |
17799 | * except.c (remove_eh_handler_and_replace): Add argument if we should | |
17800 | update regions. | |
17801 | (remove_unreachable_regions): Update for label sharing. | |
17802 | (label_to_region_map): Likewise. | |
17803 | (get_next_region_sharing_label): New function. | |
17804 | (remove_eh_handler_and_replace): Add update_catch_try parameter; update | |
17805 | prev_try pointers. | |
17806 | (remove_eh_handler): Update. | |
17807 | (remove_eh_region_and_replace_by_outer_of): New function. | |
17808 | * except.h (struct eh_region): Add next_region_sharing_label. | |
17809 | (remove_eh_region_and_replace_by_outer_of, | |
17810 | get_next_region_sharing_label): Declare. | |
17811 | * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify. | |
17812 | ||
17813 | 2009-04-25 Jan Hubicka <jh@suse.cz> | |
17814 | ||
17815 | * tree-cfg.c (split_critical_edges): Split also edges where we can't | |
17816 | insert code even if they are not critical. | |
17817 | ||
17818 | 2009-04-25 Jan Hubicka <jh@suse.cz> | |
17819 | ||
17820 | * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable. | |
17821 | (gimple_can_remove_branch_p): EH edges won't remove branch by | |
17822 | redirection. | |
17823 | * tree-inline.c (update_ssa_across_abnormal_edges): Do handle | |
17824 | updating of non-abnormal EH edges. | |
17825 | * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable. | |
17826 | (gimple_can_remove_branch_p): EH edges are unremovable by redirection. | |
17827 | (split_critical_edges): Split also edges where emitting code on them | |
17828 | will lead to splitting later. | |
17829 | ||
a3a5e3d1 UB |
17830 | 2009-04-25 Uros Bizjak <ubizjak@gmail.com> |
17831 | H.J. Lu <hongjiu.lu@intel.com> | |
17832 | ||
17833 | PR target/39590 | |
17834 | * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether | |
17835 | the configured assembler supports fildq and fistpq mnemonics. | |
17836 | (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS. | |
17837 | * configure: Regenerated. | |
17838 | * config.in: Ditto. | |
17839 | ||
17840 | * config/i386/i386.c (print_operand): Handle 'Z'. | |
17841 | ['z']: Remove handling of special fild/fist suffixes. | |
17842 | (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn. | |
17843 | * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output | |
17844 | suffix of fild insn. | |
17845 | (*floatsi<mode>2_vector_mixed): Ditto. | |
17846 | (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto. | |
17847 | (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto. | |
17848 | (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto. | |
17849 | (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto. | |
17850 | * config/i386/gas.h (GAS_MNEMONICS): Remove. | |
17851 | ||
23750d7f | 17852 | 2009-04-25 Ben Elliston <bje@au.ibm.com> |
f100a4a8 | 17853 | |
23750d7f BE |
17854 | * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as |
17855 | the source of a set operation. | |
17856 | ||
e6ff3083 AS |
17857 | 2009-04-25 Anatoly Sokolov <aesok@post.ru> |
17858 | ||
17859 | * target.h (struct gcc_target): Add case_values_threshold field. | |
17860 | * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New. | |
17861 | (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD. | |
17862 | * targhooks.c (default_case_values_threshold): New function. | |
17863 | * targhooks.h (default_case_values_threshold): Declare function. | |
17864 | * stmt.c (expand_case): Use case_values_threshold target hook. | |
17865 | * expr.h (case_values_threshold): Remove declartation. | |
17866 | * expr.c (case_values_threshold): Remove function. | |
17867 | * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation. | |
17868 | ||
17869 | * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro. | |
17870 | * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro. | |
17871 | (avr_case_values_threshold): Declare as static. | |
17872 | * config/avr/avr-protos.h (avr_case_values_threshold): Remove. | |
17873 | ||
17874 | * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro. | |
17875 | * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro. | |
17876 | (mn10300_case_values_threshold): New function. | |
17877 | ||
569c72fc L |
17878 | 2009-04-24 H.J. Lu <hongjiu.lu@intel.com> |
17879 | ||
17880 | * ira.c (setup_cover_and_important_classes): Add enum cast. | |
17881 | ||
ff3cb468 VM |
17882 | 2009-04-24 Vladimir Makarov <vmakarov@redhat.com> |
17883 | ||
17884 | * genpreds.c (write_enum_constraint_num): Output definition of | |
17885 | CONSTRAINT_NUM_DEFINED_P macro. | |
17886 | * ira.c (setup_cover_and_important_classes): Use | |
17887 | CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef. | |
f100a4a8 | 17888 | |
4f7be849 DD |
17889 | 2009-04-24 DJ Delorie <dj@redhat.com> |
17890 | ||
17891 | * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test | |
17892 | __SH2A_SINGLE_ONLY__ also. | |
17893 | ||
735b94a7 SE |
17894 | 2009-04-24 Steve Ellcey <sje@cup.hp.com> |
17895 | ||
17896 | * config/ia64/ia64.md (movfs_internal): Allow flt constants. | |
17897 | (movdf_internal): Ditto. | |
17898 | * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow | |
17899 | SFmode and DFmode constants. | |
17900 | (ia64_print_operand): Add 'G' format for printing | |
17901 | floating point constants. | |
17902 | ||
77a30264 RG |
17903 | 2009-04-24 Richard Guenther <rguenther@suse.de> |
17904 | ||
17905 | * tree-vrp.c (extract_range_from_binary_expr): Handle overflow | |
17906 | from unsigned additions. | |
17907 | ||
2b6da65c JM |
17908 | 2009-04-24 Joseph Myers <joseph@codesourcery.com> |
17909 | ||
17910 | * c-typeck.c (set_init_index): Allow array designators that are | |
17911 | not integer constant expressions with a pedwarn if pedantic. | |
17912 | ||
f5a17c43 BS |
17913 | 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com> |
17914 | ||
17915 | * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is | |
17916 | zero if no overlap in nonzero bits between the operands. | |
17917 | ||
32e8bb8e ILT |
17918 | 2009-04-24 Ian Lance Taylor <iant@google.com> |
17919 | ||
17920 | * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice. | |
17921 | (record_dead_and_set_regs): Likewise. | |
17922 | * df.h (struct df_mw_hardreg): Change flags field to int. | |
17923 | (struct df_base_ref): Likewise. | |
17924 | (struct df): Change changeable_flags field to int. | |
17925 | * df-scan.c (df_defs_record): Change clobber_flags to int. | |
17926 | * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum | |
17927 | constants rather than #define macros. | |
17928 | (enum dwarf_attribute, enum dwarf_location_atom): Likewise. | |
17929 | (enum dwarf_type, enum dwarf_endianity_encoding): Likewise. | |
17930 | (enum dwarf_calling_convention): Likewise. | |
17931 | (enum dwarf_line_number_x_ops): Likewise. | |
17932 | (enum dwarf_call_frame_info): Likewise. | |
17933 | (enum dwarf_source_language): Likewise. | |
17934 | * dwarf2out.c (int_loc_descriptor): Add cast to enum type. | |
17935 | (add_calling_convention_attribute): Likewise. | |
a3a5e3d1 UB |
17936 | * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type. |
17937 | (combine_comparisons): Change compcode to int. Add cast to enum type. | |
32e8bb8e ILT |
17938 | * genrecog.c (maybe_both_true_2): Change c to int. |
17939 | (write_switch): Likewise. Add cast to enum type. | |
17940 | * gimplify.c (gimplify_omp_for): Handle return values from | |
17941 | gimplify_expr using MIN rather than bitwise or. | |
17942 | (gimplify_expr): Add cast to enum type. | |
17943 | * ipa-prop.c (update_jump_functions_after_inlining): Change | |
17944 | IPA_BOTTOM to IPA_JF_UNKNOWN. | |
a3a5e3d1 UB |
17945 | * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int. |
17946 | Add casts to enum type. | |
32e8bb8e ILT |
17947 | (setup_cover_and_important_classes): Change cl to int. Add casts |
17948 | to enum type. | |
17949 | (setup_class_translate): Change cl and mode to int. | |
17950 | (ira_init_once): Change mode to int. | |
17951 | (free_register_move_costs): Likewise. | |
17952 | (setup_prohibited_mode_move_regs): Add casts to enum type. | |
17953 | * langhooks.c (add_builtin_function_common): Rework assertion that | |
17954 | value fits bitfield. | |
17955 | * mcf.c (add_fixup_edge): Change type parameter to edge_type. | |
17956 | * omega.c (omega_do_elimination): Avoid math on enum types. | |
17957 | * optabs.c (expand_vec_shift_expr): Remove casts to int. | |
17958 | * opts.c (set_debug_level): Change 2 to enum constant. Use new | |
17959 | int local to handle integral_argment value. | |
17960 | * regmove.c (try_auto_increment): Change PUT_MODE to | |
17961 | PUT_REG_NOTE_KIND. | |
17962 | * reload.c (push_secondary_reload): Add casts to enum type. | |
17963 | (secondary_reload_class, find_valid_class): Likewise. | |
17964 | * reload1.c (emit_input_reload_insns): Likewise. | |
17965 | * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise. | |
17966 | * sel-sched.c (init_hard_regs_data): Change cur_mode to int. | |
17967 | * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum | |
17968 | constant. | |
17969 | * tree.c (build_common_builtin_nodes): Add casts to enum type. | |
17970 | * tree-complex.c (complex_lattice_t): Typedef to int rather than | |
17971 | enum type. | |
17972 | (expand_complex_libcall): Add casts to enum type. | |
17973 | * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant. | |
17974 | * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code | |
17975 | with ERROR_MARK, not NUM_TREE_CODES. | |
17976 | (vect_create_epilog_for_reduction): Likewise. | |
17977 | (vectorizable_reduction): Don't initialize epiloc_reduc_code. | |
a3a5e3d1 | 17978 | When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES. |
32e8bb8e ILT |
17979 | * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to |
17980 | enum machine_mode. | |
17981 | * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to | |
17982 | vect_unused_in_loop. Change 0 to loop_vect. | |
a3a5e3d1 | 17983 | * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type. |
32e8bb8e ILT |
17984 | * var-tracking.c (get_init_value): Change return type to enum |
17985 | var_init_status. | |
17986 | * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T. | |
17987 | * config/arm/arm.c (fp_model_for_fpu): Change to array to enum | |
17988 | arm_fp_model. | |
17989 | (arm_override_options): Add casts to enum type. | |
17990 | (arm_emit_tls_decoration): Likewise. | |
17991 | * config/i386/i386.c (ix86_function_specific_restore): Add casts | |
17992 | to enum type. | |
17993 | * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise. | |
17994 | * config/ia64/ia64.c (ia64_expand_compare): Change magic to int. | |
17995 | * config/rs6000/rs6000.c (rs6000_override_options): Add casts to | |
17996 | enum type. | |
17997 | * config/s390/s390.c (code_for_builtin_64): Change to array of | |
17998 | enum insn_code. | |
17999 | (code_for_builtin_31): Likewise. | |
18000 | (s390_expand_builtin): Change code_for_builtin to enum insn_code | |
18001 | const *. | |
18002 | * config/sparc/sparc.c (sparc_override_options): Change value | |
18003 | field in struct code_model to enum cmodel. In initializer change | |
18004 | 0 to NULL and add cast to enum type. | |
18005 | ||
18006 | * c-typeck.c (build_modify_expr): Add lhs_origtype parameter. | |
18007 | Change all callers. Issue a -Wc++-compat warning using | |
18008 | lhs_origtype if necessary. | |
18009 | (convert_for_assignment): Issue -Wc++-compat warnings about | |
18010 | invalid conversions to enum type on assignment. | |
18011 | * c-common.h (build_modify_expr): Update declaration. | |
18012 | ||
ac4fc08a NC |
18013 | 2009-04-24 Nick Clifton <nickc@redhat.com> |
18014 | ||
18015 | * config/iq2000/iq2000.c (function_arg): Handle TImode values. | |
18016 | (function_arg_advance): Likewise. | |
18017 | * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the | |
18018 | 5th alternative. | |
18019 | ||
f22e891a AK |
18020 | 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com> |
18021 | ||
18022 | * config/s390/constraints.md ('I', 'J'): Fix condition. | |
18023 | ||
ad58aabe DN |
18024 | 2009-04-24 Diego Novillo <dnovillo@google.com> |
18025 | ||
18026 | * gengtype-parse.c (parse_error): Add newline after message. | |
18027 | ||
879a4a01 L |
18028 | 2009-04-24 H.J. Lu <hongjiu.lu@intel.com> |
18029 | ||
18030 | * config/i386/sse.md (avxmodesuffixs): Removed. | |
18031 | (*avx_pinsr<avxmodesuffixs>): Renamed to ... | |
18032 | (*avx_pinsr<ssevecsize>): This. | |
18033 | ||
f63426af BS |
18034 | 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com> |
18035 | ||
18036 | * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes; | |
18037 | follow chains of regs with a single definition, and allow expressions | |
18038 | that are function_invariant_p. | |
ce72fe6c | 18039 | (simple_rhs_p): Allow expressions that are function_invariant_p. |
f63426af | 18040 | |
30349c74 PB |
18041 | 2009-04-24 Paolo Bonzini <bonzini@gnu.org> |
18042 | ||
18043 | PR middle-end/39867 | |
18044 | * fold-const.c (fold_cond_expr_with_comparison): When folding | |
18045 | > and >= to MAX, make sure the MAX uses the same type as the | |
18046 | comparison's operands. | |
18047 | ||
8d8256c1 NC |
18048 | 2009-04-24 Nick Clifton <nickc@redhat.com> |
18049 | ||
18050 | * config/frv/frv.c (frv_frame_access): Do not use reg+reg | |
18051 | addressing for DImode accesses. | |
18052 | (frv_print_operand_address): Handle PLUS case. | |
a3a5e3d1 | 18053 | * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed. |
8d8256c1 | 18054 | |
6216f94e JJ |
18055 | 2009-04-24 Jakub Jelinek <jakub@redhat.com> |
18056 | ||
18057 | PR rtl-optimization/39794 | |
18058 | * alias.c (canon_true_dependence): Add x_addr argument. | |
18059 | * rtl.h (canon_true_dependence): Adjust prototype. | |
18060 | * cse.c (check_dependence): Adjust canon_true_dependence callers. | |
18061 | * cselib.c (cselib_invalidate_mem): Likewise. | |
18062 | * gcse.c (compute_transp): Likewise. | |
18063 | * dse.c (scan_reads_nospill): Likewise. | |
18064 | (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame | |
18065 | addresses pass base->val_rtx as mem_addr, for const-or-frame addresses | |
18066 | canon_base_addr of the group, plus optional offset. | |
18067 | (struct group_info): Rename canon_base_mem to | |
18068 | canon_base_addr. | |
18069 | (get_group_info): Set canon_base_addr to canon_rtx of base, not | |
18070 | canon_rtx of base_mem. | |
18071 | ||
6de7a512 PB |
18072 | 2009-04-23 Paolo Bonzini <bonzini@gnu.org> |
18073 | ||
18074 | * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue): | |
18075 | Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS. | |
18076 | ||
4a3a2376 UW |
18077 | 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
18078 | ||
18079 | * config/spu/spu-builtins.h: Delete file. | |
18080 | ||
18081 | * config/spu/spu.h (enum spu_builtin_type): Move here from | |
18082 | spu-builtins.h. | |
18083 | (struct spu_builtin_description): Likewise. Add GTY marker. | |
18084 | Do not use enum spu_function_code or enum insn_code. | |
18085 | (spu_builtins): Add extern declaration. | |
18086 | ||
18087 | * config/spu/spu.c: Do not include "spu-builtins.h". | |
18088 | (enum spu_function_code, enum spu_builtin_type_index, | |
18089 | V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node, | |
18090 | V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node, | |
18091 | unsigned_V8HI_type_node, unsigned_V4SI_type_node, | |
18092 | unsigned_V2DI_type_node): Move here from spu-builtins.h. | |
18093 | (spu_builtin_types): Make static. Add GTY marker. | |
18094 | (spu_builtins): Add extern declaration with GTY marker. | |
18095 | Include "gt-spu.h". | |
18096 | ||
18097 | * config/spu/spu-c.c: Do not include "spu-builtins.h". | |
18098 | (spu_resolve_overloaded_builtin): Do not use spu_function_code. | |
18099 | Check programmatically whether all parameters are scalar. | |
18100 | ||
18101 | * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies. | |
18102 | ||
bbaba73f EB |
18103 | 2009-04-23 Eric Botcazou <ebotcazou@adacore.com> |
18104 | ||
18105 | * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct | |
18106 | assignment from the constructor either if the target is volatile. | |
18107 | ||
ee93c1c6 DJ |
18108 | 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com> |
18109 | ||
18110 | * config/arm/arm.md (insv): Do not share operands[0]. | |
18111 | ||
b2f21330 NS |
18112 | 2009-04-23 Nathan Sidwell <nathan@codesourcery.com> |
18113 | ||
18114 | * config/vxlib-tls.c (active_tls_threads): Delete. | |
18115 | (delete_hook_installed): New. | |
18116 | (tls_delete_hook): Don't delete the delete hook. | |
18117 | (tls_destructor): Delete it here. | |
18118 | (__gthread_set_specific): Adjust installing the delete hook. | |
18119 | (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and | |
18120 | __gthread_leave_tsd_dtor_context. | |
18121 | ||
4782dfa7 RAE |
18122 | 2009-04-23 Rafael Avila de Espindola <espindola@google.com> |
18123 | ||
18124 | * c-format.c (gcc_tdiag_char_table): Add support for %E. | |
18125 | ||
bf758008 UB |
18126 | 2009-04-23 Uros Bizjak <ubizjak@gmail.com> |
18127 | ||
18128 | * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to | |
18129 | enum type. | |
18130 | (alpha_rtx_costs): Ditto. | |
18131 | (emit_unlikely_jump): Use add_reg_note. | |
18132 | (emit_frame_store_1): Ditto. | |
18133 | (alpha_expand_prologue): Ditto. | |
18134 | (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call. | |
18135 | * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note. | |
18136 | ||
7323a100 NC |
18137 | 2009-04-23 Nick Clifton <nickc@redhat.com> |
18138 | ||
18139 | * config/v850/v850.md (epilogue): Remove suppressed code. | |
18140 | (return): Rename to return_simple and remove test of frame size. | |
18141 | * config/v850/v850.c (expand_epilogue): Rename call to gen_return | |
18142 | to gen_return_simple. | |
18143 | ||
360032ba JY |
18144 | 2009-04-22 Jing Yu <jingyu@google.com> |
18145 | ||
18146 | PR testsuite/39781 | |
18147 | * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP. | |
18148 | ||
53650abe AP |
18149 | 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com> |
18150 | ||
18151 | PR C/31499 | |
18152 | * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE | |
18153 | and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the | |
18154 | value is a VECTOR_CST, the element type is the element type of the | |
18155 | vector. | |
18156 | ||
89043e8a DD |
18157 | 2009-04-22 DJ Delorie <dj@redhat.com> |
18158 | ||
18159 | * config/m32c/m32c.h: Update GTY annotations to new syntax. | |
18160 | ||
023f059b JJ |
18161 | 2009-04-22 Jakub Jelinek <jakub@redhat.com> |
18162 | ||
18163 | * alias.c (find_base_term): Move around LO_SUM case, so that | |
18164 | CONST falls through into PLUS/MINUS handling. | |
18165 | ||
2c0eba5a JJ |
18166 | PR c/39855 |
18167 | * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing | |
18168 | into 0, use omit_one_operand. | |
18169 | ||
9a461028 BE |
18170 | 2009-04-23 Ben Elliston <bje@au.ibm.com> |
18171 | ||
18172 | * config/rs6000/linux-unwind.h (get_regs): Remove type | |
18173 | puns. Change the type of `pc' to an array of unsigned ints and | |
18174 | update all users. Constify frame24. | |
18175 | ||
653e2568 DD |
18176 | 2009-04-22 DJ Delorie <dj@redhat.com> |
18177 | ||
18178 | * config/m32c/m32c.c (m32c_special_page_vector_p): Move | |
18179 | declarations before code. | |
18180 | (current_function_special_page_vector): Likewise. | |
18181 | (m32c_expand_insv): Silence a warning. | |
18182 | ||
60839f5d | 18183 | 2009-04-21 Taras Glek <tglek@mozilla.com> |
d1b38208 TG |
18184 | |
18185 | * alias.c: Update GTY annotations to new syntax. | |
18186 | * basic-block.h: Likewise. | |
18187 | * bitmap.h: Likewise. | |
18188 | * c-common.h: Likewise. | |
18189 | * c-decl.c: Likewise. | |
18190 | * c-parser.c: Likewise. | |
18191 | * c-pragma.c: Likewise. | |
18192 | * c-tree.h: Likewise. | |
18193 | * cfgloop.h: Likewise. | |
18194 | * cgraph.h: Likewise. | |
18195 | * config/alpha/alpha.c: Likewise. | |
18196 | * config/arm/arm.h: Likewise. | |
18197 | * config/avr/avr.h: Likewise. | |
18198 | * config/bfin/bfin.c: Likewise. | |
18199 | * config/cris/cris.c: Likewise. | |
18200 | * config/darwin.c: Likewise. | |
18201 | * config/frv/frv.c: Likewise. | |
18202 | * config/i386/i386.c: Likewise. | |
18203 | * config/i386/i386.h: Likewise. | |
18204 | * config/i386/winnt.c: Likewise. | |
18205 | * config/ia64/ia64.h: Likewise. | |
18206 | * config/iq2000/iq2000.c: Likewise. | |
18207 | * config/mips/mips.c: Likewise. | |
18208 | * config/mmix/mmix.h: Likewise. | |
18209 | * config/pa/pa.c: Likewise. | |
18210 | * config/pa/pa.h: Likewise. | |
18211 | * config/rs6000/rs6000.c: Likewise. | |
18212 | * config/s390/s390.c: Likewise. | |
18213 | * config/sparc/sparc.c: Likewise. | |
18214 | * config/xtensa/xtensa.c: Likewise. | |
18215 | * cselib.h: Likewise. | |
18216 | * dbxout.c: Likewise. | |
18217 | * dwarf2out.c: Likewise. | |
18218 | * except.c: Likewise. | |
18219 | * except.h: Likewise. | |
18220 | * fixed-value.h: Likewise. | |
18221 | * function.c: Likewise. | |
18222 | * function.h: Likewise. | |
18223 | * gimple.h: Likewise. | |
18224 | * integrate.c: Likewise. | |
18225 | * optabs.c: Likewise. | |
18226 | * output.h: Likewise. | |
18227 | * real.h: Likewise. | |
18228 | * rtl.h: Likewise. | |
18229 | * stringpool.c: Likewise. | |
18230 | * tree-data-ref.c: Likewise. | |
18231 | * tree-flow.h: Likewise. | |
18232 | * tree-scalar-evolution.c: Likewise. | |
18233 | * tree-ssa-address.c: Likewise. | |
18234 | * tree-ssa-alias.h: Likewise. | |
18235 | * tree-ssa-operands.h: Likewise. | |
18236 | * tree.c: Likewise. | |
18237 | * tree.h: Likewise. | |
18238 | * varasm.c: Likewise. | |
18239 | * varray.h: Likewise. | |
18240 | * vec.h: Likewise. | |
bf758008 | 18241 | * coretypes.h: Do not define GTY macro if it is already defined. |
d1b38208 TG |
18242 | * doc/gty.texi: Update GTY documentation to new syntax. |
18243 | * gengtype-lex.l: Enforce attribute-like syntax for GTY | |
18244 | annotations on structs. | |
18245 | * gengtype-parse.c: Likewise. | |
18246 | ||
a123d175 MH |
18247 | 2009-04-22 Mark Heffernan <meheff@google.com> |
18248 | ||
bf758008 | 18249 | * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=. |
a123d175 | 18250 | |
4c7c486a KH |
18251 | 2009-04-22 Kazu Hirata <kazu@codesourcery.com> |
18252 | ||
18253 | * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand | |
18254 | where appropriate. | |
18255 | ||
6e782a29 KH |
18256 | 2009-04-22 Kazu Hirata <kazu@codesourcery.com> |
18257 | ||
18258 | * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift | |
18259 | the same as a PLUS without a shift. Increase the cost of a | |
18260 | CONST_INT in MULT. | |
18261 | ||
38d2336a MLI |
18262 | 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
18263 | ||
18264 | * Makefile.in: Update dependencies. | |
bf758008 | 18265 | * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'. |
38d2336a MLI |
18266 | * errors.h: Remove bogus comment about compatibility. |
18267 | (warning): Update declaration. | |
18268 | * genautomata.c: Update all calls to warning. | |
18269 | * gimple.c: Do not include errors.h. Include toplev.h. | |
18270 | * tree-ssa-structalias.c: Do not include errors.h. | |
18271 | * omega.c: Likewise. | |
18272 | * tree-ssa-reassoc.c: Likewise. | |
18273 | * config/spu/spu-c.c: Likewise. | |
18274 | * config/spu/t-spu-elf: Update dependencies. | |
18275 | ||
aea4deba RG |
18276 | 2009-04-22 Richard Guenther <rguenther@suse.de> |
18277 | ||
18278 | PR tree-optimization/39824 | |
18279 | * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs | |
18280 | make sure the types are compatible. | |
18281 | ||
cfc93532 MLI |
18282 | 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
18283 | ||
18284 | PR c++/14875 | |
18285 | * c-common.c (c_parse_error): Take a token_flags parameter. | |
18286 | Use token_type for the token type instead. | |
18287 | Pass token_flags to cpp_type2name. | |
18288 | * c-common.h (c_parse_error): Update declaration. | |
18289 | * c-parser.c (c_parser_error): Pass 0 as token flags. | |
18290 | ||
8632d02a AB |
18291 | 2009-04-22 Andrey Belevantsev <abel@ispras.ru> |
18292 | ||
18293 | PR rtl-optimization/39580 | |
f100a4a8 UB |
18294 | * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. |
18295 | ||
4c33221c UW |
18296 | 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
18297 | ||
18298 | * function.c (expand_function_end): Do not emit a jump to the "naked" | |
18299 | return label for fall-through returns. | |
18300 | * except.c (sjlj_emit_function_exit): Always place the call to the | |
18301 | unregister function at the location installed by expand_function_end. | |
18302 | ||
9925bce0 RG |
18303 | 2009-04-22 Richard Guenther <rguenther@suse.de> |
18304 | ||
18305 | PR tree-optimization/39845 | |
18306 | * tree-switch-conversion.c (build_arrays): Add new referenced vars. | |
18307 | (gen_inbound_check): Likewise. | |
18308 | ||
24a40b35 NS |
18309 | 2009-04-22 Nathan Sidwell <nathan@codesourcery.com> |
18310 | ||
18311 | * gthr-vxworks.h (struct __gthread_once_t): Add alignment and | |
18312 | padding for PPC. | |
18313 | (__GTHREAD_ONCE_INIT): Adjust ppc initializer. | |
18314 | * config/vxlib.c (__gthread_once): Add race guard for PPC. | |
18315 | ||
6c34a092 PB |
18316 | 2009-04-22 Paolo Bonzini <bonzini@gnu.org> |
18317 | ||
18318 | * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op, | |
18319 | sh_dynamicalize_shift_p, shl_and_scr_length): Truncate | |
18320 | shift counts to avoid out-of-bounds array accesses. | |
18321 | ||
baa48dfa PB |
18322 | 2009-04-22 Paolo Bonzini <bonzini@gnu.org> |
18323 | ||
18324 | * config/sparc/sparc.h (POINTER_SIZE): Fix comment. | |
18325 | (Pmode): Move above. | |
18326 | ||
7d83f4f5 UB |
18327 | 2009-04-22 Uros Bizjak <ubizjak@gmail.com> |
18328 | ||
18329 | * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P, | |
18330 | NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of | |
18331 | GET_CODE macro. Use IN_RANGE macro where appropriate. | |
18332 | * config/alpha/alpha.h: Ditto. | |
18333 | * config/alpha/alpha.md: Ditto. | |
18334 | * config/alpha/constraints.md: Ditto. | |
18335 | * config/alpha/predicates.md: Ditto. | |
f100a4a8 | 18336 | |
3ad606bc PB |
18337 | 2009-04-22 Paolo Bonzini <bonzini@gnu.org> |
18338 | ||
18339 | * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default. | |
18340 | * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18341 | * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18342 | * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18343 | * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18344 | * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18345 | * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18346 | * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18347 | * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18348 | * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18349 | * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18350 | * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18351 | * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18352 | * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18353 | * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18354 | * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18355 | * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18356 | * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18357 | * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18358 | * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18359 | * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18360 | * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18361 | * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18362 | * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18363 | * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18364 | * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18365 | * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. | |
18366 | ||
3cabd6d1 LB |
18367 | 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
18368 | ||
18369 | * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks | |
18370 | references from comments. | |
18371 | * cfgbuild.c: (count_basic_blocks): Delete. | |
18372 | (find_basic_blocks_1): Delete. | |
18373 | (find_basic_blocks): Delete. | |
18374 | * except.c (finish_eh_generation): Make static. Move comment from | |
7d83f4f5 | 18375 | except.h here. Remove find_basic_blocks references from comments. |
3cabd6d1 LB |
18376 | * except.h (finish_eh_generation): Delete. |
18377 | * basic-block.h (find_basic_blocks): Delete. | |
18378 | * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block. | |
18379 | ||
270d1bcd DK |
18380 | 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com> |
18381 | ||
18382 | * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs. | |
18383 | (sdbout_parms): Likewise. | |
18384 | ||
b757d36f KK |
18385 | 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org> |
18386 | ||
18387 | * config/sh/sh.c (prepare_cbranch_operands): Use | |
18388 | LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing. | |
18389 | (expand_cbranchdi4): Likewise. | |
18390 | (from_compare): Add cast to enum type. | |
18391 | (expand_cbranchsi4): Use add_reg_note. | |
18392 | (output_stack_adjust, push, pop, sh_expand_prologue): Likewise. | |
18393 | (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu. | |
18394 | (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call. | |
18395 | (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call. | |
18396 | * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE | |
18397 | instead of CODE_FOR_nothing. | |
18398 | (cbranchdi4): Likewise. Fix the order of arguments for | |
18399 | gen_rtx_fmt_ee. | |
18400 | (push_fpscr): Use add_reg_note. | |
18401 | (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4, | |
18402 | reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise. | |
f100a4a8 | 18403 | |
ad41bd84 JM |
18404 | 2009-04-21 Joseph Myers <joseph@codesourcery.com> |
18405 | ||
18406 | * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998, | |
18407 | ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002, | |
18408 | ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006, | |
18409 | ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib, | |
18410 | ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog, | |
18411 | FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4, | |
18412 | config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver, | |
18413 | config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h, | |
18414 | config/alpha/x-vms, config/arc/t-arc, | |
18415 | config/arm/README-interworking, config/arm/arm-c.c, | |
18416 | config/arm/gentune.sh, config/arm/libgcc-bpabi.ver, | |
18417 | config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp, | |
18418 | config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi, | |
18419 | config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf, | |
18420 | config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe, | |
18421 | config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver, | |
18422 | config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf, | |
18423 | config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux, | |
18424 | config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris, | |
18425 | config/cris/t-elfmulti, config/crx/t-crx, | |
18426 | config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def, | |
18427 | config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver, | |
18428 | config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh, | |
18429 | config/h8300/t-h8300, config/i386/athlon.md, | |
18430 | config/i386/darwin-libgcc.10.4.ver, | |
18431 | config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver, | |
18432 | config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc, | |
18433 | config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386, | |
18434 | config/i386/t-linux64, config/i386/t-nwld, | |
18435 | config/i386/t-rtems-i386, config/i386/t-sol2-10, | |
18436 | config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h, | |
18437 | config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver, | |
18438 | config/ia64/libgcc-ia64.ver, config/ia64/linux.h, | |
18439 | config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64, | |
18440 | config/iq2000/abi, config/iq2000/lib2extra-funcs.c, | |
18441 | config/iq2000/t-iq2000, config/libgcc-glibc.ver, | |
18442 | config/m32r/libgcc-glibc.ver, config/m32r/t-linux, | |
18443 | config/m32r/t-m32r, config/m68hc11/t-m68hc11, | |
18444 | config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs, | |
18445 | config/m68k/t-uclinux, config/mcore/t-mcore, | |
18446 | config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md, | |
18447 | config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm, | |
18448 | config/mips/crtn.asm, config/mips/irix-crti.asm, | |
18449 | config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver, | |
18450 | config/mips/mips-dsp.md, config/mips/mips-dspr2.md, | |
18451 | config/mips/mips-fixed.md, config/mips/sb1.md, | |
18452 | config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast, | |
18453 | config/mips/t-iris6, config/mips/t-isa3264, | |
18454 | config/mips/t-libgcc-mips16, config/mips/t-linux64, | |
18455 | config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems, | |
18456 | config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk, | |
18457 | config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st, | |
18458 | config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix, | |
18459 | config/mn10300/t-linux, config/mn10300/t-mn10300, | |
18460 | config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux, | |
18461 | config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11, | |
18462 | config/picochip/libgccExtras/clzsi2.asm, | |
18463 | config/picochip/t-picochip, config/rs6000/darwin-ldouble-format, | |
18464 | config/rs6000/darwin-libgcc.10.4.ver, | |
18465 | config/rs6000/darwin-libgcc.10.5.ver, | |
18466 | config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h, | |
18467 | config/rs6000/t-aix43, config/rs6000/t-aix52, | |
18468 | config/rs6000/t-darwin, config/rs6000/t-fprules, | |
18469 | config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64, | |
18470 | config/rs6000/t-lynx, config/rs6000/t-netbsd, | |
18471 | config/rs6000/t-ppccomm, config/rs6000/t-ppcendian, | |
18472 | config/rs6000/t-ppcgas, config/rs6000/t-rs6000, | |
18473 | config/rs6000/t-rtems, config/rs6000/t-spe, | |
18474 | config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver, | |
18475 | config/score/t-score-elf, config/sh/divcost-analysis, | |
18476 | config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh, | |
18477 | config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian, | |
18478 | config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h, | |
18479 | config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h, | |
18480 | config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2, | |
18481 | config/stormy16/stormy-abi, config/stormy16/t-stormy16, | |
18482 | config/t-darwin, config/t-libunwind, config/t-libunwind-elf, | |
18483 | config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver, | |
18484 | config/t-slibgcc-sld, config/t-sol2, config/t-vxworks, | |
18485 | config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850, | |
18486 | config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def, | |
18487 | gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog, | |
18488 | java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver, | |
18489 | limitx.h, version.c, xcoff.h: Add copyright and license notices. | |
18490 | * config/h8300/genmova.sh: Include copyright and license notices | |
18491 | in generated output. | |
18492 | * config/h8300/mova.md: Regenerate. | |
18493 | * doc/install.texi2html: Include word "Copyright" in copyright | |
18494 | notice and use name "Free Software Foundation, Inc.". | |
18495 | * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002, | |
18496 | ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006, | |
18497 | ChangeLog-2007, ChangeLog-2008: Correct dates. | |
18498 | ||
ca80e52b EB |
18499 | 2009-04-21 Eric Botcazou <ebotcazou@adacore.com> |
18500 | ||
18501 | * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build | |
18502 | NE_EXPR operations as well. | |
18503 | * c-parser.c (c_parser_condition): Do not set location information on | |
18504 | the condition. | |
18505 | (c_parser_conditional_expression): Likewise. | |
18506 | (c_parser_binary_expression): Set location information on operators. | |
18507 | * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if | |
18508 | TRUTH_NOT_EXPR has been folded. | |
18509 | * fold-const.c (fold_truth_not_expr): Copy location information from | |
18510 | the incoming expression to the outgoing one. | |
18511 | * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to | |
18512 | recursive calls on the LHS of the operator but pass that of the | |
18513 | operator to recursive calls on the RHS of the operator. Set it | |
18514 | on the COND_EXPR. | |
18515 | (shortcut_cond_expr): Set the locus of the operator on the second | |
18516 | COND_EXPR and that of the expression on the first in degenerate cases. | |
18517 | Pass the locus of the expression to calls to shortcut_cond_r. | |
18518 | Set the locus of the 'then' block on the associated jump, if any. | |
18519 | (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR. | |
18520 | (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer | |
18521 | expression to call to gimplify_boolean_expr. | |
18522 | ||
35091630 KT |
18523 | 2009-04-21 Kai Tietz <kai.tietz@onevision.com> |
18524 | ||
18525 | * config.gcc: Add additional configuration for | |
18526 | i686-w64-mingw* and x86_64-w64-mingw* triplet. | |
18527 | * config/i386/mingw-w64.h: New mingw-w64 specific header. | |
18528 | (CPP_SPEC): Redefine for allowing -municode option. | |
18529 | (STARTFILE_SPEC): Likewise. | |
18530 | * config/i386/t-mingw-w64: New. | |
18531 | * config/i386/mingw-w64.opt: New. | |
18532 | (municode): Add new target option. | |
18533 | * doc/invoke.texi (municode): Add documentation for new option. | |
18534 | ||
0267afc4 ILT |
18535 | 2009-04-21 Ian Lance Taylor <iant@google.com> |
18536 | ||
18537 | * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): | |
18538 | Correct test for number of arguments. | |
18539 | * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise. | |
18540 | ||
2ba9daa7 AS |
18541 | 2009-04-21 Andreas Schwab <schwab@linux-m68k.org> |
18542 | ||
18543 | * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second | |
18544 | argument of emit_library_call. | |
18545 | ||
ad8a1ac0 RG |
18546 | 2009-04-21 Richard Guenther <rguenther@suse.de> |
18547 | ||
18548 | PR middle-end/39829 | |
18549 | * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses | |
18550 | inside VIEW_CONVERT_EXPRs. | |
18551 | ||
7156c8ab MJ |
18552 | 2009-04-21 Martin Jambor <mjambor@suse.cz> |
18553 | ||
18554 | * tree-switch-conversion.c (build_constructors): Split a long line. | |
18555 | (constructor_contains_same_values_p): New function. | |
7d83f4f5 UB |
18556 | (build_one_array): Create assigns of constants if possible, do not |
18557 | call mark_sym_for_renaming, call update_stmt. | |
7156c8ab MJ |
18558 | (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of |
18559 | make_rename_temp. Do not call mark_symbols_for_renaming, call | |
18560 | update_stmt. | |
18561 | (gen_def_assigns): Do not call mark_symbols_for_renaming or | |
18562 | find_new_referenced_vars, call update_stmt. | |
18563 | (gen_inbound_check): Use create_tmp_var and create ssa names manually | |
18564 | instead of calling make_rename_temp. Do not call | |
18565 | find_new_referenced_vars or mark_symbols_for_renaming, call | |
18566 | update_stmt. | |
18567 | ||
2970ccb3 RG |
18568 | 2009-04-21 Richard Guenther <rguenther@suse.de> |
18569 | ||
18570 | PR tree-optimization/39827 | |
7d83f4f5 | 18571 | * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range. |
2970ccb3 RG |
18572 | (tree_ssa_phiprop): Pass the correct array size. |
18573 | ||
47f402d1 UB |
18574 | 2009-04-21 Uros Bizjak <ubizjak@gmail.com> |
18575 | ||
18576 | * config/alpha/alpha.md (tune): Add cast to enum attr_tune. | |
18577 | ||
1e4ae551 MLI |
18578 | 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
18579 | ||
18580 | PR 16202 | |
18581 | * c-typeck.c (lvalue_p): Move declaration ... | |
18582 | * c-common.h (lvalue_p): ... to here. | |
18583 | * c-common.c (candidate_equal_p): New. | |
18584 | (add_tlist): Use it. | |
18585 | (merge_tlist): Use it. | |
18586 | (warn_for_collisions_1): Likewise. | |
18587 | (warning_candidate_p): Accept more candidates. | |
18588 | (verify_tree): A warning candidate can be an expression. Use | |
18589 | candidate_equal_p. | |
18590 | ||
244609a6 BE |
18591 | 2009-04-21 Ben Elliston <bje@au.ibm.com> |
18592 | ||
18593 | PR target/5267 | |
18594 | * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation | |
18595 | for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd | |
18596 | options. Remove -mcall-solaris documentation. | |
18597 | ||
9c650d90 MLI |
18598 | 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
18599 | ||
18600 | PR c++/13358 | |
18601 | * doc/invoke.texi (-Wlong-long): Update description. | |
18602 | * c-lex (interpret_integer): Only warn if there was no previous | |
18603 | overflow and -Wlong-long is enabled. | |
18604 | * c-decl.c (declspecs_add_type): Drop redundant flags. | |
18605 | * c.opt (Wlong-long): Init to -1. | |
18606 | * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long | |
18607 | and front-end warn_long_long. Wlong-long only depends on other | |
18608 | flags if it is uninitialized. | |
18609 | * c-parser.c (disable_extension_diagnostics): warn_long_long is | |
18610 | the same for CPP and FE. | |
18611 | (restore_extension_diagnostics): Likewise. | |
18612 | ||
bbbbb16a ILT |
18613 | 2009-04-20 Ian Lance Taylor <iant@google.com> |
18614 | ||
18615 | Fix enum conversions which are invalid in C++: | |
47f402d1 UB |
18616 | * auto-inc-dec.c (attempt_change): Change 0 to SET in function call. |
18617 | * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call. | |
bbbbb16a ILT |
18618 | * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call. |
18619 | * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type. | |
47f402d1 | 18620 | * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call. |
bbbbb16a | 18621 | (dbxout_parms): Likewise. |
47f402d1 | 18622 | * df-core.c (df_set_flags): Change changeable_flags parameter to int. |
bbbbb16a ILT |
18623 | (df_clear_flags): Likewise. |
18624 | * df-problems.c (df_rd_bb_local_compute_process_def): Change | |
18625 | top_flag parameter to int. | |
18626 | (df_chain_create_bb_process_use): Likewise. | |
47f402d1 UB |
18627 | (df_chain_add_problem): Change chain_flags parameter to unsigned int. |
18628 | Remove cast. | |
bbbbb16a ILT |
18629 | * df-scan.c (df_ref_create): Change ref_flags parameter to int. |
18630 | (df_ref_create_structure, df_def_record_1): Likewise. | |
18631 | (df_defs_record, df_uses_record, df_get_call_refs): Likewise. | |
18632 | (df_notes_rescan): Change 0 to VOIDmode in function call. | |
18633 | (df_get_call_refs, df_insn_refs_collect): Likewise. | |
18634 | (df_bb_regs_collect): Likewise. | |
18635 | (df_entry_block_defs_collect): Likewise. | |
18636 | (df_exit_block_uses_collect): Likewise. | |
18637 | * df.h: Update declarations. | |
18638 | * double-int.c (double_int_divmod): Add cast to enum type. | |
18639 | * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode. | |
18640 | * dwarf2out.c (new_reg_loc_descr): Add casts to enum type. | |
18641 | (based_loc_descr): Likewise. | |
18642 | (loc_descriptor_from_tree_1): Change first_op and second_op to | |
18643 | enum dwarf_location_atom. Add cast to enum type. | |
18644 | * expmed.c (init_expmed): Change 0 to SET in function call. | |
47f402d1 | 18645 | * expr.c (init_expr_target): Change 0 to VOIDmode in function call. |
bbbbb16a ILT |
18646 | (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call. |
18647 | (do_store_flag): Likewise. | |
18648 | * fixed-value.h (struct fixed_value): Change mode to enum | |
18649 | machine_mode. | |
47f402d1 | 18650 | * function.c (assign_parms): Change 0 to VOIDmode in function call. |
bbbbb16a ILT |
18651 | * genautomata.c (insert_automaton_decl): Change 1 to INSERT in |
18652 | function call. | |
18653 | (insert_insn_decl, insert_decl, insert_state): Likewise. | |
18654 | (automata_list_finish): Likewise. | |
18655 | * genrecog.c (process_define_predicate): Add cast to enum type. | |
18656 | * gensupport.c (init_predicate_table): Add cast to enum type. | |
18657 | * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in | |
18658 | function call. | |
18659 | (gimple_build_call_1, gimple_build_label): Likewise. | |
18660 | (gimple_build_goto, gimple_build_asm_1): Likewise. | |
18661 | (gimple_build_switch_1, gimple_build_cdt): Likewise. | |
47f402d1 | 18662 | * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call. |
bbbbb16a ILT |
18663 | (enum fallback): Rename from enum fallback_t. |
18664 | (fallback_t): Typedef as int. | |
18665 | * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to | |
18666 | GSI_SAME_STMT in function call. | |
18667 | * ira.c (setup_class_subset_and_memory_move_costs): Add casts to | |
18668 | enum type. | |
18669 | (setup_reg_class_relations): Likewise. | |
47f402d1 | 18670 | (setup_reg_class_nregs): Change cl to int. Add casts to enum type. |
bbbbb16a ILT |
18671 | (setup_prohibited_class_mode_regs): Add cast to enum type. |
18672 | (setup_prohibited_mode_move_regs): Likewise. | |
47f402d1 | 18673 | * ira-costs.c (record_reg_classes): Change rclass to enum reg_class. |
bbbbb16a ILT |
18674 | (record_address_regs): Change i to enum reg_class. |
18675 | * lists.c (alloc_EXPR_LIST): Add cast to enum type. | |
18676 | * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class. | |
18677 | (GET_MODE_WIDER_MODE): Cast value to enum machine_mode. | |
18678 | (GET_MODE_2XWIDER_MODE): Likewise. | |
18679 | (GET_CLASS_NARROWEST_MODE): Likewise. | |
18680 | * omp-low.c (expand_omp_for): Add cast to enum type. | |
18681 | * optabs.c (debug_optab_libfuncs): Add casts to enum type. | |
18682 | * opts.c (enable_warning_as_error): Change kind to diagostic_t. | |
18683 | * postreload.c (reload_cse_simplify_operands): Change rclass local | |
18684 | to enum reg_class. | |
18685 | * predict.c (combine_predictions_for_insn): Change best_predictor | |
18686 | and predictor to enum br_predictor. | |
18687 | (combine_predictions_for_bb): Likewise. | |
18688 | (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to | |
18689 | use SET_PREDICT_EXPR_OUTCOME. | |
47f402d1 | 18690 | * real.c (real_arithmetic): Change icode to code in function call. |
bbbbb16a ILT |
18691 | * reginfo.c (init_move_cost): Add casts to enum type. |
18692 | (init_reg_sets_1, init_fake_stack_mems): Likewise. | |
18693 | * regmove.c (regclass_compatible_p): Change class0 and class1 to | |
18694 | enum reg_class. | |
18695 | * reload.c (find_valid_class): Add casts to enum type. | |
18696 | (push_reload): Change 0 to NO_REGS in function call. | |
18697 | (find_reloads): Change this_alternative to array of enum | |
18698 | reg_class. Remove some now-unnecessary casts. | |
18699 | (make_memloc): Change 0 to VOIDmode in function call. | |
18700 | * reload1.c (reload): Change 0 to VOIDmode in function call. | |
18701 | (eliminate_regs_1, elimination_effects): Likewise. | |
18702 | (eliminate_regs_in_insn): Likewise. | |
18703 | (emit_input_reload_insns): Add cast to enum type. | |
18704 | (delete_output_reload): Change 0 to VOIDmode in function call. | |
18705 | * reorg.c (insn_sets_resource_p): Convert include_delayed_effects | |
18706 | to enum type in function call. | |
18707 | * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type. | |
18708 | (SET_PREDICT_EXPR_OUTCOME): Define. | |
47f402d1 | 18709 | * tree-dump.c (get_dump_file_info): Change phase parameter to int. |
bbbbb16a ILT |
18710 | (get_dump_file_name, dump_begin, dump_enabled_p): Likewise. |
18711 | (dump_initialized_p, dump_flag_name, dump_end): Likewise. | |
18712 | (dump_function): Likewise. | |
18713 | * tree-dump.h: Update declarations. | |
18714 | * tree-pass.h: Update declarations. | |
18715 | * varasm.c (assemble_integer): Change mclass to enum mode_class. | |
18716 | * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to | |
18717 | enum type. | |
18718 | (arm_rtx_costs_1): Correct parenthesization. | |
18719 | (arm_rtx_costs): Add casts to enum type. | |
18720 | (adjacent_mem_locations): Reverse arguments to const_ok_for_op. | |
18721 | (vfp_emit_fstmd): Use add_rg_note. | |
18722 | (emit_multi_reg_push, emit_sfm): Likewise. | |
18723 | (thumb_set_frame_pointer): Likewise. | |
18724 | (arm_expand_prologue): Likewise. | |
18725 | (arm_regno_class): Change return type to enum reg_class. | |
18726 | (thumb1_expand_prologue): Use add_reg_note. | |
18727 | * config/arm/arm-protos.h (arm_regno_class): Update declaration. | |
18728 | * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL | |
18729 | in function call. | |
18730 | * config/arm/gentune.sh: Add cast to enum type. | |
18731 | * config/arm/arm-tune.md: Rebuild. | |
18732 | * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note. | |
18733 | (ix86_split_fp_branch, predict_jump): Likewise. | |
18734 | (ix86_expand_multi_arg_builtin): Change sub_code from enum | |
18735 | insn_code to enum rtx_code. | |
18736 | (ix86_builtin_vectorized_function): Add cast to enum type. | |
18737 | * config/i386/i386.md (truncdfsf2): Change slot to enum | |
18738 | ix86_stack_slot. | |
18739 | (truncxf<mode>2, isinf<mode>2): Likewise. | |
18740 | * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to | |
18741 | enum type. | |
18742 | * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note. | |
18743 | (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise. | |
18744 | (insert_bundle_state): Change 1 to INSERT in function call. | |
18745 | (ia64_add_bundle_selector_before): Likewise. | |
18746 | * config/ia64/ia64.md (cpu attr): Add cast to enum type. | |
18747 | (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call. | |
18748 | (restore_stack_nonlocal): Likewise. | |
18749 | * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in | |
18750 | function call. | |
18751 | * config/mips/mips.c (mips_binary_cost): Change 0 to SET in | |
18752 | function call. | |
18753 | (mips_rtx_costs): Likewise. | |
18754 | (mips_override_options): Add casts to enum type. | |
18755 | * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL | |
18756 | in function call. | |
18757 | * config/pa/pa.c (legitimize_pic_address): Use add_reg_note. | |
18758 | (store_reg, set_reg_plus_d): Likewise. | |
18759 | (hppa_expand_prologue, hppa_profile_hook): Likewise. | |
18760 | * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add | |
18761 | cast to enum type. | |
18762 | (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in | |
18763 | function call. | |
18764 | (emit_unlikely_jump): Use add_reg_note. | |
18765 | (rs6000_emit_allocate_stack): Likewise. | |
18766 | (rs6000_frame_related, rs6000_emit_prologue): Likewise. | |
18767 | (output_toc): Change 1 to INSERT in function call. | |
18768 | (output_profile_hook): Change 0 to LCT_NORMAL in function call. | |
18769 | (rs6000_initialize_trampoline): Likewise. | |
18770 | (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in | |
18771 | function call. | |
18772 | * config/s390/s390.c (s390_rtx_costs): Add cast to enum type. | |
18773 | (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call. | |
18774 | (s390_expand_setmem, s390_expand_cmpmem): Likewise. | |
18775 | (save_gprs): Use add_reg_note. | |
18776 | (s390_emit_prologue): Likewise. | |
47f402d1 | 18777 | (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call. |
bbbbb16a ILT |
18778 | * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note. |
18779 | (sparc_fold_builtin): Add cast to enum type. | |
18780 | * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to | |
18781 | enum insn_code. | |
18782 | (spu_expand_prologue): Use add_reg_note. | |
47f402d1 | 18783 | (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call. |
bbbbb16a ILT |
18784 | |
18785 | 2009-04-20 Ian Lance Taylor <iant@google.com> | |
18786 | ||
18787 | * c-parser.c (c_parser_attributes): Change VEC back to tree list. | |
18788 | (c_parser_postfix_expression_after_primary): Get VEC for list of | |
18789 | arguments. Get original types of arguments. Call | |
18790 | build_function_call_vec. | |
18791 | (cached_expr_list_1, cached_expr_list_2): New static variables. | |
18792 | (c_parser_expr_list): Change return type to VEC *. Add | |
18793 | p_orig_types parameter. Change all callers. | |
18794 | (c_parser_release_expr): New static function. | |
18795 | (c_parser_vec_to_tree_list): New static function. | |
18796 | * c-typeck.c (build_function_call): Rewrite to build a VEC and | |
18797 | call build_function_call_vec. | |
18798 | (build_function_call_vec): New function, based on old | |
18799 | build_function_call. | |
18800 | (convert_arguments): Remove nargs and argarray parameters. Change | |
18801 | values to a VEC. Add origtypes parameter. | |
47f402d1 | 18802 | (build_modify_expr): Add rhs_origtype parameter. Change all callers. |
bbbbb16a ILT |
18803 | (convert_for_assignment): Add origtype parameter. Change all |
18804 | callers. If warn_cxx_compat, check for conversion to an enum | |
18805 | type when calling a function. | |
18806 | (store_init_value): Add origtype parameter. Change all callers. | |
18807 | (digest_init): Likewise. | |
18808 | (struct init_node): Add origtype field. | |
18809 | (add_pending_init): Add origtype parameter. Change all callers. | |
18810 | (output_init_element): Likewise. | |
18811 | (output_pending_init_elements): Pass origtype from init_node to | |
18812 | output_init_element. | |
f28a61ab | 18813 | (process_init_element): Pass origtype from c_expr to |
bbbbb16a ILT |
18814 | output_init_element. |
18815 | (c_finish_return): Add origtype parameter. Change all callers. | |
18816 | * c-common.c (sync_resolve_size): Change params to VEC *. Change | |
18817 | caller. | |
18818 | (sync_resolve_params): Likewise. | |
47f402d1 | 18819 | (sync_resolve_return): Change params to first_param. Change caller. |
bbbbb16a | 18820 | (resolve_overloaded_builtins): Change params to VEC *. Change |
47f402d1 | 18821 | callers. Save first parameter around call to build_function_call_vec. |
bbbbb16a ILT |
18822 | * c-decl.c (finish_decl): Add origtype parameter. Change all |
18823 | callers. Call build_function_call_vec rather than | |
18824 | build_function_call for cleanup. | |
18825 | * c-tree.h: Update declarations. | |
18826 | * c-common.h: Update declarations. | |
18827 | * stub-objc.c (objc_rewrite_function_call): Change parameter from | |
18828 | params to first_param. | |
18829 | * target.h (struct gcc_target): Change resolve_overloaded_builtin | |
18830 | params parameter from tree to void *. | |
18831 | * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): | |
18832 | Change arglist parameter to have type void *, and to be a pointer | |
18833 | to a VEC. | |
18834 | * config/rs6000/rs6000-protos.h | |
18835 | (altivec_resolve_overloaded_builtin): Update declaration. | |
18836 | * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change | |
18837 | fnargs parameter to have type void *, and to be a pointer to a | |
18838 | VEC. Call build_function_call_vec instead of | |
18839 | build_function_call. | |
47f402d1 | 18840 | * config/spu/spu-protos.h (spu_expand_builtin): Update declaration. |
bbbbb16a | 18841 | |
6ff078d4 | 18842 | 2009-04-20 Joey Ye <joey.ye@intel.com> |
60839f5d | 18843 | Xuepeng Guo <xuepeng.guo@intel.com> |
6ff078d4 JY |
18844 | H.J. Lu <hongjiu.lu@intel.com> |
18845 | ||
18846 | * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count. | |
18847 | ||
18848 | * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro. | |
18849 | (IX86_LEA_PRIORITY): Likewise. | |
18850 | (distance_non_agu_define): New function. | |
18851 | (distance_agu_use): Likewise. | |
18852 | (ix86_lea_for_add_ok): Likewise. | |
18853 | (ix86_dep_by_shift_count): Likewise. | |
18854 | ||
18855 | * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we | |
18856 | should split for LEA. | |
18857 | ||
18858 | * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new | |
18859 | function. | |
18860 | (ix86_dep_by_shift_count): Likewise. | |
18861 | ||
87a5b4cc RG |
18862 | 2009-04-20 Richard Guenther <rguenther@suse.de> |
18863 | ||
18864 | * expr.c (handled_component_p): Move ... | |
18865 | * tree.h (handled_component_p): ... here. | |
18866 | * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF, | |
18867 | ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR | |
18868 | and REALPART_EXPR to be in one group. | |
18869 | ||
438c239d RG |
18870 | 2009-04-20 Richard Guenther <rguenther@suse.de> |
18871 | ||
18872 | * basic-block.h (get_all_dominated_blocks): Declare. | |
18873 | * dominance.c (get_all_dominated_blocks): New function. | |
18874 | * tree-cfg.c (get_all_dominated_blocks): Remove. | |
18875 | (remove_edge_and_dominated_blocks): Adjust. | |
18876 | * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ... | |
18877 | (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks | |
18878 | instead of recursing. | |
18879 | ||
fed5ae11 DK |
18880 | 2009-04-20 Doug Kwan <dougkwan@google.com> |
18881 | ||
18882 | * cgraph.h (cgraph_node_ptr): New type for vector functions. | |
18883 | (struct cgraph_node_set_def): New type. | |
18884 | (cgraph_node_set) New type. Also declare vector functions. | |
18885 | (struct cgraph_node_set_element_def): New type. | |
18886 | (cgraph_node_set_element): Ditto. | |
18887 | (cgraph_node_set_iterator): New iterator type. | |
18888 | (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add, | |
18889 | cgraph_node_set_remove, dump_cgraph_node_set, | |
18890 | debug_cgraph_node_set): New prototypes. | |
18891 | (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p, | |
18892 | cgraph_node_set_size): New inlines. | |
18893 | * tree-pass.h (struct cgraph_node_set_def): New decl to avoid | |
18894 | including cgraph.h. | |
18895 | (struct ipa_opt_pass): Add struct cgraph_node_set_def | |
18896 | argument to function 'write_summary'. | |
18897 | * ipa.c: Include ggc.h. | |
18898 | (hash_cgraph_node_set_element, | |
18899 | eq_cgraph_node_set_element, cgraph_node_set_new, | |
18900 | cgraph_node_set_add, cgraph_node_set_remove, | |
18901 | cgraph_node_set_find, dump_cgraph_node_set, | |
18902 | debug_cgraph_node_set): New functions. | |
18903 | * Makefile.in (ipa.o): Add dependency on GGC_H. | |
18904 | ||
c4551b28 IR |
18905 | 2009-04-20 Ira Rosen <irar@il.ibm.com> |
18906 | ||
18907 | PR tree-optimization/39675 | |
2ba9daa7 | 18908 | * tree-vect-loop.c (vect_transform_loop): Remove currently redundant |
47f402d1 UB |
18909 | check of the return code of vect_schedule_slp. Check that |
18910 | stmt_vec_info still exists for the statement, before checking its | |
18911 | vectorization type. | |
c4551b28 | 18912 | |
21a495fb MM |
18913 | 2009-04-20 Michael Matz <matz@suse.de> |
18914 | ||
18915 | * Makefile.in (generated_files): Take out $(simple_generated_c). | |
18916 | ||
8e208874 DK |
18917 | 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com> |
18918 | ||
18919 | * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long". | |
18920 | (UINTPTR_TYPE): Likewise. | |
18921 | ||
a45e580b JM |
18922 | 2009-04-19 Joseph Myers <joseph@codesourcery.com> |
18923 | ||
18924 | PR c/37481 | |
18925 | * c-typeck.c (digest_init): Check for initializing an array with a | |
18926 | string literal. | |
18927 | ||
20845d35 JM |
18928 | 2009-04-19 Joseph Myers <joseph@codesourcery.com> |
18929 | ||
18930 | PR c/19771 | |
18931 | * c-semantics.c (pop_stmt_list): Propagate | |
18932 | STATEMENT_LIST_HAS_LABEL to parent statement list. | |
18933 | ||
28143fdd AN |
18934 | 2009-04-19 Adam Nemet <anemet@caviumnetworks.com> |
18935 | ||
18936 | * config/mips/mips.h (mips_tune_attr): New macro. | |
18937 | * config/mips/mips.md (cpu): Use it. | |
18938 | ||
da377db9 JM |
18939 | 2009-04-19 Joseph Myers <joseph@codesourcery.com> |
18940 | ||
18941 | PR c/38243 | |
18942 | * c-decl.c (shadow_tag_warned): Diagnose use of restrict when | |
18943 | declaring a tag. | |
18944 | ||
3baf459d DN |
18945 | 2009-04-19 Diego Novillo <dnovillo@google.com> |
18946 | ||
18947 | * toplev.c (compile_file): Move call to coverage_finish ... | |
18948 | * cgraphunit.c (ipa_passes): ... here. | |
18949 | Call cgraph_process_new_functions. | |
18950 | * ipa-utils.c (get_base_var): Handle CONSTRUCTOR. | |
18951 | * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H. | |
18952 | ||
b6fa5b01 JH |
18953 | 2009-04-19 Jan Hubicka <jh@suse.cz> |
18954 | ||
47f402d1 UB |
18955 | * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper |
18956 | cfun. | |
b6fa5b01 JH |
18957 | (dump_cgraph_node): Dump can throw external flag. |
18958 | * ipa-pure-const.c (propagate): Fix propagation of nothrow flags. | |
18959 | ||
ca409efd MLI |
18960 | 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
18961 | ||
18962 | PR c/32061 | |
18963 | PR c++/36954 | |
18964 | * doc/invoke.texi: Add -Wlogical-op to -Wextra. | |
18965 | * common.opt (Wlogical-op): Move from here... | |
18966 | * c.opt (Wlogical-op): ... to here. | |
18967 | * c-typeck.c (parser_build_binary_op): Update call to | |
18968 | warn_logical_operator. | |
18969 | * c-opts.c (c_common_post_options): Enable warn_logical_op with | |
18970 | extra_warnings. | |
18971 | * c-common.c (warn_logical_op): Update. | |
18972 | * c-common.h (warn_logical_op): Update declaration. | |
18973 | ||
9db4cdd3 EB |
18974 | 2009-04-19 Eric Botcazou <ebotcazou@adacore.com> |
18975 | ||
18976 | * tree.c (protected_set_expr_location): Fix formatting. | |
18977 | ||
f37acdf9 JM |
18978 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
18979 | ||
18980 | PR c/27676 | |
18981 | * c-typeck.c (readonly_warning): new. | |
18982 | (build_unary_op, build_modify_expr): Use readonly_warning for | |
18983 | storing into something readonly but not const-qualified. | |
18984 | ||
2b4b7036 JM |
18985 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
18986 | ||
18987 | PR c/22367 | |
18988 | * c-typeck.c (build_unary_op): Check for taking address of | |
18989 | expression of type void. | |
18990 | ||
3ce62965 JM |
18991 | 2009-04-18 Joseph Myers <joseph@codesourcery.com> |
18992 | ||
18993 | PR c/35210 | |
18994 | * c-typeck.c (build_function_call): Check for calling a function | |
18995 | with qualified void return types. Call require_complete_type when | |
18996 | generating a trap. | |
18997 | ||
2505c5ed JH |
18998 | 2009-04-18 Jan Hubicka <jh@suse.cz> |
18999 | ||
19000 | * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt): | |
19001 | Set nothrow flag. | |
19002 | * cgraph.h (struct function): Reduce loop_nest to 30 bits; add | |
19003 | can_throw_external flag. | |
19004 | * ipa-reference.c (ipa_utils_reduced_inorder): Update call. | |
19005 | * ipa-pure-const.c (ignore_edge): New function. | |
19006 | (propagate): Compute order for NOTHROW computation; set NOTHROWs | |
19007 | only over can_throw_external edges. | |
19008 | (local_pure_const): Add nothrow flag. | |
19009 | * ipa-utils.c (searchc): Add ignore_edge callback. | |
19010 | (ipa_utils_reduced_inorder): Add ignore_edge callback. | |
19011 | * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype. | |
19012 | (set_nothrow_function_flags): Update cgraph. | |
19013 | * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode. | |
19014 | ||
2586ba4b RG |
19015 | 2009-04-18 Richard Guenther <rguenther@suse.de> |
19016 | ||
19017 | PR middle-end/39804 | |
19018 | * tree-ssa-ccp.c (fold_stmt_1): New function factored from ... | |
19019 | (fold_stmt): ... this and ... | |
19020 | (fold_stmt_inplace): ... this. | |
19021 | (fold_stmt_1): Fold references in calls and asms. | |
19022 | * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt. | |
19023 | ||
1eefab17 KH |
19024 | 2009-04-18 Kazu Hirata <kazu@codesourcery.com> |
19025 | ||
19026 | * tree-vrp.c (ssa_name_nonzero_p): Remove. | |
19027 | * tree.h: Remove the prototype for ssa_name_nonzero_p. | |
19028 | ||
aa424b01 KH |
19029 | 2009-04-18 Kazu Hirata <kazu@codesourcery.com> |
19030 | ||
19031 | * tree.c (function_args_count): Remove. | |
19032 | * tree.h: Remove the prototype for function_args_count. | |
19033 | ||
613a896b KH |
19034 | 2009-04-18 Kazu Hirata <kazu@codesourcery.com> |
19035 | ||
19036 | * tree-iterator.c (expr_only): Remove. | |
19037 | * tree.h: Remove the prototype for expr_only. | |
19038 | ||
579e694c KH |
19039 | 2009-04-18 Kazu Hirata <kazu@codesourcery.com> |
19040 | ||
19041 | * reginfo.c (cannot_change_mode_set_regs): Remove. | |
19042 | * rtl.h: Remove the prototype for cannot_change_mode_set_regs. | |
19043 | ||
ee7e3ad3 AS |
19044 | 2009-04-08 Anatoly Sokolov <aesok@post.ru> |
19045 | ||
19046 | * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check | |
19047 | whether operands 0 and 1 overlaps. | |
19048 | ||
92ef7fb1 MLI |
19049 | 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
19050 | ||
19051 | PR middle-end/36902 | |
19052 | * tree-vrp.c (check_array_ref): Pass a location_t instead of a | |
19053 | pointer. Use warning_at instead of warning. | |
19054 | (search_for_addr_array): Likewise. | |
19055 | (check_array_bounds): Likewise. | |
19056 | (check_all_array_refs): Check that the incoming edge is not in the | |
19057 | list of edges to be removed. | |
19058 | (check_all_array_refs): Avoid the temporal pointer. | |
19059 | (vrp_visit_cond_stmt): Fix typo. | |
19060 | (simplify_switch_using_ranges): Handle the case where the switch | |
19061 | index is an integer constant. | |
19062 | ||
0e097268 AN |
19063 | 2009-04-18 Adam Nemet <anemet@caviumnetworks.com> |
19064 | ||
19065 | * config/mips/mips.c (mips_final_postscan_insn): Make it static. | |
19066 | ||
c782f1dd KH |
19067 | 2009-04-18 Kazu Hirata <kazu@codesourcery.com> |
19068 | ||
19069 | * doc/extend.texi, doc/invoke.texi: Fix typos. | |
19070 | ||
668fb0e8 CC |
19071 | 2009-04-17 Cary Coutant <ccoutant@google.com> |
19072 | ||
19073 | * tree-flow-inline.h (get_lineno): Fix inverted test. | |
19074 | ||
4d4014c1 DN |
19075 | 2009-04-17 Diego Novillo <dnovillo@google.com> |
19076 | ||
19077 | * tree-ssa-pre.c (create_expression_by_pieces): Remove | |
19078 | assertion for AVAIL_OUT. | |
19079 | ||
2984e1b6 MF |
19080 | 2009-04-17 Mike Frysinger <vapier@gentoo.org> |
19081 | ||
19082 | PR target/38627 | |
19083 | * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack. | |
19084 | * config/sh/linux-atomic.asm: Likewise. | |
19085 | ||
9994a182 DN |
19086 | 2009-04-17 Diego Novillo <dnovillo@google.com> |
19087 | ||
19088 | * except.c (debug_eh_tree): New. | |
19089 | (struct eh_region, struct eh_status): Move ... | |
19090 | * except.h: ... here. | |
19091 | (add_type_for_runtime): Declare extern. | |
19092 | (lookup_type_for_runtime): Likewise. | |
19093 | (debug_eh_tree): Declare. | |
19094 | * Makefile.in (GTFILES): List except.h before except.c | |
19095 | ||
07485407 DN |
19096 | 2009-04-17 Diego Novillo <dnovillo@google.com> |
19097 | ||
47f402d1 | 19098 | * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL. |
07485407 DN |
19099 | * cgraphunit.c (cgraph_build_static_cdtor): Likewise. |
19100 | * tree-dfa.c (find_referenced_vars_in): Factor out of ... | |
19101 | (find_vars_r): ... here. | |
19102 | * tree-flow.h (find_referenced_vars_in): Declare. | |
19103 | * tree-ssa-pre.c (create_expression_by_pieces): Assert | |
19104 | that AVAIL_OUT exists for BLOCK. | |
19105 | * Makefile.in (CGRAPH_H): Add dependency on cif-code.def | |
19106 | (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H. | |
19107 | (tree-parloops.o): Likewise. | |
19108 | ||
4e53d196 SB |
19109 | 2009-04-17 Simon Baldwin <simonb@google.com> |
19110 | ||
19111 | * toplev.c (default_tree_printer): Add handling for %E format. | |
19112 | ||
413d3aa8 DN |
19113 | 2009-04-17 Diego Novillo <dnovillo@google.com> |
19114 | ||
47f402d1 UB |
19115 | * tree-pretty-print.c (dump_generic_node): Add break after |
19116 | TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and | |
19117 | FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and | |
19118 | FUNCTION_TYPE together. Call print_struct_decl when printing | |
19119 | structures and TDF_SLIM is not given. | |
413d3aa8 DN |
19120 | (print_struct_decl): Fix logic for detecting recursion. |
19121 | ||
5a691e98 RAE |
19122 | 2009-04-17 Rafael Avila de Espindola <espindola@google.com> |
19123 | ||
19124 | PR 31567 | |
19125 | * gcc.c (create_at_file): New. | |
19126 | (compile_input_file_p): New. | |
19127 | (do_spec_1): Use @args files for %i. Use create_at_file for %o. | |
19128 | * main.c (main): Update call to toplev_main. | |
19129 | * toplev.c (toplev_main): Change signature. Call expandargv. | |
19130 | * toplev.h (toplev_main): Change signature. | |
19131 | ||
9eacf7a6 EB |
19132 | 2009-04-17 Eric Botcazou <ebotcazou@adacore.com> |
19133 | ||
19134 | * dwarf2out.c (field_byte_offset): Use the type size as the field size | |
19135 | if the latter is not constant. | |
19136 | ||
58298177 DE |
19137 | 2009-04-17 David Edelsohn <edelsohn@gnu.org> |
19138 | ||
19139 | * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing. | |
19140 | ||
5b4c43d7 EB |
19141 | 2009-04-17 Eric Botcazou <ebotcazou@adacore.com> |
19142 | ||
19143 | * dbxout.c (dbxout_block): Reinstate test on TREE_USED. | |
19144 | * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit. | |
19145 | ||
b51605c4 RG |
19146 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19147 | ||
19148 | * tree-ssa-structalias.c (get_constraint_for_component_ref): | |
19149 | Handle component references view-converting an invariant address. | |
19150 | ||
9e3be889 AN |
19151 | 2009-04-17 Adam Nemet <anemet@caviumnetworks.com> |
19152 | ||
19153 | * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS, | |
19154 | TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET, | |
19155 | TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS, | |
19156 | TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO): | |
19157 | Use @deftypevr rather than @deftypevar. | |
19158 | ||
7c3e9dc3 RG |
19159 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19160 | ||
47f402d1 | 19161 | * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification. |
7c3e9dc3 RG |
19162 | (get_prop_source_stmt): Likewise. |
19163 | (can_propagate_from): Likewise. | |
19164 | ||
aca600aa AS |
19165 | 2009-04-17 Andrew Stubbs <ams@codesourcery.com> |
19166 | ||
19167 | * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG, | |
19168 | TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG. | |
19169 | (--with-multilib-list): Add default value. | |
19170 | * configure: Regenerate. | |
19171 | * Makefile.in (TM_ENDIAN_CONFIG): Define. | |
19172 | (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define. | |
19173 | * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG, | |
19174 | TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG. | |
19175 | Don't add default cpu to multilib list unnecessarily, but do enable | |
19176 | the relevant compiler option.. | |
19177 | Add support for --with-multilib-list=<blank> and | |
19178 | --with-multilib-list=!<somelib> to supress unwanted multilibs. | |
19179 | * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables. | |
19180 | (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables. | |
19181 | (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and | |
19182 | TM_MULTILIB_CONFIG. | |
19183 | (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG. | |
19184 | (MULTILIB_OSDIRNAMES): New variable. | |
19185 | * config/sh/t-1e: Delete file. | |
19186 | * config/sh/t-mlib-sh1: Delete file. | |
19187 | * config/sh/t-mlib-sh2: Delete file. | |
19188 | * config/sh/t-mlib-sh2a: Delete file. | |
19189 | * config/sh/t-mlib-sh2a-nofpu: Delete file. | |
19190 | * config/sh/t-mlib-sh2a-single: Delete file. | |
19191 | * config/sh/t-mlib-sh2a-single-only: Delete file. | |
19192 | * config/sh/t-mlib-sh2e: Delete file. | |
19193 | * config/sh/t-mlib-sh3e: Delete file. | |
19194 | * config/sh/t-mlib-sh4: Delete file. | |
19195 | * config/sh/t-mlib-sh4-nofpu: Delete file. | |
19196 | * config/sh/t-mlib-sh4-single: Delete file. | |
19197 | * config/sh/t-mlib-sh4-single-only: Delete file. | |
19198 | * config/sh/t-mlib-sh4a: Delete file. | |
19199 | * config/sh/t-mlib-sh4a-nofpu: Delete file. | |
19200 | * config/sh/t-mlib-sh4a-single: Delete file. | |
19201 | * config/sh/t-mlib-sh4a-single-only: Delete file. | |
19202 | * config/sh/t-mlib-sh4al: Delete file. | |
19203 | * config/sh/t-mlib-sh5-32media: Delete file. | |
19204 | * config/sh/t-mlib-sh5-32media-nofpu: Delete file. | |
19205 | * config/sh/t-mlib-sh5-64media: Delete file. | |
19206 | * config/sh/t-mlib-sh5-64media-nofpu: Delete file. | |
19207 | * config/sh/t-mlib-sh5-compact: Delete file. | |
19208 | * config/sh/t-mlib-sh5-compact-nofpu: Delete file. | |
19209 | * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS. | |
19210 | * doc/install.texi (Options specification): Add | |
19211 | --with-multilib-list and --with-endian. | |
19212 | ||
cf8aba7f RAE |
19213 | 2009-04-17 Rafael Avila de Espindola <espindola@google.com> |
19214 | ||
19215 | * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use | |
19216 | REVISION_c. | |
19217 | (OBJS-common): Add plugin-version.o. | |
19218 | (plugin-version.o): New. | |
19219 | * gcc-plugin.h (plugin_gcc_version): New. | |
19220 | (plugin_default_version_check): New. | |
19221 | (plugin_init_func, plugin_init): Add version argument. | |
19222 | * plugin-version.c: New. | |
19223 | * plugin.c (str_plugin_gcc_version_name): New. | |
19224 | (try_init_one_plugin): Read plugin_gcc_version from the plugin and | |
19225 | pass it to the init function. | |
19226 | (plugin_default_version_check): New. | |
19227 | ||
61e20b90 RG |
19228 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19229 | ||
19230 | * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA | |
19231 | for decl-vs-decl disambiguation. | |
19232 | ||
90c6fd8a AK |
19233 | 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com> |
19234 | ||
19235 | * config/s390/s390.h (s390_tune_attr): New macro definition. | |
19236 | * config/s390/s390.md (cpu attribute): Map to s390_tune_attr. | |
19237 | ||
9fe9fe04 RG |
19238 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19239 | ||
19240 | * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove. | |
19241 | (fold_stmt_r): Likewise. | |
19242 | (maybe_fold_reference): New function. | |
19243 | (fold_gimple_assign): Handle cases fold_stmt_r did. | |
19244 | (fold_stmt): Do not use fold_stmt_r. | |
19245 | (fold_stmt_inplace): Likewise. | |
19246 | ||
7e673273 RG |
19247 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19248 | ||
19249 | * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove. | |
19250 | (record_equivalences_from_stmt): Remove useless checks and | |
19251 | simplifications. | |
19252 | * tree-ssa-pre.c (eliminate): Avoid converting a constant if | |
19253 | the type is already suitable. | |
19254 | ||
fabf2749 PB |
19255 | 2009-04-17 Paolo Bonzini <bonzini@gnu.org> |
19256 | ||
19257 | * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes. | |
19258 | ||
68f7b061 UB |
19259 | 2009-04-17 Uros Bizjak <ubizjak@gmail.com> |
19260 | ||
19261 | * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef. | |
19262 | (CMPtype): Define as __gcc_CMPtype. | |
19263 | ||
532bfb0a AJ |
19264 | 2009-04-17 Aurelien Jarno <aurelien@aurel32.net> |
19265 | ||
19266 | * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file | |
19267 | for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*. | |
19268 | ||
e3ac77ff RG |
19269 | 2009-04-17 Richard Guenther <rguenther@suse.de> |
19270 | ||
19271 | PR tree-optimization/39746 | |
19272 | * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove | |
19273 | special-casing for builtins and static variable use/def. | |
19274 | (call_may_clobber_ref_p_1): Likewise. | |
19275 | ||
7072a650 ILT |
19276 | 2009-04-16 Ian Lance Taylor <iant@google.com> |
19277 | ||
19278 | * df.h: Include "timevar.h". | |
19279 | (struct df_problem): Change tv_id field to timevar_id_t. | |
19280 | * tree-pass.h: Include "timevar.h". | |
19281 | (struct opt_pass): Change tv_id field to timevar_id_t. | |
19282 | * timevar.h (timevar_id_t): Define TV_NONE. | |
19283 | * passes.c (execute_one_ipa_transform_pass): Check for tv_id != | |
19284 | TV_NONE rather than tv_id != 0. | |
19285 | (execute_one_pass): Likewise. | |
19286 | * Makefile.in (DF_H): Add $(TIMEVAR_H). | |
19287 | (TREE_PASS_H): Define. Change all instances of tree-pass.h in | |
19288 | dependencies to $(TREE_PASS_H). | |
19289 | * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field | |
19290 | to TV_NONE. | |
19291 | (pass_branch_target_load_optimize2): Likewise. | |
19292 | * cfglayout.c (pass_into_cfg_layout_mode): Likewise. | |
19293 | (pass_outof_cfg_layout_mode): Likewise. | |
19294 | * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise. | |
19295 | (pass_rebuild_cgraph_edges): Likewise. | |
19296 | (pass_remove_cgraph_callee_edges): Likewise. | |
19297 | * df-core.c (pass_df_initialize_opt): Likewise. | |
19298 | (pass_df_initialize_no_opt): Likewise. | |
19299 | (pass_df_finish): Likewise. | |
19300 | * emit-rtl.c (pass_unshare_all_rtl): Likewise. | |
19301 | * except.c (pass_set_nothrow_function_flags): Likewise. | |
19302 | (pass_convert_to_eh_region_ranges): Likewise. | |
19303 | * final.c (pass_compute_alignments): Likewise. | |
19304 | * function.c (pass_instantiate_virtual_regs): Likewise. | |
19305 | (pass_init_function): Likewise. | |
19306 | (pass_leaf_regs): Likewise. | |
19307 | (pass_match_asm_constraints): Likewise. | |
19308 | * gimple-low.c (pass_lower_cf): Likewise. | |
19309 | (pass_mark_used_blocks): Likewise. | |
19310 | * init-regs.c (pass_initialize_regs): Likewise. | |
19311 | * integrate.c (pass_initial_value_sets): Likewise. | |
19312 | * ira.c (pass_ira): Likewise. | |
19313 | * jump.c (pass_cleanup_barriers): Likewise. | |
19314 | * omp-low.c (pass_expand_omp): Likewise. | |
19315 | (pass_lower_omp): Likewise. | |
19316 | * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise. | |
19317 | * recog.c (pass_split_all_insns): Likewise. | |
19318 | (pass_split_after_reload): Likewise. | |
19319 | (pass_split_before_regstack): Likewise. | |
19320 | (pass_split_before_sched2): Likewise. | |
19321 | (pass_split_for_shorten_branches): Likewise. | |
19322 | * reginfo.c (pass_reginfo_init): Likewise. | |
19323 | (pass_subregs_of_mode_init): Likewise. | |
19324 | (pass_subregs_of_mode_finish): Likewise. | |
19325 | * passes.c (pass_postreload): Likewise. | |
19326 | * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise. | |
19327 | * tree-cfg.c (pass_remove_useless_stmts): Likewise. | |
19328 | (pass_warn_function_return): Likewise. | |
19329 | (pass_warn_function_noreturn): Likewise. | |
19330 | * tree-complex.c (pass_lower_complex): Likewise. | |
19331 | (pass_lower_complex_O0): Likewise. | |
19332 | * tree-if-conv.c (pass_if_conversion): Likewise. | |
19333 | * tree-into-ssa.c (pass_build_ssa): Likewise. | |
19334 | * tree-mudflap.c (pass_mudflap_1): Likewise. | |
19335 | (pass_mudflap_2): Likewise. | |
19336 | * tree-nomudflap.c (pass_mudflap_1): Likewise. | |
19337 | (pass_mudflap_2): Likewise. | |
19338 | * tree-nrv.c (pass_return_slot): Likewise. | |
19339 | * tree-object-size.c (pass_object_sizes): Likewise. | |
19340 | * tree-optimize.c (pass_all_optimizations): Likewise. | |
19341 | (pass_early_local_passes): Likewise. | |
19342 | (pass_all_early_optimizations): Likewise. | |
19343 | (pass_cleanup_cfg): Likewise. | |
19344 | (pass_cleanup_cfg_post_optimizing): Likewise. | |
19345 | (pass_free_datastructures): Likewise. | |
19346 | (pass_free_cfg_annotations): Likewise. | |
19347 | (pass_fixup_cfg): Likewise. | |
19348 | (pass_init_datastructures): Likewise. | |
19349 | * tree-ssa.c (pass_early_warn_uninitialized): Likewise. | |
19350 | (pass_late_warn_uninitialized): Likewise. | |
19351 | (pass_update_address_taken): Likewise. | |
19352 | * tree-ssa-ccp.c (pass_fold_builtins): Likewise. | |
19353 | * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise. | |
19354 | (pass_cse_sincos): Likewise. | |
19355 | (pass_convert_to_rsqrt): Likewise. | |
19356 | * tree-ssa-structalias.c (pass_build_alias): Likewise. | |
19357 | * tree-stdarg.c (pass_stdarg): Likewise. | |
19358 | * tree-tailcall.c (pass_tail_recursion): Likewise. | |
19359 | (pass_tail_calls): Likewise. | |
19360 | * tree-vect-generic.c (pass_lower_vector): Likewise. | |
19361 | (pass_lower_vector_ssa): Likewise. | |
19362 | * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise. | |
19363 | ||
0051ef59 JM |
19364 | 2009-04-16 Joseph Myers <joseph@codesourcery.com> |
19365 | ||
19366 | * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in | |
19367 | XLR entry. | |
19368 | * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): | |
19369 | Handle -march=xlr. | |
19370 | * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move, | |
19371 | logical and signext. | |
19372 | ||
b3f8558a KK |
19373 | 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org> |
19374 | ||
19375 | PR target/39767 | |
19376 | * config/sh/predicates.md (arith_operand): Check if the operand | |
19377 | of TRUNCATE is a REG. | |
19378 | ||
f57597d9 KH |
19379 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19380 | ||
19381 | * cfgrtl.c (delete_insn_chain_and_edges): Remove. | |
19382 | * rtl.h: Remove the prototype for delete_insn_chain_and_edges. | |
19383 | ||
b172d063 KH |
19384 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19385 | ||
19386 | * tree-iterator.c (tsi_split_statement_list_after, | |
19387 | tsi_split_statement_list_before): Remove. | |
19388 | * tree-iterator.h: Remove the prototypes for | |
532bfb0a | 19389 | tsi_split_statement_list_after and tsi_split_statement_list_before. |
b172d063 | 19390 | |
78fe4f1f KH |
19391 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19392 | ||
19393 | * tree-ssa-propagate.c (stmt_makes_single_load): Remove. | |
19394 | * tree-ssa-propagate.h: Remove the prototype for | |
19395 | stmt_makes_single_load. | |
19396 | ||
43dd3201 KH |
19397 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19398 | ||
19399 | * emit-rtl.c (set_mem_attrs_from_reg): Remove. | |
19400 | * rtl.h: Remove the prototype for set_mem_attrs_from_reg. | |
19401 | ||
4252a4aa KH |
19402 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19403 | ||
19404 | * tree-iterator.c (EXPR_LAST_BODY): Remove. | |
19405 | ||
bfb69968 KH |
19406 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19407 | ||
19408 | * except.c (eh_region_outer_p): Remove. | |
19409 | * except.h: Remove the prototype for eh_region_outer_p. | |
19410 | ||
c7db7fa5 KH |
19411 | 2009-04-16 Kazu Hirata <kazu@codesourcery.com> |
19412 | ||
19413 | * function.c (current_function_assembler_name): Remove. | |
19414 | * function.h: Remove the prototype for | |
19415 | current_function_assembler_name. | |
19416 | ||
efc0b2bd ILT |
19417 | 2009-04-16 Ian Lance Taylor <iant@google.com> |
19418 | ||
532bfb0a | 19419 | * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note. |
efc0b2bd ILT |
19420 | (add_reg_note): Call alloc_reg_note. |
19421 | * rtl.h (alloc_reg_note): Declare. | |
19422 | * combine.c (try_combine): Use alloc_reg_note. | |
19423 | (recog_for_combine, move_deaths): Likewise. | |
19424 | (distribute_notes): Use alloc_reg_note and add_reg_note. | |
19425 | * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note. | |
19426 | * combine-stack-adj.c (adjust_frame_related_expr): Likewise. | |
19427 | * reload1.c (eliminate_regs_1): Use alloc_reg_note. | |
19428 | ||
6080348f VM |
19429 | 2009-04-16 Vladimir Makarov <vmakarov@redhat.com> |
19430 | ||
19431 | PR rtl-optimization/39762 | |
19432 | * ira-int.h (ira_register_move_cost, ira_may_move_in_cost, | |
19433 | ira_may_move_out_cost): Add comments about way of their usage. | |
532bfb0a | 19434 | (ira_get_register_move_cost, ira_get_may_move_cost): New functions. |
2ba9daa7 | 19435 | |
6080348f VM |
19436 | * ira-conflicts.c (process_regs_for_copy): Use function |
19437 | ira_get_register_move_cost instead of global | |
19438 | ira_register_move_cost. | |
19439 | ||
19440 | * ira-color.c (update_copy_costs, calculate_allocno_spill_cost, | |
19441 | color_pass, move_spill_restore, update_curr_costs): Ditto. | |
19442 | ||
19443 | * ira-lives.c (process_single_reg_class_operands): Ditto. | |
19444 | ||
19445 | * ira-emit.c (emit_move_list): Ditto. | |
19446 | ||
19447 | * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost. | |
19448 | (record_reg_classes): Ditto. Use functions | |
19449 | ira_get_register_move_cost and ira_get_may_move_cost instead of | |
19450 | global vars ira_register_move_cost, ira_may_move_out_cost and | |
19451 | ira_may_move_in_cost. | |
19452 | (record_address_regs): Don't call ira_init_register_move_cost. | |
19453 | Use function ira_get_may_move_cost instead of global | |
19454 | ira_may_move_in_cost. | |
19455 | (process_bb_node_for_hard_reg_moves): Use function | |
532bfb0a | 19456 | ira_get_register_move_cost instead of global ira_register_move_cost. |
6080348f | 19457 | (ira_costs): Don't call ira_init_register_move_cost. |
2ba9daa7 | 19458 | |
646bea10 RG |
19459 | 2009-04-16 Richard Guenther <rguenther@suse.de> |
19460 | ||
19461 | * tree-cfg.c (verify_gimple_assign_binary): | |
19462 | Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors. | |
19463 | * ipa-struct-reorg.c (gen_size): Fold the built expressions. | |
19464 | (create_general_new_stmt): Note that this function is broken. | |
19465 | ||
02e819ff RAE |
19466 | 2009-04-16 Rafael Avila de Espindola <espindola@google.com> |
19467 | ||
19468 | * common.opt (fhelp): Add Var(help_flag). | |
19469 | * gcc-plugin.h (plugin_info): Add help. | |
19470 | * plugin.c (plugin_name_args): Add help. | |
19471 | (register_plugin_info): Set plugin->help. | |
19472 | (print_help_one_plugin): New. | |
19473 | (print_plugins_help): New. | |
19474 | * plugin.h (print_plugins_help): New. | |
19475 | * toplev.c (toplev_main): Call print_plugins_help if needed. | |
19476 | ||
ccacdf06 RG |
19477 | 2009-04-16 Richard Guenther <rguenther@suse.de> |
19478 | ||
19479 | * gimple.c (gimple_copy): Do not clear addresses_taken bitmap. | |
19480 | (gimple_ior_addresses_taken_1): New function. | |
19481 | (gimple_ior_addresses_taken): Likewise. | |
19482 | * gimple.h (struct gimple_statement_with_ops_base): Remove | |
19483 | addresses_taken member. | |
19484 | (gimple_ior_addresses_taken): Declare. | |
19485 | (gimple_addresses_taken, gimple_addresses_taken_ptr, | |
19486 | gimple_set_addresses_taken): Remove. | |
19487 | * ipa-reference.c (mark_address): New function. | |
19488 | (scan_stmt_for_static_refs): Use it for marking addresses taken. | |
19489 | * tree-ssa-operands.c (add_to_addressable_set): Rename to ... | |
19490 | (mark_address_taken): ... this. Just set TREE_ADDRESSABLE. | |
19491 | (gimple_add_to_addresses_taken): Remove. | |
19492 | (get_tmr_operands): Call mark_address_taken. | |
19493 | (get_asm_expr_operands): Likewise. | |
19494 | (get_expr_operands): Likewise. | |
19495 | (build_ssa_operands): Do not clear the addresses_taken bitmap. | |
19496 | (free_stmt_operands): Do not free it. | |
19497 | * tree-ssa.c (delete_tree_ssa): Likewise. | |
19498 | (execute_update_addresses_taken): Use gimple_ior_addresses_taken. | |
19499 | ||
346ef3fa RG |
19500 | 2009-04-16 Richard Guenther <rguenther@suse.de> |
19501 | ||
19502 | * gimple.h (walk_stmt_load_store_addr_ops): Declare. | |
19503 | (walk_stmt_load_store_ops): Likewise. | |
19504 | * gimple.c (get_base_loadstore): New function. | |
19505 | (walk_stmt_load_store_addr_ops): Likewise. | |
19506 | (walk_stmt_load_store_ops): Likewise. | |
19507 | * ipa-pure-const.c (check_op): Simplify. | |
19508 | (check_load, check_store): New functions. | |
19509 | (check_stmt): Use walk_stmt_load_store_ops. | |
19510 | * ipa-reference.c (mark_load): Adjust signature. | |
19511 | (mark_store): Likewise. | |
19512 | (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops. | |
19513 | ||
44e9f006 RAE |
19514 | 2009-04-16 Rafael Avila de Espindola <espindola@google.com> |
19515 | ||
19516 | * gcc-plugin.h (plugin_event): Add PLUGIN_INFO. | |
19517 | (plugin_info): New. | |
19518 | * opts.c (common_handle_option): Don't call print_version. | |
19519 | * plugin.c (plugin_name_args): Add version. | |
19520 | (register_plugin_info): New. | |
19521 | (register_callback): Handle PLUGIN_INFO. | |
19522 | (try_init_one_plugin): New. | |
19523 | (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args | |
19524 | if failed to init. | |
19525 | (finalize_one_plugin): New. | |
19526 | (finalize_plugins): New. | |
19527 | (print_one_plugin): New. | |
19528 | (print_plugins_versions): New. | |
19529 | * plugin.h (print_plugins_versions): New. | |
19530 | (finalize_plugins): New. | |
19531 | * toplev.c (compile_file): Don't call initialize_plugins. | |
19532 | (print_version): Call print_plugins_versions. | |
19533 | (toplev_main): Call initialize_plugins. Print version if needed. | |
19534 | Call finalize_plugins. | |
19535 | ||
41fd0f9b RAE |
19536 | 2009-04-16 Rafael Avila de Espindola <espindola@google.com> |
19537 | ||
19538 | * common.opt (fversion): New. | |
19539 | * gcc.c (print_version): New. | |
19540 | (process_command): Don't print the version. Just set print_version. | |
19541 | (main): Print version. Call subprocesses if print_version and | |
19542 | verbose_flag are set. | |
19543 | * opts.c (common_handle_option): Handle OPT_fversion. | |
19544 | ||
550918ca | 19545 | 2009-04-16 Richard Guenther <rguenther@suse.de> |
532bfb0a | 19546 | Ira Rosen <irar@il.ibm.com> |
550918ca RG |
19547 | |
19548 | PR tree-optimization/39698 | |
19549 | * tree-vect-loop.c (get_initial_def_for_reduction): Use the | |
19550 | type of the reduction variable. Only generate the def if | |
19551 | it is needed. | |
19552 | ||
19553 | * omp-low.c (expand_omp_for_generic): When converting to a pointer | |
19554 | make sure to first convert to an integer of the same precision. | |
19555 | * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain | |
19556 | the type of the evolution correctly in computing the new | |
19557 | induction variable base. | |
19558 | ||
54634841 RG |
19559 | 2009-04-16 Richard Guenther <rguenther@suse.de> |
19560 | ||
19561 | PR middle-end/39625 | |
19562 | * tree-cfg.c (make_blocks): Split statements with to-be | |
19563 | abnormal SSA names on the lhs. | |
19564 | ||
b6fc2cdb PB |
19565 | 2009-04-16 Paolo Bonzini <bonzini@gnu.org> |
19566 | ||
19567 | * c-common.c (vector_targets_convertible_p, vector_types_convertible_p): | |
19568 | Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p. | |
19569 | * c-typeck.c (really_start_incremental_init): Likewise. | |
19570 | * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove. | |
19571 | (TARGET_INITIALIZER): Remove it. | |
19572 | * target.h (struct target): Remove vector_opaque_p. | |
19573 | * tree.c (build_opaque_vector_type): New. | |
19574 | * tree.h (TYPE_VECTOR_OPAQUE): New. | |
19575 | (build_opaque_vector_type): Declare. | |
19576 | * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove. | |
19577 | * config/rs6000/rs6000.c (build_opaque_vector_type, | |
19578 | rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove. | |
19579 | (rs6000_init_builtins): Use build_opaque_vector_type for | |
19580 | opaque_V4SI_type_node. | |
19581 | ||
a417cdd9 CM |
19582 | 2009-04-15 Catherine Moore <clm@codesourcery.com> |
19583 | ||
532bfb0a AJ |
19584 | * debug.h (set_name): Declare. |
19585 | * dwarf2out.c (dwarf2out_set_name): Declare. | |
19586 | (dwarf2_debug_hooks): Add set_name. | |
19587 | (find_AT_string): New. | |
19588 | (add_AT_string): Call find_AT_string. | |
19589 | (dwarf2out_set_name): New. | |
19590 | * cp/decl.c (grokdeclarator): Call set_name. | |
19591 | * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing. | |
19592 | * debug.c (do_nothing_debug_hooks): Likewise. | |
19593 | * dbxout.c (dbx_debug_hooks): Likewise. | |
19594 | * sdbout.c (sdb_debug_hooks): Likewise. | |
a417cdd9 | 19595 | |
60839f5d | 19596 | 2009-04-15 Michael Eager <eager@eagercon.com> |
2c5cac98 | 19597 | |
532bfb0a AJ |
19598 | * config/rs6000/rs6000.c (rs6000_function_value): Set function return |
19599 | reg for single-precision FPU. | |
19600 | * config/rs6000/rs6000.md (movsi_internal1): Only for | |
19601 | !TARGET_SINGLE_FPU. | |
19602 | (movsi_internal1_single): New. Add pattern to move SI values to/from | |
2c5cac98 ME |
19603 | single-precision FP regs. |
19604 | ||
ada39f0b RG |
19605 | 2009-04-15 Richard Guenther <rguenther@suse.de> |
19606 | ||
19607 | * omp-low.c (lower_rec_input_clauses): Build correct address | |
19608 | expressions. | |
19609 | (expand_omp_for_generic): Fix multiplication type. | |
532bfb0a | 19610 | * tree-loop-distribution.c (build_size_arg): Build a size_t argument. |
ada39f0b RG |
19611 | (generate_memset_zero): Fix types. |
19612 | * tree-profile.c (prepare_instrumented_value): Correctly | |
19613 | widen a pointer. | |
19614 | ||
6866c6e8 ILT |
19615 | 2009-04-15 Ian Lance Taylor <iant@google.com> |
19616 | ||
19617 | * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1. | |
19618 | * c-opts.c (c_common_handle_option): For C, set warn_enum_compare | |
19619 | for -Wall and for -Wc++-compat. | |
19620 | (c_common_post_options): For C++, set warn_enum_compare if not | |
19621 | already set. | |
19622 | * c-tree.h (struct c_expr): Add field original_type. | |
19623 | (build_external_ref): Update declaration. | |
19624 | * c-parser.c (c_parser_braced_init): Set original_type. | |
19625 | (c_parser_initelt): Likewise. | |
19626 | (c_parser_expr_no_commas): Likewise. | |
19627 | (c_parser_conditional_expression): Likewise. | |
19628 | (c_parser_cast_expression): Likewise. | |
19629 | (c_parser_unary_expression): Likewise. Pull setting of | |
19630 | original_code to top of function. | |
19631 | (c_parser_sizeof_expression): Set original_type. | |
19632 | (c_parser_alignof_expression): Likewise. | |
19633 | (c_parser_postfix_expression): Likewise. Pull setting of | |
19634 | original_code to top of function. | |
532bfb0a | 19635 | (c_parser_postfix_expression_after_paren_type): Set original_type. |
6866c6e8 ILT |
19636 | (c_parser_postfix_expression_after_primary): Likewise. |
19637 | (c_parser_expression): Likewise. | |
19638 | * c-typeck.c (build_external_ref): Add type parameter. Change all | |
19639 | callers. | |
19640 | (c_expr_sizeof_expr): Set original_type field. | |
19641 | (parser_build_unary_op): Likewise. | |
19642 | (parser_build_binary_op): Likewise. Optionally warn about | |
19643 | comparisons of enums of different types. | |
19644 | (digest_init): Set original_type field. | |
19645 | (really_start_incremental_init): Likewise. | |
19646 | (push_init_level, pop_init_level): Likewise. | |
19647 | * doc/invoke.texi (Warning Options): -Wenum-compare now | |
19648 | supported in C. | |
19649 | ||
f116fecf RG |
19650 | 2009-04-15 Richard Guenther <rguenther@suse.de> |
19651 | ||
19652 | * tree-ssa-pre.c (eliminate): When replacing a PHI node carry | |
19653 | out a necessary conversion. | |
19654 | * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to | |
19655 | names we didn't value number. | |
19656 | * tree-mudflap.c (mf_build_check_statement_for): Use correct types. | |
19657 | ||
25e20805 RG |
19658 | 2009-04-15 Richard Guenther <rguenther@suse.de> |
19659 | ||
19660 | PR tree-optimization/39764 | |
19661 | * tree-ssa-ccp.c (get_value): Canonicalize value with | |
19662 | canonicalize_float_value. | |
19663 | ||
90cc3676 JH |
19664 | 2009-04-15 Jan Hubicka <jh@suse.cz> |
19665 | ||
19666 | * builtins.def (va_start, va_end, va_copy): Fix my previous commit. | |
19667 | Wrong version of patch. | |
19668 | ||
6d14c006 JH |
19669 | 2009-04-15 Jan Hubicka <jh@suse.cz> |
19670 | ||
19671 | * builtins.def (va_start, va_end, va_copy): Mark nothrow. | |
19672 | ||
5afaa917 NS |
19673 | 2009-04-15 Nathan Sidwell <nathan@codesourcery.com> |
19674 | ||
19675 | * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of | |
19676 | our distinct integral and vector types. | |
19677 | ||
3b482fca RAE |
19678 | 2009-04-15 Rafael Avila de Espindola <espindola@google.com> |
19679 | ||
19680 | * class.c (build_vtbl_ref_1): Remove call to assemble_external. | |
19681 | * init.c (build_vtbl_address): Remove call to assemble_external. | |
19682 | ||
6cd1d2e2 DJ |
19683 | 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
19684 | ||
19685 | * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug | |
19686 | output for other floating point modes. | |
19687 | ||
dab71827 DN |
19688 | 2009-04-14 Diego Novillo <dnovillo@google.com> |
19689 | ||
19690 | * diagnostic.c (diagnostic_report_diagnostic): Do not | |
19691 | warn about loaded plugins for DK_ERROR and DK_WARNING. | |
19692 | * c-decl.c (declspecs_add_type): Move call to | |
19693 | invoke_plugin_callbacks ... | |
19694 | * c-parser.c (c_parser_declspecs): ... here. | |
19695 | * plugin.c (dump_active_plugins): Tidy output. | |
19696 | ||
68a607d8 DN |
19697 | 2009-04-14 Diego Novillo <dnovillo@google.com> |
19698 | Le-Chun Wu <lcwu@google.com> | |
19699 | ||
19700 | * configure.ac: Add --enable-plugin support. | |
19701 | Define ENABLE_PLUGIN and PLUGINLIBS when specified. | |
19702 | * Makefile.in (PLUGIN_H): Define. | |
19703 | Export ENABLE_PLUGIN and GMPINC to site.exp. | |
19704 | Add PLUGINLIBS to link command. | |
19705 | Add/modify dependencies for plugin.o and files including plugin.h. | |
19706 | (plugin.o): New. | |
19707 | * config.in: Regenerate. | |
2ba9daa7 | 19708 | |
68a607d8 DN |
19709 | * opts.c (common_handle_option): Handle OPT_fplugin_ and |
19710 | OPT_fplugin_arg_. | |
19711 | ||
19712 | 2009-04-14 Le-Chun Wu <lcwu@google.com> | |
19713 | ||
19714 | * tree-pass.h (register_one_dump_file): Add a prototype for | |
19715 | register_one_dump_file. | |
19716 | * toplev.c (compile_file): Call initialize_plugins. | |
19717 | (do_compile): Call invoke_plugin_callbacks. | |
19718 | (toplev_main): Call invoke_plugin_callbacks. | |
19719 | * common.opt: Add -fplugin= and -fplugin-arg-. | |
19720 | * gcc-plugin.h: New public header file for plugins to include. | |
19721 | * plugin.c: New source file. | |
19722 | * plugin.h: New internal header file. | |
19723 | * passes.c (register_one_dump_file): Make it external. | |
2ba9daa7 | 19724 | |
68a607d8 DN |
19725 | * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks. |
19726 | ||
19727 | 2009-04-14 Diego Novillo <dnovillo@google.com> | |
19728 | ||
19729 | * doc/plugins.texi: New. | |
19730 | * doc/gccint.texi: Add reference to Plugins chapter. | |
19731 | * doc/invoke.texi: Document -fplugin and -fplugin-arg | |
19732 | * diagnostic.c (diagnostic_report_diagnostic): Warn about | |
19733 | loaded plugins, if any. | |
19734 | * timevar.def (TV_PLUGIN_INIT): Define. | |
19735 | (TV_PLUGIN_RUN): Define. | |
19736 | * plugin.c: Include timevar.h | |
19737 | (plugins_active_p): New. | |
19738 | (dump_active_plugins): New. | |
19739 | (debug_active_plugins): New. | |
19740 | ||
50617257 JM |
19741 | 2009-04-14 Joseph Myers <joseph@codesourcery.com> |
19742 | ||
19743 | * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute | |
19744 | library paths. | |
19745 | * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise. | |
19746 | ||
b32f6fff KH |
19747 | 2009-04-14 Kazu Hirata <kazu@codesourcery.com> |
19748 | ||
19749 | * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift | |
19750 | the same as a minus without a shift. | |
19751 | ||
85d04fa2 NC |
19752 | 2009-04-14 Nick Clifton <nickc@redhat.com> |
19753 | ||
19754 | * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that | |
19755 | comparisons with small integers will always produce a short | |
19756 | branch. | |
19757 | ||
e495a0c8 RAE |
19758 | 2009-04-14 Rafael Avila de Espindola <espindola@google.com> |
19759 | ||
19760 | Merge: | |
e495a0c8 RAE |
19761 | 2008-12-19 Diego Novillo <dnovillo@google.com> |
19762 | ||
532bfb0a | 19763 | * cgraph.c (dump_cgraph_node): Show memory address of NODE. |
e495a0c8 | 19764 | |
ad41bd84 | 19765 | 2009-04-14 Richard Guenther <rguenther@suse.de> |
587aa063 RG |
19766 | |
19767 | * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code | |
19768 | verification. | |
19769 | (verify_gimple_assign_binary): Likewise. Handle shifts and | |
19770 | rotates correctly. | |
19771 | (verify_gimple_phi): Print the mismatched argument position. | |
19772 | * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): | |
19773 | Fix types. | |
19774 | (vect_update_init_of_dr): Likewise. | |
19775 | * matrix-reorg.c (transform_access_sites): Do what the | |
19776 | comment suggests. | |
19777 | * omp-low.c (expand_omp_atomic_pipeline): Use the correct types. | |
19778 | ||
60839f5d | 19779 | 2009-04-13 Michael Eager <eager@eagercon.com> |
9eca1774 ME |
19780 | |
19781 | * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu: | |
19782 | _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL | |
19783 | * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi | |
2ba9daa7 | 19784 | * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file, |
9eca1774 ME |
19785 | remove duplicate config |
19786 | ||
b0e2d008 DR |
19787 | 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> |
19788 | ||
19789 | * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump | |
19790 | file_name:line_number type locator of the call site. | |
2ba9daa7 | 19791 | |
1244a8b7 VM |
19792 | 2009-04-13 Vladimir Makarov <vmakarov@redhat.com> |
19793 | ||
19794 | * genautomata.c: Put blank after comma. | |
19795 | (automaton_decls): New. | |
19796 | (struct unit_usage): Add comments to member next. | |
19797 | (store_alt_unit_usage): Keep the list ordered. | |
19798 | (unit_present_on_list_p, equal_alternatives_p): New. | |
19799 | (check_regexp_units_distribution): Check units distribution | |
19800 | correctness correctly. | |
19801 | (main): Don't write automata if error is found. Return correct | |
19802 | exit code. | |
2ba9daa7 | 19803 | |
1244a8b7 VM |
19804 | * config/m68k/cf.md (cfv4_ds): Remove. |
19805 | (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3, | |
19806 | cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds. | |
19807 | ||
19808 | * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4, | |
19809 | power4-load-ext, power4-store, power4-store-update, | |
19810 | power4-fpstore, power4-fpstore-update, power4-two, power4-three, | |
19811 | power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp, | |
19812 | power4-lmul, , power4-imul, power4-imul3, power4-sdiv, | |
19813 | power4-sqrt, power4-isync): Modify reservation to make correct | |
19814 | unit distribution to automata. | |
19815 | ||
19816 | * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store, | |
19817 | power5-store-update, power5-two, power5-three, power5-lmul, | |
19818 | power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto. | |
2ba9daa7 | 19819 | |
f7dd1864 AN |
19820 | 2009-04-13 Adam Nemet <anemet@caviumnetworks.com> |
19821 | ||
19822 | * except.c (pass_set_nothrow_function_flags): Set name and add | |
19823 | TODO_dump_func. | |
19824 | (set_nothrow_function_flags): Mention in the dump file when | |
19825 | changing a function to nothrow. | |
19826 | ||
59a1171f OS |
19827 | 2009-04-13 Ozkan Sezer <sezeroz@gmail.com> |
19828 | ||
19829 | PR/39066 | |
19830 | * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__ | |
19831 | instead of unsigned long. | |
19832 | ||
934c2060 RR |
19833 | 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
19834 | ||
f7dd1864 AN |
19835 | * config/arm/arm.c (return_used_this_function): Remove. |
19836 | (arm_output_function_prologue): Remove use of | |
934c2060 | 19837 | return_used_this_function. |
f7dd1864 | 19838 | (output_return_instruction): Replace use of |
934c2060 RR |
19839 | return_used_this_function |
19840 | by cfun->machine->return_used_this_function. | |
f7dd1864 AN |
19841 | (arm_output_epilogue): Likewise. |
19842 | (arm_output_function_epilogue): Likewise. | |
19843 | (thumb_unexpanded_epilogue): Likewise. | |
19844 | * config/arm/arm.h (struct machine_function): | |
934c2060 | 19845 | New member return_used_this_function. |
f7dd1864 | 19846 | |
ae5cc016 MM |
19847 | 2009-04-12 Mark Mitchell <mark@codesourcery.com> |
19848 | ||
19849 | * doc/install.texi: Correct description of default directory for | |
19850 | --with-gxx-include-dir. | |
19851 | ||
a0ce68df | 19852 | 2009-04-12 Eric Botcazou <ebotcazou@adacore.com> |
849d624b EB |
19853 | |
19854 | * fold-const.c (build_range_check): Properly deal with enumeral and | |
19855 | boolean base types. | |
19856 | ||
3906a4a1 SB |
19857 | 2009-04-12 Steven Bosscher <steven@gcc.gnu.org> |
19858 | ||
19859 | * doc/invoke.texi (max_gcse_passes): Remove documentation. | |
19860 | * params.def (PARAM_MAX_GCSE_PASSES): Remove. | |
19861 | * params.h (MAX_GCSE_PASSES): Remove. | |
19862 | * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2 | |
19863 | in sequence. Remove ability to run multiple passes. | |
19864 | (bypass_jumps): Report run as third CPROP pass. | |
19865 | ||
efaadb93 AN |
19866 | 2009-04-12 Adam Nemet <anemet@caviumnetworks.com> |
19867 | ||
19868 | PR middle-end/39651 | |
19869 | * except.c (can_throw_external): Look at each insn in a SEQUENCE | |
19870 | when deciding whether the whole SEQUENCE can throw. | |
19871 | ||
4c48007b UB |
19872 | 2009-04-12 Uros Bizjak <ubizjak@gmail.com> |
19873 | ||
19874 | PR target/39740 | |
19875 | * config/alpha/predicates.md (local_symbolic_operand): Return 1 for | |
19876 | offseted label references. | |
19877 | ||
b4104018 JH |
19878 | 2009-04-11 Jan Hubicka <jh@suse.cz> |
19879 | ||
19880 | * tree-ssa-pre.c (eliminate): Fix call of update_stmt. | |
19881 | ||
32848948 RG |
19882 | 2009-04-11 Richard Guenther <rguenther@suse.de> |
19883 | ||
19884 | PR middle-end/39732 | |
19885 | * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE | |
19886 | return variables as TREE_ADDRESSABLE. | |
19887 | ||
8810712e RG |
19888 | 2009-04-11 Richard Guenther <rguenther@suse.de> |
19889 | ||
19890 | PR tree-optimization/39713 | |
19891 | * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built | |
19892 | reference trees have SSA_NAME operands. | |
19893 | ||
fa78c0c1 RG |
19894 | 2009-04-11 Richard Guenther <rguenther@suse.de> |
19895 | ||
19896 | PR c/39712 | |
19897 | * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched | |
19898 | address expressions. | |
19899 | ||
4d722130 DK |
19900 | 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com> |
19901 | ||
19902 | * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to | |
19903 | match changes in Cygwin 1.7 | |
19904 | (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE, | |
19905 | UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise. | |
19906 | ||
567a90f5 PB |
19907 | 2009-04-10 Paolo Bonzini <bonzini@gnu.org> |
19908 | ||
19909 | PR tree-optimization/39701 | |
19910 | * doc/invoke.texi (Optimization Options): Document change in | |
19911 | meaning and initialization of -fdelete-null-pointer-checks. | |
19912 | ||
1ad2f450 L |
19913 | 2009-04-10 H.J. Lu <hongjiu.lu@intel.com> |
19914 | ||
19915 | PR middle-end/39701 | |
19916 | * common.opt (-fdelete-null-pointer-checks): Initialize to 1. | |
19917 | ||
19918 | * opts.c (decode_options): Don't set flag_delete_null_pointer_checks | |
19919 | here. | |
19920 | ||
19921 | * doc/invoke.texi: Update -fdelete-null-pointer-checks. | |
19922 | ||
1afc5373 CF |
19923 | 2009-04-10 Chao-ying Fu <fu@mips.com> |
19924 | ||
19925 | * doc/tm.texi (Instruction Output): Document | |
19926 | TARGET_ASM_FINAL_POSTSCAN_INSN. | |
19927 | * target.h (final_postscan_insn): New field in asm_out. | |
19928 | * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define. | |
19929 | (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN. | |
19930 | * final.c (final_scan_insn): Call | |
19931 | targetm.asm_out.final_postscan_insn after outputting | |
19932 | an asm macro and a normal instruction. | |
19933 | ||
19934 | * config/mips/mips.h (FINAL_PRESCAN_INSN): New define. | |
19935 | * config/mips/mips-protos.h (mips_final_prescan_insn): Declare. | |
19936 | * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback. | |
19937 | (mips_final_prescan_insn, mips_final_postscan_insn): New functions. | |
19938 | (TARGET_ASM_FINAL_POSTSCAN_INSN): New define. | |
19939 | ||
4d35e75c PB |
19940 | 2009-04-10 Paolo Bonzini <bonzini@gnu.org> |
19941 | ||
19942 | PR middle-end/39701 | |
1ad2f450 L |
19943 | * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static |
19944 | variables as non-NULL even with -fdelete-null-pointer-checks. | |
4d35e75c | 19945 | |
62c49b83 L |
19946 | 2009-04-10 H.J. Lu <hongjiu.lu@intel.com> |
19947 | ||
19948 | * config/rs6000/darwin-vecsave.asm: Remove extra "*/". | |
19949 | ||
80558628 L |
19950 | 2009-04-09 H.J. Lu <hongjiu.lu@intel.com> |
19951 | ||
19952 | PR target/39678 | |
19953 | * config/i386/i386.c (classify_argument): Handle SCmode with | |
19954 | (bit_offset % 64) != 0. | |
19955 | ||
8c70d28b SL |
19956 | 2009-04-09 Sandra Loosemore <sandra@codesourcery.com> |
19957 | ||
19958 | * doc/invoke.texi (Optimize Options): Add cross-reference to | |
19959 | -Q --help=optimizers examples. | |
19960 | ||
e1ff19bf BE |
19961 | 2009-04-10 Ben Elliston <bje@au.ibm.com> |
19962 | ||
19963 | PR target/36800 | |
19964 | * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set | |
19965 | regalign for the reg == fpr and TDmode case. | |
19966 | ||
52daca75 DA |
19967 | 2009-04-09 David Ayers <ayers@fsfe.org> |
19968 | ||
19969 | PR objc/29200 | |
19970 | * objc/objc-act.c (warn_with_method): Remove helper function. | |
19971 | (check_duplicates): Call warning and inform directly. | |
19972 | (really_start_method): Likewise. | |
19973 | ||
b45f0e58 PB |
19974 | 2009-04-09 Paolo Bonzini <bonzini@gnu.org> |
19975 | ||
19976 | * expmed.c (expand_divmod): Always use a comparison for a division | |
19977 | by a large unsigned integer. | |
19978 | ||
1ad2f450 L |
19979 | * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls |
19980 | for things others than variables or functions as nonzero. | |
b45f0e58 | 19981 | |
748086b7 JJ |
19982 | 2009-04-09 Nick Clifton <nickc@redhat.com> |
19983 | ||
19984 | * unwind-compat.c: Change copyright header to refer to version | |
19985 | 3 of the GNU General Public License with version 3.1 of the | |
19986 | GCC Runtime Library Exception and to point readers at the | |
7a715bba | 19987 | COPYING3 and COPYING3.RUNTIME files and the FSF's license web page. |
748086b7 JJ |
19988 | * config/alpha/crtfastmath.c: Likewise. |
19989 | * config/alpha/linux-unwind.h: Likewise. | |
19990 | * config/alpha/qrnnd.asm: Likewise. | |
19991 | * config/alpha/vms-crt0-64.c: Likewise. | |
19992 | * config/alpha/vms-crt0.c: Likewise. | |
19993 | * config/alpha/vms-dwarf2.asm: Likewise. | |
19994 | * config/alpha/vms-dwarf2eh.asm: Likewise. | |
19995 | * config/alpha/vms-psxcrt0-64.c: Likewise. | |
19996 | * config/alpha/vms-psxcrt0.c: Likewise. | |
19997 | * config/alpha/vms_tramp.asm: Likewise. | |
19998 | * config/arc/initfini.c: Likewise. | |
19999 | * config/arc/lib1funcs.asm: Likewise. | |
20000 | * config/arm/bpabi-v6m.S: Likewise. | |
20001 | * config/arm/bpabi.S: Likewise. | |
20002 | * config/arm/bpabi.c: Likewise. | |
20003 | * config/arm/crti.asm: Likewise. | |
20004 | * config/arm/crtn.asm: Likewise. | |
20005 | * config/arm/ieee754-df.S: Likewise. | |
20006 | * config/arm/ieee754-sf.S: Likewise. | |
20007 | * config/arm/lib1funcs.asm: Likewise. | |
20008 | * config/arm/libunwind.S: Likewise. | |
20009 | * config/arm/linux-atomic.c: Likewise. | |
20010 | * config/arm/mmintrin.h: Likewise. | |
20011 | * config/arm/pr-support.c: Likewise. | |
20012 | * config/arm/unaligned-funcs.c: Likewise. | |
20013 | * config/arm/unwind-arm.c: Likewise. | |
20014 | * config/arm/unwind-arm.h: Likewise. | |
20015 | * config/avr/libgcc.S: Likewise. | |
20016 | * config/bfin/crti.s: Likewise. | |
20017 | * config/bfin/crtlibid.s: Likewise. | |
20018 | * config/bfin/crtn.s: Likewise. | |
20019 | * config/bfin/lib1funcs.asm: Likewise. | |
20020 | * config/bfin/linux-unwind.h: Likewise. | |
20021 | * config/cris/arit.c: Likewise. | |
20022 | * config/cris/cris_abi_symbol.c: Likewise. | |
20023 | * config/darwin-64.c: Likewise. | |
20024 | * config/darwin-crt2.c: Likewise. | |
20025 | * config/darwin-crt3.c: Likewise. | |
20026 | * config/darwin.h: Likewise. | |
20027 | * config/dbxelf.h: Likewise. | |
20028 | * config/dfp-bit.c: Likewise. | |
20029 | * config/dfp-bit.h: Likewise. | |
20030 | * config/elfos.h: Likewise. | |
20031 | * config/fixed-bit.c: Likewise. | |
20032 | * config/fixed-bit.h: Likewise. | |
20033 | * config/fp-bit.c: Likewise. | |
20034 | * config/fp-bit.h: Likewise. | |
20035 | * config/fr30/crti.asm: Likewise. | |
20036 | * config/fr30/crtn.asm: Likewise. | |
20037 | * config/fr30/lib1funcs.asm: Likewise. | |
20038 | * config/freebsd-spec.h: Likewise. | |
20039 | * config/frv/cmovd.c: Likewise. | |
20040 | * config/frv/cmovh.c: Likewise. | |
20041 | * config/frv/cmovw.c: Likewise. | |
20042 | * config/frv/frvbegin.c: Likewise. | |
20043 | * config/frv/frvend.c: Likewise. | |
20044 | * config/frv/lib1funcs.asm: Likewise. | |
20045 | * config/glibc-stdint.h: Likewise. | |
20046 | * config/h8300/clzhi2.c: Likewise. | |
20047 | * config/h8300/crti.asm: Likewise. | |
20048 | * config/h8300/crtn.asm: Likewise. | |
20049 | * config/h8300/ctzhi2.c: Likewise. | |
20050 | * config/h8300/fixunssfsi.c: Likewise. | |
20051 | * config/h8300/lib1funcs.asm: Likewise. | |
20052 | * config/h8300/parityhi2.c: Likewise. | |
20053 | * config/h8300/popcounthi2.c: Likewise. | |
20054 | * config/i386/ammintrin.h: Likewise. | |
20055 | * config/i386/att.h: Likewise. | |
20056 | * config/i386/avxintrin.h: Likewise. | |
20057 | * config/i386/biarch64.h: Likewise. | |
20058 | * config/i386/bmmintrin.h: Likewise. | |
20059 | * config/i386/cpuid.h: Likewise. | |
20060 | * config/i386/cross-stdarg.h: Likewise. | |
20061 | * config/i386/crtfastmath.c: Likewise. | |
20062 | * config/i386/crtprec.c: Likewise. | |
20063 | * config/i386/cygming-crtbegin.c: Likewise. | |
20064 | * config/i386/cygming-crtend.c: Likewise. | |
20065 | * config/i386/cygwin.asm: Likewise. | |
20066 | * config/i386/emmintrin.h: Likewise. | |
20067 | * config/i386/gmm_malloc.h: Likewise. | |
20068 | * config/i386/gthr-win32.c: Likewise. | |
20069 | * config/i386/i386.h: Likewise. | |
20070 | * config/i386/immintrin.h: Likewise. | |
20071 | * config/i386/linux-unwind.h: Likewise. | |
20072 | * config/i386/linux64.h: Likewise. | |
20073 | * config/i386/mm3dnow.h: Likewise. | |
20074 | * config/i386/mmintrin-common.h: Likewise. | |
20075 | * config/i386/mmintrin.h: Likewise. | |
20076 | * config/i386/nmmintrin.h: Likewise. | |
20077 | * config/i386/pmm_malloc.h: Likewise. | |
20078 | * config/i386/pmmintrin.h: Likewise. | |
20079 | * config/i386/smmintrin.h: Likewise. | |
20080 | * config/i386/sol2-c1.asm: Likewise. | |
20081 | * config/i386/sol2-ci.asm: Likewise. | |
20082 | * config/i386/sol2-cn.asm: Likewise. | |
20083 | * config/i386/sol2-gc1.asm: Likewise. | |
20084 | * config/i386/tmmintrin.h: Likewise. | |
20085 | * config/i386/unix.h: Likewise. | |
20086 | * config/i386/w32-unwind.h: Likewise. | |
20087 | * config/i386/wmmintrin.h: Likewise. | |
20088 | * config/i386/x86-64.h: Likewise. | |
20089 | * config/i386/x86intrin.h: Likewise. | |
20090 | * config/i386/xmmintrin.h: Likewise. | |
20091 | * config/ia64/crtbegin.asm: Likewise. | |
20092 | * config/ia64/crtend.asm: Likewise. | |
20093 | * config/ia64/crtfastmath.c: Likewise. | |
20094 | * config/ia64/crti.asm: Likewise. | |
20095 | * config/ia64/crtn.asm: Likewise. | |
20096 | * config/ia64/fde-glibc.c: Likewise. | |
20097 | * config/ia64/lib1funcs.asm: Likewise. | |
20098 | * config/ia64/linux-unwind.h: Likewise. | |
20099 | * config/ia64/quadlib.c: Likewise. | |
20100 | * config/ia64/unwind-ia64.c: Likewise. | |
20101 | * config/linux.h: Likewise. | |
20102 | * config/m32c/m32c-lib1.S: Likewise. | |
20103 | * config/m32c/m32c-lib2-trapv.c: Likewise. | |
20104 | * config/m32c/m32c-lib2.c: Likewise. | |
20105 | * config/m32r/initfini.c: Likewise. | |
20106 | * config/m68hc11/larith.asm: Likewise. | |
20107 | * config/m68hc11/m68hc11-crt0.S: Likewise. | |
20108 | * config/m68k/cf.md: Likewise. | |
20109 | * config/m68k/crti.s: Likewise. | |
20110 | * config/m68k/crtn.s: Likewise. | |
20111 | * config/m68k/lb1sf68.asm: Likewise. | |
20112 | * config/m68k/linux-unwind.h: Likewise. | |
20113 | * config/mcore/crti.asm: Likewise. | |
20114 | * config/mcore/crtn.asm: Likewise. | |
20115 | * config/mcore/lib1.asm: Likewise. | |
20116 | * config/mips/linux-unwind.h: Likewise. | |
20117 | * config/mips/loongson.h: Likewise. | |
20118 | * config/mips/mips16.S: Likewise. | |
20119 | * config/mmix/crti.asm: Likewise. | |
20120 | * config/mmix/crtn.asm: Likewise. | |
20121 | * config/pa/fptr.c: Likewise. | |
20122 | * config/pa/hpux-unwind.h: Likewise. | |
20123 | * config/pa/lib2funcs.asm: Likewise. | |
20124 | * config/pa/linux-atomic.c: Likewise. | |
20125 | * config/pa/linux-unwind.h: Likewise. | |
20126 | * config/pa/milli64.S: Likewise. | |
20127 | * config/pa/quadlib.c: Likewise. | |
20128 | * config/pa/stublib.c: Likewise. | |
20129 | * config/picochip/libgccExtras/adddi3.asm: Likewise. | |
20130 | * config/picochip/libgccExtras/ashlsi3.asm: Likewise. | |
20131 | * config/picochip/libgccExtras/ashlsi3.c: Likewise. | |
20132 | * config/picochip/libgccExtras/ashrsi3.asm: Likewise. | |
20133 | * config/picochip/libgccExtras/ashrsi3.c: Likewise. | |
20134 | * config/picochip/libgccExtras/cmpsi2.asm: Likewise. | |
20135 | * config/picochip/libgccExtras/divmod15.asm: Likewise. | |
20136 | * config/picochip/libgccExtras/divmodhi4.asm: Likewise. | |
20137 | * config/picochip/libgccExtras/divmodsi4.asm: Likewise. | |
20138 | * config/picochip/libgccExtras/longjmp.asm: Likewise. | |
20139 | * config/picochip/libgccExtras/lshrsi3.asm: Likewise. | |
20140 | * config/picochip/libgccExtras/lshrsi3.c: Likewise. | |
20141 | * config/picochip/libgccExtras/parityhi2.asm: Likewise. | |
20142 | * config/picochip/libgccExtras/popcounthi2.asm: Likewise. | |
20143 | * config/picochip/libgccExtras/setjmp.asm: Likewise. | |
20144 | * config/picochip/libgccExtras/subdi3.asm: Likewise. | |
20145 | * config/picochip/libgccExtras/ucmpsi2.asm: Likewise. | |
20146 | * config/picochip/libgccExtras/udivmodhi4.asm: Likewise. | |
20147 | * config/picochip/libgccExtras/udivmodsi4.asm: Likewise. | |
20148 | * config/rs6000/750cl.h: Likewise. | |
20149 | * config/rs6000/altivec.h: Likewise. | |
20150 | * config/rs6000/biarch64.h: Likewise. | |
20151 | * config/rs6000/crtresfpr.asm: Likewise. | |
20152 | * config/rs6000/crtresgpr.asm: Likewise. | |
20153 | * config/rs6000/crtresxfpr.asm: Likewise. | |
20154 | * config/rs6000/crtresxgpr.asm: Likewise. | |
20155 | * config/rs6000/crtsavfpr.asm: Likewise. | |
20156 | * config/rs6000/crtsavgpr.asm: Likewise. | |
20157 | * config/rs6000/darwin-asm.h: Likewise. | |
20158 | * config/rs6000/darwin-fallback.c: Likewise. | |
20159 | * config/rs6000/darwin-fpsave.asm: Likewise. | |
20160 | * config/rs6000/darwin-ldouble.c: Likewise. | |
20161 | * config/rs6000/darwin-tramp.asm: Likewise. | |
20162 | * config/rs6000/darwin-unwind.h: Likewise. | |
20163 | * config/rs6000/darwin-vecsave.asm: Likewise. | |
20164 | * config/rs6000/darwin-world.asm: Likewise. | |
20165 | * config/rs6000/e500crtres32gpr.asm: Likewise. | |
20166 | * config/rs6000/e500crtres64gpr.asm: Likewise. | |
20167 | * config/rs6000/e500crtres64gprctr.asm: Likewise. | |
20168 | * config/rs6000/e500crtrest32gpr.asm: Likewise. | |
20169 | * config/rs6000/e500crtrest64gpr.asm: Likewise. | |
20170 | * config/rs6000/e500crtresx32gpr.asm: Likewise. | |
20171 | * config/rs6000/e500crtresx64gpr.asm: Likewise. | |
20172 | * config/rs6000/e500crtsav32gpr.asm: Likewise. | |
20173 | * config/rs6000/e500crtsav64gpr.asm: Likewise. | |
20174 | * config/rs6000/e500crtsav64gprctr.asm: Likewise. | |
20175 | * config/rs6000/e500crtsavg32gpr.asm: Likewise. | |
20176 | * config/rs6000/e500crtsavg64gpr.asm: Likewise. | |
20177 | * config/rs6000/e500crtsavg64gprctr.asm: Likewise. | |
20178 | * config/rs6000/eabi-ci.asm: Likewise. | |
20179 | * config/rs6000/eabi-cn.asm: Likewise. | |
20180 | * config/rs6000/eabi.asm: Likewise. | |
20181 | * config/rs6000/linux-unwind.h: Likewise. | |
20182 | * config/rs6000/linux64.h: Likewise. | |
20183 | * config/rs6000/paired.h: Likewise. | |
20184 | * config/rs6000/paired.md: Likewise. | |
20185 | * config/rs6000/ppc64-fp.c: Likewise. | |
20186 | * config/rs6000/ppu_intrinsics.h: Likewise. | |
20187 | * config/rs6000/rs6000.h: Likewise. | |
20188 | * config/rs6000/si2vmx.h: Likewise. | |
20189 | * config/rs6000/sol-ci.asm: Likewise. | |
20190 | * config/rs6000/sol-cn.asm: Likewise. | |
20191 | * config/rs6000/spe.h: Likewise. | |
20192 | * config/rs6000/spu2vmx.h: Likewise. | |
20193 | * config/rs6000/sysv4.h: Likewise. | |
20194 | * config/rs6000/tramp.asm: Likewise. | |
20195 | * config/rs6000/vec_types.h: Likewise. | |
20196 | * config/s390/linux-unwind.h: Likewise. | |
20197 | * config/s390/tpf-unwind.h: Likewise. | |
20198 | * config/score/crti.asm: Likewise. | |
20199 | * config/score/crtn.asm: Likewise. | |
20200 | * config/sh/crt1.asm: Likewise. | |
20201 | * config/sh/crti.asm: Likewise. | |
20202 | * config/sh/crtn.asm: Likewise. | |
20203 | * config/sh/divtab-sh4-300.c: Likewise. | |
20204 | * config/sh/divtab-sh4.c: Likewise. | |
20205 | * config/sh/divtab.c: Likewise. | |
20206 | * config/sh/lib1funcs-4-300.asm: Likewise. | |
20207 | * config/sh/lib1funcs-Os-4-200.asm: Likewise. | |
20208 | * config/sh/lib1funcs.asm: Likewise. | |
20209 | * config/sh/lib1funcs.h: Likewise. | |
20210 | * config/sh/linux-atomic.asm: Likewise. | |
20211 | * config/sh/linux-unwind.h: Likewise. | |
20212 | * config/sh/shmedia.h: Likewise. | |
20213 | * config/sh/sshmedia.h: Likewise. | |
20214 | * config/sh/ushmedia.h: Likewise. | |
20215 | * config/sparc/crtfastmath.c: Likewise. | |
20216 | * config/sparc/linux-unwind.h: Likewise. | |
20217 | * config/sparc/sol2-c1.asm: Likewise. | |
20218 | * config/sparc/sol2-ci.asm: Likewise. | |
20219 | * config/sparc/sol2-cn.asm: Likewise. | |
20220 | * config/spu/divmodti4.c: Likewise. | |
20221 | * config/spu/divv2df3.c: Likewise. | |
20222 | * config/spu/float_disf.c: Likewise. | |
20223 | * config/spu/float_unsdidf.c: Likewise. | |
20224 | * config/spu/float_unsdisf.c: Likewise. | |
20225 | * config/spu/float_unssidf.c: Likewise. | |
20226 | * config/spu/mfc_multi_tag_release.c: Likewise. | |
20227 | * config/spu/mfc_multi_tag_reserve.c: Likewise. | |
20228 | * config/spu/mfc_tag_release.c: Likewise. | |
20229 | * config/spu/mfc_tag_reserve.c: Likewise. | |
20230 | * config/spu/mfc_tag_table.c: Likewise. | |
20231 | * config/spu/multi3.c: Likewise. | |
20232 | * config/spu/spu_internals.h: Likewise. | |
20233 | * config/spu/spu_intrinsics.h: Likewise. | |
20234 | * config/spu/spu_mfcio.h: Likewise. | |
20235 | * config/spu/vec_types.h: Likewise. | |
20236 | * config/spu/vmx2spu.h: Likewise. | |
20237 | * config/stormy16/stormy16-lib2.c: Likewise. | |
20238 | * config/svr4.h: Likewise. | |
20239 | * config/sync.c: Likewise. | |
20240 | * config/v850/lib1funcs.asm: Likewise. | |
20241 | * config/vxlib-tls.c: Likewise. | |
20242 | * config/vxlib.c: Likewise. | |
20243 | * config/vxworks-dummy.h: Likewise. | |
20244 | * config/xtensa/crti.asm: Likewise. | |
20245 | * config/xtensa/crtn.asm: Likewise. | |
20246 | * config/xtensa/ieee754-df.S: Likewise. | |
20247 | * config/xtensa/ieee754-sf.S: Likewise. | |
20248 | * config/xtensa/lib1funcs.asm: Likewise. | |
20249 | * config/xtensa/lib2funcs.S: Likewise. | |
20250 | * config/xtensa/linux-unwind.h: Likewise. | |
20251 | * config/xtensa/unwind-dw2-xtensa.c: Likewise. | |
20252 | * config/xtensa/unwind-dw2-xtensa.h: Likewise. | |
20253 | * coretypes.h: Likewise. | |
20254 | * crtstuff.c: Likewise. | |
20255 | * defaults.h: Likewise. | |
20256 | * dwarf2.h: Likewise. | |
20257 | * emutls.c: Likewise. | |
20258 | * gbl-ctors.h: Likewise. | |
20259 | * gcov-io.h: Likewise. | |
20260 | * ginclude/float.h: Likewise. | |
20261 | * ginclude/iso646.h: Likewise. | |
20262 | * ginclude/stdarg.h: Likewise. | |
20263 | * ginclude/stdbool.h: Likewise. | |
20264 | * ginclude/stddef.h: Likewise. | |
20265 | * ginclude/stdfix.h: Likewise. | |
20266 | * ginclude/stdint-gcc.h: Likewise. | |
20267 | * ginclude/tgmath.h: Likewise. | |
20268 | * gthr-aix.h: Likewise. | |
20269 | * gthr-dce.h: Likewise. | |
20270 | * gthr-gnat.c: Likewise. | |
20271 | * gthr-gnat.h: Likewise. | |
20272 | * gthr-lynx.h: Likewise. | |
20273 | * gthr-mipssde.h: Likewise. | |
20274 | * gthr-nks.h: Likewise. | |
20275 | * gthr-posix.c: Likewise. | |
20276 | * gthr-posix.h: Likewise. | |
20277 | * gthr-posix95.h: Likewise. | |
20278 | * gthr-rtems.h: Likewise. | |
20279 | * gthr-single.h: Likewise. | |
20280 | * gthr-solaris.h: Likewise. | |
20281 | * gthr-tpf.h: Likewise. | |
20282 | * gthr-vxworks.h: Likewise. | |
20283 | * gthr-win32.h: Likewise. | |
20284 | * gthr.h: Likewise. | |
20285 | * libgcc2.c: Likewise. | |
20286 | * libgcc2.h: Likewise. | |
20287 | * libgcov.c: Likewise. | |
20288 | * tsystem.h: Likewise. | |
20289 | * typeclass.h: Likewise. | |
20290 | * unwind-c.c: Likewise. | |
20291 | * unwind-compat.h: Likewise. | |
20292 | * unwind-dw2-fde-compat.c: Likewise. | |
20293 | * unwind-dw2-fde-darwin.c: Likewise. | |
20294 | * unwind-dw2-fde-glibc.c: Likewise. | |
20295 | * unwind-dw2-fde.c: Likewise. | |
20296 | * unwind-dw2-fde.h: Likewise. | |
20297 | * unwind-dw2.c: Likewise. | |
20298 | * unwind-dw2.h: Likewise. | |
20299 | * unwind-generic.h: Likewise. | |
20300 | * unwind-pe.h: Likewise. | |
20301 | * unwind-sjlj.c: Likewise. | |
20302 | * unwind.inc: Likewise. | |
20303 | * config/arm/neon-gen.ml: Change generated copyright header to | |
20304 | refer to version 3 of the GNU General Public License with | |
20305 | version 3.1 of the GCC Runtime Library Exception and to point | |
20306 | readers at the COPYING3 and COPYING3.RUNTIME files and the | |
20307 | FSF's license web page. | |
20308 | * config/arm/arm_neon.h: Regenerate. | |
20309 | ||
20310 | 2009-04-09 Jakub Jelinek <jakub@redhat.com> | |
20311 | ||
20312 | * config/cris/cris.md: Change copyright header to refer to version | |
20313 | 3 of the GNU General Public License. | |
20314 | * doc/install.texi2html: Change copyright header to refer to version | |
20315 | 3 of the GNU General Public License and to point readers at the | |
20316 | COPYING3 file and the FSF's license web page. | |
20317 | * config/vax/linux.h: Likewise. | |
20318 | ||
4a77c72b PB |
20319 | 2009-04-09 Paolo Bonzini <bonzini@gnu.org> |
20320 | ||
1ad2f450 L |
20321 | * config/i386/i386.md (cmpcc): New. |
20322 | * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG. | |
20323 | (sync_compare_and_swap_cc*): Delete. | |
20324 | ||
20325 | * config/s390/s390.c (s390_compare_emitted): Remove. | |
20326 | (s390_emit_compare): Handle MODE_CC s390_compare_op0 like | |
20327 | s390_compare_emitted used to be handled. Assert that modes match. | |
20328 | (s390_emit_compare_and_swap): Use s390_emit_compare, do not | |
20329 | refer to sync_compare_and_swap_ccsi. | |
20330 | * config/s390/s390.h (s390_compare_emitted): Remove. | |
20331 | * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0 | |
20332 | instead of s390_compare_emitted. | |
20333 | (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0 | |
20334 | instead of s390_compare_emitted. | |
20335 | * config/s390/s390.md (cmpcc): New. | |
20336 | (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber | |
20337 | CC_REGNUM, do not pretend it's set. | |
20338 | (sync_compare_and_swap_cc*): Delete. | |
20339 | * config/s390/predicates.md (cc_reg_operand): New. | |
20340 | ||
20341 | * expr.c (sync_compare_and_swap_cc): Delete. | |
20342 | * optabs.h (sync_compare_and_swap_cc): Delete. | |
20343 | * optabs.c (prepare_cmp_insn): Ignore which specific CCmode | |
20344 | is being used with can_compare_p. | |
20345 | (emit_cmp_and_jump_insn_1): Likewise when looking in the optab. | |
20346 | (find_cc_set): New. | |
20347 | (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc, | |
20348 | look for a MODE_CC set instead. Use emit_store_flag. | |
20349 | (expand_compare_and_swap_loop): Likewise, with some additional | |
20350 | complication to avoid a force_reg when useless. Use | |
20351 | emit_cmp_and_jump_insns. | |
20352 | * genopinit.c (optabs): Delete sync_compare_and_swap_cc. | |
20353 | * doc/md.texi (sync_compare_and_swap_cc): Merge with | |
20354 | sync_compare_and_swap documentation. | |
4a77c72b | 20355 | |
0c0efb33 JH |
20356 | 2009-04-09 Jan Hubicka <jh@suse.cz> |
20357 | ||
20358 | * except.c (find_prev_try): Break out from .... | |
20359 | (duplicate_eh_regions): ... here; properly update prev_try pointers | |
20360 | when duplication part of tree. | |
20361 | (dump_eh_tree): Improve dumping. | |
20362 | (verify_eh_region): New. | |
20363 | (verify_eh_tree): Use it. | |
20364 | ||
22a65a54 RG |
20365 | 2009-04-06 Richard Guenther <rguenther@suse.de> |
20366 | ||
20367 | * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC | |
20368 | &ARRAY addresses by adjusting their types and prepending | |
20369 | a conversion. | |
20370 | * tree-cfg.c (verify_gimple_assign_single): Verify that | |
20371 | addresses are correct. | |
20372 | ||
f76968e6 RG |
20373 | 2009-04-09 Richard Guenther <rguenther@suse.de> |
20374 | ||
20375 | * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant | |
20376 | indices into an array reference if possible. | |
20377 | * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars): | |
20378 | Fold POINTER_PLUS_EXPR statements with invariant address. | |
20379 | ||
c90c5fb5 AM |
20380 | 2009-04-09 Alan Modra <amodra@bigpond.net.au> |
20381 | ||
20382 | PR target/39634 | |
20383 | * config.gcc (powerpc64-*-linux*): Always build biarch. | |
20384 | ||
17cede2e JM |
20385 | 2009-04-09 Joseph Myers <joseph@codesourcery.com> |
20386 | ||
20387 | PR c/39613 | |
20388 | * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold | |
20389 | it and pedwarn if this results in an INTEGER_CST. | |
20390 | ||
a3337ea2 KG |
20391 | 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
20392 | ||
20393 | * doc/install.texi: Update minimum GMP version. Remove obsolete | |
20394 | text in MPFR section. | |
20395 | ||
ce9ba79b JJ |
20396 | 2009-04-08 Jakub Jelinek <jakub@redhat.com> |
20397 | ||
20398 | * dwarf2out.c (class_scope_p): New static inline. | |
20399 | (class_or_namespace_scope_p): Use it. | |
20400 | (gen_variable_die): Use DW_TAG_member tag for static data member | |
20401 | declarations instead of DW_TAG_variable. | |
20402 | ||
4f0ae266 JJ |
20403 | PR middle-end/39573 |
20404 | * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls | |
20405 | variables. | |
20406 | ||
d27f0ddc RG |
20407 | 2009-04-08 Richard Guenther <rguenther@suse.de> |
20408 | ||
20409 | * tree-ssa-sccvn.c (valueize_refs): Do not continue to | |
20410 | valueize random data. | |
20411 | ||
557cc596 DE |
20412 | 2009-04-08 David Edelsohn <edelsohn@gnu.org> |
20413 | ||
20414 | * config.gcc (aix tm_file): Add aix-stdint.h. | |
20415 | (aix tm clause use_gcc_stdint): Set to wrap. | |
20416 | * config/rs6000/aix-stdint.h: New file. | |
2ba9daa7 | 20417 | |
75ccc1e7 RG |
20418 | 2009-04-08 Richard Guenther <rguenther@suse.de> |
20419 | ||
20420 | PR middle-end/36291 | |
20421 | * tree-dfa.c (add_referenced_var): Do not recurse into | |
20422 | global initializers. | |
20423 | * tree-ssa-ccp.c (get_symbol_constant_value): Add newly | |
20424 | exposed variables. | |
20425 | (fold_const_aggregate_ref): Likewise. | |
20426 | ||
c6963675 PB |
20427 | 2009-04-08 Paolo Bonzini <bonzini@gnu.org> |
20428 | ||
6c44cf79 L |
20429 | * recog.c (ordered_comparison_operator): New. |
20430 | * gensupport.c (std_preds): Add it. | |
c6963675 PB |
20431 | * doc/md.texi (Machine-Independent Predicates): Document it. |
20432 | ||
6d07ad98 JH |
20433 | 2009-04-08 Jan Hubicka <jh@suse.cz> |
20434 | ||
20435 | * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging. | |
20436 | * function.h (rtl_eh): Remove exception_handler_label_map. | |
20437 | * except.c (ehl_hash, ehl_eq, add_ehl_entry, | |
20438 | remove_exception_handler_label, for_each_eh_label_1): Remove. | |
20439 | (rtl_remove_unreachable_regions): Remove. | |
20440 | (convert_from_eh_region_ranges): Do not remove unreachable regions. | |
20441 | (find_exception_handler_labels): Don't build the hashtable. | |
20442 | (maybe_remove_eh_handler): Remove. | |
20443 | (for_each_eh_label): Rewrite to walk the tree. | |
20444 | (rest_of_handle_eh): Do not cleanup cfg prior EH construction. | |
20445 | * except.h (maybe_remove_eh_handler): Remove. | |
20446 | * passes.c (init_optimization_passes): Schedule second EH cleanup | |
20447 | before out-of-ssa. | |
20448 | * cfgrtl.c (rtl_delete_block, rtl_merge_blocks, | |
20449 | cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler. | |
20450 | ||
7ddf71e3 PB |
20451 | 2009-04-08 Paolo Bonzini <bonzini@gnu.org> |
20452 | ||
20453 | * genoutput.c (validate_optab_operands): New. | |
20454 | (gen_insn, gen_expand): Call it. | |
20455 | ||
20456 | * genflags.c (gen_insn): Detect misused iterators. | |
20457 | (main): Pass line_no to gen_insn, exit with status 1 on error. | |
20458 | ||
20459 | * genextract.c (line_no): Make global. | |
20460 | (VEC_safe_set_locstr): Change assertion to error message. | |
20461 | (main): Exit with status 1 on error. | |
20462 | ||
4d84fe7c JM |
20463 | 2009-04-08 Joseph Myers <joseph@codesourcery.com> |
20464 | ||
20465 | PR c/39614 | |
20466 | PR c/39673 | |
20467 | * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR, | |
20468 | C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST, | |
20469 | EXPR_INT_CONST_OPERANDS): Remove duplicate definitions. | |
20470 | * c-convert.c (convert): Do not call fold on results of conversion | |
20471 | functions when the result is a C_MAYBE_CONST_EXPR. | |
20472 | * c-parser.c (c_parser_postfix_expression): Do not fold condition | |
20473 | of __builtin_choose_expr. | |
20474 | * c-typeck.c (remove_c_maybe_const_expr): New. | |
20475 | (build_unary_op, build_conditional_expr, build_compound_expr, | |
20476 | build_binary_op, c_objc_common_truthvalue_conversion): Call | |
20477 | remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with | |
20478 | integer operands. | |
20479 | ||
60839f5d | 20480 | 2009-04-08 Bingfeng Mei <bmei@broadcom.com> |
d1d1c602 | 20481 | |
2ba9daa7 | 20482 | * fold-const.c (const_binop): Combine two VECTOR_CST under operation |
6c44cf79 | 20483 | CODE to produce a new one. Add a prototype to use fold_convert_const |
d1d1c602 | 20484 | |
8e481a2c DS |
20485 | 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net> |
20486 | ||
20487 | PR bootstrap/39660 | |
20488 | * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't | |
20489 | mix declarations and code. | |
20490 | ||
ee618c17 BE |
20491 | 2009-04-08 Ben Elliston <bje@au.ibm.com> |
20492 | ||
20493 | * gcc.c: Replace `CC' with `GCC' throughout. | |
20494 | ||
f2a758a2 L |
20495 | 2009-04-07 H.J. Lu <hongjiu.lu@intel.com> |
20496 | ||
20497 | * doc/invoke.texi: Document Atom support. | |
20498 | ||
6ea2bd47 JM |
20499 | 2009-04-07 Jason Merrill <jason@redhat.com> |
20500 | ||
20501 | PR c++/25185 | |
20502 | * c-common.h, c-common.c: Add flag_pretty_templates. | |
20503 | * c-opts.c (c_common_handle_option): Set it. | |
20504 | * c.opt: Add -fno-pretty-templates. | |
20505 | * doc/invoke.texi (C++ Dialect Options): Likewise. | |
20506 | ||
fcb82ab0 UB |
20507 | 2009-04-07 Uros Bizjak <ubizjak@gmail.com> |
20508 | ||
20509 | * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ. | |
20510 | (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ. | |
20511 | (ia64_expand_builtin): Likewise. | |
20512 | ||
dc5e7298 MJ |
20513 | 2009-04-07 Martin Jambor <mjambor@suse.cz> |
20514 | ||
20515 | * tree-ssa-alias.c (refs_may_alias_p_1): Check for | |
20516 | is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant | |
20517 | ADDR_EXPRS are include too. | |
20518 | ||
0609b355 RG |
20519 | 2009-04-07 Richard Guenther <rguenther@suse.de> |
20520 | ||
20521 | * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased | |
20522 | decls are only used if passes as parameters or if they are | |
20523 | local statics and the call is not to a builtin. | |
20524 | (call_may_clobber_ref_p_1): Likewise. | |
20525 | ||
d8e535fa PB |
20526 | 2009-04-07 Paolo Bonzini <bonzini@gnu.org> |
20527 | ||
20528 | * expr.c (do_store_flag): Remove last argument. Simplify code | |
20529 | to avoid duplication of tests already done by can_compare_p. | |
20530 | (expand_expr_real_1): Adjust caller. | |
20531 | ||
c3c64f50 PB |
20532 | 2009-04-07 Paolo Bonzini <bonzini@gnu.org> |
20533 | ||
fcb82ab0 UB |
20534 | * optabs.c (can_compare_p): Test the predicate of a |
20535 | cbranch and cstore pattern. | |
c3c64f50 | 20536 | |
9a53bc17 PB |
20537 | 2009-04-07 Paolo Bonzini <bonzini@gnu.org> |
20538 | ||
fcb82ab0 UB |
20539 | * expr.c (convert_move): Use emit_store_flag instead of |
20540 | "emulating" it. | |
9a53bc17 | 20541 | |
67b8f1c1 PB |
20542 | 2009-04-07 Paolo Bonzini <bonzini@gnu.org> |
20543 | ||
fcb82ab0 UB |
20544 | * config/i386/i386.c (ix86_compare_emitted): Remove. |
20545 | (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC | |
20546 | ix86_compare_op0 like ix86_compare_emitted used to be handled. | |
20547 | * config/i386/i386.h (ix86_compare_emitted): Remove. | |
20548 | * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0 | |
20549 | instead of ix86_compare_emitted. | |
20550 | * config/i386/sync.md (sync_compare_and_swap_cc): Likewise. | |
67b8f1c1 | 20551 | |
44509946 AS |
20552 | 2009-04-07 Andrew Stubbs <ams@codesourcery.com> |
20553 | ||
20554 | * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file. | |
20555 | Add t-sysroot-suffix to tmake_file. | |
20556 | * config/print-sysroot-suffix.sh: New file. | |
20557 | * config/t-sysroot-suffix: New file. | |
20558 | ||
ca22d882 BE |
20559 | 2009-04-07 Ben Elliston <bje@au.ibm.com> |
20560 | ||
20561 | * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf, | |
20562 | as the latter produces a warning when the target does not support | |
20563 | infinity. | |
20564 | ||
95aac11b BE |
20565 | 2009-04-07 Ben Elliston <bje@au.ibm.com> |
20566 | ||
20567 | * dfp.c: Replace type punning assignments with memcpy throughout. | |
20568 | * Makefile.in (dfp.o-warn): Remove. | |
2ba9daa7 | 20569 | |
633dd061 AM |
20570 | 2009-04-07 Alan Modra <amodra@bigpond.net.au> |
20571 | ||
20572 | PR target/39634 | |
20573 | * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*. | |
20574 | Include soft-fp/t-softfp after rs6000/t-linux64. | |
20575 | ||
fe0a25ec EB |
20576 | 2009-04-06 Eric Botcazou <ebotcazou@adacore.com> |
20577 | ||
20578 | * stor-layout.c (set_sizetype): Use the full precision of their | |
20579 | machine mode for bitsize types. | |
20580 | ||
0c011bc3 L |
20581 | 2009-04-06 H.J. Lu <hongjiu.lu@intel.com> |
20582 | ||
20583 | * config/i386/i386.md: Revert 2 accidental checkins. | |
20584 | ||
b6837b94 | 20585 | 2009-04-06 Joey Ye <joey.ye@intel.com> |
60839f5d | 20586 | Xuepeng Guo <xuepeng.guo@intel.com> |
b6837b94 JY |
20587 | H.J. Lu <hongjiu.lu@intel.com> |
20588 | ||
20589 | Atom pipeline model, tuning and insn selection. | |
20590 | * config.gcc (atom): Add atom config options and target. | |
20591 | ||
20592 | * config/i386/atom.md: New. | |
20593 | ||
20594 | * config/i386/i386.c (atom_cost): New cost. | |
20595 | (m_ATOM): New macro flag. | |
20596 | (initial_ix86_tune_features): Set m_ATOM. | |
20597 | (x86_accumulate_outgoing_args): Likewise. | |
20598 | (x86_arch_always_fancy_math_387): Likewise. | |
20599 | (processor_target): Add Atom cost. | |
20600 | (cpu_names): Add Atom cpu name. | |
20601 | (override_options): Set Atom ISA. | |
20602 | (ix86_issue_rate): New case PROCESSOR_ATOM. | |
20603 | (ix86_adjust_cost): Likewise. | |
20604 | ||
20605 | * config/i386/i386.h (TARGET_ATOM): New target macro. | |
20606 | (ix86_tune_indices): Add X86_TUNE_OPT_AGU. | |
20607 | (TARGET_OPT_AGU): New target option. | |
20608 | (target_cpu_default): Add TARGET_CPU_DEFAULT_atom. | |
20609 | (processor_type): Add PROCESSOR_ATOM. | |
20610 | ||
20611 | * config/i386/i386.md (cpu): Add new value "atom". | |
20612 | (use_carry, movu): New attr. | |
20613 | (atom.md): Include atom.md. | |
20614 | (adddi3_carry_rex64): Set attr "use_carry". | |
20615 | (addqi3_carry): Likewise. | |
20616 | (addhi3_carry): Likewise. | |
20617 | (addsi3_carry): Likewise. | |
20618 | (*addsi3_carry_zext): Likewise. | |
20619 | (subdi3_carry_rex64): Likewise. | |
20620 | (subqi3_carry): Likewise. | |
20621 | (subhi3_carry): Likewise. | |
20622 | (subsi3_carry): Likewise. | |
20623 | (x86_movdicc_0_m1_rex64): Likewise. | |
20624 | (*x86_movdicc_0_m1_se): Likewise. | |
20625 | (x86_movsicc_0_m1): Likewise. | |
20626 | (*x86_movsicc_0_m1_se): Likewise. | |
20627 | (*adddi_1_rex64): Emit add insn as much as possible. | |
20628 | (*addsi_1): Likewise. | |
20629 | (return_internal): Set atom_unit. | |
20630 | (return_internal_long): Likewise. | |
20631 | (return_pop_internal): Likewise. | |
20632 | (*rcpsf2_sse): Set atom_sse_attr attr. | |
20633 | (*qrt<mode>2_sse): Likewise. | |
20634 | (*prefetch_sse): Likewise. | |
20635 | ||
20636 | * config/i386/i386-c.c (ix86_target_macros_internal): New case | |
20637 | PROCESSOR_ATOM. | |
20638 | (ix86_target_macros_internal): Likewise. | |
20639 | ||
20640 | * config/i386/sse.md (cpu): Set attr "atom_sse_attr". | |
20641 | (*prefetch_sse_rex): Likewise. | |
20642 | (sse_rcpv4sf2): Likewise. | |
20643 | (sse_vmrcpv4sf2): Likewise. | |
20644 | (sse_sqrtv4sf2): Likewise. | |
20645 | (<sse>_vmsqrt<mode>2): Likewise. | |
20646 | (sse_ldmxcsr): Likewise. | |
20647 | (sse_stmxcsr): Likewise. | |
20648 | (*sse_sfence): Likewise. | |
20649 | (sse2_clflush): Likewise. | |
20650 | (*sse2_mfence): Likewise. | |
20651 | (*sse2_lfence): Likewise. | |
20652 | (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu". | |
20653 | (<sse>_movup<ssemodesuffixf2c>): Likewise. | |
20654 | (avx_movdqu<avxmodesuffix>): Likewise. | |
20655 | (avx_lddqu<avxmodesuffix>): Likewise. | |
20656 | (sse2_movntv2di): Change attr "type" to "ssemov". | |
20657 | (sse2_movntsi): Likewise. | |
20658 | (rsqrtv8sf2): Change attr "type" to "sseadd". | |
20659 | (sse3_addsubv2df3): Set attr "atom_unit". | |
20660 | (sse3_h<plusminus_insn>v4sf3): Likewise. | |
20661 | (*sse2_pmaddwd): Likewise. | |
20662 | (*vec_extractv2di_1_rex64): Likewise. | |
20663 | (*vec_extractv2di_1_avx): Likewise. | |
20664 | (sse2_psadbw): Likewise. | |
20665 | (ssse3_phaddwv8hi3): Likewise. | |
20666 | (ssse3_phaddwv4hi3): Likewise. | |
20667 | (ssse3_phadddv4si3): Likewise. | |
20668 | (ssse3_phadddv2si3): Likewise. | |
20669 | (ssse3_phaddswv8hi3): Likewise. | |
20670 | (ssse3_phaddswv4hi3): Likewise. | |
20671 | (ssse3_phsubwv8hi3): Likewise. | |
20672 | (ssse3_phsubwv4hi3): Likewise. | |
20673 | (ssse3_phsubdv4si3): Likewise. | |
20674 | (ssse3_phsubdv2si3): Likewise. | |
20675 | (ssse3_phsubswv8hi3): Likewise. | |
20676 | (ssse3_phsubswv4hi3): Likewise. | |
20677 | (ssse3_pmaddubsw128): Likewise. | |
20678 | (sse3_pmaddubsw: Likewise. | |
20679 | (ssse3_palignrti): Likewise. | |
20680 | (ssse3_palignrdi): Likewise. | |
20681 | ||
53e350d3 GP |
20682 | 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com> |
20683 | ||
20684 | * doc/install.texi (Specific): Fix two cross-references to MinGW. | |
20685 | ||
439ef907 RG |
20686 | 2009-04-06 Richard Guenther <rguenther@suse.de> |
20687 | ||
20688 | PR tree-optimization/28868 | |
20689 | * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track | |
20690 | of which PHI results we inserted. | |
20691 | (insert_into_preds_of_block): Record inserted PHIs. | |
20692 | (eliminate): Eliminate redundant PHI nodes. | |
20693 | (init_pre): Init inserted_phi_names. | |
20694 | ||
4bad83f5 RG |
20695 | 2009-04-06 Richard Guenther <rguenther@suse.de> |
20696 | ||
20697 | PR tree-optimization/39643 | |
20698 | * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and | |
20699 | IMAGPART_EXPRs of complex constants. | |
20700 | (execute_fold_all_builtins): If we folded a call queue | |
20701 | TODO_update_address_taken. | |
20702 | ||
570c4247 JH |
20703 | 2009-04-06 Jan Hubicka <jh@suse.cz> |
20704 | ||
20705 | PR middle-end/39659 | |
20706 | * except.c (remove_unreachable_regions): Propagate may_contain_throw | |
20707 | flag. | |
20708 | ||
a460d7a1 AS |
20709 | 2009-04-06 Andrew Stubbs <ams@codesourcery.com> |
20710 | ||
20711 | * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the | |
20712 | delay slot. | |
20713 | (ic_invalidate_array): Likewise. | |
20714 | ||
60839f5d | 20715 | 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com> |
6bdf8c2e HS |
20716 | |
20717 | * calls.c (emit_library_call_value_1): Fix a problem with parameter | |
20718 | alignment for library calls. | |
20719 | ||
7d253f6e DS |
20720 | 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net> |
20721 | ||
20722 | * config.gcc (mingw32 tm_file): Add mingw-stdint.h. | |
20723 | (mingw32 tm clause use_gcc_stdint): Set to wrap. | |
20724 | * config/i386/mingw-stdint.h: New file. | |
20725 | ||
941c3614 RB |
20726 | 2009-04-05 Richard Guenther <rguenther@suse.de> |
20727 | ||
20728 | PR tree-optimization/39648 | |
20729 | * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around | |
20730 | our &A vs. &A[0] IL deficiencies. | |
20731 | ||
12633413 JH |
20732 | 2009-04-04 Jan Hubicka <jh@suse.cz> |
20733 | ||
941c3614 RB |
20734 | * except.c (sjlj_find_directly_reachable_regions): Be ready for |
20735 | removed toplevel regions. | |
12633413 JH |
20736 | (sjlj_mark_call_sites): Likewise. |
20737 | ||
bb2aaded DK |
20738 | 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com> |
20739 | ||
20740 | * config.gcc (cygwin tm_file): Add cygwin-stdint.h. | |
20741 | (cygwin tm clause use_gcc_stdint): Set to wrap. | |
20742 | * config/i386/cygwin-stdint.h: New file. | |
20743 | ||
86290011 RG |
20744 | 2009-04-04 Richard Guenther <rguenther@suse.de> |
20745 | ||
20746 | * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency. | |
20747 | * tree-ssa-copy.c (init_copy_prop): Do not propagate through | |
20748 | single-argument PHIs if we are in loop-closed SSA form. | |
20749 | * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards | |
20750 | for the pre-condition. | |
20751 | (slpeel_tree_peel_loop_to_edge): Likewise. | |
20752 | (vect_build_loop_niters): Take an optional sequence to append stmts. | |
20753 | (vect_generate_tmps_on_preheader): Likewise. | |
20754 | (vect_do_peeling_for_loop_bound): Take extra guards for the | |
20755 | pre-condition. | |
20756 | (vect_do_peeling_for_alignment): Adjust. Unconditionally apply | |
20757 | the cost model check. | |
20758 | (vect_loop_versioning): Take stmt and stmt list to put pre-condition | |
7a715bba | 20759 | guards if we are going to peel. Do not apply versioning in that case. |
86290011 RG |
20760 | * tree-vectorizer.h (vect_loop_versioning): Adjust declaration. |
20761 | (vect_do_peeling_for_loop_bound): Likewise. | |
20762 | * tree-vect-loop.c (vect_transform_loop): If we are peeling for | |
20763 | loop bound only record extra pre-conditions, do not apply loop | |
20764 | versioning. | |
20765 | ||
5eeeac64 RG |
20766 | 2009-04-04 Richard Guenther <rguenther@suse.de> |
20767 | ||
20768 | * tree-ssa-operands.c (pop_stmt_changes): Remove automatic | |
20769 | renaming code. | |
20770 | ||
1ff7d06b JH |
20771 | 2009-04-04 Jan Hubicka <jh@suse.cz> |
20772 | ||
20773 | * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use | |
20774 | last_basic_block for size of bb->index indexed array. | |
20775 | * bt-load.c (compute_defs_uses_and_gen, compute_kill, | |
20776 | compute_out, link_btr_uses, build_btr_def_use_webs, | |
20777 | build_btr_def_use_webs, migrate_btr_defs): Likewise. | |
20778 | ||
14925fcd JH |
20779 | 2009-04-04 Jan Hubicka <jh@suse.cz> |
20780 | ||
20781 | * except.c (remove_eh_handler_and_replace): Break out from ... | |
20782 | (remove_eh_handler): ... here. | |
20783 | (bring_to_root): New function. | |
20784 | (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime | |
20785 | handled ones, bring others to root of tree. | |
20786 | ||
4e6d1743 JH |
20787 | 2009-04-04 Jan Hubicka <jh@suse.cz> |
20788 | ||
4cb735f7 JH |
20789 | * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully. |
20790 | (all_phis_safe_to_merge): New function. | |
20791 | (update_info): New structure. | |
20792 | (make_eh_edge_and_update_phi, update_eh_edges): New functions. | |
20793 | (cleanup_empty_eh): Update SSA if possible. | |
4e6d1743 | 20794 | |
c6803d43 RG |
20795 | 2009-04-04 Richard Guenther <rguenther@suse.de> |
20796 | ||
20797 | * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs. | |
20798 | * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0. | |
20799 | (append_vuse): Likewise. | |
20800 | ||
54f5943c JJ |
20801 | 2009-04-04 Jakub Jelinek <jakub@redhat.com> |
20802 | ||
20803 | * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value. | |
20804 | * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED | |
20805 | instead of REG_UNSAVED for DW_CFA_undefined. | |
20806 | (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED. | |
20807 | (uw_update_context): If RA column is REG_UNDEFINED, mark it as | |
20808 | outermost frame. | |
20809 | ||
aad2bccb RE |
20810 | 2009-04-04 Richard Earnshaw <rearnsha@arm.com> |
20811 | ||
20812 | PR target/39501 | |
20813 | * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT. | |
20814 | * testsuite/gcc.c-torture/execute/pr39501.c: New file. | |
20815 | * testsuite/gcc.c-torture/execute/pr39501.x: New file. | |
20816 | ||
aa7069aa RG |
20817 | 2009-04-04 Richard Guenther <rguenther@suse.de> |
20818 | ||
20819 | PR tree-optimization/8781 | |
20820 | PR tree-optimization/37892 | |
20821 | * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare. | |
20822 | * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function. | |
20823 | (valueize_refs): Call it for *& valueizations. | |
20824 | (shared_reference_ops_from_ref): Rename to ... | |
20825 | (valueize_shared_reference_ops_from_ref): ... this and valueize. | |
20826 | (shared_reference_ops_from_call): Rename to ... | |
20827 | (valueize_shared_reference_ops_from_call): ... this and valueize. | |
20828 | (vn_reference_lookup): Update. | |
20829 | (visit_reference_op_call): Likewise. | |
20830 | * tree-ssa-pre.c (phi_translate_1): Fold *&. | |
20831 | (eliminate): Value-replace the call address in call statements. | |
20832 | ||
cd15ad3e RG |
20833 | 2009-04-04 Richard Guenther <rguenther@suse.de> |
20834 | ||
20835 | PR tree-optimization/39636 | |
20836 | * tree-ssa-forwprop.c | |
20837 | (forward_propagate_addr_into_variable_array_index): Check for | |
20838 | GIMPLE_ASSIGN before accessing the rhs code. | |
20839 | ||
462f3262 JM |
20840 | 2009-04-03 Jason Merrill <jason@redhat.com> |
20841 | ||
20842 | * stor-layout.c (set_sizetype): Set TYPE_CANONICAL. | |
20843 | ||
6adb807e SE |
20844 | 2009-04-03 Steve Ellcey <sje@cup.hp.com> |
20845 | ||
20846 | * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2, | |
20847 | truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2, | |
20848 | fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2, | |
20849 | floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2, | |
20850 | fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal, | |
20851 | smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf, | |
20852 | divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal, | |
20853 | umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2, | |
20854 | *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4, | |
20855 | *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr, | |
20856 | adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2, | |
20857 | smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc, | |
20858 | *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf, | |
20859 | *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3, | |
20860 | sqrtxf2, sqrtxf2_internal_thr, *recip_approx): | |
20861 | Use fr_reg_or_fp01_operand instead of fr_register_operand | |
20862 | ||
20863 | * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2, | |
20864 | recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat, | |
20865 | divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto. | |
20866 | ||
174b3107 VM |
20867 | 2009-04-03 Vladimir Makarov <vmakarov@redhat.com> |
20868 | ||
b844e5d8 L |
20869 | PR rtl-optimization/39607 |
20870 | PR rtl-optimization/39631 | |
7a715bba UB |
20871 | |
20872 | Revert: | |
2ba9daa7 | 20873 | |
174b3107 VM |
20874 | 2009-03-30 Vladimir Makarov <vmakarov@redhat.com> |
20875 | * reload.c (push_reload, find_dummy_reload): Use df_get_live_out | |
20876 | instead of DF_LR_OUT. | |
20877 | * ira-lives.c (process_bb_node_lives): Ditto. | |
20878 | * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in} | |
20879 | instead of DF_LR_{OUT,IN}. | |
20880 | * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto. | |
20881 | * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto. | |
20882 | ||
535b544a SB |
20883 | 2009-04-03 Steven Bosscher <steven@gcc.gnu.org> |
20884 | ||
20885 | * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp. | |
20886 | (execute_lower_omp): Always run but take the short way out if -fopenmp | |
20887 | is not given. | |
20888 | (gate_lower_omp): Remove, forcing the pass manager to always run the | |
20889 | pass and always set PROP_gimple_lomp. | |
20890 | (pass_lower_omp): Remove gate function. | |
20891 | * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide | |
20892 | PROP_trees. Instead, require it. | |
20893 | * ipa-cp.c (pass_ipa_cp): Likewise. | |
20894 | * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg. | |
20895 | (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem. | |
20896 | * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg | |
20897 | and PROP_gimple_leh. | |
20898 | ||
5006671f RG |
20899 | 2009-04-03 Richard Guenther <rguenther@suse.de> |
20900 | ||
20901 | PR middle-end/13146 | |
20902 | PR tree-optimization/23940 | |
20903 | PR tree-optimization/33237 | |
20904 | PR middle-end/33974 | |
20905 | PR middle-end/34093 | |
20906 | PR tree-optimization/36201 | |
20907 | PR tree-optimization/36230 | |
20908 | PR tree-optimization/38049 | |
20909 | PR tree-optimization/38207 | |
20910 | PR tree-optimization/38230 | |
20911 | PR tree-optimization/38301 | |
20912 | PR tree-optimization/38585 | |
20913 | PR middle-end/38895 | |
20914 | PR tree-optimization/38985 | |
20915 | PR tree-optimization/39299 | |
20916 | * tree-ssa-structalias.h: Remove. | |
20917 | * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p. | |
20918 | (NULL_DEF_OPERAND_P): Make of type def_operand_p. | |
20919 | (struct vuse_element_d): Remove. | |
20920 | (struct vuse_vec_d): Likewise. | |
20921 | (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC, | |
20922 | VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR, | |
20923 | SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR, | |
20924 | VUSE_ELEMENT_VAR): Likewise. | |
20925 | (struct voptype_d): Likewise. | |
20926 | (NUM_VOP_FREE_BUCKETS): Likewise. | |
20927 | (struct ssa_operands): Remove vop_free_buckets and mpt_table fields. | |
20928 | (struct stmt_operands_d): Remove. | |
20929 | (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT, | |
20930 | VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP, | |
20931 | VDEF_NUM, VDEF_VECT): Likewise. | |
20932 | (copy_virtual_operands): Remove. | |
20933 | (operand_build_cmp): Likewise. | |
20934 | (create_ssa_artificial_load_stmt): Likewise. | |
20935 | (enum ssa_op_iter_type): Remove ssa_op_iter_vdef. | |
20936 | (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm | |
20937 | vuse_index and mayuse_index members. Pack and move done and iter_type | |
20938 | members to the front. | |
20939 | (SSA_OP_VMAYUSE): Remove. | |
20940 | (SSA_OP_VIRTUAL_USES): Adjust. | |
20941 | (FOR_EACH_SSA_VDEF_OPERAND): Remove. | |
20942 | (unlink_stmt_vdef): Declare. | |
20943 | (add_to_addressable_set): Remove. | |
20944 | * tree-vrp.c (stmt_interesting_for_vrp): Adjust. | |
20945 | (vrp_visit_stmt): Likewise. | |
20946 | * doc/tree-ssa.texi (Alias analysis): Update. | |
20947 | * doc/invoke.texi (max-aliased-vops): Remove docs. | |
20948 | (avg-aliased-vops): Likewise. | |
20949 | * tree-into-ssa.c (syms_to_rename): Remove. | |
20950 | (need_to_update_vops_p): Likewise. | |
20951 | (need_to_initialize_update_ssa_p): Rename to ... | |
20952 | (update_ssa_initialized_fn): ... this. Track function we are | |
20953 | initialized for. | |
20954 | (symbol_marked_for_renaming): Simplify. | |
20955 | (add_new_name_mapping): Do not set need_to_update_vops_p. | |
20956 | (dump_currdefs): Use SYMS_TO_RENAME. | |
20957 | (rewrite_update_stmt): Always walk all uses/defs. | |
20958 | (dump_update_ssa): Adjust. | |
20959 | (init_update_ssa): Take function argument. Track what we are | |
20960 | initialized for. | |
20961 | (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn. | |
20962 | (create_new_def_for): Initialize for cfun, assert we are initialized | |
20963 | for cfun. | |
20964 | (mark_sym_for_renaming): Simplify. | |
20965 | (mark_set_for_renaming): Do not initialize update-ssa. | |
20966 | (need_ssa_update_p): Simplify. Take function argument. | |
20967 | (name_mappings_registered_p): Assert we ask for the correct function. | |
20968 | (name_registered_for_update_p): Likewise. | |
20969 | (ssa_names_to_replace): Likewise. | |
20970 | (release_ssa_name_after_update_ssa): Likewise. | |
20971 | (update_ssa): Likewise. Use SYMS_TO_RENAME. | |
20972 | (dump_decl_set): Do not print a newline. | |
20973 | (debug_decl_set): Do it here. | |
20974 | (dump_update_ssa): And here. | |
20975 | * tree-ssa-loop-im.c (move_computations): Adjust. | |
20976 | (movement_possibility): Likewise. | |
20977 | (determine_max_movement): Likewise. | |
20978 | (gather_mem_refs_stmt): Likewise. | |
20979 | * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG | |
20980 | or NAME_MEMORY_TAG. | |
20981 | * tree-complex.c (update_all_vops): Remove. | |
20982 | (expand_complex_move): Adjust. | |
20983 | * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE. | |
20984 | Simplify test for memory referencing statement. Exclude | |
20985 | non-invariant ADDR_EXPRs. | |
20986 | * tree-pretty-print.c (dump_generic_node): Do not handle memory tags. | |
20987 | * tree-loop-distribution.c (generate_memset_zero): Adjust. | |
20988 | (rdg_flag_uses): Likewise. | |
20989 | * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag | |
20990 | related code. | |
20991 | (tree_optimize_tail_calls_1): Also split the | |
20992 | edge from the entry block if we have degenerate PHI nodes in | |
20993 | the first basic block. | |
20994 | * tree.c (init_ttree): Remove memory-tag related code. | |
20995 | (tree_code_size): Likewise. | |
20996 | (tree_node_structure): Likewise. | |
20997 | (build7_stat): Re-write to be build6_stat. | |
20998 | * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove. | |
20999 | (SSA_VAR_P): Adjust. | |
21000 | (struct tree_memory_tag): Remove. | |
21001 | (struct tree_memory_partition_tag): Likewise. | |
21002 | (union tree_node): Adjust. | |
21003 | (build7): Re-write to be build6. | |
21004 | * tree-pass.h (pass_reset_cc_flags): Remove. | |
21005 | (TODO_update_address_taken): New flag. | |
21006 | (pass_simple_dse): Remove. | |
21007 | * ipa-cp.c (ipcp_update_callgraph): Update SSA form. | |
21008 | * params.h (MAX_ALIASED_VOPS): Remove. | |
21009 | (AVG_ALIASED_VOPS): Likewise. | |
21010 | * omp-low.c (expand_omp_taskreg): Update SSA form. | |
21011 | * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs | |
21012 | aliases the lhs in a copy stmt. | |
21013 | * tree-ssa-dse.c (struct address_walk_data): Remove. | |
21014 | (memory_ssa_name_same): Likewise. | |
21015 | (memory_address_same): Likewise. | |
21016 | (get_kill_of_stmt_lhs): Likewise. | |
21017 | (dse_possible_dead_store_p): Simplify, use the oracle. Handle | |
21018 | unused stores. Look through PHI nodes into post-dominated regions. | |
21019 | (dse_optimize_stmt): Simplify. Properly remove stores. | |
21020 | (tree_ssa_dse): Compute dominators. | |
21021 | (execute_simple_dse): Remove. | |
21022 | (pass_simple_dse): Likewise. | |
21023 | * ipa-reference.c (scan_stmt_for_static_refs): Open-code | |
21024 | gimple_loaded_syms and gimple_stored_syms computation. | |
21025 | * toplev.c (dump_memory_report): Dump alias and pta stats. | |
21026 | * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify. | |
21027 | (vn_reference_eq): Likewise. | |
21028 | (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec, | |
21029 | copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt, | |
21030 | valueize_vuses): Remove. | |
21031 | (get_def_ref_stmt_vuses): Simplify. Rename to ... | |
21032 | (get_def_ref_stmt_vuse): ... this. | |
21033 | (vn_reference_lookup_2): New function. | |
21034 | (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for | |
21035 | walking equivalent vuses. Simplify. | |
21036 | (vn_reference_lookup): Likewise. | |
21037 | (vn_reference_insert): Likewise. | |
21038 | (vn_reference_insert_pieces): Likewise. | |
21039 | (visit_reference_op_call): Simplify. | |
21040 | (visit_reference_op_load): Likewise. | |
21041 | (visit_reference_op_store): Likewise. | |
21042 | (init_scc_vn): Remove shared_lookup_vuses initialization. | |
21043 | (free_scc_vn): Remove shared_lookup_vuses freeing. | |
21044 | (sort_vuses, sort_vuses_heap): Remove. | |
21045 | (get_ref_from_reference_ops): Export. | |
21046 | * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses | |
21047 | vector with single vuse pointer. | |
21048 | (vn_reference_lookup_pieces, vn_reference_lookup, | |
21049 | vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes. | |
21050 | (shared_vuses_from_stmt): Remove. | |
21051 | (get_ref_from_reference_ops): Declare. | |
21052 | * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust. | |
21053 | * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove | |
21054 | memory-tag related code. | |
21055 | * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code. | |
21056 | (likely_value): Add comment, skip static-chain of call statements. | |
21057 | (surely_varying_stmt_p): Adjust. | |
21058 | (gimplify_and_update_call_from_tree): Likewise. | |
21059 | (execute_fold_all_builtins): Do not rebuild alias info. | |
21060 | (gimplify_and_update_call_from_tree): Properly update VOPs. | |
21061 | * tree-ssa-loop-ivopts.c (get_ref_tag): Remove. | |
21062 | (copy_ref_info): Remove memory-tag related code. | |
21063 | * tree-call-cdce.c (tree_call_cdce): Rename the VOP. | |
21064 | * ipa-pure-const.c (check_decl): Remove memory-tag related code. | |
21065 | (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms | |
21066 | computation. | |
21067 | * tree-ssa-dom.c (gimple_p): Remove typedef. | |
21068 | (eliminate_redundant_computations): Adjust. | |
21069 | (record_equivalences_from_stmt): Likewise. | |
21070 | (avail_expr_hash): Likewise. | |
21071 | (avail_expr_eq): Likewise. | |
7a715bba | 21072 | * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs. |
5006671f RG |
21073 | (stmt_makes_single_load): Likewise. |
21074 | (stmt_makes_single_store): Likewise. | |
21075 | * tree-ssa-alias.c: Rewrite completely. | |
21076 | (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats, | |
21077 | debug_mem_sym_stats, dump_mem_sym_stats_for_var, | |
21078 | debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt, | |
21079 | delete_mem_ref_stats, create_tag_raw, dump_points_to_info, | |
21080 | dump_may_aliases_for, debug_may_aliases_for, new_type_alias): | |
21081 | Remove public functions. | |
21082 | (pass_reset_cc_flags): Remove. | |
21083 | (pass_build_alias): Move ... | |
21084 | * tree-ssa-structalias.c (pass_build_alias): ... here. | |
21085 | * tree-ssa-alias.c (may_be_aliased): Move ... | |
21086 | * tree-flow-inline.h (may_be_aliased): ... here. | |
21087 | tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs, | |
21088 | count_uses_and_derefs): Move ... | |
21089 | * gimple.c: ... here. | |
21090 | * gimple.h (count_uses_and_derefs): Declare. | |
21091 | * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p, | |
21092 | ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p, | |
21093 | same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p, | |
21094 | indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p, | |
21095 | ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p, | |
21096 | call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until, | |
21097 | get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs): | |
21098 | New functions. | |
21099 | * tree-dfa.c (refs_may_alias_p): Move ... | |
21100 | * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend. | |
21101 | * tree-ssa-alias.h: New file. | |
21102 | * tree-ssa-sink.c (is_hidden_global_store): Adjust. | |
21103 | (statement_sink_location): Likewise. | |
21104 | * opts.c (decode_options): Do not adjust max-aliased-vops or | |
21105 | avg-aliased-vops values. | |
21106 | * timevar.def (TV_TREE_MAY_ALIAS): Remove. | |
21107 | (TV_CALL_CLOBBER): Likewise. | |
21108 | (TV_FLOW_SENSITIVE): Likewise. | |
21109 | (TV_FLOW_INSENSITIVE): Likewise. | |
21110 | (TV_MEMORY_PARTITIONING): Likewise. | |
21111 | (TV_ALIAS_STMT_WALK): New timevar. | |
21112 | * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust. | |
21113 | * tree-ssa-address.c (create_mem_ref_raw): Use build6. | |
21114 | (get_address_description): Remove memory-tag related code. | |
21115 | * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust. | |
21116 | * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove. | |
21117 | * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs | |
21118 | and immediate uses in statements. Document. | |
21119 | * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust. | |
21120 | (dump_symbols): Remove. | |
21121 | (dump_gimple_mem_ops): Do not dump loaded or stored syms. | |
21122 | * alias.c (get_deref_alias_set): New function split out from ... | |
21123 | (get_alias_set): ... here. | |
21124 | * alias.h (get_deref_alias_set): Declare. | |
21125 | * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused | |
21126 | type parameter. Remove restrict pointer handling. Create a | |
21127 | ref-all pointer in case type-based alias sets do not conflict. | |
21128 | (vect_analyze_data_refs): Remove SMT related code. | |
21129 | * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert. | |
21130 | (vectorizable_load): Likewise. | |
21131 | * tree-data-ref.h (struct dr_alias): Remove symbol_tag field. | |
21132 | (DR_SYMBOL_TAG, DR_VOPS): Remove. | |
21133 | * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle. | |
21134 | Ignore vops and SMTs. | |
21135 | (dr_analyze_alias): Likewise.. | |
21136 | (free_data_ref): Likewise. | |
21137 | (create_data_ref): Likewise. | |
21138 | (analyze_all_data_dependences): Likewise. | |
21139 | (get_references_in_stmt): Adjust. | |
21140 | * tree-flow-inline.h (gimple_aliases_computed_p, | |
21141 | gimple_addressable_vars, gimple_call_clobbered_vars, | |
21142 | gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition, | |
21143 | factoring_name_p, mark_call_clobbered, clear_call_clobbered, | |
21144 | compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag, | |
21145 | gimple_mem_ref_stats): Remove. | |
21146 | (gimple_vop): New function. | |
21147 | (op_iter_next_use): Remove vuses and mayuses cases. | |
21148 | (op_iter_next_def): Remove vdefs case. | |
21149 | (op_iter_next_tree): Remove vuses, mayuses and vdefs cases. | |
21150 | (clear_and_done_ssa_iter): Do not set removed fields. | |
21151 | (op_iter_init): Likewise. Skip vuse and/or vdef if requested. | |
21152 | Assert we are not iterating over vuses or vdefs if not also | |
21153 | iterating over uses or defs. | |
21154 | (op_iter_init_use): Likewise. | |
21155 | (op_iter_init_def): Likewise. | |
21156 | (op_iter_next_vdef): Remove. | |
21157 | (op_iter_next_mustdef): Likewise. | |
21158 | (op_iter_init_vdef): Likewise. | |
21159 | (compare_ssa_operands_equal): Likewise. | |
21160 | (link_use_stmts_after): Handle vuse operand. | |
21161 | (is_call_used): Use is_call_clobbered. | |
21162 | (is_call_clobbered): Global variables are always call clobbered, | |
21163 | query the call-clobbers bitmap. | |
21164 | (mark_call_clobbered): Ignore global variables. | |
21165 | (clear_call_clobbered): Likewise. | |
21166 | * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust | |
21167 | virtual operands sanity check. | |
21168 | * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG): | |
21169 | Remove. | |
21170 | (TARGET_MEM_REF): Remove TMR_TAG operand. | |
21171 | * tree-dfa.c (add_referenced_var): Initialize call-clobber state. | |
21172 | Remove call-clobber related code. | |
21173 | (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag. | |
21174 | (dump_variable): Do not dump SMTs, memory stats, may-aliases or | |
21175 | partitions or escape reason. | |
21176 | (get_single_def_stmt, get_single_def_stmt_from_phi, | |
21177 | get_single_def_stmt_with_phi): Remove. | |
21178 | (dump_referenced_vars): Tidy. | |
21179 | (get_ref_base_and_extent): Allow bare decls. | |
21180 | (collect_dfa_stats): Adjust. | |
21181 | * graphite.c (rename_variables_in_stmt): Adjust. | |
21182 | (graphite_copy_stmts_from_block): Likewise. | |
21183 | (translate_clast): Likewise. | |
21184 | * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap. | |
21185 | (EXPR_DIES): New. | |
21186 | (translate_vuse_through_block): Use the oracle. | |
21187 | (phi_translate_1): Adjust. | |
21188 | (value_dies_in_block_x): Use the oracle. Cache the outcome | |
21189 | in EXPR_DIES. | |
21190 | (valid_in_sets): Check if the VUSE for | |
21191 | a REFERENCE is available. | |
21192 | (eliminate): Do not remove stmts during elimination, | |
21193 | instead queue and remove them afterwards. | |
21194 | (do_pre): Do not rebuild alias info. | |
21195 | (pass_pre): Run TODO_rebuild_alias before PRE. | |
21196 | * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code. | |
21197 | * tree-sra.c (sra_walk_function): Use gimple_references_memory_p. | |
21198 | (mark_all_v_defs_stmt): Remove. | |
21199 | (mark_all_v_defs_seq): Adjust. | |
21200 | (sra_replace): Likewise. | |
21201 | (scalarize_use): Likewise. | |
21202 | (scalarize_copy): Likewise. | |
21203 | (scalarize_init): Likewise. | |
21204 | (scalarize_ldst): Likewise. | |
21205 | (todoflags): Remove. | |
21206 | (tree_sra): Do not rebuild alias info. | |
21207 | (tree_sra_early): Adjust. | |
21208 | (pass_sra): Run TODO_update_address_taken before SRA. | |
21209 | * tree-predcom.c (set_alias_info): Remove. | |
21210 | (prepare_initializers_chain): Do not call it. | |
21211 | (mark_virtual_ops_for_renaming): Adjust. | |
21212 | (mark_virtual_ops_for_renaming_list): Remove. | |
21213 | (initialize_root_vars): Adjust. | |
21214 | (initialize_root_vars_lm): Likewise. | |
21215 | (prepare_initializers_chain): Likewise. | |
21216 | * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code. | |
21217 | (may_propagate_copy_into_stmt): Likewise. | |
21218 | (merge_alias_info): Do nothing for now. | |
21219 | (propagate_tree_value_into_stmt): Adjust. | |
21220 | (stmt_may_generate_copy): Likewise. | |
21221 | * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do | |
21222 | not mark symbols for renaming. | |
21223 | (forward_propagate_addr_expr): Match up push/pop_stmt_changes | |
21224 | with the same statement, make sure to update the new pointed-to one. | |
21225 | * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy | |
21226 | call statements, do not mark symbols for renaming. | |
21227 | (mark_operand_necessary): Dump something. | |
21228 | (ref_may_be_aliased): New function. | |
21229 | (mark_aliased_reaching_defs_necessary_1): New helper function. | |
21230 | (mark_aliased_reaching_defs_necessary): Likewise. | |
21231 | (mark_all_reaching_defs_necessary_1): Likewise. | |
21232 | (mark_all_reaching_defs_necessary): Likewise. | |
21233 | (propagate_necessity): Do not process virtual PHIs. For | |
21234 | non-aliased loads mark all reaching definitions as necessary. | |
21235 | For aliased loads and stores mark the immediate dominating | |
21236 | aliased clobbers as necessary. | |
21237 | (visited): New global static. | |
21238 | (perform_tree_ssa_dce): Free visited bitmap after propagating | |
21239 | necessity. | |
21240 | (remove_dead_phis): Perform simple dead virtual PHI removal. | |
21241 | (remove_dead_stmt): Properly unlink virtual operands when | |
21242 | removing stores. | |
21243 | (eliminate_unnecessary_stmts): Schedule PHI removal after | |
21244 | stmt removal. | |
21245 | * tree-ssa-ter.c (is_replaceable_p): Adjust. | |
21246 | (process_replaceable): Likewise. | |
21247 | (find_replaceable_in_bb): Likewise. | |
21248 | * tree-ssa.c (verify_ssa_name): Verify all VOPs are | |
21249 | based on the single gimple vop. | |
21250 | (verify_flow_insensitive_alias_info): Remove. | |
21251 | (verify_flow_sensitive_alias_info): Likewise. | |
21252 | (verify_call_clobbering): Likewise. | |
21253 | (verify_memory_partitions): Likewise. | |
21254 | (verify_alias_info): Likewise. | |
21255 | (verify_ssa): Adjust.. | |
21256 | (execute_update_addresses_taken): Export. Update SSA | |
21257 | manually. Optimize only when optimizing. Use a local bitmap. | |
21258 | (pass_update_address_taken): Remove TODO_update_ssa, add | |
21259 | TODO_dump_func. | |
21260 | (pass_update_address_taken): Just use TODO_update_address_taken. | |
21261 | (init_tree_ssa): Do not initialize addressable_vars. | |
21262 | (verify_ssa): Verify new VUSE / VDEF properties. | |
21263 | Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT. | |
21264 | Do not call verify_alias_info. | |
21265 | (delete_tree_ssa): Clear the VUSE, VDEF operands. | |
21266 | Do not free the loaded and stored syms bitmaps. Reset the escaped | |
21267 | and callused solutions. Do not free addressable_vars. | |
21268 | Remove memory-tag related code. | |
21269 | (warn_uninitialized_var): Aliases are always available. | |
21270 | * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust. | |
21271 | * lambda-code.c (can_put_in_inner_loop): Adjust. | |
21272 | (can_put_after_inner_loop): Likewise. | |
21273 | (perfect_nestify): Likewise. | |
21274 | * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust. | |
21275 | (vect_gen_widened_results_half): Remove CALL_EXPR handling. | |
21276 | (vectorizable_conversion): Do not mark symbols for renaming. | |
21277 | * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF. | |
21278 | (expand_call_inline): Unlink the calls virtual operands before | |
21279 | replacing it. | |
21280 | (tree_function_versioning): Do not call update_ssa if we are not | |
21281 | updating clones. Simplify. | |
21282 | * tree-ssa-phiprop.c (phivn_valid_p): Adjust. | |
21283 | (propagate_with_phi): Likewise.. | |
21284 | * tree-outof-ssa.c (create_temp): Remove memory tag and call | |
21285 | clobber code. Assert we are not aliased or global. | |
21286 | * tree-flow.h: Include tree-ssa-alias.h | |
21287 | (enum escape_type): Remove. | |
21288 | (struct mem_sym_stats_d): Likewise. | |
21289 | (struct mem_ref_stats_d): Likewise. | |
21290 | (struct gimple_df): Add vop member. Remove global_var, | |
21291 | call_clobbered_vars, call_used_vars, addressable_vars, | |
21292 | aliases_compted_p and mem_ref_stats members. Add syms_to_rename, | |
21293 | escaped and callused members. | |
21294 | (struct ptr_info_def): Remove all members, add points-to solution | |
21295 | member pt. | |
21296 | (struct var_ann_d): Remove in_vuse_list, in_vdef_list, | |
21297 | call_clobbered, escape_mask, mpt and symbol_mem_tag members. | |
21298 | * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h. | |
21299 | (tree-ssa-structalias.o): Remove tree-ssa-structalias.h. | |
21300 | (tree-ssa-alias.o): Likewise. | |
21301 | (toplev.o): Add tree-ssa-alias.h | |
21302 | (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h. | |
21303 | * gimple.c (gimple_set_bb): Fix off-by-one error. | |
21304 | (is_gimple_reg): Do not handle memory tags. | |
21305 | (gimple_copy): Also copy virtual operands. | |
21306 | Delay updating the statement. Do not reset loaded and stored syms. | |
21307 | (gimple_set_stored_syms): Remove. | |
21308 | (gimple_set_loaded_syms): Likewise. | |
21309 | (gimple_call_copy_skip_args): Copy the virtual operands | |
21310 | and mark the new statement modified. | |
21311 | * tree-ssa-structalias.c (may_alias_p): Remove. | |
21312 | (set_uids_in_ptset): Take the alias set to prune with as | |
21313 | parameter. Fold in the alias test of may_alias_p. | |
21314 | (compute_points_to_sets): Compute whether a ptr is dereferenced | |
21315 | in a local sbitmap. | |
21316 | (process_constraint): Deal with &ANYTHING on the lhs, reject all | |
21317 | other ADDRESSOF constraints on the lhs. | |
21318 | (get_constraint_for_component_ref): Assert that we don't get | |
21319 | ADDRESSOF constraints from the base of the reference. | |
21320 | Properly generate UNKNOWN_OFFSET for DEREF if needed. | |
21321 | (struct variable_info): Remove collapsed_to member. | |
21322 | (get_varinfo_fc): Remove. | |
21323 | (new_var_info): Do not set collapsed_to. | |
21324 | (dump_constraint): Do not follow cycles. | |
21325 | (dump_constraint_graph): Likewise. | |
21326 | (build_pred_graph): Likewise. | |
21327 | (build_succ_graph): Likewise. | |
21328 | (rewrite_constraints): Likewise. | |
21329 | (do_simple_structure_copy): Remove. | |
21330 | (do_rhs_deref_structure_copy): Remove. | |
21331 | (do_lhs_deref_structure_copy): Remove. | |
21332 | (collapse_rest_of_var): Remove. | |
21333 | (do_structure_copy): Re-implement. | |
21334 | (pta_stats): New global variable. | |
21335 | (dump_pta_stats): New function. | |
21336 | (struct constraint_expr): Make offset signed. | |
21337 | (UNKNOWN_OFFSET): Define special value. | |
21338 | (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN. | |
21339 | (solution_set_expand): New helper function split out from ... | |
21340 | (do_sd_constraint): ... here. | |
21341 | (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets. | |
21342 | (do_ds_constraint): Likewise. | |
21343 | (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED | |
21344 | and CALLUSED = *CALLUSED. | |
21345 | (set_union_with_increment): Make inc argument signed. | |
21346 | (type_safe): Remove. | |
21347 | (get_constraint_for_ptr_offset): Handle unknown and negative | |
21348 | constant offsets. | |
21349 | (first_vi_for_offset): Handle offsets before start. Bail | |
21350 | out early for offsets beyond the variable extent. | |
21351 | (first_or_preceding_vi_for_offset): New function. | |
21352 | (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint. | |
21353 | Together with ESCAPED = *ESCAPED this properly computes reachability. | |
21354 | (find_what_var_points_to): New function. | |
21355 | (find_what_p_points_to): Implement in terms of find_what_var_points_to. | |
21356 | (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global, | |
21357 | pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1, | |
21358 | pt_solutions_intersect): New functions. | |
21359 | (compute_call_used_vars): Remove. | |
21360 | (compute_may_aliases): New main entry into PTA computation. | |
21361 | * gimple.h (gimple_p): New typedef. | |
21362 | (struct gimple_statement_base): Remove references_memory_p. | |
21363 | (struct gimple_statement_with_memory_ops_base): Remove | |
21364 | vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse | |
21365 | members. | |
21366 | (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops, | |
21367 | gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms, | |
21368 | gimple_set_references_memory): Remove. | |
21369 | (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef, | |
21370 | gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef): | |
21371 | New functions. | |
21372 | * tree-cfg.c (move_block_to_fn): Fix off-by-one error. | |
21373 | (verify_expr): Allow RESULT_DECL. | |
21374 | (gimple_duplicate_bb): Do not copy virtual operands. | |
21375 | (gimple_duplicate_sese_region): Adjust. | |
21376 | (gimple_duplicate_sese_tail): Likewise. | |
21377 | (mark_virtual_ops_in_region): Remove. | |
21378 | (move_sese_region_to_fn): Do not call it. | |
21379 | * passes.c (init_optimization_passes): Remove pass_reset_cc_flags | |
21380 | and pass_simple_dse. | |
21381 | (execute_function_todo): Handle TODO_update_address_taken, | |
21382 | call execute_update_addresses_taken for TODO_rebuild_alias. | |
21383 | (execute_todo): Adjust. | |
21384 | (execute_one_pass): Init dump files early. | |
21385 | * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars | |
21386 | call-clobbered. | |
21387 | (create_general_new_stmt): Clear vops. | |
21388 | * tree-ssa-reassoc.c (get_rank): Adjust. | |
21389 | * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark | |
21390 | symbols for renaming. | |
21391 | * params.def (PARAM_MAX_ALIASED_VOPS): Remove. | |
21392 | (PARAM_AVG_ALIASED_VOPS): Likewise. | |
21393 | * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME. | |
21394 | (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps. | |
7a715bba | 21395 | * tree-ssa-operands.c: Simplify for new virtual operand representation. |
5006671f RG |
21396 | (operand_build_cmp, copy_virtual_operands, |
21397 | create_ssa_artificial_load_stmt, add_to_addressable_set, | |
21398 | gimple_add_to_addresses_taken): Remove public functions. | |
21399 | (unlink_stmt_vdef): New function. | |
21400 | ||
457d1d00 AM |
21401 | 2009-04-03 Alan Modra <amodra@bigpond.net.au> |
21402 | ||
21403 | * config.gcc (powerpc-*-linux*): Merge variants. | |
21404 | ||
e19da24c | 21405 | 2009-04-02 Chao-ying Fu <fu@mips.com> |
60839f5d | 21406 | James Grosbach <james.grosbach@microchip.com> |
e19da24c CF |
21407 | |
21408 | * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc, | |
21409 | num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset, | |
21410 | cop0_sp_offset. | |
21411 | (machine_function): Add interrupt_handler_p, use_shadow_register_set_p, | |
21412 | keep_interrupts_masked_p, use_debug_exception_return_p. | |
21413 | (mips_attribute_table): Add interrupt, use_shadow_register_set, | |
21414 | keep_interrupts_masked, use_debug_exception_return. | |
21415 | (mips_interrupt_type_p, mips_use_shadow_register_set_p, | |
21416 | mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p): | |
21417 | New functions. | |
21418 | (mips_function_ok_for_sibcall): Return false for interrupt handlers. | |
21419 | (mips_print_operand): Process COP0 registers to print $0 .. $31 | |
21420 | correctly for GAS to process. | |
21421 | (mips_interrupt_extra_call_saved_reg_p): New function. | |
21422 | (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check | |
21423 | extra registers. | |
21424 | (mips_cfun_might_clobber_call_saved_reg_p): Likewise. | |
21425 | (mips_compute_frame_info): Add supports for interrupt context that | |
21426 | includes doubleword accumulators and COP0 registers. | |
21427 | (mips_for_each_saved_acc): New function. | |
21428 | (mips_for_each_saved_gpr_and_fpr): Change the function name from | |
21429 | mips_for_each_saved_reg. | |
21430 | (mips_save_reg): Save accumulators. | |
21431 | (mips_kernel_reg_p): A new for_each_rtx callback. | |
21432 | (mips_expand_prologue): Support interrupt handlers. | |
21433 | (mips_restore_reg): Restore accumulators. | |
21434 | (mips_expand_epilogue): Support interrupt handlers. | |
21435 | (mips_can_use_return_insn): Return false for interrupt handlers. | |
21436 | (mips_epilogue_uses): New function. | |
21437 | * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI, | |
21438 | UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC. | |
21439 | (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr, | |
21440 | cop0_move): New instructions. | |
21441 | * config/mips/mips-protos.h (mips_epilogue_uses): Declare. | |
21442 | * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New | |
21443 | defines. | |
21444 | (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM): | |
21445 | New defines. | |
21446 | (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines. | |
21447 | (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For | |
21448 | interrupt handlers, we use K0 as the temporary register. | |
21449 | (EPILOGUE_USES): Change to a function call. | |
21450 | * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt | |
21451 | handlers, we use K0 as the temporary register. | |
2ba9daa7 | 21452 | |
e19da24c CF |
21453 | * doc/extend.texi (Function Attributes): Document interrupt, |
21454 | use_shadow_register_set, keep_interrupts_masked, | |
21455 | use_debug_exception_return for MIPS attributes. | |
21456 | ||
aa1ca044 AM |
21457 | 2009-04-03 Alan Modra <amodra@bigpond.net.au> |
21458 | ||
21459 | * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file. | |
21460 | Remove a number of t-files from tmake_file. | |
21461 | * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype. | |
21462 | * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define. | |
21463 | * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set | |
21464 | target_prototype, not TARGET_PROTOTYPE. | |
21465 | (LINK_OS_GNU_SPEC): Define. | |
21466 | * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S | |
21467 | and darwin-ldoubdle.c. | |
21468 | ||
14fdc613 MM |
21469 | 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com> |
21470 | ||
21471 | PR driver/39293 | |
21472 | * gcc.c (save_temps_flag): Add support for -save-temps=obj. | |
21473 | (cpp_options): Ditto. | |
21474 | (default_compilers): Ditto. | |
21475 | (display_help): Ditto. | |
21476 | (process_command): Ditto. | |
21477 | (do_spec_1): Ditto. | |
21478 | (set_input): Use lbasename instead of duplicate code. | |
21479 | (save_temps_prefix): New static for -save-temps=obj. | |
21480 | (save_temps_length): Ditto. | |
2ba9daa7 | 21481 | |
14fdc613 MM |
21482 | * doc/invoke.texi (-save-temps=obj): Document new variant to |
21483 | -save-temps switch. | |
21484 | ||
d3aa398e JL |
21485 | 2009-04-02 Jeff Law <law@redhat.com> |
21486 | ||
21487 | * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count" | |
21488 | variable. | |
21489 | ||
83f0ccb8 L |
21490 | 2009-04-02 H.J. Lu <hongjiu.lu@intel.com> |
21491 | ||
21492 | * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2. | |
21493 | * configure: Regenerated. | |
21494 | ||
dcb6e951 RAE |
21495 | 2009-04-02 Rafael Avila de Espindola <espindola@google.com> |
21496 | ||
21497 | * c-decl.c (merge_decls): Make sure newdecl and olddecl don't | |
21498 | share the argument list. | |
21499 | ||
d85478c2 RAE |
21500 | 2009-04-02 Rafael Avila de Espindola <espindola@google.com> |
21501 | ||
21502 | Merge | |
21503 | ||
21504 | 2009-02-12 Diego Novillo <dnovillo@google.com> | |
21505 | ||
83f0ccb8 L |
21506 | * varpool.c (debug_varpool): New. |
21507 | * cgraph.h (debug_varpool): Declare. | |
d85478c2 | 21508 | |
34f42a49 JH |
21509 | 2009-04-02 Jan Hubicka <jh@suse.cz> |
21510 | ||
21511 | * passes.c (init_optimization_passes): Remove two copies of ehcleanup | |
21512 | pass. | |
21513 | ||
a4747b4a L |
21514 | 2009-04-02 H.J. Lu <hongjiu.lu@intel.com> |
21515 | ||
21516 | * config/i386/i386.c (ix86_abi): Move initialization to ... | |
21517 | (override_options): Here. | |
21518 | ||
63a9de54 CB |
21519 | 2009-04-02 Christian Bruel <christian.bruel@st.com> |
21520 | ||
21521 | * config/sh/sh.c (sh_dwarf_register_span): New function. | |
21522 | (TARGET_DWARF_REGISTER_SPAN): Define. | |
21523 | * config/sh/sh-protos.h (sh_dwarf_register_span): Declare. | |
2ba9daa7 | 21524 | |
2f0fa28e IR |
21525 | 2009-04-02 Ira Rosen <irar@il.ibm.com> |
21526 | ||
21527 | PR tree-optimization/39595 | |
2ba9daa7 | 21528 | * tree-vect-slp.c (vect_build_slp_tree): Check that the size of |
2f0fa28e IR |
21529 | interleaved loads group is not greater than the SLP group size. |
21530 | ||
bbf7ce11 RAE |
21531 | 2009-04-02 Rafael Avila de Espindola <espindola@google.com> |
21532 | ||
21533 | * builtins.c (is_builtin_name): New. | |
21534 | (called_as_built_in): Use is_builtin_name. | |
21535 | * tree.h (is_builtin_name): New. | |
21536 | * varasm.c (incorporeal_function_p): Use is_builtin_name | |
21537 | ||
47e4dfcf AS |
21538 | 2009-04-02 Andrew Stubbs <ams@codesourcery.com> |
21539 | ||
21540 | * config/sh/linux-unwind.h: Disable when inhibit_libc is defined. | |
21541 | ||
d0940d56 DS |
21542 | 2009-04-02 Dodji Seketeli <dodji@redhat.com> |
21543 | ||
21544 | PR c++/26693 | |
532bfb0a | 21545 | * c-decl.c (clone_underlying_type): Move this ... |
d0940d56 DS |
21546 | * c-common.c (set_underlying_type): ... here. |
21547 | Also, make sure the function properly sets TYPE_STUB_DECL() on | |
21548 | the newly created typedef variant type. | |
21549 | * c-common.h (is_typedef_decl, set_underlying_type): Declare ... | |
7a715bba UB |
21550 | * c-common.c (is_typedef_decl, set_underlying_type): ... new entry |
21551 | points. | |
d0940d56 | 21552 | |
bf1cbdc6 RG |
21553 | 2009-04-02 Richard Guenther <rguenther@suse.de> |
21554 | ||
21555 | PR tree-optimization/37221 | |
21556 | * tree-flow.h (degenerate_phi_result): Declare. | |
21557 | * tree-ssa-dom.c (degenerate_phi_result): Export. | |
21558 | * tree-scalar-evolution.c (analyze_initial_condition): If | |
21559 | the initial condition is defined by a degenerate PHI node | |
21560 | use the degenerate value. | |
21561 | ||
87cfb32c EB |
21562 | 2009-04-01 Eric Botcazou <ebotcazou@adacore.com> |
21563 | ||
21564 | PR rtl-optimization/39588 | |
21565 | * combine.c (merge_outer_ops): Do not set the constant when this | |
21566 | is not necessary. | |
21567 | (simplify_shift_const_1): Do not modify it either in this case. | |
21568 | ||
bbb6eae8 SB |
21569 | 2009-04-01 Steven Bosscher <steven@gcc.gnu.org> |
21570 | ||
21571 | * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1 | |
21572 | tuning is deprecated if -mtune value is set to an Itanium1 variant. | |
21573 | ||
839a3b8a JJ |
21574 | 2009-04-01 Janis Johnson <janis187@us.ibm.com> |
21575 | ||
21576 | PR c/29027 | |
21577 | * c-lex.c (interpret_float): Default (no suffix) is double. | |
21578 | ||
667e8acb XDL |
21579 | 2009-04-1 Xinliang David Li <davidxl@google.com> |
21580 | ||
21581 | * config/i386/i386.c (legitimate_constant_p): Recognize | |
21582 | all one vector constant. | |
21583 | ||
60839f5d | 21584 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 21585 | |
60839f5d | 21586 | * config/vax/vax.c: Add #includes to silence warnings. |
c4e75102 MT |
21587 | Change #include order to silence two warnings. |
21588 | ||
60839f5d | 21589 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 21590 | |
60839f5d | 21591 | * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit. |
c4e75102 MT |
21592 | (ASM_SPEC): Pass -k to the assembler for PIC code. |
21593 | ||
60839f5d | 21594 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 21595 | |
60839f5d EB |
21596 | * config.gcc: Add vax-*-linux* to the switch. |
21597 | * config/vax/linux.h: New file. (TARGET_VERSION, | |
c4e75102 MT |
21598 | TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define. |
21599 | ||
60839f5d | 21600 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 21601 | |
60839f5d | 21602 | * config/vax/vax.c (vax_output_int_move, adjacent_operands_p): |
c4e75102 | 21603 | Use predicate macros instead of GET_CODE() == foo. |
60839f5d | 21604 | * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3, |
c4e75102 MT |
21605 | ashlsi3, rotrsi3, <unnamed>): Likewise. |
21606 | ||
60839f5d | 21607 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 21608 | |
60839f5d | 21609 | * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi, |
c4e75102 | 21610 | jbbccihi, jbbccisi): Remova trailing whitespace. |
60839f5d EB |
21611 | * config/vax/constraints.md: Likewise. |
21612 | * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise. | |
21613 | * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise. | |
21614 | * config/vax/predicates.md: Likewise. | |
21615 | * config/vax/vax.c (print_operand_address, vax_output_int_move, | |
c4e75102 | 21616 | vax_expand_addsub_di_operands, adjacent_operands_p): Likewise. |
60839f5d EB |
21617 | * config/vax/vax.h: Likewise. |
21618 | * config/vax/vax.md (nonlocal_goto): Likewise. | |
c4e75102 | 21619 | |
60839f5d | 21620 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 21621 | |
60839f5d | 21622 | * config/vax/vax.c (vax_float_literal, vax_output_int_move) |
c4e75102 MT |
21623 | (indirectable_address_p, adjacent_operands_p): Add spaces around |
21624 | braces. | |
60839f5d | 21625 | * config/vax/vax-protos.h (adjacent_operands_p): Likewise. |
c4e75102 | 21626 | |
60839f5d | 21627 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 21628 | |
60839f5d | 21629 | * config/vax/vax.c (legitimate_constant_address_p, |
c4e75102 MT |
21630 | legitimate_constant_p, indirectable_address_p, nonindexed_address_p, |
21631 | index_term_p, reg_plus_index_p, legitimate_address_p, | |
21632 | vax_mode_dependent_address_p): Update comments to match functions | |
21633 | modified by the recent int->bool conversion. | |
21634 | ||
60839f5d | 21635 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 21636 | |
60839f5d EB |
21637 | * config/vax/builtins.md: Update copyright message. |
21638 | * config/vax/constraints.md: Likewise. | |
21639 | * config/vax/netbsd-elf.h: Likewise. | |
21640 | * config/vax/predicates.md: Likewise. | |
21641 | * config/vax/vax-protos.h: Likewise. | |
21642 | * config/vax/vax.c: Likewise. | |
21643 | * config/vax/vax.h: Likewise. | |
21644 | * config/vax/vax.md: Likewise. | |
21645 | * config/vax/vax.opt: Likewise. | |
c4e75102 | 21646 | |
60839f5d | 21647 | 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de> |
c4e75102 | 21648 | |
60839f5d | 21649 | * config/vax/builtins.md (ffssi2, ffssi2_internal, |
c4e75102 | 21650 | sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention. |
60839f5d EB |
21651 | * config/vax/constraints.md (B, R): Likewise. |
21652 | * config/vax/predicates.md (external_memory_operand, | |
c4e75102 | 21653 | nonimmediate_addsub_di_operand): Likewise. |
60839f5d EB |
21654 | * config/vax/vax.c (vax_output_int_add): Likewise. |
21655 | * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value, | |
c4e75102 MT |
21656 | untyped_call): Likewise. |
21657 | ||
60839f5d | 21658 | 2009-04-01 Matt Thomas <matt@3am-software.com> |
c4e75102 | 21659 | |
7a715bba UB |
21660 | * config/vax/predicates.md: New file. |
21661 | (symbolic_operand, local_symbolic_operand, external_symbolic_operand, | |
c4e75102 MT |
21662 | external_const_operand, nonsymbolic_operand, external_memory_operand, |
21663 | indirect_memory_operand, indexed_memory_operand, | |
21664 | illegal_blk_memory_operand, illegal_addsub_di_memory_operand, | |
21665 | nonimmediate_addsub_di_operand, general_addsub_di_operand): New | |
21666 | predicate. | |
7a715bba UB |
21667 | * config/vax/constraints.md: New file. |
21668 | (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T): | |
21669 | New constraint. | |
21670 | * config/vax/builtins.md: New file. | |
21671 | (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi, | |
21672 | jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi, | |
21673 | jbbccisi): Define. | |
c4e75102 MT |
21674 | * config/vax/vax.opt (mqmath): Add option. |
21675 | * config/vax/vax.md (isfx): Extend with DI. | |
21676 | (VAXintQH, VAXintQHSD): Define. | |
21677 | (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2, | |
21678 | mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>, | |
21679 | and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2, | |
21680 | one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints. | |
21681 | (movdi): Update constraints and use vax_output_int_move(). | |
21682 | (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg, | |
21683 | movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym, | |
21684 | pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>, | |
21685 | nonlocal_goto): New. | |
21686 | (mov<mode>): Extend accepted operand types. | |
21687 | (subdi3_old): Rename from subdi3, change update constraints and use | |
21688 | a new implementation. | |
60839f5d | 21689 | * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space. |
c4e75102 MT |
21690 | (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS, |
21691 | MOVE_RATIO, CLEAR_RATIO): Define. | |
21692 | (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P, | |
21693 | CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete. | |
21694 | (PRINT_OPERAND): Redefine using a function instead of inlined code. | |
60839f5d | 21695 | * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define. |
c4e75102 MT |
21696 | (split_quadword_operands): Make static and really allow variable |
21697 | splitting. | |
21698 | (print_operand_address): Update for PIC generation. | |
21699 | (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract, | |
21700 | indexable_address_p, fixup_mathdi_operand, | |
21701 | vax_expand_addsub_di_operands, adjacent_operands_p): New. | |
21702 | (vax_float_literal, legitimate_constant_p, | |
21703 | indirectable_constant_address_p, index_term_p, | |
21704 | reg_plus_index_p): Return bool instead of int. | |
21705 | (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT | |
21706 | where needed. | |
21707 | (vax_output_int_move, vax_output_int_add): Extend to allow PIC | |
21708 | generation. | |
21709 | (vax_output_conditional_branch): Indent. | |
21710 | (legitimate_constant_address_p, indirectable_constant_address_p, | |
21711 | indirectable_address_p, nonindexed_address_p, legitimate_address_p, | |
21712 | vax_mode_dependent_address_p): Return bool instead of int, update for | |
21713 | PIC generation. | |
21714 | * config/vax/vax-protos.h (legitimate_constant_address_p, | |
21715 | legitimate_constant_p, legitimate_address_p, | |
21716 | vax_mode_dependent_address_p): Change declaration to bool. | |
21717 | (legitimate_pic_operand_p, adjacent_operands_p, print_operand, | |
21718 | vax_expand_addsub_di_operands, vax_output_int_subtract, | |
21719 | vax_output_movmemsi): Declare. | |
21720 | (split_quadword_operands, vax_float_literal): Delete declaration. | |
21721 | * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define. | |
21722 | * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS, | |
21723 | VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT, | |
21724 | ASM_OUTPUT_DWARF_PCREL): Define. | |
21725 | (ASM_SPEC): Change definition to allow PIC generation. | |
21726 | ||
9332c6eb L |
21727 | 2009-04-01 Steve Ellcey <sje@cup.hp.com> |
21728 | ||
21729 | * doc/sourcebuild.texi: Update front-end requirements. | |
21730 | ||
d93e052c JJ |
21731 | 2009-04-01 Jakub Jelinek <jakub@redhat.com> |
21732 | ||
21733 | PR target/39226 | |
21734 | * config/rs6000/rs6000.md (andsi3_internal5_nomc, | |
21735 | anddi3_internal2_nomc, anddi3_internal3_nomc): Removed. | |
21736 | (booldi3_internal3): Use boolean_or_operator instead of | |
21737 | boolean_operator. | |
21738 | ||
6ccb2a4a JM |
21739 | 2009-04-01 Joseph Myers <joseph@codesourcery.com> |
21740 | ||
21741 | PR c/39605 | |
21742 | * c-decl.c (grokdeclarator): Pedwarn for file-scope array | |
21743 | declarator whose size is not an integer constant expression but | |
21744 | folds to an integer constant, then treat it as a constant | |
21745 | subsequently. | |
21746 | ||
299b87f8 RG |
21747 | 2009-04-01 Richard Guenther <rguenther@suse.de> |
21748 | ||
21749 | * fold-const.c (fold_plusminus_mult_expr): Do not fold | |
21750 | i * 4 + 2 to (i * 2 + 1) * 2. | |
21751 | ||
b85eb797 JJ |
21752 | 2009-04-01 Jakub Jelinek <jakub@redhat.com> |
21753 | ||
21754 | PR c/37772 | |
21755 | * c-parser.c (c_parser_asm_statement): Skip until close paren and | |
21756 | return if c_parser_asm_string_literal returned NULL. | |
21757 | ||
235e1fe8 NC |
21758 | 2009-04-01 Nick Clifton <nickc@redhat.com> |
21759 | ||
21760 | * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not | |
21761 | already defined. | |
21762 | * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c. | |
21763 | * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the | |
21764 | other typedefs to avoid conflicts with libgcc2.c. Define labels | |
21765 | to gain 16-bit bit-manipulation functions from libgcc2.c and then | |
21766 | include it. | |
21767 | * config/m32c/m32c-lib2-trapv.c: New file. Define labels | |
21768 | to gain 16-bit trapping arithmetic functions from libgcc2.c and | |
21769 | then include it. | |
21770 | ||
d6868399 RAE |
21771 | 2009-04-01 Rafael Avila de Espindola <espindola@google.com> |
21772 | ||
7a715bba UB |
21773 | * varasm.c (default_function_rodata_section): Declare DOT as |
21774 | const char*. | |
d6868399 | 21775 | |
73d21f56 | 21776 | 2009-04-01 Kai Tietz <kai.tietz@onevision.com> |
60839f5d | 21777 | Andrey Galkin <agalkin@hypercom.com> |
73d21f56 KT |
21778 | |
21779 | PR/39492 | |
21780 | * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): | |
21781 | Make object_name unique for each process. | |
21782 | ||
03742a9b JJ |
21783 | 2009-04-01 Jakub Jelinek <jakub@redhat.com> |
21784 | ||
21785 | PR other/39591 | |
21786 | * omp-low.c (remove_exit_barrier): Don't optimize if there are any | |
21787 | addressable variables in the parallel that could go out of scope while | |
21788 | running queued tasks. | |
21789 | ||
4223ff5f AS |
21790 | 2009-04-01 Anatoly Sokolov <aesok@post.ru> |
21791 | ||
21792 | * config/avr/avr.h (avr_case_values_threshold): Remove declaration. | |
21793 | (CASE_VALUES_THRESHOLD): Redefine. | |
21794 | * config/avr/avr.c (avr_override_options): Remove initialization of | |
21795 | avr_case_values_threshold variable. | |
21796 | (avr_case_values_threshold): Remove variable. Add new function. | |
21797 | * config/avr/avr-protos.h (avr_case_values_threshold): Declare. | |
21798 | * config/avr/avr.opt (mno-tablejump): Remove option. | |
21799 | * doc/invoke.texi (AVR Options): Remove -mno-tablejump. | |
21800 | ||
e893f6f3 DD |
21801 | 2009-04-01 DJ Delorie <dj@redhat.com> |
21802 | ||
21803 | * varasm.c (default_function_rodata_section): Don't assume | |
21804 | anything about where the first '.' in the section name is. | |
21805 | ||
b246d100 AM |
21806 | 2009-04-01 Alan Modra <amodra@bigpond.net.au> |
21807 | ||
21808 | * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant | |
21809 | rs6000_emit_stack_tie. | |
21810 | ||
d3e37a9e ILT |
21811 | 2009-03-31 Ian Lance Taylor <iant@google.com> |
21812 | ||
21813 | * tree-eh.c (tree_remove_unreachable_handlers): Compare | |
21814 | gimple_code with GIMPLE_RESX, not RESX. | |
21815 | ||
c1b61fca JM |
21816 | 2009-03-31 Joseph Myers <joseph@codesourcery.com> |
21817 | ||
21818 | * c-common.c (c_get_ident): New. | |
7a715bba | 21819 | (c_common_nodes_and_builtins): Call it for type names that may be NULL. |
c1b61fca | 21820 | |
c2d2ad48 BE |
21821 | 2009-04-01 Ben Elliston <bje@au.ibm.com> |
21822 | ||
21823 | * config/rs6000/sysv4.opt (msdata): Improve option description. | |
21824 | ||
13d1a6e7 SE |
21825 | 2009-03-31 Steve Ellcey <sje@cup.hp.com> |
21826 | ||
21827 | * config/ia64/ia64.md (divsf3_internal_lat): Remove. | |
21828 | (divdf3_internal_lat): Remove. | |
21829 | (divxf3_internal_lat): Remove. | |
21830 | (divxf3_internal_thr): Remove. | |
21831 | (divxf): Use divxf3_internal. | |
21832 | * config/ia64/div.md (divsf3_internal_lat): New. | |
21833 | (divdf3_internal_lat): New. | |
21834 | (divxf3_internal): New. | |
21835 | ||
207bf79d JM |
21836 | 2009-03-31 Joseph Myers <joseph@codesourcery.com> |
21837 | ||
21838 | PR c/448 | |
21839 | * Makefile.in (USE_GCC_STDINT): Define. | |
21840 | (stmp-int-hdrs): Install stdint.h if applicable. | |
21841 | * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE | |
21842 | if known. | |
21843 | (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known. | |
21844 | (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE, | |
21845 | UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE, | |
21846 | INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, | |
21847 | INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, | |
21848 | UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE, | |
21849 | INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE, | |
21850 | UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, | |
21851 | UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define. | |
21852 | (c_common_nodes_and_builtins): Initialize | |
21853 | underlying_wchar_type_node. Do not initialize | |
21854 | signed_wchar_type_node or unsigned_wchar_type_node. Initialize | |
21855 | nodes for new types. | |
21856 | (c_stddef_cpp_builtins): Define macros for new types. | |
21857 | * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE): | |
21858 | Remove. | |
21859 | (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE, | |
21860 | CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE, | |
21861 | CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE, | |
21862 | CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE, | |
21863 | CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE, | |
21864 | CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE, | |
21865 | CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE, | |
21866 | CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE, | |
21867 | CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define. | |
21868 | (signed_wchar_type_node, unsigned_wchar_type_node): Remove. | |
21869 | (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node, | |
21870 | int16_type_node, int32_type_node, int64_type_node, | |
21871 | uint8_type_node, uint16_type_node, c_uint32_type_node, | |
21872 | c_uint64_type_node, int_least8_type_node, int_least16_type_node, | |
21873 | int_least32_type_node, int_least64_type_node, | |
21874 | uint_least8_type_node, uint_least16_type_node, | |
21875 | uint_least32_type_node, uint_least64_type_node, | |
21876 | int_fast8_type_node, int_fast16_type_node, int_fast32_type_node, | |
21877 | int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node, | |
21878 | uint_fast32_type_node, uint_fast64_type_node, intptr_type_node, | |
21879 | uintptr_type_node): Define. | |
21880 | * c-cppbuiltin.c (builtin_define_constants, | |
21881 | builtin_define_type_minmax): New. | |
21882 | (builtin_define_stdint_macros): Define more macros. | |
21883 | (c_cpp_builtins): Define more limit macros. | |
21884 | (type_suffix): New. | |
21885 | (builtin_define_type_max): Define in terms of | |
21886 | builtin_define_type_minmax. Remove is_long parameter. All | |
21887 | callers changed. | |
21888 | * config.gcc (use_gcc_stdint): Define. | |
21889 | (tm_file): Add glibc-stdint.h for targets using glibc or uClibc. | |
21890 | Add newlib-stdint.h for generic targets. | |
21891 | * config/glibc-stdint.h, config/newlib-stdint.h, | |
21892 | ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New. | |
21893 | * config/m32c/m32c.h (UINTPTR_TYPE): Define. | |
21894 | * config/score/score.h (UINTPTR_TYPE): Define. | |
21895 | * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, | |
21896 | INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, | |
21897 | UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, | |
21898 | INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, | |
21899 | UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE, | |
21900 | INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE, | |
21901 | UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, | |
21902 | UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define. | |
21903 | * config/spu/spu.h (STDINT_LONG32): Define. | |
21904 | * configure.ac (use_gcc_stdint): Substitute. | |
21905 | * configure: Regenerate. | |
21906 | * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__, | |
21907 | __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__, | |
21908 | __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__, | |
21909 | __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__, | |
21910 | __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__, | |
21911 | __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__, | |
21912 | __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__, | |
21913 | __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__, | |
21914 | __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__, | |
21915 | __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__, | |
21916 | __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__, | |
21917 | __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__, | |
21918 | __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__, | |
21919 | __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__, | |
21920 | __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__, | |
21921 | __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__, | |
21922 | __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__, | |
21923 | __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__, | |
21924 | __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__, | |
21925 | __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C, | |
21926 | __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document. | |
21927 | * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, | |
21928 | INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE, | |
21929 | INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE, | |
21930 | INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, | |
21931 | UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE, | |
21932 | INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE, | |
21933 | UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE, | |
21934 | UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document. | |
21935 | ||
ed853664 BS |
21936 | 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com> |
21937 | ||
21938 | * loop-iv.c (suitable_set_for_replacement): Renamed from | |
21939 | simplify_using_assignment; changed to return bool and to accept new | |
21940 | args DEST and SRC. Return true iff we find a source/destination pair | |
21941 | that can be used to make a replacement, and fill SRC and DEST if so. | |
21942 | Remove arg ALTERED. Don't deal with altered regs here. All callers | |
21943 | changed. | |
21944 | (simplify_using_initial_values): Deal with altered regs here and track | |
21945 | more precisely the effect they have on the validity of our expression. | |
21946 | ||
1569e190 BS |
21947 | * loop-iv.c (simplify_using_condition): A condition of the form |
21948 | (EQ REG CONST) can be used to simply make a substitution. | |
21949 | (simplify_using_initial_values): Keep track of conditions we have seen | |
21950 | and keep using them to simplify new expressions, while applying the | |
21951 | same substitutions to them as to the expression. | |
21952 | ||
1d1eb80c BS |
21953 | * simplify-rtx.c (simplify_relational_operation_1): Simplify |
21954 | (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with | |
21955 | GEU/LTU reversed. | |
21956 | ||
28af33b0 BS |
21957 | * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers |
21958 | changed. Use this when trying to improve the upper bound. | |
21959 | Generate the comparison by using simplify_gen_relational. | |
21960 | ||
b30321cd BS |
21961 | * loop-iv.c (simple_rhs_p): Allow more kinds of expressions. |
21962 | ||
60081874 BS |
21963 | * loop-iv.c (replace_single_def_regs, replace_in_expr): New static |
21964 | functions. | |
2ba9daa7 | 21965 | (simplify_using_assignment, simplify_using_initial_values): Call |
60081874 BS |
21966 | replace_in_expr to make replacements. Call replace_single_def_regs |
21967 | once on the initial version of the expression. | |
21968 | ||
bebc6e07 RR |
21969 | 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
21970 | ||
fcb82ab0 | 21971 | PR target/27237 |
bebc6e07 | 21972 | * doc/invoke.texi (ARM Options): Update documentation for -mthumb. |
2ba9daa7 | 21973 | |
6b12efe9 RG |
21974 | 2009-03-31 Richard Guenther <rguenther@suse.de> |
21975 | ||
21976 | PR middle-end/31029 | |
21977 | * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for | |
21978 | equality comparisons. Fold C - X CMP X if C % 2 == 1. | |
21979 | ||
108f6c2f RG |
21980 | 2009-03-31 Richard Guenther <rguenther@suse.de> |
21981 | ||
21982 | * tree.h (div_if_zero_remainder): Declare. | |
21983 | * fold-const.c (div_if_zero_remainder): Export. | |
21984 | * tree-ssa-forwprop.c | |
21985 | (forward_propagate_addr_into_variable_array_index): Handle | |
21986 | constant array index addition outside of the variable index. | |
21987 | ||
8f612190 JM |
21988 | 2009-03-31 Joseph Myers <joseph@codesourcery.com> |
21989 | ||
21990 | PR target/39592 | |
21991 | * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed | |
21992 | define_splits, floatunssi<mode>2): Require x87 conversions from | |
21993 | DImode to be permitted. | |
21994 | ||
47580d22 JM |
21995 | 2009-03-31 Joseph Myers <joseph@codesourcery.com> |
21996 | ||
21997 | PR preprocessor/15638 | |
21998 | * c-common.c (c_cpp_error): Handle CPP_DL_FATAL. | |
21999 | ||
ba4d8f9d RG |
22000 | 2009-03-31 Richard Guenther <rguenther@suse.de> |
22001 | ||
22002 | PR middle-end/23401 | |
22003 | PR middle-end/27810 | |
22004 | * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove. | |
22005 | (struct tree_decl_with_vis): Remove gimple_formal_temp member. | |
22006 | * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to | |
22007 | a separate statement. | |
22008 | * gimplify.c (pop_gimplify_context): Remove formal temp handling. | |
22009 | (lookup_tmp_var): Likewise. | |
22010 | (is_gimple_formal_tmp_or_call_rhs): Remove. | |
22011 | (is_gimple_reg_or_call_rhs): Rename to ... | |
22012 | (is_gimple_reg_rhs_or_call): ... this. | |
22013 | (is_gimple_mem_or_call_rhs): Rename to ... | |
22014 | (is_gimple_mem_rhs_or_call): ... this. | |
22015 | (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set | |
22016 | DECL_GIMPLE_REG_P only if is_formal is true. | |
22017 | (gimplify_compound_lval): Use is_gimple_reg. Remove workaround | |
22018 | for non-proper post-modify expression gimplification. | |
22019 | (gimplify_self_mod_expr): For post-modify expressions gimplify | |
22020 | the lvalue to a minimal lvalue. | |
22021 | (rhs_predicate_for): Remove formal temp case. | |
22022 | (gimplify_modify_expr_rhs): Likewise. | |
22023 | (gimplify_addr_expr): Use is_gimple_reg. | |
22024 | (gimplify_expr): Remove formal temp cases. | |
22025 | (gimple_regimplify_operands): Likewise. | |
22026 | * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR | |
22027 | and FILTER_EXPR like constants. | |
22028 | * gimple.c (walk_gimple_op): Fix val_only initialization, use | |
22029 | is_gimple_reg. | |
22030 | (is_gimple_formal_tmp_rhs): Remove. | |
22031 | (is_gimple_reg_rhs): Remove special casing. | |
22032 | (is_gimple_mem_rhs): Fix. | |
22033 | (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier. | |
22034 | (is_gimple_formal_tmp_var): Remove. | |
22035 | (is_gimple_formal_tmp_reg): Likewise. | |
22036 | (is_gimple_min_lval): Allow invariant component ref parts. | |
22037 | * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var, | |
22038 | is_gimple_formal_tmp_reg): Remove declarations. | |
22039 | * tree-cfg.c (verify_expr): Verify that variables with address | |
22040 | taken do not have DECL_GIMPLE_REG_P set. | |
22041 | * tree-mudflap.c (mf_build_check_statement_for): Use | |
22042 | force_gimple_operand instead of gimplify_expr. | |
22043 | ||
8de9b877 AZ |
22044 | 2009-03-31 Ayal Zaks <zaks@il.ibm.com> |
22045 | ||
22046 | * modulo-sched.c (sms_schedule_by_order): Pass the actual | |
22047 | schedulable rows to compute_split_row. | |
22048 | ||
b5e3caf2 BE |
22049 | 2009-03-31 Ben Elliston <bje@au.ibm.com> |
22050 | ||
22051 | PR target/31635 | |
22052 | * config/rs6000/rs6000.c (rs6000_handle_option): Handle | |
22053 | OPT_mvrsave. | |
22054 | ||
9752c4ad AM |
22055 | 2009-03-31 Alan Modra <amodra@bigpond.net.au> |
22056 | ||
22057 | * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers. | |
22058 | * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check. | |
22059 | * configure: Regenerate. | |
22060 | * config.in: Regenerate. | |
22061 | * config/rs6000/rs6000.opt (mtls-markers): Add. | |
22062 | * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define. | |
22063 | * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter. | |
22064 | (tls_ld_aix, tls_ld_sysv): Likewise. | |
22065 | (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns. | |
22066 | (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise. | |
22067 | ||
b597d1b6 AM |
22068 | 2009-03-31 Alan Modra <amodra@bigpond.net.au> |
22069 | ||
22070 | * config/spu/spu.c (spu_expand_prologue): Delete redundant code. | |
22071 | ||
a203a221 JH |
22072 | 2009-03-30 Jan Hubicka <jh@suse.cz> |
22073 | ||
b597d1b6 AM |
22074 | * tree-eh.c (make_eh_edges): Set probability 100% to first edge |
22075 | out of RESX. | |
22076 | (tree_remove_unreachable_handlers): Cleanup EH predecestor | |
22077 | detection and label handling. | |
a203a221 | 22078 | |
5b0c0b2c VM |
22079 | 2009-03-30 Vladimir Makarov <vmakarov@redhat.com> |
22080 | ||
22081 | * ira-int.h (ira_allocno): Rename left_conflicts_num to | |
22082 | left_conflicts_size. | |
22083 | (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to | |
22084 | ALLOCNO_LEFT_CONFLICTS_SIZE. | |
22085 | ||
22086 | * ira-color.c (allocno_spill_priority, push_allocno_to_stack, | |
22087 | remove_allocno_from_bucket_and_push, | |
22088 | allocno_spill_priority_compare, push_allocnos_to_stack, | |
22089 | setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE | |
22090 | instead of ALLOCNO_LEFT_CONFLICTS_NUM. | |
22091 | (setup_allocno_left_conflicts_num): Ditto. Rename to | |
22092 | setup_allocno_left_conflicts_size. | |
22093 | (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE | |
22094 | instead of ALLOCNO_LEFT_CONFLICTS_NUM and | |
22095 | setup_allocno_left_conflicts_size instead of | |
22096 | setup_allocno_left_conflicts_num. | |
22097 | ||
22098 | * ira-build.c (ira_create_allocno): Use | |
22099 | ALLOCNO_LEFT_CONFLICTS_SIZE instead of | |
22100 | ALLOCNO_LEFT_CONFLICTS_NUM. | |
2ba9daa7 | 22101 | |
9a48a93f VM |
22102 | 2009-03-30 Vladimir Makarov <vmakarov@redhat.com> |
22103 | ||
22104 | * reload.c (push_reload, find_dummy_reload): Use df_get_live_out | |
22105 | instead of DF_LR_OUT. | |
22106 | ||
22107 | * ira-lives.c (process_bb_node_lives): Ditto. | |
22108 | ||
22109 | * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in} | |
22110 | instead of DF_LR_{OUT,IN}. | |
22111 | ||
22112 | * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto. | |
22113 | ||
22114 | * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto. | |
22115 | ||
4c936d4f JH |
22116 | 2009-03-30 Jan Hubicka <jh@suse.cz> |
22117 | ||
22118 | * except.c (label_to_region_map): Fix thinko. | |
22119 | ||
f4d9f129 SE |
22120 | 2009-03-30 Steve Ellcey <sje@cup.hp.com> |
22121 | ||
22122 | PR middle-end/38237 | |
22123 | * tree.h (tree_find_value): New declaration. | |
22124 | * tree.c (tree_find_value): New function. | |
22125 | * varasm.c (assemble_external): Avoid duplicate entries on lists. | |
22126 | ||
b3f27c15 JJ |
22127 | 2009-03-30 Jakub Jelinek <jakub@redhat.com> |
22128 | ||
22129 | PR debug/39563 | |
22130 | * c-decl.c (struct c_binding): Add locus field. | |
22131 | (bind): Add locus argument, set locus field from it. | |
22132 | (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL, | |
22133 | add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS. | |
22134 | (push_file_scope, pushtag, pushdecl, pushdecl_top_level, | |
22135 | implicitly_declare, undeclared_variable, lookup_label, | |
22136 | declare_label, c_make_fname_decl, c_builtin_function, | |
22137 | c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust | |
22138 | bind callers. | |
22139 | ||
ad41bd84 | 22140 | 2009-03-30 H.J. Lu <hongjiu.lu@intel.com> |
680e8a00 L |
22141 | |
22142 | PR target/38781 | |
22143 | * config/i386/i386.c (classify_argument): Check total size of | |
22144 | structure. | |
22145 | ||
133f9369 MJ |
22146 | 2009-03-30 Martin Jambor <mjambor@suse.cz> |
22147 | ||
22148 | * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST, | |
22149 | IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN, | |
22150 | IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH | |
22151 | respectively. | |
22152 | ||
22153 | * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if | |
22154 | seen_variable_array_ref while also traversing a union. | |
22155 | ||
22156 | * tree-inline.c (optimize_inline_calls): Do not call | |
22157 | cgraph_node_remove_callees. | |
22158 | * cgraphbuild.c (remove_cgraph_callee_edges): New function. | |
22159 | (pass_remove_cgraph_callee_edges): New variable. | |
22160 | * passes.c (init_optimization_passes): Add | |
22161 | pass_remove_cgraph_callee_edges after early inlining and before all | |
22162 | late intraprocedural passes. | |
22163 | ||
22164 | * omp-low.c (expand_omp_taskreg): Always set current_function_decl. | |
22165 | ||
1190f2eb PB |
22166 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22167 | ||
22168 | * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis): | |
22169 | Fix typos in names. | |
22170 | ||
fedc1775 PB |
22171 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22172 | ||
fcb82ab0 UB |
22173 | * combine.c (simplify_comparison): Use have_insn_for. |
22174 | * dojump.c (do_jump): Likewise. | |
fedc1775 | 22175 | |
65c5ae8b PB |
22176 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22177 | ||
22178 | * config/sparc/sparc.c (sparc_compare_emitted): Remove. | |
22179 | (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC | |
22180 | sparc_compare_op0 like sparc_compare_emitted used to be handled. | |
22181 | (sparc_expand_compare_and_swap_12): Set sparc_compare_op0 | |
22182 | instead of sparc_compare_emitted. | |
22183 | * config/sparc/sparc.h (sparc_compare_emitted): Remove. | |
22184 | * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0 | |
22185 | instead of sparc_compare_emitted. | |
22186 | ||
d25aa7ab PB |
22187 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22188 | ||
22189 | * bb-reorder.c (partition_hot_cold_basic_blocks): Do not | |
22190 | enter/exit cfglayout mode. | |
22191 | (pass_partition_block): Require it. | |
22192 | * combine.c (find_single_use, reg_dead_at_p): Use CFG. | |
22193 | (combine_instructions): Track basic blocks instead of labels. | |
22194 | (update_cfg_for_uncondjump): New. | |
22195 | (try_combine): Use it. Update jumps after rescanning. | |
22196 | (pass_combine): Require PROP_cfglayout. | |
22197 | * passes.c (pass_outof_cfg_layout_mode): Move after regmove. | |
22198 | ||
9c9e26f5 PB |
22199 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22200 | ||
fcb82ab0 UB |
22201 | * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): |
22202 | Provide/destroy PROP_cfglayout respectively. | |
22203 | * gcse.c (pass_jump_bypass, pass_gcse): Require it. | |
22204 | * tree-pass.h (PROP_cfglayout): New. | |
9c9e26f5 | 22205 | |
28ddeea1 PB |
22206 | 2009-03-30 Paolo Bonzini <bonzini@gnu.org> |
22207 | ||
22208 | * fold-const.c (const_binop, fold_convert_const_real_from_fixed, | |
22209 | fold_convert_const_fixed_from_fixed, | |
22210 | fold_convert_const_fixed_from_int, | |
22211 | fold_convert_const_fixed_from_real, fold_negate_const): Do not | |
22212 | set TREE_CONSTANT_OVERFLOW. | |
22213 | * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW. | |
22214 | * tree.h (TREE_CONSTANT_OVERFLOW): Delete. | |
22215 | ||
ebfd146a IR |
22216 | 2009-03-30 Ira Rosen <irar@il.ibm.com> |
22217 | ||
22218 | * tree-vect-loop-manip.c: New file. | |
22219 | * tree-vectorizer.c: Update documentation and included files. | |
22220 | (vect_loop_location): Make extern. | |
22221 | (rename_use_op): Move to tree-vect-loop-manip.c | |
2ba9daa7 AS |
22222 | (rename_variables_in_bb, rename_variables_in_loop, |
22223 | slpeel_update_phis_for_duplicate_loop, | |
ebfd146a IR |
22224 | slpeel_update_phi_nodes_for_guard1, |
22225 | slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes, | |
22226 | slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard, | |
22227 | slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling, | |
2ba9daa7 | 22228 | set_prologue_iterations, slpeel_tree_peel_loop_to_edge, |
ebfd146a IR |
22229 | find_loop_location): Likewise. |
22230 | (new_stmt_vec_info): Move to tree-vect-stmts.c. | |
22231 | (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info, | |
22232 | get_vectype_for_scalar_type, vect_is_simple_use, | |
22233 | supportable_widening_operation, supportable_narrowing_operation): | |
22234 | Likewise. | |
22235 | (bb_in_loop_p): Move to tree-vect-loop.c. | |
2ba9daa7 AS |
22236 | (new_loop_vec_info, destroy_loop_vec_info, |
22237 | reduction_code_for_scalar_code, report_vect_op, | |
ebfd146a IR |
22238 | vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise. |
22239 | (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c. | |
22240 | (vect_supportable_dr_alignment): Likewise. | |
22241 | * tree-vectorizer.h (tree-data-ref.h): Include. | |
22242 | (vect_loop_location): Declare. | |
22243 | Reorganize function declarations according to the new file structure. | |
22244 | * tree-vect-loop.c: New file. | |
2ba9daa7 | 22245 | * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c, |
ebfd146a IR |
22246 | tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c. |
22247 | * tree-vect-data-refs.c: New file. | |
22248 | * tree-vect-patterns.c (timevar.h): Don't include. | |
22249 | * tree-vect-stmts.c: New file. | |
2ba9daa7 | 22250 | * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c, |
ebfd146a | 22251 | tree-vect-slp.c, tree-vect-loop.c. |
2ba9daa7 AS |
22252 | * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and |
22253 | tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o, | |
ebfd146a IR |
22254 | tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o. |
22255 | (tree-vect-analyze.o): Remove. | |
22256 | (tree-vect-transform.o): Likewise. | |
22257 | (tree-vect-data-refs.o): Add rule. | |
2ba9daa7 | 22258 | (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o, |
ebfd146a IR |
22259 | tree-vect-slp.o): Likewise. |
22260 | (tree-vect-patterns.o): Remove redundant dependencies. | |
22261 | (tree-vectorizer.o): Likewise. | |
22262 | * tree-vect-slp.c: New file. | |
22263 | ||
40a1cfba RW |
22264 | 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
22265 | ||
22266 | * optc-gen.awk: Warn if an option flag has multiple different | |
22267 | help strings. | |
22268 | ||
a9a7a9a2 SP |
22269 | 2009-03-30 Sebastian Pop <sebastian.pop@amd.com> |
22270 | ||
22271 | * doc/invoke.texi (-floop-interchange, -floop-strip-mine, | |
22272 | -floop-block): Document dependences on PPL, CLooG and Graphite. | |
22273 | ||
8ce94e44 JM |
22274 | 2009-03-30 Joseph Myers <joseph@codesourcery.com> |
22275 | ||
22276 | PR rtl-optimization/323 | |
22277 | * c-common.c (c_fully_fold, convert_and_check, | |
22278 | c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR. | |
22279 | (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR. | |
22280 | * c-common.def (EXCESS_PRECISION_EXPR): New. | |
22281 | * c-cppbuiltin.c (builtin_define_float_constants): Define | |
22282 | constants with enough digits for long double. | |
22283 | * c-lex.c (interpret_float): Interpret constant with excess | |
22284 | precision where appropriate. | |
22285 | * c-opts.c (c_common_post_options): Set | |
22286 | flag_excess_precision_cmdline. Give an error for | |
22287 | -fexcess-precision=standard for C++ for processors where the | |
22288 | option is significant. | |
22289 | * c-parser.c (c_parser_conditional_expression): Handle excess | |
22290 | precision in condition. | |
22291 | * c-typeck.c (convert_arguments): Handle arguments with excess | |
22292 | precision. | |
22293 | (build_unary_op): Move excess precision outside operation. | |
22294 | (build_conditional_expr): Likewise. | |
22295 | (build_compound_expr): Likewise. | |
22296 | (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR. | |
22297 | (build_modify_expr): Handle excess precision in RHS. | |
22298 | (convert_for_assignment): Handle excess precision in converted | |
22299 | value. | |
22300 | (digest_init, output_init_element, process_init_element): Handle | |
22301 | excess precision in initializer. | |
22302 | (c_finish_return): Handle excess precision in return value. | |
22303 | (build_binary_op): Handle excess precision in operands and add | |
22304 | excess precision as needed for operation. | |
22305 | * common.opt (-fexcess-precision=): New option. | |
22306 | * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New. | |
22307 | * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2): | |
22308 | For standard excess precision, output explicit conversion to and | |
22309 | truncation from XFmode. | |
22310 | (*float<SSEMODEI24:mode><X87MODEF:mode>2_1, | |
22311 | *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp, | |
22312 | *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed | |
22313 | define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed | |
22314 | define_splits, *floatunssi<mode>2_1, two unnamed define_splits, | |
22315 | floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3, | |
22316 | divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387, | |
22317 | *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387, | |
22318 | *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed | |
22319 | define_splits, sqrt<mode>2): Disable where appropriate for | |
22320 | standard excess precision. | |
22321 | * convert.c (convert_to_real): Do not shorten arithmetic to type | |
22322 | for which excess precision would be used. | |
22323 | * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define. | |
22324 | * doc/invoke.texi (-fexcess-precision=): Document option. | |
22325 | (-mfpmath=): Correct index entry. | |
22326 | * flags.h (enum excess_precision, flag_excess_precision_cmdline, | |
22327 | flag_excess_precision): New. | |
22328 | * langhooks.c (lhd_post_options): Set | |
22329 | flag_excess_precision_cmdline. | |
22330 | * opts.c (common_handle_option): Handle -fexcess-precision=. | |
22331 | * toplev.c (flag_excess_precision_cmdline, flag_excess_precision, | |
22332 | init_excess_precision): New. | |
22333 | (lang_dependent_init_target): Call init_excess_precision. | |
22334 | * tree.c (excess_precision_type): New. | |
22335 | * tree.h (excess_precision_type): Declare. | |
22336 | ||
1e57bf47 JM |
22337 | 2009-03-30 Joseph Myers <joseph@codesourcery.com> |
22338 | ||
22339 | PR c/35235 | |
22340 | * c-typeck.c (build_component_ref): Do not copy qualifiers from | |
22341 | non-lvalue to component. | |
22342 | ||
148e4216 JM |
22343 | 2009-03-29 Joseph Myers <joseph@codesourcery.com> |
22344 | ||
22345 | PR preprocessor/34695 | |
22346 | * Makefile.in (c-opts.o): Depend on c-tree.h. | |
22347 | * c-common.c: Move down include of diagnostic.h. | |
22348 | (done_lexing, c_cpp_error): New. | |
22349 | * c-common.h (done_lexing): Declare. | |
22350 | * c-decl.c (c_write_global_declarations): Don't check cpp_errors | |
22351 | (parse_in). | |
22352 | * c-opts.c: Include c-tree.h. | |
22353 | (c_common_init_options): Set preprocessor error callback. | |
22354 | (c_common_handle_option): Do not set preprocessor | |
22355 | inhibit_warnings, warnings_are_errors, warn_system_headers, | |
22356 | pedantic_errors or inhibit_warnings flags. | |
22357 | (c_common_post_options): Do not check cpp_errors (parse_in). | |
22358 | (c_common_finish): Do not output dependencies if there were | |
22359 | errors. Do not check return value of cpp_finish. | |
22360 | * c-ppoutput.c (pp_file_change): Set input_location. | |
22361 | * c-tree.h (c_cpp_error): Declare. | |
22362 | * diagnostic.c (diagnostic_set_info_translated): Also initialize | |
22363 | override_column. | |
22364 | (diagnostic_build_prefix): Check override_column. | |
22365 | * diagnostic.h (diagnostic_info): Add override_column field. | |
22366 | (diagnostic_override_column): Define. | |
22367 | ||
2ec5deb5 PB |
22368 | 2009-03-28 Paolo Bonzini <bonzini@gnu.org> |
22369 | ||
ba20e309 UB |
22370 | * c-common.c (c_expand_expr, c_staticp): Remove. |
22371 | * c-common.def (COMPOUND_LITERAL_EXPR): Delete. | |
22372 | * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL, | |
22373 | COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove. | |
22374 | * c-gimplify.c (gimplify_compound_literal_expr, | |
22375 | optimize_compound_literals_in_ctor): Remove. | |
22376 | (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling. | |
22377 | * c-objc-common.h (LANG_HOOKS_STATICP): Remove. | |
22378 | * c-semantics.c (emit_local_var): Remove. | |
22379 | ||
22380 | * langhooks-def.h (lhd_expand_expr): Remove. | |
22381 | * langhooks.c (lhd_expand_expr): Remove. | |
22382 | * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR. | |
22383 | ||
22384 | * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR | |
22385 | handling from c-semantics.c; don't call into langhook. | |
22386 | (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees. | |
22387 | * gimplify.c (gimplify_compound_literal_expr, | |
22388 | optimize_compound_literals_in_ctor): Move from c-gimplify.c. | |
22389 | (gimplify_init_constructor): Call optimize_compound_literals_in_ctor. | |
22390 | (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR | |
22391 | as was done in c-gimplify.c. | |
22392 | * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp. | |
22393 | * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR): | |
22394 | Move from c-common.h. | |
22395 | * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def. | |
2ec5deb5 PB |
22396 | |
22397 | * tree.c (staticp): Do not call langhook. | |
22398 | * langhooks.c (lhd_staticp): Delete. | |
22399 | * langhooks-def.h (lhd_staticp): Delete prototype. | |
22400 | (LANG_HOOKS_STATICP): Delete. | |
22401 | (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP. | |
22402 | ||
ba20e309 UB |
22403 | * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs |
22404 | instead of DECL_STMTs. | |
2ec5deb5 | 22405 | |
928c19bb JM |
22406 | 2009-03-29 Joseph Myers <joseph@codesourcery.com> |
22407 | ||
22408 | PR c/456 | |
22409 | PR c/5675 | |
22410 | PR c/19976 | |
22411 | PR c/29116 | |
22412 | PR c/31871 | |
22413 | PR c/35198 | |
22414 | * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in | |
22415 | void_type_node. | |
22416 | (fold_call_expr): Return a NOP_EXPR from folding rather than the | |
22417 | contained expression. | |
ba20e309 | 22418 | * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New. |
928c19bb JM |
22419 | (c_common_truthvalue_conversion): Use c_save_expr. Do not fold |
22420 | conditional expressions for C. | |
22421 | (decl_constant_value_for_optimization): Move from | |
ba20e309 | 22422 | decl_constant_value_for_broken_optimization in c-typeck.c. Check |
928c19bb JM |
22423 | whether optimizing and that the expression is a VAR_DECL not of |
22424 | array type instead of doing such checks in the caller. Do not | |
22425 | check pedantic. Call gcc_unreachable for C++. | |
22426 | * c-common.def (C_MAYBE_CONST_EXPR): New. | |
22427 | * c-common.h (c_fully_fold, c_save_expr, | |
22428 | decl_constant_value_for_optimization): New prototypes. | |
22429 | (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR, | |
22430 | C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST, | |
22431 | EXPR_INT_CONST_OPERANDS): Define. | |
22432 | * c-convert.c (convert): Strip nops from expression. | |
22433 | * c-decl.c (groktypename): Take extra parameters expr and | |
22434 | expr_const_operands. Update call to grokdeclarator. | |
22435 | (start_decl): Update call to grokdeclarator. Add statement for | |
22436 | expressions used in type of decl. | |
22437 | (grokparm): Update call to grokdeclarator. | |
22438 | (push_parm_decl): Update call to grokdeclarator. | |
22439 | (build_compound_literal): Add parameter non_const and build a | |
22440 | C_MAYBE_COSNT_EXPR if applicable. | |
22441 | (grokdeclarator): Take extra parameters expr and | |
22442 | expr_const_operands. Track expressions used in declaration | |
22443 | specifiers and declarators. Fold array sizes and track whether | |
22444 | they are constant expressions and whether they are integer | |
22445 | constant expressions. | |
22446 | (parser_xref_tag): Set expr and expr_const_operands fields in | |
22447 | return value. | |
22448 | (grokfield): Update call to grokdeclarator. | |
22449 | (start_function): Update call to grokdeclarator. | |
22450 | (build_null_declspecs): Set expr and expr_const_operands fields in | |
22451 | return value. | |
22452 | (declspecs_add_type): Handle expressions in typeof specifiers. | |
22453 | * c-parser.c (c_parser_declspecs): Set expr and | |
22454 | expr_const_operands fields for declaration specifiers. | |
22455 | (c_parser_enum_specifier): Likewise. | |
22456 | (c_parser_struct_or_union_specifier): Likewise. | |
22457 | (c_parser_typeof_specifier): Likewise. Update call to | |
22458 | groktypename. Fold expression as needed. Return expressions with | |
22459 | type instead of adding statements. | |
22460 | (c_parser_attributes): Update calls to c_parser_expr_list. | |
22461 | (c_parser_statement_after_labels): Fold expression before passing | |
22462 | to objc_build_throw_stmt. | |
22463 | (c_parser_condition): Fold expression. | |
22464 | (c_parser_asm_operands): Fold expression. | |
22465 | (c_parser_conditional_expression): Use c_save_expr. Update call | |
22466 | to build_conditional_expr. | |
22467 | (c_parser_alignof_expression): Update call to groktypename. | |
22468 | (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as | |
22469 | original_code. Fold expression argument of va_arg. Create | |
22470 | C_MAYBE_CONST_EXPR to preserve side effects of expressions in type | |
22471 | argument to va_arg. Update calls to groktypename. Fold array | |
22472 | index for offsetof. Verify that first argument to | |
22473 | __builtin_choose_expr has integer type. | |
22474 | (c_parser_postfix_expression_after_paren_type): Update calls to | |
22475 | groktypename and build_compound_literal. Handle expressions with | |
22476 | side effects in type name. | |
22477 | (c_parser_postfix_expression_after_primary): Update call to | |
22478 | c_parser_expr_list. Set original_code for calls to | |
22479 | __builtin_constant_p. | |
22480 | (c_parser_expr_list): Take extra parameter fold_p. Fold | |
22481 | expressions if requested. | |
22482 | (c_parser_objc_type_name): Update call to groktypename. | |
22483 | (c_parser_objc_synchronized_statement): Fold expression. | |
22484 | (c_parser_objc_receiver): Fold expression. | |
22485 | (c_parser_objc_keywordexpr): Update call to c_parser_expr_list. | |
22486 | (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule, | |
22487 | c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions. | |
22488 | * c-tree.h (CONSTRUCTOR_NON_CONST): Define. | |
22489 | (struct c_typespec): Add elements expr and expr_const_operands. | |
22490 | (struct c_declspecs): Add elements expr and expr_const_operands. | |
22491 | (groktypename, build_conditional_expr, build_compound_literal): | |
22492 | Update prototypes. | |
22493 | (in_late_binary_op): Declare. | |
22494 | * c-typeck.c (note_integer_operands): New function. | |
22495 | (in_late_binary_op): New variable. | |
22496 | (decl_constant_value_for_broken_optimization): Move to c-common.c | |
22497 | and rename to decl_constant_value_for_optimization. | |
22498 | (default_function_array_conversion): Do not strip nops. | |
22499 | (default_conversion): Do not call | |
22500 | decl_constant_value_for_broken_optimization. | |
22501 | (build_array_ref): Do not fold result. | |
22502 | (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for | |
22503 | result when operand is a VLA. | |
22504 | (c_expr_sizeof_type): Update call to groktypename. Handle | |
22505 | expressions included in type name. Use C_MAYBE_CONST_EXPR for | |
22506 | result when operand names a VLA type. | |
22507 | (build_function_call): Update call to build_compound_literal. | |
22508 | Only fold result for calls to __builtin_* functions. Strip | |
22509 | NOP_EXPR from INTEGER_CST returned from such functions. Fold | |
22510 | the function designator. | |
22511 | (convert_arguments): Fold arguments. Update call to | |
22512 | convert_for_assignment. | |
22513 | (build_unary_op): Handle increment and decrement of | |
22514 | C_MAYBE_CONST_EXPR. Move lvalue checks for increment and | |
22515 | decrement earlier. Fold operand of increment and decrement. | |
22516 | Handle address of C_MAYBE_CONST_EXPR. Only fold expression being | |
22517 | built for integer operand. Wrap returns that are INTEGER_CSTs | |
22518 | without being integer constant expressions or that have integer | |
22519 | constant operands without being INTEGER_CSTs. | |
22520 | (lvalue_p): Handle C_MAYBE_CONST_EXPR. | |
22521 | (build_conditional_expr): Add operand ifexp_bcp. Track whether | |
22522 | result is an integer constant expression or can be used in | |
22523 | unevaluated parts of one and avoid folding and wrap as | |
22524 | appropriate. Fold operands before possibly doing -Wsign-compare | |
22525 | warnings. | |
22526 | (build_compound_expr): Wrap result for C99 if operands can be used | |
22527 | in integer constant expressions. | |
22528 | (build_c_cast): Update call to digest_init. Do not ignore | |
22529 | overflow from casting floating-point constants to integers. Wrap | |
22530 | results that could be confused with integer constant expressions, | |
22531 | null pointer constants or floating-point constants. | |
22532 | (c_cast_expr): Update call to groktypename. Handle expressions | |
22533 | included in type name. | |
22534 | (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold | |
22535 | lhs inside possible SAVE_EXPR. Fold RHS before assignment. | |
22536 | Update calls to convert_for_assignment. | |
22537 | (convert_for_assignment): Take new parameter | |
22538 | null_pointer_constant. Do not strip nops or call | |
22539 | decl_constant_value_for_broken_optimization. Set | |
22540 | in_late_binary_op for conversions to boolean. | |
22541 | (store_init_value): Update call to digest_init. | |
22542 | (digest_init): Take new parameter null_pointer_constant. Do not | |
22543 | call decl_constant_value_for_broken_optimization. pedwarn for | |
22544 | initializers not constant expressions. Update calls to | |
22545 | convert_for_assignment. | |
22546 | (constructor_nonconst): New. | |
22547 | (struct constructor_stack): Add nonconst element. | |
22548 | (really_start_incremental_init, push_init_level, pop_init_level): | |
22549 | Handle constructor_nonconst and nonconst element. | |
22550 | (set_init_index): Call constant_expression_warning for array | |
22551 | designators. | |
22552 | (output_init_element): Fold value. Set constructor_nonconst as | |
22553 | applicable. pedwarn for initializers not constant expressions. | |
22554 | Update call to digest_init. Call constant_expression_warning | |
22555 | where constant initializers are required. | |
22556 | (process_init_element): Use c_save_expr. | |
22557 | (c_finish_goto_ptr): Fold expression. | |
22558 | (c_finish_return): Fold return value. Update call to | |
22559 | convert_for_assignment. | |
22560 | (c_start_case): Fold switch expression. | |
22561 | (c_process_expr_stmt): Fold expression. | |
22562 | (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to | |
ba20e309 | 22563 | ensure statement expression is not evaluated in constant expression. |
928c19bb JM |
22564 | (build_binary_op): Track whether results are integer constant |
22565 | expressions or may occur in such, disable folding and wrap results | |
22566 | as applicable. Fold operands for -Wsign-compare warnings unless | |
22567 | in_late_binary_op. | |
22568 | (c_objc_common_truthvalue_conversion): Handle results folded to | |
22569 | integer constants that are not integer constant expressions. | |
22570 | * doc/extend.texi: Document when typeof operands are evaluated, | |
22571 | that condition of __builtin_choose_expr is an integer constant | |
22572 | expression, and more about use of __builtin_constant_p in | |
22573 | initializers. | |
22574 | ||
5babbcc0 RG |
22575 | 2009-03-29 Richard Guenther <rguenther@suse.de> |
22576 | ||
22577 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly | |
22578 | propagate addresses of array references. | |
22579 | ||
0340f2ba SB |
22580 | 2009-03-29 Steven Bosscher <steven@gcc.gnu.org> |
22581 | ||
22582 | * regmove.c (perhaps_ends_bb_p): Remove. | |
22583 | (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block | |
22584 | from INSN and check that the main loop stays within that basic block. | |
22585 | (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise. | |
22586 | (regmove_forward_pass): Split out from regmove_optimize. Use | |
22587 | FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream. | |
22588 | (regmove_backward_pass): Split out from regmove_optimize. Use | |
22589 | FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE. | |
22590 | (regmove_optimize): Simplify. | |
22591 | ||
eeae74a1 L |
22592 | 2009-03-29 H.J. Lu <hongjiu.lu@intel.com> |
22593 | ||
22594 | PR target/39545 | |
22595 | * config/i386/i386.c (classify_argument): Ignore flexible array | |
22596 | member in struct and warn ABI change. | |
22597 | ||
a24078b2 L |
22598 | 2009-03-29 H.J. Lu <hongjiu.lu@intel.com> |
22599 | ||
22600 | * config/i386/i386-protos.h (ix86_agi_dependent): New. | |
22601 | ||
22602 | * config/i386/i386.c (ix86_agi_dependent): Rewrite. | |
22603 | (ix86_adjust_cost): Updated. | |
22604 | ||
a8da523f JH |
22605 | 2009-03-29 Jan Hubicka <jh@suse.cz> |
22606 | ||
22607 | PR middle-end/28850 | |
22608 | * tree-pass.h (pass_cleanup_eh): New function. | |
22609 | (remove_unreachable_regions): Break code handling RTL | |
22610 | to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW | |
22611 | that can not be reached by runtime. | |
22612 | (can_be_reached_by_runtime): New function. | |
22613 | (label_to_region_map): New function. | |
22614 | (num_eh_regions): New function. | |
22615 | (rtl_remove_unreachable_regions): New function. | |
22616 | (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions. | |
22617 | (remove_eh_region): New function. | |
22618 | * except.h: Include sbitmap and vecprim. | |
22619 | (remove_eh_region, remove_unreachable_regions, label_to_region_map, | |
22620 | num_eh_regions): Declare. | |
22621 | * passes.c (init_optimization_passes): Schedule cleanup_eh. | |
ba20e309 | 22622 | * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it. |
a8da523f JH |
22623 | * tree-eh.c (tree_remove_unreachable_handlers): New function. |
22624 | (tree_empty_eh_handler_p): New function. | |
22625 | (cleanup_empty_eh): New function. | |
22626 | (cleanup_eh): New function. | |
22627 | (pass_cleanup_eh): New function. | |
22628 | ||
98f358e5 JH |
22629 | 2009-03-29 Jan Hubicka <jh@suse.cz> |
22630 | ||
22631 | * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready | |
22632 | for removed regions. | |
22633 | ||
13a9fa44 JH |
22634 | 2009-03-29 Jan Hubicka <jh@suse.cz> |
22635 | ||
22636 | * except.c (dump_eh_tree): Dump all datastructures. | |
22637 | ||
e38cf733 JH |
22638 | 2009-03-29 Jan Hubicka <jh@suse.cz> |
22639 | ||
22640 | * except.c (duplicate_eh_regions_0): Handle AKA bitmap. | |
22641 | (duplicate_eh_regions_1): Likewise. | |
22642 | (duplicate_eh_regions): Likewise; cleanup code gorwing the region | |
22643 | vector; call EH verification. | |
22644 | (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1): | |
22645 | Be ready for region being removed. | |
22646 | ||
12802c2b JH |
22647 | 2009-03-29 Jan Hubicka <jh@suse.cz> |
22648 | ||
22649 | * bitmap.c (bitmap_last_set_bit): New function. | |
22650 | * bitmap.h (bitmap_last_set_bit): Declare. | |
22651 | ||
4ea80a41 DA |
22652 | 2009-03-29 David Ayers <ayers@fsfe.org> |
22653 | ||
22654 | PR objc/27377 | |
22655 | * c-typeck.c (build_conditional_expr): Emit ObjC warnings | |
22656 | by calling objc_compare_types and surpress warnings about | |
22657 | incompatible C pointers that are compatible ObjC pointers. | |
2ba9daa7 | 22658 | |
4ea80a41 | 22659 | 2009-03-29 Adam Nemet <anemet@caviumnetworks.com> |
3dc9eaa6 AN |
22660 | |
22661 | * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't | |
22662 | call initialize_inline_failed. | |
22663 | (initialize_inline_failed): Move it from here ... | |
22664 | * cgraph.c (initialize_inline_failed): ... to here. | |
22665 | (cgraph_create_edge): Call initialize_inline_failed rather than | |
22666 | setting inline_failed directly. | |
22667 | ||
7fb0ee07 BE |
22668 | 2009-03-29 Ben Elliston <bje@au.ibm.com> |
22669 | ||
22670 | PR target/32542 | |
22671 | * sysv4.opt (msdata): Improve comment. | |
22672 | * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given. | |
22673 | * sysv4.h (SVR4_ASM_SPEC): Likewise. | |
22674 | ||
0be77bf2 BE |
22675 | 2009-03-29 Ben Elliston <bje@au.ibm.com> |
22676 | ||
22677 | PR target/30451 | |
22678 | * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of | |
22679 | load and store attributes. | |
22680 | ||
593812b6 BE |
22681 | 2009-03-29 Ben Elliston <bje@au.ibm.com> |
22682 | ||
22683 | * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ. | |
22684 | (ix86_init_builtins): Add built-in function __builtin_huge_valq. | |
22685 | (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ. | |
22686 | * doc/extend.texi (X86 Built-in Functions): Add index entries for | |
22687 | __builtin_infq and __builtin_huge_valq. | |
22688 | ||
8272d11d AS |
22689 | 2009-03-28 Anatoly Sokolov <aesok@post.ru> |
22690 | ||
22691 | * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and | |
22692 | atmega8m1 devices. | |
22693 | * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.). | |
22694 | * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.) | |
22695 | ||
74fe548b XDL |
22696 | 2009-03-28 Xinliang David Li <davidxl@google.com> |
22697 | ||
2ba9daa7 | 22698 | * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support. |
74fe548b XDL |
22699 | (do_dbg_cnt): New function. |
22700 | ||
33977f81 JH |
22701 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
22702 | ||
22703 | Merge from pretty-ipa: | |
22704 | ||
22705 | 2009-03-27 Jan Hubicka <jh@suse.cz> | |
ba20e309 | 22706 | |
33977f81 JH |
22707 | * cgraph.c (dump_cgraph_node): Add replace output flag by process. |
22708 | * tree-pass.h (function_called_by_processed_nodes_p): Declare. | |
22709 | * passes.c (function_called_by_processed_nodes_p): New. | |
22710 | * ipa-pure-const.c (check_call): Fix handling of operands. | |
22711 | (analyze_function): Dump debug output for skipped bodies. | |
22712 | (local_pure_const): Use function_called_by_processed_nodes_p. | |
22713 | * dwarf2out.c (reference_to_unused): Use output. | |
22714 | * passes.c (do_per_function_toporder): Likewise. | |
22715 | ||
22716 | 2008-11-12 Jan Hubicka <jh@suse.cz> | |
22717 | ||
22718 | * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare. | |
22719 | * ipa-pure-const.c (funct_state_d): Add can throw field; make | |
22720 | state_set_in_source enum | |
22721 | (check_decl): Ignore memory tags; do not set fake looping flags; | |
22722 | dump diagnostics. | |
22723 | (check_operand, check_tree, check_rhs_var, check_lhs_var, | |
22724 | get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove. | |
22725 | (check_call, analyze_function): Rewrite. | |
22726 | (check_stmt): New. | |
22727 | (add_new_function): Update call of analyze_function. | |
22728 | (generate_summary): Add call of analyze_function. | |
22729 | (propagate): Propagate can_throw; handle state_set_in_source correctly. | |
22730 | (local_pure_const): New function. | |
22731 | (pass_local_pure_const): New pass. | |
22732 | * ipa-inline.c (inline_transform): Set after_inlining. | |
22733 | * tree-eh.c (stmt_can_throw_external): New. | |
22734 | * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining; | |
22735 | work with aliasing built. | |
22736 | * tree-flow.h (stmt_can_throw_external): New. | |
22737 | * passes.c (init_optimization_passes): Schedule fixup_cfg pass early; | |
22738 | and local pure/const pass in early and late optimization queue. | |
ba20e309 | 22739 | |
617f3897 MJ |
22740 | 2009-03-28 Martin Jambor <mjambor@suse.cz> |
22741 | ||
22742 | * fold-const.c (get_pointer_modulus_and_residue): New parameter | |
22743 | allow_func_align. | |
22744 | (fold_binary): Allow function decl aligment consideration is the | |
22745 | second argument is integer constant one. | |
22746 | * tree-ssa-forwprop.c (simplify_bitwise_and): New function. | |
22747 | (tree_ssa_forward_propagate_single_use_vars): Handle assing statements | |
22748 | with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and. | |
22749 | ||
fe89fbc5 JH |
22750 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
22751 | ||
22752 | * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow | |
22753 | * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls. | |
22754 | * function.h (rtl_data): Add nothrow flag. | |
22755 | * except.c (set_nothrow_function_flags): Use crtl->nothrow; | |
22756 | set DECL_NOTHROW for AVAILABLE functions. | |
22757 | ||
574872ff JJ |
22758 | 2009-03-28 Jakub Jelinek <jakub@redhat.com> |
22759 | ||
b3bf8855 JJ |
22760 | * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro |
22761 | following vector keyword has expansion starting with pixel or bool | |
22762 | keyword, expand vector to __vector and pixel or bool to __pixel or | |
22763 | __bool. | |
22764 | ||
574872ff JJ |
22765 | PR c++/39554 |
22766 | * opts.c (warning_disallowed_functions, warn_disallowed_functions, | |
22767 | warn_if_disallowed_function_p): Removed. | |
22768 | (common_handle_option): Don't handle OPT_Wdisallowed_function_list_. | |
22769 | * c-parser.c (c_parser_postfix_expression_after_primary): Don't call | |
22770 | warning_if_disallowed_function_p. | |
22771 | * flags.h (warn_if_disallowed_function_p, | |
22772 | warn_disallowed_functions): Removed. | |
22773 | * common.opt (Wdisallowed-function-list=): Removed. | |
22774 | * doc/invoke.texi (-Wdisallowed-function-list=): Removed. | |
22775 | ||
b005da11 RG |
22776 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
22777 | ||
22778 | PR tree-optimization/38723 | |
22779 | * tree-ssa-pre.c (compute_avail): Add all default definitions to | |
22780 | the entry block. | |
22781 | ||
1de812a6 JH |
22782 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
22783 | ||
22784 | * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed | |
22785 | test introduced by my previous patch. | |
22786 | ||
fbb789d4 RG |
22787 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
22788 | ||
22789 | * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave | |
22790 | the PHIs value undefined. | |
22791 | ||
6f1873a1 JH |
22792 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
22793 | ||
22794 | * tree-pass.h (pass_fixup_cfg): New pass. | |
22795 | * ipa-inline.c (inline_transform): Set | |
22796 | always_inline_functions_inlined/after_inlining. | |
22797 | * tree-optimize.c (execute_fixup_cfg): Do not set them here. | |
22798 | (pass_fixup_cfg): New pass. | |
22799 | * passes.c (init_optimization_passes): Add fixup_cfg. | |
22800 | ||
17021bc8 RG |
22801 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
22802 | ||
22803 | PR tree-optimization/38458 | |
22804 | * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first | |
22805 | argument use the arguments copy-of value. | |
22806 | ||
e8114fba RG |
22807 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
22808 | ||
22809 | PR tree-optimization/38180 | |
22810 | * tree-ssa-ccp.c (get_default_value): Simplify. | |
22811 | (likely_value): Likewise. | |
22812 | (surely_varying_stmt_p): Properly handle VOP case. | |
22813 | (ccp_initialize): Likewise. | |
22814 | (ccp_fold): Handle propagating through *&. | |
22815 | (fold_const_aggregate_ref): Also handle decls. | |
22816 | ||
257eb6e3 JH |
22817 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
22818 | ||
22819 | * cgraph.c (dump_cgraph_node): Add replace output flag by process. | |
22820 | * cgraph.h (cgraph_node): Likewise. | |
22821 | * cgraphunit.c (cgraph_process_new_functions): Set process flag. | |
22822 | (cgraph_reset_node): Use process flag. | |
22823 | (cgraph_mark_functions_to_output): Likewise. | |
22824 | (cgraph_expand_function): Likewise. | |
22825 | (cgraph_expand_all_functions): Likewise. | |
22826 | (cgraph_output_in_order): Likewise. | |
22827 | * dwarf2out.c (reference_to_unused): Likewise. | |
22828 | * passes.c do_per_function_toporder): Likewise. | |
22829 | ||
61a05df1 JH |
22830 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
22831 | ||
22832 | Bring from lto-branch: | |
ba20e309 | 22833 | |
61a05df1 JH |
22834 | 2008-09-03 Doug Kwan <dougkwan@google.com> |
22835 | ||
22836 | * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t | |
22837 | enums instead of reason strings. | |
22838 | * cgraph.c (cgraph_create_edge): Same. | |
22839 | (cgraph_inline_failed_string): New function. | |
22840 | * cgraph.h (cgraph_inline_failed_t): New enum type. | |
22841 | (cgraph_inline_failed_string): New prototype. | |
22842 | (struct cgraph_edge): Change type of INLINED_FAILED from constant | |
22843 | char pointer to cgraph_inline_failed_t. | |
22844 | (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t. | |
22845 | (cgraph_default_inline_p): Ditto. | |
60839f5d | 22846 | * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON |
61a05df1 JH |
22847 | to cgraph_inline_failed_t pointer. |
22848 | * cif-code.def: New file. | |
22849 | * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a | |
22850 | reason string. | |
22851 | (cgraph_check_inline_limits): Change type of REASON to pointer to | |
22852 | cgraph_inline_failed_t. Replace reason strings with enums. | |
22853 | (cgraph_default_inline_p): Ditto. | |
22854 | (cgraph_recursive_inlining_p): Ditto. | |
22855 | (update_caller_keys): Change type of FAILED_REASON to | |
22856 | cgraph_inline_failed_t. | |
22857 | (cgraph_set_inline_failed): Change type of REASON to pointer to | |
22858 | cgraph_inline_failed_t. Call cgraph_inline_failed_string to | |
22859 | convert enums to strings for text output. | |
22860 | (cgraph_decide_inlining_of_small_function): Change FAILED_REASON | |
22861 | to be of type cgraph_inline_failed_t. Replace reason strings with | |
22862 | enums. Call cgraph_inline_failed_string to covert enums | |
22863 | to strings for text output. | |
22864 | (cgraph_decide_inlining): Replace reason strings with enums. | |
22865 | (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON | |
22866 | to cgraph_inline_failed_t type. Call cgraph_inline_failed_string | |
22867 | for text output. | |
22868 | * tree-inline.c (expand_call_inline): Change type of REASON | |
22869 | to cgraph_inline_failed_t. Replace reason strings with enums. | |
22870 | Call cgraph_inline_failed_string for text output. | |
22871 | * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies. | |
22872 | (cgraph.o): Ditto. | |
22873 | ||
144e8aac JH |
22874 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
22875 | ||
22876 | * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node, | |
22877 | cgraph_clone_node): Remove master clone handling. | |
22878 | (cgraph_is_master_clone, cgraph_master_clone): Remove. | |
22879 | * cgraph.h (master_clone): Remove. | |
22880 | (cgraph_is_master_clone, cgraph_master_clone): Remove. | |
22881 | * ipa-type-escape.c (type_escape_execute): Remove use of master clone. | |
22882 | (tree-ssa-structalias.c (ipa_pta_execute): Likewise. | |
22883 | ||
4a371c8d JH |
22884 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
22885 | ||
22886 | * cgraph.c (cgraph_function_body_availability): Functions declared | |
22887 | inline are always safe to assume that it is not going to be replaced. | |
22888 | ||
6cdb0ee3 RG |
22889 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
22890 | ||
22891 | PR tree-optimization/38513 | |
22892 | * tree-ssa-pre.c (eliminate): Remove redundant stores. | |
22893 | * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle | |
22894 | EXC_PTR_EXPR and FILTER_EXPR. | |
22895 | (get_ref_from_reference_ops): Likewise. | |
22896 | ||
8ca1fd76 RG |
22897 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
22898 | ||
22899 | PR tree-optimization/38968 | |
22900 | * tree-vect-analyze.c (vect_compute_data_ref_alignment): | |
22901 | Use FLOOR_MOD_EXPR to compute misalignment. | |
22902 | ||
a254e44d RG |
22903 | 2009-03-28 Richard Guenther <rguenther@suse.de> |
22904 | ||
22905 | PR tree-optimization/37795 | |
22906 | * tree.h (combine_comparisons): Declare. | |
22907 | * fold-const.c (combine_comparisons): Export. | |
22908 | * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive | |
22909 | comparisons. | |
22910 | (ifcombine_iforif): Use combine_comparisons. | |
22911 | ||
a8ee227c JH |
22912 | 2009-03-28 Jan Hubicka <jh@suse.cz> |
22913 | ||
22914 | * tree-eh.c (inlinable_call_p): New function. | |
22915 | (make_eh_edges): Use it. | |
22916 | (verify_eh_edges): Use it. | |
22917 | (stmt_can_throw_external, stmt_can_throw_internal): Use it. | |
22918 | * except.c (reachable_next_level): Add inlinable_function argument | |
22919 | (sjlj_find_directly_reachable_regions): Update. | |
22920 | (add_reachable_handler): Do not set saw_any_handlers. | |
22921 | (reachable_next_level): Handle MUST_NOT_THROW more curefully. | |
22922 | (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1): | |
22923 | Add new inlinable call parameter. | |
22924 | (can_throw_internal, can_throw_external): Update. | |
22925 | * except.h (can_throw_internal_1, can_throw_external_1, | |
22926 | foreach_reachable_handler): Update declaration. | |
22927 | ||
52c0e446 JM |
22928 | 2009-03-28 Joseph Myers <joseph@codesourcery.com> |
22929 | ||
22930 | * config/arm/t-arm-coff, config/h8300/coff.h, | |
22931 | config/i386/i386-aout.h, config/i386/i386-coff.h, | |
22932 | config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h, | |
22933 | config/pdp11/2bsd.h, config/rs6000/aix41.h, | |
22934 | config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h, | |
22935 | fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c, | |
22936 | scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h, | |
22937 | sys-types.h: Remove. | |
22938 | * Makefile.in: Remove protoize and fixproto support and references | |
22939 | in comments. | |
22940 | (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO, | |
22941 | PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES): | |
22942 | Remove. | |
22943 | (ALL_HOST_OBJS): Remove $(PROTO_OBJS). | |
22944 | (MOSTLYCLEANFILES): Remove protoize$(exeext) and | |
22945 | unprotoize$(exeext). | |
22946 | (rest.encap): Don't depend on $(STMP_FIXPROTO) | |
22947 | (.PHONY): Don't depend on proto. | |
22948 | (libgcc-support): Don't depend on $(STMP_FIXPROTO). | |
22949 | (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext), | |
22950 | protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple, | |
22951 | deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext), | |
22952 | build/gen-protos.o, build/scan.o, xsys-protos.h, | |
22953 | build/fix-header$(build_exeext), build/fix-header.o, | |
22954 | build/scan-decls.o, fixhdr.ready, stmp-fixproto, | |
22955 | stmp-install-fixproto): Remove. | |
22956 | (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X, | |
22957 | SYSCALLS.c or fixproto files. | |
22958 | (install-common): Don't install protoize. | |
22959 | (install-headers-tar, install-headers-cpio, install-headers-cp): | |
22960 | Don't depend on $(STMP_FIXPROTO). | |
22961 | (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't | |
22962 | install fixproto files or write out fixproto settings. | |
22963 | (uninstall): Don't uninstall protoize. | |
22964 | * config.gcc (use_fixproto): Remove. | |
22965 | (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*, | |
22966 | i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd, | |
22967 | rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove. | |
22968 | * config/m32r/t-linux (STMP_FIXPROTO): Remove. | |
22969 | * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code. | |
22970 | * config/mips/t-iris (FIXPROTO_DEFINES): Remove. | |
22971 | * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove. | |
22972 | * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code. | |
22973 | * config/t-svr4 (FIXPROTO_DEFINES): Remove. | |
22974 | * config/t-vxworks (STMP_FIXPROTO): Remove. | |
22975 | * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T, | |
22976 | STMP_FIXPROTO): Remove. | |
22977 | * config.in, configure: Regenerate. | |
22978 | * crtstuff.c (gid_t, uid_t): Don't undefine. | |
22979 | * doc/install.texi: Change m68k-coff to m68k-elf in example. | |
22980 | (arm-*-coff, arm-*-aout: Remove target entries. | |
22981 | (*-ibm-aix*): Mention removal of support for AIX 4.2 and older. | |
22982 | Remove mention of AIX 4.1. | |
22983 | (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*. | |
22984 | * doc/invoke.texi (Running Protoize): Remove. | |
22985 | * doc/trouble.texi (Actual Bugs): Remove mention of fixproto. | |
22986 | (Protoize Caveats): Remove. | |
22987 | * tsystem.h: Update comments on headers assumed to exist. | |
22988 | ||
20a07f44 VM |
22989 | 2009-03-27 Vladimir Makarov <vmakarov@redhat.com> |
22990 | ||
22991 | * genautomata.c: Add a new year to the copyright. Add a new | |
22992 | reference. | |
22993 | (struct insn_reserv_decl): Add comments for member bypass_list. | |
22994 | (find_bypass): Remove. | |
22995 | (insert_bypass): New. | |
22996 | (process_decls): Use insert_bypass. | |
22997 | (output_internal_insn_latency_func): Output all bypasses with the | |
22998 | same input insn in one switch case. | |
22999 | ||
23000 | * rtl.def (define_bypass): Describe bypass choice. | |
23001 | * doc/md.texi (define_bypass): Ditto. | |
23002 | ||
3a0d06c1 RB |
23003 | 2009-03-27 Richard Guenther <rguenther@suse.de> |
23004 | ||
23005 | * gimplify.c (mark_addressable): Export. | |
23006 | * tree-flow.h (mark_addressable): Declare. | |
23007 | * tree-ssa-loop-manip.c (create_iv): Mark the base addressable. | |
23008 | * tree-ssa.c (verify_phi_args): Verify that address taken | |
23009 | variables have TREE_ADDRESSABLE set. | |
23010 | ||
23011 | 2009-03-27 Richard Guenther <rguenther@suse.de> | |
23012 | ||
23013 | * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ... | |
23014 | (build_fold_addr_expr_with_type): ... this. Remove in_fold handling. | |
23015 | Do not mark decls TREE_ADDRESSABLE. | |
23016 | (build_fold_addr_expr): Adjust. | |
23017 | (fold_addr_expr): Remove. | |
23018 | (fold_unary): Use build_fold_addr_expr. | |
23019 | (fold_comparison): Likewise. | |
23020 | (split_address_to_core_and_offset): Likewise. | |
23021 | * coverage.c (tree_coverage_counter_addr): Mark the array decl | |
23022 | TREE_ADDRESSABLE. | |
23023 | * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs. | |
23024 | (gimplify_modify_expr_to_memcpy): Mark source and destination | |
23025 | addressable. | |
23026 | * omp-low.c (create_omp_child_function): Mark the object decl | |
23027 | TREE_ADDRESSABLE. | |
23028 | (lower_rec_input_clauses): Mark the var we take the address of | |
23029 | TREE_ADDRESSABLE. | |
23030 | (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE. | |
23031 | ||
2ac26e15 L |
23032 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23033 | ||
23034 | PR middle-end/39315 | |
23035 | * cfgexpand.c (expand_one_stack_var_at): Change alignment | |
23036 | limit to MAX_SUPPORTED_STACK_ALIGNMENT. | |
23037 | ||
472c7fbd RG |
23038 | 2009-03-27 Richard Guenther <rguenther@suse.de> |
23039 | ||
23040 | PR tree-optimization/39120 | |
23041 | * tree-ssa-structalias.c (handle_rhs_call): Fill out return | |
23042 | constraints. | |
23043 | (handle_lhs_call): Process return constraints. Add escape | |
23044 | constraints if necessary. | |
23045 | (handle_const_call): Fill out return constraints. Make nested | |
23046 | case more precise. Avoid consttmp if possible. | |
23047 | (handle_pure_call): Fill out return constraints. Avoid | |
23048 | callused if possible. | |
23049 | (find_func_aliases): Simplify call handling. | |
23050 | ||
23051 | 2009-03-27 Richard Guenther <rguenther@suse.de> | |
23052 | ||
23053 | PR tree-optimization/39120 | |
23054 | * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED | |
23055 | as a representative. | |
23056 | (solve_graph): Do propagate CALLUSED. | |
23057 | (handle_pure_call): Use a scalar constraint from CALLUSED for | |
23058 | the return value. | |
23059 | (find_what_p_points_to): CALLUSED shall not appear in poins-to | |
23060 | solutions. | |
23061 | ||
d9223014 L |
23062 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23063 | ||
23064 | PR c/39323 | |
23065 | * c-common.c (handle_aligned_attribute): Properly check alignment | |
23066 | overflow. Use (1U << i) instead of (1 << i). | |
23067 | ||
ba20e309 | 23068 | * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align. |
d9223014 L |
23069 | |
23070 | * expr.h (get_mem_align_offset): Updated. | |
23071 | ||
23072 | * tree.h (tree_decl_common): Change align to "unsigned int" and | |
23073 | move it before pointer_alias_set. | |
23074 | ||
689b689c L |
23075 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23076 | Jakub Jelinek <jakub@redhat.com> | |
23077 | ||
23078 | PR target/38034 | |
23079 | * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input | |
23080 | gr_register_operand with gr_reg_or_0_operand. | |
23081 | (cmpxchg_rel_di): Likewise. | |
23082 | (sync_lock_test_and_set<mode>): Likewise. | |
23083 | ||
c619e982 L |
23084 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23085 | ||
23086 | * jump.c (rtx_renumbered_equal_p): Use subreg_get_info. | |
23087 | (true_regnum): Likewise. | |
23088 | ||
23089 | * rtlanal.c (subreg_info): Moved to ... | |
23090 | * rtl.h (subreg_info): Here. New. | |
23091 | (subreg_get_info): New. | |
23092 | ||
23093 | * rtlanal.c (subreg_get_info): Make it extern. | |
23094 | ||
51212b32 L |
23095 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23096 | ||
23097 | PR target/39472 | |
23098 | * config/i386/i386.c (ix86_abi): New. | |
23099 | (override_options): Handle -mabi=. | |
ba20e309 | 23100 | (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi. |
51212b32 L |
23101 | (ix86_call_abi_override): Likewise. |
23102 | (init_cumulative_args): Likewise. | |
23103 | (function_arg_advance): Likewise. | |
23104 | (function_arg_64): Likewise. | |
23105 | (function_arg): Likewise. | |
23106 | (ix86_pass_by_reference): Likewise. | |
23107 | (ix86_function_value_regno_p): Likewise. | |
23108 | (ix86_build_builtin_va_list_abi): Likewise. | |
23109 | (setup_incoming_varargs_64): Likewise. | |
23110 | (is_va_list_char_pointer): Likewise. | |
23111 | (ix86_init_machine_status): Likewise. | |
ba20e309 | 23112 | (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi. |
51212b32 L |
23113 | (ix86_function_type_abi): Return enum calling_abi. Rewrite |
23114 | for 64bit. Replace DEFAULT_ABI with ix86_abi. | |
ba20e309 | 23115 | (ix86_function_abi): Make it static and return enum calling_abi. |
51212b32 L |
23116 | (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI |
23117 | with ix86_abi. | |
23118 | (ix86_fn_abi_va_list): Updated. | |
23119 | ||
23120 | * config/i386/i386.h (ix86_abi): New. | |
23121 | (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi. | |
23122 | (CONDITIONAL_REGISTER_USAGE): Likewise. | |
23123 | (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi. | |
23124 | (machine_function): Likewise. | |
23125 | ||
23126 | * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI | |
23127 | with ix86_abi. | |
23128 | * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise. | |
23129 | (STACK_BOUNDARY): Likewise. | |
23130 | * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise. | |
23131 | ||
23132 | * config/i386/i386.opt (mabi=): New. | |
23133 | ||
23134 | * config/i386/i386-protos.h (ix86_cfun_abi): Changed to | |
23135 | return enum calling_abi. | |
23136 | (ix86_function_type_abi): Likewise. | |
23137 | (ix86_function_abi): Removed. | |
23138 | ||
23139 | * doc/invoke.texi: Document -mabi= option for x86. | |
23140 | ||
7338ea63 KG |
23141 | 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
23142 | ||
23143 | * builtins.c (real_dconstp): Delete. | |
23144 | (fold_builtin_logarithm): Remove inaccurate log(e) special case. | |
23145 | ||
68599f33 DS |
23146 | 2009-03-27 Dodji Seketeli <dodji@redhat.com> |
23147 | Jakub Jelinek <jakub@redhat.com> | |
23148 | ||
23149 | PR debug/37959 | |
23150 | * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute. | |
23151 | (gen_subprogram_die): When a function is explicit, generate the | |
23152 | DW_AT_explicit attribute. | |
23153 | * langhooks.h (struct lang_hooks_for_decls): Add | |
23154 | function_decl_explicit_p langhook. | |
23155 | * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define. | |
23156 | (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P. | |
23157 | ||
9f5e9983 JJ |
23158 | 2009-03-27 Jakub Jelinek <jakub@redhat.com> |
23159 | ||
64d7685c JJ |
23160 | * builtins.c (fold_builtin_memory_op): Optimize memmove |
23161 | into memcpy if we can prove source and destination don't overlap. | |
23162 | ||
9f5e9983 JJ |
23163 | * tree-inline.c: Include gt-tree-inline.h. |
23164 | (clone_fn_id_num): New variable. | |
23165 | (clone_function_name): New function. | |
23166 | (tree_function_versioning): Use it. | |
23167 | * Makefile.in (GTFILES): Add tree-inline.c. | |
23168 | ||
e54d52a8 MM |
23169 | 2009-03-27 Mark Mitchell <mark@codesourcery.com> |
23170 | ||
23171 | * BASE-VER: Change to 4.5.0. | |
23172 | ||
e9d51dc6 XDL |
23173 | 2009-03-27 Xinliang David Li <davidxl@google.com> |
23174 | ||
23175 | PR tree-optimization/39557 | |
23176 | * tree-ssa.c (warn_uninitialized_vars): free postdom info. | |
23177 | ||
4577cea1 XDL |
23178 | 2009-03-27 Xinliang David Li <davidxl@google.com> |
23179 | ||
23180 | PR tree-optimization/39548 | |
2ba9daa7 | 23181 | * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy |
4577cea1 XDL |
23182 | candidate check. |
23183 | ||
0f7464f4 L |
23184 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23185 | ||
23186 | * c-common.c (pointer_int_sum): Use %wd on return from | |
23187 | tree_low_cst. | |
23188 | ||
a8847a7f L |
23189 | 2009-03-27 H.J. Lu <hongjiu.lu@intel.com> |
23190 | ||
23191 | * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC | |
23192 | on return from tree_low_cst. | |
23193 | ||
b0957daf AP |
23194 | 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com> |
23195 | ||
23196 | PR c++/36799 | |
ba20e309 UB |
23197 | * ginclude/stdarg.h (va_copy): Define also for |
23198 | __GXX_EXPERIMENTAL_CXX0X__. | |
b0957daf | 23199 | |
a5f805df MLI |
23200 | 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
23201 | ||
23202 | PR c++/35652 | |
23203 | * builtins.h (c_strlen): Do not warn here. | |
23204 | * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum. | |
23205 | * c-common.c (pointer_int_sum): Take an explicit location. | |
23206 | Warn about offsets out of bounds. | |
23207 | * c-common.h (pointer_int_sum): Adjust declaration. | |
23208 | ||
6f401211 RW |
23209 | 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23210 | ||
a5f805df MLI |
23211 | * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo |
23212 | markup glitch. | |
6f401211 | 23213 | |
5a59b39e JJ |
23214 | 2009-03-26 Jakub Jelinek <jakub@redhat.com> |
23215 | ||
23216 | PR c++/39554 | |
23217 | * opts.c (warn_if_disallowed_function_p): Don't assume | |
23218 | get_callee_fndecl must return non-NULL. | |
23219 | ||
d5f89b53 VM |
23220 | 2009-03-26 Vladimir Makarov <vmakarov@redhat.com> |
23221 | ||
23222 | PR rtl-optimization/39522 | |
23223 | * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too | |
23224 | when reg_reloaded_valid is set. | |
23225 | ||
61238a79 UW |
23226 | 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
23227 | ||
23228 | * config/spu/divv2df3.c: New file. | |
23229 | * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it. | |
23230 | (DPBIT_FUNCS): Filter out _div_df. | |
23231 | ||
03f8829b BS |
23232 | 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com> |
23233 | ||
23234 | * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before | |
23235 | a jump insn, count that jump in the distance to the loop start. | |
23236 | ||
9fdcdc74 KK |
23237 | 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org> |
23238 | ||
23239 | PR target/39523 | |
23240 | * config/sh/sh.c (calc_live_regs): Fix condition for global | |
23241 | registers except PIC_OFFSET_TABLE_REGNUM. | |
23242 | ||
46994828 KT |
23243 | 2009-03-25 Kai Tietz <kai.tietz@onevision.com> |
23244 | ||
23245 | PR/39518 | |
23246 | * doc/invoke.texi (-mconsole): New. | |
23247 | (-mcygwin): New. | |
23248 | (-mno-cygwin): New. | |
23249 | (-mdll): New. | |
23250 | (-mnop-fun-dllimport): New. | |
23251 | (-mthread): New. | |
23252 | (-mwin32): New. | |
23253 | (-mwindows): New. | |
23254 | (sub section "i386 and x86-64 Windows Options"): New. | |
23255 | ||
60839f5d | 23256 | 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org> |
370017b4 RC |
23257 | |
23258 | * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC. | |
23259 | * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS. | |
23260 | ||
ae560440 RG |
23261 | 2009-03-25 Richard Guenther <rguenther@suse.de> |
23262 | ||
23263 | PR middle-end/39497 | |
23264 | * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead | |
23265 | of -Wno-error. | |
23266 | ||
cd510f15 AM |
23267 | 2009-03-25 Andrey Belevantsev <abel@ispras.ru> |
23268 | ||
23269 | * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when | |
23270 | neither of haifa/selective schedulers are working. | |
23271 | ||
44ab0f0e RW |
23272 | 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23273 | ||
23274 | * doc/invoke.texi (Debugging Options): Fix description of | |
23275 | -fno-merge-debug-strings. | |
23276 | ||
ad9646c7 HPN |
23277 | 2009-03-24 Hans-Peter Nilsson <hp@axis.com> |
23278 | ||
e6142656 HPN |
23279 | * config/cris/libgcc.ver: New version-script. |
23280 | * config/cris/t-linux (SHLIB_MAPFILES): Use it. | |
23281 | ||
ad9646c7 HPN |
23282 | * configure.ac <GAS features, nop mnemonic>: Add pattern |
23283 | crisv32-*-* for "nop". | |
ba20e309 | 23284 | <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32. |
ad9646c7 HPN |
23285 | * configure: Regenerate. |
23286 | ||
09ac4473 IR |
23287 | 2009-03-24 Ira Rosen <irar@il.ibm.com> |
23288 | ||
23289 | PR tree-optimization/39529 | |
23290 | * tree-vect-transform.c (vect_create_data_ref_ptr): Call | |
23291 | mark_sym_for_renaming for the tag copied to the new vector | |
23292 | pointer. | |
23293 | ||
d94a427e AL |
23294 | 2009-03-24 Arthur Loiret <aloiret@debian.org> |
23295 | ||
ba20e309 | 23296 | * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha. |
d94a427e AL |
23297 | * config/alpha/linux.h (host_detect_local_cpu): Declare, add to |
23298 | EXTRA_SPEC_FUNCTIONS. | |
23299 | (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros. | |
23300 | * config/alpha/driver-alpha.c, config/alpha/x-alpha: New. | |
23301 | * doc/invoke.texi (DEC Alpha Options): Document 'native' value for | |
23302 | -march and -mtune options. | |
23303 | ||
60839f5d | 23304 | 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org> |
722d07aa RC |
23305 | |
23306 | * config/m68k/t-rtems: Add m5329 multilib. | |
23307 | ||
603f5959 DS |
23308 | 2009-03-24 Dodji Seketeli <dodji@redhat.com> |
23309 | Jakub Jelinek <jakub@redhat.com> | |
23310 | ||
23311 | PR debug/39524 | |
23312 | * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration | |
23313 | nodes. | |
23314 | ||
c5cdb03f JJ |
23315 | 2009-03-23 Jakub Jelinek <jakub@redhat.com> |
23316 | ||
23317 | PR c/39495 | |
23318 | * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression | |
23319 | instead of c_parser_expression_conv, if original_code isn't one of the | |
23320 | 4 allowed comparison codes, fail. | |
23321 | ||
3691626c RG |
23322 | 2009-03-23 Richard Guenther <rguenther@suse.de> |
23323 | ||
23324 | * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts. | |
23325 | * tree.h (struct tree_type): Likewise. | |
23326 | * reload.h (struct insn_chain): Likewise. | |
23327 | * dwarf2out.c (struct dw_loc_descr_struct): Likewise. | |
23328 | * function.h (struct function): Likewise. | |
23329 | * tree-ssa-structalias.c (struct equiv_class_label): Likewise. | |
23330 | ||
88ccb72a JJ |
23331 | 2009-03-23 Jakub Jelinek <jakub@redhat.com> |
23332 | ||
23333 | PR tree-optimization/39516 | |
23334 | * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable. | |
23335 | ||
60839f5d | 23336 | 2009-03-23 Bingfeng Mei <bmei@broadcom.com> |
a583a67e | 23337 | |
2ba9daa7 | 23338 | * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint |
a583a67e BM |
23339 | should be set true if BITS_PER_WORD of target is bigger than 32 |
23340 | ||
f82162f8 HPN |
23341 | 2009-03-22 Hans-Peter Nilsson <hp@axis.com> |
23342 | ||
23343 | * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): | |
23344 | Translate -B-options to -rpath-link. Correct existing | |
23345 | rpath-link and conditionalize on !nostdlib. | |
23346 | ||
048fd785 RW |
23347 | 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23348 | ||
23349 | * doc/extend.texi (Function Attributes, Variable Attributes): | |
23350 | Fix typos. | |
23351 | * doc/invoke.texi (Debugging Options, Optimize Options) | |
23352 | (i386 and x86-64 Options, MCore Options): Likewise. | |
23353 | ||
6e75c1a9 JJ |
23354 | 2009-03-20 Jakub Jelinek <jakub@redhat.com> |
23355 | ||
23356 | PR debug/37890 | |
23357 | * dwarf2out.c (gen_namespace_die): Add context_die argument and use | |
23358 | it for block local namespace aliases. | |
23359 | (gen_decl_die): Pass context_die to gen_namespace_die. | |
23360 | ||
ea1199ee JJ |
23361 | 2009-03-19 Jakub Jelinek <jakub@redhat.com> |
23362 | ||
23363 | PR c/39495 | |
23364 | * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s | |
23365 | minimum or maximum value. | |
23366 | ||
58929c10 AO |
23367 | 2009-03-19 Alexandre Oliva <aoliva@redhat.com> |
23368 | ||
23369 | * reginfo.c (globalize_reg): Recompute derived reg sets. | |
23370 | ||
60839f5d | 23371 | 2009-03-19 Ozkan Sezer <sezeroz@gmail.com> |
234952b3 OS |
23372 | |
23373 | PR target/39063 | |
23374 | * libgcc2.c (mprotect): Do not use signed arguments for | |
23375 | VirtualProtect, use DWORD arguments. Also fix the 'may | |
23376 | be used uninitialized' warning for the np variable. | |
23377 | ||
f57c2f04 JJ |
23378 | 2009-03-19 Jakub Jelinek <jakub@redhat.com> |
23379 | ||
23380 | PR target/39496 | |
23381 | * config/i386/i386.c (ix86_function_regparm): Don't optimize local | |
23382 | functions using regparm calling conventions when not optimizing. | |
23383 | (ix86_function_sseregparm): Similarly for sseregparm calling | |
23384 | conventions. | |
23385 | ||
9e517d61 LF |
23386 | 2009-03-19 Li Feng <nemokingdom@gmail.com> |
23387 | ||
23388 | PR middle-end/39500 | |
23389 | * tree-data-ref.c (analyze_subscript_affine_affine): There is no | |
23390 | dependence if the first conflict is after niter iterations. | |
23391 | ||
8ef20026 HPN |
23392 | 2009-03-19 Hans-Peter Nilsson <hp@axis.com> |
23393 | ||
23394 | PR middle-end/38609 | |
23395 | * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all | |
23396 | functions with dynamic stack-pointer adjustments. | |
23397 | ||
64e4a1a6 BE |
23398 | 2009-03-19 Ben Elliston <bje@au.ibm.com> |
23399 | ||
23400 | * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data | |
23401 | option; change to -msdata=data. | |
23402 | ||
9a0f3e86 RW |
23403 | 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23404 | ||
23405 | * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers, | |
23406 | and -fopenmp. | |
23407 | ||
09bc5979 EB |
23408 | 2009-03-18 Eric Botcazou <ebotcazou@adacore.com> |
23409 | ||
23410 | PR target/35180 | |
23411 | * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output. | |
23412 | ||
332459cd SL |
23413 | 2009-03-18 Sandra Loosemore <sandra@codesourcery.com> |
23414 | ||
23415 | * doc/invoke.texi (Code Gen Options): Expand discussion of | |
23416 | -fno-common. | |
23417 | ||
8f5929e1 JJ |
23418 | 2009-03-18 Jakub Jelinek <jakub@redhat.com> |
23419 | ||
23420 | * dse.c (struct group_info): Reorder fields for 64-bit hosts. | |
23421 | * matrix-reorg.c (struct matrix_info): Likewise. | |
23422 | * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise. | |
23423 | * rtl.h (struct mem_attrs): Likewise. | |
23424 | * df.h (struct df): Likewise. | |
23425 | * tree-data-ref.h (struct data_dependence_relation): Likewise. | |
23426 | * ira-int.h (struct ira_allocno): Likewise. | |
23427 | * df-scan.c (struct df_collection_rec): Likewise. | |
23428 | * ira.c (struct equivalence): Likewise. | |
23429 | * function.c (struct temp_slot): Likewise. | |
23430 | * cfgloop.h (struct loop): Likewise. | |
23431 | ||
d130d647 JJ |
23432 | PR debug/39485 |
23433 | * function.c (use_register_for_decl): When not optimizing, disregard | |
23434 | register keyword for variables with types containing methods. | |
23435 | ||
9968d233 SP |
23436 | 2009-03-18 Sebastian Pop <sebastian.pop@amd.com> |
23437 | ||
23438 | PR middle-end/39447 | |
23439 | * graphite.c (exclude_component_ref): Renamed contains_component_ref_p. | |
23440 | (is_simple_operand): Call contains_component_ref_p before calling data | |
23441 | reference analysis that would fail on COMPONENT_REFs. | |
23442 | ||
23443 | * tree-vrp.c (search_for_addr_array): Fix formatting. | |
23444 | ||
69484bfd RG |
23445 | 2009-03-18 Richard Guenther <rguenther@suse.de> |
23446 | ||
23447 | * tree-vect-transform.c (vect_loop_versioning): Fold the | |
23448 | generated comparisons. | |
23449 | * tree-vectorizer.c (set_prologue_iterations): Likewise. | |
23450 | (slpeel_tree_peel_loop_to_edge): Likewise. | |
23451 | ||
66811228 RW |
23452 | 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23453 | ||
0631b69f RW |
23454 | PR middle-end/37805 |
23455 | * opts.c (print_specific_help): In addition to `undocumented', | |
23456 | accept `separate' and `joined' flags if passed alone. Describe | |
23457 | output by the first matched one of those. | |
23458 | (common_handle_option): Skip over empty strings. | |
23459 | * gcc.c (display_help): Fix help string for `--help='. | |
23460 | * doc/invoke.texi (Option Summary, Overall Options): With | |
23461 | `--help=', classes and qualifiers can both be repeated, but | |
23462 | only the latter can be negated. One should not pass only | |
23463 | negated qualifiers. Fix markup and examples. | |
23464 | ||
66811228 RW |
23465 | Revert |
23466 | 2008-10-14 Jakub Jelinek <jakub@redhat.com> | |
23467 | PR middle-end/37805 | |
23468 | * opts.c (common_handle_option): Don't ICE on -fhelp=joined | |
23469 | and -fhelp=separate. | |
23470 | ||
3c072c6b JY |
23471 | 2009-03-17 Jing Yu <jingyu@google.com> |
23472 | ||
23473 | PR middle-end/39378 | |
80c65208 JY |
23474 | * function.h (struct rtl_data): Move is_thunk from here... |
23475 | (struct function): ...to here. | |
23476 | * cp/method.c (use_thunk): Change is_thunk from crtl to cfun. | |
3c072c6b JY |
23477 | * varasm.c (assemble_start_function): Change is_thunk from crtl to |
23478 | cfun. | |
80c65208 JY |
23479 | * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to |
23480 | cfun. | |
23481 | (alpha_does_function_need_gp, alpha_start_function): Likewise. | |
23482 | (alpha_output_function_end_prologue): Likewise. | |
23483 | (alpha_end_function, alpha_output_mi_thunk_osf): Likewise. | |
23484 | * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise. | |
23485 | (rs6000_output_function_epilogue): Likewise. | |
23486 | * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise. | |
3c072c6b | 23487 | |
9ade279b UB |
23488 | 2009-03-17 Uros Bizjak <ubizjak@gmail.com> |
23489 | ||
23490 | PR target/39482 | |
23491 | * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers | |
23492 | from different units in a single alternative. | |
23493 | (*truncdfsf_i387): Ditto. | |
23494 | (*truncxfsf2_mixed): Ditto. | |
23495 | (*truncxfdf2_mixed): Ditto. | |
23496 | ||
16e60c17 JJ |
23497 | 2009-03-17 Jakub Jelinek <jakub@redhat.com> |
23498 | ||
98381eb4 JJ |
23499 | * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow |
23500 | non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL. | |
23501 | ||
df5deb18 JJ |
23502 | PR debug/39474 |
23503 | * tree-ssa-live.c (remove_unused_locals): Don't remove local | |
23504 | unused non-artificial variables when not optimizing. | |
23505 | ||
a3f596ba JJ |
23506 | PR debug/39471 |
23507 | * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit | |
23508 | DW_TAG_imported_module even if decl is IMPORTED_DECL with | |
23509 | NAMESPACE_DECL in its DECL_INITIAL. | |
23510 | ||
6b2b8871 JJ |
23511 | PR middle-end/39443 |
23512 | * optabs.c (set_user_assembler_libfunc): New function. | |
23513 | * expr.h (set_user_assembler_libfunc): New prototype. | |
23514 | * c-common.c: Include libfuncs.h. | |
23515 | (set_builtin_user_assembler_name): Call set_user_assembler_libfunc | |
23516 | for memcmp, memset, memcpy, memmove and abort. | |
23517 | * Makefile.in (c-common.o): Depend on libfuncs.h. | |
23518 | ||
16e60c17 JJ |
23519 | PR debug/39412 |
23520 | * dwarf2out.c (gen_inlined_enumeration_type_die, | |
23521 | gen_inlined_structure_type_die, gen_inlined_union_type_die, | |
23522 | gen_tagged_type_instantiation_die): Removed. | |
23523 | (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin | |
23524 | do nothing. | |
23525 | ||
4d936aca JJ |
23526 | 2009-03-17 Janis Johnson <janis187@us.ibm.com> |
23527 | ||
23528 | PR testsuite/38526 | |
23529 | * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment | |
23530 | its use. | |
23531 | (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest. | |
23532 | (check-parallel-%): Ditto. | |
23533 | (check-consistency): Ditto. | |
23534 | ||
4e9b2e50 KT |
23535 | 2009-03-17 Kai Tietz <kai.tietz@onevision.com> |
23536 | ||
23537 | * ipa-struct-reorg.c (create_general_new_stmt): Initialize | |
23538 | local variable rhs by NULL_TREE. | |
23539 | ||
21440b2d L |
23540 | 2009-03-17 H.J. Lu <hongjiu.lu@intel.com> |
23541 | ||
23542 | PR target/39477 | |
9ade279b | 23543 | * doc/extend.texi: Correct register behavior for regparm on Intel 386. |
21440b2d | 23544 | |
d8905c6a L |
23545 | 2009-03-17 H.J. Lu <hongjiu.lu@intel.com> |
23546 | ||
23547 | PR target/39476 | |
9ade279b | 23548 | * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit. |
d8905c6a L |
23549 | |
23550 | 2009-03-17 H.J. Lu <hongjiu.lu@intel.com> | |
435a61d3 L |
23551 | |
23552 | PR target/39473 | |
23553 | * config/i386/i386.c (ix86_expand_call): Check extra clobbers | |
23554 | for ms->sysv ABI calls only in 64bit mode. | |
23555 | ||
23556 | * config/i386/i386.md (untyped_call): Support 32bit. | |
23557 | ||
cdcabece L |
23558 | 2009-03-16 H.J. Lu <hongjiu.lu@intel.com> |
23559 | ||
23560 | * doc/extend.texi: Replace x86_65 with x86_64. | |
23561 | ||
97b4ba9f JJ |
23562 | 2009-03-16 Jakub Jelinek <jakub@redhat.com> |
23563 | ||
23564 | PR tree-optimization/39455 | |
23565 | * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types | |
23566 | mismatches for POINTER_TYPE_P (type). | |
23567 | (number_of_iterations_le): Likewise. | |
23568 | ||
60839f5d | 23569 | 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com> |
83c191e1 HS |
23570 | |
23571 | * config/picochip/picochip.c: Removed profiling support. | |
23572 | * config/picochip/picochip.md: Removed profiling instruction. | |
23573 | * config/picochip/picochip.h: Removed profiling builtin. | |
23574 | ||
f38095f3 JM |
23575 | 2009-03-16 Joseph Myers <joseph@codesourcery.com> |
23576 | ||
23577 | * doc/install.texi (--with-host-libstdcxx): Document. | |
23578 | ||
2cb4817b AS |
23579 | 2009-03-14 Anatoly Sokolov <aesok@post.ru> |
23580 | ||
23581 | PR target/34299 | |
23582 | * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for | |
23583 | generate a warning if the function name does not begin with | |
23584 | "__vector" and the function has either the 'signal' or 'interrupt' | |
23585 | attribute, from here to ... | |
23586 | (avr_declare_function_name): ...here. New function. | |
23587 | * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine. | |
23588 | * config/avr/avr-protos.h (avr_declare_function_name): Declare. | |
23589 | ||
39b2ac74 JJ |
23590 | 2009-03-14 Jakub Jelinek <jakub@redhat.com> |
23591 | ||
23592 | PR bootstrap/39454 | |
23593 | * cse.c (fold_rtx): Don't modify original const_arg1 when | |
23594 | canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a | |
23595 | separate variable instead. | |
23596 | * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything | |
23597 | from out of range shift counts. | |
23598 | (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly. | |
23599 | ||
ad41bd84 | 23600 | 2009-03-13 Catherine Moore <clm@codesourcery.com> |
f7a82dee | 23601 | |
60839f5d | 23602 | * config/i386/x-mingw32 (host-mingw32.o): Replace |
f7a82dee CM |
23603 | diagnostic.h with $(DIAGNOSTIC_H). |
23604 | ||
ad41bd84 | 23605 | 2009-03-12 Jakub Jelinek <jakub@redhat.com> |
03a18198 JJ |
23606 | |
23607 | PR target/39431 | |
23608 | * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New | |
23609 | predicate. | |
23610 | * config/i386/sync.md (sync_compare_and_swap<mode>, | |
23611 | sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check | |
23612 | if operands[1] is cmpxchg8b_pic_memory_operand, if not force address | |
23613 | into a register. | |
23614 | (sync_double_compare_and_swapdi_pic, | |
23615 | sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be | |
23616 | cmpxchg8b_pic_memory_operand instead of just memory_operand. | |
23617 | ||
122c59c7 L |
23618 | 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> |
23619 | ||
23620 | PR target/39445 | |
9ade279b | 23621 | * config/i386/i386.c (ix86_expand_push): Don't set memory alignment. |
122c59c7 | 23622 | |
cec8874f L |
23623 | 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> |
23624 | ||
23625 | PR target/39327 | |
23626 | * config/i386/sse.md (avx_addsubv8sf3): Correct item bits. | |
23627 | (avx_addsubv4df3): Likewise. | |
23628 | (*avx_addsubv4sf3): Likewise. | |
23629 | (sse3_addsubv4sf3): Likewise. | |
23630 | ||
bbb52802 L |
23631 | 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> |
23632 | ||
23633 | PR target/38824 | |
9ade279b | 23634 | * config/i386/i386.md: Compare REGNO on the new peephole2 patterns. |
bbb52802 | 23635 | |
a812fb07 VM |
23636 | 2009-03-12 Vladimir Makarov <vmakarov@redhat.com> |
23637 | ||
23638 | PR debug/39432 | |
23639 | * ira-int.h (struct allocno): Fix comment for calls_crossed_num. | |
23640 | * ira-conflicts.c (ira_build_conflicts): Prohibit call used | |
23641 | registers for allocnos created from user-defined variables. | |
23642 | ||
4caab5ba UW |
23643 | 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
23644 | ||
23645 | PR target/39181 | |
23646 | * config/spu/spu.c (spu_expand_mov): Handle invalid subregs | |
23647 | of non-integer mode as well. | |
23648 | ||
498e51ca AN |
23649 | 2009-03-11 Adam Nemet <anemet@caviumnetworks.com> |
23650 | ||
23651 | * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P | |
23652 | for functions for which the parameter types are unknown. | |
23653 | ||
9bfaf89d JJ |
23654 | 2009-03-11 Jakub Jelinek <jakub@redhat.com> |
23655 | ||
23656 | PR target/39137 | |
9ade279b | 23657 | * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro. |
9bfaf89d JJ |
23658 | * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined. |
23659 | * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define. | |
23660 | * config/i386/i386.c (ix86_local_alignment): For | |
23661 | -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for | |
23662 | long long variables on the stack to avoid dynamic realignment. | |
23663 | Allow the first argument to be a decl rather than type. | |
23664 | * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document. | |
23665 | ||
18a3bdcb NC |
23666 | 2009-03-11 Nick Clifton <nickc@redhat.com> |
23667 | ||
23668 | PR target/5362 | |
40190a76 NC |
23669 | * config/mcore/mcore.opt: Remove deprecated m4align and m8align |
23670 | options. | |
23671 | Add description to mno-lsim option. | |
23672 | * config/mcore/mcore.h: Remove comment about deprecated m4align | |
23673 | option. | |
23674 | (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN. | |
23675 | * doc/invoke.texi: Add description of mno-lsim and | |
23676 | mstack-increment options. | |
23677 | ||
18a3bdcb NC |
23678 | * config/fr30/fr30.opt: Document the -mno-lsim option. |
23679 | * doc/invoke.texi: Add descriptions of the FR30's -msmall-model | |
23680 | and -mno-lsim options. | |
23681 | ||
dc215785 UW |
23682 | 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
23683 | ||
23684 | * fold-const.c (fold_comparison): Only call fold_inf_compare | |
23685 | if the mode supports infinities. | |
23686 | ||
7716876b JM |
23687 | 2009-03-11 Jason Merrill <jason@redhat.com> |
23688 | ||
23689 | PR debug/39086 | |
23690 | * tree-nrv.c (tree_nrv): Don't do this optimization if the front | |
23691 | end already did. Notice GIMPLE_CALL modifications of the result. | |
23692 | Don't copy debug information from an ignored decl or a decl from | |
23693 | another function. | |
23694 | ||
ddef83d2 RG |
23695 | 2009-03-10 Richard Guenther <rguenther@suse.de> |
23696 | Nathan Froyd <froydnj@codesourcery.com> | |
23697 | ||
23698 | PR middle-end/37850 | |
9ade279b | 23699 | * libgcc2.c (__mulMODE3): Use explicit assignments to form the result. |
ddef83d2 RG |
23700 | (__divMODE3): Likewise. |
23701 | ||
9a9ba8d9 JJ |
23702 | 2009-03-09 Jakub Jelinek <jakub@redhat.com> |
23703 | ||
23704 | PR tree-optimization/39394 | |
23705 | * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and | |
23706 | DECL_SIZE_UNIT of variable length FIELD_DECLs. | |
23707 | ||
929b7fc3 AK |
23708 | 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
23709 | ||
23710 | * recog.c (verfiy_changes): Disallow renaming of hard regs in | |
23711 | inline asms for register asm ("") declarations. | |
23712 | ||
1803581d EB |
23713 | 2009-03-09 Eric Botcazou <ebotcazou@adacore.com> |
23714 | ||
23715 | * fold-const.c (fold_unary): Fix comment. | |
23716 | ||
8454d27e JH |
23717 | 2009-03-07 Jan Hubicka <jh@suse.cz> |
23718 | ||
23719 | PR target/39361 | |
969a5433 JJ |
23720 | * tree-inline.c (setup_one_parameter): Do replacement of const |
23721 | argument by constant in SSA form. | |
8454d27e | 23722 | |
3a695389 UW |
23723 | 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
23724 | ||
23725 | PR middle-end/38028 | |
23726 | * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to | |
23727 | determine alignment passed to assign_stack_local. | |
23728 | (assign_parms_unsplit_complex): Likewise. | |
23729 | * except.c (sjlj_build_landing_pads): Likewise. | |
23730 | ||
9f0e7885 JJ |
23731 | 2009-03-06 Jakub Jelinek <jakub@redhat.com> |
23732 | ||
65401a0b JJ |
23733 | PR middle-end/39360 |
23734 | * tree-flow.h (add_referenced_var): Return bool instead of void. | |
23735 | * tree-dfa.c (add_referenced_var): Return result of | |
23736 | referenced_var_check_and_insert call. | |
23737 | * tree-inline.c (expand_call_inline): Call add_referenced_var instead | |
23738 | of referenced_var_check_and_insert. | |
23739 | ||
9f0e7885 | 23740 | PR debug/39372 |
9ade279b | 23741 | * dwarf2out.c (add_abstract_origin_attribute): Return origin_die. |
9f0e7885 JJ |
23742 | (gen_variable_die): Emit DW_AT_location on abstract static variable's |
23743 | DIE, don't emit it if abstract origin already has it. | |
23744 | * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any | |
23745 | BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless. | |
23746 | ||
3b664bd1 JBG |
23747 | 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de> |
23748 | ||
ba20e309 | 23749 | * genpreds.c (needs_variable): Fix parentheses at variable name |
3b664bd1 JBG |
23750 | detection. |
23751 | (write_tm_constrs_h): Indent generated code. | |
23752 | ||
d8f8ca80 RR |
23753 | 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
23754 | ||
23755 | * doc/extend.texi (Function Attributes): Add documentation | |
23756 | for isr attributes. | |
23757 | ||
6c3d550c JJ |
23758 | 2009-03-06 Jakub Jelinek <jakub@redhat.com> |
23759 | ||
23760 | PR debug/39387 | |
23761 | * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL | |
23762 | take locus from its DECL_SOURCE_LOCATION instead of input_location. | |
23763 | ||
f9e96751 BS |
23764 | 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com> |
23765 | ||
23766 | * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark | |
23767 | the loop as bad. | |
23768 | ||
ee0ee7e2 JJ |
23769 | 2009-03-05 Jakub Jelinek <jakub@redhat.com> |
23770 | ||
23771 | PR debug/39379 | |
23772 | * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs | |
23773 | with blocks containing IMPORTED_DECLs in BLOCK_VARS. | |
23774 | ||
6c6094f1 UB |
23775 | 2009-03-05 Uros Bizjak <ubizjak@gmail.com> |
23776 | ||
23777 | * config/i386/i386.md (R8_REG, R9_REG): New constants. | |
23778 | * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named | |
23779 | constants instead of magic numbers. | |
23780 | (HARD_REGNO_CALLER_SAVE_MODE): Ditto. | |
23781 | (QI_REG_P): Ditto. | |
23782 | * config/i386/i386.c (x86_64_int_parameter_registers): Ditto. | |
23783 | (x86_64_ms_abi_int_parameter_registers): Ditto. | |
23784 | (x86_64_int_return_registers): Ditto. | |
09f8a8d3 | 23785 | (ix86_maybe_switch_abi): Ditto. |
6c6094f1 UB |
23786 | (ix86_expand_call): Ditto for clobbered_registers array. |
23787 | (ix86_hard_regno_mode_ok): Ditto. | |
23788 | (x86_extended_QIreg_mentioned_p): Ditto. | |
23789 | ||
b267bd41 R |
23790 | 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com> |
23791 | ||
6c6094f1 | 23792 | PR tree-optimization/39349 |
1f3ad3f0 R |
23793 | * cse.c (cse_insn): Fix loop to stop at VOIDmode. |
23794 | ||
b267bd41 R |
23795 | * combine.c (gen_lowpart_for_combine): Use omode when generating |
23796 | clobber. | |
23797 | ||
1242bc9d R |
23798 | 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com> |
23799 | ||
6c6094f1 | 23800 | PR rtl-optimization/39235 |
1242bc9d R |
23801 | * loop-iv.c (get_simple_loop_desc): Use XCNEW. |
23802 | ||
48f03606 ZD |
23803 | 2009-03-04 Zdenek Dvorak <ook@ucw.cz> |
23804 | ||
23805 | * graphite.c (nb_reductions_in_loop): Update simple_iv arguments. | |
23806 | ||
b505e785 RG |
23807 | 2009-03-04 Richard Guenther <rguenther@suse.de> |
23808 | ||
23809 | PR tree-optimization/39362 | |
23810 | * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs | |
23811 | that occur in abnormal PHIs should be varying. | |
23812 | ||
f017bf5e ZD |
23813 | 2009-03-04 Zdenek Dvorak <ook@ucw.cz> |
23814 | ||
23815 | * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): | |
23816 | Extend comments. | |
23817 | (simple_iv): Take loop as an argument instead of statement. | |
23818 | * tree-scalar-evolution.h (simple_iv): Declaration changed. | |
23819 | * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls | |
23820 | to simple_iv. | |
23821 | * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev): | |
23822 | Ditto. | |
23823 | * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto. | |
23824 | * matrix-reorg.c (analyze_transpose): Ditto. | |
23825 | * tree-data-ref.c (dr_analyze_innermost): Ditto. | |
23826 | * tree-vect-analyze.c (vect_analyze_data_refs): Ditto. | |
23827 | * tree-predcom.c (ref_at_iteration): Ditto. | |
23828 | * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto. | |
23829 | ||
6a66f28e RG |
23830 | 2009-03-04 Richard Guenther <rguenther@suse.de> |
23831 | ||
23832 | PR tree-optimization/39358 | |
23833 | * tree-ssa-structalias.c (do_sd_constraint): Fix check for | |
23834 | escaped_id and callused_id. | |
23835 | (solve_graph): Likewise. | |
23836 | ||
57e454ee RG |
23837 | 2009-03-04 Richard Guenther <rguenther@suse.de> |
23838 | ||
23839 | PR tree-optimization/39339 | |
23840 | * tree-sra.c (try_instantiate_multiple_fields): Make it | |
23841 | no longer ICE on the above. | |
23842 | ||
a6fe9ed4 JM |
23843 | 2009-03-03 Joseph Myers <joseph@codesourcery.com> |
23844 | ||
23845 | * emit-rtl.c (adjust_address_1): Reduce offset to a signed value | |
23846 | that fits within Pmode. | |
23847 | ||
dc672951 SE |
23848 | 2009-03-03 Steve Ellcey <sje@cup.hp.com> |
23849 | ||
23850 | PR middle-end/10109 | |
23851 | * tm.texi (LIBCALL_VALUE): Update description. | |
23852 | ||
8b9d598f SE |
23853 | 2009-03-03 Steve Ellcey <sje@cup.hp.com> |
23854 | ||
23855 | PR middle-end/34443 | |
23856 | * doc/extend.texi (section): Update description. | |
23857 | ||
13e4e36e L |
23858 | 2009-03-03 H.J. Lu <hongjiu.lu@intel.com> |
23859 | ||
23860 | PR middle-end/39345 | |
23861 | * tree-inline.c (remapped_type): New. | |
23862 | (can_be_nonlocal): Call remapped_type instead of remap_type. | |
23863 | ||
067dd3c9 JJ |
23864 | 2009-03-03 Jakub Jelinek <jakub@redhat.com> |
23865 | ||
23866 | PR fortran/39354 | |
23867 | * gimplify.c (goa_stabilize_expr): Handle tcc_comparison, | |
23868 | TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR. | |
23869 | ||
9bd9f738 RG |
23870 | 2009-03-03 Richard Guenther <rguenther@suse.de> |
23871 | ||
23872 | PR middle-end/39272 | |
23873 | * tree.c (tree_nonartificial_location): New function. | |
23874 | * tree.h (tree_nonartificial_location): Declare. | |
23875 | * builtins.c (expand_builtin_memory_chk): Provide location | |
23876 | of the call location for artificial function pieces. | |
23877 | (maybe_emit_chk_warning): Likewise. | |
23878 | (maybe_emit_sprintf_chk_warning): Likewise. | |
23879 | (maybe_emit_free_warning): Likewise. | |
23880 | * expr.c (expand_expr_real_1): Likewise. | |
23881 | ||
f07049c8 JJ |
23882 | 2009-03-03 Jakub Jelinek <jakub@redhat.com> |
23883 | ||
23884 | PR tree-optimization/39343 | |
23885 | * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if | |
23886 | COMPONENT_REF t has ARRAY_TYPE. | |
23887 | ||
7d4fba4a SP |
23888 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> |
23889 | ||
23890 | PR middle-end/39335 | |
23891 | * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert | |
23892 | when the type precision of the induction variable should be | |
23893 | larger than the type precision of nit. | |
23894 | (gen_parallel_loop): Update use of canonicalize_loop_ivs. | |
23895 | * graphite.c (graphite_loop_normal_form): Same. | |
23896 | * tree-flow.h (canonicalize_loop_ivs): Update declaration. | |
23897 | ||
78168632 UB |
23898 | 2009-03-02 Uros Bizjak <ubizjak@gmail.com> |
23899 | ||
23900 | * config/i386/i386.md (ST?_REG, MM?_REG): New constants. | |
23901 | (*call_1_rex64_ms_sysv): Use named constants instead of magic | |
6c6094f1 | 23902 | numbers to describe clobbered registers. |
78168632 | 23903 | (*call_value_0_rex64_ms_sysv): Ditto. |
6c6094f1 UB |
23904 | * config/i386/mmx.md (mmx_emms): Ditto. |
23905 | (mmx_femms): Ditto. | |
78168632 | 23906 | |
63553059 RS |
23907 | 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com> |
23908 | ||
23909 | * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling | |
23910 | of ABI_64. | |
23911 | ||
500a1f85 UW |
23912 | 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
23913 | ||
23914 | * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define. | |
23915 | (spu_section_type_flags): New function. | |
23916 | ||
962aae34 UB |
23917 | 2009-03-02 Uros Bizjak <ubizjak@gmail.com> |
23918 | ||
23919 | * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy | |
23920 | reg_class_contents of FLOAT_REGS into a temporary. | |
23921 | ||
6dfb529c | 23922 | 2009-03-02 Richard Guenther <rguenther@suse.de> |
962aae34 | 23923 | Ira Rosen <irar@il.ibm.com> |
6dfb529c RG |
23924 | |
23925 | PR tree-optimization/39318 | |
23926 | * tree-vect-transform.c (vectorizable_call): Transfer the EH region | |
23927 | information to the vectorized statement. | |
23928 | ||
6b5629db UB |
23929 | 2009-03-01 Uros Bizjak <ubizjak@gmail.com> |
23930 | ||
434426d2 UB |
23931 | * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i" |
23932 | variable. Use defined names instead of magic constants for REX SSE | |
23933 | registers. | |
6b5629db | 23934 | |
14e5b285 RG |
23935 | 2009-03-01 Richard Guenther <rguenther@suse.de> |
23936 | ||
23937 | PR tree-optimization/39331 | |
23938 | * omp-low.c (lower_send_shared_vars): Do not receive new | |
23939 | values for the reference of DECL_BY_REFERENCE parms or results. | |
23940 | ||
526d73ab JH |
23941 | 2009-03-01 Jan Hubicka <jh@suse.cz> |
23942 | ||
23943 | PR debug/39267 | |
23944 | * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS, | |
23945 | BLOCK_NONLOCALIZED_VAR): New macros. | |
23946 | (tree_block): Add nonlocalized_vars. | |
f4ea99bd EB |
23947 | * dwarf2out.c (gen_formal_parameter_die, gen_variable_die, |
23948 | gen_decl_die): Add origin argument. Allow generation of die with | |
23949 | origin at hand only. | |
526d73ab | 23950 | (gen_member_die, gen_type_die_with_usage, force_decl_die, |
f4ea99bd EB |
23951 | declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use |
23952 | of gen_*. | |
526d73ab JH |
23953 | (gen_block_die): Fix checking for unused blocks. |
23954 | (process_scope_var): Break out from .... ; work with origins only. | |
23955 | (decls_for_scope) ... here; process nonlocalized list. | |
23956 | (dwarf2out_ignore_block): Look for nonlocalized vars. | |
f4ea99bd EB |
23957 | * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized |
23958 | vars. | |
526d73ab JH |
23959 | (dump_scope_block): Dump them. |
23960 | * tree-inline.c (remap_decls): Handle nonlocalized vars. | |
23961 | (remap_block): Likewise. | |
23962 | (can_be_nonlocal): New predicate. | |
23963 | (copy_bind_expr, copy_gimple_bind): Update use of remap_block. | |
23964 | ||
7a9d3fe8 RW |
23965 | 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23966 | ||
23967 | * configure: Regenerate. | |
23968 | ||
b3cdf3cb RW |
23969 | 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
23970 | ||
a16d1645 | 23971 | * optc-gen.awk: No need to duplicate option flags twice. |
9ade279b | 23972 | Reuse help texts for duplicate options which do not have any. |
a16d1645 | 23973 | |
1156c176 RW |
23974 | * gcc.c (display_help): Document --version. |
23975 | ||
033505fc RW |
23976 | * gcc.c (main): If print_help_list and verbose_flag, ensure |
23977 | driver output comes before subprocess output. | |
23978 | ||
4d077054 RW |
23979 | * optc-gen.awk: Assign all remaining fields to help string, |
23980 | space-separated, for multi-line help in *.opt. | |
23981 | ||
a072f1cf RW |
23982 | * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only. |
23983 | -Wno-pedantic-ms-format is for MinGW targets only. | |
23984 | ||
b3cdf3cb RW |
23985 | * doc/options.texi (Option file format): Fix bad indentation, |
23986 | restoring dropped sentence. | |
23987 | ||
a3aadcc5 JH |
23988 | 2009-02-28 Jan Hubicka <jh@suse.cz> |
23989 | ||
23990 | * tree-inline.c (tree_function_versioning): Output debug info. | |
23991 | ||
1cf5abb3 JH |
23992 | 2009-02-28 Jan Hubicka <jh@suse.cz> |
23993 | ||
23994 | PR debug/39267 | |
23995 | * tree-inline.c (setup_one_parameter): Do not copy propagate | |
23996 | arguments when not optimizing. | |
23997 | ||
c4d3f42f L |
23998 | 2009-02-28 H.J. Lu <hongjiu.lu@intel.com> |
23999 | ||
24000 | PR target/39327 | |
24001 | * config/i386/sse.md (avx_addsubv8sf3): Correct item bits. | |
24002 | (avx_addsubv4df3): Likewise. | |
24003 | (*avx_addsubv4sf3): Likewise. | |
24004 | (sse3_addsubv4sf3): Likewise. | |
24005 | (*avx_addsubv2df3): Likewise. | |
24006 | (sse3_addsubv2df3): Likewise. | |
24007 | (avx_unpckhps256): Correct item selectors. | |
24008 | (avx_unpcklps256): Likewise. | |
24009 | (avx_unpckhpd256): Likewise. | |
24010 | (avx_unpcklpd256): Likewise. | |
24011 | ||
eb50f5f4 JH |
24012 | 2009-02-28 Jan Hubicka <jh@suse.cz> |
24013 | ||
24014 | * tree-inline.c (expand_call_inline): Avoid duplicate declarations of | |
24015 | static vars. | |
24016 | (copy_arguments_for_versioning): If var is declared don't declare it. | |
24017 | (tree_function_versioning): First setup substitutions and then copy | |
24018 | args. | |
24019 | ||
26140130 JH |
24020 | 2009-02-27 Jan Hubicka <jh@suse.cz> |
24021 | ||
24022 | PR debug/39267 | |
24023 | * cgraph.h (varpool_output_debug_info): Remove. | |
24024 | * cgraphunit.c (varpool_output_debug_info): Remove. | |
24025 | * dwarf2out.c (deferred_locations_struct): New struct | |
24026 | (deferred_locations): New type. | |
24027 | (deferred_locations_list): New static var. | |
24028 | (deffer_location): New function. | |
24029 | (gen_variable_die): Use it. | |
24030 | (decls_for_scope): Output info on local static vars. | |
24031 | (dwarf2out_finish): Process deferred locations. | |
24032 | * varpool.c (varpool_output_debug_info): Remove. | |
24033 | ||
cff7525f JH |
24034 | 2009-02-27 Jan Hubicka <jh@suse.cz> |
24035 | ||
24036 | PR debug/39267 | |
24037 | * tree.h (TREE_PROTECTED): Fix comment. | |
24038 | (BLOCK_HANDLER_BLOCK): Remove. | |
24039 | (struct tree_block): Remove handler_block add body_block. | |
24040 | (inlined_function_outer_scope_p): New. | |
24041 | (is_body_block): Remove. | |
24042 | * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK. | |
24043 | * dwarf2out.c (is_inlined_entry_point): Remove. | |
24044 | (add_high_low_attributes): Use inlined_function_outer_scope_p. | |
f10a1c6c EB |
24045 | (gen_block_die): Use is_inlined_entry_point check. Remove body block |
24046 | code. | |
cff7525f JH |
24047 | * langhooks.h (struct lang_hooks): Remove no_bodu_blocks. |
24048 | * gimplify.c (gimplify_expr): Gimplify body blocks. | |
f10a1c6c EB |
24049 | * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper |
24050 | block with multiple subblocks. | |
cff7525f JH |
24051 | (dump_scope_block): Prettier output; dump more flags and info. |
24052 | (dump_scope_blocks): New. | |
24053 | (remove_unused_locals): Use dump_scope_blocks. | |
24054 | * tree-flow.h (dump_scope_blocks): Declare. | |
24055 | * tree-cfg.c (execute_build_cfg): Dump scope blocks. | |
24056 | * stmt.c (is_body_block): Remove. | |
24057 | * tree-inline.c (remap_block): Copy BODY_BLOCK info. | |
24058 | * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove. | |
24059 | ||
c20993b9 SP |
24060 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> |
24061 | ||
24062 | PR middle-end/39308 | |
2ba9daa7 | 24063 | * graphite.c (graphite_loop_normal_form): Do not call |
c20993b9 SP |
24064 | number_of_iterations_exit from a gcc_assert. |
24065 | ||
e3cba5e5 AK |
24066 | 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
24067 | ||
60839f5d | 24068 | * config/s390/s390.c (s390_swap_cmp): Look for conditional |
e3cba5e5 AK |
24069 | jumps if COND is NULL. |
24070 | (find_cond_jump): New function. | |
24071 | (s390_z10_optimize_cmp): Handling for reg-reg compares added. | |
60839f5d | 24072 | * config/s390/s390.md: Remove z10_cobra attribute value. |
e3cba5e5 | 24073 | |
9dadeeb8 UB |
24074 | 2009-02-26 Uros Bizjak <ubizjak@gmail.com> |
24075 | ||
24076 | * config/alpha/alpha.h (alpha_expand_mov): Return false if | |
24077 | force_const_mem returns NULL_RTX. | |
24078 | ||
625d3251 EB |
24079 | 2009-02-26 Jan Hubicka <jh@suse.cz> |
24080 | ||
24081 | PR debug/39267 | |
24082 | * cgraph.h (varpool_output_debug_info): Remove. | |
24083 | * cgraphunit.c (varpool_output_debug_info): Remove. | |
24084 | * dwarf2out.c (deferred_locations_struct): New struct | |
24085 | (deferred_locations): New type. | |
24086 | (deferred_locations_list): New static var. | |
24087 | (deffer_location): New function. | |
24088 | (gen_variable_die): Use it. | |
24089 | (decls_for_scope): Output info on local static vars. | |
24090 | (dwarf2out_finish): Process deferred locations. | |
24091 | * varpool.c (varpool_output_debug_info): Remove. | |
24092 | ||
38432148 | 24093 | 2009-02-25 H.J. Lu <hongjiu.lu@intel.com> |
8592acaf L |
24094 | |
24095 | PR rtl-optimization/39241 | |
24096 | * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls | |
24097 | to subreg_offset_representable_p. | |
24098 | ||
62d049cf PB |
24099 | 2009-02-25 Paolo Bonzini <bonzini@gnu.org> |
24100 | ||
24101 | * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass | |
24102 | execute function prototype. Get f and nregs from max_reg_num | |
24103 | and get_insns. Remove the first backward pass as it's dead, | |
24104 | guard the forward pass by flag_expensive_optimizations. | |
24105 | (rest_of_handle_regmove): Delete. | |
24106 | (pass_regmove): Replace it with regmove_optimize. | |
24107 | ||
f618d33e MJ |
24108 | 2009-02-25 Martin Jambor <mjambor@suse.cz> |
24109 | ||
24110 | PR tree-optimization/39259 | |
24111 | * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and | |
6c6094f1 | 24112 | calls_alloca function flags. |
f618d33e MJ |
24113 | (copy_bb): Set calls_setjmp and alls_alloca function flags if such |
24114 | calls are detected. | |
24115 | ||
c8a05f7c PB |
24116 | 2009-02-25 Paolo Bonzini <bonzini@gnu.org> |
24117 | ||
24118 | * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones, | |
24119 | flags_set_1_rtx, flags_set_1_set): Delete. | |
24120 | (regmove_optimize): Do not call mark_flags_life_zones. | |
24121 | ||
6d2538f5 JB |
24122 | 2009-02-24 Julian Brown <julian@codesourcery.com> |
24123 | ||
24124 | PR target/35965 | |
24125 | * config/arm/arm.c (require_pic_register): Only set | |
24126 | cfun->machine->pic_reg once per function. | |
24127 | ||
a2fa6772 SL |
24128 | 2009-02-24 Sandra Loosemore <sandra@codesourcery.com> |
24129 | ||
24130 | * doc/invoke.texi (Link Options): Document an easier way to pass | |
9dadeeb8 | 24131 | options that take arguments to the GNU linker using -Xlinker and -Wl. |
a2fa6772 | 24132 | |
5472de36 SE |
24133 | 2009-02-24 Steve Ellcey <sje@cup.hp.com> |
24134 | ||
24135 | PR target/33785 | |
24136 | * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description. | |
24137 | ||
844216f3 RG |
24138 | 2009-02-24 Richard Guenther <rguenther@suse.de> |
24139 | ||
24140 | PR debug/39285 | |
24141 | * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs. | |
24142 | ||
71adbef3 | 24143 | 2009-02-24 Richard Guenther <rguenther@suse.de> |
8592acaf | 24144 | Zdenek Dvorak <ook@ucw.cz> |
71adbef3 RG |
24145 | |
24146 | PR tree-optimization/39233 | |
24147 | * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers | |
24148 | from converting them to a generic type. | |
24149 | ||
f1a558e0 SP |
24150 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> |
24151 | ||
24152 | PR tree-optimization/39260 | |
24153 | * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block | |
24154 | contains a condition with a real type. | |
24155 | (build_scop_conditions_1): Conditions are always last_stmt of a bb. | |
24156 | ||
d8028f2c JM |
24157 | 2009-02-23 Jason Merrill <jason@redhat.com> |
24158 | ||
24159 | PR c++/38880 | |
24160 | * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check | |
24161 | narrowing_initializer_constant_valid_p. | |
2ba9daa7 | 24162 | (narrowing_initializer_constant_valid_p): Don't return |
d8028f2c JM |
24163 | null_pointer_node for adding a pointer to itself. |
24164 | ||
9283b513 JH |
24165 | 2009-02-23 Jan Hubicka <jh@suse.cz> |
24166 | ||
24167 | PR c/12245 | |
9dadeeb8 UB |
24168 | * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when |
24169 | resizing. | |
9283b513 | 24170 | |
61e04322 JH |
24171 | 2009-02-23 Jan Hubicka <jh@suse.cz> |
24172 | ||
9dadeeb8 UB |
24173 | PR tree-optimization/37709 |
24174 | * tree.c (block_ultimate_origin): Move here from dwarf2out. | |
24175 | * tree.h (block_ultimate_origin): Declare. | |
24176 | * dwarf2out.c (block_ultimate_origin): Move to tree.c | |
61e04322 JH |
24177 | * tree-ssa-live.c (remove_unused_scope_block_p): |
24178 | Eliminate blocks containig no instructions nor live variables nor | |
24179 | nested blocks. | |
24180 | (dump_scope_block): New function. | |
24181 | (remove_unused_locals): Enable removal of dead blocks by default; | |
9dadeeb8 | 24182 | enable dumping at TDF_DETAILS. |
61e04322 | 24183 | |
38432148 | 24184 | 2009-02-21 H.J. Lu <hongjiu.lu@intel.com> |
5339d3ea L |
24185 | |
24186 | * config/i386/i386.c (classify_argument): Don't allow COImode | |
24187 | and OImode. | |
24188 | (function_arg_advance_32): Don't allow OImode. | |
24189 | (function_arg_32): Likewise. | |
24190 | (function_value_32): Likewise. | |
24191 | (return_in_memory_32): Likewise. | |
24192 | (function_arg_64): Remove OImode comment. | |
24193 | ||
38432148 | 24194 | 2009-02-21 H.J. Lu <hongjiu.lu@intel.com> |
f161e158 L |
24195 | |
24196 | PR target/39261 | |
24197 | * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use | |
24198 | ix86_expand_vector_set for V4DImode in 64bit mode only. | |
24199 | (ix86_expand_vector_init_one_var): Likewise. | |
24200 | ||
dcd739a6 SP |
24201 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> |
24202 | ||
24203 | * graphite.c (graphite_trans_loop_block): Adjust tile size to 51. | |
24204 | ||
6c3b938d RS |
24205 | 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com> |
24206 | ||
8e361f23 | 24207 | PR bootstrap/39257 |
6c3b938d RS |
24208 | * loop-iv.c: Revert last change. |
24209 | * emit-rtl.c: Likewise. | |
24210 | ||
38432148 | 24211 | 2009-02-21 H.J. Lu <hongjiu.lu@intel.com> |
4c64d3dd L |
24212 | |
24213 | PR target/39256 | |
24214 | * config/i386/i386.c (type_natural_mode): Remove an extra | |
24215 | space in the warning message. | |
24216 | (function_value_32): Handle 32-byte vector modes. | |
24217 | (return_in_memory_32): Likewise. | |
24218 | ||
2ec62529 RS |
24219 | 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com> |
24220 | ||
24221 | * loop-iv.c (truncate_value): New function. | |
24222 | (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead | |
24223 | of lowpart_subreg. | |
24224 | (lowpart_subreg): Move to... | |
24225 | * emit-rtl.c: ...here. | |
24226 | ||
ecb8c3cc | 24227 | 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net> |
f814e489 | 24228 | |
ecb8c3cc DS |
24229 | * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert |
24230 | accidental and undocumented change at revision 140860. | |
24231 | ||
ae46a823 JM |
24232 | 2009-02-21 Joseph Myers <joseph@codesourcery.com> |
24233 | ||
24234 | * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to | |
24235 | take gimple_seq * arguments. | |
24236 | (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to | |
24237 | types_compatible_p langhook. | |
24238 | ||
07d8efe3 | 24239 | 2009-02-20 Mark Mitchell <mark@codesourcery.com> |
f814e489 | 24240 | Joseph Myers <joseph@codesourcery.com> |
07d8efe3 MM |
24241 | |
24242 | * config/arm/arm.c (arm_builtin_va_list): New function. | |
24243 | (arm_expand_builtin_va_start): Likewise. | |
24244 | (arm_gimplify_va_arg_expr): Likewise. | |
24245 | (TARGET_BUILD_BUILTIN_VA_LIST): Define. | |
24246 | (TARGET_BUILD_BUILTIN_VA_START): Likewise. | |
24247 | (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise. | |
24248 | (va_list_type): New variable. | |
24249 | (arm_mangle_type): Mangle va_list_type appropriately. | |
24250 | ||
b1fb9f56 JJ |
24251 | 2009-02-20 Jakub Jelinek <jakub@redhat.com> |
24252 | ||
24253 | PR middle-end/39157 | |
24254 | * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H). | |
24255 | * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define. | |
24256 | * params.def (loop-invariant-max-bbs-in-loop): New parameter. | |
24257 | * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop | |
24258 | parameter to 1000 for -O1 by default. | |
24259 | * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new | |
24260 | parameter. | |
24261 | * loop-invariant.c: Include params.h. | |
24262 | (move_loop_invariants): Don't call move_single_loop_invariants on | |
24263 | very large loops. | |
24264 | ||
5bc0807c JM |
24265 | 2009-02-20 Jaka Mocnik <jaka@xlab.si> |
24266 | ||
24267 | * calls.c (emit_library_call_value_1): Use slot_offset instead of | |
24268 | offset when calculating bounds for indexing stack_usage_map. Fixes | |
24269 | a buffer overflow with certain target setups. | |
24270 | ||
c69cd1f5 JJ |
24271 | 2009-02-20 Jakub Jelinek <jakub@redhat.com> |
24272 | ||
24273 | PR target/39240 | |
24274 | * calls.c (expand_call): Clear try_tail_call if caller and callee | |
24275 | disagree in promotion of function return value. | |
24276 | ||
09812622 JJ |
24277 | 2009-02-19 Jakub Jelinek <jakub@redhat.com> |
24278 | ||
24279 | PR target/39175 | |
24280 | * c-common.c (c_determine_visibility): If visibility changed and | |
24281 | DECL_RTL has been already set, call make_decl_rtl to update symbol | |
24282 | flags. | |
24283 | ||
68017cb4 L |
24284 | 2009-02-19 H.J. Lu <hongjiu.lu@intel.com> |
24285 | ||
24286 | PR c++/39188 | |
24287 | * varasm.c (assemble_variable): Don't check DECL_NAME when | |
24288 | globalizing a variable. | |
24289 | ||
ab4194da JM |
24290 | 2009-02-19 Joseph Myers <joseph@codesourcery.com> |
24291 | ||
24292 | PR c/38483 | |
24293 | * builtins.c (gimplify_va_arg_expr): Evaluate the va_list | |
24294 | expression before any __builtin_trap call. | |
24295 | * c-typeck.c (build_function_call): Convert and check function | |
24296 | arguments before generating a call to a trap. Evaluate the | |
24297 | function arguments before the trap. | |
24298 | ||
6b67572e UB |
24299 | 2009-02-19 Uros Bizjak <ubizjak@gmail.com> |
24300 | ||
24301 | PR target/39228 | |
24302 | * config/i386/i386.md (isinfxf2): Split from isinf<mode>2. | |
24303 | (UNSPEC_FXAM_MEM): New unspec. | |
24304 | (fxam<mode>2_i387_with_temp): New insn and split pattern. | |
24305 | (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through | |
24306 | memory using fxam<mode>2_i387_with_temp to remove excess precision. | |
24307 | ||
9e39dba6 RG |
24308 | 2009-02-19 Richard Guenther <rguenther@suse.de> |
24309 | ||
24310 | PR tree-optimization/39207 | |
24311 | PR tree-optimization/39074 | |
24312 | * tree-ssa-structalias.c (storedanything_id, var_storedanything, | |
24313 | storedanything_tree): New. | |
24314 | (do_ds_constraint): Simplify ANYTHING shortcutting. Update | |
6b67572e | 24315 | the STOREDANYTHING solution if the lhs solution contains ANYTHING. |
9e39dba6 RG |
24316 | (build_succ_graph): Add edges from STOREDANYTHING to all |
24317 | non-direct nodes. | |
24318 | (init_base_vars): Initialize STOREDANYTHING. | |
24319 | (compute_points_to_sets): Free substitution info after | |
24320 | building the succ graph. | |
24321 | (ipa_pta_execute): Likewise. | |
24322 | ||
24323 | * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers | |
24324 | field. | |
24325 | (do_ds_constraint): Do not add to special var or non-pointer | |
24326 | field solutions. | |
24327 | (type_could_have_pointers): Split out from ... | |
24328 | (could_have_pointers): ... here. For arrays use the element type. | |
24329 | (create_variable_info_for): Initialize may_have_pointers. | |
24330 | (new_var_info): Likewise. | |
24331 | (handle_lhs_call): Make the HEAP variable unknown-sized. | |
24332 | (intra_create_variable_infos): Use a type with pointers for | |
24333 | PARM_NOALIAS, make it unknown-sized. | |
24334 | ||
fd7b2603 L |
24335 | 2009-02-18 H.J. Lu <hongjiu.lu@intel.com> |
24336 | ||
24337 | PR target/39224 | |
6b67572e | 24338 | * config/i386/i386.c (ix86_return_in_memory): Properly check ABI. |
fd7b2603 | 24339 | |
98b80692 JM |
24340 | 2009-02-18 Jason Merrill <jason@redhat.com> |
24341 | ||
24342 | PR target/39179 | |
24343 | * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero | |
24344 | value if DECL_EXTERNAL. | |
24345 | * tree-sra.c (sra_walk_gimple_assign): Likewise. | |
24346 | * target.h (gcc_target::binds_local_p): Clarify "module". | |
24347 | * tree.h (TREE_PUBLIC): Clarify "module". | |
24348 | ||
0705d3f4 L |
24349 | 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com> |
24350 | ||
24351 | PR target/38891 | |
24352 | * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of | |
24353 | initialization for MS_ABI prior to the hunk of !TARGET_MMX. | |
24354 | ||
bce08d50 L |
24355 | 2009-02-17 H.J. Lu <hongjiu.lu@intel.com> |
24356 | ||
24357 | PR target/39082 | |
24358 | * c.opt (Wabi): Support C and ObjC. | |
24359 | (Wpsabi): New. | |
24360 | ||
24361 | * c-opts.c (c_common_handle_option): Handle OPT_Wabi. | |
24362 | ||
24363 | * config/i386/i386.c (classify_argument): Warn once about the ABI | |
24364 | change when passing union with long double. | |
24365 | ||
24366 | * doc/invoke.texi: Update -Wabi for warning psABI changes. | |
24367 | ||
5600f233 JM |
24368 | 2009-02-18 Joseph Myers <joseph@codesourcery.com> |
24369 | ||
24370 | PR c/35447 | |
24371 | * c-parser.c (c_parser_compound_statement): Always enter and leave | |
24372 | a scope. | |
24373 | ||
8cd01fe6 JDA |
24374 | 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
24375 | ||
24376 | PR target/34587 | |
24377 | * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define. | |
24378 | ||
418df9d7 JJ |
24379 | 2009-02-18 Jakub Jelinek <jakub@redhat.com> |
24380 | ||
24381 | PR tree-optimization/36922 | |
24382 | * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR. | |
24383 | * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1): | |
24384 | Likewise. | |
24385 | ||
082d2ebb RS |
24386 | 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com> |
24387 | ||
24388 | * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm | |
24389 | to 0 for EABI64. | |
24390 | ||
17de576c RS |
24391 | 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com> |
24392 | ||
24393 | * config/mips/mips.md (type): Reclassify lui_movf as "unknown". | |
24394 | ||
6d8d5435 RS |
24395 | 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com> |
24396 | ||
24397 | * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid | |
24398 | tree sharing. | |
24399 | ||
e69ff910 RB |
24400 | 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com> |
24401 | Richard Sandiford <rdsandiford@googlemail.com> | |
24402 | ||
24403 | * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete. | |
24404 | * config/mips/loongson.md (reduc_uplus_<mode>): Rename to... | |
24405 | (loongson_biadd): ...this. | |
24406 | ||
6b24ee26 RG |
24407 | 2009-02-17 Richard Guenther <rguenther@suse.de> |
24408 | ||
24409 | PR tree-optimization/39202 | |
24410 | * tree-ssa-structalias.c (do_structure_copy): Before collapsing | |
24411 | a var make sure to follow existing collapses. | |
24412 | ||
91ab2c86 RG |
24413 | 2009-02-17 Richard Guenther <rguenther@suse.de> |
24414 | ||
24415 | PR middle-end/39214 | |
24416 | * langhooks.c (lhd_print_error_function): Check for NULL block. | |
24417 | ||
73a63870 RG |
24418 | 2009-02-17 Richard Guenther <rguenther@suse.de> |
24419 | ||
24420 | PR tree-optimization/39204 | |
24421 | * tree-ssa-pre.c (phi_translate_1): Lookup the value-number | |
24422 | of the PHI arg. | |
24423 | ||
0e08f686 UB |
24424 | 2009-02-17 Uros Bizjak <ubizjak@gmail.com> |
24425 | ||
24426 | * config/soft-fp/double.h: Update from glibc CVS. | |
24427 | ||
a60b7ddb RG |
24428 | 2009-02-17 Richard Guenther <rguenther@suse.de> |
24429 | ||
24430 | PR tree-optimization/39207 | |
24431 | * tree-ssa-structalias.c (find_what_p_points_to): Do not emit | |
24432 | strict-aliasing warnings for pointers pointing to NULL. | |
24433 | ||
a47e20fd JM |
24434 | 2009-02-16 Joseph Myers <joseph@codesourcery.com> |
24435 | ||
24436 | PR c/35446 | |
24437 | * c-parser.c (c_parser_braced_init): Call pop_init_level when | |
24438 | skipping until next close brace. | |
24439 | ||
50aab7dc L |
24440 | 2009-02-16 H.J. Lu <hongjiu.lu@intel.com> |
24441 | ||
24442 | PR target/37049 | |
24443 | * config/i386/i386.c (ix86_expand_push): Set memory alignment | |
24444 | to function argument boundary. | |
24445 | ||
68e53db0 HS |
24446 | 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com> |
24447 | ||
24448 | * config/picochip/picochip.md (lea_add): Allow any nonimmediate | |
24449 | in the lea_add. Reload eventually constraints it properly. | |
0d50d55a | 24450 | * config/picochip/constraints.md: Remove the target constraint |
68e53db0 HS |
24451 | "b", since it is not needed anymore. |
24452 | ||
09e361bb JJ |
24453 | 2009-02-16 Jakub Jelinek <jakub@redhat.com> |
24454 | ||
24455 | * gthr-dce.h: Uglify function parameter and local variable names. | |
24456 | * gthr-gnat.h: Likewise. | |
24457 | * gthr-mipssde.h: Likewise. | |
24458 | * gthr-nks.h: Likewise. | |
24459 | * gthr-posix95.h: Likewise. | |
24460 | * gthr-posix.h: Likewise. | |
24461 | * gthr-rtems.h: Likewise. | |
24462 | * gthr-single.h: Likewise. | |
24463 | * gthr-solaris.h: Likewise. | |
24464 | * gthr-tpf.h: Likewise. | |
24465 | * gthr-vxworks.h: Likewise. | |
24466 | * gthr-win32.h: Likewise. | |
24467 | ||
47f5a48f L |
24468 | 2009-02-15 H.J. Lu <hongjiu.lu@intel.com> |
24469 | ||
24470 | PR target/39196 | |
24471 | * config/i386/i386.md: Restrict the new peephole2 to move | |
24472 | between MMX/SSE registers. | |
24473 | ||
68c9ab45 RG |
24474 | 2009-02-15 Richard Guenther <rguenther@suse.de> |
24475 | ||
24476 | Revert | |
24477 | 2009-02-13 Richard Guenther <rguenther@suse.de> | |
24478 | ||
24479 | * configure.ac: Enable LFS. | |
24480 | * configure: Re-generate. | |
24481 | * config.in: Likewise. | |
24482 | ||
d7815554 UW |
24483 | 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
24484 | ||
24485 | * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw, | |
24486 | spu_srqwbyte, spu_srqwbytebc): Define. | |
24487 | * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw, | |
24488 | spu_srqwbyte, spu_srqwbytebc): New overloaded builtins. | |
24489 | * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>", | |
24490 | "shrqby_<mode>"): New insn-and-split patterns. | |
24491 | * config/spu/spu.c (expand_builtin_args): Determine and return | |
24492 | number of operands using spu_builtin_description data. | |
24493 | (spu_expand_builtin_1): Use it. | |
24494 | ||
c208436c SE |
24495 | 2009-02-13 Steve Ellcey <sje@cup.hp.com> |
24496 | ||
24497 | PR target/38056 | |
24498 | * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check | |
24499 | TARGET_CONST_GP. | |
24500 | ||
c2e7ba7e L |
24501 | 2009-02-13 H.J. Lu <hongjiu.lu@intel.com> |
24502 | ||
24503 | PR target/39149 | |
24504 | * config/i386/i386.c (override_options): Correct warning | |
6c6094f1 | 24505 | messages for -malign-loops, -malign-jumps and -malign-functions. |
c2e7ba7e | 24506 | |
72f4e3a7 L |
24507 | 2009-02-13 H.J. Lu <hongjiu.lu@intel.com> |
24508 | ||
24509 | PR target/39152 | |
24510 | * config/i386/i386.md: Restrict the new peephole2 to move | |
24511 | between the general purpose registers. | |
24512 | ||
53f648e2 L |
24513 | 2009-02-13 H.J. Lu <hongjiu.lu@intel.com> |
24514 | ||
24515 | PR target/39162 | |
24516 | * config/i386/i386.c (type_natural_mode): Add a new argument. | |
6b67572e | 24517 | Return the original mode and warn ABI change if vector size is 32byte. |
53f648e2 L |
24518 | (function_arg_advance): Updated. |
24519 | (function_arg): Likewise. | |
24520 | (ix86_function_value): Likewise. | |
24521 | (ix86_return_in_memory): Likewise. | |
24522 | (ix86_sol10_return_in_memory): Likewise. | |
24523 | (ix86_gimplify_va_arg): Likewise. | |
24524 | (function_arg_32): Don't warn ABX ABI change here. | |
24525 | (function_arg_64): Likewise. | |
24526 | ||
38432148 | 24527 | 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com> |
b1c92d54 BS |
24528 | |
24529 | * loop-iv.c (implies_p): In the final case, test that operands 0 | |
24530 | of the two comparisons match. | |
24531 | ||
dd2139e7 BS |
24532 | * config/bfin/bfin.c (find_prev_insn_start): New function. |
24533 | (bfin_optimize_loop): Use it in some cases instead of PREV_INSN. | |
24534 | (find_next_insn_start): Move. | |
24535 | ||
601b3e1a RG |
24536 | 2009-02-13 Richard Guenther <rguenther@suse.de> |
24537 | ||
24538 | * configure.ac: Enable LFS. | |
24539 | * configure: Re-generate. | |
24540 | * config.in: Likewise. | |
24541 | ||
f007042e JM |
24542 | 2009-02-13 Joseph Myers <joseph@codesourcery.com> |
24543 | ||
24544 | PR c/35444 | |
24545 | * c-parser.c (c_parser_parms_list_declarator): Discard pending | |
24546 | sizes on syntax error after some arguments have been parsed. | |
24547 | ||
3f238e8b JJ |
24548 | 2009-02-12 Jakub Jelinek <jakub@redhat.com> |
24549 | ||
24550 | * doc/invoke.texi (-fira): Remove. | |
24551 | ||
328e13b7 L |
24552 | 2009-02-12 H.J. Lu <hongjiu.lu@intel.com> |
24553 | ||
24554 | * caller-save.c: Replace regclass.c with reginfo.c in comments. | |
24555 | * recog.c: Likewise. | |
24556 | * rtl.h: Likewise. | |
24557 | ||
c252db20 L |
24558 | 2009-02-12 Uros Bizjak <ubizjak@gmail.com> |
24559 | ||
24560 | * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2. | |
24561 | (umul_ppmm): Likewise. | |
24562 | (count_leading_zeros): Likewise. | |
24563 | (count_trailing_zeros): Likewise. | |
24564 | (UMUL_TIME): Likewise. | |
24565 | ||
24566 | 2009-02-12 H.J. Lu <hongjiu.lu@intel.com> | |
24567 | ||
ba181049 UB |
24568 | * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and |
24569 | soft-fp/t-softfp to tmake_file. | |
c252db20 L |
24570 | |
24571 | * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New. | |
ba181049 UB |
24572 | (ia64_expand_compare): Use HPUX library for TFmode only for HPUX. |
24573 | (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ, | |
24574 | IA64_BUILTIN_INFQ]: New. | |
c252db20 L |
24575 | (ia64_init_builtins): Initialize __builtin_infq, |
24576 | __builtin_fabsq and __builtin_copysignq if not HPUX. | |
24577 | (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ, | |
24578 | IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ. | |
24579 | ||
24580 | * config/ia64/lib1funcs.asm (__divtf3): Define only if | |
24581 | SHARED is defined. | |
24582 | (__fixtfti): Likewise. | |
24583 | (__fixunstfti): Likewise. | |
24584 | (__floattitf): Likewise. | |
24585 | ||
24586 | * config/ia64/libgcc-glibc.ver: New. | |
24587 | * config/ia64/t-fprules-softfp: Likewise. | |
24588 | * config/ia64/sfp-machine.h: Likewise. | |
24589 | ||
24590 | * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New. | |
24591 | (LIBGCC2_TF_CEXT): Likewise. | |
24592 | (TF_SIZE): Likewise. | |
24593 | (TARGET_INIT_LIBFUNCS): Likewise. | |
24594 | ||
ba181049 | 24595 | * config/ia64/t-glibc (SHLINB_MAPFILES): |
6b67572e | 24596 | Add $(srcdir)/config/ia64/libgcc-glibc.ver. |
c252db20 | 24597 | |
f13eae6a L |
24598 | 2009-02-12 H.J. Lu <hongjiu.lu@intel.com> |
24599 | ||
24600 | * config/i386/i386.c (construct_container): Rewrite processing | |
24601 | BLKmode with X86_64_SSE_CLASS. | |
24602 | ||
12019aec L |
24603 | 2009-02-12 Paolo Bonzini <bonzini@gnu.org> |
24604 | ||
24605 | PR target/39152 | |
24606 | * config/i386/i386.md: Replace simplify_replace_rtx with | |
24607 | replace_rtx in the new peephole2. | |
24608 | ||
28c11eb3 NS |
24609 | 2009-02-12 Nathan Sidwell <nathan@codesourcery.com> |
24610 | ||
24611 | * doc/invoke.texi (Optimize Options): Stop claiming inlining and | |
24612 | loop unrolling do not happen at -O2. | |
24613 | ||
c7b94907 MM |
24614 | 2009-02-12 Michael Matz <matz@suse.de> |
24615 | ||
24616 | * gcc.c (ASM_DEBUG_SPEC): Check for -g0. | |
24617 | ||
61e98967 JJ |
24618 | 2009-02-12 Jakub Jelinek <jakub@redhat.com> |
24619 | ||
24620 | * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die | |
24621 | for -g3. | |
24622 | ||
a2a237b5 BE |
24623 | 2009-02-12 Ben Elliston <bje@au.ibm.com> |
24624 | ||
24625 | * config/rs6000/rs6000.md (allocate_stack): Use _stack form of | |
24626 | patterns when updating the back chain. Missed in the 2009-02-10 | |
24627 | change. | |
24628 | ||
853eda8d JJ |
24629 | 2009-02-11 Janis Johnson <janis187@us.ibm.com> |
24630 | ||
24631 | * doc/extend.texi (Decimal Floating Types): Update identifier of | |
24632 | draft TR and list of missing support. | |
24633 | ||
3ad6b266 JJ |
24634 | 2009-02-11 Jakub Jelinek <jakub@redhat.com> |
24635 | ||
24636 | PR middle-end/39154 | |
24637 | * gimplify.c (omp_notice_variable): If adding GOVD_SEEN | |
24638 | bit to variable length decl's flags, add it also to its | |
24639 | pointer replacement variable. | |
24640 | ||
b058b753 UB |
24641 | 2009-02-11 Uros Bizjak <ubizjak@gmail.com> |
24642 | Jakub Jelinek <jakub@redhat.com> | |
24643 | ||
24644 | PR target/39118 | |
24645 | * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant. | |
24646 | (memory_blockage): New expander. | |
24647 | (*memory_blockage): New insn pattern. | |
24648 | * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage | |
24649 | instead of general blockage at the end of function prologue when | |
24650 | frame pointer is used to access red zone area. Do not emit blockage | |
24651 | when profiling, it is emitted in generic code. | |
24652 | (ix86_expand_epilogue): Emit memory_blockage at the beginning of | |
24653 | function epilogue when frame pointer is used to access red zone area. | |
24654 | ||
bab64f23 PB |
24655 | 2009-02-11 Paolo Bonzini <bonzini@gnu.org> |
24656 | ||
0ce6dcfa | 24657 | PR target/38824 |
bab64f23 PB |
24658 | * config/i386/i386.md: Add two new peephole2 to avoid mov followed |
24659 | by arithmetic with memory operands. | |
24660 | * config/i386/predicates.md (commutative_operator): New. | |
24661 | ||
8fd94bda JJ |
24662 | 2009-02-10 Janis Johnson <janis187@us.ibm.com> |
24663 | ||
24664 | * doc/extend.texi (Fixed-Point Types): Break long paragraphs into | |
24665 | bulleted lists. | |
24666 | ||
794511d2 EB |
24667 | 2009-02-10 Eric Botcazou <ebotcazou@adacore.com> |
24668 | ||
24669 | * alias.h (record_alias_subset): Declare. | |
24670 | * alias.c (record_alias_subset): Make global. | |
24671 | ||
6da7fc87 NC |
24672 | 2009-02-10 Nick Clifton <nickc@redhat.com> |
24673 | ||
24674 | * tree-parloops.c: Change license to GPLv3. | |
24675 | * ipa-struct-reorg.c: Change license to GPLv3. | |
24676 | * ipa-struct-reorg.h: Change license to GPLv3. | |
24677 | ||
a03813c8 SE |
24678 | 2009-02-10 Steve Ellcey <sje@cup.hp.com> |
24679 | ||
24680 | PR c/39084 | |
24681 | * c-decl.c (start_struct): Return NULL on error. | |
24682 | ||
fc3103e7 JJ |
24683 | 2009-02-10 Jakub Jelinek <jakub@redhat.com> |
24684 | ||
9b43d37b JJ |
24685 | PR middle-end/39124 |
24686 | * cfgloopmanip.c (remove_path): Call remove_bbs after | |
24687 | cancel_loop_tree, not before it. | |
24688 | ||
fc3103e7 | 24689 | PR target/39139 |
b058b753 | 24690 | * function.h (struct function): Add has_local_explicit_reg_vars bit. |
fc3103e7 JJ |
24691 | * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER |
24692 | VAR_DECLs were seen. | |
24693 | * tree-ssa-live.c (remove_unused_locals): Recompute | |
24694 | cfun->has_local_explicit_reg_vars. | |
24695 | * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode | |
24696 | copies or clearings if cfun->has_local_explicit_reg_vars. | |
24697 | ||
dbf9ee15 UB |
24698 | 2009-02-10 Uros Bizjak <ubizjak@gmail.com> |
24699 | ||
24700 | PR target/39118 | |
24701 | * config/i386/i386.c (expand_prologue): Emit blockage at the end | |
24702 | of function prologue when frame pointer is used to access | |
24703 | red zone area. | |
24704 | ||
bdec4dc7 RG |
24705 | 2009-02-10 Richard Guenther <rguenther@suse.de> |
24706 | ||
24707 | PR middle-end/39127 | |
24708 | * gimplify.c (gimple_regimplify_operands): Always look if | |
24709 | we need to create a temporary. | |
24710 | ||
7cae94fc RG |
24711 | 2009-02-10 Richard Guenther <rguenther@suse.de> |
24712 | ||
24713 | PR tree-optimization/39132 | |
24714 | * tree-loop-distribution.c (todo): New global var. | |
24715 | (generate_memset_zero): Trigger TODO_rebuild_alias. | |
24716 | (tree_loop_distribution): Return todo. | |
24717 | ||
a8800687 L |
24718 | 2009-02-10 H.J. Lu <hongjiu.lu@intel.com> |
24719 | ||
24720 | PR target/39119 | |
24721 | * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS. | |
24722 | (x86_64_reg_class_name): Removed. | |
24723 | (classify_argument): Return 0 if bytes > 32. Return 0 if the | |
24724 | first one isn't X86_64_SSE_CLASS or any other ones aren't | |
24725 | X86_64_SSEUP_CLASS when size > 16bytes. Don't turn | |
24726 | X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one | |
24727 | is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS | |
24728 | and 3 X86_64_SSEUP_CLASS. | |
24729 | (construct_container): Remove X86_64_AVX_CLASS. Handle 4 | |
24730 | registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS. | |
24731 | ||
d4bacef0 BE |
24732 | 2009-02-10 Ben Elliston <bje@au.ibm.com> |
24733 | ||
24734 | * config/rs6000/rs6000.md (allocate_stack): Always use an update | |
24735 | form instruction to update the stack back chain word, even if the | |
24736 | user has disabled the generation of update instructions. | |
24737 | (movdi_<mode>_update_stack): New. | |
24738 | (movsi_update_stack): Likewise. | |
24739 | * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise, | |
24740 | always use an update form instruction to update the stack back | |
24741 | chain word. | |
24742 | ||
01d7d2f3 SP |
24743 | 2009-02-09 Sebastian Pop <sebastian.pop@amd.com> |
24744 | ||
24745 | PR middle-end/38953 | |
b058b753 UB |
24746 | * graphite.c (if_region_set_false_region): After moving a region in |
24747 | the false branch of a condition, remove the empty dummy basic block. | |
01d7d2f3 SP |
24748 | (gloog): Remove wrong fix for PR38953. |
24749 | ||
e41e2ab4 UW |
24750 | 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
24751 | ||
24752 | * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code | |
24753 | generation due to implicit sign extension. | |
24754 | ||
4bb07c5d EB |
24755 | 2009-02-09 Eric Botcazou <ebotcazou@adacore.com> |
24756 | ||
24757 | PR middle-end/38981 | |
24758 | * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs | |
24759 | at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST. | |
24760 | ||
f060a261 RG |
24761 | 2009-02-09 Richard Guenther <rguenther@suse.de> |
24762 | ||
24763 | PR middle-end/35202 | |
24764 | * convert.c (convert_to_real): Disable (float)fn((double)x) | |
24765 | to fnf(x) conversion if errno differences may occur and | |
24766 | -fmath-errno is set. | |
24767 | ||
5a7e237c AS |
24768 | 2009-02-07 Anatoly Sokolov <aesok@post.ru> |
24769 | ||
24770 | * config/avr/avr.c (avr_mcu_t): Add ata6289 device. | |
24771 | * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.). | |
24772 | * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.). | |
24773 | ||
feab5a67 JM |
24774 | 2009-02-06 Joseph Myers <joseph@codesourcery.com> |
24775 | ||
24776 | PR c/35434 | |
24777 | * c-common.c (handle_alias_attribute): Disallow attribute for | |
24778 | anything not a FUNCTION_DECL or VAR_DECL. | |
24779 | ||
90ef2296 JJ |
24780 | 2009-02-06 Janis Johnson <janis187@us.ibm.com> |
24781 | ||
24782 | PR c/39035 | |
24783 | * real.c (do_compare): Special-case compare of zero against | |
24784 | decimal float value. | |
24785 | ||
1de2c900 JM |
24786 | 2009-02-06 Joseph Myers <joseph@codesourcery.com> |
24787 | ||
24788 | PR c/36432 | |
24789 | * c-decl.c (grokdeclarator): Don't treat [] declarators in fields | |
24790 | as indicating flexible array members unless the field itself is | |
24791 | being declarared as the incomplete array. | |
24792 | ||
e901811a JH |
24793 | 2009-02-06 Jan Hubicka <jh@suse.cz> |
24794 | ||
24795 | PR tree-optimization/38844 | |
24796 | * ipa-inline.c (try_inline): Stop inlining recursion when edge | |
24797 | is already inlined. | |
24798 | ||
3cfa762b RG |
24799 | 2009-02-06 Richard Guenther <rguenther@suse.de> |
24800 | ||
24801 | PR middle-end/38977 | |
24802 | * tree-cfg.c (need_fake_edge_p): Force a fake edge for | |
24803 | fork because we may expand it as __gcov_fork. | |
24804 | ||
8506528c NC |
24805 | 2009-02-06 Nick Clifton <nickc@redhat.com> |
24806 | ||
dbf9ee15 | 24807 | * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero. |
8506528c | 24808 | |
85169114 PB |
24809 | 2009-02-06 Paolo Bonzini <bonzini@gnu.org> |
24810 | ||
24811 | PR tree-optimization/35659 | |
24812 | * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq | |
24813 | vn_phi_eq): Shortcut if hashcode does not match. | |
24814 | (vn_reference_op_compute_hash): Do not call iterative_hash_expr for | |
24815 | NULL operands. | |
24816 | * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available, | |
24817 | and avoid iterative_hash_expr. | |
24818 | (FOR_EACH_VALUE_ID_IN_SET): New. | |
24819 | (value_id_compare): Remove. | |
24820 | (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to | |
24821 | sort expressions by value id. | |
24822 | ||
6d39673d KK |
24823 | 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org> |
24824 | ||
24825 | PR target/38991 | |
24826 | * config/sh/predicates.md (general_movsrc_operand): Don't check | |
24827 | the subreg of system registers here. | |
24828 | ||
e6e1c050 JJ |
24829 | 2009-02-05 Jakub Jelinek <jakub@redhat.com> |
24830 | ||
24831 | PR c++/39106 | |
24832 | * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P | |
24833 | on the copied decl. | |
24834 | ||
65a74b5d PB |
24835 | 2009-02-05 Paolo Bonzini <bonzini@gnu.org> |
24836 | ||
24837 | PR rtl-optimization/39110 | |
24838 | * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned | |
24839 | addresses, not aligned ones. | |
24840 | ||
08e14b2a DB |
24841 | 2009-02-05 Daniel Berlin <dberlin@dberlin.org> |
24842 | Richard Guenther <rguenther@suse.de> | |
24843 | ||
24844 | PR tree-optimization/39100 | |
24845 | * tree-ssa-structalias.c (do_ds_constraint): Actually do what the | |
24846 | comment says and add edges. | |
24847 | ||
5006381c JM |
24848 | 2009-02-05 Joseph Myers <joseph@codesourcery.com> |
24849 | ||
24850 | PR c/35435 | |
24851 | * c-common.c (handle_tls_model_attribute): Ignore attribute for | |
24852 | non-VAR_DECLs without checking DECL_THREAD_LOCAL_P. | |
24853 | ||
2ba9daa7 | 24854 | 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de> |
b0789219 TG |
24855 | |
24856 | * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use, | |
24857 | sese_build_livein_liveouts_bb, sese_build_livein_liveouts, | |
24858 | register_bb_in_sese, new_sese, free_sese): Moved. | |
24859 | (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains, | |
24860 | outermost_loop_in_scop, build_scop_iteration_domain, | |
24861 | expand_scalar_variables_ssa_name, get_vdef_before_scop, | |
24862 | limit_scops): Use bb_in_sese_p instead of bb_in_scop_p. | |
24863 | Use loop_in_sese_p instead of loop_in_scop_p. | |
24864 | (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B. | |
24865 | (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B. | |
24866 | (scopdet_basic_block_info): Fix bug in scop detection. | |
24867 | (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
24868 | eq_loop_to_cloog_loop): Remove. | |
24869 | (nb_loops_around_loop_in_scop, nb_loop | |
24870 | ref_nb_loops): Moved here... | |
24871 | * graphite.h (ref_nb_loops): ... from here. | |
24872 | (struct scop): Remove bbs_b bitmap and loop2cloog_loop. | |
24873 | (loop_domain_dim, loop_iteration_vector_dim): Remove. | |
24874 | (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed. | |
24875 | * testsuite/gcc.dg/graphite/scop-19.c: New | |
24876 | ||
48e8382e PB |
24877 | 2009-02-04 Paolo Bonzini <bonzini@gnu.org> |
24878 | Hans-Peter Nilsson <hp@axis.com> | |
24879 | ||
24880 | PR rtl-optimization/37889 | |
24881 | * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments. | |
24882 | Move offset handling from PLUS to before the switch. Use new | |
24883 | arguments when considering SYMBOL_REFs too. | |
24884 | (rtx_addr_can_trap_p): Pass dummy offset and size. | |
24885 | (enum may_trap_p_flags): Remove. | |
24886 | (may_trap_p_1): Pass size from MEM_SIZE. | |
24887 | ||
24888 | PR rtl-optimization/38921 | |
24889 | * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p. | |
24890 | * rtl.h (may_trap_after_code_motion_p): Delete prototype. | |
24891 | * rtlanal.c (may_trap_after_code_motion_p): Delete. | |
24892 | (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags. | |
24893 | ||
69349ea5 L |
24894 | 2009-02-04 H.J. Lu <hongjiu.lu@intel.com> |
24895 | ||
24896 | AVX Programming Reference (January, 2009) | |
24897 | * config/i386/sse.md (*vpclmulqdq): New. | |
24898 | ||
b545e411 JJ |
24899 | 2009-02-04 Jakub Jelinek <jakub@redhat.com> |
24900 | ||
24901 | PR tree-optimization/38977 | |
24902 | PR gcov-profile/38292 | |
bf9b2cc9 | 24903 | * calls.c (special_function_p): Disregard __builtin_ prefix. |
b545e411 | 24904 | |
5b43bf05 HS |
24905 | 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com> |
24906 | ||
24907 | * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow | |
24908 | non-indexable addresses even before reload. | |
24909 | ||
062c4bb3 JM |
24910 | 2009-02-03 Joseph Myers <joseph@codesourcery.com> |
24911 | ||
24912 | PR c/29129 | |
24913 | * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators | |
24914 | as having variable size. Do not give an error for unnamed | |
24915 | parameters with [*] declarators. Give a warning for type names | |
24916 | with [*] declarators and mark them as variable size. | |
24917 | * c-parser.c (c_parser_sizeof_expression): Do not give an error | |
24918 | for sizeof applied to [*] type names. | |
24919 | ||
6175f578 AP |
24920 | 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com> |
24921 | ||
24922 | PR C++/36607 | |
24923 | * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE. | |
24924 | ||
d4f4bc84 JJ |
24925 | 2009-02-03 Jakub Jelinek <jakub@redhat.com> |
24926 | ||
24927 | * gcc.c (process_command): Update copyright notice dates. | |
24928 | * gcov.c (print_version): Likewise. | |
24929 | * gcov-dump.c (print_version): Likewise. | |
24930 | * mips-tfile.c (main): Likewise. | |
24931 | * mips-tdump.c (main): Likewise. | |
24932 | ||
f6294de7 JM |
24933 | 2009-02-03 Joseph Myers <joseph@codesourcery.com> |
24934 | ||
24935 | PR c/35433 | |
24936 | * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT | |
24937 | for composite type involving a zero-length array type. | |
24938 | ||
754ccf7c JJ |
24939 | 2009-02-03 Jakub Jelinek <jakub@redhat.com> |
24940 | ||
70f16287 JJ |
24941 | PR target/35318 |
24942 | * function.c (match_asm_constraints_1): Skip over | |
24943 | initial optional % in the constraint. | |
24944 | ||
754ccf7c JJ |
24945 | PR inline-asm/39059 |
24946 | * c-parser.c (c_parser_postfix_expression): If fixed point is not | |
24947 | supported, don't accept FIXED_CSTs. | |
24948 | * c-decl.c (finish_declspecs): Error if fixed point is not supported | |
24949 | and _Sat is used without _Fract/_Accum. Set specs->type to | |
24950 | integer_type_node for cts_fract/cts_accum if fixed point is not | |
24951 | supported. | |
24952 | ||
965fdadf CM |
24953 | 2009-02-02 Catherine Moore <clm@codesourcery.com> |
24954 | ||
dbf9ee15 | 24955 | * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls. |
965fdadf | 24956 | |
2e8a796f RS |
24957 | 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com> |
24958 | ||
24959 | * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro. | |
24960 | (ABI_HAS_64BIT_SYMBOLS): Use it. | |
24961 | (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS. | |
24962 | ||
e0079468 PB |
24963 | 2009-02-02 Paul Brook <paul@codesourcery.com> |
24964 | ||
24965 | * config/arm/arm.md (arm_addsi3): Add r/r/k alternative. | |
24966 | ||
eca72963 JJ |
24967 | 2009-02-02 Jakub Jelinek <jakub@redhat.com> |
24968 | ||
24969 | PR inline-asm/39058 | |
24970 | * recog.h (asm_operand_ok): Add constraints argument. | |
24971 | * recog.c (asm_operand_ok): Likewise. If it is set, for digits | |
24972 | recurse on matching constraint. | |
24973 | (check_asm_operands): Pass constraints as 3rd argument to | |
24974 | asm_operand_ok. Don't look up matching constraint here. | |
24975 | * stmt.c (expand_asm_operands): Pass NULL as 3rd argument | |
24976 | to asm_operand_ok. | |
24977 | ||
b5bde9ff BE |
24978 | 2009-02-02 Ben Elliston <bje@au.ibm.com> |
24979 | ||
24980 | * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and | |
24981 | TARGET_NARROW_VOLATILE_BITFIELD macro names. | |
24982 | ||
30f3e427 JDA |
24983 | 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
24984 | ||
be7659ba JDA |
24985 | * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker |
24986 | information. Remove some obsolete information. Reorganize. | |
24987 | ||
30f3e427 JDA |
24988 | * config/pa/fptr.c: Revert license to GPL 2. |
24989 | * config/pa/milli64.S: Likewise. | |
24990 | ||
3cbfaf98 DK |
24991 | 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com> |
24992 | ||
24993 | PR target/38904 | |
24994 | * mkmap-flat.awk (END): Use pe_dll command-line arg to pass | |
24995 | LIBRARY name in, instead of hard-coding it. | |
24996 | * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an | |
24997 | extra target make frag to tmake_files according to EH model. | |
24998 | (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise. | |
24999 | * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target | |
25000 | frags that define makefile variable EH_MODEL appropriately. | |
25001 | * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment. | |
25002 | * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or | |
25003 | to "-sjlj" according to type of EH configured. | |
25004 | (LIBGCC_SONAME): Concatenate it to shared library base name. | |
25005 | * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or | |
25006 | to "_sjlj" according to type of EH configured. | |
25007 | (LIBGCC_SONAME): Concatenate it to shared library base name. | |
25008 | * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL. | |
25009 | (SHLIB_LINK): Add missing semicolon to if-else construct. | |
25010 | (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as | |
25011 | string value of "pe_dll" command-line option. | |
25012 | * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper. | |
25013 | (SHLIB_SONAME): Use it when overriding t-cygming default. | |
25014 | (SHLIB_IMPLIB): Override t-cygming default. | |
25015 | (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as | |
25016 | string value of "pe_dll" command-line option. | |
25017 | ||
8d0b6068 DK |
25018 | 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com> |
25019 | ||
25020 | PR target/38952 | |
25021 | * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New. | |
bf9b2cc9 | 25022 | (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it. |
8d0b6068 | 25023 | |
14c28276 RG |
25024 | 2009-01-31 Richard Guenther <rguenther@suse.de> |
25025 | ||
25026 | PR tree-optimization/38937 | |
25027 | * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut | |
25028 | computing the transitive closure. | |
25029 | ||
5f4d82c2 RG |
25030 | 2009-01-30 Richard Guenther <rguenther@suse.de> |
25031 | ||
25032 | PR tree-optimization/39041 | |
25033 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): | |
25034 | Propagate variable indices only if the types match for this stmt. | |
25035 | ||
d0728ae0 JJ |
25036 | 2009-01-30 Jakub Jelinek <jakub@redhat.com> |
25037 | ||
25038 | PR target/39013 | |
25039 | * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared | |
25040 | inline but never defined. | |
25041 | ||
6b67572e | 25042 | 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com> |
9fec758d WG |
25043 | |
25044 | * config/s390/s390.md (*insv<mode>_reg_extimm): Removed. | |
25045 | (*insv_h_di_reg_extimm): New insn. | |
25046 | (*insv_l<mode>_reg_extimm): New insn. | |
25047 | ||
25048 | 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com> | |
9e8be1e4 HS |
25049 | |
25050 | * config/picochip/picochip.c (flag_conserve_stack): set | |
25051 | PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under | |
25052 | fconserve-stack. Reduce call-overhead used by inliner. | |
25053 | ||
9fec758d | 25054 | 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com> |
df9198ab HS |
25055 | |
25056 | PR/38157 | |
25057 | * common.opt (flag_conserve_stack): Initialised to zero. | |
25058 | ||
7f1c539c KT |
25059 | 2009-01-30 Kai Tietz <kai.tietz@onevision.com> |
25060 | ||
25061 | PR/39002 | |
25062 | * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs. | |
25063 | (ix86_expand_epilogue): Take nsseregs in account to use proper restore | |
25064 | method. | |
25065 | ||
3631be48 L |
25066 | 2009-01-29 H.J. Lu <hongjiu.lu@intel.com> |
25067 | ||
25068 | * ira-color.c (allocno_reload_assign): Update comments. | |
25069 | * regmove.c (regmove_optimize): Likewise. | |
25070 | ||
25071 | * ra.h: Removed. | |
25072 | ||
416ac4d4 RM |
25073 | 2009-01-29 Robert Millan <rmh@aybabtu.com> |
25074 | ||
60839f5d EB |
25075 | * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu). |
25076 | * config/i386/kopensolaris-gnu.h: New file. Undefine | |
416ac4d4 | 25077 | `MD_UNWIND_SUPPORT'. |
60839f5d | 25078 | * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h). |
416ac4d4 | 25079 | |
d5e54bc1 KH |
25080 | 2009-01-29 Kazu Hirata <kazu@codesourcery.com> |
25081 | ||
25082 | PR tree-optimization/39007 | |
25083 | * tree-loop-distribution.c (generate_builtin): Use | |
25084 | recompute_dominator to compute the immediate dominator of the | |
25085 | basic block just after the loop. | |
25086 | ||
38432148 | 25087 | 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> |
e9e077fa RO |
25088 | |
25089 | * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA] | |
25090 | (ASM_OUTPUT_DWARF_PCREL): Define. | |
25091 | ||
38432148 | 25092 | 2009-01-29 Vladimir Makarov <vmakarov@redhat.com> |
2af2dbdc VM |
25093 | |
25094 | * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description. | |
25095 | * doc/passes.texi: Remove entries about regclass, local-alloc, and | |
25096 | global. Modify entries about regmove and IRA. | |
25097 | ||
25098 | * ra-conflict.c: Remove the file. | |
25099 | ||
25100 | * reload.c (push_reload, find_dummy_reload): Remove flag_ira. | |
25101 | ||
25102 | * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove. | |
25103 | (pass_regclass_init): Rename to pass_reginfo_init. | |
25104 | ||
25105 | * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira. | |
25106 | ||
25107 | * toplev.h (flag_ira): Remove. | |
25108 | ||
25109 | * caller-save.c (setup_save_areas): Remove flag_ira. | |
25110 | ||
bf9b2cc9 | 25111 | * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto. |
2af2dbdc VM |
25112 | |
25113 | * global.c: Remove the file. | |
25114 | ||
ba20e309 | 25115 | * opts.c (decode_options): Remove flag_ira. |
2af2dbdc VM |
25116 | |
25117 | * hard-reg-set.h (losing_caller_save_reg_set): Remove. | |
25118 | ||
25119 | * regmove.c: Modify file description. | |
25120 | (find_use_as_address, try_auto_increment): Define them only if | |
25121 | AUTO_INC_DEC is defined. | |
25122 | (replacement_quality, replace_in_call_usage, fixup_match_1, | |
25123 | stable_and_no_regs_but_for_p): Remove. | |
25124 | (reg_set_in_bb): Make it static. | |
25125 | (regmove_optimize): Remove flag_ira and code which worked for | |
25126 | !flag_ira. | |
25127 | ||
25128 | * local-alloc.c: Remove the file. | |
25129 | ||
25130 | * common.opt (fira): Remove. | |
25131 | ||
25132 | * ira.c: Include except.h. | |
25133 | (eliminable_regset): Move from global.c. | |
25134 | (mark_elimination): Ditto. Remove flag_ira. | |
25135 | (reg_renumber, struct equivalence, reg_equiv, equiv_mem, | |
25136 | equiv_mem_modified, validate_equiv_mem_from_store, | |
25137 | validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p, | |
25138 | contains_replace_regs, memref_referenced_p, memref_used_between_p, | |
25139 | no_equiv, recorded_label_ref): Move from local-alloc.c. | |
25140 | (update_equiv_regs): Ditto. Make it static. | |
25141 | (print_insn_chain, print_insn_chains): Move it from global.c. | |
bf9b2cc9 | 25142 | (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira. |
2af2dbdc VM |
25143 | (build_insn_chain): Ditto. Make it static. |
25144 | (ra_init_live_subregs): Move from ra-conflict.c. Make it static. | |
25145 | Rename to init_live_subregs. | |
25146 | (gate_ira): Remove flag_ira. | |
25147 | ||
25148 | * regclass.c: Rename reginfo.c. Change file description. | |
25149 | (FORBIDDEN_INC_DEC_CLASSES): Remove. | |
dbf9ee15 | 25150 | (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove. |
2af2dbdc VM |
25151 | (init_reg_sets_1): Remove code for evaluation of |
25152 | reg_class_superclasses and losing_caller_save_reg_set. | |
25153 | (init_regs): Remove init_reg_autoinc. | |
25154 | (struct costs, costs, init_cost, ok_for_index_p_nonstrict, | |
25155 | ok_for_base_p_nonstrict): Remove. | |
bf9b2cc9 | 25156 | (regclass_init): Rename to reginfo_init. Don't initialize init_cost. |
2af2dbdc VM |
25157 | (pass_regclass_init): Rename to pass_reginfo_init. Modify |
25158 | corresponding entries. | |
25159 | (dump_regclass, record_operand_costs, scan_one_insn, | |
25160 | init_reg_autoinc, regclass, record_reg_classes, copy_cost, | |
25161 | record_address_regs, auto_inc_dec_reg_p): Remove. | |
25162 | (gt-regclass.h): Rename to gt-reginfo.h. | |
25163 | ||
25164 | * rtl.h (dump_global_regs, retry_global_alloc, | |
bf9b2cc9 | 25165 | build_insn_chain, dump_local_alloc, update_equiv_regs): Remove. |
2af2dbdc VM |
25166 | |
25167 | * Makefile.in (RA_H): Remove. | |
25168 | (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o. | |
25169 | Rename regclass.o to reginfo.o. | |
25170 | (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to | |
25171 | gt-reginfo.h. | |
25172 | (global.o, local-alloc.o, ra-conflict.o): Remove entries. | |
25173 | (GTFILES): Rename regclass.c to reginfo.c. | |
25174 | ||
25175 | * passes.c (init_optimization_passes): Remove pass_local_alloc and | |
bf9b2cc9 | 25176 | pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init. |
2af2dbdc VM |
25177 | |
25178 | * reload1.c (compute_use_by_pseudos, reload, count_pseudo, | |
25179 | count_spilled_pseudo, find_reg, alter_reg, delete_output_reload): | |
25180 | Remove flag_ira. | |
6b67572e | 25181 | (finish_spills): Ditto. Remove code for !flag_ira. |
2ba9daa7 | 25182 | |
c95b2534 | 25183 | 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com> |
00b251a0 KZ |
25184 | |
25185 | PR middle-end/35854 | |
25186 | * doc/invoke.texi (rtl debug options): Complete rewrite. | |
25187 | * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec" | |
25188 | to auto_inc_dec". | |
25189 | * mode-switching.c (pass_mode_switching): Rename pass from | |
25190 | "mode-sw" to "mode_sw". | |
25191 | * except.c (pass_convert_to_eh_ranges): Rename pass from | |
25192 | "eh-ranges" to "eh_ranges". | |
25193 | * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg" | |
25194 | to "subreg1". | |
2ba9daa7 AS |
25195 | |
25196 | ||
72a54528 AM |
25197 | 2009-01-29 Andrey Belevantsev <abel@ispras.ru> |
25198 | Alexander Monakov <amonakov@ispras.ru> | |
25199 | ||
25200 | PR middle-end/38857 | |
25201 | * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard | |
25202 | register. | |
25203 | (move_exprs_to_boundary): Change return type and pass through | |
25204 | should_move from move_op. Relax assert. Update usage ... | |
25205 | (schedule_expr_on_boundary): ... here. Use should_move instead of | |
25206 | cant_move. | |
25207 | (move_op_orig_expr_found): Indicate that insn was disconnected from | |
25208 | stream. | |
25209 | (code_motion_process_successors): Do not call after_merge_succs | |
25210 | callback if original expression was not found when traversing any of | |
25211 | the branches. | |
25212 | (code_motion_path_driver): Change return type. Update prototype. | |
25213 | (move_op): Update comment. Add a new parameter (should_move). Update | |
25214 | prototype. Set *should_move based on indication provided by | |
25215 | move_op_orig_expr_found. | |
25216 | ||
001b9eb6 PH |
25217 | 2009-01-28 Pat Haugen <pthaugen@us.ibm.com> |
25218 | ||
25219 | * doc/invoke.texi (avoid-indexed-addresses): Document new option. | |
25220 | * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare. | |
25221 | * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option. | |
25222 | * config/rs6000/rs6000.c (rs6000_override_options): Default | |
25223 | avoid-indexed-addresses on for Power6, off for everything else. | |
25224 | (avoiding_indexed_address_p): New function. | |
25225 | (rs6000_legitimize_address): Use it. | |
25226 | (rs6000_legitimate_address): Likewise. | |
25227 | * config/rs6000/rs6000.md (movXX_updateX): Likewise | |
25228 | ||
59dc4898 KH |
25229 | 2009-01-28 Kazu Hirata <kazu@codesourcery.com> |
25230 | ||
25231 | PR tree-optimization/38997 | |
25232 | * tree-loop-distribution.c (generate_memset_zero): Use | |
25233 | POINTER_PLUS_EXPR for a pointer addition. | |
25234 | ||
07da44ab AK |
25235 | 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com> |
25236 | ||
25237 | * config/s390/s390.md (bswap<mode>2): New pattern added. | |
25238 | ||
cdc15d23 WG |
25239 | 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com> |
25240 | ||
25241 | * config/s390/s390.md (*tls_load_31): Added type attribute. | |
25242 | ||
d46f24b6 WG |
25243 | 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com> |
25244 | ||
25245 | * config/s390/s390.md: Fix a few comments. | |
25246 | ||
729e750f WG |
25247 | 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com> |
25248 | ||
25249 | * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute. | |
25250 | (*tm<mode>_full): Fixed z10prop attribute. | |
25251 | (*tst<mode>_extimm): Fixed z10prop attribute. | |
25252 | (*tst<mode>_cconly_extimm): Fixed z10prop attribute. | |
25253 | (*tstqiCCT_cconly): Fixed z10prop attribute. | |
25254 | (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute. | |
25255 | (*movsi_larl): Fixed z10prop attribute. | |
25256 | (*movsi_zarch): Fixed z10prop attribute. | |
25257 | (*movsi_eas): Fixed z10prop attribute. | |
25258 | (*movhi): Fixed z10prop attribute. | |
25259 | (*movqi): Fixed z10prop attribute. | |
25260 | (*movstrictqi): Fixed z10prop attribute. | |
25261 | (*mov<mode>): Fixed z10prop attribute. | |
25262 | (*movcc): Fixed z10prop attribute. | |
25263 | (*sethighpartdi_64): Fixed z10prop attribute. | |
25264 | (*zero_extendhi<mode>2_z10): Fixed z10prop attribute. | |
25265 | (*negdi2_sign_cc): Fixed z10prop attribute. | |
25266 | (*negdi2_sign): Fixed z10prop attribute. | |
25267 | (*absdi2_sign_cc): Fixed z10prop attribute. | |
25268 | (*absdi2_sign): Fixed z10prop attribute. | |
25269 | (*negabsdi2_sign_cc): Fixed z10prop attribute. | |
25270 | (*negabsdi2_sign): Fixed z10prop attribute. | |
25271 | (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute. | |
25272 | (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute. | |
25273 | (doloop_si64): Fixed z10prop attribute. | |
25274 | (doloop_si31): Fixed z10prop attribute. | |
25275 | (doloop_long): Fixed z10prop attribute. | |
25276 | (indirect_jump): Fixed z10prop attribute. | |
25277 | (nop): Fixed z10prop attribute. | |
25278 | (main_base_64): Fixed z10prop attribute. | |
25279 | (reload_base_64): Fixed z10prop attribute. | |
25280 | ||
c7789bfb JJ |
25281 | 2009-01-28 Jakub Jelinek <jakub@redhat.com> |
25282 | ||
25283 | PR rtl-optimization/38740 | |
6b67572e UB |
25284 | * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling |
25285 | if !optimize. | |
c7789bfb JJ |
25286 | * config/mips/mips.c (mips_reorg): Likewise. |
25287 | ||
de081cfd RG |
25288 | 2009-01-28 Richard Guenther <rguenther@suse.de> |
25289 | ||
25290 | PR tree-optimization/38926 | |
25291 | * tree-ssa-pre.c (add_to_value): Assert we add only expressions | |
25292 | with the correct value id to a value. | |
25293 | (do_regular_insertion): Use the value number of edoubleprime | |
25294 | for the value number of the expr. | |
25295 | ||
25296 | Revert | |
25297 | 2008-08-21 Richard Guenther <rguenther@suse.de> | |
bf9b2cc9 | 25298 | |
d748c406 UB |
25299 | * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting |
25300 | a PHI ask VN if it is already available. | |
25301 | * tree-ssa-sccvn.h (vn_phi_lookup): Declare. | |
25302 | * tree-ssa-sccvn.c (vn_phi_lookup): Export. | |
de081cfd | 25303 | |
a9d386a1 JJ |
25304 | 2009-01-28 Jakub Jelinek <jakub@redhat.com> |
25305 | ||
25306 | PR middle-end/38934 | |
25307 | * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR | |
25308 | set to varying whenever max has TREE_OVERFLOW set, similarly | |
25309 | for GE_EXPR and GT_EXPR and TREE_OVERFLOW min. | |
25310 | ||
97a170cd RG |
25311 | 2009-01-28 Richard Guenther <rguenther@suse.de> |
25312 | ||
25313 | PR middle-end/38908 | |
25314 | * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly | |
25315 | uninitialized aggregate uses in call arguments. | |
25316 | ||
89ebafc6 PB |
25317 | 2009-01-28 Paolo Bonzini <bonzini@gnu.org> |
25318 | ||
25319 | PR tree-optimization/38984 | |
25320 | * tree-ssa-structalias.c (get_constraints_for_1): Do not use | |
25321 | the nothing_id variable if -fno-delete-null-pointer-checks. | |
25322 | ||
bef3c57b UB |
25323 | 2009-01-28 Uros Bizjak <ubizjak@gmail.com> |
25324 | ||
25325 | PR target/38988 | |
25326 | * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref. | |
25327 | (set_got_offset_rex64): Ditto. | |
25328 | ||
0c6390fa L |
25329 | 2009-01-27 H.J. Lu <hongjiu.lu@intel.com> |
25330 | ||
25331 | PR target/38941 | |
25332 | * doc/extend.texi: Improve local variable with asm reg. | |
25333 | ||
bee6fa6d AN |
25334 | 2009-01-27 Adam Nemet <anemet@caviumnetworks.com> |
25335 | ||
25336 | * c.opt (Wpacked-bitfield-compat): Change init value to -1. | |
25337 | * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat | |
25338 | was not supplied then set warn_packed_bitfield_compat to the | |
25339 | default value of 1. | |
25340 | * stor-layout.c (place_field): Check warn_packed_bitfield_compat | |
25341 | against 1. | |
25342 | ||
b5c3dfbb RG |
25343 | 2009-01-27 Richard Guenther <rguenther@suse.de> |
25344 | ||
25345 | PR tree-optimization/38503 | |
25346 | * cfgexpand.c (expand_gimple_basic_block): Ignore | |
25347 | GIMPLE_CHANGE_DYNAMIC_TYPE during expansion. | |
25348 | * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune | |
25349 | variables that cannot have TBAA applied. | |
25350 | (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE | |
25351 | statements. | |
25352 | ||
d748c406 | 25353 | 2009-01-27 Uros Bizjak <ubizjak@gmail.com> |
576de5cb UB |
25354 | |
25355 | PR middle-end/38969 | |
25356 | * calls.c (initialize_argument_information): Do not wrap complex | |
25357 | arguments in SAVE_EXPR. | |
25358 | ||
9112bb38 AT |
25359 | 2009-01-26 Andreas Tobler <a.tobler@schweiz.org> |
25360 | ||
25361 | * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo. | |
5efb79fc | 25362 | (INSTALL_LIBGCC): Revert typo commit. |
9112bb38 | 25363 | |
4757704f RG |
25364 | 2009-01-26 Richard Guenther <rguenther@suse.de> |
25365 | ||
25366 | PR tree-optimization/38745 | |
25367 | * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL | |
25368 | from special handling. | |
25369 | ||
e3e6cff4 RG |
25370 | 2009-01-26 Richard Guenther <rguenther@suse.de> |
25371 | ||
25372 | PR tree-optimization/38745 | |
25373 | * tree-ssa.c (execute_update_addresses_taken): Do not include | |
25374 | variables that cannot possibly be a register in not_reg_needs. | |
25375 | Do not clear TREE_ADDRESSABLE on vars that may not become | |
25376 | registers. | |
25377 | * tree-ssa.c (update_alias_info_1): Include those in the set | |
25378 | of addressable vars. | |
25379 | ||
dc874b53 RG |
25380 | 2009-01-26 Richard Guenther <rguenther@suse.de> |
25381 | ||
25382 | PR middle-end/38851 | |
25383 | * Makefile.in (tree-ssa-dse.o): Add langhooks.h. | |
25384 | * tree-ssa-dse.c: Include langhooks.h | |
25385 | (execute_simple_dse): Remove stores with zero size. | |
25386 | ||
849421a3 JJ |
25387 | 2009-01-24 Jakub Jelinek <jakub@redhat.com> |
25388 | ||
25389 | PR c/38957 | |
25390 | * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way | |
25391 | as PLUS_EXPR. | |
25392 | ||
82f70421 JB |
25393 | 2009-01-24 Julian Brown <julian@codesourcery.com> |
25394 | ||
25395 | * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add | |
25396 | config/arm/linux-atomic.c. | |
25397 | * config/arm/linux-atomic.c: New. | |
25398 | ||
863412d6 EB |
25399 | 2009-01-24 Eric Botcazou <ebotcazou@adacore.com> |
25400 | ||
25401 | * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete. | |
25402 | * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise. | |
25403 | * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise. | |
25404 | ||
8c684300 L |
25405 | 2009-01-24 H.J. Lu <hongjiu.lu@intel.com> |
25406 | ||
25407 | PR c/38938 | |
93f1527a | 25408 | * c-opts.c (c_common_handle_option): Update warn_pointer_sign |
8c684300 L |
25409 | properly. |
25410 | ||
b840fb02 SP |
25411 | 2009-01-24 Sebastian Pop <sebastian.pop@amd.com> |
25412 | ||
25413 | PR tree-optimization/38953 | |
25414 | * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa. | |
25415 | (scop_adjust_phis_for_liveouts): Initialize false_i to zero. | |
25416 | (gloog): Split the exit of the scop when the scop exit is a loop exit. | |
25417 | (graphite_transform_loops): Only call cleanup_tree_cfg if gloog | |
25418 | changed the CFG. | |
25419 | ||
ecee559f PB |
25420 | 2009-01-24 Paul Brook <paul@codesourcery.com> |
25421 | ||
25422 | * config/arm/neon.md (neon_type): Move to arm.md. | |
25423 | (neon_mov<VSTRUCT>): Add neon_type attribute. | |
25424 | * config/arm/arm.md (neon_type): Move to here. | |
25425 | (conds): Add "unconditioal" and use as default for NEON insns. | |
25426 | ||
61ad0914 BE |
25427 | 2009-01-24 Ben Elliston <bje@au.ibm.com> |
25428 | ||
25429 | * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from | |
25430 | void *' warning from -Wc++-compat. | |
25431 | * Makefile.in (dominance.o-warn): Remove. | |
25432 | ||
38432148 | 25433 | 2009-01-23 Paolo Bonzini <bonzini@gnu.org> |
9bacafeb PB |
25434 | |
25435 | PR tree-optimization/38932 | |
25436 | * fold-const.c (fold_unary_ignore_overflow): New. | |
25437 | * tree.h (fold_unary_ignore_overflow): Declare. | |
25438 | * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow. | |
25439 | * tree-ssa-sccvn.c (visit_reference_op_load, | |
25440 | simplify_unary_expression): Likewise. | |
25441 | ||
2cd36c22 AN |
25442 | 2009-01-22 Adam Nemet <anemet@caviumnetworks.com> |
25443 | ||
25444 | * c-decl.c (finish_struct): Move code to set DECL_PACKED after | |
25445 | DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields | |
25446 | regardless of their type. | |
25447 | * c-common.c (handle_packed_attribute): Don't ignore packed on | |
25448 | bitfields. | |
25449 | * c.opt (Wpacked-bitfield-compat): New warning option. | |
25450 | * stor-layout.c (place_field): Warn if offset of a field changed. | |
25451 | * doc/extend.texi (packed): Mention the ABI change. | |
25452 | * doc/invoke.texi (-Wpacked-bitfield-compat): Document. | |
25453 | (Warning Options): Add it to the list. | |
25454 | ||
e4e624ab L |
25455 | 2009-01-22 H.J. Lu <hongjiu.lu@intel.com> |
25456 | ||
25457 | * c-opts.c (c_common_post_options): Fix a typo in comments. | |
25458 | ||
d0ea0759 SE |
25459 | 2009-01-22 Steve Ellcey <sje@cup.hp.com> |
25460 | ||
25461 | PR middle-end/38615 | |
25462 | * gimplify.c (gimplify_init_constructor): Fix promotion of const | |
25463 | variables to static. | |
25464 | * doc/invoke.texi (-fmerge-all-constants): Update description. | |
25465 | ||
87673f84 UB |
25466 | 2009-01-22 Uros Bizjak <ubizjak@gmail.com> |
25467 | ||
25468 | PR target/38931 | |
25469 | * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2. | |
25470 | (*movdi_1_rex64): Use type "mmx" for alternative 5. | |
25471 | ||
96339268 RE |
25472 | 2009-01-22 Richard Earnshaw <rearnsha@arm.com> |
25473 | ||
25474 | * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to | |
25475 | a word boundary. | |
25476 | (LOCAL_ALIGNMENT): Similarly. | |
25477 | ||
442dc742 | 25478 | 2009-01-22 Mark Shinwell <shinwell@codesourcery.com> |
87673f84 | 25479 | Joseph Myers <joseph@codesourcery.com> |
442dc742 MS |
25480 | |
25481 | * config/arm/arm.c (all_architectures): Add iWMMXt2 entry. | |
25482 | * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2. | |
25483 | * config/arm/arm-tune.md: Regenerate. | |
25484 | * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and | |
25485 | -march=iwmmxt2. | |
25486 | ||
9b34732e MS |
25487 | 2009-01-22 Mark Shinwell <shinwell@codesourcery.com> |
25488 | ||
25489 | * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI | |
25490 | version number to five. | |
25491 | ||
03c2a308 DS |
25492 | 2009-01-22 Dodji Seketeli <dodji@redhat.com> |
25493 | ||
25494 | PR c++/38930 | |
ba20e309 | 25495 | * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes. |
03c2a308 DS |
25496 | * c-common.c (set_underlying_type): Likewise. |
25497 | (is_typedef_decl ): Likewise | |
25498 | * tree.h: Likewise | |
25499 | (set_underlying_type): Likewise. | |
25500 | (is_typedef_type): Likewise. | |
25501 | ||
1240d76e VM |
25502 | 2009-01-21 Vladimir Makarov <vmakarov@redhat.com> |
25503 | ||
25504 | PR middle-end/38587 | |
25505 | * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos | |
25506 | crossing setjmps. | |
25507 | ||
b8a1087d DK |
25508 | 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com> |
25509 | ||
25510 | PR bootstrap/37660 | |
25511 | * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro. | |
25512 | (LIBGCC_SPEC): Don't define. | |
25513 | (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC. | |
25514 | ||
435da628 UB |
25515 | 2009-01-21 Uros Bizjak <ubizjak@gmail.com> |
25516 | ||
25517 | PR rtl-optimization/38879 | |
25518 | * alias.c (base_alias_check): Unaligned access via AND address can | |
25519 | alias all surrounding object types except those with sizes equal | |
25520 | or wider than the size of unaligned access. | |
25521 | ||
d597b3ce DS |
25522 | 2009-01-21 Dodji Seketeli <dodji@redhat.com> |
25523 | ||
25524 | PR c++/26693 | |
ba20e309 | 25525 | * c-decl.c (clone_underlying_type): Move this ... |
d597b3ce | 25526 | * c-common.c (set_underlying_type): ... here. |
435da628 | 25527 | Also, make sure the function properly sets TYPE_STUB_DECL() on |
d597b3ce DS |
25528 | the newly created typedef variant type. |
25529 | (is_typedef_decl ): New entry point. | |
25530 | * tree.h: Added a new member member_types_needing_access_check to | |
25531 | struct tree_decl_non_common. | |
25532 | (set_underlying_type): New entry point. | |
25533 | (is_typedef_type): Likewise. | |
25534 | ||
71a6fe66 BM |
25535 | 2009-01-21 Bingfeng Mei <bmei@broadcom.com> |
25536 | ||
25537 | * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p): | |
25538 | Check whether two instructions have memory references that | |
25539 | belong to conflicting alias sets. walk_mems_1 and walk_mems_2 | |
25540 | are helper functions for traversing. | |
25541 | * alias.h (insn_alias_sets_confilict_p): New prototypes. | |
25542 | * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p | |
25543 | not to draw dependency edge for instructions with non-conflicting | |
25544 | alias sets. | |
25545 | ||
5a248274 JM |
25546 | 2009-01-20 Joseph Myers <joseph@codesourcery.com> |
25547 | ||
25548 | PR other/38758 | |
6b67572e UB |
25549 | * longlong.h: Update copyright years. Use soft-fp license notice. |
25550 | Sync __clz_tab declaration with glibc. | |
5a248274 | 25551 | |
4b84f3de SE |
25552 | 2009-01-20 Steve Ellcey <sje@cup.hp.com> |
25553 | ||
25554 | PR target/30687 | |
25555 | * doc/extend.texi (syscall_linkage): New. | |
25556 | (version_id): Modify. | |
25557 | ||
37348bf1 | 25558 | 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com> |
435da628 | 25559 | Richard Guenther <rguenther@suse.de> |
37348bf1 AP |
25560 | |
25561 | PR tree-optimization/38747 | |
25562 | PR tree-optimization/38748 | |
25563 | * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE | |
25564 | conversion if the base address is an indirect reference and the | |
25565 | aliasing sets could cause issues. | |
25566 | ||
d0a58904 SP |
25567 | 2009-01-20 Sebastian Pop <sebastian.pop@amd.com> |
25568 | ||
2ba9daa7 | 25569 | * common.opt (fgraphite, fgraphite-identity): Add comment for |
d0a58904 SP |
25570 | explaining why these options are not documented. |
25571 | ||
71e7afb2 SP |
25572 | 2009-01-20 Sebastian Pop <sebastian.pop@amd.com> |
25573 | ||
25574 | * graphite.c (stmt_simple_for_scop_p): Also handle cases when | |
25575 | gimple_call_lhs is NULL. | |
25576 | ||
38432148 | 25577 | 2009-01-20 Paolo Bonzini <bonzini@gnu.org> |
09efeca1 PB |
25578 | |
25579 | PR target/38868 | |
25580 | * emit-rtl.c (adjust_address_1): Make sure memref is never | |
25581 | overwritten. | |
25582 | ||
cbb8dee3 BE |
25583 | 2009-01-20 Ben Elliston <bje@au.ibm.com> |
25584 | ||
25585 | * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove | |
435da628 | 25586 | const qualifier from arg parameter. Remove unnecessary cast to char *. |
cbb8dee3 BE |
25587 | * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove |
25588 | const qualifier from arg 2. | |
25589 | ||
72c66596 IS |
25590 | 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk> |
25591 | ||
435da628 | 25592 | * config/darwin.h: Add static-libgfortran to LINK_SPEC. |
72c66596 | 25593 | |
f68211cd VM |
25594 | 2009-01-19 Vladimir Makarov <vmakarov@redhat.com> |
25595 | ||
25596 | PR c/38869 | |
25597 | * rtl.h (reinit_regs): New prototype. | |
25598 | * regclass.c: Include ira.h. | |
25599 | (reinit_regs): New. | |
25600 | * Makefile.in (regclass.o): Add ira.h. | |
25601 | * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs. | |
25602 | ||
6e4f1168 L |
25603 | 2009-01-18 H.J. Lu <hongjiu.lu@intel.com> |
25604 | ||
25605 | PR target/38736 | |
25606 | * c-common.c (handle_aligned_attribute): Use | |
25607 | ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for | |
25608 | default alignment value. | |
25609 | ||
25610 | * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__. | |
25611 | ||
25612 | * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New. | |
25613 | * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise. | |
25614 | ||
25615 | * doc/extend.texi: Update __attribute__ ((aligned)). Document | |
25616 | __BIGGEST_ALIGNMENT__. | |
25617 | ||
25618 | * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE. | |
25619 | ||
890065bf RG |
25620 | 2009-01-18 Richard Guenther <rguenther@suse.de> |
25621 | ||
25622 | PR tree-optimization/38819 | |
25623 | * tree-flow.h (operation_could_trap_helper_p): Declare. | |
25624 | * tree-eh.c (operation_could_trap_helper_p): Export. | |
25625 | * tree-ssa-sccvn.h (vn_nary_may_trap): Declare. | |
25626 | * tree-ssa-sccvn.c (vn_nary_may_trap): New function. | |
25627 | * tree-ssa-pre.c (insert_into_preds_of_block): Check if we | |
25628 | are about to insert a possibly trapping instruction and fail | |
25629 | in this case. | |
25630 | ||
a729d731 AS |
25631 | 2009-01-18 Andreas Schwab <schwab@suse.de> |
25632 | ||
25633 | * doc/install.texi (Configuration): Remove obsolete paragraph | |
25634 | about use of --with-gnu-ld with --with-gnu-as. | |
25635 | ||
a640c13b KH |
25636 | 2009-01-18 Kazu Hirata <kazu@codesourcery.com> |
25637 | ||
25638 | * doc/extend.texi, doc/gimple.texi, doc/invoke.texi, | |
25639 | doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos. | |
25640 | Follow spelling conventions. | |
25641 | ||
dba2cc0c BE |
25642 | 2009-01-18 Ben Elliston <bje@au.ibm.com> |
25643 | ||
25644 | * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate | |
25645 | C++ warning about implicit conversion from void * to struct | |
25646 | bitmap_head_def *. | |
25647 | (bitmap_obstack_free): Likewise for bitmap_element *. | |
bc127c63 | 25648 | * Makefile.in (bitmap.o-warn): Remove. |
dba2cc0c | 25649 | |
2207a498 DK |
25650 | 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com> |
25651 | ||
25652 | * Makefile.in (BACKENDLIBS): Reorder to match dependencies. | |
25653 | ||
8137e465 SP |
25654 | 2009-01-17 Sebastian Pop <sebastian.pop@amd.com> |
25655 | Tobias Grosser <tobi.grosser@amd.com> | |
25656 | ||
25657 | * graphite.c (graphite_trans_scop_block): Do not block single | |
25658 | nested loops. | |
25659 | ||
5be1c58c AO |
25660 | 2009-01-16 Alexandre Oliva <aoliva@redhat.com> |
25661 | ||
25662 | * ebitmap.h (ebitmap_iter_init): Initialize all fields. | |
25663 | * ipa-struct-reorg.c (gen_struct_type): Replace known-true | |
25664 | test with assertion. | |
25665 | ||
786ce82d RG |
25666 | 2009-01-16 Richard Guenther <rguenther@suse.de> |
25667 | ||
25668 | PR tree-optimization/38835 | |
25669 | PR middle-end/36227 | |
25670 | * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT) | |
25671 | and INT + PTR -> (INT)(PTR p+ INT) folding. | |
25672 | * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR. | |
25673 | ||
c1cb09ad AN |
25674 | 2009-01-16 Adam Nemet <anemet@caviumnetworks.com> |
25675 | ||
25676 | PR target/38554 | |
25677 | * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift | |
25678 | the subreg from a lowpart subreg if it is also casting the value. | |
25679 | ||
bcab4e19 SP |
25680 | 2009-01-16 Sebastian Pop <sebastian.pop@amd.com> |
25681 | Tobias Grosser <tobi.grosser@amd.com> | |
25682 | ||
25683 | * graphite.c (compare_prefix_loops): New. | |
25684 | (build_scop_canonical_schedules): Rewritten. | |
25685 | (graphite_transform_loops): Move build_scop_canonical_schedules | |
25686 | after build_scop_iteration_domain. | |
25687 | ||
0b040072 SP |
25688 | 2009-01-16 Sebastian Pop <sebastian.pop@amd.com> |
25689 | Tobias Grosser <tobi.grosser@amd.com> | |
25690 | ||
2ba9daa7 | 25691 | * graphite.c (add_conditions_to_domain): Add the loops to |
0b040072 SP |
25692 | the dimension of the iteration domain. Do copy the domain |
25693 | only when it exists. | |
25694 | (build_scop_conditions_1): Do not call add_conditions_to_domain. | |
25695 | (add_conditions_to_constraints): New. | |
25696 | (can_generate_code_stmt, can_generate_code): Removed. | |
25697 | (gloog): Do not call can_generate_code. | |
25698 | (graphite_transform_loops): Call add_conditions_to_constraints | |
25699 | after building the iteration domain. | |
25700 | ||
56c6a499 JJ |
25701 | 2009-01-16 Jakub Jelinek <jakub@redhat.com> |
25702 | ||
25703 | PR tree-optimization/38789 | |
25704 | * tree-ssa-threadedge.c | |
25705 | (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to | |
25706 | __builtin_constant_p. | |
25707 | ||
c95b2534 | 25708 | 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com> |
cd3f1729 KZ |
25709 | |
25710 | * dce.c (delete_unmarked_insns): Reversed the order that insns are | |
25711 | examined before deleting them. | |
2ba9daa7 | 25712 | |
c433cb14 RE |
25713 | 2009-01-16 Richard Earnshaw <rearnsha@arm.com> |
25714 | ||
25715 | * function.c (aggregate_value_p): Correctly extract the function | |
25716 | type from CALL_EXPR_FN lookup. | |
25717 | ||
c95b2534 | 25718 | 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com> |
27d62fa4 HS |
25719 | |
25720 | * config/picochip/picochip.c (picochip_override_options): Revert | |
25721 | CFI asm flag disable commited previously. | |
25722 | ||
c77bb78f SP |
25723 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> |
25724 | Tobias Grosser <tobi.grosser@amd.com> | |
25725 | Jan Sjodin <jan.sjodin@amd.com> | |
25726 | ||
25727 | * graphite.c (scan_tree_for_params): On substractions negate | |
25728 | all the coefficients of the term. | |
25729 | (clast_to_gcc_expression_red): New. Handle reduction expressions | |
25730 | of more than two operands. | |
25731 | (clast_to_gcc_expression): Call clast_to_gcc_expression_red. | |
25732 | (get_vdef_before_scop): Handle also the case of default definitions. | |
25733 | ||
574af2d6 RS |
25734 | 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com> |
25735 | ||
25736 | * caller-save.c (add_used_regs_1, add_used_regs): New functions. | |
25737 | (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes. | |
25738 | Also use them when walking CALL_INSN_FUNCTION_USAGE. | |
25739 | ||
e939805b L |
25740 | 2009-01-15 H.J. Lu <hongjiu.lu@intel.com> |
25741 | Joey Ye <joey.ye@intel.com> | |
25742 | ||
25743 | PR middle-end/37843 | |
25744 | * cfgexpand.c (expand_stack_alignment): Don't update stack | |
25745 | boundary nor check incoming stack boundary here. | |
25746 | (gimple_expand_cfg): Update stack boundary and check incoming | |
25747 | stack boundary here. | |
25748 | ||
c95b2534 | 25749 | 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com> |
750900db | 25750 | |
435da628 | 25751 | * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments. |
2ba9daa7 | 25752 | |
0196c95e JJ |
25753 | 2009-01-14 Jakub Jelinek <jakub@redhat.com> |
25754 | ||
25755 | PR rtl-optimization/38245 | |
25756 | * calls.c (expand_call): Add stack arguments to | |
25757 | CALL_INSN_FUNCTION_USAGE even for pure calls (when | |
25758 | ACCUMULATE_OUTGOING_ARGS) and even for args partially passed | |
25759 | in regs and partially in memory or BLKmode arguments. | |
25760 | (emit_library_call_value_1): Add stack arguments to | |
25761 | CALL_INSN_FUNCTION_USAGE even for pure calls (when | |
25762 | ACCUMULATE_OUTGOING_ARGS). | |
25763 | * dce.c: Include tm_p.h. | |
25764 | (find_call_stack_args): New function. | |
25765 | (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES | |
25766 | argument. | |
25767 | (mark_insn): Call find_call_stack_args for CALL_Ps. | |
25768 | (prescan_insns_for_dce): Walk insns backwards in bb rather than | |
25769 | forwards. Allocate and free arg_stores bitmap if needed, pass it | |
25770 | down to deletable_insn_p, don't mark stores set in arg_stores | |
25771 | bitmap, clear the bitmap at the beginning of each bb. | |
25772 | * Makefile.in (dce.o): Depend on $(TM_P_H). | |
25773 | ||
6df6bcfa MM |
25774 | 2009-01-14 Michael Meissner <gnu@the-meissners.org> |
25775 | ||
25776 | PR target/22599 | |
435da628 UB |
25777 | * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f' |
25778 | to make sure the insn is a conditional test (bug 22599). Reformat a | |
25779 | few long lines. | |
6df6bcfa | 25780 | |
765ec70c SP |
25781 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> |
25782 | ||
25783 | PR middle-end/38431 | |
25784 | * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New. | |
25785 | (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi. | |
25786 | (gloog): Do not call cleanup_tree_cfg. | |
2ba9daa7 | 25787 | (graphite_transform_loops): Call cleanup_tree_cfg after all |
765ec70c SP |
25788 | scops have been code generated. |
25789 | ||
7de2b688 BS |
25790 | 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net> |
25791 | * doc/gty.texi (Invoking the garbage collector): Added new node | |
25792 | and section documenting ggc_collect. | |
25793 | ||
10bd6c5c RG |
25794 | 2009-01-14 Richard Guenther <rguenther@suse.de> |
25795 | ||
25796 | PR tree-optimization/38826 | |
25797 | PR middle-end/38477 | |
25798 | * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer | |
25799 | initialization notes only if we actually emitted a warning. | |
25800 | (intra_create_variable_infos): Add constraints for a result decl | |
25801 | that is passed by hidden reference. | |
25802 | (build_pred_graph): Mark all related variables non-direct on | |
25803 | address-taking. | |
25804 | ||
9c7c70ee NC |
25805 | 2009-01-14 Nick Clifton <nickc@redhat.com> |
25806 | ||
25807 | * ira-conflicts.c: Include addresses.h for the definition of | |
25808 | base_reg_class. | |
435da628 UB |
25809 | (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS. |
25810 | * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h. | |
9c7c70ee | 25811 | |
cf0c2a60 VM |
25812 | 2009-01-13 Vladimir Makarov <vmakarov@redhat.com> |
25813 | ||
25814 | PR target/38811 | |
25815 | * Makefile.in (ira-lives.o): Add except.h. | |
25816 | ||
25817 | * ira-lives.c: Include except.h. | |
25818 | (process_bb_node_lives): Process can_throw_internal. | |
25819 | ||
d3302fd3 JJ |
25820 | 2009-01-13 Jakub Jelinek <jakub@redhat.com> |
25821 | ||
25822 | PR rtl-optimization/38774 | |
25823 | * combine.c (simplify_set): When undoing cc_use change, don't do | |
25824 | PUT_CODE on the newly created comparison, but instead put back the | |
25825 | old comparison. | |
25826 | ||
7ab23fd0 JM |
25827 | 2009-01-13 Joseph Myers <joseph@codesourcery.com> |
25828 | ||
25829 | * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march | |
25830 | values. Remove duplicate arm8 entry. | |
25831 | ||
f9344488 SP |
25832 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> |
25833 | ||
25834 | PR tree-optimization/38786 | |
25835 | * graphite.c (expand_scalar_variables_ssa_name): New, outlined from | |
25836 | the SSA_NAME case of expand_scalar_variables_expr. | |
25837 | Set the type of an expression to the type of its assign statement. | |
25838 | (expand_scalar_variables_expr): Also gather the scalar computation | |
25839 | used to index the memory access. Do not pass loop_p. | |
25840 | Fix comment. Stop recursion on tcc_constant or tcc_declaration. | |
25841 | (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr | |
bef3c57b UB |
25842 | the gimple_stmt_iterator where it inserts new code. |
25843 | Do not pass loop_p. | |
f9344488 SP |
25844 | (copy_bb_and_scalar_dependences): Do not pass loop_p. |
25845 | (translate_clast): Update call to copy_bb_and_scalar_dependences. | |
25846 | ||
2d8bb84d SP |
25847 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> |
25848 | ||
25849 | * graphite.h (debug_value): Removed. | |
25850 | * graphite.c (debug_value): Removed. | |
25851 | ||
ff128632 RE |
25852 | 2009-01-13 Richard Earnshaw <rearnsha@arm.com> |
25853 | ||
435da628 UB |
25854 | * config/arm/arm.c (output_move_double): Don't synthesize thumb-2 |
25855 | ldrd/strd with two 32-bit instructions. | |
ff128632 | 25856 | |
d5a0a47b RE |
25857 | 2009-01-13 Richard Earnshaw <rearnsha@arm.com> |
25858 | ||
435da628 UB |
25859 | * config/arm/arm.c (struct processors): Pass for speed down into |
25860 | cost helper functions. | |
d5a0a47b RE |
25861 | (const_ok_for_op): Handle COMPARE and inequality nodes. |
25862 | (arm_rtx_costs_1): Rewrite. | |
25863 | (arm_size_rtx_costs): Update prototype. | |
25864 | (arm_rtx_costs): Pass speed down to helper functions. | |
25865 | (arm_slowmul_rtx_costs): Rework cost calculations. | |
25866 | (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise. | |
25867 | (arm_9e_rtx_costs): Likewise. | |
25868 | ||
26d5bf5b UB |
25869 | 2009-01-13 Uros Bizjak <ubizjak@gmail.com> |
25870 | ||
25871 | * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit | |
435da628 | 25872 | relocations of local symbols wider than UNITS_PER_WORD are not valid. |
26d5bf5b UB |
25873 | (alpha_legitimize_address): Do not split local symbols wider than |
25874 | UNITS_PER_WORD into HIGH/LO_SUM parts. | |
25875 | ||
5d14e3d5 DS |
25876 | 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net> |
25877 | ||
25878 | PR bootstrap/38580 | |
25879 | * gcc.c (process_command): Replace call to execvp with calls | |
25880 | to pex_one and exit. | |
25881 | ||
33faafca AS |
25882 | 2009-01-03 Anatoly Sokolov <aesok@post.ru> |
25883 | ||
25884 | PR target/29141 | |
25885 | * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm. | |
25886 | * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add | |
25887 | variant for devices with 3-byte PC. | |
ba20e309 | 25888 | (__tablejump_elpm__): New. |
33faafca | 25889 | |
634b5df5 JJ |
25890 | 2009-01-12 Jakub Jelinek <jakub@redhat.com> |
25891 | ||
25892 | PR c/32041 | |
25893 | * c-parser.c (c_parser_postfix_expression): Allow `->' in | |
25894 | offsetof member-designator, handle it as `[0].'. | |
25895 | ||
2842bb86 JDA |
25896 | 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
25897 | ||
25898 | * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk | |
25899 | function when not using named sections on targets with named sections | |
25900 | if branch distance is less than 262132. | |
25901 | ||
76ee70f6 RE |
25902 | 2009-01-12 Richard Earnshaw <rearnsha@arm.com> |
25903 | ||
25904 | * combine.c (combine_instructions): Recompute | |
25905 | optimize_this_for_speed_p for each BB in the main combine loop. | |
25906 | ||
f56e675d TB |
25907 | 2009-01-12 Tomas Bily <tbily@suse.cz> |
25908 | ||
25909 | PR middlend/38385 | |
26d5bf5b UB |
25910 | * tree-loop-distribution.c (prop_phis): New function. |
25911 | (generate_builtin): Call prop_phis. | |
25912 | * testsuite/gcc.dg/tree-ssa/pr38385.c: New file. | |
f56e675d | 25913 | |
c2152239 JJ |
25914 | 2009-01-12 Jakub Jelinek <jakub@redhat.com> |
25915 | ||
25916 | PR tree-optimization/38807 | |
25917 | * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at | |
25918 | gimple_visited_p unless stmt is GIMPLE_ASSIGN. | |
25919 | ||
0e510b3e AN |
25920 | 2009-01-11 Adam Nemet <anemet@caviumnetworks.com> |
25921 | ||
25922 | * expmed.c (store_bit_field_1): Properly truncate the paradoxical | |
25923 | subreg of op0 to the original op0. | |
25924 | ||
c95b2534 | 25925 | 2009-01-11 Laurent GUERBY <laurent@guerby.net> |
10270471 LG |
25926 | |
25927 | * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc. | |
2ba9daa7 | 25928 | |
53a7ff9a MS |
25929 | 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de> |
25930 | ||
25931 | PR debug/7055 | |
60839f5d | 25932 | * mips-tfile.c (parse_def): Fix parsing of def strings |
53a7ff9a MS |
25933 | starting with digits. |
25934 | ||
b3a796bc JJ |
25935 | 2009-01-10 Jakub Jelinek <jakub@redhat.com> |
25936 | ||
25937 | PR target/38695 | |
25938 | * config/arm/arm.c (arm_is_long_call_p): Don't call | |
25939 | arm_function_in_section_p if decl isn't a FUNCTION_DECL. | |
25940 | ||
b21b850e SB |
25941 | 2009-01-09 Steven Bosscher <steven@gcc.gnu.org> |
25942 | ||
25943 | * regrename.c (regrename_optimize): Fix dumping. | |
25944 | (find_oldest_value_reg): Preserve REG_POINTER. | |
25945 | (copy_hardreg_forward_1): Likewise. | |
25946 | ||
e0e10d3a DN |
25947 | 2009-01-09 Diego Novillo <dnovillo@google.com> |
25948 | ||
bf9b2cc9 | 25949 | * gimple.h (struct gimple_statement_base) <uid>: Document |
e0e10d3a DN |
25950 | the restrictions on its use. |
25951 | (gimple_uid): Tidy. | |
25952 | (gimple_set_uid): Tidy. | |
25953 | ||
c9da2ae8 JJ |
25954 | 2009-01-09 Jakub Jelinek <jakub@redhat.com> |
25955 | ||
25956 | * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add | |
25957 | zero guard even if align_bytes != 0 and count is smaller than | |
25958 | size_needed. | |
25959 | ||
38432148 | 25960 | 2009-01-09 Vladimir Makarov <vmakarov@redhat.com> |
a174c19c VM |
25961 | |
25962 | PR rtl-optimization/38495 | |
26d5bf5b | 25963 | * ira-emit.c (print_move_list, ira_debug_move_list): New functions. |
a174c19c VM |
25964 | (add_range_and_copies_from_move_list): Print all added ranges. |
25965 | Add ranges to memory optimized destination. | |
25966 | ||
260fda3d JJ |
25967 | 2009-01-09 Jakub Jelinek <jakub@redhat.com> |
25968 | ||
6f6278ad JJ |
25969 | PR target/38686 |
25970 | PR target/38708 | |
25971 | * config/i386/i386.c (override_options): Reject | |
25972 | -mstringop-strategy=rep_8byte with -m32. | |
25973 | (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed | |
25974 | to 1. Do count comparison against epilogue_size_needed at compile | |
25975 | time even when count_exp was constant forced into register. For | |
25976 | size_needed don't jump to epilogue, instead just avoid aligning | |
25977 | and invoke the body algorithm. If need_zero_guard, add zero guard | |
25978 | even if count is non-zero, but smaller than size_needed + number of | |
25979 | bytes that could be stored for alignment. | |
25980 | (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed | |
25981 | to 1. If need_zero_guard, add zero guard even if count is non-zero, | |
25982 | but smaller than size_needed + number of bytes that could be stored | |
25983 | for alignment. Compare size_needed with epilogue_size_needed instead | |
25984 | of desired_align - align, don't adjust size_needed, pass | |
25985 | epilogue_size_needed to the epilogue expanders. | |
25986 | ||
260fda3d | 25987 | PR c/35742 |
26d5bf5b | 25988 | * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR. |
260fda3d | 25989 | |
67b846fa JDA |
25990 | 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
25991 | ||
25992 | * pa.c (last_address): Change to unsigned. | |
25993 | (update_total_code_bytes): Change argument to unsigned. Don't | |
25994 | check if insn addresses are set. | |
25995 | (pa_output_function_epilogue): Set last_address to UINT_MAX if insn | |
25996 | addresses are not set. | |
25997 | (pa_asm_output_mi_thunk): Handle wrap when updating last_address. | |
25998 | ||
91c82473 NC |
25999 | 2009-01-09 Nick Clifton <nickc@redhat.com> |
26000 | ||
26001 | * config/sh/symbian.c: Replace uses of DECL_INLINE with | |
26002 | DECL_DECLARED_INLINE_P. | |
26003 | ||
4017e262 JJ |
26004 | 2009-01-09 Jakub Jelinek <jakub@redhat.com> |
26005 | ||
0a49e5c2 JJ |
26006 | PR middle-end/38347 |
26007 | * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of | |
26008 | GET_MODE (op0) in operand_subword_force calls. | |
26009 | ||
4017e262 JJ |
26010 | PR middle-end/38771 |
26011 | * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR, | |
26012 | fold_convert arg0 operands to TREE_TYPE (op0) first. | |
26013 | ||
7cd06356 VM |
26014 | 2009-01-08 Vladimir Makarov <vmakarov@redhat.com> |
26015 | ||
26016 | * params.def (ira-max-conflict-table-size): Decrease default value | |
26017 | to 1000. | |
26018 | ||
96867bbd JJ |
26019 | 2009-01-08 Jakub Jelinek <jakub@redhat.com> |
26020 | ||
26021 | PR tree-optimization/37031 | |
26022 | * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy | |
26023 | on parameter_set. | |
26024 | (build_access_matrix): Reserve correct size for AM_MATRIX vector, | |
26025 | allocate it using gc instead of heap, use VEC_quick_push instead of | |
26026 | VEC_safe_push. | |
26027 | * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc | |
26028 | instead of heap, use VEC_quick_push instead of VEC_safe_push. | |
26029 | * tree-data-ref.h (struct access_matrix): Change matrix to gc | |
26030 | allocated vector from heap allocated. | |
26031 | * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector. | |
26032 | * tree-loop-linear.c (linear_transform_loops): Allocate nest | |
26033 | vector only after perfect_loop_nest_depth call. | |
26034 | ||
68f61c3d SP |
26035 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> |
26036 | Jan Sjodin <jan.sjodin@amd.com> | |
26037 | ||
26038 | PR tree-optimization/38559 | |
26039 | * graphite.c (debug_value, copy_constraint, | |
26040 | swap_constraint_variables, scale_constraint_variable, ): New. | |
26041 | (get_lower_bound, get_upper_bound): Removed. | |
26042 | (graphite_trans_bb_strip_mine): Clean up this code that works | |
26043 | only for constant number of iterations. Fully copy upper and | |
26044 | lower bound constraints, not only the constant part of them. | |
26045 | * graphite.h (debug_value): Declared. | |
26046 | ||
82567e33 IR |
26047 | 2009-01-08 Ira Rosen <irar@il.ibm.com> |
26048 | ||
26049 | PR tree-optimization/37194 | |
26050 | * tree-vect-transform.c (vect_estimate_min_profitable_iters): | |
2ba9daa7 | 26051 | Don't add the cost of cost model guard in prologue to scalar |
82567e33 IR |
26052 | outside cost in case of known number of iterations. |
26053 | ||
7da13f1d NF |
26054 | 2009-01-07 Nathan Froyd <froydnj@codesourcery.com> |
26055 | Alan Modra <amodra@bigpond.net.au> | |
26056 | ||
26057 | * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for | |
26058 | non-word-aligned REG+CONST addressing. | |
26059 | ||
c0f64575 UB |
26060 | 2009-01-07 Uros Bizjak <ubizjak@gmail.com> |
26061 | ||
26062 | PR target/38706 | |
26063 | * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call | |
26064 | free_after_compilation when outputting a thunk. | |
26065 | (alpha_output_mi_thunk_osf): Assert that we are processing a thunk. | |
26066 | Do not call free_after_compilation here. | |
26067 | ||
301b6a4e UB |
26068 | 2009-01-07 Uros Bizjak <ubizjak@gmail.com> |
26069 | ||
26070 | * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE. | |
301b6a4e UB |
26071 | (ix86_valid_target_attribute_inner_p): Ditto. |
26072 | ||
6a114766 JS |
26073 | 2009-01-07 Jan Sjodin <jan.sjodin@amd.com> |
26074 | ||
26075 | PR tree-optimization/38492 | |
26076 | PR tree-optimization/38498 | |
26077 | * tree-check.c (operator_is_linear, scev_is_linear_expression): New. | |
26078 | * tree-chrec.h (scev_is_linear_expression): Declared. | |
26079 | * graphite.c (graphite_cannot_represent_loop_niter): New. | |
26080 | (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter. | |
26081 | (graphite_loop_normal_form): Use gcc_assert. | |
26082 | (scan_tree_for_params): Use CASE_CONVERT. | |
26083 | (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New. | |
26084 | (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes. | |
26085 | Use gcc_assert. Discard scops that contain unhandled cases. | |
26086 | (build_scop_conditions): Return a boolean status for unhandled cases. | |
26087 | (strip_mine_profitable_p): Print the loop number, not its depth. | |
26088 | (is_interchange_valid): Pass the depth of the loop nest, don't | |
26089 | recompute it wrongly. | |
26090 | (graphite_trans_bb_block): Same. | |
26091 | (graphite_trans_bb_block): Print tentative of loop blocking. | |
26092 | (graphite_trans_scop_block): Do not print that the loop has been | |
26093 | blocked. | |
26094 | (graphite_transform_loops): Do not handle scops that contain condition | |
26095 | scalar phi nodes. | |
26096 | ||
65b82caa L |
26097 | 2009-01-07 H.J. Lu <hongjiu.lu@intel.com> |
26098 | ||
26099 | AVX Programming Reference (December, 2008) | |
26100 | * config/i386/avxintrin.h (_mm256_stream_si256): New. | |
26101 | (_mm256_stream_pd): Likewise. | |
26102 | (_mm256_stream_ps): Likewise. | |
26103 | ||
26104 | * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256, | |
26105 | IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256. | |
26106 | (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI. | |
26107 | (bdesc_special_args): Add __builtin_ia32_movntdq256, | |
26108 | __builtin_ia32_movntpd256 and __builtin_ia32_movntps256. | |
26109 | (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI. | |
26110 | (ix86_expand_special_args_builtin): Likewise. | |
26111 | ||
26112 | * config/i386/sse.md (AVXMODEDI): New. | |
26113 | (avx_movnt<mode>): Likewise. | |
26114 | (avx_movnt<mode>): Likewise. | |
26115 | (<sse>_movnt<mode>): Remove AVX support. | |
26116 | (sse2_movntv2di): Likewise. | |
26117 | ||
cef158f9 RG |
26118 | 2009-01-07 Richard Guenther <rguenther@suse.de> |
26119 | ||
26120 | PR middle-end/38751 | |
26121 | * fold-const.c (extract_muldiv): Remove obsolete comment. | |
26122 | (fold_plusminus_mult_expr): Undo MINUS_EXPR | |
26123 | to PLUS_EXPR canonicalization for the canonicalization. | |
26124 | ||
246cb5be GP |
26125 | 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com> |
26126 | ||
26127 | * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit | |
26128 | hosted cross-compilers generating less efficient code. | |
26129 | ||
84b9b872 RS |
26130 | 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com> |
26131 | ||
26132 | * function.h (rtl_data): Add a dbr_scheduled_p field. | |
26133 | * reorg.c (dbr_schedule): Set it. | |
26134 | (gate_handle_delay_slots): Check it. | |
26135 | * config/mips/mips.c (mips_base_delayed_branch): Delete. | |
26136 | (mips_reorg): Check flag_delayed_branch instead of | |
26137 | mips_base_delayed_branch. | |
26138 | (mips_override_options): Don't set mips_base_delayed_branch | |
26139 | or flag_delayed_branch. | |
26140 | ||
ace984c8 RS |
26141 | 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com> |
26142 | ||
26143 | PR rtl-optimization/38426. | |
26144 | * ira.c (ira): Set current_function_is_leaf earlier. | |
26145 | ||
7ad7809b JJ |
26146 | 2009-01-06 Jakub Jelinek <jakub@redhat.com> |
26147 | ||
26148 | PR rtl-optimization/38722 | |
26149 | * combine.c (try_combine): Don't modify PATTERN (i3) and notes | |
26150 | too early, only set a flag and modify after last possible | |
26151 | undo_all point. | |
26152 | ||
c52ec948 JJ |
26153 | 2009-01-06 Janis Johnson <janis187@us.ibm.com> |
26154 | ||
26155 | PR c/34252 | |
26156 | * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN. | |
26157 | * real.c (decimal_single_format): Correct values of emin and emax. | |
26158 | (decimal_double_format): Ditto. | |
26159 | (decimal_quad_format): Ditto. | |
26160 | * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust | |
26161 | computation of DECnn_MIN and DECnn_MAX for corrected values of | |
26162 | emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of | |
26163 | __DECnn_MIN__, and adjust its computation for the corrected value | |
26164 | of emin. | |
26165 | ||
300240e1 JH |
26166 | 2009-01-06 Jan Hubicka <jh@suse.cz> |
26167 | ||
26168 | PR target/38744 | |
435da628 | 26169 | * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE. |
300240e1 | 26170 | |
271c069e GP |
26171 | 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com> |
26172 | ||
26173 | * doc/contrib.texi (Contributors): Slightly adjust the end note. | |
26174 | Add Robert Clark to the list of testers. | |
26175 | ||
64e4c301 | 26176 | 2009-01-06 Jan Hubicka <jh@suse.cz> |
c95b2534 | 26177 | Kai Tietz <kai.tietz@onevision.com> |
64e4c301 | 26178 | |
435da628 UB |
26179 | * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers. |
26180 | * config/i386/i386.c (ix86_expand_call): Add clobbers. | |
64e4c301 | 26181 | |
7650b83e | 26182 | 2009-01-06 Jan Hubicka <jh@suse.cz> |
c95b2534 | 26183 | Kai Tietz <kai.tietz@onevision.com> |
7650b83e | 26184 | |
435da628 UB |
26185 | * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used |
26186 | for w64 ABI. | |
26187 | * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs. | |
7650b83e JH |
26188 | (ix86_nsaved_regs): Count only general purpose regs. |
26189 | (ix86_nsaved_sseregs): New. | |
26190 | (ix86_compute_frame_layout): Update nsseregs; set preferred alignment | |
26191 | to 16 for w64; compute padding and size of sse reg save area. | |
301b6a4e UB |
26192 | (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only |
26193 | general purpose regs. | |
7650b83e JH |
26194 | (ix86_emit_save_sse_regs_using_mov): New. |
26195 | (ix86_expand_prologue): Save SSE regs if needed. | |
26196 | (ix86_emit_restore_regs_using_mov): Use only general purpose regs. | |
26197 | (ix86_emit_restore_sse_regs_using_mov): New. | |
26198 | (ix86_expand_epilogue): Save SSE regs if needed. | |
26199 | ||
9aa5c1b2 | 26200 | 2009-01-06 Jan Hubicka <jh@suse.cz> |
c95b2534 | 26201 | Kai Tietz <kai.tietz@onevision.com> |
9aa5c1b2 | 26202 | |
435da628 UB |
26203 | * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI |
26204 | * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI | |
26205 | functions when accumulate outgoing args is off. | |
9aa5c1b2 | 26206 | |
f7556aae L |
26207 | 2009-01-06 H.J. Lu <hongjiu.lu@intel.com> |
26208 | ||
26209 | PR bootstrap/38742 | |
26210 | * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING | |
26211 | before using pseudos_have_intersected_live_ranges_p. | |
26212 | ||
26213 | * ira-int.h (ira_assert): Always define. | |
26214 | ||
e47b7d04 L |
26215 | 2009-01-06 H.J. Lu <hongjiu.lu@intel.com> |
26216 | ||
26217 | AVX Programming Reference (December, 2008) | |
26218 | * config/i386/avxintrin.h (_mm_permute2_pd): Removed. | |
26219 | (_mm256_permute2_pd): Likewise. | |
26220 | (_mm_permute2_ps): Likewise. | |
26221 | (_mm256_permute2_ps): Likewise. | |
26222 | * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise. | |
26223 | * config/i386/sse.md (avx_vpermil2<mode>3): Likewise. | |
26224 | ||
26225 | * config/i386/i386.c (ix86_builtins): Remove | |
26226 | IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS, | |
26227 | IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256. | |
26228 | (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT, | |
26229 | V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT | |
26230 | and V2DF_FTYPE_V2DF_V2DF_V2DI_INT. | |
26231 | (bdesc_args): Remove __builtin_ia32_vpermil2pd, | |
26232 | __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and | |
26233 | __builtin_ia32_vpermil2ps256. | |
26234 | (ix86_init_mmx_sse_builtins): Updated. | |
26235 | (ix86_expand_args_builtin): Likewise. | |
26236 | ||
44b86471 JDA |
26237 | 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
26238 | ||
e47b7d04 L |
26239 | * pa.c (output_call): Relocate non-jump insns in the delay slot of |
26240 | long absolute calls when generating PA 2.0 code. | |
44b86471 | 26241 | |
311aab06 VM |
26242 | 2009-01-05 Vladimir Makarov <vmakarov@redhat.com> |
26243 | ||
26244 | PR rtl-optimization/38583 | |
26245 | * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro. | |
26246 | ||
26247 | * params.def (ira-max-conflict-table-size): New. | |
26248 | ||
26249 | * doc/invoke.texi (ira-max-conflict-table-size): Decribe. | |
2ba9daa7 | 26250 | |
311aab06 | 26251 | * ira.h (ira_conflicts_p): New external definition. |
2ba9daa7 | 26252 | |
311aab06 VM |
26253 | * ira-conflicts.c (build_conflict_bit_table): Do not build too big |
26254 | table. Report this. Return result of building. | |
26255 | (ira_build_conflicts): Use ira_conflicts_p. Check result of | |
26256 | building conflict table. | |
26257 | ||
301b6a4e | 26258 | * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num. |
311aab06 | 26259 | (ira_color): Use ira_conflicts_p. |
2ba9daa7 | 26260 | |
311aab06 VM |
26261 | * global.c: Include ira.h. |
26262 | (pseudo_for_reload_consideration_p, build_insn_chain): Use | |
26263 | ira_conflicts_p. | |
26264 | ||
26265 | * Makefile.in (global.o): Add ira.h. | |
2ba9daa7 | 26266 | |
311aab06 VM |
26267 | * ira-build.c (mark_all_loops_for_removal, |
26268 | propagate_some_info_from_allocno): New. | |
26269 | (remove_unnecessary_allocnos): Call | |
26270 | propagate_some_info_from_allocno. | |
26271 | (remove_low_level_allocnos): New. | |
26272 | (remove_unnecessary_regions): Add parameter. Call | |
26273 | mark_all_loops_for_removal and remove_low_level_allocnos. Pass | |
26274 | parameter to remove_unnecessary_regions. | |
26275 | (ira_build): Remove all regions but root if the conflict table was | |
26276 | not built. Update conflict hard regs for allocnos crossing calls. | |
26277 | ||
26278 | * ira.c (ira_conflicts_p): New global. | |
26279 | (ira): Define and use ira_conflicts_p. | |
26280 | ||
26281 | * reload1.c (compute_use_by_pseudos, reload, count_pseudo, | |
26282 | count_spilled_pseudo, find_reg, alter_reg, finish_spills, | |
301b6a4e | 26283 | emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p. |
2ba9daa7 | 26284 | |
5641785f BE |
26285 | 2009-01-06 Ben Elliston <bje@au.ibm.com> |
26286 | ||
26287 | * gengtype-lex.l (YY_NO_INPUT): Define. | |
26288 | ||
e4e5261f AP |
26289 | 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com> |
26290 | ||
26291 | PR c/34911 | |
5641785f BE |
26292 | * c-common.c (handle_vector_size_attribute): Also reject |
26293 | BOOLEAN_TYPE types. | |
e4e5261f | 26294 | |
7b10257f SP |
26295 | 2009-01-05 Sebastian Pop <sebastian.pop@amd.com> |
26296 | ||
26297 | PR tree-optimization/38492 | |
26298 | * graphite.c (rename_map_elt, debug_rename_elt, | |
301b6a4e UB |
26299 | debug_rename_map_1, debug_rename_map, new_rename_map_elt, |
26300 | rename_map_elt_info, eq_rename_map_elts, | |
26301 | get_new_name_from_old_name, bb_in_sese_p): Moved around. | |
7b10257f SP |
26302 | (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use. |
26303 | (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb. | |
26304 | (sese_build_livein_liveouts): New. | |
26305 | (new_sese, free_sese): New. | |
26306 | (new_scop): Call new_sese. | |
26307 | (free_scop): Call free_sese. | |
26308 | (rename_variables_from_edge, rename_phis_end_scop): Removed. | |
26309 | (register_old_new_names): Renamed register_old_and_new_names. | |
26310 | (register_scop_liveout_renames, add_loop_exit_phis, | |
26311 | insert_loop_close_phis, struct igp, | |
26312 | default_liveout_before_guard, add_guard_exit_phis, | |
26313 | insert_guard_phis, copy_renames): New. | |
26314 | (translate_clast): Call insert_loop_close_phis and insert_guard_phis. | |
26315 | (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge. | |
26316 | (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts. | |
26317 | (scop_adjust_phis_for_liveouts): New. | |
26318 | (gloog): Call scop_adjust_phis_for_liveouts. | |
26319 | ||
26320 | * graphite.h (struct sese): Documented. Added fields liveout, | |
301b6a4e | 26321 | num_ver and livein. |
7b10257f SP |
26322 | (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New. |
26323 | (new_sese, free_sese, sese_build_livein_liveouts): Declared. | |
26324 | (struct scop): Added field liveout_renames. | |
26325 | (SCOP_LIVEOUT_RENAMES): New. | |
26326 | ||
9761fcc7 HJ |
26327 | 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com> |
26328 | ||
26329 | PR tree-optimization/38510 | |
26330 | * graphite.c (recompute_all_dominators): Call mark_irreducible_loops. | |
26331 | (translate_clast): Call recompute_all_dominators before | |
26332 | graphite_verify. | |
26333 | (gloog): Call recompute_all_dominators before graphite_verify. | |
26334 | ||
26335 | 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com> | |
c95b2534 | 26336 | Jan Sjodin <jan.sjodin@amd.com> |
9761fcc7 HJ |
26337 | |
26338 | PR tree-optimization/38500 | |
26339 | * graphite.c (create_sese_edges): Call fix_loop_structure after | |
26340 | splitting blocks. | |
26341 | ||
c95b2534 | 26342 | 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com> |
48a01864 JS |
26343 | |
26344 | * config.gcc: Add m32r*-*-rtems*. | |
26345 | * config/m32r/rtems.h: New file. | |
26346 | ||
fc0cd180 BE |
26347 | 2009-01-05 Ben Elliston <bje@au.ibm.com> |
26348 | ||
26349 | * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir. | |
26350 | (.po.pox): Likewise. | |
26351 | (po/gcc.pot): Likewise. | |
26352 | ||
3106d8e5 DM |
26353 | 2009-01-04 David S. Miller <davem@davemloft.net> |
26354 | ||
26355 | * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete. | |
26356 | (STARTING_FRAME_OFFSET): Always set to zero. | |
26357 | ||
0009b473 RS |
26358 | 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com> |
26359 | ||
26360 | * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary. | |
26361 | * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of | |
26362 | fixed-point types, and vectors of the same. | |
26363 | ||
4f24c6d6 RS |
26364 | 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com> |
26365 | ||
26366 | * config/mips/sync.md (*mb_barrier): Rename to... | |
26367 | (*memory_barrier): ...this. | |
26368 | ||
1df48f5c JW |
26369 | 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com> |
26370 | ||
26371 | * doc/extend.texi (Function Attributes): Move @cindex after @item | |
eefe5da0 | 26372 | for 'artificial' and 'flatten'. Fix grammar for 'externally_visible' |
1df48f5c JW |
26373 | and put in alphabetical order. Fix 'target' name and put in order. |
26374 | * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix | |
26375 | typos. | |
26376 | ||
1a8c13b3 UB |
26377 | 2009-01-04 Uros Bizjak <ubizjak@gmail.com> |
26378 | ||
26379 | * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB. | |
26380 | (memory_barrier): Expand as unspec instead of unspec_volatile. | |
26381 | Remove mem:BLK from insn operands. Use Pmode scratch register. | |
26382 | (*memory_barrier): Define as unspec instead of unspec_volatile. | |
26383 | Use (match_dup 0) as input operand. | |
26384 | ||
26385 | * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR. | |
26386 | * config/sparc/sync.md (memory_barrier): Expand as unspec instead of | |
26387 | unspec_volatile. Remove mem:BLK from insn operands. Use Pmode | |
26388 | scratch register. Remove operand 1. | |
26389 | (*stbar): Define as unspec instead of unspec_volatile. | |
26390 | Use (match_dup 0) as input operand, remove (const_int 8). | |
26391 | (*membar): Define as unspec instead of unspec_volatile. | |
26392 | Use (match_dup 0) as input operand, remove input operand 2. | |
26393 | ||
26394 | * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW. | |
26395 | (memory_barrier): Expand as unspec instead of unspec_volatile. | |
26396 | Remove mem:BLK from insn operands. Use Pmode scratch register. | |
26397 | (*memory_barrier): Define as unspec instead of unspec_volatile. | |
26398 | Use (match_dup 0) as input operand. | |
26399 | ||
26400 | * config/ia64/sync.md (memory_barrier): Redefine as expander pattern. | |
26401 | Remove mem:BLK from insn operands. Use Pmode scratch register. | |
26402 | Set volatile flag on operand 0. | |
26403 | (*memory_barrier): New insn pattern. | |
26404 | ||
26405 | * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from | |
26406 | insn operands. | |
26407 | (*memory_barrier): Use (match_dup 0) as input operand. | |
26408 | ||
26409 | * config/mips/sync.md (memory_barrier): Redefine as expander pattern. | |
26410 | Remove mem:BLK from insn operands. Use Pmode scratch register. | |
26411 | Set volatile flag on operand 0. | |
301b6a4e | 26412 | (*mb_internal): New insn pattern. |
1a8c13b3 UB |
26413 | |
26414 | * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal. | |
26415 | ||
fb0703f7 SB |
26416 | 2009-01-04 Steven Bosscher <steven@gcc.gnu.org> |
26417 | ||
26418 | PR middle-end/38586 | |
26419 | * function.c (struct temp_slot): Move to the section of the file | |
26420 | that deals with temp slots. Remove field 'address'. | |
26421 | (temp_slot_address_table): New hash table of address -> temp slot. | |
26422 | (struct temp_slot_address_entry): New struct, items for the table. | |
26423 | (temp_slot_address_compute_hash, temp_slot_address_hash, | |
26424 | temp_slot_address_eq, insert_temp_slot_address): Support functions | |
26425 | for the new table. | |
26426 | (find_temp_slot_from_address): Rewrite to use the new hash table. | |
26427 | (remove_unused_temp_slot_addresses): Remove addresses of temp | |
26428 | slots that have been made available. | |
26429 | (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse, | |
26430 | worker function for remove_unused_temp_slot_addresses. | |
26431 | (assign_stack_temp_for_type): Don't clear the temp slot address list. | |
26432 | Add the temp slot address to the address -> temp slot map. | |
26433 | (update_temp_slot_address): Update via insert_temp_slot_address. | |
26434 | (free_temp_slots): Call remove_unused_temp_slot_addresses. | |
26435 | (pop_temp_slots): Likewise. | |
26436 | (init_temp_slots): Allocate the address -> temp slot map, or empty | |
26437 | the map if it is already allocated. | |
26438 | (prepare_function_start): Initialize temp slot processing. | |
26439 | ||
b5a430f3 SB |
26440 | 2009-01-04 Steven Bosscher <steven@gcc.gnu.org> |
26441 | ||
26442 | PR middle-end/38584 | |
26443 | * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate: | |
26444 | Calculate the size of all stack vars assuming no packing of stack | |
26445 | vars will happen, replacing a quadratic algorithm with a linear one. | |
26446 | ||
5d560619 JJ |
26447 | 2009-01-03 Jakub Jelinek <jakub@redhat.com> |
26448 | ||
26449 | PR target/38707 | |
26450 | * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn | |
26451 | can't be used. | |
26452 | ||
953a7caa DN |
26453 | 2009-01-03 Diego Novillo <dnovillo@google.com> |
26454 | ||
26455 | * doc/contrib.texi: Update contributions. | |
26456 | ||
5f26a230 JJ |
26457 | 2009-01-03 Jakub Jelinek <jakub@redhat.com> |
26458 | ||
493aa551 JJ |
26459 | PR c++/38705 |
26460 | * builtins.c (fold_builtin_memory_op): Give up if either operand | |
26461 | is volatile. Set srctype or desttype to non-qualified version | |
26462 | of the other type. | |
26463 | ||
5f26a230 JJ |
26464 | PR c/38700 |
26465 | * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs | |
26466 | and FUNCTION_DECLs. | |
26467 | ||
c95b2534 | 26468 | 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com> |
fafe34f9 KZ |
26469 | |
26470 | PR rtl-optimization/35805 | |
26471 | * df-problems.c (df_lr_finalize): Add recursive call to resolve lr | |
26472 | problem if fast dce is able to remove any instructions. | |
26473 | * dce.c (dce_process_block): Fix dump message. | |
2ba9daa7 | 26474 | |
0b355794 MM |
26475 | 2009-01-02 Mark Mitchell <mark@codesourcery.com> |
26476 | ||
26477 | PR 33649 | |
26478 | * tree-ssa-pre.c (compute_antic): Correct loop bounds. | |
26479 | ||
0cf0d02b JJ |
26480 | 2009-01-02 Jakub Jelinek <jakub@redhat.com> |
26481 | ||
26482 | PR middle-end/38690 | |
26483 | * tree-flow.h (op_code_prio, op_prio): New prototypes. | |
26484 | * tree-pretty-print.c (op_code_prio): New function. | |
26485 | (op_prio): No longer static. Use op_code_prio. | |
26486 | * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs): | |
26487 | Use op_prio and op_code_prio to determine if () should be | |
26488 | printed around operand(s) or not. | |
26489 | ||
26490 | * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs, | |
26491 | dump_gimple_call, dump_gimple_switch, dump_gimple_cond, | |
26492 | dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi, | |
26493 | dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use | |
26494 | pp_character instead of pp_string for single letter printing. | |
26495 | ||
e3606f3b RS |
26496 | 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
26497 | ||
26498 | * doc/extend.texi: Fix '#pragma GCC option' typo. | |
26499 | ||
c95b2534 | 26500 | 2009-01-02 Richard Guenther <rguenther@suse.de> |
00f39bd5 | 26501 | |
a5f061dc RG |
26502 | * doc/install.texi (--enable-checking): Mention different |
26503 | default for stage1. | |
26504 | (--enable-stage1-checking): Document. | |
00f39bd5 | 26505 | |
26de0bcb AP |
26506 | 2009-01-01 Andrew Pinski <pinskia@gmail.com> |
26507 | ||
26508 | PR middle-end/30142 | |
26509 | * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR | |
26510 | case to be an error. | |
26511 | ||
7a7d8fab BE |
26512 | 2009-01-02 Ben Elliston <bje@au.ibm.com> |
26513 | ||
26514 | * config/fp-bit.h (pack_d): Constify argument. | |
26515 | * config/fp-bit.c (makenan): Constify return type. Remove casts. | |
26516 | (isnan): Constify argument. | |
26517 | (isinf): Likewise. | |
26518 | (iszero): Likewise. | |
26519 | (pack_d): Likewise. | |
26520 | (_fpadd_parts): Constify return type. | |
26521 | (_fpmul_parts): Likewise. | |
26522 | (_fpdiv_parts): Likewise. | |
26523 | ||
b295aee2 JJ |
26524 | 2009-01-01 Jakub Jelinek <jakub@redhat.com> |
26525 | ||
26526 | PR c/36489 | |
26527 | * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only | |
26528 | warn about overwriting initializer with side-effects or | |
26529 | -Woverride-init if !IMPLICIT. | |
26530 | (output_init_element): Likewise. Pass IMPLICIT down to | |
26531 | add_pending_init. | |
26532 | (process_init_element): Add IMPLICIT argument. Pass it down | |
26533 | to output_init_element. | |
26534 | (push_init_element, pop_init_level, set_designator): Adjust | |
26535 | process_init_element callers. | |
26536 | (set_nonincremental_init, set_nonincremental_init_from_string): | |
26537 | Adjust add_pending_init callers. | |
26538 | (output_pending_init_elements): Adjust output_init_element callers. | |
26539 | * c-tree.h (process_init_element): Adjust prototype. | |
26540 | * c-parser.c (c_parser_initelt, c_parser_initval): Adjust | |
26541 | process_init_element callers. | |
ad41bd84 JM |
26542 | |
26543 | \f | |
26544 | Copyright (C) 2009 Free Software Foundation, Inc. | |
26545 | ||
26546 | Copying and distribution of this file, with or without modification, | |
26547 | are permitted in any medium without royalty provided the copyright | |
26548 | notice and this notice are preserved. |