]>
Commit | Line | Data |
---|---|---|
8dd16ecc NS |
1 | 2004-08-23 Nathan Sidwell <nathan@codesourcery.com> |
2 | ||
3 | * tree.h (build_distinct_type_copy): New. | |
4 | (build_type_copy): ... here. Rename to ... | |
5 | (build_variant_type_copy): ... here. | |
6 | * tree.c (build_qualified_type): Rename build_type_copy call. | |
7 | (build_distinct_type_copy): New, broken out of ... | |
8 | (build_type_copy): ... here. Rename to ... | |
9 | (build_variant_type_copy): ... here. Use | |
10 | build_distinct_type_copy. | |
11 | (build_common_tree_nodes_2): Rename build_type_copy call. | |
12 | * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy | |
13 | call. | |
14 | (handle_packed_attribute, handle_unused_attribute, | |
15 | handle_transparanet_union_attribute, handle_aligned_attribute, | |
16 | handle_deprecated_attribute): Likewise. | |
17 | * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle): | |
18 | Likewise. | |
19 | * config/arm/arm.c (arm_handle_isr_attribyte): Likewise. | |
20 | * config/rs6000/rs6000.c (rs6000_init_builtins): Use | |
21 | build_distinct_type_copy. | |
22 | ||
e8bf0f3b RS |
23 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
24 | ||
25 | * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode | |
26 | attribute. | |
27 | ||
4d06ed0a RS |
28 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
29 | ||
30 | * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed | |
31 | loads and stores. | |
32 | (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name | |
33 | formerly unnamed patterns. Redefine using :P for the address. Remove | |
34 | explicit length attributes. | |
35 | ||
a3631d97 ZD |
36 | 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> |
37 | ||
38 | * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref): | |
39 | New functions. | |
40 | (single_reachable_address): Use them. | |
41 | (schedule_sm): Add dump. | |
42 | (is_call_clobbered_ref): New function. | |
43 | (determine_lsm_reg): Check whether the reference is call clobbered. | |
44 | Only work for gimple_reg_type values. | |
45 | ||
b1f58428 RS |
46 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
47 | ||
48 | * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16 | |
49 | $31 store insns. Redefine using :GPR. | |
50 | ||
237b301e RS |
51 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
52 | ||
53 | * config/mips/mips.md (P): New mode macro. | |
54 | (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i) | |
55 | (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P. | |
56 | Add mode attributes. | |
57 | ||
c9081a92 RS |
58 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
59 | ||
60 | * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of... | |
61 | (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle | |
62 | later constants to cover the gap. | |
63 | (load, store): New mode attributes. | |
64 | (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR. | |
65 | Use new unspec constants. | |
66 | ||
3d1f285d RS |
67 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
68 | ||
69 | * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR. | |
70 | (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns | |
71 | to use register_operand rather than uns_arith_operand as the predicate | |
72 | for operand 1. Remove redundant MIPS16 force_reg() for operand 1. | |
73 | (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns. | |
74 | Redefine using :GPR. Make same predicate change here. Extend the | |
75 | commutativity of operands 1 and 2 from the SImode version to the | |
76 | DImode one. | |
77 | (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise, | |
78 | but with no predicate changes. | |
79 | (*nor[sd]i3): Redefine using :GPR. | |
80 | ||
c0e1b12f ZD |
81 | 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> |
82 | ||
83 | * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for | |
84 | noreturn functions. | |
85 | ||
400a9325 RS |
86 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
87 | ||
88 | * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete. | |
89 | * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use | |
90 | branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%." | |
91 | rather than "%z2" (with a fake const0_rtx for operand 2). | |
92 | (ffs[sd]i2): Redefine using :GPR. | |
93 | (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case. | |
94 | ||
2222da3a RS |
95 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
96 | ||
97 | * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR. | |
98 | ||
15ac4ccf RS |
99 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
100 | ||
101 | * config/mips/mips.md (any_extend): New code macro. | |
102 | (u, su): New code attributes. | |
103 | ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000) | |
104 | ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal) | |
105 | ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart) | |
106 | (*{s,u}mul_acc_di): Redefine using any_extend. | |
107 | (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns | |
108 | to reflect real insn names. | |
109 | (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator | |
110 | with an any_extend template. | |
111 | ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend. | |
112 | Add '*' to name. | |
113 | ||
d46c971d RS |
114 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
115 | ||
116 | * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD. | |
117 | * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal) | |
118 | (mul[sd]i3_r4000): Redefine using :GPR. | |
119 | (mulsi3_mult3): Don't check TARGET_MAD separately. | |
120 | (muldi3_mult3): Moved after mulsi_mult3. | |
121 | ||
5811cb27 RS |
122 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
123 | ||
124 | * config.gcc (mips-*-*): Remove definitions of MASK_GAS and | |
125 | OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld. | |
126 | * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down. | |
127 | (TARGET_GAS, TARGET_MIPS_AS): Delete. | |
128 | (TARGET_GPWORD): Define to true for n32 on IRIX. | |
129 | (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op. | |
130 | (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete. | |
131 | (GAS_ASM_SPEC): Delete, folding into ASM_SPEC. | |
132 | (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete. | |
133 | (MDEBUG_ASM_SPEC): Delete, folding into... | |
134 | (SUBTARGET_ASM_DEBUGGING_SPEC): ...here. | |
135 | (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches. | |
136 | (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec, | |
137 | subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT | |
138 | to define asm_abi_default_spec. | |
139 | (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete. | |
140 | (TARGET_ASM_SELECT_SECTION): Delete. | |
141 | * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0 | |
142 | for non-mips16 code, removing previous workaround for SGI assemblers. | |
143 | (TARGET_ASM_INTEGER, mips_assemble_integer): Delete. | |
144 | (TARGET_ASM_ALIGNED_DI_OP): Define this instead. | |
145 | (override_options): Remove !TARGET_GAS and !have_named_sections code. | |
146 | (print_operand): Fold TARGET_GAS conditionals into asm strings. | |
147 | (mips_output_filename): Remove !TARGET_GAS code. Replace use of | |
148 | ASM_STABS_OP and ASM_STABN_OP. | |
149 | (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks. | |
150 | (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler. | |
151 | (mips_output_function_prologue): Remove !TARGET_GAS code. | |
152 | (mips_select_rtx_section): Remove !have_named_sections code. | |
153 | (mips_select_section): Delete. | |
154 | * config/mips/mips.md (trap): Remove !TARGET_GAS check. | |
155 | * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS. | |
156 | * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete. | |
157 | (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional. | |
158 | * config/mips/vxworks.h (ASM_SPEC): As for mips.h. | |
159 | * config/mips/windiss.h (ASM_SPEC): Likewise. | |
160 | ||
032e8348 RS |
161 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
162 | ||
163 | * read-rtl.c (map_value, mapping, macro_group): New structures. | |
164 | (BELLWETHER_CODE): New macro. | |
165 | (modes, codes, bellwether_codes): New variables. | |
166 | (find_mode, uses_mode_macro_p, apply_mode_macro, find_code) | |
167 | (uses_code_macro_p, apply_code_macro, apply_macro_to_string) | |
168 | (apply_macro_to_rtx, uses_macro_p, add_condition_to_string) | |
169 | (add_condition_to_rtx, apply_macro_traverse, add_mapping) | |
170 | (add_map_value, initialize_macros): New functions. | |
171 | (def_hash, def_hash_eq_p): Generalize to anything that points to, | |
172 | or starts with, a char * field. | |
173 | (find_macro, read_mapping, check_code_macro): New functions. | |
174 | (read_rtx_1): New, split out from read_rtx. Handle the new | |
175 | define_{mode,code}_{macro,attr} constructs. Use find_macro | |
176 | to parse the name of a code or mode. Use BELLWETHER_CODE to | |
177 | extract the format and to choose a suitable code for rtx_alloc. | |
178 | Modify recursive invocations to use read_rtx_1. | |
179 | (read_rtx): Call initialize_macros. Apply code and mode macros | |
180 | to the rtx returned by read_rtx_1. Cache everything after the | |
181 | first macro expansion for subsequent read_rtx calls. | |
182 | * doc/md.texi: Document new .md constructs. | |
183 | * config/mips/mips.md (GPR): New mode macro. | |
184 | (d, si8_di5): New mode attributes. | |
185 | (any_cond): New code macro. | |
186 | (add[sd]i3): Redefine using :GPR. | |
187 | (*add[sd]i3): Likewise, renaming from add[sd]i3_internal. | |
188 | (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming | |
189 | previously unnamed MIPS16 patterns. | |
190 | (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long | |
191 | lines. Don't match (plus (const_int 0) ...). | |
192 | (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern. | |
193 | Use a define_split to generate the addition. | |
194 | (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn. | |
195 | (subsi3_internal): Delete. | |
196 | (*subsi3_extended): Renamed from subsi3_internal_2. | |
197 | (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt) | |
198 | (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine | |
199 | using an any_cond template. | |
200 | ||
ecce923e RS |
201 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
202 | ||
203 | * read-rtl.c (read_rtx): Tidy use of format_ptr. | |
204 | ||
a269d6c8 RS |
205 | 2004-08-23 Richard Sandiford <rsandifo@redhat.com> |
206 | ||
207 | * read-rtl.c (string_obstack): New file-scope variable. | |
208 | (read_string, read_quoted_string, read_braced_string) | |
209 | (read_escape): Remove obstack parameter and use string_obstack instead. | |
210 | (read_rtx): Remove function-local rtl_obstack and initialize | |
211 | string_obstack instead. Update call to read_string. | |
212 | ||
9fc3b39a AP |
213 | 2004-08-22 Andrew Pinski <apinski@apple.com> |
214 | ||
215 | PR c/15262 | |
216 | * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered | |
217 | expression is not constant. | |
218 | (c_finish_return): Do not go through INDIRECT_REF when looking | |
219 | for the inner expression of an ADDR_EXPR for warning about. | |
220 | ||
cea49550 RH |
221 | 2004-08-22 Richard Henderson <rth@redhat.com> |
222 | ||
223 | PR 17075 | |
224 | * cfgexpand.c (expand_gimple_tailcall): Detect when we can both | |
225 | create new blocks and fall through. | |
226 | (expand_gimple_basic_block): Update to match. | |
227 | ||
0b540f12 UW |
228 | 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com> |
229 | ||
230 | * reload.c (find_reloads_address): Make return value tri-state. | |
231 | Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded. | |
232 | (find_reloads): Assume that reloaded addresses match 'o' or | |
233 | EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address | |
234 | returned 1 (not -1). Omit optional reloads for address operands | |
235 | only if find_reloads_address returned 1 (not -1). | |
236 | ||
237 | * config/s390/s390.c (legitimize_reload_address): New function. | |
238 | * config/s390/s390-protos.h (legitimize_reload_address): Declare. | |
239 | * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call | |
240 | legitimize_reload_address. | |
241 | ||
7f5e6307 RH |
242 | 2004-08-22 Richard Hendersion <rth@redhat.com> |
243 | ||
244 | * tree.h (SAVE_EXPR_RESOLVED_P): New. | |
245 | * gimplify.c (gimplify_save_expr): Use it. | |
246 | * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P | |
247 | on the temporary variable. | |
248 | ||
efd610a6 AP |
249 | 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu> |
250 | ||
251 | * fold-const.c (rtl_expr_nonnegative_p): Delete. | |
252 | * tree.h (rtl_expr_nonnegative_p): Remove. | |
253 | ||
324a6c95 SB |
254 | 2004-08-22 Steven Bosscher <stevenb@suse.de> |
255 | ||
256 | * config/i386/ppro.md (ppro_complex_insn): Add missing check | |
257 | for cpu==pentiumpro. | |
258 | ||
259 | * combine.c (struct reg_stat): Fix comment typo. | |
260 | ||
41db8425 JM |
261 | 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk> |
262 | ||
263 | * c-tree.h (c_sizeof_nowarn): Remove. | |
264 | ||
00325bce JM |
265 | 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk> |
266 | ||
267 | * c-decl.c (set_array_declarator_type): Rename to | |
268 | set_array_declarator_inner. | |
269 | (build_c_parm, build_attrs_declarator, build_function_declarator): | |
270 | New functions. | |
271 | (make_pointer_declarator): Call build_attrs_declarator. | |
272 | * c-tree.h (set_array_declarator_type): Rename to | |
273 | set_array_declarator_inner. | |
274 | (build_c_parm, build_attrs_declarator, build_function_declarator): | |
275 | New prototypes. | |
276 | * c-parse.in (after_type_declarator, | |
277 | parm_declarator_starttypename, parm_declarator_nostarttypename, | |
278 | notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm, | |
279 | firstparm): Use these functions | |
280 | ||
60919bce JM |
281 | 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk> |
282 | ||
283 | * c-decl.c (build_array_declarator, set_array_declarator_type, | |
284 | start_decl, grokdeclarator, grokparms): Change boolean parameters | |
285 | to type bool. | |
286 | * c-tree.h (build_array_declarator, set_array_declarator_type, | |
287 | start_decl): Update prototypes. | |
288 | * c-decl.c, c-parse.in: All callers changed. | |
289 | ||
bdfd0ed4 MS |
290 | 2004-08-21 Mike Stump <mrs@apple.com> |
291 | ||
292 | * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to... | |
293 | (darwin_fix_and_continue): Likewise. | |
294 | (darwin_fix_and_continue_switch): Likewise. | |
295 | * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool. | |
296 | (darwin_fix_and_continue): Likewise. | |
297 | (darwin_fix_and_continue_switch): Likewise. | |
298 | ||
35da8b56 | 299 | 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net> |
23d34220 DS |
300 | |
301 | PR c++/16030 | |
302 | * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix): | |
303 | Remove, merging into ... | |
304 | (gen_stdcall_or_fastcall_suffix): New function, returning tree | |
305 | rather than const char*, and accepting additional parameter. | |
306 | Don't add suffix to '*'-prefixed symbols or variadic functions. | |
307 | (i386_pe_encode_section_info): Adjust for call to new function. | |
308 | Call change_decl_assembler_name. | |
309 | ||
828a4fe4 MS |
310 | 2004-08-20 Mike Stump <mrs@apple.com> |
311 | ||
312 | * config/darwin.c (machopic_indirect_data_reference): Mark | |
313 | stubs as defined. | |
314 | * config/386/386.c (darwin_local_data_pic): Add. | |
315 | (legitimate_constant_p): Reorder so that PLUS handling runs | |
316 | before darwin_local_data_pic to match the ordering in | |
317 | legitimate_pic_address_disp_p and so that MINUS runs after | |
318 | darwin_local_data_pic as otherwise the darwin_local_data_pic | |
319 | logic can be skipped, which would be very bad. | |
320 | (legitimate_pic_address_disp_p): Move from from here to | |
321 | darwin_local_data_pic so it can be reused. | |
322 | ||
85b776df AM |
323 | 2004-08-21 Alan Modra <amodra@bigpond.net.au> |
324 | ||
325 | * config/rs6000/linux64.h (DOT_SYMBOLS): Define. | |
326 | (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version. | |
327 | (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS. | |
328 | (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise. | |
329 | (RS6000_ABI_NAME): Define as "linux". | |
330 | (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols. | |
331 | * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select | |
332 | ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT. | |
333 | * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl. | |
334 | * config/rs6000/rs6000.c (dot_symbols): New global var. | |
335 | (rs6000_output_function_entry): New function, modified for | |
336 | !DOT_SYMBOLS.. | |
337 | (print_operand <case 'z'>): ..extracted from here. | |
338 | (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS. | |
339 | (rs6000_output_function_epilogue): Likewise. | |
340 | (rs6000_elf_declare_function_name): Likewise. | |
341 | * config/rs6000/rs6000.h (DOT_SYMBOLS): Define. | |
342 | (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS. | |
343 | * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE. | |
344 | * configure: Regenerate. | |
345 | * config.in: Regenerate. | |
346 | ||
14d3dc34 MM |
347 | 2004-08-20 Mark Mitchell <mark@codesourcery.com> |
348 | ||
0e544c37 MM |
349 | * reload.c (find_reloads_address): Fix thinko in previous change. |
350 | ||
14d3dc34 MM |
351 | * reload.c (find_reloads_address): Reload the sum of a LO_SUM and |
352 | a CONST_INT. | |
353 | ||
f3b2657c JJ |
354 | 2004-08-20 Jakub Jelinek <jakub@redhat.com> |
355 | ||
356 | PR rtl-optimization/17099 | |
357 | * combine.c (force_to_mode): Check if inner_mask has any bits set | |
358 | outside of GET_MODE (x) instead of op_mode. | |
359 | ||
d2294baa MM |
360 | 2004-08-20 Mark Mitchell <mark@codesourcery.com> |
361 | ||
362 | * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile | |
363 | fragment. | |
364 | * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo. | |
365 | (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler. | |
366 | * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5 | |
367 | architecture. | |
368 | (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float | |
369 | configurations. | |
370 | * config/arm/t-symbian: New file. | |
371 | ||
753d0efa AP |
372 | 2004-08-20 Andrew Pinski <apinski@apple.com> |
373 | ||
374 | * regrename.c (kill_value_regno): ANSIfy. | |
375 | ||
627b6fe2 DJ |
376 | 2004-08-20 Dale Johannesen <dalej@apple.com> |
377 | ||
324a6c95 | 378 | * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD. |
627b6fe2 | 379 | |
d64d5e80 DJ |
380 | 2004-08-20 Daniel Jacobowitz <dan@debian.org> |
381 | ||
382 | * regrename.c (kill_value_one_regno): Renamed from kill_value_regno. | |
383 | (kill_value_regno): New function, derived from kill_value. | |
384 | (kill_value): Update. | |
385 | (copyprop_hardreg_forward_1): Update call to kill_value_regno. | |
386 | ||
af75a7ea DB |
387 | 2004-08-20 Daniel Berlin <dberlin@dberlin.org> |
388 | ||
389 | Fix PR tree-optimization/17111 | |
390 | * tree-ssa-pre.c (create_value_expr_from): Don't change the types | |
391 | of non-value_handles. | |
392 | (bitmap_set_contains): All constants are in every set. | |
393 | ||
0a936b12 NS |
394 | 2004-08-20 Nathan Sidwell <nathan@codesourcery.com> |
395 | ||
396 | * fold-const.c (round_up, round_down): Use build_int_cst. | |
397 | Optimize common case. | |
398 | ||
774acadf ZW |
399 | 2004-08-20 Zack Weinberg <zack@codesourcery.com> |
400 | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | |
401 | ||
324a6c95 | 402 | * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section, |
774acadf ZW |
403 | one_only_data_section): Rename to som_readonly_data_section, |
404 | som_one_only_readonly_data_section and som_one_only_data_section. | |
324a6c95 | 405 | * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP, |
0a936b12 NS |
406 | NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete |
407 | conditional defines. | |
774acadf ZW |
408 | (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP, |
409 | NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual | |
410 | string values. | |
411 | (pa_select_section): Use renamed section functions. | |
412 | * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, | |
324a6c95 | 413 | SOM_READONLY_DATA_SECTION_FUNCTION, |
774acadf | 414 | SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION, |
324a6c95 SB |
415 | SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): |
416 | Define here ... | |
417 | * config/pa/som.h: ... not here. | |
418 | (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP, | |
774acadf ZW |
419 | ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP, |
420 | ONE_ONLY_READONLY_DATA_SECTION_ASM_OP, | |
324a6c95 SB |
421 | ONE_ONLY_DATA_SECTION_ASM_OP): Delete. |
422 | (READONLY_DATA_SECTION): Use som_readonly_data_section. | |
774acadf | 423 | |
3224bead NS |
424 | 2004-08-20 Nathan Sidwell <nathan@codesourcery.com> |
425 | ||
fabead06 NS |
426 | * fold-const.c (int_const_binop): Don't generate non-overflowing |
427 | size-types specially. | |
428 | (fold_convert_const): Likewise. | |
429 | ||
3224bead NS |
430 | * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier, |
431 | clear cache on copied sizetype. | |
432 | ||
fb38008e BE |
433 | 2004-08-20 Ben Elliston <bje@au.ibm.com> |
434 | ||
435 | * configure.ac: Don't escape apostrophe in --enable-coverage help. | |
436 | * configure: Regenerate. | |
437 | ||
a9024779 DS |
438 | 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net> |
439 | ||
440 | PR 5620 | |
441 | * gcc.c (struct stat input_stat): Don't define if | |
442 | HOST_LACKS_INODE_NUMBERS | |
443 | (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather | |
444 | than stat to determine if temp file is same as input file. | |
445 | * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS. | |
446 | * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS | |
447 | ||
82563d35 RS |
448 | 2004-08-20 Richard Sandiford <rsandifo@redhat.com> |
449 | ||
450 | * configure.ac (mips*-*-*): Print an error if not using GAS. | |
451 | * configure: Regenerated. | |
452 | * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove | |
453 | comments about buggy MIPSpro assemblers. | |
454 | * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h | |
455 | before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix. | |
456 | Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for | |
457 | IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld. | |
458 | * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES) | |
459 | (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC) | |
460 | (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE) | |
461 | (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h. | |
462 | (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor | |
463 | of more general IRIX 6 definitions. | |
464 | (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL) | |
465 | (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions. | |
466 | (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION) | |
467 | (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC) | |
468 | (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO) | |
469 | (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER) | |
470 | (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL) | |
471 | (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS) | |
472 | (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS) | |
473 | (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs. | |
474 | (LINK_SPEC): Move most of definition to iris.h. | |
475 | (SUBTARGET_LINK_SPEC): New macro. | |
476 | (IRIX_STARTFILE_SPEC): Fold into... | |
477 | (STARTFILE_SPEC): ...here. | |
478 | (IRIX_ENDFILE_SPEC): Fold into... | |
479 | (ENDFILE_SPEC): ...here. | |
480 | * config/mips/iris6.h (TARGET_IRIX5): Remove override. | |
481 | (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE) | |
482 | (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP) | |
483 | (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME) | |
484 | (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h. | |
485 | (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits. | |
486 | (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL) | |
487 | (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO) | |
488 | (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX) | |
489 | (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE) | |
490 | (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY) | |
491 | (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC) | |
492 | (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC) | |
493 | (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*) | |
494 | (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP) | |
495 | (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME) | |
496 | (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL) | |
497 | (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs. | |
498 | (TARGET_IRIX6): Define to 1. | |
499 | (DRIVER_SELF_SPECS): Define. | |
500 | (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS. | |
501 | (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS. | |
502 | (SUBTARGET_LINK_SPEC): New macro. | |
503 | (IRIX_STARTFILE_SPEC): Fold into... | |
504 | (STARTFILE_SPEC): ...here. Remove !mabi=* case. | |
505 | (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros. | |
506 | (LIB_SPEC, LIBGCC_SPEC): Use them. | |
507 | (LIB_SPEC): Remove !mabi=* case. | |
508 | (IRIX_ENDFILE_SPEC): Fold into... | |
509 | (ENDFILE_SPEC): ...here. Remove !mabi=* case. | |
510 | * config/mips/mips-protos.h (irix_output_external_libcall): Delete. | |
511 | * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete. | |
512 | (TARGET_IRIX6): New macro. | |
513 | (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition. | |
514 | (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER) | |
515 | (LABEL_AFTER_LOC): Delete. | |
516 | * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END) | |
517 | (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions. | |
518 | (mips_build_builtin_va_list): Check TARGET_IRIX6. | |
519 | (override_options): Remove TARGET_SGI_O32_AS-related code. | |
520 | (irix_output_external_libcall): Make static. | |
521 | (mips_output_filename): Avoid use of SET_FILE_NUMBER and | |
522 | LABEL_AFTER_LOC. | |
523 | (mips_file_start): Tidy guard for ABI sections. Remove use of | |
524 | ABICALLS_ASM_OP; use .abicalls instead. | |
525 | (mips_output_aligned_decl_common, mips_declare_object_name) | |
526 | (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS. | |
527 | (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting | |
528 | .globl foo .text directives. | |
529 | (irix_asm_named_section_1, irix_asm_named_section) | |
530 | (irix_section_align_entry, irix_section_align_htab) | |
531 | (irix_orig_asm_out_file, irix_section_align_entry_eq) | |
532 | (irix_section_align_entry_hash, irix_asm_output_align) | |
533 | (irix_file_start, irix_section_align_1, copy_file_data) | |
534 | (irix_file_end, irix_section_type_flags): Delete. | |
535 | * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section. | |
536 | Use standard section syntax. Remove protective "jr $31". | |
537 | (__gcc_fini): Likewise .gcc_fini. | |
538 | * config/mips/irix-crtn.asm: Adjust sections accordingly. | |
539 | * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from | |
540 | iris5gas.h. | |
541 | * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved | |
542 | from t-irix-gld. | |
543 | (EXTRA_MULTILIB_PARTS): Define. | |
544 | * config/mips/t-iris6: Remove bogus comment. | |
545 | (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete. | |
546 | * config/mips/iris5gas.h, config/mips/iris5gld.h, | |
547 | config/mips/iris6gas.h, config/mips/iris6gld.h, | |
548 | config/mips/t-iris5-as, config/mips/t-iris5-gas | |
549 | config/mips/t-irix-gld: Delete. | |
550 | * config/mips/iris.h: New file. | |
551 | * config/mips/t-slibgcc-irix: Renamed from t-iris5-6. | |
552 | ||
c4cdb8e1 RE |
553 | 2004-08-20 Richard Earnshaw <rearnsha@arm.com> |
554 | ||
555 | * postreload.c (reload_cse_move2add): Allow any condjump, but check | |
556 | that the implicit set isn't clobbered in the jump insn. | |
557 | ||
d55ab31d MM |
558 | 2004-08-19 Mark Mitchell <mark@codesourcery.com> |
559 | ||
560 | * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove. | |
561 | * optabs.c (init_optabs): Don't check it. | |
562 | * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define. | |
563 | * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove. | |
564 | ||
d75f90f1 AK |
565 | 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com> |
566 | ||
567 | * config/s390/s390.md (s390_warn_framesize_string) | |
568 | (s390_warn_dynamic_string, s390_stack_size_string) | |
569 | (s390_stack_guard_string): New global string variables. | |
570 | (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size) | |
571 | (s390_stack_guard): New global variables. | |
572 | (override_options): Added checks for the new options. | |
573 | (s390_emit_prologue): Emit stack check and trap code and perform | |
574 | compile time stack size checking. | |
575 | ||
576 | * config/s390/s390.h (TARGET_OPTIONS): Added new options | |
577 | "warn-framesize", "warn-dynamicstack", "stack-size" and | |
578 | "stack-guard". | |
579 | ||
580 | * doc/invoke.texi: Added documentation for the new options. | |
581 | ||
ca29916b UW |
582 | 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com> |
583 | ||
584 | * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen | |
585 | to eliminate warning. | |
586 | (linear_search_fdes): Declare p as unsigned. | |
587 | (binary_search_mixed_encoding_fdes): Likewise. | |
588 | * unwind-dw2.c (get_cie_encoding): Cast argument to strlen | |
589 | to eliminate warning. | |
590 | * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing | |
591 | type cast. | |
592 | ||
e1d5ee28 UW |
593 | 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com> |
594 | ||
595 | * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype. | |
596 | * config/s390/s390.c (preferred_la_operand_p): Accept two operands | |
597 | instead of one. Check for strictly legitimate address. | |
598 | * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call | |
599 | to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate. | |
600 | ||
19114537 EC |
601 | 2004-08-19 Eric Christopher <echristo@redhat.com> |
602 | ||
603 | * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove. | |
604 | * langhooks.h (unsave_expr_now): Ditto. | |
605 | * tree.h (unsave_expr_1): Remove prototype. | |
606 | (lhd_unsave_expr_now): Rename to unsave_expr_now. | |
607 | * tree-inline.c (unsave_expr_1): Move here | |
608 | from tree.c. Make static. | |
609 | (unsave_expr_now): Rename from lhd_unsave_expr_now. | |
610 | * tree-sra.c: Fix up for rename. | |
611 | * tree-ssa-copy.c: Ditto. | |
612 | * tree-eh.c: Ditto. | |
613 | * tree.c (unsave_expr_1): Move to tree-inline.c. | |
614 | ||
d5bfecf2 CT |
615 | 2004-08-19 Caroline Tice <ctice@apple.com> |
616 | ||
324a6c95 SB |
617 | * config/i386/cygming.h (switch_to_section): Fix typo (change |
618 | in_unlikely_text_section to in_unlikely_executed_text). | |
19114537 | 619 | |
58152808 DB |
620 | 2004-08-19 Daniel Berlin <dberlin@dberlin.org> |
621 | ||
622 | * vec.h (VEC_lower_bound): New macro. | |
19114537 | 623 | |
ae043003 RS |
624 | 2004-08-19 Richard Sandiford <rsandifo@redhat.com> |
625 | ||
626 | PR target/16446 | |
627 | * config/mips/mips.c (struct mips_arg_info): Delete num_bytes. | |
628 | (mips_arg_info): Update accordingly. Remove common treatment of fpr_p; | |
629 | treat each ABI separately. Deal with n32/n64 complex float arguments. | |
630 | (function_arg): Add associated complex handling here. | |
631 | ||
50ed9cea RH |
632 | 2004-08-19 Richard Henderson <rth@redhat.com> |
633 | ||
634 | * config/arm/arm.c (arm_gen_load_multiple): Use | |
635 | adjust_automodify_address. Take base memory and offset instead | |
636 | of unchanging/struct/scalar bits. | |
637 | (arm_gen_store_multiple): Likewise. | |
638 | (arm_gen_movmemqi): Use adjust_automodify_address. | |
639 | * config/arm/arm-protos.h: Update decls. | |
640 | * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call. | |
641 | (store_multiple): Similarly. | |
642 | ||
74ae207d R |
643 | 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com> |
644 | ||
645 | * regclass.c (globalize_reg): Update call_really_used_regs. | |
646 | ||
89b0433e NS |
647 | 2004-08-19 Nathan Sidwell <nathan@codesourcery.com> |
648 | ||
31ebd7c8 NS |
649 | * doc/invoke.texi (integer-share-limit): Document. |
650 | ||
89b0433e NS |
651 | * tree.h (TYPE_CACHED_VALUES_P): New. |
652 | (TYPE_CACHED_VALUES): New. | |
653 | (TYPE_ORIG_SIZE_TYPE): Adjust. | |
654 | * tree.def (INTEGER_CST): Update documentation. | |
655 | * tree.c: Inlcude params.h. | |
656 | (build_int_cst): Cache small values. | |
657 | (build_type_copy): Do not copy the value cache. | |
658 | * c-common.c (c_common_nodes_and_builtins): Add comment, remove | |
659 | unneeded zeroing. | |
660 | * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting. | |
661 | * expmed.c (const_mult_add_overflow_p): Clear type copy's value | |
662 | cache. | |
663 | * fold-const.c (force_fit_type): Copy value when setting | |
664 | overflows. | |
665 | (int_const_binop): Likewise. | |
666 | * stor-layout.c: Include params.h | |
667 | (set_sizetype): Create values cache. | |
668 | (fixup_unsigned_type): Set UNSIGNED_P before caching any values. | |
669 | * params.def (PARAM_INTEGER_SHARE_LIMIT): New. | |
670 | * params.h (INTEGER_SHARE_LIMIT): New. | |
671 | * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H. | |
19114537 | 672 | |
c2504783 PB |
673 | 2004-08-19 Paolo Bonzini <bonzini@gnu.org> |
674 | ||
675 | * gimplify.c (gimplify_minimax_expr): Remove. | |
676 | (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling. | |
677 | ||
7a8554ce DN |
678 | 2004-08-19 Dorit Naishlos <dorit@il.ibm.com> |
679 | ||
19114537 | 680 | * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace |
7a8554ce DN |
681 | STACK_BOUDARY with PREFERRED_STACK_BOUNDARY. |
682 | ||
1905f33d MM |
683 | 2004-08-19 Mark Mitchell <mark@codesourcery.com> |
684 | ||
685 | * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP. | |
686 | ||
f1732751 AP |
687 | 2004-08-18 Andrew Pinski <apinski@apple.com> |
688 | ||
689 | * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty. | |
690 | ||
8c78a388 MM |
691 | 2004-08-18 Mark Mitchell <mark@codesourcery.com> |
692 | ||
693 | * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility. | |
694 | (__aeabi_ul2f): Likewise. | |
695 | ||
7eda7cda RH |
696 | 2004-08-18 Richard Henderson <rth@redhat.com> |
697 | ||
698 | * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block | |
699 | move to rtl completely. | |
700 | (struct meminsnbuf, xtensa_emit_block_move): Remove. | |
701 | (xtensa_find_mode_for_size): Remove. | |
702 | * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove. | |
703 | * config/xtensa/xtensa.md (movmemsi_internal): Remove. | |
704 | ||
88042663 RH |
705 | 2004-08-18 Richard Henderson <rth@redhat.com> |
706 | ||
707 | * config/mcore/mcore.c (mode_from_align): Remove DImode. | |
708 | (block_move_sequence): Rewrite to use adjust_address. | |
709 | (mcore_expand_block_move): Cleanup logic. Accept only operands. | |
710 | Return boolean indicating success/failure. | |
711 | * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl. | |
712 | * config/mcore/mcore.md (movmemsi): Update to match. | |
713 | ||
699c914a MS |
714 | 2004-08-18 Mike Stump <mrs@apple.com> |
715 | ||
716 | * doc/invoke.texi (-mfix-and-continue): Add support for | |
717 | fast turn around debugging. | |
718 | (-ffix-and-continue): Likewise. | |
719 | (-mindirect-data): Likewise. | |
720 | (-findirect-data): Likewise. | |
721 | * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise. | |
722 | (indirect_data): Likewise. | |
723 | (machopic_data_defined_p): Likewise. | |
724 | (machopic_output_indirection): Likewise. | |
725 | (darwin_encode_section_info): Likewise. | |
726 | (darwin_fix_and_continue): Likewise. | |
727 | (darwin_fix_and_continue_switch): Likewise. | |
728 | * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise. | |
729 | * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise. | |
730 | (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise. | |
731 | (SUBTARGET_OPTIONS): Likewise. | |
732 | (darwin_fix_and_continue): Likewise. | |
733 | (darwin_fix_and_continue_switch): Likewise. | |
734 | (TARGET_FIX_AND_CONTINUE): Likewise. | |
735 | * config/rs6000.c (rs6000_emit_prologue): Likewise. | |
736 | ||
737 | 2004-08-19 Steven Bosscher <stevenb@suse.de> | |
bd454efd SB |
738 | |
739 | * basic-block.h (struct edge_def): Remove crossing_edge. | |
740 | (EDGE_CROSSING): New define. | |
741 | (EDGE_ALL_FLAGS): Update. | |
742 | * bb-reorder.c (find_traces_1_round, better_edge_p, | |
743 | find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges, | |
744 | find_jump_block, fix_crossing_conditional_branches, | |
745 | fix_crossing_unconditional_branches, add_reg_crossing_jump_notes): | |
746 | Replace all occurences of crossing_edge with an edge flag check | |
747 | or set/reset. | |
748 | * cfgcleanup.c (try_simplify_condjump, try_forward_edges, | |
749 | try_crossjump_bb): Likewise. | |
750 | * cfglayout.c (fixup_reorder_chain): Likewise. | |
751 | * cfgrtl.c (force_nonfallthru_and_redirect, | |
752 | commit_one_edge_insertion): Likewise. | |
753 | ||
754 | * Makefile.in (cfganal.o): Depend on TIMEVAR_H. | |
755 | * tree-flow.h (compute_dominance_frontiers): Move prototype... | |
756 | * basic-block.h: ...here. | |
757 | * tree-cfg.c (compute_dominance_frontiers_1, | |
758 | compute_dominance_frontiers): Move from here... | |
759 | * cfganal.c: ...to here. Include timevar.h. | |
760 | ||
9ff6992e JW |
761 | 2004-08-18 James E Wilson <wilson@specifixinc.com> |
762 | ||
c831f54b | 763 | * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=. |
a1627d80 JW |
764 | * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes. |
765 | ||
9ff6992e JW |
766 | * config/mips/mips.md (type): Add frdiv. |
767 | (divsf3+1, divsf3+2): Change type to frdiv. | |
768 | * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe, | |
769 | ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New. | |
19114537 | 770 | |
9ff6992e JW |
771 | * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv. |
772 | * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise. | |
773 | * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise. | |
774 | * config/mips/5000.md (r5k_fdiv_single): Likewise. | |
775 | * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise. | |
776 | * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise. | |
777 | * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise. | |
778 | * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise. | |
779 | * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise. | |
780 | * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double): | |
781 | Likewise. | |
782 | * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise. | |
783 | ||
c16eb900 RB |
784 | 2004-08-18 Robert Bowdidge <bowdidge@apple.com> |
785 | ||
786 | * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to | |
324a6c95 | 787 | get regression tester working again. |
c16eb900 | 788 | |
826c9564 ZW |
789 | 2004-08-18 Zack Weinberg <zack@codesourcery.com> |
790 | ||
791 | * insn-notes.def, reg-notes.def: New files. | |
792 | * rtl.h: Use them to define enum insn_note and enum reg_note. | |
793 | * rtl.c: Use them to define note_insn_name and reg_note_name. | |
4b179e92 | 794 | * Makefile.in (RTL_BASE_H): Update. |
826c9564 ZW |
795 | |
796 | * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK | |
797 | renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK. | |
798 | ||
21b5653c RE |
799 | 2004-08-18 Richard Earnshaw <rearnsha@arm.com> |
800 | ||
801 | * arm.c (arm_size_rtx_costs): New function. | |
802 | (arm_override_options): Use it if optimizing for space. | |
803 | ||
542a8afa RH |
804 | 2004-08-18 Richard Henderson <rth@redhat.com> |
805 | ||
806 | * emit-rtl.c (gen_const_mem): New. | |
807 | * rtl.h (gen_const_mem): Declare. | |
808 | * expr.c (do_tablejump): Use it. | |
809 | * varasm.c (force_const_mem): Likewise. | |
810 | * config/darwin.c (machopic_indirect_data_reference): Likewise. | |
811 | (machopic_legitimize_pic_address): Likewise. | |
812 | * config/arm/arm.c (legitimize_pic_address): Likewise. | |
813 | * config/i386/i386.c (legitimize_pic_address): Likewise. | |
814 | (legitimize_tls_address): Likewise. | |
815 | * config/ia64/ia64.c (ia64_expand_tls_address): Likewise. | |
816 | * config/ia64/ia64.md (load_fptr): Likewise. | |
817 | * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise. | |
818 | * config/pa/pa.c (legitimize_pic_address): Likewise. | |
819 | * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise. | |
820 | (rs6000_emit_move): Likewise. | |
821 | * config/s390/s390.c (legitimize_pic_address): Likewise. | |
822 | (legitimize_tls_address): Likewise. | |
823 | * config/s390/s390.md (casesi): Likewise. | |
824 | * config/sh/sh.c (sh_reorg): Likewise. | |
825 | * config/sparc/sparc.c (legitimize_pic_address): Likewise. | |
826 | * config/v850/v850.md (casesi): Likewise. | |
827 | ||
828 | * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P. | |
829 | * config/sh/sh.c (prepare_move_operands): Remove incorrect | |
830 | use of MEM_READONLY_P. | |
831 | ||
0516f6fe SB |
832 | 2004-08-18 Steven Bosscher <stevenb@suse.de> |
833 | ||
834 | * Makefile.in (OBJS-common): Add postreload-gcse.c. | |
835 | Add new postreload-gcse.o. | |
836 | * cse.c (SAFE_HASH): Define as wrapper around safe_hash. | |
837 | (lookup_as_function, insert, rehash_using_reg, use_related_value, | |
838 | equiv_constant): Use SAFE_HASH instead of safe_hash. | |
839 | (exp_equiv_p): Export. Add for_gcse argument when comparing | |
840 | for GCSE. | |
841 | (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr, | |
842 | find_comparison_args, fold_rtx, cse_insn): Update callers. | |
843 | (hash_rtx): New function derived from old canon_hash and bits | |
844 | from gcse.c hash_expr_1. | |
845 | (canon_hash_string): Rename to hash_rtx_string. | |
846 | (canon_hash, safe_hash): Make static inline. Call hash_rtx. | |
847 | * cselib.c (hash_rtx): Rename to cselib_hash_rtx. | |
848 | (cselib_lookup): Update this caller. | |
849 | * gcse.c (modify_mem_list_set, canon_modify_mem_list_set): | |
850 | Make static. | |
851 | (hash_expr): Call hash_rtx. | |
852 | (ldst_entry): Likewise. | |
853 | (expr_equiv_p): Call exp_equiv_p. | |
854 | (struct unoccr, hash_expr_1, hash_string_1, lookup_expr, | |
855 | reg_used_on_edge, reg_set_between_after_reload_p, | |
856 | reg_used_between_after_reload_p, get_avail_load_store_reg, | |
857 | is_jump_table_basic_block, bb_has_well_behaved_predecessors, | |
858 | get_bb_avail_insn, hash_scan_set_after_reload, | |
859 | compute_hash_table_after_reload, | |
860 | eliminate_partially_redundant_loads, gcse_after_reload, | |
861 | get_bb_avail_insn, gcse_after_reload_main): Remove. | |
862 | * postreload-gcse.c: New file, reincarnating most of the above. | |
863 | * rtl.h (exp_equiv_p, hash_rtx): New prototypes. | |
864 | (gcse_after_reload_main): Update prototype. | |
865 | * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar. | |
866 | * passes.c (rest_of_handle_gcse2): Use it. | |
867 | ||
95013377 DN |
868 | 2004-08-18 Diego Novillo <dnovillo@redhat.com> |
869 | ||
870 | * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func. | |
871 | (pass_loop_done): Likewise. | |
872 | ||
ac9e2cff AP |
873 | 2004-08-18 Andrew Pinski <apinski@apple.com> |
874 | ||
826c9564 | 875 | * config/rs6000/darwin.md: Delete the altivec patterns which are |
ac9e2cff AP |
876 | handled differently now. |
877 | (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT | |
878 | (macho_correct_pic_di): Likewise. | |
879 | (call_indirect_nonlocal_darwin64): Likewise. | |
880 | Delete the save world/saveFP/saveVec patterns. | |
826c9564 | 881 | |
ac9e2cff | 882 | Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com> |
826c9564 ZW |
883 | * config/darwin.c (macho_indirect_data_reference): Add DImode case. |
884 | * config/rs6000/rs6000.md: Include darwin.md. | |
885 | (builtin_setjmp_receiver): Add DImode case. | |
886 | * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to | |
887 | Darwin bits. | |
ac9e2cff | 888 | |
92b9a671 MA |
889 | 2004-08-18 Matt Austern <austern@apple.com> |
890 | ||
891 | Dead code stripping | |
892 | * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped. | |
893 | * darwin.c (darwin_file_end): Mark file as potentially strippable. | |
826c9564 | 894 | |
4766261d RH |
895 | 2004-08-18 Richard Henderson <rth@redhat.com> |
896 | ||
897 | * alias.c (readonly_fields_p): Remove. | |
898 | (objects_must_conflict_p): Don't call it. | |
899 | * tree.h (readonly_fields_p): Remove. | |
900 | * langhooks.h (struct lang_hooks): Remove honor_readonly. | |
901 | * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove. | |
902 | ||
50dc9a88 DN |
903 | 2004-08-18 Diego Novillo <dnovillo@redhat.com> |
904 | ||
905 | * tree-dfa.c (add_referenced_var): Only global variables are | |
906 | call-clobbered. | |
907 | * tree-flow.h (struct ptr_info_def): Add field pt_global_mem. | |
908 | * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark | |
909 | all pointers dereferenced if the statement dereferences them. | |
910 | (create_name_tags): Do not create memory tags for pointers | |
911 | that have PT_ANYTHING set. | |
912 | Also check if PT_VARS is not empty before creating a name tag. | |
913 | (compute_flow_sensitive_aliasing): Don't mark call-clobbered | |
914 | variables that share the same alias set with a pointer that | |
915 | may point anywhere. | |
916 | (add_may_alias): Add FIXME comment to remove clobbering | |
917 | aliased variables and tags. | |
918 | (replace_may_alias): Likewise. | |
919 | (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED. | |
920 | (merge_pointed_to_info): If the original variable has not | |
921 | points-to information, call set_pt_anything. | |
922 | (add_pointed_to_var): Do not prevent adding a pointed-to | |
923 | variable if the pointers is PT_ANYTHING. | |
924 | If the variable is a global, set PT_GLOBAL_MEM. | |
925 | (collect_points_to_info_r): Don't assume that PLUS_EXPRs of | |
926 | pointer type only come in PTR+OFFSET flavours. | |
927 | Always call merge_pointed_to_info on PHI arguments that are | |
928 | SSA_NAMEs. | |
929 | (get_nmt_for): Mark call-clobbered tags whose pointer points | |
930 | to global memory. | |
931 | * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch | |
932 | values. | |
933 | (get_indirect_ref_operands): Always clear OPF_KILL_DEF from | |
934 | FLAGS. | |
935 | (add_stmt_operand): Abort if the caller tried to add a killing | |
936 | definition for a memory tag. | |
937 | * tree-ssa.c (verify_flow_sensitive_alias_info): Remove | |
938 | unnecessary checks. | |
939 | ||
62164eb4 R |
940 | 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com> |
941 | ||
942 | * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers | |
943 | from call_used_regs. Update call_really_used_regs. | |
944 | (CALL_REALLY_USED_REGISTERS): Define. | |
945 | * sh.c (output_stack_adjust, shmedia_target_regs_stack_space): | |
946 | Replace call_used_regs with call_really_used_regs. | |
947 | (calc_live_regs, sh_media_register_for_return): Likewise. | |
948 | (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise. | |
949 | * sh.md (return_media): Likewise. | |
950 | ||
f9b0ac3b AP |
951 | 2004-08-18 Andrew Pinski <apinski@apple.com> |
952 | ||
826c9564 | 953 | * config/darwin.c (machopic_legitimize_pic_address): Only set |
ac9e2cff | 954 | MEM_READONLY_P in the non TARGET_TOC case. |
f9b0ac3b | 955 | |
f822d252 ZW |
956 | 2004-08-18 Zack Weinberg <zack@codesourcery.com> |
957 | ||
958 | * rtl.def (NIL): Delete. | |
959 | * read-rtl.c (read_rtx): Handle (nil) like (define_constants). | |
960 | Tighten the syntax a little. | |
961 | ||
962 | * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c | |
963 | * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h | |
964 | * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c | |
965 | * config/i386/predicates.md, config/m32r/m32r.h | |
966 | * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c | |
967 | * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h | |
968 | * config/sparc/sparc.h, doc/tm.texi: | |
969 | Replace all occurrences of NIL with UNKNOWN. | |
970 | ||
6aaf3dde ZW |
971 | 2004-08-18 Zack Weinberg <zack@codesourcery.com> |
972 | ||
973 | * dojump.c (do_jump <unordered_bcc>): Do not recursively call | |
974 | self with a TRUTH_ORIF_EXPR; generate the appropriate jump | |
975 | sequence inline. Move drop_through_label code into this | |
976 | block, being the only place it is used. Adjust comments. | |
977 | ||
d62294f5 FJ |
978 | 2004-08-18 Fariborz Jahanian <fjahanian@apple.com> |
979 | ||
6aaf3dde ZW |
980 | * config/rs6000/altivec.md: Add new patterns for calls to |
981 | save_world/rest_world functions. | |
982 | ||
983 | * config/rs6000/rs6000-protos.h: (save_world_operation, | |
984 | restore_world_operation) new declarations. | |
985 | ||
986 | * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p | |
987 | field added. | |
988 | (rs6000_stack_info): Set world_save_p field. | |
989 | (save_world_operation): New function. | |
990 | (restore_world_operation): New function. | |
991 | (compute_save_world_info): New function. | |
992 | (rs6000_stack_info): Call compute_save_world_info. | |
993 | (rs6000_emit_prologue): Check for world_save_p and generate | |
994 | pattern to call save_world for saving all non-volatile and | |
995 | special registers. | |
996 | (rs6000_emit_epilogue): Check for world_save_p and generate | |
997 | pattern to call rest_world to restore saved registers. | |
998 | ||
999 | config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO, | |
1000 | FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined. | |
1001 | (rs6000_reg_names): New entries added for save_world_operation and | |
1002 | restore_world_operation. | |
d62294f5 | 1003 | |
790ac0e1 CT |
1004 | 2004-08-18 Caroline Tice <ctice@apple.com> |
1005 | ||
6aaf3dde | 1006 | * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add |
790ac0e1 CT |
1007 | "-freorder-blocks-and-partition" to the flags used in second |
1008 | stage of profiledbootstrap. | |
1009 | * bb-reorder.c (push_to_next_round_p): Add new variable, | |
1010 | next_round_is_last; set and use variable to make sure, when | |
1011 | partitioning, that the last trace construction round consists | |
1012 | of all (and only) cold basic blocks. | |
1013 | (rotate_loop): Don't copy blocks that end in a section | |
1014 | crossing jump. | |
1015 | (copy_bb): Correctly initialize "partition" of duplicated bb. | |
1016 | (add_unlikely_executed_notes): Add a comment. | |
1017 | (find_rarely_executed_basic_blocks_and_crossing_edges): Modify | |
1018 | to make sure, if function contains hot blocks, that the | |
1019 | successors of ENTRY_BLOCK_PTR are hot; also, only look for | |
1020 | crossing edges if the architecture supports named sections. | |
1021 | (mark_bb_for_unlikely_executed_section): Modify to always | |
1022 | insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after | |
1023 | the basic block note insn. | |
1024 | (fix_crossing_unconditional_branches): Remove extra space. | |
1025 | (fix_edges_for_rarely_executed_code): Modify to only do | |
1026 | partitioning work if the architecture supports named sections. | |
1027 | (reorder_basic_blocks): Modify to only add | |
1028 | NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture | |
1029 | supports named sections. | |
1030 | * c-common.c (handle_section_attribute): Initialize new global | |
1031 | variable, user_defined_section_attribute, to true if user has | |
1032 | specified one. | |
1033 | * cfgcleanup.c (try_forward_edges): Modify to not attempt to | |
1034 | forward edges that cross section boundaries. | |
1035 | * cfglayout.c (fixup_reorder_chain): Modify to only fix up | |
1036 | partitioning information if the architecture supports named | |
1037 | sections. | |
1038 | * cfgrtl.c (target.h): Add statement to include this. | |
1039 | (rtl_split_block): Make sure newly created bb gets correct | |
1040 | partition. | |
1041 | (try_redirect_by_replacing_jump): Make sure redirection isn't | |
1042 | attempting to cross section boundaries. | |
1043 | (force_nonfallthru_and_redirect): Only do partition fix up if | |
1044 | architecture supports named sections. | |
1045 | (rtl_split_edge): Make sure newly created bb ends up in | |
1046 | correct partition. | |
1047 | (commit_one_edge_insertion): Remove code that incorrectly | |
1048 | updated basic block partition; Make sure partition fix up only | |
1049 | happens if architecture supports named sections and it's not | |
1050 | already done. | |
1051 | (rtl_verify_flow_info_1): Fix if-condition on test/error | |
1052 | condition that fallthru edges are not allowed to cross section | |
1053 | boundaries. | |
1054 | * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this. | |
1055 | * final.c (final_scan_insn): Remove redundant test from if-statement; | |
1056 | change calls to text_section into calls to function_section; add code | |
1057 | to only to partitioning fix up if architecture supports named | |
1058 | sections. | |
1059 | * ifcvt.c (find_if_case_1): Make sure newly created bb has correct | |
1060 | partition. | |
1061 | (if_convert): Add targetm.have_named_sections to test. | |
1062 | * output.h (unlikely_section_label): Extern declaration for new global | |
1063 | variable. | |
1064 | (unlikely_text_section_name): Likewise. | |
1065 | * opts.c (decode_options): If both partitioning and DWARF debugging | |
1066 | are turned on, issue a warning that this doesn't work, and change | |
1067 | partitiong to basic block reordering (without hot/cold partitions). | |
6aaf3dde | 1068 | * passes.c (rest_of_handle_final): Re-set new global variable, |
790ac0e1 CT |
1069 | user_defined_section_attribute, to false. |
1070 | (rest_of_compilation): Change options for calling partitioning | |
1071 | function: Don't call if the user defined the section attribute, and | |
1072 | don't call if DECL_ONE_ONLY is true for the current function. | |
1073 | * predict.c (choose_function_section): Return immediately if we | |
1074 | are doing hot/cold partitioning (i.e. let the basic block partitioning | |
1075 | determine where the function belongs). | |
1076 | * reg-stack.c (emit_swap_insn): Add condition to step over | |
1077 | NOTE_INSN_UNLIKELY_EXECUTED_CODE notes. | |
1078 | * toplev.c (user_defined_section_attribute): New global variable. | |
89b0433e NS |
1079 | * toplev.h (user_defined_section_attribute): Extern declaration |
1080 | for new global variable. | |
790ac0e1 CT |
1081 | * varasm.c (unlikely_section_label): New global variable. |
1082 | (unlikely_text_section_name): New global variable. | |
89b0433e NS |
1083 | (unlikely_text_section): Add code to initialize |
1084 | unlikely_text_section_name if necessary; modify to use | |
1085 | unlikely_text_section_name and unlikely_section_label; also to use | |
1086 | named_section properly. | |
1087 | (in_unlikely_text_section): Modify to work correctly with | |
1088 | named_section and to use unlikely_text_section_name. | |
790ac0e1 CT |
1089 | (named_section): Add code to work properly with cold section. |
1090 | (function_section): Clean up if-statement. | |
89b0433e NS |
1091 | * config/darwin.c (darwin_asm_named_section): Return to original |
1092 | code, removing use of SECTION_FORMAT_STRING. | |
6aaf3dde | 1093 | * config/arm/pe.h (switch_to_section): Add case for |
790ac0e1 CT |
1094 | in_unlikely_executed_text to switch statement. |
1095 | * config/i386/cygming.h (switch_to_section): Likewise. | |
1096 | * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove. | |
1097 | (SECTION_FORMAT_STRING): Likewise. | |
1098 | * config/mcore/mcore.h (switch_to_section): Likewise. | |
1099 | * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove. | |
1100 | (SECTION_FORMAT_STRING): Remove. | |
1101 | ||
3a4416fb RS |
1102 | 2004-08-18 Roger Sayle <roger@eyesopen.com> |
1103 | ||
1104 | * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be | |
1105 | -ffixed-reg safe, by preserving the meanings of zero and one. | |
1106 | (CALL_USED_REGISTERS): Likewise. | |
1107 | (CONDITIONAL_REGISTER_USAGE): Update to process new encodings. | |
1108 | ||
03904fb3 KK |
1109 | 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org> |
1110 | ||
1111 | * config/sh/sh.c (split_branches): Check the result of | |
1112 | next_active_insn. | |
1113 | (sh_output_mi_thunk): Call init_flow if basic_block_info is null. | |
1114 | Call rtl_register_cfg_hooks. | |
1115 | ||
389fdba0 RH |
1116 | 2004-08-18 Richard Henderson <rth@redhat.com> |
1117 | ||
1118 | * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P. | |
1119 | * alias.c (true_dependence): Update to match new semantics. | |
1120 | (canon_true_dependence, write_dependence_p): Likewise. | |
1121 | (anti_dependence, output_dependence): Update write_dependence_p args. | |
1122 | (unchanging_anti_dependence): Remove. | |
1123 | * calls.c (purge_mem_unchanging_flag): Remove. | |
1124 | (fixup_tail_calls): Don't call it. | |
1125 | (expand_call): Don't add unchanging memory to function usage. | |
1126 | * expr.c (emit_block_move_via_libcall): Likewise. | |
1127 | (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems. | |
1128 | (get_subtarget): Don't use RTX_UNCHANGING_P. | |
1129 | (expand_assignment, store_constructor, expand_expr_real_1): Likewise. | |
1130 | (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P. | |
1131 | * combine.c (get_last_value_validate): Use MEM_READONLY_P. | |
1132 | * cse.c (insert): Don't use RTX_UNCHANGING_P. | |
1133 | (cse_insn, canon_hash): Use MEM_READONLY_P. | |
1134 | * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P | |
1135 | instead of RTX_UNCHANGING_P. | |
1136 | * explow.c (maybe_set_unchanging): Remove. | |
1137 | * expr.h (maybe_set_unchanging): Remove. | |
1138 | * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence. | |
1139 | * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P. | |
1140 | (assign_parm_setup_reg, expand_function_start): Likewise. | |
1141 | * integrate.c (copy_rtx_and_substitute): Likewise. | |
1142 | * ra-rewrite.c (emit_colors): Likewise. | |
1143 | * regmove.c (copy_src_to_dest, regmove_optimize): Likewise. | |
1144 | (fixup_match_1): Likewise. | |
1145 | * reload1.c (reload, alter_reg): Likewise. | |
1146 | * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P, | |
1147 | not RTX_UNCHANGING_P. | |
1148 | (equiv_init_varies_p): Likewise. | |
1149 | * loop-invariant.c (check_maybe_invariant): Likewise. | |
1150 | * resource.c (mark_referenced_resources, mark_set_resources): Likewise. | |
1151 | * loop.c (note_addr_stored): Likewise. | |
1152 | (prescan_loop): Likewise. Don't check function usage for clobbered | |
1153 | unchanging memory. | |
1154 | * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P, | |
6aaf3dde | 1155 | not RTX_UNCHANGING_P. |
389fdba0 RH |
1156 | (rtx_varies_p, modified_between_p, modified_in_p): Likewise. |
1157 | * varasm.c (force_const_mem): Likewise. | |
1158 | * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P. | |
1159 | * web.c (entry_register): Likewise. | |
1160 | * tree-gimple.h (get_base_address): Move decl ... | |
1161 | * tree.h: ... here. | |
1162 | * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P. | |
1163 | ||
1164 | * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be | |
1165 | called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too. | |
1166 | (alpha_set_memflags): Update to match. | |
1167 | ||
1168 | * config/darwin.c (machopic_indirect_data_reference): Set | |
1169 | MEM_READONLY_P instead of RTX_UNCHANGING_P. | |
1170 | (machopic_indirect_call_target): Likewise. | |
1171 | (machopic_legitimize_pic_address): Likewise. | |
6aaf3dde | 1172 | * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple, |
389fdba0 RH |
1173 | arm_gen_store_multiple, arm_gen_movmemqi): Likewise. |
1174 | * config/arm/arm.md (load_multiple, store_multiple): Likewise. | |
1175 | * config/frv/frv.md (symGOT2reg): Likewise. | |
1176 | * config/i386/i386.c (legitimize_pic_address, | |
1177 | legitimize_tls_address, ix86_split_to_parts): Likewise. | |
1178 | * config/ia64/ia64.c (ia64_expand_tls_address): Likewise. | |
1179 | * config/ia64/ia64.md (load_fptr): Likewise. | |
1180 | * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise. | |
1181 | * config/m68k/m68k.c (legitimize_pic_address): Likewise. | |
1182 | * config/mcore/mcore.c (block_move_sequence): Likewise. | |
1183 | * config/mn10300/mn10300.md (symGOT2reg): Likewise. | |
1184 | * config/pa/pa.c (legitimize_pic_address): Likewise. | |
1185 | * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise. | |
1186 | (rs6000_emit_move): Likewise. | |
1187 | * config/s390/s390.c (legitimize_pic_address): Likewise. | |
1188 | (legitimize_tls_address): Likewise. | |
1189 | * config/s390/s390.md (casesi): Likewise. | |
1190 | * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise. | |
1191 | * config/sh/sh.md (symGOT2reg): Likewise. | |
1192 | * config/sparc/sparc.c (legitimize_pic_address): Likewise. | |
1193 | * config/v850/v850.md (casesi): Likewise. | |
1194 | ||
1195 | * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P. | |
1196 | * config/iq2000/iq2000.c (save_restore_insns): Likewise. | |
1197 | * config/mips/mips.c (mips_restore_gp): Likewise. | |
1198 | (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise. | |
1199 | * config/sh/sh.c (sh_reorg): Likewise. | |
1200 | ||
17ad5b5e RH |
1201 | 2004-08-18 Richard Henderson <rth@redhat.com> |
1202 | ||
1203 | * tree.h (struct tree_decl): Add gimple_formal_temp. | |
1204 | (DECL_GIMPLE_FORMAL_TEMP_P): New. | |
1205 | * gimplify.c (pop_gimplify_context): Clear it. | |
1206 | (lookup_tmp_var): Set it, if is_formal. | |
1207 | (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX. | |
1208 | Use is_gimple_val for VECTOR. Simplify return value. | |
1209 | (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P. | |
1210 | (gimplify_expr): Likewise. | |
1211 | * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from | |
1212 | is_gimple_tmp_rhs for clarity. Update all callers. | |
1213 | (is_gimple_reg_rhs): Simplify logic. | |
1214 | (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for | |
1215 | clarity; use DECL_GIMPLE_FORMAL_TEMP_P. | |
1216 | (is_gimple_formal_tmp_reg): Similarly. | |
1217 | * tree-gimple.h: Update decls. | |
1218 | * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use | |
1219 | DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting. | |
1220 | * tree-ssa-live.c (var_union, type_var_init): Likewise. | |
1221 | ||
5b0eba61 PB |
1222 | 2004-08-18 Paolo Bonzini <bonzini@gnu.org> |
1223 | ||
1224 | * c4x.c (legitimize_operands): Remove calls to | |
1225 | preserve_subexpressions_p. | |
1226 | ||
07e15286 DE |
1227 | 2004-08-18 David Edelsohn <edelsohn@gnu.org> |
1228 | ||
1229 | * varasm.c (MAX_OFILE_ALIGNMENT): Move ... | |
1230 | * defaults.h (MAX_OFILE_ALIGNMENT): ... here. | |
1231 | ||
ad8c162b ZL |
1232 | 2004-08-18 Ziemowit Laski <zlaski@apple.com> |
1233 | ||
1234 | * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii" | |
1235 | Objective-C++ extensions. | |
1236 | * gengtype.c (get_file_basename): Match entire subdirectory name | |
1237 | ('cp', 'objc', 'objcp') rather than just its suffix. | |
1238 | (get_base_file_bitmap): Allow for files to belong to more than one | |
1239 | language. | |
1240 | (get_output_file_with_visibility): Treat objc/objc-act.h as a header | |
1241 | used by more than one front-end. | |
1242 | ||
d56993f2 RE |
1243 | 2004-08-18 Richard Earnshaw <rearnsha@arm.com> |
1244 | ||
1245 | * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to | |
1246 | avoid use of preserve_subexpressions_p. | |
1247 | ||
504c0e4f RH |
1248 | 2004-08-17 Richard Henderson <rth@redhat.com> |
1249 | ||
1250 | PR 17051 | |
1251 | * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too. | |
1252 | ||
54e9a19d DD |
1253 | 2004-08-17 DJ Delorie <dj@redhat.com> |
1254 | ||
1255 | * doc/extend.texi: Document new xstormy16 attribute. | |
1256 | ||
1257 | * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New. | |
1258 | (xstormy16_splittable_below100_or_register): New. | |
1259 | (combine_bnp): New. | |
1260 | (xstormy16_reorg): New. | |
1261 | (TARGET_MACHINE_DEPENDENT_REORG): Define. | |
1262 | ||
54e9a19d DD |
1263 | * config/stormy16/stormy16.md (movqi_internal): Make name public. |
1264 | (movhi_internal): Likewise. | |
1265 | (cbhranchhi): Likewise. | |
1266 | (cbhranchhi_neg): Likewise. | |
1267 | (andhi3): Only allow splittable below100 operands. | |
1268 | (iorhi3): Likewise. | |
1269 | (peephole2): New and/zero_extend->and peephole. | |
1270 | (peephole2): New load/ior/save->set1 peephole. | |
1271 | (peephole2): New load/and/save->clr1 peephole. | |
1272 | (bclrx, bclrx2, bclr7, bclr15): New. | |
1273 | (bsetx, bsetx2, bset7, bset15): New. | |
1274 | ||
1275 | * config/stormy16/stormy16.c (xstormy16_print_operand): Be more | |
1276 | liberal about acceptable 'B' masks. | |
1277 | ||
1278 | * config/stormy16/stormy16-protos.h | |
1279 | (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol, | |
1280 | xstormy16_below100_operand, xstormy16_below100_or_register, | |
1281 | xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New. | |
1282 | (PREDICATE_CODES): Add new predicates. | |
6aaf3dde | 1283 | |
54e9a19d DD |
1284 | * config/stormy16/stormy16.c |
1285 | (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol, | |
1286 | xstormy16_below100_operand, xstormy16_below100_or_register, | |
1287 | xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New. | |
1288 | (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New. | |
1289 | (xstormy16_legitimate_address_p): Allow below100 symbols. | |
1290 | (xstormy16_extra_constraint_p): Add 'W' for below100 operands. | |
1291 | (xstormy16_expand_move): Leave below100 operands as-is. | |
1292 | (xstormy16_encode_section_info): Encode below100 symbols. | |
1293 | (xstormy16_strip_name_encoding): New. | |
1294 | (xstormy16_print_operand): Print 'b' as shift mask. | |
1295 | (xstormy16_attribute_table): Add below100 attributes. | |
1296 | (xstormy16_handle_below100_attribute): New. | |
1297 | ||
1298 | * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100. | |
1299 | (XSTORMY16_SECTION_FUNCTION): New. | |
1300 | (EXTRA_SECTION_FUNCTIONS): Define using the above. | |
1301 | (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New. | |
1302 | (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols. | |
1303 | (ASM_OUTPUT_LABELREF): Define. | |
1304 | ||
1305 | * config/stormy16/stormy16.md (movqi_internal): Add below100 support. | |
1306 | (movhi_internal): Add below100 support. | |
1307 | (andhi3): Add below100 support. | |
1308 | (iorhi3): Add below100 support. | |
1309 | (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New. | |
1310 | ||
4ef47bd8 JW |
1311 | 2004-08-17 James E Wilson <wilson@specifixinc.com> |
1312 | ||
1313 | * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead | |
1314 | of VOIDmode for comparison code mode. | |
1315 | * config/mips/mips.md: For conditional move patterns, use mode of | |
1316 | first compare operand for comparison mode, instead of VOIDmode. | |
e17c734b JW |
1317 | |
1318 | * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both | |
1319 | normal and -ffast-math code. | |
1320 | ||
1a10290c MM |
1321 | 2004-08-17 Mark Mitchell <mark@codesourcery.com> |
1322 | ||
1323 | PR c++/15871 | |
1324 | * doc/invoke.texi (-fkeep-inline-functions): Update documentation. | |
1325 | ||
f4e736dd | 1326 | 2004-08-17 Robert Bowdidge <bowdidge@apple.com> |
6aaf3dde ZW |
1327 | |
1328 | * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags. | |
f4e736dd | 1329 | |
13a98f14 AT |
1330 | 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch> |
1331 | ||
1332 | * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause | |
1333 | for non Darwin targets. | |
1334 | (*call_value_nonlocal_darwin64): Likewise. | |
1335 | ||
d0b2079e FJ |
1336 | 2004-08-17 Fariborz Jahanian <fjahanian@apple.com> |
1337 | ||
1338 | * config/rs6000/rs6000.c (rs6000_function_value): Check for | |
1339 | altivec mode for altivec return register. | |
1340 | ||
feb3dc8b DE |
1341 | 2004-08-17 David Edelsohn <edelsohn@gnu.org> |
1342 | ||
1343 | Revert 2004-08-16 Stan Shebs <shebs@apple.com> | |
ef0e2729 | 1344 | * config/darwin.c (macho_indirect_data_reference): Add DImode case. |
feb3dc8b DE |
1345 | * config/rs6000/rs6000.md: Include darwin.md. |
1346 | (builtin_setjmp_receiver): Add DImode case. | |
1347 | * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to | |
1348 | Darwin bits. | |
1349 | ||
79fe1b3b DN |
1350 | 2004-08-17 Dorit Naishlos <dorit@il.ibm.com> |
1351 | ||
89b0433e NS |
1352 | * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE |
1353 | trees. | |
79fe1b3b DN |
1354 | * tree-vectorizer.h: New File: Same. |
1355 | * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files. | |
1356 | * common.opt (ftree-vectorize): New flag to enable vectorization. | |
89b0433e NS |
1357 | * timevar.def (TV_TREE_VECTORIZATION): New dump file for |
1358 | vectorization pass. | |
79fe1b3b DN |
1359 | * tree-data-ref.h (init_data_ref): Additional argument. |
1360 | (array_base_name_differ_p): Moved to tree-data-ref.c. | |
1361 | * tree-data-ref.c (array_base_name_differ_p): Revised. | |
1362 | (initialize_data_dependence_relation): Call array_base_name_differ_p | |
1363 | with an extra argument. | |
1364 | (analyze_all_data_dependences): Same. | |
1365 | (init_data_ref): Additional argument is_read to set DR_IS_READ. | |
89b0433e NS |
1366 | * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this |
1367 | file. | |
79fe1b3b DN |
1368 | * tree-flow.h (vectorize_loops, empty_block_p): Add declaration. |
1369 | * tree-optimize.c (pass_vectorize): Schedule the vectorization pass. | |
6aaf3dde | 1370 | * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new |
79fe1b3b DN |
1371 | vectorization pass. |
1372 | * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize. | |
1373 | (tree_ssa_loop_done): Call scev_finalize. | |
1374 | (tree_vectorize): Define the new vectorization pass. | |
89b0433e NS |
1375 | * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the |
1376 | size of the vector they support (until support for multiple vector | |
1377 | sizes is added to the vectorizer). | |
79fe1b3b DN |
1378 | * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define. |
1379 | * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define. | |
1380 | * invoke.texi (fdump-tree-vect, ftree-vectorize): Add | |
1381 | documentation. | |
1382 | ||
e15987c1 NS |
1383 | 2004-08-17 Nathan Sidwell <nathan@codesourcery.com> |
1384 | ||
1385 | * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst | |
1386 | usage. | |
1387 | (generate_protocol_list, handle_impent): Likewise. | |
1388 | ||
e3cadb61 RS |
1389 | 2004-08-17 Roger Sayle <roger@eyesopen.com> |
1390 | ||
1391 | * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to | |
1392 | ensure that call_used_regs is a superset of both fixed_regs and | |
1393 | call_really_used_regs. | |
1394 | ||
108a579c DB |
1395 | 2004-08-17 Daniel Bornstein <danfuzz@milk.com> |
1396 | ||
1397 | PR target/17019 | |
1398 | * arm.md (addsi3_cbranch_scratch): Correct case labels. | |
1399 | ||
62fc1d7d PB |
1400 | 2004-08-17 Paolo Bonzini <bonzini@gnu.org> |
1401 | ||
1402 | PR middle-end/17036 | |
1403 | * fold-const.c (fold): Check for integer operand when | |
1404 | folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew | |
1405 | Pinski <pinskia@physics.uc.edu>. | |
1406 | ||
7c27e184 PB |
1407 | 2004-08-17 Paolo Bonzini <bonzini@gnu.org> |
1408 | ||
1409 | * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO. | |
1410 | No need to check if in a cross configuration. | |
1411 | * configure: Regenerate. | |
1412 | ||
1413 | * calls.c (precompute_register_parameters): | |
1414 | Inline preserve_subexpressions_p (). | |
1415 | * expmed.c (expand_mult_const, emit_store_flag): Likewise. | |
1416 | * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn): | |
1417 | Likewise. | |
1418 | * expr.c (get_subtarget): Likewise. | |
1419 | * rtl.h (preserve_subexpressions_p): Remove. | |
1420 | * stmt.c (preserve_subexpressions_p): Remove. | |
1421 | ||
1422 | * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR, | |
1423 | TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>: | |
1424 | Abort on gimplified cases. | |
1425 | ||
d97c6333 JW |
1426 | 2004-08-16 James E Wilson <wilson@specifixinc.com> |
1427 | ||
1428 | * tree.h (VECTOR_FLOAT_TYPE_P): New. | |
1429 | (FLOAT_TYPE_P): Use it. | |
1430 | * c-typeck.c (build_binary_op): After convert calls, check for | |
1431 | check for ERROR_MARK operands. | |
1432 | ||
45c8116d ZW |
1433 | 2004-08-16 Zack Weinberg <zack@codesourcery.com> |
1434 | ||
1435 | * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete. | |
1436 | (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update. | |
1437 | (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o. | |
1438 | (genobjs static pattern rule): Remove %.c dependency. | |
1439 | ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o): | |
1440 | Rename rules; delete commands; fix dependencies. | |
1441 | (mostlyclean): Do not delete temporary source copies. | |
1442 | * configure.ac: Delete all references to BUILD_PREFIX and | |
1443 | BUILD_PREFIX_1. | |
1444 | * configure: Regenerate. | |
1445 | ||
1446 | * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE. | |
1447 | Do not include tree.h, real.h, flags.h, hard-reg-set.h, or | |
1448 | basic-block.h #ifdef GENERATOR_FILE. Surround some more code | |
1449 | with #ifndef GENERATOR_FILE so that nothing from those headers | |
1450 | is used. | |
1451 | ||
1452 | * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE. | |
1453 | ||
4d73e20b AN |
1454 | 2004-08-16 Adam Nemet <anemet@lnxw.com> |
1455 | ||
1456 | * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB). | |
6aaf3dde | 1457 | |
62114438 AP |
1458 | 2004-08-16 Andrew Pinski <apinski@apple.com> |
1459 | ||
1460 | * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove | |
1461 | extraneous semicolon. | |
1462 | ||
8e3e233b DP |
1463 | 2004-08-16 Devang Patel <dpatel@apple.com> |
1464 | ||
1465 | * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P. | |
1466 | * print-tree.c (print_node): Print DECL_PRESERVE_P. | |
1467 | * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define. | |
1468 | (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED | |
1469 | * target.h (struct gcc_target): New member, mark_decl_preserved. | |
45c8116d ZW |
1470 | * hooks.c (hook_void_charptr): Rename to ... |
1471 | (hook_void_constcharptr): ... new name. | |
1472 | * hooks.h (hook_void_charptr): Rename to .. | |
1473 | (hook_void_constcharptr): ... new name. | |
8e3e233b DP |
1474 | * tree.h (DECL_PRESERVE_P): New #define. |
1475 | (struct tree_decl): New member, preserve_flag. | |
1476 | * varasm.c (assemble_start_function): Mark decl preserved. | |
1477 | (assemble_variable): Same. | |
1478 | * darwin.c (darwin_mark_decl_preserved): New function. | |
1479 | * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define. | |
1480 | * darwin-protos.h (darwin_mark_decl_preserved): New decl. | |
1481 | * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document. | |
1482 | ||
580b3958 JM |
1483 | 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk> |
1484 | ||
1485 | * c-decl.c (grokdeclarator): Allow for function definition where | |
1486 | innermost declarator has attributes. | |
1487 | ||
93f90be6 FJ |
1488 | 2004-08-16 Fariborz Jahanian <fjahanian@apple.com> |
1489 | ||
1490 | * except.c (get_exception_filter, build_post_landing_pads, | |
1491 | dw2_build_landing_pads): Use target-specific mode for 'filter'. | |
1492 | * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used. | |
1493 | * target.h (eh_return_filter_mode): New field added. | |
1494 | * targhooks.c (default_eh_return_filter_mode): Defined. | |
1495 | * targhooks.h (default_eh_return_filter_mode): Declared. | |
1496 | * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined. | |
1497 | ||
392765bf NN |
1498 | 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org> |
1499 | ||
1500 | * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with | |
1501 | ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST. | |
1502 | * configure: Regenerate. | |
1503 | ||
49bd1d27 SS |
1504 | 2004-08-16 Stan Shebs <shebs@apple.com> |
1505 | ||
1506 | Basic support for 64-bit Darwin. | |
1507 | * config/darwin.c (macho_indirect_data_reference): Add DImode case. | |
1508 | (machopic_legitimize_pic_address): Similarly, plus use Pmode | |
1509 | instead of SImode. | |
1510 | * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit. | |
1511 | (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro. | |
1512 | (SUBTARGET_SWITCHES): Add -m32 and -m64 flags. | |
1513 | (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64. | |
1514 | (PROCESSOR_DEFAULT64): Define. | |
1515 | * config/rs6000/darwin.md: New file, patterns specific to 64-bit | |
1516 | Darwin. | |
1517 | * config/rs6000/rs6000.md: Include darwin.md. | |
1518 | (builtin_setjmp_receiver): Add DImode case. | |
1519 | * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for | |
1520 | Darwin. | |
1521 | (TARGET_ASM_ALIGNED_DI_OP): Ditto. | |
1522 | (rs6000_emit_move): Add DImode case to Darwin bits. | |
1523 | (machopic_output_stub): Use .quad if 64-bit. | |
1524 | * invoke.texi: Document -m32 and -m64. | |
1525 | ||
4e6e4e4c JJ |
1526 | 2004-08-16 Janis Johnson <janis187@us.ibm.com> |
1527 | ||
1528 | * doc/extend.texi (AltiVec builtins): Document additional differences | |
1529 | from the Motorola AltiVec PIM. | |
1530 | ||
092313ae NS |
1531 | 2004-08-16 Nathan Sidwell <nathan@codesourcery.com> |
1532 | ||
1533 | * c-typeck.c (build_c_cast): Only copy overflow from expr nodes. | |
1534 | * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify. | |
1535 | (struct tree_common): Update public_flag documentation. | |
1536 | ||
dffc9ae5 NN |
1537 | 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org> |
1538 | ||
1539 | * tree-ssa-copyrename.c (copy_rename_partition_coalesce): | |
62fc1d7d | 1540 | Check for artificial variables, not is_gimple_tmp_var. |
dffc9ae5 NN |
1541 | * tree-ssa-live.c (var_union): Likewise. |
1542 | ||
16e9be4c NS |
1543 | 2004-08-16 Nathan Sidwell <nathan@codesourcery.com> |
1544 | ||
1545 | * calls.c (load_register_parameters): Remove spurious FIXME token. | |
1546 | ||
9a4d6480 ZL |
1547 | 2004-08-15 Ziemowit Laski <zlaski@apple.com> |
1548 | ||
1549 | * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h. | |
1550 | (c-lang.o): Depend on c-objc-common.h. | |
45c8116d | 1551 | (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and |
9a4d6480 ZL |
1552 | c-objc-common.h; remove duplicate $(C_TREE_H) dependency. |
1553 | * c-lang.c: Include c-objc-common.h. | |
1554 | (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS, | |
1555 | LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION, | |
1556 | LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS, | |
45c8116d ZW |
1557 | LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P, |
1558 | LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE, | |
9a4d6480 ZL |
1559 | LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION, |
1560 | LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL, | |
45c8116d | 1561 | LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME, |
9a4d6480 ZL |
1562 | LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL, |
1563 | LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED, | |
1564 | LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL, | |
1565 | LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT, | |
1566 | LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE, | |
1567 | LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN, | |
1568 | LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS, | |
1569 | LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P, | |
1570 | LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING, | |
1571 | LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, | |
1572 | LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN, | |
1573 | LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE, | |
1574 | LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE, | |
1575 | LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE, | |
1576 | LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO, | |
1577 | LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS): | |
1578 | Move to c-objc-common.h. | |
1579 | * c-objc-common.c: Include c-objc-common.h. | |
1580 | * c-objc-common.h: New file. | |
1581 | ||
869464ba AT |
1582 | 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch> |
1583 | Andrew Pinski <pinskia@physics.uc.edu> | |
1584 | ||
1585 | PR target/14931 | |
1586 | * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub | |
1587 | style. | |
1588 | ||
4a90aeeb NS |
1589 | 2004-08-15 Nathan Sidwell <nathan@codesourcery.com> |
1590 | ||
1591 | * tree.h (build_int_cst): New. | |
1592 | (build_int_2): Remove. | |
1593 | * tree.c (build_int_2): Remove. | |
1594 | (build_int_cst): New. | |
1595 | (make_vector_type, build_common_tree_nodes, | |
1596 | build_common_tree_nodes_2): Use build_int_cst. | |
1597 | * builtins.c (expand_builtin_prefetch, expand_builtin_strstr, | |
1598 | expand_builtin_strpbrk, expand_builtin_fputs, | |
1599 | build_string_literal, expand_builtin_printf, | |
1600 | expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop, | |
1601 | fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii, | |
1602 | fold_builtin_isdigit, simplify_builtin_strstr, | |
1603 | simplify_builtin_strpbrk, fold_builtin_fputs, | |
1604 | simplify_builtin_sprintf): Use build_int_cst. | |
1605 | * c-common.c (start_fname_decls, fix_string_type, | |
1606 | c_common_nodes_and_builtins, c_init_attributes, | |
1607 | shorten_compare): Likewise. | |
1608 | * c-decl.c (complete_array_type, | |
1609 | check_bitfield_type_and_width): Likewise. | |
1610 | * c-lex.c (interpret_integer, lex_charconst): Likewise. | |
1611 | * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise. | |
1612 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
1613 | * c-typeck.c (really_start_incremental_init, push_init_level, | |
1614 | set_nonincremental_init_from_string): Likewise. | |
1615 | * calls.c (load_register_parameters): Likewise. | |
1616 | * convert.c (convert_to_pointer): Likewise. | |
1617 | * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref, | |
1618 | build_fn_info_type, build_ctr_info_value, build_gcov_info): | |
1619 | Likewise. | |
1620 | * except.c (init_eh, assign_filter_values, assign_filter_values): | |
1621 | Likewise. | |
1622 | * expmed.c (store_fixed_bit_field, extract_bit_field, | |
1623 | extract_fixed_bit_field, extract_split_bit_field, expand_shift, | |
1624 | expand_mult_const, expand_mult_highpart_adjust, extract_high_half, | |
1625 | expand_sdiv_pow2, expand_divmod, make_tree): Likewise. | |
1626 | * expr.c (convert_move, emit_group_load, emit_group_store, | |
1627 | expand_assignment, store_constructor, store_field, | |
1628 | expand_expr_real_1, reduce_to_bit_field_precision): Likewise. | |
1629 | * fold-const.c (force_fit_type, int_const_binop, fold_convert_const, | |
1630 | invert_truthvalue, optimize_bit_field_compare, | |
1631 | decode_field_reference, all_ones_mask_p, constant_boolean_node, | |
1632 | fold_div_compare, fold, fold_read_from_constant_string, | |
1633 | fold_negate_const, fold_abs_const, fold_not_const): Likewise. | |
1634 | * function.c (assign_parm_setup_block): Likewise. | |
1635 | * stmt.c (shift_return_value, expand_end_case_type, | |
1636 | estimate_case_costs): Likewise. | |
1637 | * stor-layout.c (layout_type, initialize_sizetypes, | |
1638 | set_min_and_max_values_for_integral_type): Likewise. | |
1639 | * tree-chrec.c (chrec_fold_multiply_poly_poly, | |
1640 | reset_evolution_in_loop): Likewise. | |
1641 | * tree-chrec.h (build_polynomial_chrec): Likewise. | |
1642 | * tree-complex.c (build_replicated_const): Likewise. | |
1643 | * tree-eh.c (honor_protect_cleanup_actions, | |
1644 | lower_try_finally_onedest, lower_try_finally_copy, | |
1645 | lower_try_finally_switch): Likewise. | |
1646 | * tree-mudflap.c (mf_build_string, mx_register_decls, | |
1647 | mudflap_register_call, mudflap_enqueue_constant): Likewise. | |
1648 | * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise. | |
1649 | * tree-pretty-print.c (dump_generic_node): Likewise. | |
1650 | * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref): | |
1651 | Likewise. | |
1652 | * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise. | |
1653 | * tree-ssa-loop-niter.c (number_of_iterations_cond, | |
1654 | loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type): | |
1655 | Likewise. | |
45c8116d | 1656 | |
4a90aeeb NS |
1657 | * config/alpha/alpha.c (alpha_initialize_trampoline, |
1658 | alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst. | |
1659 | * config/arm/arm.c (arm_get_cookie_size): Likewise. | |
1660 | * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise. | |
1661 | * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise. | |
1662 | * config/i860/i860.c (i860_va_start): Likewise. | |
1663 | * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise. | |
1664 | * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start, | |
1665 | mips_gimplify_va_arg_expr): Likewise. | |
1666 | * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise. | |
1667 | * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg, | |
1668 | add_compiler_branch_island): Likewise. | |
1669 | * config/s390/s390.c (s390_va_start): Likewise. | |
1670 | * config/sh/sh.c (sh_va_start): Likewise. | |
1671 | * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start): | |
1672 | Likewise. | |
1673 | * config/xtensa/xtensa.c (xtensa_va_start, | |
1674 | xtensa_gimplify_va_arg_expr): Likewise. | |
45c8116d | 1675 | |
4a90aeeb NS |
1676 | * objc/objc-act.c (build_objc_string_object, |
1677 | build_objc_symtab_template, init_def_list, init_objc_symtab, | |
1678 | init_module_descriptor, generate_static_references, | |
1679 | build_selector_translation_table, get_proto_encoding, | |
1680 | build_typed_selector_reference, build_selector_reference, | |
1681 | build_next_objc_exception_stuff, | |
1682 | build_method_prototype_list_template, generate_descriptor_table, | |
1683 | generate_protocols, build_protocol_initializer, | |
1684 | build_ivar_list_template, build_method_list_template, | |
1685 | build_ivar_list_initializer, generate_ivars_list, | |
1686 | generate_dispatch_table, generate_protocol_list, | |
1687 | build_category_initializer, build_shared_structure_initializer, | |
1688 | generate_shared_structures, handle_impent, | |
1689 | generate_objc_image_info): Use build_int_cst. | |
1690 | ||
2a68a7de BE |
1691 | 2004-08-15 Ben Elliston <bje@au.ibm.com> |
1692 | ||
1693 | * vec.h: Comment improvements. | |
1694 | ||
53fb4de3 RS |
1695 | 2004-08-14 Roger Sayle <roger@eyesopen.com> |
1696 | ||
1697 | * c-common.c (shorten_compare, pointer_int_sum, | |
1698 | c_common_truthvalue_conversion, boolean_increment): Replace calls | |
1699 | to build with calls to buildN. | |
1700 | * c-decl.c (complete_array_type, grokdeclarator): Likewise. | |
1701 | * c-gimplify.c (c_build_bind_expr, gimplify_c_loop, | |
1702 | gimplify_switch_stmt): Likewise. | |
1703 | * c-typeck.c (default_function_array_conversion, | |
1704 | build_component_ref, build_array_ref, build_function_call, | |
1705 | pointer_diff, build_unary_op, build_conditional_expr, | |
1706 | build_compound_expr, build_modify_expr, c_finish_goto_label, | |
1707 | c_finish_goto_ptr, c_finish_return, c_finish_loop, | |
1708 | c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt, | |
1709 | build_binary_op): Likewise. | |
1710 | ||
254b17dd SB |
1711 | 2004-08-15 Steven Bosscher <stevenb@suse.de> |
1712 | ||
1713 | * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK. | |
1714 | ||
a5252c84 JDA |
1715 | 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
1716 | ||
1717 | * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h, | |
1718 | curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h. | |
1719 | * fixinc/fixincl.x: Rebuilt. | |
1720 | ||
96a30b18 RS |
1721 | 2004-08-14 Richard Sandiford <rsandifo@redhat.com> |
1722 | ||
1723 | * config/mips/mips-protos.h (mips_symbolic_constant_p) | |
1724 | (mips_atomic_symbolic_constant_p, mips_stack_address_p) | |
1725 | (mips_small_data_pattern_p): Declare. | |
1726 | * config/mips/mips.h (CONST_GP_P): Moved from mips.c. | |
1727 | (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete. | |
1728 | * config/mips/mips.c (mips_symbolic_constant_p): Make global. | |
1729 | (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions. | |
1730 | (uns_arith_operand, const_arith_operand, arith_operand, sle_operand) | |
1731 | (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand) | |
1732 | (reg_or_const_float_1_operand, hilo_operand, extend_operator) | |
1733 | (macc_msac_operand, equality_op, cmp_op, trap_cmp_op) | |
1734 | (pc_or_label_operand, call_insn_operand, move_operand) | |
1735 | (consttable_operand, symbolic_operand, general_symbolic_operand) | |
1736 | (global_got_operand, local_got_operand, stack_operand) | |
1737 | (fp_register_operand, lo_operand, fcc_register_operand): Delete. | |
1738 | (mips_small_data_pattern_1): Renamed from small_data_pattern_1. | |
1739 | (mips_small_data_pattern_p): Replace previous small_data_pattern | |
1740 | predicate. Turn into a bool () (rtx) function. | |
1741 | * config/mips/predicates.md: New file. | |
1742 | * config/mips/mips.md: Include it. Use the target-independent | |
1743 | comparison_operator instead of cmp_op. Rename trap_cmp_op to | |
1744 | trap_comparison_operator and equality_op to equality_operator. | |
1745 | Replace uses of small_int with the equivalent const_arith_operand. | |
1746 | Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename | |
1747 | const_float_1_operand to const_1_operand. Rename fcc_register_operand | |
1748 | to fcc_reload_operand. | |
1749 | * config/mips/sb1.md: Rename fp_register_operand to fpr_operand. | |
1750 | ||
e41c9fcb JDA |
1751 | 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
1752 | ||
1753 | PR libstdc++/17005 partial fix. | |
1754 | * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE | |
1755 | except when generating ANSI/C89 code. | |
1756 | ||
af9c6659 NS |
1757 | 2004-08-14 Nathan Sidwell <nathan@codesourcery.com> |
1758 | ||
1759 | * c-common.c (shorten_compare): Use force_fit_type directly. | |
1760 | ||
37de1373 GP |
1761 | 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com> |
1762 | Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr> | |
1763 | Dave Korn <dk@artimi.com> | |
1764 | ||
1765 | * doc/install.texi (Building): Avoid duplicate reference to GNU | |
1766 | make requirement. | |
1767 | (*-*-solaris2*): Do not recommend GNU make any longer. Simplify. | |
1768 | ||
06d69cd3 RH |
1769 | 2004-08-14 Richard Henderson <rth@redhat.com> |
1770 | ||
1771 | * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types. | |
1772 | * config/alpha/alpha.c (function_value): Use PROMOTE_MODE. | |
1773 | ||
e427abbf RH |
1774 | 2004-08-13 Richard Henderson <rth@redhat.com> |
1775 | ||
1776 | * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode | |
1777 | for constant_call_address_operand. | |
1778 | (call_value_pop_1, call_value_1): Likewise. | |
1779 | (sibcall_value_1, call_value_1_rex64): Likewise. | |
1780 | ||
2b407936 JW |
1781 | 2004-08-13 James E Wilson <wilson@specifixinc.com> |
1782 | ||
1783 | * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe): | |
1784 | Correct mode from SFmode to DFmode. | |
1785 | ||
3e0d5ae2 ZL |
1786 | 2004-08-13 Ziemowit Laski <zlaski@apple.com> |
1787 | ||
1788 | * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup, | |
1789 | __cstring_object and __image_info sections with the no_dead_strip | |
1790 | attribute. | |
1791 | ||
e0704143 RS |
1792 | 2004-08-13 Roger Sayle <roger@eyesopen.com> |
1793 | David Billinghurst <David.Billinghurst@riotinto.com> | |
1794 | ||
1795 | PR libgfortran/15930 | |
1796 | * fixinc/inclhack.def (irix___generic1, irix___generic2): New. | |
1797 | * fixinc/fixincl.x: Regenerate. | |
1798 | * fixinc/tests/base/internal/math_core.h: New file. | |
1799 | ||
8768c655 RH |
1800 | 2004-08-13 Richard Henderson <rth@redhat.com> |
1801 | ||
1802 | * dbxout.c (NO_DBX_FUNCTION_END): Default to zero. | |
1803 | (dbxout_function_end): Remove ifdefs for it. | |
1804 | (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions. | |
1805 | ||
201312c2 RH |
1806 | 2004-08-13 Richard Henderson <rth@redhat.com> |
1807 | ||
1808 | * Makefile.in (insn-preds.o): Depend on TREE_H. | |
1809 | * genpreds.c (write_insn_preds_c): Include tree.h. | |
1810 | * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand, | |
1811 | reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand, | |
1812 | const48_operand, and_operand, or_operand, mode_width_operand, | |
1813 | mode_mask_operand, mul8_operand, const0_operand, | |
1814 | hard_fp_register_operand, hard_int_register_operand, | |
1815 | reg_or_cint_operand, some_operand, some_ni_operand, input_operand, | |
1816 | samegp_function_operand, direct_call_operand, small_symbolic_operand, | |
45c8116d | 1817 | global_symbolic_operand, call_operand, symbolic_operand, |
201312c2 RH |
1818 | dtp16_symbolic_operand, dtp32_symbolic_operand, |
1819 | gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand, | |
1820 | gottp_symbolic_operand, alpha_comparison_operator, | |
1821 | alpha_zero_comparison_operator, alpha_swapped_comparison_operator, | |
1822 | signed_comparison_operator, alpha_fp_comparison_operator, | |
1823 | divmod_operator, fix_operator, aligned_memory_operand, | |
1824 | unaligned_memory_operand, reg_or_unaligned_mem_operand, | |
1825 | any_memory_operand, reg_not_elim_operand, normal_memory_operand, | |
1826 | reg_no_subreg_operand, addition_operation): Move to predicates.md. | |
1827 | (reg_or_const_int_operand): Remove. Replace all users with | |
1828 | reg_or_cint_operand. | |
1829 | (tls_symbolic_operand_1): Export. Don't check mode or for CONST. | |
1830 | (resolve_reload_operand): Split out of aligned_memory_operand. | |
1831 | * config/alpha/alpha-protos.h: Update for exports. | |
1832 | * config/alpha/alpha.h (PREDICATE_CODES): Remove. | |
1833 | * config/alpha/alpha.md: Include predicates.md. | |
1834 | * config/alpha/predicates.md: New file. | |
1835 | ||
1e9c8405 RS |
1836 | 2004-08-13 Richard Sandiford <rsandifo@redhat.com> |
1837 | ||
1838 | * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno | |
1839 | fields with a pointer to the instruction definition. | |
1840 | (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent) | |
1841 | (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get) | |
1842 | (write_attr_case, write_const_num_delay_slots): Update accordingly. | |
1843 | (write_attr_case, write_const_num_delay_slots): Write the name of | |
1844 | an insn next to its case statement. | |
1845 | * genoutput.c (data): Add a filename field. | |
1846 | (gen_insn, gen_peephole, gen_expand, gen_split): Set it. | |
1847 | (output_insn_data): Print the location of each insn definition. | |
1848 | * genrecog.c (write_action): Print the name of an insn above | |
1849 | the statement that returns its code. | |
1850 | ||
1e5f1716 AP |
1851 | 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu> |
1852 | ||
1853 | * config/darwin-c.c (find_subframework_file): Fix spelling of cannot. | |
1854 | * config/libgloss.h: Likewise. | |
1855 | * config/arm/arm.c (arm_gen_load_multiple): Likewise. | |
1856 | * c4x/c4x-modes.def: Likewise. | |
1857 | * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise. | |
1858 | (c4x_rptb_nop_p): Likewise. | |
1859 | (c4x_rptb_valid_p): Likewise. | |
1860 | (c4x_rptb_insert): Likewise. | |
1861 | (c4x_address_conflict): Likewise. | |
1862 | * config/c4x/c4x.md: Likewise. | |
1863 | * config/frv/frv.md: Likewise. | |
1864 | * config/i386/athlon.md: Likewise. | |
1865 | * config/i386/i386.md: Likewise. | |
1866 | * config/i386/predicates.md: Likewise. | |
1867 | * config/ia64/ia64.c: Likewise. | |
1868 | * config/ia64/itanium1.md: Likewise. | |
1869 | * config/ia64/itanium2.md: Likewise. | |
1870 | * config/iq2000/iq2000.md: Likewise. | |
1871 | * config/mcore/mcore.c: Likewise. | |
1872 | * config/mips/mips.c: Likewise. | |
1873 | * config/mips/r3900.h: Likewise. | |
1874 | * config/mips/sb1.md: Likewise. | |
1875 | * config/pa/milli64.S: Likewise. | |
1876 | * config/pa/pa.c: Likewise. | |
1877 | * config/pa/pa.h: Likewise. | |
1878 | * config/rs6000/8540.md: Likewise. | |
1879 | ||
9bcc9490 DB |
1880 | 2004-08-13 Daniel Berlin <dberlin@dberlin.org> |
1881 | ||
1882 | * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU. | |
1883 | ||
68fe56fc R |
1884 | 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com> |
1885 | ||
1886 | * sh.md (cbranch define_delay) Use cond_delay_slot for | |
1887 | non-anulled condition too. | |
1888 | ||
85d346f1 DE |
1889 | 2004-08-12 David Edelsohn <edelsohn@gnu.org> |
1890 | ||
1891 | * config/rs6000/rs6000.c (any_parallel_operand): New predicate. | |
1892 | * config/rs6000/rs6000.h (PREDICATE_CODES): Add | |
1893 | any_parallel_operand, lmw_operation, stmw_operation, | |
a688b3ac | 1894 | mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand. |
85d346f1 DE |
1895 | * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use |
1896 | any_parallel_operand. | |
1897 | (return_and_restore_fpregs_{si,di}): Same. | |
1898 | ||
47d2cee5 ZW |
1899 | 2004-08-12 Zack Weinberg <zack@codesourcery.com> |
1900 | ||
1901 | * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL, | |
1902 | if pred->singleton != PARALLEL, issue a warning and pretend it was. | |
1903 | Also issue a warning for any predicate we don't know about. | |
1904 | ||
8fe75e43 RH |
1905 | 2004-08-12 Richard Henderson <rth@redhat.com> |
1906 | ||
1907 | * config/i386/i386.c (internal_label_prefix): Export. | |
1908 | (internal_label_prefix_len, struct ix86_address, | |
1909 | ix86_decompose_address, maybe_get_pool_constant, | |
1910 | ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes, | |
1911 | memory_address_length): Export. | |
47d2cee5 | 1912 | (any_fp_register_operand, fp_register_operand, |
8fe75e43 | 1913 | register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand, |
47d2cee5 | 1914 | x86_64_general_operand, x86_64_szext_general_operand, |
8fe75e43 RH |
1915 | x86_64_nonmemory_operand, x86_64_movabs_operand, |
1916 | x86_64_szext_nonmemory_operand, x86_64_immediate_operand, | |
1917 | x86_64_zext_immediate_operand, const_int_1_31_operand, | |
1918 | symbolic_operand, pic_symbolic_operand, local_symbolic_operand, | |
1919 | tls_symbolic_operand, global_dynamic_symbolic_operand, | |
1920 | local_dynamic_symbolic_operand, initial_exec_symbolic_operand, | |
1921 | local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand, | |
1922 | constant_call_address_operand, const0_operand, const1_operand, | |
1923 | const248_operand, const_0_to_3_operand, const_0_to_7_operand, | |
1924 | const_0_to_15_operand, const_0_to_255_operand, incdec_operand, | |
1925 | shiftdi_operand, reg_no_sp_operand, mmx_reg_operand, | |
1926 | general_no_elim_operand, nonmemory_no_elim_operand, | |
1927 | index_register_operand, q_regs_operand, flags_reg_operand, | |
1928 | non_q_regs_operand, zero_extended_scalar_load_operand, | |
1929 | vector_move_operand, no_seg_address_operand, sse_comparison_operator, | |
47d2cee5 | 1930 | ix86_comparison_operator, ix86_carry_flag_operator, |
8fe75e43 RH |
1931 | fcmov_comparison_operator, promotable_binary_operator, |
1932 | cmp_fp_expander_operand, ext_register_operand, binary_fp_operator, | |
47d2cee5 | 1933 | mult_operator, div_operator, arith_or_logical_operator, |
8fe75e43 RH |
1934 | memory_displacement_operand, cmpsi_operand, long_memory_operand, |
1935 | aligned_operand): Move to predicates.md as define_predicates. | |
1936 | (tls_symbolic_operand_1): Remove. | |
1937 | (x86_64_sign_extended_value): Merge into x86_64_immediate_operand. | |
1938 | (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand. | |
1939 | (legitimize_address): Merge tls_symbolic_operand contents. | |
1940 | (ix86_expand_move): Likewise. | |
1941 | * config/i386/i386-protos.h: Update for exports. | |
1942 | * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames. | |
1943 | (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove. | |
1944 | * config/i386/i386.md: Include predicates.md. | |
1945 | * config/i386/predicates.md: New file. | |
1946 | ||
ea3d83a7 MM |
1947 | 2004-08-13 Mark Mitchell <mark@codesourcery.com> |
1948 | ||
1949 | PR c++/16924 | |
1950 | * config/i386/winnt.c (i386_pe_mark_dllexport): Set | |
1951 | SYMBOL_REF_DECL. | |
1952 | (i386_pe_mark_dllimport): Likewise. | |
1953 | (i386_pe_encode_section_info): Likewise, when overriding | |
1954 | dllimport attribute. | |
1955 | ||
414adbdd GK |
1956 | 2004-08-12 Geoffrey Keating <geoffk@apple.com> |
1957 | ||
1958 | * configure.ac: When testing for flex, nm, ar, and bison, check | |
1959 | that they will actually be built. | |
1960 | * configure: Regenerate. | |
1961 | ||
c5443745 UW |
1962 | 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com> |
1963 | ||
1964 | * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define. | |
1965 | (MOVE_MAX_PIECES): Define. | |
1966 | ||
8fa5469d DP |
1967 | 2004-08-12 Devang patel <dpatel@apple.com> |
1968 | ||
1969 | * dbxout.c (dbxout_begin_prologue): New function. | |
1970 | (dbx_debug_hooks): Use new begin prologue hook. | |
1971 | (dbxout_function_end): Emit N_ENSYM. | |
1972 | * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs. | |
47d2cee5 | 1973 | |
b0b343db JJ |
1974 | 2004-08-12 Janis Johnson <janis187@us.ibm.com> |
1975 | ||
e390eb0a JJ |
1976 | * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first |
1977 | argument is float*. | |
1978 | ||
e34b6648 JJ |
1979 | * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type |
1980 | for vec_dss. | |
1981 | ||
b0b343db JJ |
1982 | * doc/extend.texi (AltiVec builtins): Fix description for recent |
1983 | changes. Update operation list to match current support. | |
1984 | ||
adf39f8f AK |
1985 | 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com> |
1986 | ||
1987 | * config/s390/s390.c (struct s390_frame_layout): New struct as element | |
1988 | of struct machine_function. | |
1989 | (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and | |
1990 | changed all uses. | |
1991 | (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and | |
1992 | changed all uses. | |
1993 | (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size) | |
1994 | (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros. | |
1995 | (s390_frame_area, s390_register_info): New functions. | |
1996 | (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check | |
1997 | for base register. | |
1998 | (s390_return_addr_rtx, s390_return_address_offset) | |
1999 | (s390_va_start, s390_gimplify_va_arg) | |
2000 | (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack | |
2001 | layouts. | |
2002 | (s390_frame_info): Functionality partly moved to s390_register_info. | |
2003 | Made adaptions for new stack layout. | |
2004 | (save_gprs, restore_gprs): Changed meaning of second parameter and | |
2005 | adapted all callers. | |
2006 | ||
2007 | * config/s390/s390.h (s390_backchain_string): New global variable. | |
2008 | (MASK_BACKCHAIN): Removed definition. | |
2009 | (TARGET_BACKCHAIN): Changed check. | |
2010 | (TARGET_KERNEL_BACKCHAIN): New macro. | |
2011 | (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain". | |
2012 | (TARGET_OPTIONS): Added "backchain", "no-backchain" and | |
2013 | "kernel-backchain". | |
2014 | (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts. | |
2015 | ||
2016 | * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN | |
2017 | as condition. Adjusted for new stack layout. | |
2018 | ||
2019 | * doc/invoke.texi: Added documentation for new option | |
2020 | "-mkernel-backchain" and adjusted documentation of "-mbackchain" and | |
2021 | "-mno-backchain". | |
2022 | ||
db151e9d PB |
2023 | 2004-08-12 Paul Brook <paul@codesourcery.com> |
2024 | ||
2025 | * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name. | |
2026 | (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation. | |
2027 | ||
02b75262 DD |
2028 | 2004-08-12 David Daney <ddaney@avtrex.com> |
2029 | ||
db151e9d | 2030 | * java/gcj.texi: Add subsection on signal usage. |
02b75262 | 2031 | |
f64d6991 DE |
2032 | 2004-08-12 David Edelsohn <edelsohn@gnu.org> |
2033 | ||
2034 | * expr.c (move_by_pieces): Set alignment for move to minimum of | |
2035 | MOVE_MAX_PIECES mode alignment and the largest non-slow mode | |
2036 | alignment, but not less than the original alignment. | |
2037 | (move_by_pieces_ninsns): Same. | |
2038 | (can_store_by_pieces): Similar for store with STORE_MAX_PIECES. | |
2039 | (store_by_pieces_1): Same. | |
2040 | ||
c597ef4e DN |
2041 | 2004-08-12 Diego Novillo <dnovillo@redhat.com> |
2042 | ||
2043 | PR tree-optimization/16867 | |
2044 | * tree.c (is_global_var): New function. | |
2045 | (needs_to_live_in_memory): Check for TREE_ADDRESSABLE. | |
2046 | Call is_global_var. | |
2047 | * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove. | |
2048 | Update all users. | |
2049 | (is_global_var): Declare. | |
2050 | * tree-dfa.c (dump_variable): Display global and addressable | |
2051 | attributes. | |
2052 | (add_referenced_var): Clarify documentation when marking | |
2053 | variables call-clobbered. | |
2054 | * tree-flow-inline.h (is_call_clobbered): Call is_global_var | |
2055 | instead of needs_to_live_in_memory. | |
2056 | (mark_call_clobbered): If the variable is a tag, mark it | |
2057 | DECL_EXTERNAL. | |
2058 | * tree-gimple.c (is_gimple_reg): Don't check for | |
2059 | TREE_ADDRESSABLE. | |
2060 | (is_gimple_non_addressable): Likewise. | |
2061 | * tree-ssa-alias.c (get_nmt_for): Always check whether the tag | |
2062 | needs to be marked call-clobbered. | |
2063 | (setup_pointers_and_addressables): Call is_global_var instead | |
2064 | of needs_to_live_in_memory. | |
2065 | * tree-ssa-dce.c (need_to_preserve_store): Remove. | |
2066 | Update all users with is_global_var. | |
2067 | (mark_stmt_if_obviously_necessary): Fix processing of aliased | |
2068 | stores. Don't check the virtual definitions. Rather, check | |
2069 | whether the store is going into global memory. | |
2070 | (find_obviously_necessary_stmts): Get the symbol from the PHI | |
2071 | result. | |
2072 | * tree-ssa-operands.c (get_call_expr_operands): Do not add | |
2073 | clobbering may-defs if the call does not have side effects. | |
2074 | ||
ab5c8549 JJ |
2075 | 2004-08-12 Jakub Jelinek <jakub@redhat.com> |
2076 | ||
2077 | PR c++/16276 | |
2078 | * output.h (default_function_rodata_section, | |
2079 | default_no_function_rodata_section): New prototypes. | |
2080 | * target.h (struct gcc_target): Add asm_out.function_rodata_section. | |
2081 | * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define. | |
2082 | (TARGET_ASM_OUT): Add it. | |
2083 | * varasm.c (default_function_rodata_section, | |
2084 | default_no_function_rodata_section): New functions. | |
2085 | * final.c (final_scan_insn): Call | |
2086 | targetm.asm_out.function_rodata_section instead of | |
2087 | readonly_data_section. | |
2088 | * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define. | |
2089 | * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise. | |
2090 | * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise. | |
2091 | * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION): | |
2092 | Likewise. | |
2093 | * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise. | |
2094 | * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION): | |
2095 | Likewise. | |
2096 | * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION): | |
2097 | Likewise. | |
2098 | * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise. | |
2099 | * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise. | |
2100 | * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document. | |
2101 | ||
5cf58f28 PB |
2102 | 2004-08-12 Paul Brook <paul@codesourcery.com> |
2103 | ||
2104 | * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh | |
2105 | frame info. | |
2106 | * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and | |
2107 | DWARF2_UNWIND_INFO. | |
2108 | ||
87e184d1 BE |
2109 | 2004-08-12 Ben Elliston <bje@au.ibm.com> |
2110 | ||
2111 | PR target/16286 | |
2112 | * config/rs6000/altivec.h: Change vector to __vector throughout. | |
2113 | (Except for the `vector' macro itself). | |
2114 | ||
e543e219 ZW |
2115 | 2004-08-12 Zack Weinberg <zack@codesourcery.com> |
2116 | ||
2117 | * genpreds.c: Add capability to generate predicate bodies as | |
2118 | well as function prototypes. Write function prototypes for | |
2119 | the generic predicates too. | |
2120 | (process_define_predicate, write_tm_preds_h, write_insn_preds_c) | |
2121 | (write_predicate_subfunction, mark_mode_tests, add_mode_tests) | |
2122 | (write_match_code, write_predicate_expr, write_one_predicate_function) | |
2123 | (parse_option): New functions. | |
2124 | (output_predicate_decls): Delete. | |
2125 | (main): Read the machine description, process DEFINE_PREDICATE or | |
2126 | DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c | |
2127 | as appropriate. | |
2128 | ||
2129 | * genrecog.c (struct decision_test): Replace index with | |
2130 | struct pred_data pointer. | |
2131 | (next_index): Remove, unused. | |
2132 | (pred_table, preds, special_mode_pred_table): Delete. | |
2133 | (compute_predicate_codes, process_define_predicate): New functions. | |
2134 | (validate_pattern, add_to_sequence, write_switch): Update for | |
2135 | new data structures. | |
2136 | (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE. | |
2137 | Check both error_count and have_error. | |
2138 | ||
2139 | * gensupport.c (in_fname, first_predicate): New globals. | |
2140 | (define_pred_queue, define_pred_tail): New RTL-pattern queue. | |
2141 | (predicate_table, last_predicate, old_pred_table) | |
2142 | (old_special_pred_table): New statics. | |
2143 | (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate) | |
2144 | (add_predicate, init_predicate_table): New functions. | |
2145 | (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE. | |
2146 | (init_md_reader_args_cb): Use the global in_fname. No need to zero | |
2147 | it or max_include_len. Call init_predicate_table. | |
2148 | (read_rtx): Run the predicate queue after the attribute queue | |
2149 | but before all the others. | |
2150 | * gensupport.h (in_fname, struct pred_data, first_predicate) | |
2151 | (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare. | |
2152 | * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE) | |
2153 | (DEFINE_SPECIAL_PREDICATE): New RTL codes. | |
2154 | * dummy-conditions.c: Don't include bconfig.h, system.h, | |
2155 | coretypes.h, tm.h, or system.h. Do include stddef.h. | |
2156 | Duplicate declaration of struct c_test from gensupport.h. | |
2157 | ||
2158 | * Makefile.in (OBJS-common): Add insn-preds.o. | |
2159 | (STAGESTUFF, .PRECIOUS): Add insn-preds.c. | |
2160 | (insn-preds.c, insn-preds.o): New rules. | |
2161 | (s-preds): Also generate insn-preds.c. | |
2162 | (dummy-conditions.o, genpreds$(build_exeext), genpreds.o): | |
2163 | Update dependencies. | |
2164 | (print-rtl.o, print-rtl1.o): Correct dependencies. | |
2165 | ||
2166 | * recog.h: Delete prototypes of predicate functions. | |
2167 | ||
2168 | * doc/md.texi (Predicates): New section with complete | |
2169 | documentation of operand/operator predicates. Remove some | |
2170 | incomplete documentation of predicates from other places. | |
2171 | * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to | |
2172 | PREDICATE_CODES; indicate that both are deprecated in favor | |
2173 | of define_predicate/define_special_predicate. | |
2174 | ||
2175 | * config/ia64/ia64.c: All predicate function definitions moved | |
2176 | to ia64.md, except | |
2177 | (small_addr_symbolic_operand, tls_symbolic_operand): Delete. | |
2178 | (ia64_expand_load_address, ia64_expand_move): | |
2179 | Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand. | |
2180 | ||
2181 | * config/ia64/ia64.md: All predicates now defined here. | |
2182 | (symbolic_operand): Is now a special predicate. | |
2183 | ||
2184 | * config/ia64/ia64.h: Declare ia64_section_threshold. | |
2185 | (PREDICATE_CODES): Delete. | |
2186 | ||
174283a3 RH |
2187 | 2004-08-12 Richard Henderson <rth@redhat.com> |
2188 | ||
2189 | * c-common.h (STATEMENT_LIST_HAS_LABEL): New. | |
2190 | * c-semantics.c (add_stmt): Set it. | |
2191 | * c-decl.c (finish_decl): Use it to create a new BIND_EXPR | |
2192 | before instantiating a variable sized type. | |
2193 | ||
15931954 RH |
2194 | 2004-08-12 Richard Henderson <rth@redhat.com> |
2195 | ||
2196 | * stor-layout.c (round_up, round_down): Move ... | |
e543e219 | 2197 | * fold-const.c (round_up, round_down): ... here. Use |
15931954 RH |
2198 | multiple_of_p to avoid any arithmetic at all. |
2199 | ||
57d1dd87 RH |
2200 | 2004-08-12 Richard Henderson <rth@redhat.com> |
2201 | ||
2202 | * gimplify.c (struct gimplify_init_ctor_preeval_data): New. | |
2203 | (gimplify_init_ctor_preeval_1): New. | |
2204 | (gimplify_init_ctor_preeval): New. | |
2205 | (gimplify_init_ctor_eval): New. | |
2206 | (gimplify_init_constructor): Use them. Always gimplify the LHS | |
2207 | object first. | |
2208 | ||
46e34f96 ZL |
2209 | 2004-08-12 Ziemowit Laski <zlaski@apple.com> |
2210 | ||
2211 | (This patch is part of merge of objc-improvements-branch | |
2212 | into mainline.) | |
2213 | ||
2214 | * doc/frontends.texi: Mention Objective-C++ in addition to | |
2215 | Objective-C. | |
2216 | * doc/install.texi: Add 'obj-c++' to list of configurable | |
2217 | languages. | |
2218 | * doc/invoke.texi: Rename Objective-C option headings to | |
2219 | indicate they also apply to Objective-C++. List file | |
2220 | extensions for Objective-C++ sources. Mention that | |
2221 | ObjC and ObjC++ compilations may also use C and C++ options, | |
2222 | respectively. Point users to doc/standards.texi for | |
2223 | further info on ObjC and ObjC++. | |
2224 | * doc/sourcebuild.texi: Mention the objcp/ directory and | |
2225 | the Objective-C++ sources it contains. | |
2226 | * doc/standards.texi: Update link to Apple ObjC site; | |
2227 | add link to gcc readings.html WWW doc. | |
2228 | ||
07f12d8b AM |
2229 | 2004-08-12 Alan Modra <amodra@bigpond.net.au> |
2230 | ||
2231 | * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28 | |
2232 | and 2004-07-14 changes. | |
2233 | ||
89aa5a20 PB |
2234 | 2004-08-12 Paul Brook <paul@codesourcery.com> |
2235 | ||
2236 | * doc/invoke.texi: Fix typo. | |
2237 | ||
5079843a DP |
2238 | 2004-08-11 Devang Patel <dpatel@apple.com> |
2239 | ||
2240 | * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip | |
2241 | and -no_dead_strip_inits_and_terms. | |
2242 | (LINK_SPEC): Same. | |
2243 | * doc/invoke.texi (Darwin Options): Document -dead_strip and | |
2244 | -no_dead_strip_inits_and_terms. | |
e543e219 | 2245 | |
876f13b0 PB |
2246 | 2004-08-11 Paul Brook <paul@codesourcery.com> |
2247 | ||
2248 | * config/arm/arm-protos.h (arm_finalize_pic) Rename ... | |
2249 | (arm_load_pic_register): ... to this. | |
2250 | * config/arm/arm.c (arm_finalize_pic): Rename ... | |
2251 | (arm_load_pic_register): ... to this. Always output insns at the | |
2252 | current location. Load via low reg in thumb mode. | |
2253 | (arm_expand_prologue): Call arm_load_pic_register. | |
2254 | (thumb_expand_prologue): Ditto. | |
2255 | * config/arm/arm.h (FINALIZE_PIC): Remove. | |
2256 | * config/arm/arm.md (builtin_setjmp_receiver): Call | |
2257 | arm_load_pic_register. | |
2258 | ||
57934c39 PB |
2259 | 2004-08-11 Paul Brook <paul@codesourcery.com> |
2260 | ||
2261 | * arm.c (thumb_force_lr_save): Add prototype. | |
2262 | (thumb_compute_save_reg_mask): New function. | |
2263 | (thumb_find_work_register): New function. | |
2264 | (arm_get_frame_offsets): Use thumb_compute_save_reg_mask. | |
2265 | (thumb_unexpanded_epilogue): Ditto. Remove redundant code. | |
2266 | Don't clobber r3 when removing pretend args. | |
2267 | (thumb_expand_prologue): Use thumb_compute_save_reg_mask. | |
2268 | (thumb_output_function_prologue): Use new functions. | |
2269 | (thumb_set_return_address): Use thumb_compute_save_reg_mask. | |
2270 | * arm.h (THUMB_REG_PUSHED_P): Remove. | |
2271 | ||
af874237 JW |
2272 | 2004-08-11 James E Wilson <wilson@specifixinc.com> |
2273 | ||
2274 | PR rtl-optimization/16490 | |
2275 | * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and | |
2276 | global_live_at_end for new basic block if already set for other blocks. | |
2277 | ||
c1618c0c DE |
2278 | 2004-08-11 David Edelsohn <edelsohn@gnu.org> |
2279 | ||
2280 | * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define. | |
2281 | ||
2282 | * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8. | |
2283 | (mfcr rlwinm rlwinm patterns): Set length to 12. | |
2284 | ||
1a24f92f AM |
2285 | 2004-08-11 Andrew MacLeod <amacleod@redhat.com> |
2286 | ||
2287 | * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops, | |
2288 | get_vuse_ops,get_v_must_def_ops): Add operand structure reference. | |
2289 | (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct. | |
2290 | (start_ssa_stmt_operands): Delete. | |
e543e219 | 2291 | * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new |
1a24f92f AM |
2292 | struct stmt_operands_d. |
2293 | (build_ssa_operands): New extern entry point. | |
e543e219 | 2294 | * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand |
1a24f92f AM |
2295 | building code, replace with create_ssa_artficial_load_stmt(). |
2296 | * tree-ssa-operands.c (struct voperands_d): Delete. | |
2297 | (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector. | |
2298 | (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *). | |
e543e219 | 2299 | (free_uses, free_defs, free_vuses, free_v_may_defs, |
1a24f92f AM |
2300 | free_v_must_defs): Remove dealloc parameter. |
2301 | (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete. | |
2302 | (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs, | |
2303 | finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand | |
2304 | vector comparisons, ssa_name reuse, and allocations here. | |
2305 | (verify_start_operands): Delete. | |
2306 | (finalize_ssa_stmt_operands): Set new operands by calling finalize | |
2307 | routines. | |
2308 | (start_ssa_stmt_operands): Move from tree-flow-inline.h. | |
2309 | (append_def, append_usei): Simplify to simple accumulation. | |
2310 | (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding | |
2311 | duplicates and simple accumulation. | |
2312 | (free_ssa_operands): Free vectors in a stmt_operand structure. | |
2313 | (build_ssa_operands): New. Create a new stmt_operand structure from | |
e543e219 | 2314 | a stmt and an old set of stmt_operands. |
1a24f92f AM |
2315 | (get_stmt_operands): Simplify and call build_ssa_operands. |
2316 | (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands, | |
2317 | get_call_expr_operands, add_stmt_operand, add_call_clobber_ops, | |
2318 | add_call_read_ops): Don't pass prev_vops around anymore. | |
2319 | (note_addressable): Return if no stmt annotation. | |
2320 | (copy_virtual_operands): Access v_may_def operands through a struct. | |
2321 | (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's | |
2322 | hash tables without treating the stmt as a real stmt. | |
2323 | * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access | |
2324 | v_may_def def and use through a struct instead of 2 array elements. | |
2325 | (struct v_may_def_optype_d): Use v_may_def_operand_type. | |
2326 | (struct stmt_operands_d): New. Struct for storing all operand vectors. | |
2327 | ||
a77655b1 NC |
2328 | 2004-08-11 Nick Clifton <nickc@redhat.com> |
2329 | ||
2330 | * config/arm/arm.c (arm_is_longcall_p): Update comment describing | |
2331 | this funciton's behaviour. Return true when the current function | |
2332 | has a section attribute and -mlong-calls is in effect. | |
2333 | * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the | |
2334 | short-call marker when -mlong-calls is in effect and the function | |
2335 | has a section attribute. | |
2336 | ||
6f4a43e0 ZW |
2337 | 2004-08-10 Zack Weinberg <zack@codesourcery.com> |
2338 | ||
2339 | * stmt.c (expand_return): If asked to return the RESULT_DECL, | |
2340 | just call expand_value_return on result_rtl. | |
2341 | ||
1a186ec5 RH |
2342 | 2004-08-10 Richard Henderson <rth@redhat.com> |
2343 | ||
2344 | * builtins.def (BUILT_IN_STACK_ALLOC): Remove. | |
2345 | * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove. | |
2346 | * dwarf2out.c (loc_descriptor): Handle PARALLEL here ... | |
2347 | (add_location_or_const_value_attribute): ... not here. Use | |
2348 | loc_descriptor_from_tree if possible. | |
2349 | (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree. | |
2350 | Simplify address handling. Handle DECL_VALUE_EXPR. Handle register | |
2351 | values specially. | |
2352 | (loc_descriptor_from_tree): New. Update callers. | |
2353 | * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables. | |
2354 | * gimplify.c (gimplify_decl_expr): Lower variable sized types to | |
2355 | pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack. | |
2356 | (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC | |
2357 | and BUILT_IN_STACK_RESTORE. | |
2358 | (gimplify_expr): Lower DECL_VALUE_EXPR decls. | |
2359 | * stmt.c (expand_stack_alloc): Remove. | |
2360 | * tree-mudflap.c (mx_register_decls): Don't look for | |
2361 | BUILT_IN_STACK_ALLOC. | |
2362 | * tree-nested.c (convert_local_reference): Likewise. | |
2363 | * tree.h (DECL_VALUE_EXPR): New. | |
2364 | ||
7109c195 RH |
2365 | 2004-08-10 Richard Henderson <rth@redhat.com> |
2366 | ||
bf4ccdd6 RH |
2367 | * stor-layout.c (round_up): Check for 0/1 before dividing. |
2368 | (round_down): Likewise. | |
2369 | ||
7109c195 RH |
2370 | * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL. |
2371 | ||
b3f8d95d MM |
2372 | 2004-08-09 Mark Mitchell <mark@codesourcery.com> |
2373 | ||
2374 | * config.gcc (arm*-*-eabi*): New target. | |
2375 | * defaults.h (TARGET_LIBGCC_FUNCS): New macro. | |
2376 | (TARGET_LIB_INT_CMP_BIASED): Likewise. | |
2377 | * expmed.c (expand_divmod): Try a two-valued divmod function as a | |
2378 | last resort. | |
2379 | * gthr.h: Remove bogus tokens at end of #pragma. | |
2380 | * optabs.c (expand_twoval_binop_libfunc): New function. | |
2381 | (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case. | |
2382 | (prepare_float_lib_cmp): Try reversing the condition. | |
2383 | (debug_optab_libfuncs): New function. | |
2384 | * optabs.h (expand_twoval_binop_libfunc): Declare. | |
2385 | * config/arm/arm.c (arm_init_libfuncs): New function. | |
2386 | (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT. | |
2387 | (TARGET_INIT_LIBFUNCS): Define it. | |
2388 | * config/arm/arm.h (TARGET_BPABI): New macro. | |
2389 | * config/arm/arm-protos.h | |
2390 | (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT. | |
2391 | * config/arm/bpabi.S: New file. | |
2392 | * config/arm/bpabi.c: Likewise. | |
2393 | * config/arm/bpabi.h: Likewise. | |
2394 | * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias. | |
2395 | (__aeabi_drsub): Likewise. | |
2396 | (__aeabi_dsub): Likewise. | |
2397 | (__aeabi_dadd): Likewise. | |
2398 | (__aeabi_ui2d): Likewise. | |
2399 | (__aeabi_i2d): Likewise. | |
2400 | (__aeabi_f2d): Likewise. | |
2401 | (__aeabi_dmul): Likewise. | |
2402 | (__aeabi_ddiv): Likewise. | |
2403 | (__aeabi_cdrcmple): Likewise. | |
2404 | (__aeabi_cdcmpeq): Likewise. | |
2405 | (__aeabi_cdcmple): Likewise. | |
2406 | (__aeabi_dcmpeq): Likewise. | |
2407 | (__aeabi_dcmplt): Likewise. | |
2408 | (__aeabi_dcmple): Likewise. | |
2409 | (__aeabi_dcmpge): Likewise. | |
2410 | (__aeabi_dcmpgt): Likewise. | |
2411 | (__aeabi_dcmpun): Likewise. | |
2412 | (__aeabi_d2iz): Likewise. | |
2413 | (__aeabi_d2uiz): Likewise. | |
2414 | (__aeabi_d2f): Likewise. | |
2415 | * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias. | |
2416 | (__aeabi_frsub): Likewise. | |
2417 | (__aeabi_fsub): Likewise. | |
2418 | (__aeabi_fadd): Likewise. | |
2419 | (__aeabi_ui2f): Likewise. | |
2420 | (__aeabi_i2f): Likewise. | |
2421 | (__aeabi_fmul): Likewise. | |
2422 | (__aeabi_fdiv): Likewise. | |
2423 | (__aeabi_cfrcmple): Likewise. | |
2424 | (__aeabi_cfcmpeq): Likewise. | |
2425 | (__aeabi_cfcmple): Likewise. | |
2426 | (__aeabi_fcmpeq): Likewise. | |
2427 | (__aeabi_fcmplt): Likewise. | |
2428 | (__aeabi_fcmple): Likewise. | |
2429 | (__aeabi_fcmpge): Likewise. | |
2430 | (__aeabi_fcmpgt): Likewise. | |
2431 | (__aeabi_fcmpun): Likewise. | |
2432 | (__aeabi_f2iz): Likewise. | |
2433 | (__aeabi_f2uiz): Likewise. | |
2434 | * config/arm/lib1funcs.asm (ARM_CALL): New macro. | |
2435 | (__aeabi_uidivmod): New function or alias. | |
2436 | (__aeabi_idivmod): Likewise. | |
2437 | (__aeabi_idiv0): Likewise. | |
2438 | (__aeabi_ldiv0): Likewise. | |
2439 | (__aeabi_llsr): Likewise. | |
2440 | (__aeabi_lasr): Likewise. | |
2441 | (__aeabi_llsl): Likewise. | |
2442 | (bpabi.S): Include it. | |
2443 | * config/arm/libgcc-bpabi.ver: New file. | |
2444 | * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove. | |
2445 | (LINK_SPEC): Remove. | |
2446 | * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and | |
2447 | __aeabi_ulcmp. | |
2448 | * config/arm/t-bpabi: New file. | |
2449 | * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry. | |
2450 | (TARGET_LIB_INT_CMP_BIASED): Likewise. | |
6f4a43e0 | 2451 | |
fba73eb1 DE |
2452 | 2004-08-10 David Edelsohn <edelsohn@gnu.org> |
2453 | ||
2454 | * config/rs6000/rs6000-protos.h (expand_block_clear): Declare. | |
2455 | * config/rs6000/rs6000.md (clrmemsi): New pattern. | |
2456 | * config/rs6000/rs6000.c (expand_block_clear): New function. | |
2457 | (expand_block_move): Convert alignment to bits. Use SImode and | |
2458 | HImode for unaligned addresses if not STRICT_ALIGNMENT. | |
2459 | ||
2460 | 2004-08-10 Caroline Tice <ctice@apple.com> | |
c295317d CT |
2461 | |
2462 | * varasm.c (unlikely_section_label): New global variable. | |
2463 | (unlikely_text_section_name): New global variable. | |
2464 | (text_section): Remove alignment statement. | |
6f4a43e0 | 2465 | (unlikely_text_section): Remove alignment statement; use |
c295317d CT |
2466 | unlikely_section_label rather than hard-coded string. |
2467 | (assemble_start_function): Initialize unlikely_section_label and | |
2468 | unlikely_text_section_name; make sure cold section is properly | |
2469 | aligned at start of function; output unlikely_section_label if | |
2470 | appropriate. | |
2471 | ||
68f9c5e2 UW |
2472 | 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com> |
2473 | ||
2474 | * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare. | |
2475 | * config/s390/s390.c (s390_canonicalize_comparison): New function. | |
2476 | * config/s390/s390.h (CANONICALIZE_COMPARISON): Define. | |
2477 | * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext", | |
2478 | "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove. | |
2479 | ("*tmqi_mem"): Remove SUBREG from pattern. | |
2480 | ("*anddi3_cconly"): Prevent accidentally matching TM pattern. | |
2481 | ("*andsi3_cconly"): Likewise. | |
6f4a43e0 | 2482 | |
22116d84 L |
2483 | 2004-08-10 H.J. Lu <hongjiu.lu@intel.com> |
2484 | ||
2485 | PR target/16909 | |
2486 | * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI. | |
2487 | ||
c75095b2 JJ |
2488 | 2004-08-10 Janis Johnson <janis187@us.ibm.com> |
2489 | ||
2490 | * doc/sourcebuild.texi (compat testing): Document available test | |
2491 | framework commands. Use the preferred spelling of DejaGnu. | |
2492 | ||
98975653 DB |
2493 | 2004-08-10 Daniel Berlin <dberlin@dberlin.org> |
2494 | ||
2495 | * lambda.h: Add matrix type, and prototypes for remainder of | |
2496 | matrix and vector functions. | |
2497 | (lambda_vector_mult_const): New function. | |
2498 | (lambda_vector_negate): Ditto. | |
2499 | (lambda_vector_add): Ditto. | |
2500 | (lambda_vector_add_mc): Ditto. | |
2501 | (lambda_vector_copy): Ditto. | |
2502 | (lambda_vector_zerop): Ditto. | |
2503 | (lambda_vector_equal): Ditto. | |
2504 | (lambda_vector_min_nz): Ditto. | |
2505 | (lambda_vector_first_nz): Ditto. | |
2506 | (lambda_vector_matrix_mult): Ditto. | |
2507 | * lambda-mat.c: New file. | |
2508 | * Makefile.in (lambda-mat.o): New. | |
2509 | ||
68b9f53b AM |
2510 | 2004-08-10 Andrew MacLeod <amacleod@redhat.com> |
2511 | ||
2512 | * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt | |
2513 | after linking stmt into the program. | |
2514 | (bsi_remove): Don't call modify_stmt. | |
6f4a43e0 | 2515 | * tree-complex.c (update_complex_assignment, |
68b9f53b | 2516 | expand_complex_comparison): Call modify_stmt after changing the stmt. |
6f4a43e0 | 2517 | * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not |
68b9f53b AM |
2518 | removing the stmt. |
2519 | * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing | |
2520 | the stmt, and only if needed. | |
2521 | * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy | |
2522 | expression. | |
2523 | (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param. | |
2524 | (simplify_cond_and_lookup_avail_expr): Use modify_stmt. | |
2525 | (simplify_switch_and_lookup_avail_expr): Don't take an annotation param. | |
6f4a43e0 | 2526 | (eliminate_redundant_computations): Don't pass an annotation. Call |
68b9f53b AM |
2527 | modify_stmt rather than setting the annotation directly. |
2528 | (record_equivalences_from_stmt): Remove unused local 'j'. | |
2529 | (cprop_operand): Take a stmt rather than an annotation as a parameter. | |
2530 | Call modify_stmt. | |
2531 | (cprop_into_stmt): Pass stmt rather than annotation. | |
2532 | (update_rhs_and_lookup_avail_expr): Call modify_stmt. | |
6f4a43e0 | 2533 | * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than |
68b9f53b AM |
2534 | modify_stmt. |
2535 | * tree-ssa.c (propagate_into_addr): Dont call modify_stmt. | |
2536 | ||
01c98570 JM |
2537 | 2004-08-10 Jason Merrill <jason@redhat.com> |
2538 | ||
6c9c4526 | 2539 | PR middle-end/16948 |
01c98570 JM |
2540 | * function.c (expand_function_start): Handle DECL_BY_REFERENCE on |
2541 | the RESULT_DECL. | |
2542 | ||
b2ddaebb GK |
2543 | 2004-08-10 Geoffrey Keating <geoffk@apple.com> |
2544 | ||
2545 | * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the | |
2546 | hash function. | |
2547 | ||
23657388 RS |
2548 | 2004-08-10 Roger Sayle <roger@eyesopen.com> |
2549 | ||
2550 | * config/mips/mips.md: New reciprocal square root patterns that | |
2551 | match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns. | |
2552 | ||
c9ca9b88 PB |
2553 | 2004-08-10 Paul Brook <paul@codesourcery.com> |
2554 | ||
2555 | * config/arm/arm-protos.h (arm_set_return_address, | |
2556 | thumb_set_return_address): Add prototypes. | |
2557 | * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove. | |
2558 | * config/arm/arm.c (arm_compute_func_type, | |
2559 | use_return_insn, arm_compute_save_reg0_reg12_mask, | |
2560 | arm_compute_save_reg_mask, arm_output_function_prologue, | |
2561 | arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with | |
2562 | current_function_calls_eh_return. | |
2563 | (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace | |
2564 | old eh code. | |
2565 | (arm_set_return_address, thumb_set_return_address): New functions. | |
2566 | * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO, | |
2567 | ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define. | |
2568 | * config/arm/arm.md (VUNSPEC_EH_RETURN): Add. | |
2569 | (epilogue): Use the stackadj register. | |
2570 | (eh_return, arm_eh_return, thumb_eh_return): New pattern. | |
2571 | ||
45d78e7f JJ |
2572 | 2004-08-10 Jakub Jelinek <jakub@redhat.com> |
2573 | ||
2574 | PR target/3144 | |
2575 | * expr.c (move_by_pieces_ninsns): Add max_size argument. | |
2576 | (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it. | |
2577 | (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it. | |
2578 | (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P, | |
2579 | but using MOVE_RATIO. | |
2580 | (move_by_pieces): Pass max_size to move_by_pieces_ninsns. | |
2581 | (can_store_by_pieces): Change max_size type to unsigned int. | |
2582 | (store_by_pieces_1): Likewise. Pass max_size to | |
2583 | move_by_pieces_ninsns. | |
2584 | * config/s390/s390.h (STORE_BY_PIECES_P): Define. | |
2585 | * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 | |
2586 | to move_by_pieces_ninsns. | |
2587 | (STORE_BY_PIECES_P): Define. | |
2588 | * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 | |
2589 | to move_by_pieces_ninsns. | |
2590 | * doc/tm.texi (STORE_BY_PIECES_P): Document changed default. | |
2591 | ||
2592 | * config/i386/i386.h (CLEAR_RATIO): Define. | |
2593 | ||
25f3e06c PB |
2594 | 2004-08-09 Paolo Bonzini <bonzini@gnu.org> |
2595 | ||
2596 | * expr.c (expand_expr_real_1): Add back code that was not dead. | |
2597 | ||
6a3203c8 AP |
2598 | 2004-08-09 Andrew Pinski <apinski@apple.com> |
2599 | ||
2600 | * c-common.c (c_common_get_alias_set): Set the aliasing set of the type | |
2601 | which is found to be compatible before returning the aliasing set. | |
2602 | ||
b9bfca81 DJ |
2603 | 2004-08-09 Daniel Jacobowitz <dan@debian.org> |
2604 | ||
2605 | * ggc-zone.c (struct alloc_zone): Add statistics counters. | |
2606 | (always_collect): New flag. | |
2607 | (ggc_alloc_zone_1): Update statistics support. Don't include | |
2608 | overhead in allocated counter. | |
2609 | (sweep_pages): Update allocated counter for large pages. Don'y | |
2610 | include overhead. | |
2611 | (ggc_collect_1): Always collect. | |
2612 | (ggc_collect): Honor always_collect flag. Sum all zones to decide | |
2613 | whether to collect. | |
2614 | (SCALE, LABEL): New macros. | |
2615 | (ggc_print_statistics): Add statistics support. | |
2616 | ||
fdded401 RS |
2617 | 2004-08-09 Roger Sayle <roger@eyesopen.com> |
2618 | ||
2619 | * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool. | |
2620 | (init_expmed): Fix potential overrun problem with "all.reg". | |
2621 | (expand_sdiv2_pow2): Add an alternate implementation for signed | |
2622 | division, if the target provides a suitable conditional move insn. | |
2623 | ||
9d8646d7 PB |
2624 | 2004-08-09 Paul Brook <paul@codesourcery.com> |
2625 | Richard Henderson <rth@redhat.com> | |
2626 | ||
2627 | * unwind-dw2.c (uw_install_context_1): Update target saved stack | |
2628 | pointer. | |
2629 | ||
d37e6b50 GK |
2630 | 2004-08-09 Geoffrey Keating <geoffk@apple.com> |
2631 | ||
2632 | * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit. | |
2633 | Check DATA limit only if there's no AS limit. Ignore insanely | |
2634 | low DATA limits. | |
2635 | (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8, | |
2636 | but take care that the AS limit isn't overrun. | |
2637 | * doc/invoke.texi: Update documentation of min-heapsize parameter. | |
2638 | ||
56b043c8 JL |
2639 | 2004-08-09 Jeff Law <law@redhat.com> |
2640 | ||
2641 | * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c | |
2642 | (tree-ssa-threadupdate.o): Add dependencies. | |
2643 | * tree-ssa-threadupdate.c: New file. | |
2644 | * tree-flow.h (incoming_edge_threaded): New flag in block annotation. | |
2645 | (rewrite_vars_out_of_ssa): Remove prototype. | |
2646 | (cleanup_tree_cfg): Returns a bool. | |
2647 | * tree.h (thread_through_all_blocks): Prototype. | |
2648 | * tree-outof-ssa.c (SSANORM_*): Move into here. | |
2649 | (remove_ssa_form): Now static. | |
2650 | (rewrite_vars_out_of_ssa): Kill. | |
2651 | * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill. | |
2652 | * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c. | |
2653 | (remove_ssa_form, register_partitions_for_vars): Kill declarations. | |
2654 | * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if | |
2655 | anything was changed. | |
2656 | * tree-phinodes.c (add_phi_arg): Get the block for the PHI | |
2657 | from the PHI's annotation rather than the edge associated with | |
2658 | the new argument. | |
2659 | * tree-ssa-dom.c (redirection_edges): Kill. | |
2660 | (redirect_edges_and_update_ssa_graph): Kill. | |
2661 | (tree_ssa_dominator_optimize): Do not reset forwardable flag | |
2662 | for blocks anymore. Do not initialize redirection_edges. | |
2663 | Call thread_through_all_blocks. Simplify code for cleanup | |
2664 | of the CFG and iterating. No longer call cleanup_tree_cfg | |
2665 | outside the iteration loop. | |
2666 | (thread_across_edge): No longer mess with forwardable blocks. | |
2667 | ||
9b305d55 ZW |
2668 | 2004-08-09 Zack Weinberg <zack@codesourcery.com> |
2669 | ||
2670 | * explow.c (memory_address): Use memory_address_p. | |
2671 | * recog.c (general_operand): Likewise. | |
2672 | * regrename.c: No need to define REG_OK_STRICT. | |
2673 | ||
27fb79ad SB |
2674 | 2004-08-09 Steven Bosscher <stevenb@suse.de> |
2675 | ||
2676 | * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM): | |
2677 | New timers. | |
2678 | * gcse.c: Include timevar.h. | |
2679 | (const_prop_count, copy_prop_count): Rename to global_const_prop_count | |
2680 | and global_copy_prop_count. | |
2681 | (local_const_prop_count, local_copy_prop_count): New static globals. | |
2682 | (gcse_main): Set the right timevar for each pass. | |
2683 | (cprop_jump): Increment global_const_prop_count when a constant is | |
2684 | propagated. Add "GLOBAL" to dump output. | |
2685 | (cprop_insn): Increment global_const_prop_count when a constant is | |
2686 | propagated, or global_copy_prop_count when a copy is propagated. | |
2687 | (do_local_cprop): Likewise for local_const_prop_count and | |
2688 | local_copy_prop_count. | |
2689 | (one_cprop_pass): Initialize const/cprop counters to zero. | |
2690 | Print out results of local and global const/cprop separately. | |
2691 | (bypass_block): Break over-length line. | |
702d4b73 SB |
2692 | * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies |
2693 | for bb-reorder.o and tracer.o. | |
27fb79ad | 2694 | |
7efcb746 PB |
2695 | 2004-08-09 Paolo Bonzini <bonzini@gnu.org> |
2696 | ||
2697 | * Makefile.in (GTFILES): Remove stmt.c | |
2698 | (stmt.o): Do not depend on gt-stmt.h. | |
2699 | * emit-rtl.c (emit_line_note): Do not call | |
2700 | set_file_and_line_for_stmt. | |
2701 | * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case | |
2702 | do everything. | |
2703 | * function.c (free_after_parsing): Do not free STMT field. | |
2704 | (allocate_struct_function): Do not call init_stmt_for_function. | |
2705 | (assign_stack_temp_for_type): Do not accept values of keep | |
2706 | other than 0 or 1. | |
2707 | (init_temp_slots): Do not initialize removed variables. | |
2708 | * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL | |
2709 | and X_VAR_TEMP_SLOT_LEVEL fields. | |
2710 | * rtl.h (set_file_and_line_for_stmt): Remove. | |
2711 | * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK, | |
2712 | struct stmt_status, cond_stack, case_stack, nesting_stack, | |
2713 | nesting_depth, emit_locus, set_file_and_line_for_stmt, | |
2714 | same_case_target_p, init_stmt_for_function, emit_nop, | |
2715 | expand_start_cond, expand_start_elseif, expand_start_else, | |
2716 | expand_elseif, expand_end_cond): Remove. | |
2717 | (preserve_subexpressions_p): Remove references to CFUN->STMT. | |
2718 | (expand_start_case, expand_end_case_type): Remove, merge into... | |
2719 | (expand_case): ... this one, including other bits from | |
2720 | expand_expr_real_1. Inline same_case_target_p. Turn members | |
2721 | of CASE_STACK into local variables. | |
2722 | (emit_case_bit_tests): Inline same_case_target_p. | |
2723 | (add_case_node): Add HEAD argument, return new head of the list, | |
2724 | do not handle default label here. | |
2725 | * tree.h (expand_start_cond, expand_end_cond, expand_start_else, | |
2726 | expand_start_elseif, current_nesting_level, expand_start_case, | |
2727 | expand_end_case_type, expand_end_case, add_case_node, | |
2728 | init_stmt_for_function, expand_elseif): Remove prototypes. | |
2729 | (expand_case): Add prototype. | |
2730 | ||
c4d70ce3 PB |
2731 | 2004-08-09 Paolo Bonzini <bonzini@gnu.org> |
2732 | ||
2733 | * expr.c (expand_expr_real_1): Use optab_for_tree_code. | |
2734 | ||
2735 | 2004-08-09 Paolo Bonzini <bonzini@gnu.org> | |
e5bacf32 PB |
2736 | |
2737 | * expr.c (var_rtx): Remove. | |
2738 | (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR, | |
2739 | LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR, | |
2740 | TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>: | |
2741 | Abort. | |
2742 | (expand_expr_real_1) <COND_EXPR>: Remove most special cases. | |
2743 | * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove. | |
2744 | * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove. | |
2745 | ||
d72372e4 MH |
2746 | 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com> |
2747 | Ayal Zaks <zaks@il.ibm.com> | |
2748 | ||
2749 | * common.opt (freschedule-modulo-scheduled-loops): New flag. | |
2750 | * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK. | |
2751 | * modulo-sched.c (sms_schedule): Emit a note to disable scheduling | |
2752 | when -freschedule-modulo-scheduled-loops flag is not specified. | |
2753 | (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps, | |
2754 | add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts): | |
2755 | More accurate placing of insn in row of partial schedule. | |
2756 | (ps_insn_find_column): New function. | |
2757 | * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note. | |
2758 | * sched-rgn.c (sched_is_disabled_for_current_region_p): New. | |
2759 | (schedule_region): Use sched_is_disabled_for_current_region_p. | |
2760 | * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops. | |
2761 | ||
0737fbff L |
2762 | 2004-08-07 H.J. Lu <hongjiu.lu@intel.com> |
2763 | ||
2764 | * config/i386/i386.c (ix86_expand_clrmem): Revert the last | |
2765 | change. | |
2766 | ||
11c4576f L |
2767 | 2004-08-07 H.J. Lu <hongjiu.lu@intel.com> |
2768 | ||
2769 | * config/i386/i386.c (ix86_expand_clrmem): Properly call | |
2770 | gen_strset for 64bit target. | |
2771 | ||
34def210 OH |
2772 | 2004-08-07 Olivier Hainque <hainque@act-europe.fr> |
2773 | ||
2774 | * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition. | |
2775 | ||
5201931e JM |
2776 | 2004-08-07 Jason Merrill <jason@redhat.com> |
2777 | ||
cc77ae10 JM |
2778 | Make return in memory explicit. |
2779 | * function.c (aggregate_value_p): Check DECL_BY_REFERENCE. | |
2780 | (assign_parm_find_data_types): Remove code for old front end | |
2781 | invisible reference handling. | |
2782 | (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL. | |
2783 | (expand_function_end): Likewise. | |
2784 | * gimplify.c (gimplify_return_expr): Handle a dereferenced | |
2785 | RESULT_DECL. | |
2786 | * tree-inline.c (copy_body_r): Don't bother looking for &* anymore. | |
2787 | (declare_return_variable): Handle DECL_BY_REFERENCE. | |
2788 | * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL. | |
2789 | (cp_genericize_r): Use convert_from_reference. | |
2790 | Don't dereference a RESULT_DECL directly inside a RETURN_EXPR. | |
2791 | (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE. | |
2792 | ||
5201931e JM |
2793 | * c-common.c (c_warn_unused_result): Check TREE_USED before |
2794 | warning about a CALL_EXPR with an unused value. | |
2795 | ||
2ed9e527 MM |
2796 | 2004-08-06 Mark Mitchell <mark@codesourcery.com> |
2797 | ||
2798 | * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options | |
2799 | to the compiler. Use -fshort-wchar by default. | |
2800 | ||
12183e0f PH |
2801 | 2004-08-06 Pat Haugen <pthaugen@us.ibm.com> |
2802 | ||
2803 | * params.def (PARAM_MIN_CROSSJUMP_INSNS): New. | |
2804 | * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match | |
2805 | threshhold. | |
2806 | * doc/invoke.texi (param): Document min-crossjump-insns. | |
2807 | ||
eaac4679 RS |
2808 | 2004-08-06 Richard Sandiford <rsandifo@redhat.com> |
2809 | ||
2810 | PR c/13282 | |
2811 | * c.opt (Wmissing-field-initializers): New option. | |
2812 | * c-opts.c (c_common_post_options): Make -Wextra turn it on by default. | |
2813 | * c-typeck.c (pop_init_level): Guard the missing field warning with | |
2814 | warn_missing_field_initializers rather than extra_warnings. | |
2815 | * doc/invoke.texi (-Wmissing-field-initializers): Document, moving | |
2816 | some of the explanation from... | |
2817 | (-Wextra): ...here. Say that the missing field warning can be | |
2818 | seperately controlled by -Wmissing-field-initializers. | |
2819 | ||
caad9f81 PB |
2820 | 2004-08-06 Paolo Bonzini <bonzini@gnu.org> |
2821 | ||
2822 | * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove. | |
2823 | * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove. | |
2824 | * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove. | |
2825 | * tree.def (ENTRY_VALUE_EXPR): Remove. | |
2826 | ||
6b32b628 JJ |
2827 | 2004-08-06 Jakub Jelinek <jakub@redhat.com> |
2828 | ||
2829 | * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to | |
2830 | the places where it is actually needed. Don't use repz; stosb | |
2831 | for -Os with sufficiently small constant sizes. | |
2832 | For sufficiently small repz; stos{l,q} repeat counts use a sequence | |
2833 | of stos{l,q} instructions instead. | |
2834 | ||
6797f908 ZD |
2835 | 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> |
2836 | ||
2837 | PR tree-optimization/16807 | |
2838 | * loop-iv.c (dump_iv_info): Dump invariants correctly. | |
2839 | (iv_subreg, iv_extend): Express value of invariant purely in | |
2840 | base field. | |
2841 | ||
866cf037 MM |
2842 | 2004-08-06 Mark Mitchell <mark@codesourcery.com> |
2843 | ||
2844 | * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums. | |
2845 | (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC. | |
2846 | ||
9652c531 | 2847 | 2004-08-06 Roman Zippel <zippel@linux-m68k.org> |
9b305d55 | 2848 | |
27fb79ad SB |
2849 | * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New. |
2850 | * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand, | |
2851 | pre_dec_operand. | |
2852 | * config/m68k/m68k.md (zero_extend*2): delay the splitting of the | |
2853 | pattern until reload is finished to allow better code generation | |
2854 | and split them completely into separate instrunctions. | |
2855 | (*andsi3_split): New pattern. | |
9652c531 | 2856 | |
b2ca3702 MM |
2857 | 2004-08-05 Mark Mitchell <mark@codesourcery.com> |
2858 | ||
2859 | * tree.c (handle_dll_attribute): Move here from i383/winnt.c. | |
2860 | Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set | |
2861 | DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if. | |
2862 | * tree.h (handle_dll_attribute): Declare. Test | |
2863 | TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if. | |
2864 | * c-common.h (c_determine_visibility): Declare. | |
2865 | * c-common.c (c_determine_visibility): New function. | |
2866 | * c-decl.c (finish_decl): Use it. | |
2867 | (finish_function): Likewise. | |
2868 | * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to | |
2869 | zero, by default. Use #if, not #ifdef, to test it. | |
2870 | * config/arm/arm.c (arm_attribute_table): Use | |
2871 | handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with | |
2872 | #if. | |
2873 | * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1. | |
2874 | * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define | |
2875 | to 1. | |
2876 | * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove. | |
2877 | * config/i386/i386.c (ix86_attribute_table): Use | |
2878 | handle_dll_attribute for dllimport/dllexport. Test | |
2879 | TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if. | |
2880 | * config/i386/winnt.c (ix86_handle_dll_attribute): Remove. | |
2881 | * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define | |
2882 | it to 1. | |
2883 | * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it | |
2884 | with #if. | |
2885 | * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define | |
2886 | it to 1. | |
2887 | * doc/extend.texi (dllexport): Clarify and correct documentation. | |
2888 | (dllimport): Likewise. | |
2889 | * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention | |
2890 | handle_dll_attribute. | |
9b305d55 | 2891 | |
c913f08a ZD |
2892 | 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> |
2893 | ||
2894 | * tree-ssa-loop-manip.c: New file. | |
2895 | * Makefile.in (tree-ssa-loop-manip.o): Add. | |
2896 | * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): | |
2897 | Declare. | |
2898 | * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa | |
2899 | form. | |
2900 | (tree_ssa_loop_done): Verify loop closed ssa form. | |
2901 | * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form. | |
2902 | ||
d4482715 JDA |
2903 | 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
2904 | ||
2905 | * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common, | |
2906 | pa_asm_output_aligned_local): New functions. | |
2907 | * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss, | |
2908 | pa_asm_output_aligned_common and pa_asm_output_aligned_local. | |
2909 | * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use | |
2910 | pa_asm_output_aligned_common. | |
2911 | (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local. | |
2912 | * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro. | |
2913 | (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common. | |
2914 | (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local. | |
2915 | * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro. | |
2916 | (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common. | |
2917 | (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local. | |
2918 | * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global | |
2919 | common data. | |
2920 | ||
21149a79 AP |
2921 | 2004-08-05 Andrew Pinski <apinski@apple.com> |
2922 | ||
2923 | * objc/objc-act.c (build_objc_string_object): Mark the address | |
2924 | expression as constant. | |
2925 | ||
d5861a7a DE |
2926 | 2004-08-05 David Edelsohn <edelsohn@gnu.org> |
2927 | ||
2928 | * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand | |
2929 | and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle | |
2930 | SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns. | |
2931 | ||
0a2b72a6 JM |
2932 | 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk> |
2933 | ||
2934 | * config/linux.h, config/i386/linux.h, config/sparc/linux.h: | |
2935 | Remove definitions conditioned on USE_GNULIBC_1 or conditioned | |
2936 | out, and associated obsolete comments. | |
2937 | ||
ca7a3bd7 NS |
2938 | 2004-08-05 Nathan Sidwell <nathan@codesourcery.com> |
2939 | ||
2940 | * tree.h (force_fit_type): Return a tree, take three flags. | |
2941 | * fold-const.c (force_fit_type): Set TREE_OVERFLOW and | |
2942 | TREE_CONSTANT_OVERFLOW here. | |
2943 | (int_const_binop, const_binop): Adjust. | |
2944 | (size_int_type): Do sign extension here. | |
2945 | (fold_convert_const, optimize_bit_field_compare, | |
2946 | decode_field_reference, all_ones_mask_p, fold_div_compare, fold, | |
2947 | fold_negate_const, fold_abs_const, fold_not_const): Adjust. | |
2948 | * tree.c (size_in_bytes, int_fits_type_p): Adjust. | |
2949 | ||
d36837f4 ZD |
2950 | 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> |
2951 | ||
2952 | PR tree-optimization/16864 | |
2953 | * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes | |
2954 | for ssa names without default_def. | |
2955 | ||
ea5f7a19 RS |
2956 | 2004-08-05 Richard Sandiford <rsandifo@redhat.com> |
2957 | ||
2958 | * config/i386/i386.c (ix86_expand_prologue): If the function uses a | |
2959 | frame pointer, restore eax with an ebp-relative address. | |
2960 | ||
0e6df31e GK |
2961 | 2004-08-04 Geoffrey Keating <geoffk@apple.com> |
2962 | ||
2963 | PR 14516 | |
2964 | * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs. | |
2965 | * c-common.h (make_rtl_for_local_static): Delete. | |
2966 | * c-decl.c (shadow_tag_warned): Clean up comment. | |
2967 | (finish_decl): Clean up spacing. Use set_user_assembler_name when | |
2968 | appropriate. Don't pass asmspec to rest_of_decl_compilation. | |
2969 | * c-semantics.c (make_rtl_for_local_static): Delete. | |
2970 | * expr.c (init_block_move_fn): Use set_user_assembler_name. | |
2971 | (init_block_clear_fn): Likewise. | |
2972 | * passes.c (rest_of_decl_compilation): Remove asmspec parameter, | |
2973 | expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files. | |
2974 | * toplev.h (rest_of_decl_compilation): Remove asmspec parameter. | |
2975 | * tree.h (make_decl_rtl): Remove second parameter. | |
2976 | (set_user_assembler_name): New. | |
2977 | * varasm.c (set_user_assembler_name): New. | |
2978 | (make_decl_rtl): Remove second parameter. Update callers in many | |
2979 | files. | |
2980 | ||
4f587cb0 AN |
2981 | 2004-08-05 Adam Nemet <anemet@lnxw.com> |
2982 | ||
2983 | * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0. | |
2984 | (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update | |
2985 | to LynxOS 4.0. | |
2986 | * gthr-lynx.h: New file. | |
2987 | * config/lynx-ng.h: Remove file. | |
2988 | * config/lynx.h: Update to LynxOS 4.0. | |
2989 | * config/t-lynx: New file. | |
2990 | * config/i386/lynx-ng.h: Remove file. | |
2991 | * config/i386/lynx.h: Update to LynxOS 4.0. | |
2992 | * config/rs6000/lynxbase.h: Remove file. | |
2993 | * config/rs6000/lynx.h: Update to LynxOS 4.0. | |
2994 | * config/rs6000/t-lynx: New file. | |
2995 | * doc/install.texi (Options specification): Remove reference to | |
2996 | LynxOS from systems where --with-gnu-as makes a difference. | |
2997 | ||
85291069 JM |
2998 | 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk> |
2999 | ||
3000 | * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and | |
3001 | __UINTMAX_TYPE__. | |
3002 | * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define | |
3003 | __INTMAX_MAX__. | |
3004 | (c_cpp_builtins): Call it. | |
3005 | * doc/cpp.texi: Update. | |
3006 | ||
30a555d9 DE |
3007 | 2004-08-04 David Edelsohn <edelsohn@gnu.org> |
3008 | ||
3009 | * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero | |
3010 | cost. | |
3011 | ||
878f99d2 JH |
3012 | 2004-08-04 Jan Hubicka <jh@suse.cz> |
3013 | ||
3014 | * basic-block.h (profile_staus): New global variable. | |
3015 | * cfg.c (profile_status): Declare. | |
3016 | (check_bb_profile): Break out from ....; use profile_status | |
3017 | (dump_flow_info): ... here. | |
3018 | * cfgbuild.c (find_basic_blocks): Set profile_status. | |
3019 | * cfgexpand.c (tree_expand_cfg): Likewise. | |
3020 | * predict.c (estimate_probability): Likewise. | |
3021 | * profile.c (branch_prob): Likewise. | |
3022 | * tree-cfg.c (build_tree_cfg): Likewise. | |
3023 | (dump_function_to_file): Use check_bb_profile. | |
3024 | * tree-pretty-print (dump_bb_header): Likewise. | |
3025 | * tree-profile.c (do_tree_profiling): Cleanup. | |
3026 | ||
7e7ec48e ZW |
3027 | 2004-08-04 Zack Weinberg <zack@codesourcery.com> |
3028 | ||
3029 | * Makefile.in (RTL_BASE_H, RTL_H): Correct. | |
3030 | (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o. | |
3031 | (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o. | |
3032 | (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o) | |
3033 | (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o) | |
3034 | (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o) | |
3035 | (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H). | |
3036 | (ggc-none.o, errors.o): Move rule to generators section; | |
3037 | correct dependencies. | |
3038 | (min-insn-modes.o): Move rule to generators section; remove | |
3039 | unnecessary explicit command; correct dependencies. | |
3040 | (print-rtl.o, print-rtl1.o): Correct dependencies. | |
3041 | ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule. | |
3042 | (mostlyclean): Update. | |
3043 | ||
3044 | * errors.c: Include bconfig.h not config.h. Correct comment. | |
3045 | * gengtype.c, genpreds.c: Don't define NO_GENRTL_H. | |
3046 | * ggc-none.c: Include bconfig.h; not config.h or tm.h. | |
3047 | * print-rtl.c: Don't include tm_p.h. | |
3048 | ||
3049 | * rtl.h: Move forward-decl of struct function down where it's | |
3050 | needed. Include genrtl.h #ifndef GENERATOR_FILE, not | |
3051 | #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements. | |
3052 | ||
b0382c67 ZD |
3053 | 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> |
3054 | Jeff Law <law@redhat.com> | |
3055 | ||
3056 | * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions. | |
3057 | * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed. | |
3058 | * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to | |
3059 | manipulate the duplicated ssa names. | |
3060 | * tree-ssanames.c (ssa_names_to_rewrite): New variable. | |
3061 | (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite, | |
3062 | unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force): | |
3063 | New functions. | |
3064 | (release_ssa_name): Do not release ssa names that may have multiple | |
3065 | definitions. | |
3066 | * tree.h (release_ssa_name_force, mark_for_rewrite, | |
3067 | unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p, | |
3068 | marked_ssa_names): Declare. | |
3069 | * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove. | |
3070 | (duplicate_blocks): Remove call to mark_defs_for_rewrite. | |
3071 | Update call to rewrite_ssa_into_ssa. | |
3072 | ||
63c5b495 MM |
3073 | 2004-08-04 Mark Mitchell <mark@codesourcery.com> |
3074 | ||
3075 | * defaults.h (TARGET_DECLSPEC): New macro. | |
3076 | * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC. | |
3077 | * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support. | |
b2ca3702 | 3078 | * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define. |
63c5b495 MM |
3079 | * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove |
3080 | __declspec support. | |
3081 | (TARGET_DECLSPEC): Define. | |
3082 | * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove | |
3083 | __declspec support. | |
3084 | * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove | |
3085 | __declspec support. | |
3086 | (TARGET_DECLSPEC): Define. | |
3087 | * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove | |
3088 | __declspec support. | |
3089 | * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec | |
3090 | support. | |
3091 | * doc/tm.texi (TARGET_DECLSPEC): Document. | |
3092 | ||
3093 | * doc/extend.texi: Fix typo in comment. | |
3094 | ||
44d10c10 PB |
3095 | 2004-08-04 Paul Brook <paul@codesourcery.com> |
3096 | ||
3097 | * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define. | |
3098 | (TARGET_CXX): Use it. | |
3099 | * target.h (struct gcc_target): Add cdtor_returns_this. | |
3100 | * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function. | |
3101 | (TARGET_CXX_CDTOR_RETURNS_THIS): Define. | |
3102 | * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS. | |
3103 | ||
5e9754af NS |
3104 | 2004-08-03 Nathan Sidwell <nathan@codesourcery.com> |
3105 | ||
3106 | * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take | |
3107 | low/high pair. Do range checking directly. | |
3108 | (interpret_integer): Adjust. | |
3109 | ||
2acc29bd NC |
3110 | 2004-08-04 Nick Clifton <nickc@redhat.com> |
3111 | ||
3112 | * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the | |
3113 | GCC ABI. | |
3114 | * doc/invoke.texi: Document this new switch and also the -mrenesas | |
3115 | switch. | |
3116 | ||
2496942a NS |
3117 | 2004-08-04 Nathan Sidwell <nathan@codesourcery.com> |
3118 | ||
3119 | * cfglayout.c (insn_locators_initialize): Update the current | |
3120 | location before initializing a location. | |
3121 | ||
7e2e8179 ZW |
3122 | 2004-08-03 Zack Weinberg <zack@codesourcery.com> |
3123 | ||
403f8503 ZW |
3124 | * dbxout.c (dbxout_function_decl): Always call dbxout_function_end. |
3125 | (dbxout_function_end): Return after emitting the "Lscope" symbol | |
3126 | under the same conditions that this function formerly wasn't called. | |
3127 | Add explanatory comments. | |
3128 | ||
bcc7f708 | 3129 | PR 14860 |
ca043393 ZW |
3130 | * c-decl.c (record_builtin_type): Call debug_hooks->type_decl |
3131 | on the new decl. | |
3132 | ||
bcc7f708 | 3133 | PR 13956 |
7e2e8179 ZW |
3134 | * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New |
3135 | functions, broken out of dbxout_block. | |
3136 | (dbxout_block): The block at depth 0 should get LBRAC/RBRAC | |
3137 | stabs too, if it contains symbols. Use the begin_label and | |
3138 | the Lscope label (emitted by dbxout_function_end) for the | |
3139 | range of this block. | |
3140 | ||
5d75ba94 NN |
3141 | 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org> |
3142 | ||
3143 | * doc/install.texi: Update autoconf version requirements. | |
3144 | ||
2e4e72b1 ZW |
3145 | 2004-08-03 Zack Weinberg <zack@codesourcery.com> |
3146 | ||
3147 | * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition. | |
3148 | * recog.c (general_operand, immediate_operand, nonmemory_operand) | |
3149 | (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P. | |
3150 | * regclass.c (record_reg_classes): Likewise. | |
3151 | * reload.c (find_reloads): Likewise. | |
3152 | * reload1.c (reload): Likewise. | |
3153 | ||
f9942f4e ZW |
3154 | 2004-08-03 Zack Weinberg <zack@codesourcery.com> |
3155 | ||
3156 | * gensupport.c (init_md_reader_args_cb): Renamed from | |
3157 | init_md_reader_args. Add third option, callback function for | |
3158 | parsing program-specific options. Add diagnosis of incorrect | |
3159 | number of input files. | |
3160 | (init_md_reader): Fold into init_md_reader_args_cb. | |
3161 | (init_md_reader_args): Now a thin wrapper around | |
3162 | init_md_reader_args_cb. | |
3163 | * gensupport.h: Update prototypes. | |
3164 | ||
3165 | * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c | |
3166 | * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c | |
3167 | * genrecog.c: No need to diagnose lack of an input file; | |
3168 | init_md_reader_args will handle it. | |
3169 | * genconditions.c: Likewise, and use init_md_reader_args. | |
3170 | * genconstants.c: Likewise, and no need to call read_md_rtx. | |
3171 | ||
9cbe78fb JM |
3172 | 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk> |
3173 | ||
3174 | * c-decl.c (implicitly_declare): Diagnose incompatible implicit | |
3175 | declarations. | |
3176 | ||
3e558e80 MS |
3177 | 2004-08-03 Mike Stump <mrs@apple.com> |
3178 | ||
3179 | * config/darwin-c.c: Don't search in "/Local/Library/Frameworks" | |
3180 | for frameworks. | |
3181 | * doc/invoke.texi (Darwin Options): Update to reflect above. | |
3182 | ||
a0fac73d RS |
3183 | 2004-08-03 Roger Sayle <roger@eyesopen.com> |
3184 | ||
3185 | PR middle-end/16790 | |
3186 | * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local | |
3187 | truncations, not just global truncations. | |
3188 | ||
cddbddb7 AP |
3189 | 2004-08-03 Andrew Pinski <apinski@apple.com> |
3190 | ||
3191 | PR bootstrap/16865 | |
3192 | * loop-iv.c (simplify_using_assignment): Initialize lhs. | |
3193 | ||
bebf829d PB |
3194 | 2004-08-03 Paul Brook <paul@codesourcery.com> |
3195 | ||
3196 | * gcc/doc/install.texi: Document MPFR requirement. | |
3197 | ||
cddbddb7 | 3198 | 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org> |
3b0727a0 | 3199 | |
f9942f4e ZW |
3200 | * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h> |
3201 | and mmap() explicitly instead of relying on preset autoconf cache | |
3b0727a0 MR |
3202 | variables. |
3203 | * configure: Regenerate. | |
3204 | ||
f6bc51cb L |
3205 | 2004-08-03 H.J. Lu <hongjiu.lu@intel.com> |
3206 | ||
3207 | PR target/16570 | |
3208 | * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc | |
3209 | to tmake_file. | |
3210 | (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise. | |
3211 | (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc | |
3212 | to tmake_file. | |
3213 | ||
3214 | * config/i386/t-gmm_malloc: New file. | |
3215 | * config/i386/t-pmm_malloc: Likewise. | |
f9942f4e | 3216 | |
f6bc51cb L |
3217 | * config/i386/xmmintrin.h: Include <mm_malloc.h>. |
3218 | ||
3219 | 2004-08-03 H.J. Lu <hongjiu.lu@intel.com> | |
3224bead | 3220 |