]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
2003-05-05 Janis Johnson <janis187@us.ibm.com>
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
2a04f36a 12003-05-05 Janis Johnson <janis187@us.ibm.com>
2
3 * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
4 expanded variables.
5 * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
6
364bde6b 72003-05-05 Zack Weinberg <zack@codesourcery.com>
8
9 * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
10 * varasm.c (struct varasm_status): Add deferred_constants field.
11 (n_deferred_strings): Delete variable.
12 (n_deferred_constants): New #define.
13 (struct constant_descriptor_tree): Kill next and label fields.
14 (const_hash_table, MAX_HASH_TABLE): Delete.
15 (const_desc_htab): New static variable.
16 (const_hash): Rename const_desc_hash, and make it fit the
17 hashtab.h interface.
18 (const_desc_eq): New.
19 (const_hash_1, compare_constant): Const-ify arguments.
20 (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
21 SYMBOL_REFs. Clarify comments. Don't set desc->label.
22 (output_constant_def): Do the lookup/insert using the
23 hashtab.h interface. Don't muck with n_deferred_constants or
24 DEFERRED_CONSTANT_P here.
25 Always call maybe_output_constant_def_contents.
26 (maybe_output_constant_def_contents): Take a pointer to the
27 descriptor, not the EXP and RTL separately. Return
28 immediately if this constant is not deferred. Defer output of
29 everything, except writable string constants. Update
30 n_deferred_constants here.
31 (output_constant_def_contents): Now takes just one argument,
32 an rtx. Clear DEFERRED_CONSTANT_P here.
33 (mark_constant_pool): Update for rename of n_deferred_strings.
34 (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
35
36 (init_varasm_status): Clear p->deferred_constants.
37 (init_varasm_once): Call htab_create_ggc for const_desc_htab.
38
c04062e9 392003-05-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40
41 * builtins.c (expand_builtin_stpcpy): Only expand when the length
42 of the source string can be evaluated at compile-time.
43
0dd325b6 442003-05-05 Aldy Hernandez <aldyh@redhat.com>
45
364bde6b 46 * testsuite/gcc.c-torture/compile/simd-6.c: New.
0dd325b6 47
364bde6b 48 * c-typeck.c (digest_init): Handle arrays of vector constants.
0dd325b6 49
647661c6 502003-05-05 Jakub Jelinek <jakub@redhat.com>
51
52 * builtins.c (expand_builtin_mempcpy): New function.
53 (expand_builtin_stpcpy): Optimize stpcpy whose return value is
54 ignored into strcpy no matter what arguments it has.
55 (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
56 expand_builtin_mempcpy.
57
4b4dcf9c 582003-05-05 Aldy Hernandez <aldyh@redhat.com>
59
364bde6b 60 * testsuite/gcc.dg/20030505.c: New.
4b4dcf9c 61
364bde6b 62 * c-typeck.c (convert_for_assignment): Opaque pointers can
63 interconvert.
4b4dcf9c 64
364bde6b 65 * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
66 (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
67 (spe_init_builtins): Rename all pv2si_type_node to
68 opaque_p_V2SI_type_node.
69 Remove declaration of pv2si_type_node.
70 (is_ev64_opaque_type): Accept opaque pointers.
4b4dcf9c 71
38598a7e 722003-05-05 Geoffrey Keating <geoffk@apple.com>
73
debdfaa7 74 * config/rs6000/rs6000.c (validate_condition_mode): Use
75 flag_finite_math_only.
76 (rs6000_reverse_condition): Never return UNKNOWN; use
77 flag_finite_math_only.
78 (rs6000_generate_compare): Use flag_finite_math_only.
79 (rs6000_emit_cmove): Handle UNLE. Support UNEQ under -ffast-math.
80 Use HONOR_* rather than flag_unsafe_math_optimizations. Correct
364bde6b 81 UNGE and GT cases. Handle UNEQ and LTGT when ! HONOR_NANS.
debdfaa7 82
38598a7e 83 * toplev.c (check_global_declarations): Suppress not-used warning
84 for volatile variables.
85
8f6f6bc8 862003-05-05 Olivier Hainque <hainque@act-europe.fr>
87
364bde6b 88 * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
89 usage of bitfield instructions for mode1 != BLKmode, only ignoring
90 SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
91 (store_field): Likewise.
8f6f6bc8 92
36181a33 932003-05-05 Aldy Hernandez <aldyh@redhat.com>
94
364bde6b 95 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
96 evsubifw to builtins accepting 5-bit unsigned constants.
97 (easy_vector_constant): Return if V1DImode. Fix typo.
36181a33 98
39f63197 992003-05-05 Aldy Hernandez <aldyh@redhat.com>
100
364bde6b 101 * config/rs6000/spe.h: Revert licensing change from last patch.
39f63197 102
aeb91dea 1032003-05-05 DJ Delorie <dj@redhat.com>
104
105 * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
106 before reload, but defer the split until after.
107 * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
108 to match.
109
d147888d 1102003-05-05 David Edelsohn <edelsohn@gnu.org>
111
112 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
113 * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
114
9a485eb1 1152003-05-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
116
117 * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
364bde6b 118 is defined.
9a485eb1 119
af16b3b2 1202003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
121
122 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
123 ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
124 ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
125
126 (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
127 ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
128 ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
129 New.
130
131 * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
132 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
133
134 (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
135 BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
136 BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
137 BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
138 BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
139 BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
140 BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
141 BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
142 BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
143 BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
144 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
145 BUILT_IN_STRDUP): Add "nonnull" attribute.
146
a6dde41e 1472003-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
148
8a348c93 149 * expr.c (store_field): Don't clobber TEMP in shift: it might be
150 a variable.
151 (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
152 whose purpose is to step up the alignment.
153 (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
154
a6dde41e 155 * stor-layout.c (compute_record_mode): Relax restriction
156 on fields crossing word boundaries forcing BLKmode.
157
b4db1af8 1582003-05-04 Neil Booth <neil@daikokuya.co.uk>
159
160 * cppinit.c (cpp_create_reader, post_options): Warn about
161 trigraphs unless explicity set or -trigraphs.
162 * cpplex.c (warn_in_comment): New.
163 (_cpp_process_line_notes): Better handling of -Wtrigraphs.
164 (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
165 * doc/cppopts.texi, doc/cpp.texi: Update.
166
35cb45c4 1672003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
168
169 * Makefile.in (LIBGCOV): Add _gcov_merge_add.
170 * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
171 namespace clash.
172 (GCOV_MERGE_FUNCTIONS): New.
173 (gcov_merge_fn): Declare.
174 (struct gcov_ctr_info): New field "merge".
175 (__gcov_merge_add): Declare.
176 * coverage.c (ctr_merge_functions): New.
177 (build_ctr_info_type, build_ctr_info_value): Initialize merge field
178 of gcov_ctr_info type.
179 * libgcov.c (__gcov_merge_add): New.
180 (gcov_exit): Call a hook to merge values of counters.
181
65ff8f73 1822003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
183
184 * toplev.h (pedwarn_with_file_and_line): Don't declare.
185 * diagnostic.c (pedwarn_with_file_and_line): Remove.
186
fcf532e0 1872003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
188
189 * varasm.c (assemble_variable): Don't use error_with_file_and_line.
190
80cd7a5e 1912003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
192
193 * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
194 expand_builtin_frame_address): Update prototypes.
195 (expand_builtin_constant_p, expand_builtin_strlen,
196 expand_builtin_strcpy, expand_builtin_memset,
197 expand_builtin_bzero, expand_builtin_args_info,
198 expand_builtin_frame_address): Pass in just the argument(s)
199 needed, not the entire expression `exp'.
200 (expand_builtin): Update all calls to these functions.
201
f8f023a5 2022003-05-03 Richard Henderson <rth@redhat.com>
203
204 * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
205 <BUILT_IN_DWARF_SP_COLUMN>: New.
206 * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
207 (BUILT_IN_DWARF_SP_COLUMN): New.
208 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
209 (expand_builtin_dwarf_sp_column): New.
210 * except.h: Update to match.
211 * unwind-dw2.c (execute_stack_op): Correct stack push typo.
212 (execute_cfa_program): Record location expression address
213 before extracting length.
214 (uw_update_context_1): Install old CFA into stack pointer column.
215 (uw_init_context_1): Set cfa_reg to stack pointer column.
216
f7237b1f 2172003-05-03 Richard Henderson <rth@redhat.com>
218
219 * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
220 return bool.
221 (toc_relative_expr_p): Likewise.
222 (SPE_CONST_OFFSET_OK): Move from rs6000.h.
223 (legitimate_constant_pool_address_p): Move from rs6000.h, change
224 into a function, downcase all users.
225 (legitimate_small_data_p): Likewise.
226 (legitimate_offset_address_p): Likewise.
227 (legitimate_indexed_address_p): Likewise.
228 (legitimate_indirect_address_p): Likewise.
229 (legitimate_lo_sum_address_p): Likewise.
230 (rs6000_mode_dependent_address): Likewise.
231 * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
232 (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
233 LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
234 LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
235 LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
236 (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
237 (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
238 * config/rs6000/rs6000-protos.h: Update.
239
d4a16194 2402003-05-03 Geoffrey Keating <geoffk@apple.com>
241
0c51108c 242 * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
243 (REVERSE_CONDITION): Define.
244
636f1866 245 * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
246 to branch_positive_comparison_operator.
247 (ccr_bit): Check that sCOND conditions are actually a positive bit.
248 (print_operand): Remove %D substitution.
249 (rs6000_emit_sCOND): Generate complement operation to ensure that
250 sCOND input is a positive bit.
251 * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
252 same order as bCOND, and add the missing ones. Remove the %D
253 substitutions from the scc patterns.
254
d4a16194 255 * simplify-rtx.c (simplify_relational_operation): Add case for
256 ! (fabs(x) < 0.0).
257
d45e22c2 2582003-05-03 Bruce Korb <bkorb@gnu.org>
259
260 * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
261 in fixincl.x
262 * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
263
4e5d8436 2642003-05-03 Aldy Hernandez <aldyh@redhat.com>
265
f7237b1f 266 * config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
4e5d8436 267
5125036e 2682003-05-03 Zack Weinberg <zack@codesourcery.com>
269
270 PR c/10604
271 * c-common.c (warn_sign_compare): Initialize to -1.
272 * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
273 (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
274 for C++ only.
275 (c_common_post_options): Set warn_sign_compare from extra_warnings
276 if it's still -1 at this point.
277
278 * toplev.c (maybe_warn_unused_parameter): New static variable.
279 (set_Wextra): New static function.
280 (W_options): Remove "extra".
281 (decode_W_option): Call set_Wextra.
282 (independent_decode_option): Likewise.
283 (set_Wunused): Cooperate with set_Wextra in setting
284 warn_unused_parameter.
285 (rest_of_compilation): No need to check extra_warnings as
286 well as warn_uninitialized.
287
288 * c-typeck.c (build_binary_op, build_conditional_expr):
289 No need to check extra_warnings as well as warn_sign_compare.
290 (internal_build_compound_expr): No need to check extra_warnings
291 as well as warn_unused_value.
292 * function.c (expand_function_end): No need to check extra_warnings
293 as well as warn_unused_parameter.
294 * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
295 as well as warn_unused_value.
296
297 * doc/invoke.texi: Clarify documentation of -Wsign-compare.
298
299 * Makefile.in: Disable -Werror for gengtype-lex.o.
300
d5f9786f 3012003-05-03 Olivier Hainque <hainque@act-europe.fr>
302
303 * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
304 * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
305 * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
306 * calls.c (emit_call_1): Likewise.
5125036e 307 (expand_call): For calls initializing constant memory, replace
d5f9786f 308 emission of standalone mem /u clobber with function usage entry.
309 * expr.c (emit_block_move_via_libcall): Likewise.
310 * cse.c (count_reg_usage, case EXPR_LIST): New case.
311 * flow.c (propagate_one_insn): Pass entire operand of
312 CALL_INSN_FUNCTION_USAGE to mark_used_regs.
313 * integrate.c (try_constants): For CALL_INSNs, substitute constants
314 within the FUNCTION_USAGE also.
315 * loop.c (prescan_loop): Note clobbers of const mem mentioned in
316 FUNCTION_USAGE lists.
317 * reload1.c (replace_pseudos_in): Renamed.
318 (reload): Use it for clobbers surviving until the end of the reload.
319
fcf31ac6 3202003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
321
794d6bca 322 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
323 gen_lowpart on non-integer modes.
324
fcf31ac6 325 * stor-layout.c (place_field): When adjusting offset_align, use
326 desired_align, not DECL_ALIGN.
327
bca5a169 3282003-05-03 Nathan Sidwell <nathan@codesourcery.com>
329
330 * c-decl.c (pending_invalid_xref_file): Remove.
331 (pending_invalid_xref_line): Remove.
332 (pending_invalid_xref_location): New.
333 (lookup_label): Use location_t and input_location directly.
334 (lookup_tag): Likewise.
335 (pending_xref_error): Likewise.
336 (c_expand_body_1): Likewise.
337 * c-common.c (x_expand_start_cond): Likewise.
338 * c-semantics.c (genrtl_for_stmt): Likewise.
339 (find_reachable_label): Likewise.
340 * expr.c (expand_expr): Likewise.
341 * integrate.c (output_inline_function): Likewise.
342 * tree-inline.c (find_alloca_call): Likewise.
343 (find_builtin_longjmp_call): Likewise.
344 * gcc.c (input_filename): Make static.
5125036e 345
600ec524 3462003-05-03 Richard Sandiford <rsandifo@redhat.com>
347
714e1818 348 * config/mips/mips.md: Fix comment typo.
349
600ec524 350 * config/mips/mips.c (mips_integer_op): New structure.
351 (MIPS_MAX_INTEGER_OPS): Define.
352 (mips_const_insns): Use mips_build_integer to determine the number
353 of instructions needed to load a CONST_INT.
354 (move_operand): Reject compound CONST_INTs.
355 (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
356 (mips_move_integer): New fn.
357 (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
358 (mips_legitimize_move): Only legitimize constants when moving
359 word or subword values.
360
32e9529f 3612003-05-02 Matt Kraai <kraai@alumni.cmu.edu>
362
363 * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
364
10597e9a 3652003-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
366
367 * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
368 modifying it.
369
d7e8e203 3702003-05-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
371 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
372
373 * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
374 Hernandez, and Kazu Hirata. Update Richard Henderson.
375
948630cc 3762003-05-02 Geoffrey Keating <geoffk@apple.com>
377
e5a1c2f9 378 * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
379 to tentative declaration.
5125036e 380
6161eb60 381 * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
382 (SYMBOL_FLAG_SMALL_V4): Delete.
383 * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
384 (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
385 (rs6000_elf_in_small_data_p): Add extra section names. Add
386 comment about TREE_PUBLIC test.
387
948630cc 388 * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
389 expand_stmt on result of expand_unreachable_stmt.
390
c379fe4c 3912003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
392
393 * doc/contrib.texi (Contributors): Add Daniel Berlin.
394
e0c0a39e 3952003-05-02 David Edelsohn <edelsohn@gnu.org>
396
397 * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
398 number of automata.
399
400 * config/rs6000/rs6000.c (symbol_ref_operand): Check
401 SYMBOL_REF_FUNCTION_P on AIX.
402 (current_file_function_operand): Same.
403 * config/rs6000/rs6000.md (call,call_value): Force non-function
404 symbol_ref into register on AIX.
405
241399f6 4062003-05-02 Alan Modra <amodra@bigpond.net.au>
407
408 * calls.c (struct arg_data): Move offset, slot_offset, size and
409 alignment_pad to struct locate_and_pad_arg_data. Update all refs.
410 (initialize_argument_information): Adjust call to locate_and_pad_parm.
411 Delete alignment_pad var. Don't calculate slot_offset here.
412 (emit_library_call_value_1): Delete alignment_pad, offset and size
413 vars. Use struct locate_and_pad_arg_data instead. Adjust refs.
414 Adjust call to locate_and_pad_parm. Don't tweak arg size for
415 partial in-regs here. Formatting fixes.
416 * expr.h (struct locate_and_pad_arg_data): New struct.
417 (locate_and_pad_parm): Adjust declaration.
418 * function.c (assign_parms): Localize vars. Use "locate" instead of
419 other arg location vars. Don't invoke FUNCTION_ARG or
420 FUNCTION_INCOMING_ARG unless pretend_named is different from
421 named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before
422 calling locate_and_pad_parm. Adjust locate_and_pad_parm call.
423 Use slot_offset for stack home of reg parms. Correct test for
424 parm passed in memory. Formatting fixes.
425 (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr
426 arg_size_ptr and alignment pad with "locate". Set slot_offset here.
427 Correct initial_offset_ptr handling. Localize vars. Always pad
428 locate->offset even when in_regs.
429
5a8a92a0 4302003-05-02 Nathan Sidwell <nathan@codesourcery.com>
431
432 * Makefile.in (TREE_H): Replace location.h with input.h.
433 (GTFILES) Remove location.h
434 (gt-lists.h): Replace gt-location.h with gt-input.h
435 * input.h (input_filename, input_line): Remove variables.
436 (location_s, location_t): Move from location.h.
437 (input_location): New.
438 (input_filename, input_line): New #defines.
439 * location.h: Remove.
440 * tree.h: Replace location.h with input.h.
441 (input_filename, input_line): Remove.
442 * diagnostic.h: Replace location.h with input.h.
443 * gcc.h (input_filename, input_filename_length): Remove declarations.
444 * toplev.c (input_filename, input_line): Remove.
445 (input_location): Define.
446 (push_srcloc, pop_srcloc): Adjust.
447 * diagnostic.c (diagnostic_report_current_module): Adjust.
448
abfb2b8e 4492003-05-02 Nick Clifton <nickc@redhat.com>
450
451 * configure.in: Add xstormy16 to list of targets that has a nop
452 instruction and hence which can be tested to see if the
453 assembler supports the --gdwarf2 switch.
454 * configure: Regenerate.
455
df7d0d23 4562003-05-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5125036e 457
458 PR target/8257
459 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
460 alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
461 Avoid undefined shifts by making the shift operand unsigned.
462
7497bc17 4632003-05-01 DJ Delorie <dj@redhat.com>
464
465 * reload.c (find_reloads): Also check that all of a multi-reg
466 value is in the class.
467
ef4b9e9f 4682003-05-01 Nathan Sidwell <nathan@codesourcery.com>
469
470 * scan.h (lineno): Revert the rename here.
471
9af9a32c 4722003-05-01 Stan Shebs <shebs@apple.com>
473
474 * config/darwin.c (darwin_encode_section_info): Call
475 default_encode_section_info.
476
45d9c0fa 4772003-05-01 David Edelsohn <edelsohn@gnu.org>
478
479 * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
480 (movsi_internal1): Use new mfjmpr attribute.
481 (movhi_internal): Same.
482 (movqi_internal): Same.
483 (movcc_internal1): Same.
484 (movdi_internal64): Same.
485 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
486 power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
487 * config/rs6000/40x.md: Add fpu_405.
488 * config/rs6000/power4.md: Merge power4lsu and power4disp automata
489 into power4misc automata. Remove extraneous parentheses.
490 * config/rs6000/440.md: New file.
491 * config/rs6000/rs6000.c (processor_target_table): Add 440,
492 440fp. Rename 405f to 405fp.
493 (function_arg_padding): Correct formatting.
494 (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
495
37b555e3 4962003-05-01 Nathan Sidwell <nathan@codesourcery.com>
497
fa70df70 498 * input.h (lineno): Rename to ...
499 (input_line): ... here.
500 * tree.h (lineno): Rename to ...
501 (input_line): ... here.
502 * scan.h (lineno): Rename to ...
503 (input_line): ... here.
504 * toplev.c (lineno): Rename to ...
505 (input_line): ... here.
506 (push_srcloc, pop_srcloc): Rename lineno to input_line.
507 * c-common.c (c_expand_start_cond, fname_decl): Likewise.
508 * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
509 store_parm_decls, c_expand_body_1): Likewise.
510 * c-errors.c (pedwarn_c99): Likewise.
511 * c-format.c (status_warning): Likewise.
512 * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
513 * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
514 * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
515 * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
516 gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
517 genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
518 genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
519 build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
520 prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
521 * coverage.c (create_coverage): Likewise.
522 * diagnostic.c (pedwarn, sorry, error, fatal_error,
523 internal_error, warning, diagnostic_report_current_module,
524 inform): Likewise.
525 * expr.c (expand_expr): Likewise.
526 * integrate.c (expand_inline_function,
527 output_inline_function): Likewise.
528 * rtl-error.c (file_and_line_for_asm): Likewise.
529 * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
530 walk_tree): Likewise.
531 * tree.c (make_node): Likewise.
532 * ada, cp, f, java, objc, treelang: Likewise.
533 * objc/objc-act.c (objc_init): Rename lineno to input_line.
534 (build_module_descriptor, build_selector_translation_table,
535 build_protocol_template, build_method_prototype_list_template,
536 build_category_template, build_selector_table,
537 build_class_template, build_super_template, build_ivar_template,
538 build_ivar_list_template, build_method_list_template,
539 build_method_template, add_instance_variable): Likewise.
540
37b555e3 541 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
542 name from input_filename.
543
c9e1a048 5442003-04-30 Eric Christopher <echristo@redhat.com>
545 Richard Sandiford <rsandifo@redhat.com>
546
547 * configure: Regenerate from patches below.
548 * combine.c (gen_lowpart_for_combine): Fix comment and add tests
549 for all symbolic operands.
550 * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
551 to function.
552 * config/mips/linux.h: Fix typo.
553 * Merge from mips-3_4-rewrite branch:
554
555 2003-04-07 Richard Sandiford <rsandifo@redhat.com>
556
5125036e 557 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
558 handling local labels when TARGET_ABICALLS.
c9e1a048 559
560 2003-04-04 Richard Sandiford <rsandifo@redhat.com>
561
5125036e 562 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
563 integer argument.
564 (mips_expand_call): Likewise.
565 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
566 (FIXED_REGISTERS): Clear $31 entry.
567 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
568 (EPILOGUE_USES): Define.
569 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
570 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
571 (override_options): Add a 'j' register class.
572 (mips_expand_call): Handle sibcalls
573 (mips_expand_epilogue): Handle epilogues for sibcalls.
574 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
575 (sibcall_epilogue): New pattern.
576 (call, call_value): Adjust calls to mips_expand_call.
577 (sibcall, sibcall_value): New expanders.
578 (sibcall_internal, sibcall_value_internal): New patterns.
579 (sibcall_value_multiple_internal): New pattern.
c9e1a048 580
581 2003-03-25 Richard Sandiford <rsandifo@redhat.com>
582
5125036e 583 * config/mips/mips.md (extended_mips16): New attribute.
584 (define_attr length): Default to 8 if extended_mips16 == yes.
585 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
586 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
587 (call_internal): Set extended_mips16 to yes for direct jumps.
588 Remove redundant mode attribute.
589 (call_value_internal, call_value_multiple_internal): Likewise.
590 (call_split): Remove redundant mode attribute.
591 (call_value_split, call_value_multiple_split): Likewise.
c9e1a048 592
5125036e 593 * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
594 of unaligned offsets.
c9e1a048 595
596 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
5125036e 597 of SYMBOL_GENERAL.
c9e1a048 598
599 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
600
5125036e 601 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
602 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
603 for mips16 code.
c9e1a048 604
605 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
606
5125036e 607 * config/mips/mips.h (ADDRESS_COST): Define.
c9e1a048 608
609 2003-03-20 Richard Sandiford <rsandifo@redhat.com>
610
5125036e 611 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
612 'R' to 'U'. Make 'R' mean a single-instruction memory reference.
613 * config/mips/mips.md: Replace 'R' constraints with 'U'.
c9e1a048 614
615 2003-03-18 Richard Sandiford <rsandifo@redhat.com>
616
5125036e 617 * config/mips/mips.md (truncdisi2): Add commentary. Use sll instead
618 of a two-instruction sequence. Add register->memory alternative.
619 (truncdihi2, truncdiqi2): Likewise.
620 Rework shift/truncate instructions so that they only handle right
621 shifts of 32 (or more, in the case of arithmetic shifts).
622 Add patterns for truncate/sign-extend.
c9e1a048 623
624 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
625
5125036e 626 * configure.in (mips*-*-*): Check for explicit relocation support.
627 * configure: Regenerate.
c9e1a048 628
629 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
630
5125036e 631 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
632 and -mno-explicit-relocs.
633 (MASK_EXPLICIT_RELOCS): Define.
634 (TARGET_EXPLICIT_RELOCS): Use it.
635 (mips_split_addresses): Remove declaration.
636 * config/mips/mips.c (override_options): Update comment for
637 mips_split_addresses. Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
c9e1a048 638
639 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
640
5125036e 641 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
642 a CONST as identity. Check the return value of gen_lowpart_common.
c9e1a048 643
644 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
645
5125036e 646 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
647 references for TARGET_EXPLICIT_RELOCS.
648 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
649 !TARGET_MIPS16.
c9e1a048 650
651 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
652
5125036e 653 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
654 (addsi3): Remove redundant constraints.
655 (addsi3_internal): Use separate register & constant alternatives.
656 Use a 'Q' constraint and "addiu" insn for the latter.
657 (adddi3_internal_3, addsi3_internal_2): Likewise.
c9e1a048 658
659 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
660
5125036e 661 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
662 (mips_expand_unaligned_store): Declare.
663 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
664 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
665 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
666 (UNSPEC_ULD, UNSPEC_USD): Remove.
667 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
668 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
669 (extv, extzv): Use mips_expand_unaligned_load.
670 (insv): Use mips_expand_unaligned_store. Use a reg_or_0_operand
671 predicate for operand 3.
672 (movsi_ulw, movsi_usw): Replace with...
673 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
674 (movdi_uld, movdi_usd): Likewise replace with...
675 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
c9e1a048 676
677 2003-02-26 Richard Sandiford <rsandifo@redhat.com>
678
5125036e 679 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
680 * config/mips/mips.h (LEA_REGS): New register class.
681 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
682 (GR_REG_CLASS_P): Include LEA_REGS.
683 (DANGEROUS_FOR_LA25_P): New macro.
684 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
685 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
686 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
687 entries to LEA_REGS.
688 (mips_global_pic_constant_p): New function.
689 (override_options): Add 'e' register constraint.
690 (mips_secondary_reload_class): Return LEA_REGS when reloading
691 a dangerous constant into a class containing $25.
692 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
693 (movsi_internal): Likewise.
c9e1a048 694
695 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
696
5125036e 697 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
698 * config/mips/mips.md (call_split): New insn.
699 (call_value_split, call_value_multiple_split): New insns.
700 (call_internal): Turn into a define_insn_and_split. Split the
701 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
702 (call_value_internal, call_value_multiple_internal): Likewise.
c9e1a048 703
704 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
705
5125036e 706 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
707 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
708 (mips_encode_section_info): Don't take symbol visibility into
709 account if TARGET_ABICALLS. Add more commentary.
710 * config/mips/mips.md: Add commentary above reloc constants.
c9e1a048 711
712 2003-02-12 Richard Sandiford <rsandifo@redhat.com>
713
5125036e 714 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
715 from mips_legitimize_move. Legitimize constant pool references.
716 (mips_legitimize_move): Call mips_legitimize_const_move. Attach
717 a REG_EQUAL note to the last instruction.
c9e1a048 718
719 2003-02-11 Richard Sandiford <rsandifo@redhat.com>
720
5125036e 721 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
722 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
723 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
724 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
725 * config/mips/mips.md (UNSPEC_HIGH): New constant.
726 (UNSPEC_RELOC_GPREL16): Rename to...
727 (RELOC_GPREL16): ...this.
728 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
729 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
730 (macro_calls): New attribute.
731 (length): Use it to set the default length of calls. Don't allow
732 calls to have delay slots if macro_calls is "yes".
733 (luisi, luidi): New patterns.
734 (lowsi, lowdi): Use '%R' to print the relocation.
735 (lowdi_extend): Remove.
736 (loadgp): Remove mode from operand 0. Use '%0' instead of '%a0'.
737 (call_internal): Merge alternatives. Always use "jal".
738 (call_value_internal, call_value_multiple_internal): Likewise.
739 (reloc_gprel16): Remove.
740 * config/mips/mips.c (mips_got_alias_set): New variable.
741 (mips_classify_constant): Handle the new relocation constants.
742 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
743 (mips_symbolic_address_p): Return false if generating explicit relocs.
744 Otherwise allow local PIC symbols to have an offset.
745 (mips_splittable_symbol_p): New function.
746 (mips_classify_address): Use it to check whether a LO_SUM is valid.
747 (mips_const_insns): Always accept HIGH.
748 (call_insn_operand): Don't accept global symbols if using explicit
749 relocs.
750 (move_operand): Don't accept HIGH when generating PIC.
751 (mips_reloc, mips_lui_reloc): New functions.
752 (mips_force_temporary): Remove MODE argument. Expect VALUE to
753 be a valid right-hand-side for a SET pattern.
754 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
755 (mips_emit_high): New function.
756 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
757 case. Use mips_splittable_symbol_p to check whether a LO_SUM
758 address should be used. Use mips_emit_high to generate the
759 high part of such an address. Adjust the global symbol + offset
760 case to match the change to mips_force_temprorary.
761 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
762 If generating explicit-reloc PIC, load the address of global
763 symbols from the GOT. Use mips_emit_high to emit the high part
764 of an address.
765 (mips_simplify_dwarf_addr): New function.
766 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
767 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
768 (mips_expand_call): Load the addresses of global functions using
769 %call* relocs if generating explicit-reloc PIC. Don't generate
770 an exception_receiver pattern.
771 (override_options): Initialize mips_got_alias_set.
772 (print_relocation): Remove in favour of...
773 (mips_reloc_string): ...this new function.
774 (print_operand): Handle '%R'. Use mips_reloc_string.
775 (print_operand_address): Use print_operand to print the symbolic
776 part of a LO_SUM address.
777 (mips_output_function_prologue): Use .cprestore, reverting last patch.
778 (mips_encode_section_info): Factor out DECL_RTL accesses. Reverse
779 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
780 for local symbols.
c9e1a048 781
782 2003-02-02 Eric Christopher <echristo@redhat.com>
783
784 * config/mips/mips.c (mips_sign_extend): Remove.
5125036e 785 * config/mips/mips-protos.h: Ditto.
786 * config/mips/mips.md (movdi_internal2_extend): Remove.
787 (extendsidi2): Fix mode of convert_memory_address.
c9e1a048 788
789 2003-01-24 Eric Christopher <echristo@redhat.com>
790
5125036e 791 * config/mips/mips.md: Rewrite zero_extend* and extend*
792 patterns. Use explicit instructions and split after reload
793 for register extensions.
794 (ashlsi3_internal1_extend): New combiner pattern for
795 shift and extend combinations.
796 * config/mips/mips.h: Change Pmode back to ptr_mode
797 for performance enhancement.
798 * combine.c (expand_compound_operation): Make sure
799 that zero_extend operation is profitable.
c9e1a048 800
801 2003-01-14 Richard Sandiford <rsandifo@redhat.com>
802
5125036e 803 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
804 addresses depend on ptr_mode rather than Pmode.
805 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
806 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
807 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
808 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
809 * config/mips/mips.md (tablejump): Likewise. Remove Pmode
810 condition for selecting cpaddsi or cpadddi: use cpadd instead.
811 (tablejump_internal1): Remove condition.
812 (tablejump_internal2): Change condition to TARGET_64BIT.
813 (cpaddsi): Rename to...
814 (cpadd): ...this.
815 (cpadddi): Remove.
c9e1a048 816
817 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
818
5125036e 819 * config/mips/mips-protos.h (mips16_constant_after_function_p,
820 mips_address_cost, mips_check_split, double_memory_operand,
821 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
822 pic_address_needs_scratch, symbolic_operand): Remove declarations.
823 (mips_legitimate_address_p): Return bool.
824 (mips_address_insns, mips_fetch_insns, mips_const_insns,
825 mips_legitimize_address, mips_legitimize_move,
826 mips_expand_call): Declare.
827 (mips_return_addr): Move outside #ifdef RTX_CODE.
828
829 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
830 (PIC_FN_ADDR_REG): New reg_class.
831 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
832 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
833 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
834 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
835 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
836 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
837 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
838 (LEGITIMATE_PIC_OPERAND): Undefine.
839 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
840 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
841 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
842 (FUNCTION_MODE): Change to SImode.
843 (CONST_COSTS): Use mips_const_insns to calculate the cost of
844 most constants. Treat const_artih_operands specially if they
845 occur in a PLUS or MINUS.
846 (CONSTANT_POOL_COST): New macro.
847 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
848 Add LO_SUM handling.
849 (ADDRESS_COST): Undefine.
850 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
851 Add CONST to the list of codes for arith_operand. Add LABEL_REF
852 to call_insn_operand and remove CONST_INT.
853
854 * config/mips/mips.c: Include integrate.h.
855 (SINGLE_WORD_MODE_P): New macro.
856 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
857 (mips_constant_info, mips_address_info): New structs.
858 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
859 (mips_classify_constant, mips_classify_symbol,
860 mips_valid_base_register_p, mips_symbolic_address_p,
861 mips_classify_address, mips_symbol_insns,
862 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
863 mips_fetch_insns, mips_force_temporary, mips_add_offset,
864 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
865 mips_print_relocation): New functions.
866 (const_arith_operand): New operand predicate.
867 (arith_operand): Use it.
868 (mips_const_double_ok, mips16_simple_memory_operand,
869 simple_memory_operand, double_memory_operand, mips_check_split,
870 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
871 mips16_gp_offset_p, mips16_output_gp_offset,
c9e1a048 872 mips16_constant_after_function_p, mips16_constant): Remove.
5125036e 873 (call_insn_operand): Be more fussy about symbolic constants.
874 Use register_operand.
875 (move_operand): Use mips_symbolic_address_p to check symbolic
876 operands and general_operand to check the rest.
877 (symbolic_operand): Use mips_classify_constant.
878 (mips_legitimate_address_p): Use mips_classify_address.
879 (mips_move_1word): Combine handling of symbolic addresses.
880 Remove special treatment of gp-relative loads for TARGET_MIPS16.
881 (move_move_2words): Likewise. Assume addresses are offsettable
882 if they need to refer to more than one word. Add HIGH handling.
883 (mips_restore_gp): Use ptr_mode for the GP save slot.
884 (mips_expand_call): New function, combining the old mips.md
885 call and call_internal define_expands. If the address isn't
886 a call_insn_operand, force it into a register. For SVR4 PIC,
887 emit an exception_receiver instruction after the call.
888 (override_options): Only override flag_pic for TARGET_ABICALLS
889 if it is currently zero. Allow mips_split_addresses when
890 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
891 Add new register class letter, 'c'.
892 (print_operand): Use mips_classify_constant for constant operands.
893 (print_operand_address): Use mips_classify_address.
894 (mips_output_function_prologue): Don't use .cprestore.
895 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
896 via the frame pointer if current_function_calls_eh_return.
897 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
898 to mark whether a symbol is local or global.
899 (build_mips16_call_stub): Expect the address of the function rather
900 than a MEM reference to it. Update call generation sequences.
901 (mips16_optimize_gp): Remove Pmode checks. Temporarily disable
902 small-data adjustments.
903
904 * config/mips/mips.md: Remove 'R'/'m' memory distinction. Use default
905 length for loads and stores.
906 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
907 (define_attr type): Add const and prefetch.
908 (define_attr length): Use mips_const_insns for const instructions.
909 Use mips_fetch_insns for load and store instructions.
910 (define_attr single_insn): New.
911 (define_attr can_delay): Use it.
912 (define_attr abicalls): Remove.
913 (define_delay): Use can_delay. Always allow calls to have delay slots.
914 (addsi3_internal_2): Add 'Q' constraint.
915 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
916 (high): Remove.
917 (lowsi): Renamed from low.
918 (lowdi): New pattern.
919 (movdi, movsi): Use mips_legitimize_move. Remove define_split.
920 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
921 (loadgp): Change operand 0 to an immediate_operand.
922 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
923 beforehand.
924 (cpaddsi, cpadddi): New patterns.
925 (tablejump_internal3, tablejump_internal4): Remove define_expands
926 and associated define_splits.
927 (call, call_value): Use mips_expand_call.
928 (call_internal): New, replacing all existing call_internal* insns.
929 (call_value_internal): Likewise call_value_internal*.
930 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
931 (untyped_call): Remove if (operands[0]) magic.
932 (prefetch_si_address, prefetch_si): Change type to "prefetch".
933 (prefetch_di_address, prefetch_di): Likewise.
934 (leasi, leadi): Remove.
935 (reloc_gprel16): New.
936
937 * config/mips/5400.md (ir_vr54_hilo): Include const type.
938 * config/mips/5500.md (ir_vr55_hilo): Likewise.
939 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
c9e1a048 940
941 2003-01-08 Eric Christopher <echristo@redhat.com>
942
5125036e 943 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
944 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
945 configure check for libgloss.
946 * config/mips/elf64.h: Ditto.
947 * config/mips/mips.c: Remove ABI_MEABI.
948 * config/mips/mips.h: Ditto.
c9e1a048 949
950 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
951
5125036e 952 Fix merge fallout.
953 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
954 (muldi3_internal): Remove outdated comment.
955 (*muls_di, *umuls_di): Fix comment and 64-bitness.
956 (*smsac_di, *umsac_di): Likewise. Reformat.
957 (umulsi3_highpart): Minor formatting tweaks.
958 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI. Remove
959 redundant scratch operand. Minor formatting tweak.
960 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
961 (umulsi3_highpart_neg_mulhi_internal): Likewise. Fix asm template.
962 (smulsi3_highpart): As for the unsigned version.
963 (smulsi3_highpart_internal): Likewise.
964 (smulsi3_highpart_mulhi_internal): Likewise.
965 (smulsi3_highpart_neg_mulhi_internal): Likewise.
966 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
967 (*smul_acc_di): Remove duplicated pattern.
968 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
969 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
970 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
c9e1a048 971
972 2002-10-22 Eric Christopher <echristo@redhat.com>
973
5125036e 974 * config/mips/mips-protos.h (mips_return_addr): New.
975 * config/mips/mips.c (mips_return_addr): New.
976 (movdi_operand): Remove.
977 (se_register_operand): Ditto.
978 (se_reg_or_0_operand): Ditto.
979 (se_uns_arith_operand): Ditto.
980 (se_arith_operand): Ditto.
981 (se_nonmemory_operand): Ditto.
982 (extend_operator): Ditto.
983 (highpart_shift_operator): Ditto.
984 (mips_initial_elimination_offset): Remove return address pointer
985 elimination.
986 (mips_reg_names): Remove $ra.
987 (mips_regno_to_class): Ditto.
988 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
989 and TARGET_64BIT.
990 (POINTER_BOUNDARY): Remove.
991 (POINTERS_EXTEND_UNSIGNED): Define to 0.
992 (PROMOTE_MODE): Promote to Pmode.
993 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
994 (Pmode): Define to TARGET_64BIT.
995 (FUNCTION_MODE): Define as Pmode.
996 (mips_args): Remove deleted functions.
997 (SIZE_TYPE): Depend on POINTER_SIZE.
998 (PTRDIFF_TYPE): Ditto.
999 (FIXED_REGISTERS): Fix extra registers.
1000 (CALL_USED_REGISTERS): Ditto.
1001 (CALL_REALLY_USED_REGISTERS): Ditto.
1002 (RAP_REG_NUM): Remove.
1003 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
1004 (RETURN_ADDR_RTX): Define to mips_return_addr.
1005 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
1006 (CAN_ELIMINATE): Ditto.
1007 * config/mips/mips.md: For DImode patterns, take into account
1008 deletions above. Split mulsidi patterns into sign_extend and
1009 zero_extend.
c9e1a048 1010
1011 2002-10-16 Richard Sandiford <rsandifo@redhat.com>
5125036e 1012 Michael Meissner <meissner@redhat.com>
1013
1014 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
1015 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
1016 mop up unnecessarly moves through LO.
1017 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
1018 (*macc): New pattern for ISA_HAS_MACC. Add define_peephole2s to
1019 change mtlo/macc sequences into mul/add sequences when a three-
1020 address mul is available.
1021 (*macc2): New pattern. Add a define_peephole2 to generate it.
1022 (*mul_sub_si): Fix contraint for operand 5.
1023 (*muls): Use in 32-bit code as well.
1024 (*msac): Likewise. Use msub instead of msac in vr5500 code
1025 if the destination is LO. Remove duplicate define_split.
1026 (*muls_di): Use only in 32-bit code. Adjust rtl accordingly.
1027 (*msac_di): Likewise. Fix formatting.
1028 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
1029 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
1030 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
1031 (*xmulsi3_neg_highpart_mulhi): Likewise.
1032 (*mul_acc_64bit_di): Remove.
1033 (*mul_acc_di): Use only in 32-bit code. Handle ISA_HAS_MACC as well.
c9e1a048 1034
1035 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1036
5125036e 1037 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
1038 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
1039 (MULTILIB_DIRNAMES): Remove long32.
1040 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
1041 (MULTILIB_REDUNDANT_DIRS): Remove.
c9e1a048 1042
1043 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
1044
5125036e 1045 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
1046 * gcc.c (driver_self_specs): New variable.
1047 (do_self_spec): New function.
1048 (main): Use it to process driver_self_specs.
c9e1a048 1049
1050 2002-10-09 Richard Sandiford <rsandifo@redhat.com>
1051
5125036e 1052 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
1053 Remove DImode define_split for !TARGET_64BIT.
1054 (anddi3): Remove !TARGET_64BIT support from here as well.
1055 Change operand 2's predicate to se_uns_arith_operand.
1056 Add constant alternatives to define_insn.
1057 (iordi3, xordi3, *nordi3): Likewise.
1058 (anddi3_internal1, xordi3_immed): Remove.
c9e1a048 1059
1060 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
1061
5125036e 1062 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
1063 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
1064 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
1065 * config/mips/mips.md: Apply same renaming here.
c9e1a048 1066
1067 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
1068
5125036e 1069 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
1070 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
1071 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
1072 * config/mips/mips.md (define_attr cpu): Remove r4320.
1073 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
c9e1a048 1074
1075 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
1076
5125036e 1077 * config/mips/mips.c (mips16_strings): New variable.
1078 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
1079 symbol in mips16_strings. Free the list.
1080 (mips_encode_section_info): Keep track of local strings.
c9e1a048 1081
1082 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
1083
5125036e 1084 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
1085 (sordered_df, sordered_sf): Remove.
1086 * config/mips/mips.c (get_float_compare_codes): New fn.
1087 (gen_int_relational, gen_conditional_move): Use it.
c9e1a048 1088
1089 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
1090
5125036e 1091 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
1092 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
1093 * config/mips/mips.c (fcc_register_operand): New function.
1094 (mips_emit_fcc_reload): New function, extracted from reload_incc.
1095 (override_options): Allow TFmode values in float registers
1096 if ISA_HAS_8CC.
1097 * cnfig/mips/mips.md (reload_incc): Change destination prediate
1098 to fcc_register_operand. Remove misleading source constraint.
1099 Use mips_emit_fcc_reload.
c9e1a048 1100 (reload_outcc): Duplicate reload_incc.
1101
1102
6ebf93be 11032003-04-30 Diego Novillo <dnovillo@redhat.com>
1104
1105 * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
1106
890095ce 11072003-04-30 Geoffrey Keating <geoffk@apple.com>
1108
1109 * tree-inline.c (inlinable_function_p): Back out last change, it's
1110 unnecessary.
1111
761cbb5d 11122003-04-30 Steven Bosscher <steven@gcc.gnu.org>
1113
1114 * ggc-page.c (TREE_EXP_SIZE): Define.
1115 (extra_order_size_table): New entry for expr trees with
1116 two operands.
1117
834fc4a0 11182003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1119
1120 * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
1121 (c_expand_start_cond): Adjust.
1122 (c_expand_end_cond): Don't use warning_with_file_and_file.
1123 (shadow_warning): Likewise.
1124
5f27b304 11252003-04-30 Nathan Sidwell <nathan@codesourcery.com>
1126
1127 * tree.h (DECL_POINTER_DEPTH): Remove.
1128 (struct tree_decl): Remove pointer_depth.
c9e1a048 1129
31c54401 11302003-04-30 Janis Johnson <janis187@us.ibm.com>
1131
1132 * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
1133 * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
1134 (rs6000_xcoff_encode_section_info): Remove.
1135 (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
1136 (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
1137 (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
1138 Use SYMBOL_REF_FLAGS.
1139 (rs6000_elf_encode_section_info): Call default_encode_section_info for
1140 generic flags, use SYMBOL_REF_FLAGS; code cleanups.
1141 * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
1142 (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
1143 * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
1144 (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
1145
b1d3f307 11462003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1147
1148 * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
1149
a5285cd3 11502003-04-30 Andreas Schwab <schwab@suse.de>
1151
1152 * doc/extend.texi (Other Builtins): Enclose multiple word data
1153 type in braces for @deftypefn.
1154
0e68b223 11552003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1156
ad15125b 1157 * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
1158
0e68b223 1159 * doc/install.texi (--enable-threads): Document "gnat" option.
1160
3085426c 11612003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1162
1163 * diagnostic.h (output_formatted_scalar): Tweak.
1164 * diagnostic.c (output_long_decimal): Likewise.
1165 (output_unsigned_decimal): Likewise.
1166 (output_long_unsigned_decimal): Likewise.
1167 (output_octal): Likewise.
1168 (output_long_octal): Likewise.
1169 (output_hexadecimal): Likewise.
1170 (output_long_hexadecimal): Likewise.
1171 (output_pointer): New function.
1172 (output_format): Use it. Recognize "%p" format specifier.
1173
c4327e0e 11742003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1175
1176 * function.c (purge_addressof_1): Postpone insn in fewer cases.
1177
fd49c655 11782003-04-29 Geoffrey Keating <geoffk@apple.com>
1179
585fefa7 1180 * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
1181 call abort() after running out of stack space.
1182
fd49c655 1183 * c-typeck.c (function_types_compatible_p): Ignore incompatible
1184 'volatile' qualifiers on a function's return type in GNU mode.
1185
c050f95a 11862003-04-29 Aldy Hernandez <aldyh@redhat.com>
1187
5125036e 1188 * expr.c (emit_group_load): Dump parallels of simd types to
1189 memory.
c050f95a 1190
c9407b73 11912003-04-29 Vladimir Makarov <vmakarov@redhat.com>
1192
1193 * genautomata.c (add_vect): Check undefined value for range type
1194 too.
1195
e9b19591 11962003-04-29 Phil Edwards <pme@gcc.gnu.org>
1197
1198 * configure.in: More general test for cmp --ignore-initial.
1199 * configure: Regenerate.
1200
d30525e2 12012003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1202
5f1e9331 1203 * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
1204 (layout_decl, place_field): Likewise.
1205 Also make minor type and whitespace changes.
1206
d30525e2 1207 * tree.c (save_expr): Don't fold a COMPONENT_REF.
1208
dbe1f550 12092003-04-29 Olivier Hainque <hainque@act-europe.fr>
1210
1211 * calls.c (expand_call): When modes of target and valreg match, force
1212 sibcall failure when target is a MEM.
1213
84aa4538 12142003-04-29 Geoffrey Keating <geoffk@apple.com>
1215
63c5fe46 1216 * tree-inline.c (inlinable_function_p): Don't support inlining
1217 functions using varargs.
1218
7e11db47 1219 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
1220
d744d41d 1221 * dwarf2out.c (output_call_frame_info): No need to output EH
1222 unwind information if all_throwers_are_sibcalls.
1223
1a30330c 1224 * c-semantics.c (expand_unreachable_stmt): Return a tree.
1225 (expand_stmt): Update for change to expand_unreachable_stmt.
1226 (expand_unreachable_if_stmt): Likewise.
1227
84aa4538 1228 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
1229
6a61caf2 12302003-04-29 Jason Merrill <jason@redhat.com>
1231
1232 PR middle-end/10336
c9e1a048 1233 * jump.c (never_reached_warning): Really stop looking if we reach
6a61caf2 1234 the beginning of the function.
1235
cf439ba9 12362003-04-29 Bob Wilson <bob.wilson@acm.org>
1237
1238 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
1239 Remove redundant macros.
1240 (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
1241 (LOCAL_LABEL_PREFIX): Define unconditionally.
1242 (NO_DOT_IN_LABEL): Clarify comment.
1243 * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
1244 definition to "long int".
1245
47ddfa93 12462003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
1247
1248 bootstrap/10452
1249 * gengtype-yacc.y: Improve portability.
1250
1aa537a1 12512003-04-29 Zack Weinberg <zack@codesourcery.com>
1252
1253 * config.gcc: Install obsolete target list for GCC 3.3.
1254 * doc/install.texi: Mention in specific-target instructions
1255 that certain configurations are deprecated.
1256
a2887365 12572003-04-29 Zack Weinberg <zack@codesourcery.com>
1258
1259 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
1260
6122f188 12612003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1262
1263 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
1264 * gcc.c (display_help): Likewise.
1265 * toplev.c (f_options): Likewise.
1266 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
1267 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
1268 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
1269 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
1270 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
1271
55e9fda5 12722003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
1273
1274 * varasm.c (default_assemble_visibility): Use assemble_name.
1275
825422ae 12762003-04-29 David O'Brien <obrien@FreeBSD.org>
1277
1278 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
6d558203 1279 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
1280 (SIZE_TYPE): New macro.
1bd93e53 1281 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
1282 (SET_ASM_OP): New macro.
1283 (HANDLE_SYSV_PRAGMA): New macro.
1284 (ASM_WEAKEN_LABEL): New macro.
825422ae 1285
28f45805 12862003-04-28 Mark Mitchell <mark@codesourcery.com>
1287
1288 PR c++/10180
1289 * tree-inline.c (expand_call_inline): Call push_srcloc when
1290 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
1291
4e84a947 12922003-04-28 Mike Stump <mrs@apple.com>
1293
1294 * gdbinit.in: Update to reflect new identifier structure.
1295
b56337d2 12962003-04-28 Zack Weinberg <zack@codesourcery.com>
1297
1298 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
1299 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
1300 struct tree_complex, struct tree_vector): Remove RTL field.
1301 (CONSTRUCTOR_ELTS): Use elt 0.
1302 * tree.def (CONSTRUCTOR): Delete first of its two operands.
1303 * varasm.c (output_constant_def): Remove early exit if
1304 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
1305 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
1306 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
1307 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
1308
d459e0d8 13092003-04-28 Jakub Jelinek <jakub@redhat.com>
1310
1311 * c-decl.c (finish_decl): When prototype with asmspec is found
1312 for built-in, adjust built_in_decls as well as expr.c decls.
1313 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
1314 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
1315 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
1316
95989dc6 13172003-04-28 Richard Henderson <rth@redhat.com>
1318
b56337d2 1319 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
1320 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
1321 integral constant mult operand.
1322 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
1323 (const_smulsi3_highpart_v8plus): Likewise.
1324 (const_smulsi3_highpart): Likewise.
1325 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
1326 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
1327 (const_umulsi3_highpart_v8plus): Likewise.
1328 (const_umulsi3_highpart): Likewise.
95989dc6 1329
be5e32fd 13302003-04-28 David O'Brien <obrien@FreeBSD.org>
1331
1332 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
1333 Define as 1.
1334
151d299d 13352003-04-28 David O'Brien <obrien@FreeBSD.org>
1336
1337 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
1338
c4950093 13392003-04-28 Jakub Jelinek <jakub@redhat.com>
1340
1341 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
1342 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
1343 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
1344 functions.
1345 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
1346
11a31105 13472003-04-28 Nick Clifton <nickc@redhat.com>
1348
1349 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
1350
63c8163c 13512003-04-27 Zack Weinberg <zack@codesourcery.com>
1352
1353 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
1354 output_constant_def, use its result instead of TREE_CST_RTL (exp).
1355 Can assume it has the form (mem (symbol_ref ".LCxxx")).
1356 (expand_expr <COMPONENT_REF>): Can always just extract the
1357 relevant field of a CONSTRUCTOR.
1358 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
1359 ARRAY_RANGE_REF>): Make control flow explicit.
1360 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
1361 an INTEGER_CST.
1362
6d5998ec 13632003-04-27 Kazu Hirata <kazu@cs.umass.edu>
1364
1365 * reload1.c (reg_set_luid): Fix a comment typo.
1366
b2fd8d52 13672003-04-27 Zack Weinberg <zack@codesourcery.com>
1368
1369 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
1370 struct deferred_string, const_str_htab): Kill.
1371 (n_deferred_strings): New static variable.
1372 (build_constant_desc): Set SYMBOL_REF_DECL of the new
1373 symbol_ref to point to the constant.
1374 (output_constant_def): When a deferred string is forced out,
1375 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
1376 (mark_constant): Likewise.
1377 (maybe_output_constant_def_contents): When deferring a string
1378 constant, just set STRING_POOL_ADDRESS_P and increment
1379 n_deferred_strings.
1380 (mark_constant_pool): Check n_deferred_strings, not the size
1381 of const_str_htab.
1382 (init_varasm_once): No need to create const_str_htab.
1383
1384 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
1385 SYMBOL_REF_DECL points to a constant.
1386
4f3740f1 13872003-04-26 Zack Weinberg <zack@codesourcery.com>
1388
1389 * varasm.c (output_constant_def): Split out two new static
1390 functions, build_constant_desc and maybe_output_constant_def_contents.
1391 Restructure for comprehensibility. Don't call
1392 output_addressed_constants. Treat defstr being non-NULL for
1393 STRING_POOL_ADDRESS_P constants as an invariant.
1394 (struct deferred_string): Remove labelno field.
1395 (output_constant_def_contents): Kill labelno argument. Call
1396 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
1397 asm_out.internal_label.
1398 (mark_constant): Update call to output_constant_def_contents.
1399 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
1400 constants as an invariant.
1401
fa7bc869 14022003-04-26 Richard Henderson <rth@redhat.com>
1403
1404 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
1405 (ix86_expand_call, ix86_rtx_consts): Likewise.
1406
e91abd92 14072003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1408
1409 * doc/md.texi (cmpstr): Document additional restrictions.
1410
9a35b648 14112003-04-26 Neil Booth <neil@daikokuya.co.uk>
1412
1413 * flags.h (time_report): Remove.
1414 * timevar.c (timevar_enable): New.
1415 (TIMEVAR_ENABLE): Remove, use timevar_enable.
1416 (timevar_init): Rename from init_timevar.
1417 * timevar.h (timevar_init): Rename from init_timevar.
1418 * toplev.c (time_report): Make static.
1419 (do_compile): Conditionally call init_timevar first.
1420 (preprocess_options): Move some code to do_compile.
1421
b74a1951 14222003-04-26 Stephane Carrez <stcarrez@nerim.fr>
1423
1424 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
1425
76fef2f2 14262003-04-26 Neil Booth <neil@daikokuya.co.uk>
1427
1428 * _cpp_lex_direct: Remove pointless code.
1429
76b9b5f9 14302003-04-26 Stephane Carrez <stcarrez@nerim.fr>
1431
1432 * doc/extend.texi (Function Attributes): Document "near" and "far"
1433 for 68HC11 and 68HC12.
1434
d2e73365 14352003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1436
1437 * expr.c (store_field): When making temporary for store, don't
1438 make it TYPE_QUAL_CONST.
1439
e578adbb 14402003-04-25 Phil Edwards <pme@gcc.gnu.org>
1441
1442 * toplev.c (read_integral_parameter): Use "argument" in error
1443 message to distinguish it from actual invalid options.
1444
c3fa91b8 14452003-04-25 Bob Wilson <bob.wilson@acm.org>
1446
1447 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
1448 addition of __PIC__ and __pic__ macros.
1449 * config/xtensa/xtensa.h: Clean up indentation.
1450
389269e4 14512003-04-25 Bob Wilson <bob.wilson@acm.org>
1452
1453 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
1454 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
1455 (SUBTARGET_CPP_SPEC): Define.
1456 (LIB_SPEC): Delete.
1457 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
1458 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
1459 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
1460 Define.
1461 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1462 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
1463
d8fb99f8 14642003-04-25 H.J. Lu <hjl@gnu.org>
1465
1466 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
1467 for return mode.
1468 (ia64_expand_builtin): Set rmode to SImode for
1469 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
1470 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
1471 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
1472 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
1473
3cc6fc69 14742003-04-25 Phil Edwards <pme@gcc.gnu.org>
1475
1476 * configure.in (make_compare_target): Test for GNU cmp and set this
1477 variable appropriately.
1478 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
1479 compare4-lean): Rename actual targets to slowcompare*. New compare*
1480 targets depend on names based on make_compare_target.
1481 * configure: Regenerated.
1482
3924b08e 14832003-04-25 Richard Henderson <rth@redhat.com>
1484
1485 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
1486 to clobber ar.pfs and ar.unat.
1487 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
1488 fix test for spilling ar.pfs to the stack.
1489
14902003-04-25 Richard Henderson <rth@redhat.com>
36f8475a 1491
4f3740f1 1492 PR opt/10315
1493 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
1494 checks during reload; use validize_mem instead of adjust_address.
36f8475a 1495
86437b62 14962003-04-26 Ben Elliston <bje@wasabisystems.com>
1497
1498 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
1499 return values from recog_memoized().
1500
48691de1 15012003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1502
1503 PR opt/8705
1504 * gcse.c (try_replace_reg): On a successful substitution of a constant
1505 into a single set, try to simplify the source of the set.
1506 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
1507 constant source.
1508
b1280514 15092003-04-24 Neil Booth <neil@daikokuya.co.uk>
1510
1511 * cpplex.c (cpp_token_len): Tighten up.
1512 (cpp_token_as_text): Need extra byte now.
1513 * cpplib.c (glue_header_name): Need extra 2 bytes.
1514 * cppmacro.c (cpp_macro_definition): Need extra byte.
1515
0dd62afe 15162003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
1517
1518 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
4f3740f1 1519 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
0dd62afe 1520 where they might be not present. Use their _sp64 equivalent
1521 instead.
1522
f8334bae 1523Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
1524
1525 * i386.md (cvtsi2sdq): Fix typo in previous patch.
4f3740f1 1526
b503c1a2 15272003-04-24 Krister Walfridsson <cato@df.lth.se>
1528
1529 * configure.in: Check whether mbstowcs works.
1530 * configure, config.in: Regenerate.
1531 * intl.c: Use HAVE_WORKING_MBSTOWCS.
1532
e7e434bb 15332003-04-24 H.J. Lu <hjl@gnu.org>
1534
1535 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
1536 for __sync_bool_compare_and_swap_di for int return type.
1537
1538 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
1539 Change return type to int.
1540 (__sync_bool_compare_and_swap): Likewise.
1541
5e69cae4 1542Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
1543
1544 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
1545 looking for fallthru edge.
1546
1547 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
1548 Fix.
1549 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
1550 athlon-fvector): New.
1551 (athlon_*): Revisit to match new optimization guide.
1552 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
1553 * i386.md (cvt??2?? patterns): Fix modes.
1554 (fistp patterns): Set modes.
1555
1556 Accidentaly commited with my earlier reload patch:
1557 PR c/10308
1558 * reload.c (find_reloads_address_1): Reload plus at the place of
1559 index register.
4f3740f1 1560
3f2c2dd8 15612003-04-24 Nathan Sidwell <nathan@codesourcery.com>
1562
1563 New GCOV_TAG_FUNCTION layout
1564 * coverage.c (struct function_list): Replace name with ident.
1565 (struct counts_entry): Likewise.
1566 (fn_ident): New.
1567 (htab_counts_entry_hash, htab_counts_entry_eq,
1568 htab_counts_entry_del): Adjust.
1569 (reads_count_file, get_coverage_counts,
1570 coverage_begin_output, coverage_end_function): Adjust.
1571 (build_fn_info_type, build_fn_info_value): Likewise.
1572 * gcov-dump.c (tag_function): Adjust.
1573 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
1574 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
1575 * gcov.c (struct function_info): Add ident.
1576 (read_graph_file, read_count_file): Adjust.
1577 * libgcov.c (gcov_exit): Adjust.
1578
d674a143 15792003-04-23 Richard Henderson <rth@redhat.com>
1580
1581 PR opt/8300
1582 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
1583 after initialize_uninitialized_subregs; update reg info assuming
1584 new pseudos were created.
1585
4970d4c2 15862003-04-23 Neil Booth <neil@daikokuya.co.uk>
1587
1588 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
1589 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
1590 (lex_string): Take cpp_string with full spelling.
1591 (cb_ident): Update.
1592 (c_lex): Update diagnostics.
1593 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
1594 (create_literal): New.
1595 (lex_string): Unterminated literals have type CPP_OTHER.
1596 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
1597 for CPP_OTHER.
1598 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
1599 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
1600 * cpplib.c (parse_include, do_line, do_linemarker,
1601 destringize_and_run): Update for token storing full spelling.
1602 * cpplib.h: Update token spelling types.
1603 * cppmacro.c (stringify_arg, check_trad_stringification):
1604 Update for token storing full spelling.
1605
0cc1c946 16062003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
1607
1608 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
1609
514916d7 16102003-04-23 Richard Earnshaw <rearnsha@arm.com>
1611
1612 * arm.h (TARGET_OPTIONS): Add value field.
1613
448c0fae 16142003-04-23 Mark Mitchell <mark@codesourcery.com>
1615
1616 * doc/extend.texi: Remove duplicate 2003 copyright date.
1617
ab6a34f2 16182003-04-23 Nathan Sidwell <nathan@codesourcery.com>
1619
1620 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
1621 (libgcov.a): Depends on LIBGCC_DEPS.
1622 * basic-block.h (profile_info): Moved here from coverage.h. Made
1623 a pointer.
1624 * coverage.c (struct function_list): Fixed array of counter types.
1625 (struct counts_entry): Keyed by counter type, contains summary.
1626 (profile_info): Moved to profile.c.
1627 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
1628 vars.
1629 (profiler_label): Remove.
1630 (ctr_labels): New.
1631 (set_purpose, label_for_tag, build_counter_section_fields,
1632 build_counter_section_value, build_counter_section_data_fields,
1633 build_counter_section_data_values, build_function_info_fields,
1634 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
1635 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
1636 build_ctr_info_value, build_gcov_info): New.
1637 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
1638 (reads_counts_file): Adjust.
1639 (get_coverage_counts): Takes counter number. Add summary
1640 parameter. Adjust.
1641 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
1642 create counter array labels.
1643 (coverage_end_function): Adjust.
1644 (create_coverage): Adjust.
1645 (find_counters_section): Remove.
1646 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
1647 (struct section_info, struct profile_info): Remove.
1648 (profile_info): Moved to basic-block.h.
1649 (coverage_counter_ref): Takes a counter number.
1650 (get_coverage_counts): Takes a counter number. Added summary
1651 parameter.
1652 (find_counters_section): Remove.
1653 * gcov-dump.c (tag_arc_counts): Rename to ...
1654 (tag_counters): ... here. Adjust.
1655 (tag_table): Move tag_counters to 3rd entry. Remove
1656 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
1657 (dump_file): Check for counter tag values here.
1658 (tag_summary): Adjust.
1659 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
1660 * gcov-io.h (GCOV_LOCKED): New.
1661 (GCOV_TAG_ARC_COUNTS): Rename to ...
1662 (GCOV_TAG_COUNTS_BASE): ... here.
1663 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
1664 Remove.
1665 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
1666 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
1667 GCOV_TAG_IS_COUNTER): New.
1668 (struct gcov_ctr_summary): New.
1669 (struct gcov_summary): Adjust.
1670 (struct gcov_counter_section): Remove.
1671 struct gcov_counter_section_data): Remove.
1672 (struct gcov_function_info): Rename to ...
1673 (struct gcov_fn_info): ... here. Adjust.
1674 (struct gcov_ctr_info): New.
1675 (struct gcov_info): Adjust.
1676 * gcov.c (read_count_file): Adjust.
1677 (output_lines): Adjust.
1678 * libgcov.c (gcov_exit): Adjust.
1679 (__gcov_flush): Adjust.
1680 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
1681 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
1682 probably_never_executed_bb_p, compute_frequency_function): Adjust
1683 profile_info use.
1684 * profile.c (struct counts_entry): Remove.
1685 (profile_info): Define here.
1686 (get_exec_counts): Adjust get_coverage_counts call.
1687 (compute_branch_probablilities): Remove find_counters_section
1688 call.
1689 (gen_edge_profiler): Adjust coverage_counter_ref call.
1690 * tracer.c (tail_duplicate): Adjust profile_info use.
1691
7a3f89b5 16922003-04-23 Roger Sayle <roger@eyesopen.com>
1693
1694 PR optimization/10339
1695 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
1696 directly instead of unsafely transforming call into a memcmp.
1697 (expand_builtin_strncmp): Likewise.
1698
01960f67 16992003-04-22 Roger Sayle <roger@eyesopen.com>
1700
1701 * alias.c (mark_constant_function): Check for constancy and
1702 purity even of void functions. Update both the function decl
1703 and the cgraph RTL info with the results.
1704
0a4f46e2 17052003-04-22 Roger Sayle <roger@eyesopen.com>
1706
1707 * real.c (do_add): Change to return a bool indicating that the
1708 result of the operation may be inexact due to loss of precision.
1709 (do_multiply): Likewise.
1710 (do_divide): Likewise.
1711
909be935 17122003-04-22 Geoffrey Keating <geoffk@apple.com>
1713 Loren James Rittle <ljrittle@acm.org>
1714
1715 * dwarf2out.c (fde_table_allocated): Mark with GTY.
1716 (decl_die_table_allocated): Likewise.
1717 (abbrev_die_table_allocated): Likewise.
1718 (line_info_table_allocated): Likewise.
1719 (separate_line_info_table_allocated): Likewise.
1720 (pubname_table_allocated): Likewise.
1721 (arange_table_allocated): Likewise.
1722 (ranges_table_allocated): Likewise.
1723 (decl_die_table_in_use): Unconditionalize; mark with GTY.
1724 (abbrev_die_table_in_use): Likewise.
1725 (line_info_table_in_use): Likewise.
1726 (separate_line_info_table_in_use): Likewise.
1727 (pubname_table_in_use): Likewise.
1728 (arange_table_in_use): Likewise.
1729 (ranges_table_in_use): Likewise.
1730 (have_location_lists): Likewise.
1731 (emitcount): New GTY-marked static, moved...
1732 (maybe_emit_file): ...from here.
1733 (label_num): New GTY-marked static, moved...
1734 (gen_internal_sym): ...from here.
1735
1ed8ccdb 17362003-04-22 Richard Henderson <rth@redhat.com>
1737
4f3740f1 1738 PR 8866
1739 * rtl.h (MEM_NOTRAP_P): New.
1740 (MEM_COPY_ATTRIBUTES): Copy it.
1741 * rtlanal.c (may_trap_p): Check it.
1742 * expr.c (do_tablejump): Set it.
1ed8ccdb 1743 * doc/rtl.texi (Flags): Document it.
1744
4f3740f1 1745 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
1ed8ccdb 1746
81a5b286 17472003-04-22 Olivier Hainque <hainque@act-europe.fr>
1748
1749 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
1750 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
1751
8fd08e7d 17522003-04-22 Vincent Celier <celier@gnat.com>
1753
4f3740f1 1754 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
1755 --enable-threads=gnat.
1756 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
1757 * configure.in: Add gnat to the list of thread packages
1758 * configure: Rebuild.
1759 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
8fd08e7d 1760
cc6448c7 17612003-04-22 Neil Booth <neil@daikokuya.co.uk>
1762
1763 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
65688736 1764
17652003-04-22 Devang Patel <dpatel@apple.com>
1766
cc6448c7 1767 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
1768 parameter count.
65688736 1769 (_cpp_copy_replacement_text): Same.
4f3740f1 1770
bc205914 17712003-04-22 Neil Booth <neil@daikokuya.co.uk>
1772
1773 * c-lex.c (c_lex): Handle CPP_OTHER differently.
1774 * cppexp.c (_cpp_parse_expr): Similarly.
1775 * cpplex.c (SPELL_CHAR): Remove.
1776 (_cpp_lex_direct): Stray chars are saved as byte strings.
1777 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
1778 handle SPELL_CHAR.
1779 (cpp_avoid_paste): Update handling of CPP_OTHER.
1780 * cpplib.h: Spell CPP_OTHER like a number.
1781 (struct cpp_token): Remove member c.
1782 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
1783
b5c673fc 17842003-04-22 David Turner <novalis@gnu.org>
1785
1786 * gbl-ctors.h: Add special license exception.
1787 * libgcc2.h: Likewise.
1788 * tsystem.h: Likewise.
1789 * gcov-io.h: Likewise.
1790
cf451ad8 17912003-04-22 David Edelsohn <edelsohn@gnu.org>
1792
1793 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
1794 macro defaulting to original BRANCH_COST heuristic.
1795 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
1796
1797 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
1798
79bbdafd 17992003-04-22 Aldy Hernandez <aldyh@redhat.com>
1800
4f3740f1 1801 * config/rs6000/t-spe: Merge in t-fprules into file.
79bbdafd 1802
4f3740f1 1803 * config.gcc: Add t-spe to powerpc-eabispe.
79bbdafd 1804
ce75e2bb 18052003-04-22 Kean Johnston <jkj@sco.com>
1806
1807 * tlink.c (recompile_files): Add missing '=' to putenv calls
1808
8f958018 18092003-04-22 Nathan Sidwell <nathan@codesourcery.com>
1810
1811 * ginclude/stddef.h: Provide C++ safe offsetof.
1812
7df1e94c 18132003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
1814
1815 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
1816 for reg notes, if there are no substitutions, just use a SUBREG.
1817
95cedffb 18182003-04-21 Mark Mitchell <mark@codesourcery.com>
1819
1820 * Makefile.in (calls.o): Depend on except.h.
1821 * calls.c: Include except.h.
1822 (emit_call_1): Call note_eh_region_may_contain_throw if
1823 appropriate.
1824 * except.c (eh_region): Add may_contain_throw.
1825 (expand_eh_region_end_cleanup): Do not include handler code when
1826 it cannot be reached.
1827 (note_eh_region_may_contain_throw): New function.
1828 * except.h (note_eh_region_may_contain_throw): New function.
1829
813bd90e 18302003-04-21 Mark Mitchell <mark@codesourcery.com>
1831
1832 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
1833 changes.
1834
5c2ebbe1 18352003-04-21 Aldy Hernandez <aldyh@redhat.com>
1836
4f3740f1 1837 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
1838 64-bit long doubles.
5c2ebbe1 1839
4c4a1039 18402003-04-21 Olivier Hainque <hainque@act-europe.fr>
1841
f2fa1510 1842 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
1843 a number of conversions required for type consistency and previously
1844 stripped off by STRIP_NOPS.
1845
4c4a1039 1846 * calls.c (expand_call): Prevent sibcall optimization for calls to
1847 nested subprograms.
1848
4007ab72 1849 * expmed.c (extract_bit_field): Reverse operands of && condition to
4f3740f1 1850 prevent a potential division by zero in the previously first branch.
4007ab72 1851 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
1852
600dbd47 18532003-04-21 Joel Brobecker <brobecker@gnat.com>
1854
1855 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
1856 (subrange_type_die): Likewise.
1857 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
1858 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
1859
44359ced 18602003-04-21 Nathan Sidwell <nathan@codesourcery.com>
1861
4f3740f1 1862 Break out coverage routines to new file.
1863 * Makefile.in (COVERAGE_H): New variable
1864 (C_OBJS): Add coverage.o
1865 (coverage.o): New target.
1866 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
1867 dependencies.
1868 (GTFILES): Adjust.
1869 (gt-coverage.h): New target.
1870 (gt-profile.h): Remove.
1871 * profile.h: Remove. Move to ...
1872 * coverage.h: ... here. New. #include gcov-io.h.
1873 * gcov-io.h: Move function definitions to ...
1874 * gcov-io.c: ... here. New.
1875 * profile.c: Move coverage routines to coverage.c.
1876 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
1877 end_branch_prob): Adjust.
1878 * coverage.c: New. Coverage routines from profile.c
1879 (coverage_counter_ref, coverage_init, coverage_finish,
1880 coverage_end_function, coverage_begin_output,
1881 coverage_counter_ref, get_coverage_counts): Define.
1882 * gcov-dump.c, gcov.c: #include gcov-io.c.
1883 * libgcov.c: Likewise. Adjust.
1884 * loop-init.c: Don't #include profile.h
1885 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
1886 * rtl.h: Add coverage prototypes.
1887 * toplev.c (compile_file): Init coverage, not branch_prob.
1888 Always call coverage_finish.
1889 (rest_of_compilation): Call coverage_end_function.
44359ced 1890
f8ccbb9b 18912003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
2eac54b2 1892
1893 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
1894
58efbd5a 18952003-04-21 Neil Booth <neil@daikokuya.co.uk>
1896
1897 * c-ppoutput.c (cb_include): Don't take a cpp_token.
1898 * cppfiles.c: Don't undef strcmp.
1899 (find_include_file): Don't take a cpp_token. Check for empty
1900 file names.
1901 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
1902 (cpp_push_include): Simplify.
1903 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
1904 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
1905 (parse_include): Similary. Don't check for zero-length filenames.
1906 (do_include_common, do_pragma_dependency): Update accordingly.
1907 * cpplib.h (struct cpp_callbacks): Change prototype of include.
1908
96d87f56 19092003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4f3740f1 1910
aff3d9b2 1911 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
1912 details of conflict handling.
4f3740f1 1913
601e1666 1914 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
1915 when conversion overflows.
1916
ac068b11 1917 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
1918
96d87f56 1919 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
1920 before clearing.
1921
f3460b7c 19222003-04-21 Mark Mitchell <mark@codesourcery.com>
1923
1924 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
1925 have the same form as the old RTL.
1926
7d3b0527 19272003-04-21 Andreas Jaeger <aj@suse.de>
1928
4f3740f1 1929 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
7d3b0527 1930
3895b6b1 19312003-04-20 Chris Lattner <sabre@nondot.org>
1932 Zack Weinberg <zack@codesourcery.com>
1933
1934 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
1935 genrtl_cleanup_stmt. Correct comment at head of
1936 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
1937
1938 * stmt.c (struct nesting): Kill n_function_calls.
1939 (expand_start_bindings): Don't set
1940 thisblock->data.block.n_function_calls.
1941 (expand_end_bindings): Compare function_call_count against 0.
1942 (expand_cleanups): Kill DONT_DO argument; all callers passed
1943 NULL_TREE. All callers updated to match.
1944
cd1fbf44 19452003-04-20 Zack Weinberg <zack@codesourcery.com>
1946
1947 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
1948 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
1949 (output_constant_def): Remove code predicated on
1950 defer_addressed_constants_flag.
1951
1952 * output.h: Remove prototypes of deleted functions.
1953 * c-typeck.c (constructor_subconstants_deferred): Kill.
1954 (struct initializer_stack): Remove 'deferred' field.
1955 (start_init): Remove all references to the above.
1956 (finish_init): Likewise. Also remove never-executed call to
1957 output_deferred_addressed_constants. Pull assignment to
1958 defstr out of if expression.
1959
aad4a87f 19602003-04-20 Neil Booth <neil@daikokuya.co.uk>
1961
1962 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
1963 NOTE_NEWLINE): Remove.
1964 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
1965 to handle new form of line note type.
1966
2c129d70 19672003-04-20 Zack Weinberg <zack@codesourcery.com>
1968
1969 * target.h (encode_section_info): Add new argument carrying
1970 the RTL to be modified by the hook.
1971
1972 * varasm.c (make_decl_rtl, output_constant_def): Update calls
1973 to encode_section_info.
1974 (default_encode_section_info): Take and use RTL argument,
1975 don't use TREE_CST_RTL or DECL_RTL.
1976 * output.h: Update prototype of default_encode_section_info.
1977 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
1978 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
1979 Update calls to encode_section_info.
1980
1981 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
1982 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
1983 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
1984 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
1985 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
1986 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
1987 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
1988 except for PE dllimport/dllexport. Update calls to
1989 default_encode_section_info.
1990
1991 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
1992 Update prototypes.
1993
1994 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
1995
819b6b3a 19962003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1997
1998 PR/8705
1999 * pa.md (movccfp): New expander.
2000 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
2001 Reverse fcmp conditions.
2002
80ae2538 20032003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
2004
2005 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
2006 of operand 1 correctly.
2007
911483bc 20082003-04-20 Nathan Sidwell <nathan@codesourcery.com>
2009
2010 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
2011 * gcov.c (output_lines): Don't be so fussy about going past EOF.
2012
2cbf1359 20132003-04-20 Neil Booth <neil@daikokuya.co.uk>
2014
2015 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
2016 (cppcharset.o): New target.
2017 * c-lex.c (is_extended_char): Move to cppcharset.c.
2018 (utf8_extend_token): Delete.
2019 * cppcharset.c: New file.
2020 * cpphash.h (_cpp_valid_ucn): New.
2021 * cpplex.c (lex_identifier): Update prototype.
2022 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
2023 escapes.
2024 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
2025 in cppcharset.c.
2026 (lex_number, lex_identifier, cpp_parse_escape): Update.
2027 (_cpp_lex_direct): Update to handle UCNs.
2028 (cpp_avoid_paste): Don't paste to form a UCN.
2029
8d6d7930 20302003-04-19 Roger Sayle <roger@eyesopen.com>
2031
2032 * builtins.c (expand_builtin): Don't expand a pure or const
2033 built-in function if the result will be ignored and none of
2034 its arguments are volatile.
2035
513e9354 20362003-04-19 Kean Johnston <jkj@sco.com>
2037
2038 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
2039 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
2040 target fragment now: t-sco5; dont compile crti.o.
2041 * config/i386/sco5.h: major overhaul to remove all COFF remnants
2042 and to use elfos.h for most definitions.
2043 (BSS_SECTION_ASM_OP): set correct segment attributes.
2044 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
2045 (DWARF2_UNWIND_INFO): Always set to 1.
2046 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
2047 (MD_STARTFILE_PREFIX_1): Define.
2048 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
2049 (DEFAULT_LINKER): Define if not specified to configure.
2050 (CTORS_SECTION_ASM_OP): Remove COFF crud.
2051 (DTORS_SECTION_ASM_OP): Remove COFF crud.
2052 (WINT_TYPE): Define.
2053 (SDB_DEBUGGING_INFO): Remove.
2054 (EXTRA_SECTIONS): Likewise.
2055 (EXTRA_SECTION_FUNCTIONS): Likewise.
2056 (CTOR_LIST_BEGIN): Likewise.
2057 (CTOR_LIST_END): Likewise.
2058 (INIT_SECTION_FUNCTION): Likewise.
2059 (FINI_SECTION_FUNCTION): Likewise.
2060 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
2061 (LOCAL_LABEL_PREFIX): Likewise.
2062 (NON_SAVING_SETJMP): Likewise.
2063 (RETURN_POPS_ARGS): Likewise.
2064 (ASM_OUTPUT_SKIP): Likewise.
2065 (TARGET_ASM_NAMED_SECTION): Likewise.
2066 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2067 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2068 (ASM_OUTPUT_IDENT): Likewise.
2069 (ASM_OUTPUT_CASE_LABEL): Likewise.
2070 (ASM_OUTPUT_ASCII): Likewise.
2071 (ASM_OUTPUT_LIMITED_STRING): Likewise.
2072 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
2073 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2074 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2075 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2076 (ASM_DECLARE_OBJECT_NAME): Likewise.
2077 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
2078 (ASM_DECLARE_FUNCTION_NAME): Likewise.
2079 (ASM_DECLARE_RESULT): Likewise.
2080 (ASM_WEAKEN_LABEL): Likewise.
2081 (SUPPORTS_WEAK): Likewise.
2082 (APPLY_RESULT_SIZE): Likewise.
2083 (LPREFIX): Likewise.
2084 (ALIGN_ASM_OP): Likewise.
2085 (ASCII_DATA_ASM_OP): Likewise.
2086 (IDENT_ASM_OP): Likewise.
2087 (ASM_SHORT): Likewise.
2088 (ASM_LONG): Likewise.
2089 (TYPE_ASM_OP): Likewise.
2090 (SIZE_ASM_OP): Likewise.
2091 (STRING_ASM_OP): Likewise.
2092 (SKIP_ASM_OP): Likewise.
2093 (EH_FRAME_SECTION_ASM_OP): Likewise.
2094 (READONLY_DATA_SECTION_ASM_OP): Likewise.
2095 (INIT_SECTION_ASM_OP): Likewise.
2096 (FINI_SECTION_ASM_OP): Likewise.
2097 (TEXT_SECTION_ASM_OP): Likewise.
2098 (DATA_SECTION_ASM_OP): Likewise.
2099 (TYPE_OPERANT_FORMAT): Likewise.
2100 (ASM_SPEC): Remove COFF code.
2101 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
2102 cause -pg to emit an error; use pcrt1elf.o with -pp
2103 (ENDFILE_SPEC): Likewise.
2104 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
2105 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
2106 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
2107 add -z alt_resolve to support weak symbols the way GCC wants them.
2108 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
2109 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
2110 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
2111 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
2112 (CRTSTUFF_T_CFLAGS_S): Define.
2113 (MULTILIB_OPTIONS): Likewise.
2114 (MULTILIB_DIRNAMES): Likewise.
2115 (MULTILIB_MATCHES): Likewise.
2116 (MULTILIB_EXTRA_OPTS): Likewise.
2117 (LIBGCC): Likewise.
2118 (INSTALL_LIBGCC): Likewise.
2119 (crti.o): Remove.
2120 * config/i386/t-sco5gas: Remove.
2121 * doc/install.texi: Updated for new OpenServer instructions.
2122 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
2123
3c04ceca 21242003-04-19 Kean Johnston <jkj@sco.com>
2125
2126 * fixinc/check.tpl: Allow user to over-ride diff program.
2127 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
2128 (sco_math): Added test for SCO math header files.
2129 (sco_regset): Added check for conflicts with ieeefp.h.
2130 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
2131 * fixinc/fixincl.x: Regenerated
2132 * fixinc/tests/base/math.h: Added sco_math tests.
2133 * fixinc/tests/base/string.h: New file.
2134 * fixinc/tests/base/sys/regset.h: New file.
2135
edaf8cb5 21362003-04-19 Neil Booth <neil@daikokuya.co.uk>
2137
2138 * cpphash.h (struct cpp_buffer): Remove backup_to.
2139 * cpplex.c (BACKUP, get_effective_char): Die.
2140 (_cpp_skip_block_comment): Assume '*' is location on entry.
2141 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
2142 (IF_NEXT_IS): Update.
2143 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
2144
a5740179 21452003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
2146
2147 * README.Portability: Move to a new section and obsolete K+R
2148 portability issues.
2149
678ac0f4 2150Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
2151
2152 * rtlanal.c (subreg_offset_representable_p): Fix call of
2153 subreg_lowpart.
2154
5bb46c08 21552003-04-19 Neil Booth <neil@daikokuya.co.uk>
2156
2157 * cpphash.h (struct cpp_reader): New member warned_dollar.
2158 * cpplex.c (continues_identifier_p): New function.
2159 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
2160 lex_number and lex_string, and simplify.
2161 (parse_slow, unescaped_terminator_p): Die.
2162 (_cpp_lex_direct): Update.
2163
31d035ca 21642003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2165
2166 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
2167
e8f1b5ed 21682003-04-19 Nathan Sidwell <nathan@codesourcery.com>
2169
2170 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
2171 fork behaviour.
2172
74f1f30f 21732003-04-19 Neil Booth <neil@daikokuya.co.uk>
2174
2175 * cppexp.c (eval_token): Permit true and false even if pedantic.
2176
97db25e7 21772003-04-19 Neil Booth <neil@daikokuya.co.uk>
2178
2179 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
2180
a54e0bf8 21812003-04-19 Neil Booth <neil@daikokuya.co.uk>
2182
2183 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
2184 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
2185 (struct include_file): Remove fefcnt, mapped members.
2186 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
2187 (read_include_file): Don't use mmap, terminate buffers in '\r'.
2188 (purge_cache): Don't use munmap.
2189 * cpphash.h (CPP_BUF_COLUMN): Update.
2190 (lexer_state): Remove lexing_comment.
2191 (struct _cpp_line_note): New.
2192 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
2193 next_line and need_line. Remove col_adjust and saved_flags.
2194 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
2195 _cpp_skip_block_comment, scan_out_logical_line): New.
2196 (_cpp_init_mbchar): Remove.
2197 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
2198 (cpp_read_main_file): Set line to 1 earlier.
2199 (post_options): -traditional-cpp doesn't want trigraphs.
2200 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
2201 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
2202 _cpp_get_fresh_line): New.
2203 (handle_newline, skip_escaped_newlines, trigraph_p,
2204 continue_after_nul, _cpp_init_mbchar): Remove.
2205 (get_effective_char): Update.
2206 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
2207 (skip_line_comment): Simplify.
2208 (skip_whitespace, parse_identifier, parse_slow, parse_number,
2209 parse_string): Update.
2210 (cpp_lex_direct): Use clean lines and process line notes. Update.
2211 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
2212 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
2213 directly.
2214 (_cpp_handle_directive): Don't set saved_flags.
2215 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
2216 cpp_undef, handle_assertion, cpp_push_buffer): Update.
2217 (_cpp_pop_buffer): Free notes.
2218 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
2219 * cpppch.c (cpp_read_state): \n terminate buffer.
2220 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
2221 (copy_comment): Use _cpp_skip_block_comment.
2222 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
2223 Simplify.
2224 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
2225 save_replacement_text): Update.
2226 (scan_out_logical_line): Update to use clean lines and process
2227 line notes.
2228 * fix-header.c (read_scan_file): Update.
2229
c1251e69 22302003-04-18 Douglas B Rupp <rupp@gnat.com>
2231
2232 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
2233 null begin parameter (as well as pointer to null).
2234 (__deregister_frame_info_bases): Likewise.
2235
4caa7039 22362003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2237
33b4151e 2238 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
2239 hard or virtual register and copy into pseudo if replacement fails.
2240
2241 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
f707dbf2 2242
4caa7039 2243 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
2244
762b9252 22452003-04-18 Olivier Hainque <hainque@act-europe.fr>
2246
9069face 2247 * calls.c (expand_call): Move special case for constructor calls
2248 to right place. Ensures constructor calls used to initialize
2c129d70 2249 arguments get a clean outgoing argument block for themselves.
9069face 2250 Move check for stack deallocation completeness until after last
2251 deallocation. Add stack_pointer_delta to set of state
2252 variables saved and restored along with current stack_level.
2c129d70 2253
2254 * integrate.c (expand_inline_function): Ensure non-const actuals
2255 don't end up const in the caller's flow after conversion to possibly
2256 const formal type.
762b9252 2257
d7f71e5a 22582003-04-18 Vincent Celier <celier@gnat.com>
2259
2c129d70 2260 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
2261 and *_DIV_EXPR as TRUNC_*_EXPR.
d7f71e5a 2262
8a5ce0ec 22632003-04-18 Mark Mitchell <mark@codesourcery.com>
2264
2265 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
2266 for orphaned jump tables.
2267
903bf169 22682003-04-18 Kazu Hirata <kazu@cs.umass.edu>
2269
2270 * reload1.c: Revert my previous patch on 2002-04-17.
2271
dde91062 22722003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2273
2274 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
2275 Add Segher Boessenkool.
2276
e380ea85 22772003-04-18 Alexander Sotirov <sluncho@mirizma.org>
2278
2279 PR c/9177
2280 * c-decl.c (c_expand_body): Don't garbage collect the function
2281 body if we are going to dump it later.
2282
fc932273 22832003-04-18 Richard Henderson <rth@redhat.com>
2284
2285 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
2286 (alpha_end_function): Don't set them.
2287 (decl_in_text_section): Remove.
2288 (alpha_encode_section_info): Remove.
2289 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
2290 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
2291 sections, rather than decl_in_text_section results.
2292
cbf0978f 22932003-04-18 Roger Sayle <roger@eyesopen.com>
2294
2295 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
2296 and SIGN_EXTRACT.
2297
f3d3a8e2 22982003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2299
2300 PR optimization/7675
2301 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
2302 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
2303 nested functions if they refer to declarations from parent functions.
2304 * stmt.c (expand_decl): Don't put automatic variables in registers
2305 if the DECL_NONLOCAL flag is set.
2306
c5d8ca43 23072003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
2308
2309 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
2310 consider those to be movable where the source matches
2311 want_to_gcse_p.
2312 (update_ld_motion_stores): In comment, refer to
2313 compute_ld_motion_mems for validity of replacement.
2314
d9b3752c 2315Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
2316
8bd3f2d8 2317 * gcov-dump.c (tag_summary): Remove max_sum
44359ced 2318 * gcov-io.h (gcov_summary, gcov_write_summary,
2319 gcov_read_summary): Kill max_sum.
2320 * libgcov.c (gcov_exit): Do one pass over the data. Make error
2321 message more verbose.
2322
2323 * emit-rtl.c (subreg_hard_regno): Check that register is
2324 representable.
4f3740f1 2325
d9b3752c 2326 * reload.c (reload_inner_reg_of_subreg): When register is not
2327 representable, reload the whole thing.
2328 (find_reloads): Likewsie.
2329 * rtlanal.c (subreg_representable_p): New function.
2330
2331 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
2332 allow negative probabilities for edges from the call to exit.
44359ced 2333 (branch_prob): Do not add fake edges for functions that may return
2334 twice.
d9b3752c 2335
4d452853 23362003-04-17 DJ Delorie <dj@redhat.com>
2337
2338 * toplev.c (target_options): Add value field.
2339 (set_target_switch): Handle target options with values.
2340 * doc/tm.texi: Document how fixed vs variable target
2341 options work.
2342 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
2343 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
2344 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
2345 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
2346 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
2347 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
2348 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
2349 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
2350 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
2351 Add value initializer to target options.
2352
506b1f4e 23532003-04-07 Loren James Rittle <ljrittle@acm.org>
2354
2355 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
2356
ed4ead76 23572003-04-17 Kazu Hirata <kazu@cs.umass.edu>
2358
2359 * reload1.c (move2add_last_cc0): New.
2360 (reload_cse_move2add): Detect implicit sets.
2361 (move2add_note_store): Notice a store into cc0.
2362
f2f6bdab 23632003-04-17 Roger Sayle <roger@eyesopen.com>
2364
2365 PR c/10375
2366 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
2367 function attributes.
2368
a816f4ca 23692003-04-17 Janis Johnson <janis187@us.ibm.com>
3e594ca0 2370
2371 * doc/sourcebuild.texi (Test Suites): Document support for testing
2372 binary compatibility (moved from testsuite/README.compat).
2373
03864a6f 23742003-04-17 Richard Henderson <rth@redhat.com>
2375
2376 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
2377
75b2ee3c 23782003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
2379
2c129d70 2380 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
2381 the one provided by the FSF.
75b2ee3c 2382
7da180ed 23832003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2384
2385 * doc/install.texi (Binaries): Update URL and list of platforms
2386 provided by ftp.thewrittenword.com.
2387
be2f664f 23882003-04-17 Richard Henderson <rth@redhat.com>
2389
2390 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
2391 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
2392 * config/xtensa/xtensa.md (call, call_value): Likewise.
2393
91efe10c 23942003-04-17 Richard Henderson <rth@redhat.com>
2395
2396 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
2397 (print_operand_address): Likewise.
2398 (ep_memory_operand): Likewise.
2399 (special_symbolref_operand): Likewise.
2400 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
2401 (v850_encode_section_info): Call default_encode_section_info.
2402 (v850_strip_name_encoding): Remove.
2403 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
2404 (ASM_OUTPUT_LABELREF): Remove.
2405 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
2406 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
2407 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
2408 (ENCODED_NAME_P): Remove.
2409 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
2410 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
2411 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
2412
6ec3be61 24132003-04-17 Richard Henderson <rth@redhat.com>
2414
2415 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
2416 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
2417 SYMBOL_REF_FUNCTION_P.
2418
3f548298 24192003-04-17 Richard Henderson <rth@redhat.com>
2420
2421 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
2422 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
2423 (text_segment_operand): Likewise.
2424
2fb8cf90 24252003-04-17 Richard Henderson <rth@redhat.com>
2426
2427 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
2428 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
2429 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
2430 (sh_encode_section_info): Remove.
2431 (sh_strip_name_encoding): Remove.
2432 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
2433 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
2434 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
2435 (ASM_OUTPUT_LABELREF): Remove.
2436 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
2437 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
2438
a3e33162 24392003-04-17 Richard Henderson <rth@redhat.com>
2440
2441 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
2442 (tls_model_chars): Remove.
2443 (larl_operand): Use SYMBOL_REF_FLAGS.
2444 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
2c129d70 2445 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
a3e33162 2446 (s390_output_mi_thunk): Likewise.
2447 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
2448 (s390_function_profiler): Likewise.
2449 (s390_encode_section_info): Use default_encode_section_info
2450 and SYMBOL_FLAG_ALIGN1.
2451 (s390_strip_name_encoding): Remove.
2452 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
2453 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
2454 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
2455
7b06b202 24562003-04-17 Richard Henderson <rth@redhat.com>
2457
2458 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
2459 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
2460 (print_operand_address): Likewise.
2461
2462 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
2463 * config/ns32k/ns32k.c (expand_block_move): Don't check
2464 flag_unroll_loops.
2465
290713d7 24662003-04-17 Richard Henderson <rth@redhat.com>
2467
2468 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
2469 SYMBOL_REF_FLAG.
2470
5c5d0ae9 24712003-04-17 Richard Henderson <rth@redhat.com>
2472
2473 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
2474
2475 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
2476 (SYMBOL_REF_MODEL): New.
2477 (LIT_NAME_P): Move from m32r.h.
2478 (m32r_select_section): Remove.
2479 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
2480 (m32r_strip_name_encoding): Remove.
2481 (m32r_in_small_data_p): New.
2482 (small_data_operand): Use SYMBOL_REF_SMALL_P.
2483 (addr24_operand): Use SYMBOL_REF_MODEL.
2484 (call26_operand): Likewise.
2485 (addr32_operand): Tidy.
2486 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
2487 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
2488 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
2489 (READONLY_DATA_SECTION_ASM_OP): Remove.
2490 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2491 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
2492 (TARGET_ASM_SELECT_SECTION): Remove.
2493 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
2494 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
2495 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
2496 (ASM_OUTPUT_LABELREF): Remove.
2497
47d2096d 24982003-04-17 Richard Henderson <rth@redhat.com>
2499
2500 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
2501 (encode_section_info): Remove.
2502 * config/ip2k/ip2k-protos.h: Update.
2503
4c2ba603 25042003-04-17 Richard Henderson <rth@redhat.com>
2505
2c129d70 2506 * varasm.c (default_encode_section_info): Don't set
4c2ba603 2507 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
2508 * config/i370/i370.c (i370_encode_section_info): Remove.
2509 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
2510 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
2511 * config/i370/i370.md (movsi): Likewise.
2512
2513 * config/i370/t-i370: Add missing backslash.
2514
9b6d7c35 25152003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2516
2517 * doc/invoke.texi (inline-limit): Fix pasto.
2518
d37aaac2 25192003-04-17 Richard Henderson <rth@redhat.com>
2520
2521 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
2522 (small_call_insn_operand): Use it.
2523 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
2524 (h8300_eightbit_constant_address_p): Use it.
2525 (SYMBOL_FLAG_TINY_DATA): New.
2526 (h8300_tiny_constant_address_p): Use it.
2527 (h8300_encode_label, h8300_strip_name_encoding): Remove.
2528 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
2529 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
2530 (ASM_OUTPUT_LABELREF): Remove.
2531
d0a591a6 25322003-04-16 Richard Henderson <rth@redhat.com>
2533
584f44cf 2534 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
2535 all users with SYMBOL_REF_SMALL_P.
2536 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
2537 (frv_encode_section_info): Remove.
2538 (frv_strip_name_encoding): Remove.
2539 (frv_in_small_data_p): Merge tests from encode_section_info.
2540 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
2541 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
2542 (SDATA_NAME_P): Remove.
2543 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
2544 (ASM_OUTPUT_LABELREF): Remove.
2545 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
2546
d0a591a6 2547 * config/frv/frv.c (frv_asm_out_constructor): New.
2548 (frv_asm_out_destructor): New.
2549 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
2550 (DTORS_SECTION_ASM_OP): New.
2551 (ASM_OUTPUT_CONSTRUCTOR): Remove.
2552 (ASM_OUTPUT_DESTRUCTOR): Remove.
2553
9c37a11b 25542003-04-16 Richard Henderson <rth@redhat.com>
2555
2556 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
2557 SYMBOL_REF_LOCAL_P; abort if not pic.
2558 (cris_encode_section_info): Remove.
2559
5412afbc 25602003-04-16 Richard Henderson <rth@redhat.com>
2561
2562 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
2563 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
2564
2565 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
2566 flag_inline_trees.
2567
a179a371 25682003-04-16 Richard Henderson <rth@redhat.com>
2569
2570 * config/avr/avr.c (avr_encode_section_info): Remove.
2571 (avr_insert_attributes): New.
2572 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
2573 (avr_assemble_integer): Likewise.
2574
7fc67701 25752003-04-16 Richard Henderson <rth@redhat.com>
2576
2577 * arc.c (arc_encode_section_info): Remove.
2c129d70 2578 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
7fc67701 2579 (arc_print_operand, arc_print_operand_address): Likewise.
2580 * arc.h (EXTRA_CONSTRAINT): Likewise.
2581
3b584d94 25822003-04-16 Roger Sayle <roger@eyesopen.com>
2583
2584 * c-semantics.c (find_reachable_label): New function to find a
2585 potentially reachable label in an expression.
2586 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
2587 assumes the start of the IF_STMT is unreachable (dead) code.
2588 (expand_unreachable_stmt): Similar to expand_stmt but assumes
2589 the start of the statement list is unreachable (dead) code.
2590 (genrtl_if_stmt): If the controlling expression of the IF
2591 is constant, use expand_unreachable_stmt for the THEN or ELSE
2592 clause as appropriate.
2593 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
2594 the body of a SWITCH statement.
2595 (expand_stmt): The code immediately following a "return",
2596 "break", "continue" or "goto" is unreachable.
2597 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
2598
650e773f 25992003-04-16 Richard Henderson <rth@redhat.com>
2600
2601 * rtl.h (MEM_ALIAS_SET): Update documentation.
2602 * doc/rtl.texi (Special Accessors): New node.
2603 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
2604
38a898c6 26052003-04-16 Alexandre Oliva <aoliva@redhat.com>
2606
2607 * reload1.c (reload_cse_noop_set_p): Return false if mode of
2608 SET_DEST is not the same as that returned by...
2609 * cselib.h (cselib_reg_set_mode): ... new function.
2610 * cselib.c (cselib_reg_set_mode): Define it.
2611 (REG_VALUES): Document semantics of first element as set mode.
2612 (cselib_subst_to_values): Skip first element if ELT is NULL.
2613 (cselib_lookup): Likewise. Insert past the first element.
2614 (cselib_invalidate_regno): NULLify first element.
2615 (cselib_record_set): Set first element.
2616
9a0db358 26172003-04-16 Olivier Hainque <hainque@act-europe.fr>
2618
2c129d70 2619 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
2620 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
2621 * tree.h: Add prototypes for the two new functions.
2622 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
2623 updates introduced in the previous revision by call to saved_expr_p.
2624 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
414bee42 2625
2c129d70 2626 * expr.c (store_field): Force usage of bitfield instructions when
2627 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
2628 (expand_expr, case BIT_FIELD_REF): likewise.
9a0db358 2629
dee7f1be 26302003-04-16 Mark Mitchell <mark@codesourcery.com>
2631
2632 PR middle-end/8866
2633 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
2634 jumptables.
2635
c50e596a 26362003-04-16 Richard Henderson <rth@redhat.com>
2637
2638 * config/ia64/ia64.c (sdata_symbolic_operand): Use
2639 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
2640 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
2641 (function_operand): Use SYMBOL_REF_FUNCTION_P.
2642 (ia64_expand_load_address): Likewise.
2643 (ia64_assemble_integer): Likewise.
2644 (ia64_encode_section_info): Remove.
2645 (ia64_strip_name_encoding): Remove.
2646 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
2647 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
2648
09a1f342 26492003-04-16 Richard Henderson <rth@redhat.com>
2650
2651 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
2652 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
2653 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
2654 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
2655 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
2656 (global_symbolic_operand): Similarly.
2657 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
2658 (tls_symbolic_operand_type): Likewise.
2659 (alpha_encode_section_info): Use default_encode_section_info.
2660 (alpha_strip_name_encoding): Remove.
2661 (get_tls_get_addr): Split out from ...
2662 (alpha_legitimize_address): ... here.
2663 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
2664 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
2665 (alpha_initialize_trampoline): Use init_one_libfunc.
2666 (alpha_setup_incoming_varargs): Mark unused parameters.
2667 (alpha_initial_elimination_offset): Likewise.
2668 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
2669 (unicosmk_unique_section): Use default_strip_name_encoding.
2670 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
2671
865e0c9d 26722003-04-16 Aldy Hernandez <aldyh@redhat.com>
2673
2c129d70 2674 * config.gcc: Add t-spe for eabispe.
865e0c9d 2675
2c129d70 2676 * config/rs6000/t-spe: New.
865e0c9d 2677
e7281db0 26782003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
2679
2680 Re-apply this patch:
2681
2682 2002-05-16 Dale Johannesen <dalej@apple.com>
2683 * combine.c (cant_combine_insn_p): Reenable combinations
2684 involving hard regs unless CLASS_LIKELY_SPILLED_P.
2685
f336e0bc 26862003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2687
2688 PR/10271
2689 * pa-protos.h (function_arg): Remove last argument.
2690 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
2c129d70 2691 * pa.h (struct hppa_args): Add member incoming.
f336e0bc 2692 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
2693 member incoming.
2694 (FUNCTION_ARG): Revise call to function_arg.
2695 (FUNCTION_INCOMING_ARG): Delete.
2696
37c5bbf8 26972003-04-15 Zack Weinberg <zack@codesourcery.com>
2698
2699 * configure.in: Unify the code which creates symlinks to a
2700 just-built as, ld, objdump, and nm with the code that detects
2701 their presence for purposes of feature tests.
2702 * configure: Regenerate.
2703
88bb9a15 27042003-04-15 Zack Weinberg <zack@codesourcery.com>
2705
2706 * varasm.c (output_constant_def): Do not consult
2707 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
2708 (after_function_constants, output_after_function_constants): Delete.
2709 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
2710 * config/mips/mips-protos.h, config/mips/mips.c
2711 (mips16_constant_after_function_p): Delete.
2712 * config/mips/mips.h: Delete #if-0-ed definition of
2713 CONSTANT_AFTER_FUNCTION_P.
2714 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
2715 mention of CONSTANT_AFTER_FUNCTION_P in comment.
2716
f61c5461 27172003-04-15 Geoffrey Keating <geoffk@apple.com>
2718
2719 * tree.c (next_decl_uid): Mark with GTY.
2720 (next_type_uid): Likewise.
2721
72cc4fb4 27222003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
2723
2724 PR target/9594:
2725 * sh.c (barrier_align): Also recognize stuff_delay_slot as
2726 an indicator that a barrier was created by branch splitting.
2727
cd7ded47 27282003-04-15 Mark Mitchell <mark@codesourcery.com>
2729
2730 * c-decl.c (implicitly_declare): Copy declarations that are going
2731 to be placed in a local scope.
2732
8c7de32e 27332003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
2734
2735 * invoke.texi (Spec Files): Wrap if-exists-else example.
2736 (MCore): Remove duplicate @itemx entries and @opindex entries.
2737
4f0ee686 27382003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
2739
2740 * unwind.inc (_Unwind_Backtrace): New function.
2741 * unwind.h (_Unwind_Backtrace): Declare it.
2742 * libgcc-std.ver (_Unwind_Backtrace): Export it.
2743
5d0c931c 27442003-04-14 Jason Merrill <jason@redhat.com>
2745
2746 PR middle-end/10336, c++/10401
88bb9a15 2747 * jump.c (never_reached_warning): Also stop looking if we reach the
5d0c931c 2748 beginning of the function.
2749
d526b550 27502003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2751
2752 PR target/10338
2753 PR bootstrap/10198
2754 PR bootstrap/10140
2755 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
2756
7c534eaa 27572003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
2758
2759 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
2760
629d2471 27612003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2762
2763 * optabs.c (expand_binop): In multi-word add cases, ensure
2764 XTARGET is copied to TARGET if they are different.
2765
d99effe3 27662003-04-15 Olivier Hainque <hainque@act-europe.fr>
2767
2768 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
2769 to region, possible after integration of function with unreachable
2770 regions that were optimized away.
2771
71ac14cb 27722003-04-15 Jakub Jelinek <jakub@redhat.com>
2773
2774 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
2775 instead of TOC_REGISTER in epilogue in
2776 current_function_calls_eh_return functions.
2777
c2621053 27782003-04-14 Mark Mitchell <mark@codesourcery.com>
2779
907e3369 2780 * doc/extend.texi (Empty Structures): Correct description of G++'s
2781 handling of these structures.
2782
c2621053 2783 * c-decl.c (grokdeclarator): Reject extern redeclarations of
2784 static variables.
2785
9763286f 27862003-04-14 Janis Johnson <janis287@us.ibm.com>
2787
0c99ef0e 2788 * config/rs6000/rs6000.md (define_constants): Define constants for
2789 all UNSPEC usage, including new values for TLS support.
2790 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
2791 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
2792 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
2793 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
2794 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
2795 eh_set_lr_di): Use them.
2796 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
2797 rs6000_emit_epilogue) Use them.
2798
9763286f 2799 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
2800
36e26068 28012003-04-14 Neil Booth <neil@daikokuya.co.uk>
2802
2803 * Makefile.in (c-opts.o): Use custom action.
2804
65a517ff 28052003-04-14 Douglas B Rupp <rupp@gnat.com>
2806
2807 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
2808
9830e263 28092003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2810
bf4c4192 2811 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
2812 handle "superflat arrays" in Ada.
2813
9830e263 2814 * integrate.c (expand_inline_function): Don't inline if would
2815 lose /u on a BLKmode TARGET.
2816
7f2ad96e 28172003-04-14 Joel Brobecker <brobecker@gnat.com>
2818
0989224f 2819 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
2820 extracted from dbxout_type.
2821 (dbxout_range_type): print large bounds in octal format.
2822 (dbxout_type): Replace extracted code by call to
2823 print_int_cst_bounds_in_octal_p.
2824
88bb9a15 2825 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
2826 of DW_LANG_Ada83 for Ada units.
7f2ad96e 2827
84130727 28282003-04-14 Olivier Hainque <hainque@act-europe.fr>
2829
3737c3eb 2830 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
2831 temporary used to round CONST_INT sizes.
2832
ddb425f3 2833 * tree.c (int_fits_type_p): Extract generic checks from the case
2834 of constant type bounds. Refine the checks against constant type
2835 bounds to allow for possible decisions against each of these bounds
2836 without requiring both bounds to be constant.
2837 (tree_int_cst_msb): Put back.
2838 * tree.h (tree_int_cst_msb): Likewise.
2839
abecbfc6 2840 * global.c (global_conflicts): Prevent allocation of call clobbered
2841 hard regs to pseudos live across abnormal edges, as later passes are
2842 not ready to handle them.
2843
88bb9a15 2844 * fold-const.c (fold): Reorder tests for conditional expressions.
2845
2846 * expr.c (highest_pow2_factor): Return unsigned.
2847 * expr.h (offset_address): Likewise.
2848 * emit-rtl.c (offset_address): POW2 argument now unsigned.
d3221b32 2849
6248e345 28502003-04-14 Roger Sayle <roger@eyesopen.com>
2851
2852 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
2853 string literals at compile-time.
2854
edc21ba8 28552003-04-14 Roger Sayle <roger@eyesopen.com>
2856
2857 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
2858 comparison operation and c1/c2 are floating point constants into
2859 x swap(cmp) (c1 - c2).
2860
34701e91 28612003-04-14 Vladimir Makarov <vmakarov@redhat.com>
2862
2863 * genautomata.c (output_translate_vect): Fix a typo in loop
2864 condition.
2865
74c071cf 28662003-04-14 Hans-Peter Nilsson <hp@axis.com>
2867
2868 PR target/10377
2869 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
2870 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
2871 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
2872 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
2873 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
2874 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
2875 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
2876 ("*extopqihi_swap_side", "*extopqisi_swap_side")
2877 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
2878 When next to constraint R, replace constraint i with n.
2879
d9aa52be 2880Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
2881
2882 PR opt/10024
2883 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
2884
769ea63c 28852003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2886
2887 * doc/contrib.texi (Contributors): Correct my entry.
2888
a40609e6 28892003-04-13 Roger Sayle <roger@eyesopen.com>
2890
2891 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
2892 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
2893 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
2894 implies DECL_BUILT_IN to simplify logic.
2895 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
2896
32ef1cd2 28972003-04-13 Roger Sayle <roger@eyesopen.com>
2898
2899 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
2900 (BT_FN_PTR_SIZE_SIZE): Likewise.
2901 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
2902 New built-in functions for malloc, calloc and strdup respectively.
2903 * calls.c (special_function_p): No need to handle malloc-like
2904 functions any longer. ECF_MALLOC is set via built-in attributes.
2905
2906 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
2907
2908 * doc/extend.texi: Document these new built-in functions.
2909
3b824fa6 29102003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2911
2912 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
2913 (expand_builtin_stpcpy): New.
2914 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
2915 * builtins.def: Add mempcpy & stpcpy support.
2916 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
2917
3a5a28e2 29182003-04-13 Nick Clifton <nickc@redhat.com>
2919
2920 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
2921 "GCC".
2922 * config/rs6000/40x.md, config/rs6000/603.md,
2923 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
2924 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
2925 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
2926 config/rs6000/aix43.h, config/rs6000/aix51.h,
2927 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
2928 config/rs6000/altivec.h, config/rs6000/altivec.md,
2929 config/rs6000/beos.h, config/rs6000/darwin.h,
2930 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
2931 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
2932 config/rs6000/freebsd.h, config/rs6000/gnu.h,
2933 config/rs6000/host-darwin.c, config/rs6000/linux.h,
2934 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
2935 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
2936 config/rs6000/netbsd.h, config/rs6000/power4.md,
2937 config/rs6000/rios1.md, config/rs6000/rios2.md,
2938 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
2939 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
2940 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
2941 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
2942 config/rs6000/spe.md, config/rs6000/sysv4.h,
2943 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
88bb9a15 2944 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
3a5a28e2 2945
82aa4d68 29462003-04-13 Nick Clifton <nickc@redhat.com>
2947
2948 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
2949 support for -mcall-aix switch.
2950 * config/rs6000/eabiaix.h: Delete.
2951 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
2952 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
2953 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
2954 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
2955 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
2956 debug_stack_info, output_function_profiler,
2957 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
2958 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
2959 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
2960 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
2961 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
2962 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
2963 multilibs.
2964 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
2965 (MULTILIB_EXCEPTIONS): Delete.
2966 (MULTILIB_MATCHES): Remove mcall-aix matches.
2967
2968 * doc/fragments.texi: Replace -mcall-aix example with an ARM
2969 one.
2970 * doc/install.texi: Delete powerpc-*-eabiaix target.
2971 * doc/invoke.texi: Remove documentation of mcall-aix switch.
2972 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
2973 * config.gcc: Delete powerpc-*-eabiaix target.
2974
5dd077a2 29752003-04-13 Kazu Hirata <kazu@cs.umass.edu>
2976
2977 * doc/invoke.texi: Fix typos.
2978 * doc/tm.texi: Likewise.
2979
3b64dc9c 29802003-04-12 Zack Weinberg <zack@codesourcery.com>
2981
2982 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
2983
46518bf2 29842003-04-12 Zack Weinberg <zack@codesourcery.com>
2985
2986 * tree.c (build_constructor): New function.
2987 * tree.h: Prototype it.
2988
2989 * c-typeck.c (build_c_cast, pop_init_level)
2990 * profile.c (build_function_info_value, build_gcov_info_value)
2991 (create_profiler):
2992 Use build_constructor.
2993
2994 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
2995
2996 * objc/objc-act.c (build_constructor):
2997 Rename objc_build_constructor. Use build_constructor.
2998 (build_objc_string_object, objc_add_static_instance)
2999 (init_def_list, init_objc_symtab, init_module_descriptor)
3000 (generate_static_references, build_selector_translation_table)
3001 (build_descriptor_table_initializer, generate_descriptor_table)
3002 (build_protocol_initializer, build_ivar_list_initializer)
3003 (generate_ivars_list, build_dispatch_table_initializer)
3004 (generate_dispatch_table, generate_protocol_list)
3005 (build_category_initializer, build_shared_structure_initializer):
3006 Update to match.
3007
0f149691 30082003-04-12 Zack Weinberg <zack@codesourcery.com>
3009
3010 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
3011
77f85b6e 30122003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3013
46518bf2 3014 * config/m68hc11/m68hc11-protos.h
77f85b6e 3015 (m68hc11_eq_compare_operator): Declare
3016 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
3017 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
3018 (d_register_operand): Check the operand mode.
3019 (hard_addr_reg_operand): Likewise.
3020
171bfe89 30212003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3022
3023 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
3024 pattern for dbcc/ibcc generation for 68HC12.
3025 ("doloop_end"): New pattern.
3026 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
3027 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
3028 ("m68hc12_dbcc_dec_qi"): New pattern.
3029 ("m68hc12_dbcc_inc_qi"): New pattern.
3030 (split): Add split for the above when we can't use dbcc/ibcc due to
3031 reloading.
3032 (peephole2): Add peephole2 to generate the above when possible.
3033
5fd77d06 30342003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3035
3036 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
3037 mode of operand 0.
3038 (peephole2 optimize const load): Likewise for operand 2.
3039 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
3040 clobbers CC_REGNUM.
3041 ("*rotrhi3_with_carry"): Likewise.
3042 (ashift:DI 1 split): Update pattern to create the above rotate.
3043 (lshiftrt:DI 1 split): Likewise.
3044
68b9300a 30452003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3046
3047 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
3048 ("tstqi_z_used" split): Use it.
3049 ("cmphi_z_used"): Likewise.
3050 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
3051 ("cmpqi_z_used"): Likewise.
3052
82e367e0 30532003-04-12 Mark Mitchell <mark@codesourcery.com>
3054
3055 PR c++/7910
3056 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
3057
d0a20a0f 30582003-04-12 Zack Weinberg <zack@codesourcery.com>
3059
3060 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
3061 * configure, config.in: Regenerate.
3062 * intl.c (gcc_gettext_width): New function.
3063 * intl.h: Prototype it.
3064
da989ba0 30652003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3066
3067 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
3068 recognize -mnorelax.
3069 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
3070 (REG_CLASS_NAMES): Add its name.
3071 (REG_CLASS_CONTENTS): Define its content.
3072
5db136a1 30732003-04-12 Stephane Carrez <stcarrez@nerim.fr>
3074
3075 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
3076 parameters so that offsets are valid for far definition.
3077 (__mulsi3): Likewise and use ret to return.
3078 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
3079
2a3854c7 30802003-04-12 David Edelsohn <edelsohn@gnu.org>
3081
3082 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
3083
ac5f22c8 30842003-04-12 Alexandre Oliva <aoliva@redhat.com>
3085
bc23d889 3086 * mklibgcc.in (libgcc-stage-start): For every multilib directory
3087 containing a libgcc.a, move lib* to the corresponding stage dir.
3088
ac5f22c8 3089 * Makefile.in (stage1-start, stage2-start, stage3-start,
3090 stage4-start): Move $(SPECS) to specs in stage dir.
3091 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
3092 back as $(SPECS).
3093
97792f4b 3094 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
3095 object files from the non-libgcc/ multilib directories as well.
3096
710d60ed 30972003-04-11 Geoffrey Keating <geoffk@apple.com>
3098
a1d5e114 3099 * profile.c (read_counts_file): Initialise 'checksum'.
3100
dbc02d14 3101 * emit-rtl.c (gen_rtx): Really correct typo.
3102
eb54bdbd 3103 PR c++/9393
3104 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
3105 * configure.in: Check for gettimeofday.
3106 * tree.c (flag_random_seed): Define.
3107 (default_flag_random_seed): New.
3108 (append_random_chars): Use flag_random_seed rather than trying
3109 to acquire randomness here.
3110 * tree.h (default_flag_random_seed): Declare.
3111 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
3112 descriptions.
3113 (decode_f_option): Handle -frandom-seed.
3114 (print_switch_values): Call default_flag_random_seed.
3115 * flags.h (flag_random_seed): Declare.
3116 * configure: Regenerate.
3117 * config.in: Regenerate.
3118 * config/alpha/t-crtfm: Use -frandom-seed.
d0a20a0f 3119
710d60ed 3120 * doc/extend.texi (Empty Structures): New.
3121
cc4ca723 3122 * c-pch.c: Include flags.h. Add comments to routines.
3123 (struct c_pch_validity): New.
3124 (get_ident): Update PCH file version number.
3125 (pch_init): Output current debugging type.
3126 (c_common_valid_pch): Check debugging type.
3127 * Makefile.in (c-pch.o): Update dependencies.
3128 * flags.h (debug_type_names): Declare.
3129 * toplev.c (debug_type_names): Move out of decode_g_option.
3130
e2e205b3 31312003-04-11 Eric Christopher <echristo@redhat.com>
3132
3133 * emit-rtl.c (gen_rtx): Fix typos.
3134
6259dc05 31352003-04-11 Richard Henderson <rth@redhat.com>
3136
3137 * emit-rtl.c (gen_rtx): Zero '0' fields.
3138
59e226b0 31392003-04-11 Richard Henderson <rth@redhat.com>
3140
3141 PR c++/10202
3142 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
3143 not COMPLETE_TYPE_P for re-invoking layout_decl.
3144
cfafa1e9 31452003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
3146
3147 * doc/bugreport.texi: Fix paragraph breaking between sections
3148 in preparation for TeXinfo's paragraph indentation fixes.
3149 * doc/extend.texi: Ditto.
3150 * doc/invoke.texi: Ditto.
3151 * doc/objc.texi: Ditto.
3152 * doc/gcov.texi: Wrap 'gcov' in @command{}.
3153 * doc/invoke.texi (Darwin Options): Add a preamble.
3154
ba2ab640 31552003-04-11 Richard Henderson <rth@redhat.com>
3156
3157 * config/i386/i386.c (tls_model_chars): Remove.
3158 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
3159 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
3160 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
3161 (tls_symbolic_operand_1): Likewise.
3162 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
3163 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
3164 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
3165 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
3166 bits "copied from i386.h" with default_encode_section_info.
3167
001be062 31682003-04-11 Richard Henderson <rth@redhat.com>
3169
3170 * rtl.def (SYMBOL_REF): Add two 0 fields.
3171 * gengtype.c (adjust_field_rtx_def): Handle them.
3172 * print-rtl.c (print_rtx): Print them.
3173 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
3174 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
3175 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
3176 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
3177 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
3178 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
3179 (SYMBOL_FLAG_MACH_DEP): New.
3180 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
3181 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
3182 (assemble_static_space): Set SYMBOL_REF_FLAGS.
3183 (assemble_trampoline_template): Likewise.
3184 (output_constant_def, force_const_mem): Likewise.
3185 (default_encode_section_info): New.
3186 * output.h: Declare it.
3187 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
3188
62f615b1 31892003-04-11 Richard Henderson <rth@redhat.com>
3190
3191 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
3192 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
3193 * optabs.c (init_optabs): Initialize them.
3194 (init_libfuncs): Use init_one_libfunc.
3195 * calls.c (expand_call): Use gcov_flush_libfunc.
3196 * expr.c (store_constructor): Use setbits_libfunc.
3197 * function.c (expand_main_function): Use init_one_libfunc.
3198 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
3199
12f322cc 32002003-04-11 Mark Mitchell <mark@codesourcery.com>
3201
3202 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
3203 documentation; add DECL_FRIEND_CONTEXT.
3204
0007a571 32052003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3206
3207 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
3208 notes on linker selection and configuration for 64-bit HP-UX port.
3209 * doc/invoke.texi (hppa): Remove hppa text from description for
3210 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
3211 and -threads options.
3212
3213 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
3214 libc.a on libdld.sl when -static is specified and -nolibdld is not
3215 specified.
3216 * pa64-hpux.h (LIB_SPEC): Likewise.
3217 * pa-hpux11.h (LIB_SPEC): Likewise.
3218 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
3219 is not specified.
3220
593ce148 32212003-04-11 Zack Weinberg <zack@codesourcery.com>
3222
3223 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
3224 not IDENTIFIER_LOCAL_VALUE.
3225
65433eb4 32262003-04-11 Richard Henderson <rth@redhat.com>
3227
3228 PR c/10201
3229 * expr.c (expand_expr): Move DECL_RTL frobbing ...
3230 * stor-layout.c (layout_decl): ... here.
3231
c2b5d5d4 32322003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
3233
3234 * doc/invoke.texi: Eliminate extra white-space caused by
3235 @gccoptlist{ on its own line.
3236 * doc/invoke.texi: Ensured there are two spaces between each option.
3237 * doc/invoke.texi: Re-wrapped option lines that were too wide.
3238 Added @gol to options that didn't have them.
3239
f187042d 32402003-04-11 Nathan Sidwell <nathan@codesourcery.com>
3241
3242 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
3243 gcov-iov.h.
3244
3245 Simplify interface to gcov reading and writing.
3246 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
3247 gcov_alloc, gcov_modified, gcov_errored): Move into ...
3248 (struct gcov_var gcov_var): ... this static structure.
3249 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
3250 Return void.
3251 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
3252 read object.
3253 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
3254 (gcov_reserve_length): Remove.
3255 (gcov_write_tag): New.
3256 (gcov_write_length): Adjust.
3257 (gcov_read_summary, gcov_write_summary): Adjust.
3258 (gcov_eof, gcov_ok): Rename to ...
3259 (gcov_is_eof, gcov_is_error): ... here. Return error code.
3260 (gcov_save_position, gcov_resync): Rename to ...
3261 (gcov_position, gcov_seek): ... here.
3262 (gcov_skip, gcov_skip_string): Remove.
3263 (gcov_error): Remove.
3264 (gcov_open, gcov_close): Adjust.
3265 * gcov.c (find_source): Take const char *, copy it on allocation.
3266 (read_graph_file): Adjust.
3267 (read_count_file): Adjust.
3268 * libgcov.c (gcov_exit): Adjust.
3269 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
3270 tag_arc_counts, tag_summary): Return void. Adjust.
3271 (struct tag_format): Adjust proc member.
3272 (dump_file): Adjust gcov calls.
3273
e81222a4 32742003-04-11 Alexandre Oliva <aoliva@redhat.com>
3275
3276 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
3277 mkfixinc.sh.
3278 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
3279 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
3280 build != host sysrooted builds.
3281 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
3282 TARGET_SYSTEM_ROOT even on sysrooted natives.
3283 * configure: Rebuilt.
3284
31ddae9f 32852003-04-10 Zack Weinberg <zack@codesourcery.com>
3286
3287 * c-decl.c (struct binding_level): Add shadowed_tags and
3288 function_body; remove this_block, tag_transparent, and
3289 subblocks_tag_transparent; update comments.
3290 (clear_binding_level, lookup_tag_reverse): Kill.
3291 (make_binding_level): Use ggc_alloc_cleared or memset.
3292 (lookup_tag): Remove struct binding_level* parameter. All
3293 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
3294 current_binding_level->tags if asked for thislevel_only or if
3295 we might have to diagnose "struct foo; union foo;"
3296 (pushlevel): Ignore argument. Do not push another binding
3297 level on the transition from the parameters to the top level
3298 of the function body; just tweak the flags and proceed.
3299 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
3300 a function body, separate the parameter list from the
3301 top-level local variables.
3302 (set_block): Do nothing.
3303 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
3304 shadowed_tags if necessary.
3305 (warn_if_shadowing): Nuke the special case for local shadowing
3306 parameter.
3307 (pushdecl): Do not create a shadow entry if we are replacing
3308 an older decl in the same binding level.
3309 (pushdecl_function_level): Tweak for new way of indicating
3310 function scope.
3311 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
3312 (start_function): Don't set subblocks_tag_transparent.
3313 (finish_function): Fix up the binding_level stack for totally
3314 empty functions. Otherwise, don't call poplevel.
3315
3316 * c-common.c (shadow_warning): MANDATORY argument is no longer
3317 necessary. Always use plain warning.
3318 * c-common.h: Update to match.
3319
3320 * cfglayout.c (scope_to_insns_initialize): Clear block when we
3321 hit the FUNCTION_DECL.
3322 * function.c: Do not create cyclic tree structure.
3323
33242003-04-10 Zack Weinberg <zack@codesourcery.com>
3325
3326 * c-tree.h (struct lang_identifier): Replace global_value,
3327 local_value members with symbol_value, tag_value. Kill
3328 implicit_decl and limbo_value.
3329 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
3330 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
3331 C_MISSING_PROTOTYPE_WARNED): Kill.
3332 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
3333 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
3334 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
3335 (implicit_decl_warning, lookup_name_current_level,
3336 record_function_scope_shadow): Don't prototype.
3337 (pushdecl_function_level): Prototype.
3338
3339 * c-decl.c (truly_local_externals): New variable.
3340 (struct binding_level): Adjust commentary.
3341 (get_function_binding_level, clear_limbo_values,
3342 record_function_scope_shadow): Kill.
3343 (lookup_name_current_level, implicit_decl_warning): Are now static.
3344 (any_external_decl, record_external_decl): New static functions.
3345 (clone_underlying type): Split out of pushdecl.
3346 (c_print_identifier): Update to match changes to struct
3347 lang_identifier.
3348 (poplevel): Delete #if 0 block. Make externals invisible
3349 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
3350 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
3351 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
3352 (duplicate-decls): For real parm decl after a forward decl,
3353 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
3354 foo(...) { } with only a warning. Say whether a previous
3355 declaration was implicit.
3356 (warn_if_shadowing): Now handles all shadowing, not just
3357 local-over-local. Clarify comments.
3358 (pushdecl): Rewritten. There is no longer a distinction
3359 between global and local symbol values; they're all
3360 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
3361 DECL_EXTERNAL decls, and use any_external_decl to check
3362 against previous externals. Kill #if 0 blocks. Don't
3363 tolerate error_mark_node being NULL.
3364 (pushdecl_top_level): Handle only those cases which
3365 Objective C (the only user) needs.
3366 (pushdecl_function_level): New function.
3367 (implicitly_declare): Create ordinary decls with
3368 C_DECL_IMPLICIT set. Recycle old decls, however they got
3369 created.
3370 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
3371 for C_DECL_INVISIBLE symbols.
3372 (lookup_name_current_level): Likewise. Use chain_member.
3373 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
3374 Use pushdecl_function_level.
3375 (builtin_function): Use C_DECL_INVISIBLE.
3376 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
3377 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
3378 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
3379 (identifier_global_value): Same. Must scan
3380 global_binding_level in extremis.
3381
3382 * c-typeck.c (undeclared_variable): New static function, split
3383 from build_external_ref.
3384 (build_external_ref): Use DECL_CONTEXT, not
3385 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
3386 an instance variable. Restructure for clarity.
3387 * objc/objc-act.c: Use identifier_global_value, not
3388 IDENTIFIER_GLOBAL_VALUE.
3389
4dfab374 33902003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
3391
3392 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
3393 not Working Paper.
3394 * doc/invoke.texi (C++ Dialect Options): Same.
3395
2fcde217 33962003-04-10 Zack Weinberg <zack@codesourcery.com>
3397
3398 * tree.c (tree_operand_check_failed): New function.
3399 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
3400 TREE_RTL_OPERAND_CHECK): New checking macros.
3401 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
3402 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
3403 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
3404 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
3405 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
3406 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
3407 checking macros.
3408
2ff313d1 3409Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
3410
3411 PR inline-asm/8803
3412 * function.c (instantate_virtual_regs): Verify that all ASM statements
3413 match after the virutal regs instantiation.
3414
19316b5e 34152003-04-10 Steve Ellcey <sje@cup.hp.com>
3416
3417 * ia64-protos.h (addp4_optimize_ok): New.
3418 * ia64.c (addp4_optimize_ok): New.
3419 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
3420 (*ptr_extend_plus_2): Ditto.
3421
33402d67 34222003-04-10 Steve Ellcey <sje@cup.hp.com>
3423
3424 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
3425 not with convert_memory_address.
3426 (store_constructor): Ditto, and same for copy_size_rtx.
3427 (expand_expr): Ditto.
3428
84630bf9 34292003-04-10 Douglas B Rupp <rupp@gnat.com>
3430
3431 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
3432
d2cfc124 34332003-04-10 Bob Wilson <bob.wilson@acm.org>
3434
3435 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
3436 even if it is configured to be write-through.
3437
525d1294 34382003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
3439
3440 * config/s390/s390.c (larl_operand): Do not allow symbols
3441 marked with '@'.
3442 (s390_encode_section_info): Mark symbols with forced 1-byte
3443 alignment with '@'.
3444 (s390_strip_name_encoding): Strip '@'.
3445 (legitimize_pic_address): Handle symbols that are not valid
3446 LARL operands in 64-bit mode.
3447
6ba5c16b 34482003-04-10 Andrew Haley <aph@redhat.com>
3449
3450 * tree-inline.c (inlinable_function_p): Disable inlining for
3451 synchronized methods.
3452
bac62436 34532003-04-09 Steven Bosscher <steven@gcc.gnu.org>
3454
3455 * c-common.h (lang_statement_code_p): Remove declaration.
3456 (statement_code_p): Ditto.
3457 (c_common_stmt_codes): Define; list of c-common statement codes.
3458 (statement_code_p): New extern declaration.
3459 (STATEMENT_CODE_P): Define.
3460 (INIT_STATEMENT_CODES): Define.
3461 * c-common.c (statement_code_p): Kill the function, declare
3462 as an array of bools instead.
3463 (lang_statement_code_p): Remove.
3464 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
3465 (c_safe_from_p): Ditto.
3466 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
3467 to initialize the statement_code_p array.
3468 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
3469 statement_code_p.
3470 (copy_tree_r): Ditto.
3471 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
3472 statement tree codes.
3473 * cp/lex.c (cxx_init): Add missing print line break. Use
3474 INIT_STATEMENT_CODES to initialize the statement_code_p array.
3475 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
3476 instead of statement_code_p.
3477 * cp/pt.c (tsubst_expr): Ditto.
3478 * cp/tree.c (verify_stmt_tree_r): Ditto.
3479 (cp_statement_code_p): Remove.
3480 (init_tree): Don't set lang_statement_code_p, it's gone.
3481
d8b9732d 34822003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
3483 Zack Weinberg <zack@codesourcery.com>
3484
3485 * regrename.c (struct du_chain): Use a bitfield for reg_class.
3486 * cse.c (struct qty_table_elem, struct table_elt, struct set):
3487 Use bitfields for fields holding enum rtx_code or
3488 enum machine_mode values. Add comments explaining size choices.
3489
6b739583 34902003-04-09 Alexandre Oliva <aoliva@redhat.com>
3491
3492 * config/fp-bit.c (unpack_d): Handle pair of doubles with
3493 different signs correctly.
3494
c14a239f 34952003-04-09 Vladimir Makarov <vmakarov@redhat.com>
3496
3497 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
3498 (reg_pending_barrier): Make it of the enumeration type.
3499 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
3500 TRUE_BARRIER.
3501 (sched_analyze): Ditto.
3502 (sched_analyze_insn): Ditto. Use anti-dependencies for
3503 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
3504 (init_deps_global): Initialize the barrier as NO_BARRIER.
2fcde217 3505
c4177b9b 35062003-04-09 Vladimir Makarov <vmakarov@redhat.com>
3507
3508 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
3509 Check that asm insn starts on a new cycle. Add nops after asm
3510 insn to end bundle.
3511 (bundling): Move insn type evaluation from the loop. Call
3512 issue_nops_and_insn with the new parameter. Ignore changing
3513 position for nops after asm insn.
3514
39810676 35152003-04-09 Alexandre Oliva <aoliva@redhat.com>
3516
3517 * optabs.c: Comment that gen_add2_insn and others may actually
3518 return emitted insns, if the gen functions turn out to return
3519 emitted insns.
3520 * reload1.c (reload_cse_move2add): Cope with emitted insns from
3521 gen_add2_insn.
3522
58b90768 35232003-04-09 Richard Henderson <rth@redhat.com>
3524
3525 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
3526 but not tls_symbolic_operand.
3527 (ia64_expand_load_address): Remove scratch operand.
3528 (ia64_expand_tls_address): Split out from ia64_expand_move.
3529 (ia64_expand_move): Split symbolics only after reload.
3530 (ia64_emit_cond_move): New.
3531 * config/ia64/ia64-protos.h: Update.
3532 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
3533 (symbolic splitter): Accept SImode operands too.
3534 (cmove splitter): Use ia64_emit_cond_move.
3535
6cb00ca0 35362003-04-09 Nick Clifton <nickc@redhat.com>
3537
3538 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
3539 newer.
3540 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
3541 instead of -mno-fpu.
3542 * config/arm/semi.h (ASM_SPEC): Likewise.
3543 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
3544 but only if -msoft-float is specified pass. Otherwise pass
3545 -mfpu=softvfp.
2fcde217 3546
27198b56 35472003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3548
3549 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
3550 free_EXPR_LIST_node.
3551
0e83f63c 35522003-04-08 Roger Sayle <roger@eyesopen.com>
3553
3554 * fold-const.c (fold): Use "fold" following build in more places.
3555 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
3556 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
3557
2643011a 35582003-04-08 Roger Sayle <roger@eyesopen.com>
3559
3560 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
3561 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
3562 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
3563 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
3564 Delete function scope "fcode" variable to avoid shadowing.
3565
38c41660 35662003-04-08 Kevin Buettner <kevinb@redhat.com>
3567
3568 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
3569 Take into account DWARF_INITIAL_LENGTH_SIZE.
3570
973c73e7 35712003-04-08 Hans-Peter Nilsson <hp@axis.com>
3572
3573 * reorg.c (fill_slots_from_thread): When considering changing the
3574 insn following a reg-to-reg copy insn to use the source reg of the
3575 copy, bail out if there's overlap between the registers.
3576
a8636638 35772003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3578
3579 * function.c (postponed_insns): New.
3580 (purge_addressof_1): Postpone processing of insns if addressofs
3581 are not put into stack.
2fcde217 3582 (purge_addressof): Process postponed insns.
a8636638 3583
36a2dfdb 35842003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
3585
3586 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
3587 this is FP_MODE_DOUBLE .
3588 * sh.c (ra.h): #include.
3589 (push_regs): Add second parameter. Changed all callers.
3590 If necessary, set fpscr before saving floating point registers.
3591 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
3592 do saves / restores with SZ == 1.
3593 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
3594 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
3595 registers are being restored, restore FPSCR only after restoring them.
3596
196c3a80 35972003-04-08 Aldy Hernandez <aldyh@redhat.com>
3598
d8b9732d 3599 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
3600 regardless of architecture.
3601 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
196c3a80 3602
ed8483c0 36032003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
3604
3605 * sh.c (push_regs, calc_live_regs): Return int. Take single
3606 HARD_REG_SET * parameter. Changed all callers.
3607
e48f6378 3608Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
3609
3610 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
3611 GOTOFF operand.
3612 (legitimize_pic_address): Move plus outside the unspec.
3613 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
3614 for validity.
3615
cf7a8d2a 36162003-04-08 Nathan Sidwell <nathan@codesourcery.com>
3617
3618 * gcov-io.h (gcov_save_position): Remove __inline__ from
3619 declaration.
3620
f6937ba5 36212003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
3622
3623 * doc/install.texi: Use @command and @samp for single- and
3624 multi-word commands respectively.
3625 * doc/makefile.texi: Likewise.
3626 * doc/sourcebuild.texi: Likewise.
3627
56c7ac50 36282003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
d8b9732d 3629 Richard Henderson <rth@redhat.com>
56c7ac50 3630
d8b9732d 3631 PR c/9516
3632 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
3633 favour of looping and tail recursion for TREE_LIST and binops.
56c7ac50 3634
239b846c 36352003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3636
3637 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
3638 for insns without luid.
3639
a86696c3 36402003-04-07 Glen Nakamura <glen@imodulo.com>
3641
3642 PR opt/8634
3643 * explow.c (maybe_set_unchanging): Don't flag non-static const
3644 aggregate type initializers with RTX_UNCHANGING_P.
3645
930f9e92 36462003-04-07 Richard Henderson <rth@redhat.com>
3647
d8b9732d 3648 PR opt/8634
3649 * function.c (purge_addressof_1): Don't try arithmetics for
3650 unchanging memories.
930f9e92 3651
6e8d5522 36522003-04-07 Janis Johnson <janis187@us.ibm.com>
3653
3654 * doc/sourcebuild.texi (Test Suites): Document testing support for
3655 gcov and profile-directed optimizations; describe gcc.misc-tests.
3656
13e614a2 3657Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
3658
3659 PR target/10077
3660 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
3661
da475a45 36622003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3663
3664 * doc/rtl.texi (Comparison operations): Update to
3665 record the allowed comparison modes.
3666
f7cc227f 36672003-04-07 Aldy Hernandez <aldyh@redhat.com>
3668
d8b9732d 3669 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
3670 V2SI_type_node to opaque_V2SI_type_node. Rename all
3671 V2SF_type_node to opaque_V2SF_type_node.
3672 (rs6000_init_builtins): Define opaque_V2SI_type_node and
3673 opaque_V2SF_type_node.
3674 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
3675 opaque_V2SF_type_node are opaque types.
f7cc227f 3676
418d931f 36772003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
3678
3679 * gcse.c (replace_store_insn): Use single_set.
3680
9219dd0a 36812003-04-07 Nathan Sidwell <nathan@codesourcery.com>
3682
3683 Change gcov file interface to single file at a time.
3684 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
3685 Convert to C89 prototypes.
3686 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
3687 gcov_error, gcov_modified): New static variables.
3688 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
3689 functions.
3690 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
3691 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
3692 (gcov_read_summary, gcov_write_summary): Adjust.
3693 (gcov_save_position, gcov_reserve_length, gcov_write_length):
3694 Adjust.
3695 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
3696 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
3697 (da_file_position, da_file_seek, da_file_write, da_file_read):
3698 Remove.
3699 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
3700 * gcov.c (gcov_type): Don't typedef here.
3701 (IN_GCOV): #define
3702 (read_graph_file, read_count_file): Adjust.
3703 * gcov-dump.c (gcov_type): Don't typedef here.
3704 (IN_GCOV): #define.
3705 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
3706 Remove FILE parameter, adjust.
3707 (struct tag_format): Adjust proc member.
3708 (dump_file): Adjust.
3709 * libgcov.c (IN_LIBGCOV): #define.
3710 (gcov_exit): Adjust.
3711 * loop-init.c: Don't #include gcov-io.h
3712 * profile.c (struct counts_entry): New structure to hold counter
3713 values.
3714 (struct section_reference, struct da_index_entry): Remove.
3715 (bbg_file, da_file): Remove.
3716 (htab_counts_index_hash, htab_counts_index_eq,
3717 htab_counts_index_del): Replace with ...
3718 (htab_counts_entry_hash, htab_counts_entry_eq,
3719 htab_counts_entry_del): ... these.
3720 (cleanup_counts_index, index_counts_file): Remove.
3721 (read_counts_file): New function.
3722 (get_exec_counts): Adjust.
3723 (compute_branch_probabilities): Don't free the exec counts here.
3724 (branch_prob): Adjust.
3725 (init_branch_prob): Adjust.
3726 (end_branch_prob): Adjust.
3727
38d1018a 37282003-04-07 Aldy Hernandez <aldyh@redhat.com>
3729
d8b9732d 3730 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3731 -mfloat-gprs.
38d1018a 3732
d8b9732d 3733 * config/rs6000/rs6000.c: Delete rs6000_fprs.
3734 Declare rs6000_float_gprs.
3735 Declare rs6000_float_gprs_string.
3736 (rs6000_parse_float_gprs_option): New.
3737 (rs6000_override_options): Genericize rs6000_parse_* calls to use
3738 rs6000_parse_yes_no_option.
3739 Change check for cpu=8540, to use TARGET_E500.
3740 (rs6000_parse_isel_option): Delete.
3741 (rs6000_parse_spe_option): Delete.
3742 (rs6000_parse_vrsave_option): Delete.
38d1018a 3743
d8b9732d 3744 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
3745 Define rs6000_float_gprs_string.
3746 (TARGET_OPTIONS): Add rs6000_float_gprs option.
38d1018a 3747
d8b9732d 3748 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
38d1018a 3749
d8b9732d 3750 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
38d1018a 3751
68c22c86 3752Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
3753
3754 PR opt/10024
3755 * cfglayout.c (cfg_layout_redirect_edge):
3756 Redirect any branch edges unified with the fallthru one.
3757 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
3758 case fallthru edges when called via cfglayout.c
3759
61129d4e 37602003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
3761
3762 * c-typeck.c (output_init_element): Check for type == error_mark_node.
3763
fd80cea2 37642003-04-07 Kazu Hirata <kazu@cs.umass.edu>
3765
3766 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
3767 split.
3768 (a splitter): Do zero-extension via HImode.
3769
f73b751d 37702003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
3771
3772 * doc/invoke.texi: Eliminate extra white-space caused by
3773 @gccoptlist{ on its own line.
3774 * doc/invoke.texi: Ensured there are two spaces between each option.
3775 * doc/invoke.texi: Re-wrapped option lines that were too wide.
3776 Added @gol to options that didn't have them.
3777
1c95bb8d 37782003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
3779
3780 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
3781
295e387a 37822003-04-06 Zack Weinberg <zack@codesourcery.com>
3783
3784 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
3785 at the sizes of the relevant structures, rather than relying
3786 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
3787 sizes of any such we don't know about. Use
3788 lang_hooks.identifier_size for IDENTIFIER_NODE.
3789
3790 (initializer_zerop): Use CONSTRUCTOR_ELTS.
3791 * tree.def: Update commentary. Make fourth element of
3792 the definition for all 'c' and 'x' nodes zero.
3793
3794 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
3795 * langhooks-def.h: Update to match.
3796 * langhooks.c: New default, lhd_tree_size.
3797
3798 * c-common.def (SRCLOC): Kill.
3799 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
3800 Remove entirely - was already #if-ed out.
3801
3802
1f4be4f7 38032003-04-06 Zack Weinberg <zack@codesourcery.com>
3804
3805 * mklibgcc.in: Use a here document to avoid running afoul of
3806 shells that generate control-A from "echo \1".
3807
159813d9 38082003-04-06 Aldy Hernandez <aldyh@redhat.com>
3809
295e387a 3810 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
3811 option.
159813d9 3812
295e387a 3813 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3814 rs6000_spe.
159813d9 3815
295e387a 3816 * config/rs6000/eabi.h (TARGET_E500): Define.
159813d9 3817
295e387a 3818 * config/rs6000/rs6000.h (TARGET_E500): Define.
3819 (TARGET_OPTIONS): Add spe= option.
3820 Declare rs6000_spe and rs6000_spe_string extern.
159813d9 3821
295e387a 3822 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
3823 Change TARGET_SPE to TARGET_E500.
3824 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
3825 !TARGET_FPRS.
3826 (print_operand): Same.
3827 (rs6000_generate_compare): Same.
3828 (output_cbranch): Same.
3829 (rs6000_spe): Declare.
3830 (rs6000_spe_string): Declare.
3831 (rs6000_override_options): Call rs6000_parse_spe_option.
3832 (rs6000_parse_spe_option): New.
159813d9 3833
e645c1a1 38342003-04-06 Steven Bosscher <steven@gcc.gnu.org>
3835
3836 * hashtable.c (gcc_obstack_init): Delete this function
3837 and everything related to it.
3838 * hashtable.h: Remove prototype.
3839 * bitmap.c (bitmap_element_allocate): Cleanup redundant
3840 defines. Cleanup some unnecessary whitespace.
3841 * defaults.h (obstack_chunk_alloc): Redefine with
3842 appropriate casts for libiberty obstacks.
3843 (obstack_chunk_free): Ditto.
3844 (OBSTACK_CHUNK_SIZE): Define, default to 0.
3845 (gcc_obstack_init): Define as a call to _obstack_begin.
3846 * tree.c (print_obstack_statistics): Delete this unused
3847 function.
3848 * tree.h (obstack): Don't forward-declare.
3849 (print_obstack_statistics): Delete prototype.
3850 (print_obstack_name): Ditto.
3851 (gcc_obstack_init): Ditto.
3852 * rtl.h (gcc_obstack_init): Ditto.
3853 * java/jv-scan.c (gcc_obstack_init): Delete this
3854 function, its prototype and related defines.
3855 * java/jvgenmain.c (gcc_obstack_init): Delete this
3856 function, and related defines.
3857 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
3858 (obstack_chunk_free): Ditto
3859
518010a5 38602003-04-06 Geoffrey Keating <geoffk@apple.com>
3861
3862 * dbxout.c (dbxout_handle_pch): Move prototype out from
3863 #if defined DBX_DEBUGGING_INFO.
3864
f56e0ced 38652003-04-05 Nathan Sidwell <nathan@codesourcery.com>
3866
3867 * gcov.c (struct arc_info): Replace local_span with cycle.
3868 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
3869 (solve_flow_graph): Set is_call_return.
3870 (add_line_counts): Adjust. In block mode, blocks attach to last line.
3871 (accumulate_line_counts): Find graph cycles, not spanning tree.
3872 (output_branch_count): Adjust.
3873 (output_lines): Adjust.
3874 * doc/gcov.texi: Update.
3875
82a50abb 38762003-04-06 Kazu Hirata <kazu@cs.umass.edu>
3877
3878 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
3879 the second alternative to "#".
3880
5c7b13c9 38812003-04-05 Kazu Hirata <kazu@cs.umass.edu>
3882
3883 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
3884 (single_zero_operand): Likewise.
3885
b188fc29 38862003-04-05 Daniel Berlin <dberlin@dberlin.org>
3887
3888 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
3889 * df.c: Include alloc-pool.h, not obstack.h.
3890 (df_ref_obstack): Remove.
3891 (df_ref_pool, df_link_pool): Add pools.
3892 (df_alloc): Init the new pools.
3893 (df_free): And free them.
3894 (df_link_create): Use the pools.
3895 (df_ref_create): Ditto.
3896
22ee9f9f 38972003-04-05 Kazu Hirata <kazu@cs.umass.edu>
3898
3899 * simplify-rtx.c: Fix formatting.
3900
7ff90ef0 39012003-04-05 Andrew Pinski <apinski@apple.com>
3902
3903 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
3904 reg with reg1 == reg2 and offset1 = -8.
3905
39062003-04-05 David Edelsohn <edelsohn@gnu.org>
3907
3908 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
3909 multiply costs. Correct Power4 divide costs.
3910 * config/rs6000/power4.md: Restore multiply and FP latency.
3911
5a37abfd 39122003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3913
3914 * alias.c (find_base_term): Export.
3915 * rtl.h (find_base_term): Declare.
3916 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
3917 instead of flag_exceptions. Move test for parameter passing ...
3918 (store_killed_in_insn): ... here.
3919
a5a38989 39202003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3921
3922 PR bootstrap/10267
3923 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
3924 for configuring.
3925
cf8e41a4 39262003-04-04 Geoffrey Keating <geoffk@apple.com>
3927
3928 * dbxout.c (scope_labelno): Add GTY.
3929 (have_used_extensions): Add GTY.
3930 (source_label_number): Add GTY.
3931 (lastfile): Add GTY.
3932 (lastfile_is_base): New.
3933 (base_input_file): New.
3934 (dbxout_handle_pch): New.
3935 (dbx_debug_hooks): Add handle_pch.
3936 (xcoff_debug_hooks): Likewise.
3937 (dbxout_function_end): Remove scope_labelno.
3938 (dbxout_init): Set base_input_file.
3939 (dbxout_handle_pch): New.
3940 (dbxout_source_file): Honour lastfile_is_base.
3941 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
3942 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
3943 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
3944 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
3945 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
3946 * debug.h (struct gcc_debug_hooks): Add handle_pch.
3947 * c-pch.c (pch_init): Don't call start_source_file, but do call
3948 handle_pch.
3949 (c_common_write_pch): Call handle_pch.
3950 (c_common_read_pch): Don't call start_source_file,
2fcde217 3951 or end_source_file.
cf8e41a4 3952
d5c80165 3953Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
3954
295e387a 3955 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
3956 use of default attributes to agree MEM_ALIGN macro.
d5c80165 3957
bdeba923 3958Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
3959
295e387a 3960 * dbxout.c (dbxout_type): When printing type index of range type
bdeba923 3961 whose bounds are printed in octal format, print type of parent type if
3962 it exists so enumerated type descriptions are not transformed
295e387a 3963 into unsigned types.
bdeba923 3964
fd7729c5 39652003-04-04 Kazu Hirata <kazu@cs.umass.edu>
3966
3967 * config/h8300/h8300-protos.h: Add a prototype for
3968 compute_a_shift_cc.
3969 * config/h8300/h8300.c (shift_one): Update the CC status.
3970 (shift_two): Likewise.
3971 (output_a_shift_cc): Set cc_inline and cc_special.
3972 (compute_a_shift_cc): New.
3973 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
3974
d10338f7 39752003-04-04 Richard Henderson <rth@redhat.com>
3976
3977 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
3978
dd21ceee 39792003-04-04 Loren James Rittle <ljrittle@acm.org>
3980
3981 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
3982 * fixinc/fixincl.x: Rebuilt.
3983 * fixinc/tests/base/stdio.h: Regenerated.
3984
30c3f31b 39852003-04-04 Nathan Sidwell <nathan@codesourcery.com>
3986
3987 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
3988
ab5ad604 3989Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
3990
3991 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
3992 (NORMAL_MODE).
3993 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
3994
65ba5d12 39952003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2fcde217 3996
65ba5d12 3997 * doc/contrib.texi (Contributors): Add entries for Wolfgang
3998 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
3999 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
4000 Danny Smith, and Ulrich Weigand.
4001 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
4002 entry.
4003
7ac84b8a 40042003-04-04 Nick Clifton <nickc@redhat.com>
4005
4006 * config/sparc/sol2-bi.h: Revert previous delta.
4007 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
4008
a184c07b 40092003-04-04 Nick Clifton <nickc@redhat.com>
4010
4011 * config/v850/v850.c (expand_prologue): Only use register save
4012 helper functions if long calls are not being used.
4013 Add a clobber of r11 id using long calls.
4014 (pattern_is_ok_for_prologue): Account for the extra clobber.
4015 (construct_save_jarl): Likewise.
4016 * config/v850/v850.md (prolog pattern): Do not use this pattern
4017 for v850e's.
4018
3aa7cd03 40192003-04-04 Andreas Schwab <schwab@suse.de>
4020
4021 * stor-layout.c (layout_decl): Avoid syntax error in last change
4022 when PCC_BITFIELD_TYPE_MATTERS is defined but not
4023 EMPTY_FIELD_BOUNDARY.
4024
e4220e08 40252003-04-03 Jason Merrill <jason@redhat.com>
4026
4027 PR c/10175
4028 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
4029 Look backwards for a line note.
4030
3448260d 40312003-04-03 Neil Booth <neil@daikokuya.co.uk>
4032
4033 * fix-header.c (read_scan_file): Defer switch processing.
4034
78e9fc50 40352003-04-03 Matt Austern <austern@apple.com>
4036
4037 * cpppch.c (reset_ht): Remove.
4038 (cpp_read_state): Remove loop to reset hashtable identifiers.
4039 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
4040 after pch file is written.
4041 * ggc.h (gt_pch_fixup_stringpool): Declare.
4042 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
4043 hashnode's value to another hashtable, then clear the original.
4044 (saved_ident_hash): Define.
4045 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
4046 store definitions in ident_hash, and clear ident_hash.
4047 (gt_pch_fixup_stringpool): Define. Restore definitions from
4048 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
4049
cbf55766 4050Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
4051
4052 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
4053
3d055936 40542003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4055
4056 PR optimization/10157
4057 * gcse.c (can_copy_p): Rename it to can_copy.
4058 (can_copy_init_p): Remove.
4059 (compute_can_copy): Use can_copy instead of can_copy_p.
4060 (can_copy_p): New exported function. Call compute_can_copy.
4061 (hash_scan_set): Use it.
4062 (gcse_main): Don't call compute_can_copy.
4063 (bypass_jumps): Don't call compute_can_copy.
4064 * rtl.h (can_copy_p): Declare.
4065 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
4066 copy if the mode doesn't support copy operations.
4067
f5712181 40682003-04-03 Jason Merrill <jason@redhat.com>
4069
ac9c2543 4070 * Makefile.in (unstrap): Also remove stage_last.
4071
d8a4712b 4072 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
4073 (dwarf2out_source_line): Don't do anything if line==0.
4074
f5712181 4075 * stor-layout.c (do_type_align): New fn, split out from...
2fcde217 4076 (layout_decl): ...here. Do all alignment calculations for
f5712181 4077 FIELD_DECLs here.
4078 (update_alignment_for_field): Not here.
4079 (start_record_layout, debug_rli): Remove unpadded_align.
4080 * tree.h (struct record_layout_info_s): Remove unpadded_align.
4081 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
4082 or DECL_MODE on the CONST_DECLs.
4083 (finish_struct): Don't mess with DECL_ALIGN.
4084
1eb2dd7f 4085Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
4086
4087 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
4088
4089Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
4ae6d867 4090
372faa42 4091 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
4092 function is an interrupt handler.
4093
4094 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
4095 restoring target registers with EH_RETURN_STACKADJ_RTX; use
4096 multiple registers in round-robin fashion.
4ae6d867 4097
4fa0b096 40982003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4099
4100 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
4101 * system.h (CHAR_BITFIELD): New.
4102
7b259c7a 41032003-04-03 Kazu Hirata <kazu@cs.umass.edu>
4104
4105 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
4106 and LE.
4107 (another peephole2): Likewise.
4108
2f5ac717 41092003-04-03 Nick Clifton <nickc@redhat.com>
4110
4111 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
295e387a 4112 (DEF_ARCH64_SPEC): Likewise.
2f5ac717 4113
8827d2ba 4114Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
4115
4116 * i386.c (constant_address_p): Use legitimate_constant_p.
4117 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
4118
ad927dea 41192003-04-02 Kazu Hirata <kazu@cs.umass.edu>
4120
4121 * config/h8300/h8300-protos.h: Add a prototype for
4122 gtle_operator.
4123 * config/h8300/h8300.c (gtle_operator): New.
4124 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
4125 gtle_operator.
4126 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
4127 and LE.
4128
c7beb4b3 41292003-04-02 Richard Henderson <rth@redhat.com>
4130
4131 * libgcc-std.ver (_Unwind_GetCFA): New.
4132 * unwind-dw2.c (_Unwind_GetCFA): New.
4133 * unwind-libunwind.c (_Unwind_GetCFA): New.
4134 * unwind-sjlj.c (_Unwind_GetCFA): New.
4135 * unwind.h: Declare it.
4136
a0686702 4137Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
4138
4139 PR inline-asm/8088
4140 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
4141 when MMX/SSE is not available.
4142
06a58e9b 41432003-04-02 Mike Stump <mrs@apple.com>
4144
4145 * doc/install.texi (Specific): Update pointers to apple.com.
4146
8827d2ba 4147Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
928bf046 4148
4149 * i386.c (override_options): Disable red zone by default on i386.
2fcde217 4150 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
928bf046 4151 Do not test TARGET_64BIT together with TARGET_RED_ZONE
4152
b9ec66c0 41532003-04-02 Kazu Hirata <kazu@cs.umass.edu>
4154
4155 * config/h8300/h8300.md (a peephole2): Tighten the condition.
4156
51f3790e 41572003-04-02 Richard Henderson <rth@redhat.com>
4158
4159 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
4160
065c7645 41612003-04-02 Kazu Hirata <kazu@cs.umass.edu>
4162
4163 * config/h8300/h8300.md (a peephole2): New.
4164
72fb799c 41652003-04-02 Richard Henderson <rth@redhat.com>
4166
4167 * except.c (sjlj_find_directly_reachable_regions): Recognize when
4168 must-not-throw region has been deleted.
4169
f7b10771 41702003-04-02 Richard Henderson <rth@redhat.com>
4171
295e387a 4172 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
4173 optimization when flag_exceptions not enabled.
f7b10771 4174
d5fe9d88 41752003-04-02 Vladimir Makarov <vmakarov@redhat.com>
4176
4177 * config/rs6000/rs6000.c
4178 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
4179 macros.
4180 (rs6000_issue_rate): Add case for 8540.
4181 (rs6000_use_sched_lookahead): New function.
4182
4183 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
4184 units into MU ones.
4185 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
4186 reservation before retirement.
4187 (ppc8540_multiply, ppc8540_load, ppc8540_store,
4188 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
4189 Remove additional cycle in the reservation before retirement.
4190 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
4191 reservation of ppc8540_issue.
2fcde217 4192
b66a475f 41932003-04-02 Andreas Schwab <schwab@suse.de>
4194
4195 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
4196
b2b188b5 41972003-04-01 Richard Henderson <rth@redhat.com>
4198
295e387a 4199 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
4200 notes for nothrow calls if flag_forced_unwind_exceptions.
4201 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
4202 (sjlj_find_directly_reachable_regions): Likewise.
4203 (reachable_handlers): Likewise.
4204 (can_throw_external): Likewise.
4205 (collect_one_action_chain): Record cleanups after catch-all and
4206 must-not-throw if flag_forced_unwind_exceptions.
4207 * flags.h (flag_forced_unwind_exceptions): Declare.
4208 * toplev.c (flag_forced_unwind_exceptions): New.
4209 (lang_independent_options): Add it.
b2b188b5 4210 * doc/invoke.text: Add it.
4211
3eb5cd22 42122003-04-01 David Mosberger <davidm@hpl.hp.com>
4213
295e387a 4214 * config/ia64/crti.asm: Clean up trailing whitespace.
4215 Remove trailing hashes (#) from identifiers.
3eb5cd22 4216
295e387a 4217 * config/ia64/crtn.asm: Ditto.
3eb5cd22 4218
295e387a 4219 * config/ia64/crtend.asm: Remove trailing hashes (#) from
4220 identifiers.
4221 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
4222 directives. Drop explicit bundling---it just makes the code
4223 harder to read. Don't save/restore gp needlessly.
3eb5cd22 4224
295e387a 4225 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
4226 identifiers (they're only needed if the identifier would clash
4227 with a register name otherwise).
4228 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
4229 directives. Drop explicit bundling---it just makes the code
4230 harder to read.
4231 (__do_jv_register_classes): Ditto.
4232 (.fini_array): Remove "progbits" (newer
4233 assemblers don't like wrong section-types).
4234 (.init_array): Ditto.
3eb5cd22 4235
375b98af 42362003-04-01 Roger Sayle <roger@eyesopen.com>
4237
4238 PR fortran/9974
edc21ba8 4239 * gcse.c (reg_killed_on_edge): New function to test whether the
375b98af 4240 given reg is overwritten by any instruction queued on an edge.
4241 (bypass_block): Ignore substitutions killed on incoming edges.
4242 Don't bypass outgoing edges that have queued instructions.
4243
eee8bf1c 42442003-04-01 Alexandre Oliva <aoliva@redhat.com>
4245
4246 * real.h (EXP_BITS): Make room for...
4247 (struct real_value): ... added canonical bit.
4248 (struct real_format): Added pnan.
4249 (mips_single_format, mips_double_format, mips_extended_format,
4250 mips_quad_format): New.
4251 * real.c: Copy p to pnan in all formats.
4252 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
4253 (real_nan): Use pnan to compute significand's shift.
4254 (real_identical): Disregard significand in canonical
4255 NaNs.
4256 (real_hash): Likewise. Take signalling into account.
4257 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
4258 Disregard significand bits in canonical NaNs. Set all bits of
4259 canonical NaN if !qnan_msb_set.
4260 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
4261 qnan_msb_set to tell the base double format.
4262 (ibm_extended_format): Use 53 as pnan.
4263 (mips_single_format, mips_double_format, mips_extended_format,
4264 mips_quad_format): Copied from the corresponding ieee/ibm
4265 formats, with qnan_msb_set false.
4266 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
4267 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
4268 * config/mips/mips.c (override_options): Use mips_single_format
4269 and mips_double_format. Default TFmode to mips_quad_format.
4270 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
4271 * config/mips/t-irix6: Likewise.
4272 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
4273 * config/fp-bit.c (pack_d, unpack_d): Obey it.
4274
fc8903b3 42752003-04-01 Geoffrey Keating <geoffk@apple.com>
4276
4277 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
4278 (live_image_destructor): Reset image to initial state.
4279 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
4280
48104d45 42812003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
4282
4283 * config/sparc/sparc.c (input_operand): Accept bare
4284 CONSTANT_P_RTX operands.
4285
64928ee5 42862003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4287
4288 * gcse.c (struct ls_expr): Added pattern_regs field.
4289 (ldst_entry): Initialize it.
4290 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
4291 (store_ops_ok): Use regs precomputed by them.
4292 (find_loads, store_killed_in_insn, load_kills_store): Change return
4293 type to bool.
4294 (store_killed_before, store_killed_after): Take position of register
4295 set in account.
4296 (reg_set_info): Store position of the setter.
4297 (gcse_main): Enable store motion.
4298 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
4299 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
4300 sharing.
4301 (simple_mem): Enable store motion of non-symbol mems.
4302 (regvec): Type changed.
4303 (LAST_AVAIL_CHECK_FAILURE): New.
4304 (compute_store_table_current_insn): New.
4305 (build_store_vectors): Computation of availability and anticipatability
4306 moved ...
4307 (compute_store_table, find_moveable_store): ... here.
4308 (delete_store): Remove senseless comment.
4309 (store_motion): Reorganize.
4310
f4bfc916 43112003-04-01 Kevin Buettner <kevinb@redhat.com>
4312
4313 * config/mips/mips.c (override_options): Provide mappings for
4314 HI_REGNUM and LO_REGNUM.
4315 * config/mips/mips.h (MD_DBX_FIRST): Define.
4316
882ba07d 43172003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4318
4319 * combine.c (merge_outer_ops): Fix typo.
4320
4321 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
4322
ba21ae0b 43232003-04-01 David Edelsohn <edelsohn@gnu.org>
4324
4325 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
4326 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
4327 imul_compare. Add lmul_compare.
4328 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
4329 in second pair of dispatch slots. Model stores more accurately.
4330 Tweak multiply model. Add bypasses for CR instructions dependent
4331 on complicated compares.
4332 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
4333 (muldi3): Add lmul_compare patterns.
4334 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
4335 and FPSTORE_UX to split instructions and add COMPARE,
4336 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
4337 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
4338 (rs6000_rtx_costs): Separate POWER4 multiply case.
4339
d54ddafb 43402003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
4341
4342 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
4343 Do nothing if __builtin_return_address was not used.
4344
1a805b01 4345Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
4346
4347 * i386.md (test patterns): Allow memory operand in operand1.
4348
c3309fc6 43492003-02-31 Aldy Hernandez <aldyh@redhat.com>
4350
295e387a 4351 * testsuite/gcc.c-torture/execute/simd-3.c: New.
4352
4353 * expr.c (expand_expr): Handle VECTOR_CST.
4354 (const_vector_from_tree): New.
4355
4356 * varasm.c (output_constant): Handle VECTOR_CST.
4357
4358 * c-typeck.c (digest_init): Build a vector constant from a
4359 VECTOR_TYPE.
4360
4361 * config/rs6000/rs6000.c: Remove prototype for
4362 easy_vector_constant.
4363 (easy_vector_constant): Add mode parameter. Rewrite to handle
4364 more easy constants.
4365 (rs6000_emit_move): Pass mode to easy_vector_constant.
4366 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
4367 (emit_easy_vector_insn): New.
4368 (easy_vector_same): New.
4369 (EASY_VECTOR_15): New macro.
4370 (EASY_VECTOR_15_ADD_SELF): New macro.
4371 (bdesc_2arg): Rename to xorv2si3.
4372 (easy_vector_constant_add_self): New.
4373 (input_operand): Allow vector constants.
4374
4375 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
4376 easy_vector_constant, easy_vector_constant_add_self.
4377 (EXTRA_CONSTRAINT): Add 'W'.
4378
4379 * config/rs6000/rs6000-protos.h: Add prototype for
4380 easy_vector_constant, emit_easy_vector_insn.
4381
4382 * config/rs6000/altivec.md (xorv8hi3): New.
4383 (xorv16qi3): New.
4384 Remove all _const0 patterns.
4385 (movv4si_internal): Rewrite to use code. Add vector constant to
4386 vector alternative. Add splitter.
4387 (movv8hi_internal): Same.
4388 (movv16qi_internal): Same.
4389 (movv4sf_internal): Same.
4390 Change the unspecs for vspltis* to use constants.
4391
4392 * config/rs6000/spe.md ("xorv4hi3"): New.
4393 ("spe_evxor"): Rename to xorv2si3.
4394 ("xorv1di3"): New.
4395 Remove all _const0 patterns.
4396 (movv2si_internal): Rewrite to use code. Add vector constant to
4397 alternatives. Add splitter.
4398 (movv4hi_internal): Add vector constant to alternatives.
4399 (movv1di_internal): Same.
4400 (movv2sf_internal): Same.
c3309fc6 4401
fac69c46 44022003-03-31 Mark Mitchell <mark@codesourcery.com>
4403
4404 PR c/9936
4405 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
4406 variably-sized arrays in parameters.
4407 (set_save_expr_context): New function.
4408 (c_expand_body): Use it, via walk_tree.
4409
f65c89fb 44102003-03-31 Eric Christopher <echristo@redhat.com>
4411
4412 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
4413 (combinable_i3pat): Remove call to expand_field_assignment and
4414 #if 0'd code.
4415
9dd48740 44162003-03-31 Mark Mitchell <mark@codesourcery.com>
4417
4418 PR c++/10278
4419 * c-common.c (finish_label_address_expr): Handle the
4420 error_mark_node.
4421
74688d3d 44222003-03-31 Richard Henderson <rth@redhat.com>
4423
4424 * real.c (real_identical): Reorg so as to not compare
4425 signalling for normals.
4426
52fac5f5 44272003-03-31 Stephane Carrez <stcarrez@nerim.fr>
4428
4429 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
4430
869c5a7c 44312003-03-31 Stephane Carrez <stcarrez@nerim.fr>
4432
4433 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
4434 notes as they are boggus.
4435 (m68hc11_gen_movqi): Likewise.
4436
5426563c 44372003-03-31 Stephane Carrez <stcarrez@nerim.fr>
4438
4439 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
4440 save the soft registers after the frame pointer so that gdb can unwind
4441 the frame more easily.
4442 (expand_epilogue): Likewise in opposite order; allow to use X register
4443 as scratch if the return value is by reference.
4444
066b1d52 44452003-03-31 Jason Merrill <jason@redhat.com>
4446
4447 PR java/10145
4448 * stor-layout.c (update_alignment_for_field): Respect
4449 DECL_USER_ALIGN for zero-length bitfields, too.
4450 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
4451 fields.
4452
d35c4ac4 44532003-03-31 Matt Austern <austern@apple.com>
4454
4455 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
4456 (count_defs): Keep track of number of defs as well as total size.
4457 (write_defs): Put every definition in cpp_savedstate's defs array.
4458 (comp_hashnode): Define. Comparison function for qsort.
4459 (cpp_write_pch_deps): Sort definitions before writing them.
4460 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
4461 (collect_ht_nodes): Define.
4462 (cpp_valid_state): When verifying that undefined identifiers in
4463 the pch file are still undefined, read a sorted list of undefined
4464 identifiers, collect all defined identifiers into a sorted list,
4465 and walk through both lists to make sure there's no match.
f65c89fb 4466
9eeeca7e 44672003-03-31 Kazu Hirata <kazu@cs.umass.edu>
4468
4469 * config/h8300/h8300.md (a peephole2): New.
4470
d5c660fd 44712003-03-31 Michael Matz <matz@suse.de>
4472
4473 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
4474
44752003-03-31 Segher Boessenkool <segher@koffie.nl>
0e3a9960 4476
4477 PR target/10177
4478 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
4479 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
4480 all call-clobbered registers as used.
4481
d76ddd90 44822003-03-31 Michael Matz <matz@suse.de>
4483
4484 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
4485 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
4486
2ff443c9 44872003-03-31 Nathan Sidwell <nathan@codesourcery.com>
4488
4489 * gcov.c: Add -a & -u options.
4490 (struct arc_info): Add local_span, is_call_non_return,
4491 is_nonlocal_return, is_unconditional flags, remove is_call flag.
4492 (struct block_info): Add flags, is_call_site, is_nonlocal_return
4493 members. Make encodings a union with span member.
4494 (struct function_info): Add blocks_executed, line, src, line_next
4495 members.
4496 (struct coverage_info): Make branches a union with blocks member.
4497 (struct source_info): Add functions member.
4498 (object_summary, program_count): New global variables.
4499 (flag_all_blocks, flag_unconditional): New flags.
4500 (find_source, output_branch_count): New functions.
4501 (print_usage): Adjust.
4502 (options): Adjust.
4503 (process_args): Adjust.
4504 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
4505 <GCOV_TAG_BLOCKS>: Read flags.
4506 <GCOV_TAG_LINES>: Adjust.
4507 (read_count_file): Process SUMMARY tags.
4508 (solve_flow_graph): Set is_unconditional and clear is_call_site
4509 appropriately.
4510 (add_branch_counts): Adjust. Don't count unconditional branches.
4511 (add_line_counts): Deal with all-blocks mode, accumulate block
4512 coverage.
4513 (accumulate_line_counts): Adjust, generate local spanning tree for
4514 all-blocks mode.
4515 (output_lines): Adjust.
4516 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
4517 * doc/gcov.texi: Document.
4518
cc403f28 45192003-03-31 Kazu Hirata <kazu@cs.umass.edu>
4520
50337a5f 4521 * config/h8300/h8300.md: Organize peephole2's that transform
cc403f28 4522 (compare (reg:HI) (const_int)).
4523
77e89269 45242003-03-31 Roger Sayle <roger@eyesopen.com>
4525
4526 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
4527 (init_emit_once): Initialize dconstm2 and dconsthalf here.
4528 * real.h (dconstm2, dconsthalf): Add prototypes here.
4529 * real.c (real_sqrt): Use dconsthalf rather than local copy.
4530 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
4531 exp(x/2.0) remember to fold the division if possible.
4532 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
4533 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
4534 1.0/(x*x) and pow(x,0.5) as sqrt(x).
4535
6655e5bc 45362003-03-31 Kazu Hirata <kazu@cs.umass.edu>
4537
4538 * config/h8300/h8300.md (a new peephole2): New.
4539
43f5be72 45402003-03-31 Richard Sandiford <rsandifo@redhat.com>
4541
4542 * gcse.c (simple_mem): Return false for floating-point accesses
4543 if flag_float_store is true.
4544
041378f3 45452003-03-30 Roger Sayle <roger@eyesopen.com>
4546
4547 * gcse.c (gcse_constant_p): New function to identify constants
4548 suitable for constant propagation, including COMPARE with two
4549 integer constant arguments.
4550 (hash_scan_set): Use gcse_constant_p.
4551 (find_avail_set): Likewise.
4552 (cprop_insn): Likewise.
4553 (do_local_cprop): Likewise.
4554 (find_implicit_sets): Likewise.
4555 (find_bypass_set): Likewise.
4556
f3d2d691 45572003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
4558
4559 * except.h: Remove definition of varray_type.
4560
395c7243 45612003-03-30 Richard Henderson <rth@redhat.com>
4562
4563 PR opt/10011, opt/10252:
295e387a 4564 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
4565 before post-gcse cse pass.
395c7243 4566
6cd6518b 45672003-03-30 Roger Sayle <roger@eyesopen.com>
4568
4569 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
4570
0c13497c 45712003-03-30 DJ Delorie <dj@redhat.com>
4572
4573 * profile.c (instrument_edges): Make sure any newly created
4574 jump insns have correct jump label info.
4575
b19beda9 45762003-03-30 Richard Henderson <rth@redhat.com>
4577
4578 * cfgbuild.c (make_edges): Use tablejump_p.
4579 * cfgcleanup.c (label_is_jump_target_p): Likewise.
4580 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
4581 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
4582 (try_redirect_by_replacing_jump): Likewise.
4583 (redirect_edge_and_branch): Likewise.
4584 * cse.c (fold_rtx): Likewise.
4585 * jump.c (delete_related_insns): Likewise.
4586 * rtlanal.c (get_jump_table_offset): Likewise.
4587 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
4588
15dc2ab0 45892003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4590
295e387a 4591 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
4592 (STRICT2_WARN): Likewise.
f65c89fb 4593
5519412f 45942003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4595
4596 PR other/6955
4597 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
4598 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
4599
01fea1eb 46002003-03-30 Richard Henderson <rth@redhat.com>
4601
4602 PR c/10083
4603 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
4604 don't zero_extend const inputs.
4605
d723006c 46062003-03-30 Kazu Hirata <kazu@cs.umass.edu>
4607
4608 * reload1.c (reload_cse_move2add): Fix a comment typo.
4609
909d2cfe 46102003-03-30 Kazu Hirata <kazu@cs.umass.edu>
4611
4612 * config/h8300/h8300.md (a peephole2): Remove useless code.
4613
1fd8d530 46142003-03-29 Kazu Hirata <kazu@cs.umass.edu>
4615
4616 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
4617 (*iorsi3_and_lshiftrt): Likewise.
4618 (*iorsi3_zero_extract): Likewise.
4619
1f4d3a5d 46202003-03-29 Kazu Hirata <kazu@cs.umass.edu>
4621
4622 * config/h8300/h8300.md (*insv_si_8_8): New.
4623 (*insv_si_8_8_lshiftrt_8): Likewise.
4624 (a peephole2): Likewise.
4625
b0471f2c 46262003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4627
b8d48a83 4628 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
f65c89fb 4629 Uniformly use bugfix instead of bug fix.
b8d48a83 4630
46312003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
f65c89fb 4632
b0471f2c 4633 PR doc/895
4634 * ONEWS: Remove those items that already appear in the EGCS
4635 release notes on our web pages.
4636
37f2c115 46372003-03-29 Alan Modra <amodra@bigpond.net.au>
4638
4639 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
4640 TARGET_HARD_FLOAT. Reformat.
4641 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
4642
ca27c637 46432003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
4644
4645 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
4646 work on Solaris 2.5.1.
4647
dc9cf061 46482003-03-28 Kazu Hirata <kazu@cs.umass.edu>
4649
4650 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
4651 section of h8300.md
4652 (*addsi3_and_nor_r_1): Likewise.
4653
90524d70 46542003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
4655
4656 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
4657 set up before any trapping memory access if flag_non_call_exceptions.
4658
4d9dcced 46592003-03-29 Alan Modra <amodra@bigpond.net.au>
4660
4661 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
4662
4663 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
4664
d2aaa43f 46652003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
4666
4667 * configure.in: Clarify comments.
4668 * configure: Regenerate.
4669
18af38a1 46702003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
4671
f65c89fb 4672 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
18af38a1 4673 label even if pool empty when generating PIC.
4674 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
4675
32351c92 46762003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
4677 Dhananjay Deshpande <dhananjayd@kpit.com>
4678
4679 PR target/10205
4680 * config/h8300/h8300.c (h8300_initial_elimination_offset):
4681 Correct the offset computation when TARGET_NORMAL.
4682
5674e61d 46832003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
4684
4685 PR target/10067
4686 * config/sparc/sparc.md (jump pattern): Correct order
4687 when issuing the annuling marker.
4688
cf7838f0 46892003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
4690
4691 PR c/8281
4692 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
4693 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
4694
e8083b80 46952003-03-28 Alan Modra <amodra@bigpond.net.au>
4696
4697 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
4698 globalize_label.
4699 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
f65c89fb 4700 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
e8083b80 4701 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4702 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4703 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4704 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4705 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
4706
f6981054 47072003-03-28 Alan Modra <amodra@bigpond.net.au>
4708
4709 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
4710 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
4711 notes after hoisting.
4712 (load_mems): Adjust replace_loop_mems call.
4713
095ec610 47142003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
295e387a 4715 Richard Henderson <rth@redhat.com>
095ec610 4716
4717 PR target/10114 and PR target/10084
4718 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
4719
84963953 47202003-03-27 Richard Henderson <rth@redhat.com>
4721
4722 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
4723
6d2e901f 47242003-03-27 Roger Sayle <roger@eyesopen.com>
4725
4726 * fold-const.c (fold_inf_compare): New function to simplify FP
4727 comparisons against +Infinity or -Infinity.
4728 (fold): Optimize floating point comparisons against Infs and NaNs.
4729
3e9fd48b 47302003-03-27 Janis Johnson <janis187@us.ibm.com>
4731
4732 * libgcov.c: Provide only dummy functions if libc is not available.
4733
424b5d7f 47342003-03-27 Richard Henderson <rth@redhat.com>
4735
4736 * real.h (struct real_value): Add signalling.
4737 (EXP_BITS): Decrement.
4738 * real.c (get_canonical_qnan): Don't set MSB-1.
4739 (get_canonical_snan): Likewise. Set signalling.
4740 (real_identical): Compare signalling.
4741 (round_for_format): Remove force-one-bit on code.
4742 (real_nan): Likewise. Set signalling.
4743 (encode_ieee_single): Add force-one-bit code; honor signalling.
4744 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
4745 (decode_ieee_single): Set signalling.
4746 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
4747
00b5f06c 47482003-03-27 Olivier Hainque <hainque@act-europe.fr>
4749
4750 PR ada/9953
4751 * ada/Makefile.in (gnatlib configuration for HPUX): Split
4752 the general section for HPUX into specific sections for
4753 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
4754 11 case.
4755
c2034a85 47562003-03-27 Glen Nakamura <glen@imodulo.com>
4757
4758 PR opt/10087
4759 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
4760 while incrementing giv.
4761 (record_biv): Check for duplicate biv locations and
4762 set (struct induction *) v->same if found.
4763
e2b2fa1f 47642003-03-27 David Mosberger <davidm@hpl.hp.com>
4765
295e387a 4766 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
4767 v0.9 API change: replace read of UNW_REG_HANDLER with
4768 unw_get_proc_info().
4769 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
4770 with unw_get_proc_info().
4771 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
4772 unw_get_proc_info().
e2b2fa1f 4773
9e81e868 47742003-03-27 Vladimir Makarov <vmakarov@redhat.com>
4775
4776 * config/rs6000/8540.md: Use presence_set instead of absence_set.
4777
691aa38a 47782003-03-26 Richard Henderson <rth@redhat.com>
4779
4780 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
4781
a7ea3b09 47822003-03-26 Roger Sayle <roger@eyesopen.com>
4783
4784 PR bootstrap/10051, PR bootstrap/10169.
4785 * mips-tfile.c (init_file): Don't provide a static initializer.
4786 (initialize_init_file): Initialize the contents of init_file.
4787 (add_file): Call initialize_init_file if not already initialized.
4788
c6103e4f 47892003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4790
4791 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
4792 registers used for global asm variables.
4793 (s390_frame_info, s390_arg_frame_offset): Likewise.
4794 (s390_emit_prologue, s390_emit_epilogue): Likewise.
4795
7c419400 47962003-03-26 Vladimir Makarov <vmakarov@redhat.com>
4797
295e387a 4798 * config/rs6000/8540.md: New file.
f65c89fb 4799
7c419400 4800 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
4801 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
4802 reservations for imul.
4803
4804 * config/rs6000/rs6000.md: Include 8540.md. Change
4805 delayed_compare onto mult_compare for insns generating
4806 multiplication.
4807 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
4808 New type attribute values.
4809
4810 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
4811 fpsimple instead of fp.
4812 (*divsf3_gpr): Use type vecfdiv instead of fp.
4813 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
4814 instead of vecfloat.
4815 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
4816 (spe_brinc): Use type brinc instead of veccomplex.
4817 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
4818 veccomplex.
4819 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
4820 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
4821 *movv2sf_internal): Define type attribute values for all
4822 alternatives.
4823 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
4824 of fpcompare.
4825 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
4826 instead of fpcompare.
f65c89fb 4827
6062116b 48282003-03-26 David Edelsohn <edelsohn@gnu.org>
4829
4830 * config/rs6000/power4.md: Allow delay between dispatch and
4831 function units for simple instructions. Correct store units.
4832 Allow branch to occupy as many dispatch slots as necessary.
4833
053129ba 48342003-03-26 Jakub Jelinek <jakub@redhat.com>
4835
4836 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
4837 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
4838 zero extend old to it.
4839 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
4840 operand.
4841
ab2a6bdb 48422003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
4843
4844 PR target/7784
4845 * reload.c (find_reloads_address): Handle
4846 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
4847 all base registers.
4848
efe410de 48492003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
4850
4851 PR other/10203
4852 * version.c: Reference the GCC web site in the URL.
4853
59e3c9d7 48542003-03-26 Alan Modra <amodra@bigpond.net.au>
4855
4856 * c-incpath.c (add_standard_paths): Add both "translated" and
4857 non-translated header paths.
4858
44f6214e 48592003-03-25 Loren James Rittle <ljrittle@acm.org>
4860
4861 * doc/install.texi (*-*-freebsd*): Update with known status.
4862
a82119e4 48632003-03-21 Jason Merrill <jason@redhat.com>
4864
4865 PR optimization/10171
4866 * unroll.c (unroll_loop): Don't delete the jump at the end unless
4867 we also delete a jump at the beginning.
4868
91bee29e 48692003-03-25 Stephane Carrez <stcarrez@nerim.fr>
4870
4871 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
4872 contributor.
4873
a6f58910 4874Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
4875
4876 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
4877 constants are not expensive.
4878
accd6c44 4879Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
4880
4881 PR opt/10056
4882 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
4883 jump jumping to the next instruction.
4884 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
4885
4ef42a77 48862003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4887
4888 * doc/passes.texi (Passes): Properly document that we do not
4889 perform jump2 any longer; remove command-line option -dJ.
4890
d5a39cea 48912003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
4892
4893 PR optimization/8746
4894 * config/i386/i386.md (and promoting splitters): Disable HImode to
4895 SImode promoting when the sign bit matters and is not preserved, or
4896 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
4897 for size.
4898
ce216427 48992003-03-24 Kazu Hirata <kazu@cs.umass.edu>
4900
4901 * config/h8300/h8300.md (a peephole2): Extend to support loads
4902 in QImode and HImode.
4903
4020013a 49042003-03-24 Stephane Carrez <stcarrez@nerim.fr>
4905
4906 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
4907 _return_far
4908 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
4909 (MULTILIB_EXCEPTIONS): Likewise.
4910 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
4911 by calling some board support routine.
4912 ("call_value"): Likewise.
4913 ("*return_void"): Likewise for return.
4914 ("*return_16bit"): Likewise.
4915 ("*return_32bit"): Likewise.
4916 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
4917 for 68HC11 too.
f65c89fb 4918 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
4020013a 4919 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
4920 -mlong-calls for 68HC11.
4921 * config/m68hc11/larith.asm (declare_near): New macro.
4922 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
4923 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
4924 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
4925 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
4926 (__mulhi32): Likewise.
4927 (ret): Update macro for 68HC11.
4928 (__far_trampoline): Implement for 68HC11.
4929 (__call_a16, __call_a32, __return_void, __return_16): New support
4930 routines for 68HC11 memory bank switching calling support.
4931 (__return_32): Likewise.
4932
d002cea8 49332003-03-24 Neil Booth <neil@daikokuya.co.uk>
4934
4935 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
4936
6978aac0 49372003-03-24 Janis Johnson <janis187@us.ibm.com>
4938
4939 * doc/install.texi (Testing): Mention test result links from build
4940 status pages.
4941
8cf377d7 49422003-03-24 Mark Mitchell <mark@codesourcery.com>
4943
4944 * function.c (put_var_into_stack): Change bool parameter to int.
4945 (gen_mem_addressof): Likewise.
4946 * rtl.h (gen_mem_addressof): Likewise.
4947 * tree.h (put_var_into_stack): Likewise.
4948 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
4949 gen_mem_addressof or put_var_into_stack.
4950 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
4951 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
4952
b16530d0 49532003-03-24 Kazu Hirata <kazu@cs.umass.edu>
4954
4955 * config/h8300/h8300.md (a peephole2): New.
4956
e5bb8cbf 49572003-03-24 Jakub Jelinek <jakub@redhat.com>
4958
4959 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
4960
cf8c2a35 49612003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4962
4963 * doc/contrib.texi (Contributors): Update Janis Johnson.
4964
692e0f79 49652003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
4966
4967 PR target/10072
4968 * combine.c (simplify_if_then_else): Check that the mode
4969 has MODE_INT class before applying the (OP Z (mult COND C2))
4970 transformation.
4971
0d5e981c 49722003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
4973
4974 PR optimization/9414
4975 * config/sparc/sparc.md (widening peepholes): Use
4976 widen_memory_access instead of change_address.
4977
be5097d8 49782003-03-23 Mark Mitchell <mark@codesourcery.com>
4979
4980 PR c++/7086
4981 * c-typeck.c (c_mark_addressable): Adjust calls to
4982 put_var_into_stack.
4983 * expr.c (expand_expr): Likewise.
4984 * function.c (put_var_into_stack): Add rescan parameter. Do not
4985 call fixup_var_refs when rescan is false.
4986 (gen_mem_addressof): Likewise.
4987 (assign_parms): Adjust calls to put_var_into_stack.
4988 (setjmp_protect): Likewise.
4989 (setjmp_protect_args): Likewise.
4990 * rtl.h (gen_mem_addressof): Change prototype.
4991 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
4992 * tree.h (put_var_into_stack): Change prototype.
4993
4ec25652 49942003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
4995
46326fbb 4996 PR middle-end/9967
4ec25652 4997 * builtins.c (expand_builtin_fputs): When optimizing for size,
4998 don't transform fputs into fwrite.
4999
cee280ef 50002003-03-23 Glen Nakamura <glen@imodulo.com>
5001
5002 PR c/8224
5003 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
5004 when signedness changes for division or modulus.
5005
8df677b5 50062003-03-24 Alan Modra <amodra@bigpond.net.au>
5007
5008 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
5009 globalize_label.
5010
187b562a 50112003-03-23 Roger Sayle <roger@eyesopen.com>
5012
5013 PR c/10178
5014 * stmt.c (expand_end_case_type): Check for overflow in range when
5015 determining whether to use a bit-test implementation.
5016
8583bf9c 50172003-03-23 Richard Henderson <rth@redhat.com>
5018
5019 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
5020 before flow2.
5021 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
5022
d3f1bef2 50232003-03-23 Richard Henderson <rth@redhat.com>
5024
5025 PR opt/10116
5026 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
5027 from then_bb or else_bb after flow2.
5028
96b74343 50292003-03-23 Zack Weinberg <zack@codesourcery.com>
5030
5031 * configure.in: Check whether it is necessary to link against
5032 libm to use ldexp.
5033 * configure: Regenerate.
5034 * Makefile.in: Add LDEXP_LIB substitution variable.
5035
1fec105c 50362003-03-23 Kazu Hirata <kazu@cs.umass.edu>
5037
5038 * config/h8300/h8300.md: Fix comment typos.
5039
38efba6c 50402003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5041
5042 * pa.c (output_cbranch): Fix typo in comment.
5043
fb812fed 50442003-03-22 Richard Henderson <rth@redhat.com>
5045
5046 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
5047 after reload.
5048
4a050cc7 50492003-03-22 DJ Delorie <dj at redhat dot com>,
5050 Bruce Korb <bkorb at gnu dot org>
5051
5052 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
5053 buggy Solaris 2.6 mutex/cond initializers.
5054 (solaris_mutex_init): Rename to solaris_mutex_init_2.
5055 * fixinc/fixincl.x: Regenerate.
5056 * fixinc/tests/base/pthread.h: Update.
3ae3426b 5057 * fixinc/fixincl.c(initialize): be explicit about the default case
5058 and indicate verbose level when being very, very verbose.
5059 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
4a050cc7 5060
e5c553e8 50612003-03-22 Andreas Jaeger <aj@suse.de>
5062
5063 * config/i386/i386.c (ix86_init_machine_status): Return value.
5064
ece0fa59 50652003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5066
5067 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
5068 conditional branch to the following instruction. Use next_real_insn
5069 instead of next_active_insn.
5070 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
5071 instead of next_active_insn.
5072
37793c2d 50732003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
5074
8df677b5 5075 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
5076 instead of 'm' constraint in forced-split alternatives.
37793c2d 5077 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
5078 VALIDATE_ADDRESS parameter to operand_subword.
5079
83e2d3b1 50802003-03-22 Kazu Hirata <kazu@cs.umass.edu>
5081
5082 * config/h8300/h8300.c (notice_update_cc): Correctly handle
5083 the case where the set destination is STRICT_LOW_PART.
5084
0bbfb2df 50852003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
5086
5087 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
5088 c30 instead of a c40 processor.
5089
1269aca3 50902003-03-22 Alan Modra <amodra@bigpond.net.au>
5091
5092 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
5093
e48d0f41 50942003-03-21 Zack Weinberg <zack@codesourcery.com>
5095
5096 * c-common.c: Include intl.h.
5097 (shadow_warning): Rewrite to allow better diagnostic translations.
5098 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
5099 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
5100 use it throughout.
5101 * Makefile.in (c-common.o): Add intl.h.
5102
b1cc82fe 51032003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
5104
737c5311 5105 * config.gcc: Remove 'float_format'.
5106
b1cc82fe 5107 * fixproto: Define NULL and size_t in generated stdlib.h and
5108 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
5109 Rearrange file generation loop for readability. Generate time.h,
5110 string.h if missing.
5111 * tsystem.h: Include <string.h>, <time.h> unconditionally.
5112 * config.gcc: Blow away POSIX defines.
5113
84e39e0e 51142003-03-22 Stephane Carrez <stcarrez@nerim.fr>
5115
5116 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
5117
251f9627 51182003-03-22 Stephane Carrez <stcarrez@nerim.fr>
5119
5120 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
5121 writing .interrupt command.
5122 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
5123 if it's a far or near function.
5124 ("call_value"): Likewise.
5125 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
5126 near attributes.
5127 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
5128 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
5129 (m68hc11_initial_elimination_offset): Set current_function_far
5130 according to attributes.
5131 (expand_prologue): Likewise.
5132 (trap_handler_symbol): New global to keep track of trap handlers.
5133 (m68hc11_encode_section_info): Mark symbol as far if needed; set
5134 trap symbol.
5135 (m68hc11_is_far_symbol): New function.
5136 (m68hc11_is_trap_symbol): New function.
5137 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
5138 (m68hc11_is_trap_symbol): Declare.
5139
96b74343 51402003-03-21 Jan Hubicka <jh@suse.cz>
fda56ed1 5141
5142 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
5143 only when amount of saved regs changed.
5144 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
5145 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
5146
96b74343 51472003-03-21 Jan Hubicka <jh@suse.cz>
dd79abfb 5148
5149 PR inline-asm/7916
5150 * function.c (instantiate_virtual_regs_lossage): New function.
5151 (instantiate_virtual_regs_1): Use it.
5152 (instantiate_virtual_regs): Do not continue in substition when insn has
5153 been deleted.
5154
e91bf119 51552003-03-21 Kazu Hirata <kazu@cs.umass.edu>
5156
5157 * combine.c (make_field_assignment): Fix a warning.
5158
bd4f2003 51592003-03-21 Kazu Hirata <kazu@cs.umass.edu>
5160
5161 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
5162
fd235bd7 51632003-03-21 Dale Johannesen <dalej@apple.com>
5164
5165 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
5166 priority for R2 on Darwin.
5167 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
5168
a63f1b8f 51692003-03-21 Kazu Hirata <kazu@cs.umass.edu>
5170
5171 * combine.c (make_field_assignment): Remove unnecessary AND
5172 when storing into zero_extract.
5173
ef936590 51742003-03-21 Zack Weinberg <zack@codesourcery.com>
5175
5176 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
5177 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
5178 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
5179 in comment.
5180
7f6007b4 51812003-03-21 DJ Delorie <dj@redhat.com>
5182
5183 * optabs.c (init_integral_libfuncs): Make sure we init at least up
5184 to "long long" size words.
5185
f553e2d1 51862003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5187
5188 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
5189 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
5190 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
5191
2e411f1f 51922003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5193
5194 PR doc-bug/9813
5195 * doc/extend.texi: Move misplaced paragraph about underscores in
5196 variables in macros.
5197
42c62f60 51982003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
ef936590 5199 Richard Henderson <rth@redhat.com>
42c62f60 5200
5201 PR optimization/8366
5202 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
5203 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
5204 PIC+SYMBOLIC_CONST in other modes than Pmode.
5205 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
5206 the form PIC+SYMBOLIC_CONST as mode dependent.
5207
9e1f4e74 52082003-03-21 DJ Delorie <dj@redhat.com>
5209
5210 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
5211 sure we always emit at least one insn.
5212
8728e49b 52132003-03-21 Christopher Faylor <cgf@redhat.com>
5214
5215 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
5216 stub t-cygming. Use common target header cygming.h. Add extra
5217 c_target_obj and cxx_target_obj file. Default cygwin to posix
5218 threading. Enforce i386 as float format.
5219 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
5220 Remove cygwin.h as target header. Use common target header
5221 cygming.h Enforce i386 as float format. Correct typo.
5222 * config/i386/cygming.h: New file, containing definitions
5223 common to mingw32 and cygwin.
5224 * config/i386/cygwin.h: Remove definitions common to cygwin and
5225 mingw. Simplify special spec logic. Define "wrappers" around
5226 certain include path defines to accommodate -mno-cygwin.
5227 Remove some #if 0'ed code.
ef936590 5228 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
8728e49b 5229 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
5230 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
5231 * config/i386/mingw32.h: Remove definitions common to cygwin and
5232 mingw.
5233 (EXTRA_OS_CPP_BUILTINS): Adjust.
5234 (TARGET_VERSION): Define.
5235 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
5236 mingw32.h definitions.
5237 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
5238 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
5239 Add compilation rules for cygwin1.o cygwin2.o.
5240 * config/i386/cygwin1.c: New file.
5241 * config/i386/cygwin2.c: New file.
5242 * config/i386/t-cygming: New makefile stub.
5243
3acc1f7f 52442003-03-20 Richard Henderson <rth@redhat.com>
5245
5246 * fold-const.c (extract_muldiv_1): Revert changing order of
5247 operands in case MULT_EXPR of 2003-02-16 patch.
5248
6e1553b4 52492003-03-20 Daniel Berlin <dberlin@dberlin.org>
2fcde217 5250 Merge changes from new-regalloc-branch
6e1553b4 5251
5252 From Michael Matz <matz@suse.de>
5253 * df.c (df_ref_record_1): Move init of loc to safe point.
5254 Only recurse on interesting things in parallels.
5255 Handle CLASS_CANNOT_CHANGE_MODE smarter.
5256 (df_uses_record): Ditto.
ef936590 5257
6e1553b4 5258 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
5259 it's already okay to use memory operands in (IE doesn't require
5260 adding another insn or anything).
5261
d262181e 52622003-03-20 Richard Henderson <rth@redhat.com>
5263
5264 PR middle-end/6348
5265 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
5266 different from word_mode.
5267
fe5feb6e 52682003-03-20 Kazu Hirata <kazu@cs.umass.edu>
5269
5270 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
5271 source operand to those that can be extracted with bld.
5272
2c96dc5a 52732003-03-20 Richard Earnshaw <rearnsha@arm.com>
5274
5275 PR 10066
5276 * arm.md (UNSPEC_PIC_BASE): New constant.
5277 (pic_add_dot_plus_four): Wrap with unspec.
5278 (pic_add_dot_plus_eight): Likewise.
5279
7028eb7f 52802003-03-20 Kazu Hirata <kazu@cs.umass.edu>
5281
5282 * config/h8300/h8300.md (*insv_si_1_n): New.
5283 (*insv_si_1_n_lshiftrt): Likewise.
5284
4b0b9adb 52852003-03-20 Roger Sayle <roger@eyesopen.com>
5286
5287 * fold-const.c (fold_mathfn_compare): New function to simplify
5288 comparisons against built-in math functions. Fold comparisons
5289 of sqrt against constants.
5290 (fold): Call fold_mathfn_compare when appropriate.
5291
286160a5 52922003-03-20 Richard Earnshaw <rearnsha@arm.com>
5293
5294 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
5295 information.
5296
e9f0d687 52972003-03-20 Per Bothner <pbothner@apple.com>
5298
5299 Various cleanups to help compile server.
5300
568139e4 5301 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
5302 and pass that to _cpp_init_hashtable.
5303 (cpp_read_main_file): Drop hash_table* argument; don't call
5304 _cpp_init_hashtable.
5305 * cpplib.h: Update declarations to match.
5306 * c-opts.c (c_common_init_options): Pass ident_hash to
5307 cpp_create_reader.
5308 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
5309 * fix-header.c (read_scan_file): Likewise pass NULL table to
5310 cpp_create_reader rather than cpp_read_main_file.
5311
5312 * cppfiles.c (cpp_rename_file): Generalized and renamed
5313 to cpp_change_file.
5314 * cpplib.h: Update declaration to match.
5315 * c-opts.c (push_command_line_line, finish_options): Change
5316 cpp_rename_file calls to cpp_change_file.
ef936590 5317
e9f0d687 5318 * line-map.c (add_line_map): Allow leaving the outermost file.
ef936590 5319 Allowing entering an outermost-file after the initial time.
e9f0d687 5320
5321 * toplev.c (pop_srcloc): Allow popping from initial file.
5322
161c8849 53232003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
5324
5325 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
5326
f80b00f1 53272003-03-20 Kazu Hirata <kazu@cs.umass.edu>
5328
5329 * config/h8300/h8300.md (a peephole2): New.
5330
73dc612c 53312003-03-20 Kazu Hirata <kazu@cs.umass.edu>
5332
5333 * config/h8300/h8300.md (*addsi3_and_r_1): New.
5334 (*addsi3_and_not_r_1): Likewise.
5335
aa73c668 53362003-03-19 Loren James Rittle <ljrittle@acm.org>
5337
5338 * Makefile.in (STRICT2_WARN): Add @WERROR@.
5339 (GCC_WARN_CFLAGS): Remove $(WERROR).
5340 (fixinc.sh-warn): New.
5341 * ada/Make-lang.in (ada-warn): Add $(WERROR).
5342 * cp/Make-lang.in (cp-warn): Add $(WERROR).
5343 * f/Make-lang.in (f-warn): Add $(WERROR).
5344 * java/Make-lang.in (java-warn): Add $(WERROR).
5345 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
5346
fb84380a 53472003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
5348
5349 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
5350 langhooks-def.h (lhd_tree_dump_dump_tree),
5351 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
5352 Change return type from 'int' to 'bool'. Replace 0 and 1 with
5353 true and false in return statements.
5354
65bdc57c 53552003-03-19 Kevin Buettner <kevinb@redhat.com>
5356
5357 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
5358 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
5359 DWARF_INITIAL_LENGTH_SIZE.
5360 (output_compilation_unit_header, output_pubnames, output_aranges)
5361 (output_line_info): Output 0xffffffff escape value for 64-bit
5362 DWARF extension.
5363 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
5364
094f9973 53652003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
990553d7 5366
5367 * config/s390/s390.c (s390_preferred_reload_class): Do not
5368 force constants to the pool unless necessary.
5369 (s390_decompose_address): Prefer to use pointer as base,
5370 not index register.
5371 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
5372 Q alternative.
ef936590 5373 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
990553d7 5374 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
5375 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
5376 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
5377 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
5378
96b74343 53792003-03-19 Jan Hubicka <jh@suse.cz>
4eda18af 5380
5381 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
5382 * i386.c (use_fast_prologue_epilogue): Remove.
5383 (ix86_frame): New field save_regs-using_mov;
5384 (ix86_compute_frame_layout): Decide on fast prologues;
5385 allocate saved registers in red zone.
5386 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
5387
968fd157 53882003-03-19 Nick Clifton <nickc@redhat.com>
5389
5390 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
5391
e9ec370e 53922003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5393
5394 PR 10062
5395 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
5396 * pa-protos.h (output_lbranch): New prototype.
5397 * pa.c (compute_frame_size): Change size of the frame marker on the
5398 64-bit ports to 48 bytes.
5399 (pa_output_function_prologue): Document why SAVE_SP is set.
5400 (hppa_expand_prologue): Save previous stack pointer into frame marker
5401 on targets which use the hpux unwind library.
5402 (output_cbranch): Use output_lbranch.
5403 (output_lbranch): New function to output long unconditional branches.
5404 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
5405 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
5406 64-bit ports.
5407 * pa.md (jump): Use output_lbranch.
5408 (allocate_stack): New expander for dynamic stack allocation.
5409
6d7ddaae 54102003-03-19 Alan Modra <amodra@bigpond.net.au>
5411
b2be3228 5412 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
5413 when debugging on XCOFF targets. Delete "abi" temp.
5414
6d7ddaae 5415 PR target/10073
5416 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
5417
03c118d5 54182003-03-18 Jakub Jelinek <jakub@redhat.com>
5419
5420 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
5421 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
5422 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
5423
5424 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
5425 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
5426 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
5427
acfcaf8d 54282003-03-18 Geoffrey Keating <geoffk@apple.com>
5429
3a32429b 5430 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
5431 the result of machopic_function_base_name.
5432 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
5433 string rather than a static array.
5434
acfcaf8d 5435 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
5436
5437 * gengtype.c: Include rtl.h.
5438 (enum rtx_code): Don't define.
5439 (rtx_format): Make declaration match rtl.h.
5440 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
5441 users.
5442 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
5443 * Makefile.in (gengtype.o): Update dependencies.
5444
a1d82d3a 54452003-03-18 Andreas Schwab <schwab@suse.de>
5446
5447 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
5448 martin@blom.org.
5449
932be6ca 54502003-03-18 Geoffrey Keating <geoffk@apple.com>
5451
177c2ebc 5452 * function.c (next_block_index): Mark with GTY.
5453
932be6ca 5454 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
5455
8bc66e4d 54562003-03-18 Richard Henderson <rth@redhat.com>
5457
5458 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
5459 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
5460 until after reload.
5461
efb070c8 54622003-03-18 Richard Henderson <rth@redhat.com>
5463
5464 * builtins.c (expand_builtin_unop): New target_mode operand;
5465 use it to convert the result to the correct mode.
5466 (expand_builtin): Update all callers.
5467
4ed24ec6 54682003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
5469
5470 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
5471
96b74343 54722003-03-18 Jan Hubicka <jh@suse.cz>
6285298a 5473
a7a67c7f 5474 * i386.md: Fix previous commit that mistakely applied the patch
5475 twice.
5476
6285298a 5477 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
5478 canonicalized.
5479 (memrefs_conflict_p): Likewise.
5480 (addr_side_effect_eval): Canonicalize the constructed address.
5481
96b74343 54822003-03-18 Jan Hubicka <jh@suse.cz>
8cccd283 5483
5484 * i386.md (cvtts?2si peep2): New.
5485
27848d5f 54862003-03-18 Kazu Hirata <kazu@cs.umass.edu>
5487
5488 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
5489
47a9ecd1 54902003-03-18 Andreas Schwab <schwab@suse.de>
5491
5492 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
5493 for format.
5494
dbdac186 54952003-03-17 Jason Merrill <jason@redhat.com>
5496
5497 PR c++/10091
5498 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
5499 an unaligned member of TREE_ADDRESSABLE type.
5500
3c6669f7 55012003-03-18 Alan Modra <amodra@bigpond.net.au>
5502
5503 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
5504 (TARGET_PROFILE_KERNEL): Define.
5505 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
5506 (PROFILE_BEFORE_PROLOGUE): Don't define.
5507 (PROFILE_KERNEL): Remove hacks.
5508 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
5509 (rs6000_stack_info): No need to save lr if just for profiling when
1269aca3 5510 TARGET_PROFILE_KERNEL.
5511 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
3c6669f7 5512 (output_function_profiler): Localize label generation. Emit code
5513 for kernel profiling.
5514
e33ecec3 55152003-03-17 Kazu Hirata <kazu@cs.umass.edu>
5516
5517 * config/h8300/h8300-protos.h: Add a prototype for
5518 byte_accesses_mergeable_p.
5519 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
5520 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
5521 (a splitter): Likewise.
5522 (*iorsi3_ashift_16_ashift_24): Likewise.
5523 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
5524
06df7294 55252003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5526
5527 * dwarf2asm.h: Delete obsolete comment.
5528 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
5529 dw2_asm_output_pcrel, dw2_asm_output_addr,
5530 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
5531 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
5532 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
5533 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
5534
4124ea8b 55352003-03-17 Zack Weinberg <zack@codesourcery.com>
5536
5537 * c-tree.h (struct lang_identifier): Remove error_locus field.
5538 (IDENTIFIER_ERROR_LOCUS): Kill.
5539 (record_function_scope_shadow): New prototype.
5540 * c-typeck.c (build_external_ref): Don't complain if
5541 decl is error_mark_node. When not at file scope, bind the
5542 decl's local value to error_mark_node to suppress further
5543 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
5544
5545 * c-decl.c (get_function_binding_level): New static function.
5546 (record_function_scope_shadow): New exported function.
5547 (c_make_fname_decl): Use get_function_binding_level.
5548
9eea2fcb 55492003-03-17 Steve Ellcey <sje@cup.hp.com>
5550
5551 * stmt.c (tail_recursion_args): Call promote_mode to set
5552 unsignedp flag correctly before calling convert_move.
5553
a6508931 55542003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5555
5556 * loop-unroll.c (decide_peel_completely,
5557 decide_unroll_constant_iterations, decide_unroll_stupid,
5558 decide_unroll_runtime_iterations, decide_peel_simple): Set
5559 loop->has_desc.
5560
96b74343 55612003-03-17 Jan Hubicka <jh@suse.cz>
6d05ae35 5562
5563 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
5564
ba133423 55652003-03-17 Olivier Hainque <hainque@act-europe.fr>
5566
5567 * function.c (assign_parms): For a struct value address passed as
5568 first argument, delay the function's result RTL setup code until
5569 after the emission of parameter conversions.
4124ea8b 5570
af8939f3 55712003-03-17 Dave Love <fx@gnu.org>
5572 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7df52467 5573
5574 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
5575 __arch64__ to match Compaq cc.
5576
65a6d98c 55772003-03-17 Neil Booth <neil@daikokuya.co.uk>
5578
5579 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
5580 (c_common_init): Set EBCDIC in cpp options.
5581 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
5582 not conditional compilation.
5583 * cpplib.h (struct cpp_options): New entry EBCDIC.
5584
3289939f 55852003-03-17 Neil Booth <neil@daikokuya.co.uk>
5586
5587 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
5588
0f51462d 55892003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5590
5591 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
5592 argument to 0 for redirect_jump.
0f51462d 5593
0d3f1801 55942003-03-16 Mark Mitchell <mark@codesourcery.com>
5595
5596 PR c++/8805
5597 * except.c (eh_region_u_cleanup): Add prev_try.
5598 (expand_eh_region_end_cleanup): Set it.
5599 (reachable_handlers): Use it to skip over cleanup blocks.
5600
4faea04b 56012003-03-17 Andreas Jaeger <aj@suse.de>
5602
5603 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
5604
3b6e6f93 56052003-03-17 Alan Modra <amodra@bigpond.net.au>
5606
5607 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
5608 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
5609 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
5610 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
5611
7b5a33a4 56122003-03-16 Richard Henderson <rth@redhat.com>
5613
4124ea8b 5614 * simplify-rtx (simplify_binary_operation): Don't abort for
5615 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
7b5a33a4 5616
f09543b5 56172003-03-16 Richard Henderson <rth@redhat.com>
5618
4124ea8b 5619 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
5620 optimize_size as well.
f09543b5 5621
0d468859 56222003-03-16 Stephane Carrez <stcarrez@nerim.fr>
5623
5624 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
5625 for D register to specify the low part of it, aka B.
5626 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
5627 the register if we are loading 1 or -1 to it; avoid using temp
5628 register when moving X/Y to Y/X.
5629 (m68hc11_gen_movqi): Likewise.
5630 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
5631
82acca05 56322003-03-14 Mark Mitchell <mark@codesourcery.com>
5633
5634 PR optimization/9016
5635 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
5636 into the constant pool.
5637
6cf10752 56382003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5639
5640 PR target/9164
5641 * tree.c (get_narrower): For extensions with unchanged bit number,
5642 return the unsignedness of the outer mode.
5643
04416275 56442003-03-16 Roger Sayle <roger@eyesopen.com>
5645
5646 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
5647 to avoid "may be used uninitialized" warning on ia64-hpux.
5648 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
5649
7dd06f75 56502003-03-16 Andreas Jaeger <aj@suse.de>
5651
5652 * configure.in: Improve check for memcheck.h.
5653 * configure: Regenerated.
5654
9896a114 56552003-03-16 Neil Booth <neil@daikokuya.co.uk>
5656
5657 * doc/cppopts.texi: Remove documentation of -A-.
5658
8e5a4831 56592003-03-15 Zack Weinberg <zack@codesourcery.com>
5660
5661 * doc/libgcc.texi: Remove @tie.
5662
cda612f5 56632003-03-15 Josef Zlomek <zlomekj@suse.cz>
5664
5665 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
5666 (rtx_pair): Added new element update_label_nuses, renamed to
5667 replace_label_data.
5668 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
5669 replace_label_data instead of rtx_pair.
5670 * loop.c (load_mems): Likewise.
5671 * rtlanal.c (replace_label): Replace label in pool constants and in
5672 INSN_LIST (in REG_LABEL note).
5673 (subrtx_p): Renamed to rtx_referenced_p.
5674 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
5675 LABEL_REF with CODE_LABEL, traverse constants from pool.
5676
0653bda3 56772003-03-15 Aldy Hernandez <aldyh@redhat.com>
5678 Zack Weinberg <zack@codesourcery.com>
5679
5680 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
5681 * doc/libgcc.texi: New file.
5682 * doc/interface.texi: Delete paragraph about libgcc interface.
5683 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
5684
e883780d 56852003-03-15 Jason Merrill <jason@redhat.com>
5686
0fd8641b 5687 PR debug/9039
5688 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
5689
e883780d 5690 PR debug/6387
5691 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
5692 function DIEs at toplevel.
5693 (decls_for_scope): At -g1, don't descend into subblocks.
5694
74b11014 56952003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5696
5697 * varasm.c (struct rtx_const): Change type of un.addr member
5698 to struct holding an additional 'symbol' member.
5699 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
5700 with equal string addresses as equal.
5701 (simplify_subtraction): Adapt to struct rtx_const change.
5702
da17ae26 57032003-03-15 Neil Booth <neil@daikokuya.co.uk>
5704
5705 * fix-header.c (read_scan_file): Read main file before handling -D.
5706
ea0041f4 57072003-03-15 Roger Sayle <roger@eyesopen.com>
5708
5709 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
5710 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
5711 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
5712 (find_sub_basic_blocks): Likewise.
5713 * cgraphunit.c (cgraph_expand_functions): Likewise.
5714 * dwarf2out.c (prune_unused_types): Likewise.
5715 * expr.c (store_field): Likewise.
5716 * genextract.c (print_path): Likewise.
5717 * haifa-sched.c (schedule_insn): Likewise.
5718 * lcm.c (compute_antinout_edge): Likewise.
5719 * loop-unroll.c (decide_peel_once_rolling): Likewise.
5720 * ra-colorize.c (ra_colorize_free_all): Likewise.
5721 * ra-debug.c (dump_igraph): Likewise.
5722 (debug_hard_reg_set): Likewise.
5723 * reg-stack.c (reg_to_stack): Likewise.
5724 * rtlanal.c (refers_to_regno_p): Likewise.
5725 * tracer.c (layout_superblocks): Likewise.
5726
6a4c129f 57272003-03-15 Neil Booth <neil@daikokuya.co.uk>
5728
5729 * fix-header.c (read_scan_file): Fix thinko.
5730
fb780c4e 57312003-03-15 Glen Nakamura <glen@imodulo.com>
5732
5733 * reload1.c (choose_reload_regs): Use && instead of ||
5734 with REG_CANNOT_CHANGE_MODE_P condition.
5735
fc3c7720 57362003-03-15 Neil Booth <neil@daikokuya.co.uk>
5737
5738 * Makefile.in: Update.
5739 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
5740 * c-lex.c (init_c_lex): Register builtins hook is dead.
5741 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
5742 (c_common_decode_option): Don't call cpp_handle_option.
5743 Handle -A, -D and -U.
5744 (handle_deferred_opts): Simplify.
5745 (finish_options): Define builtins and command line macros.
5746 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
5747 * cppinit.c: Don't include intl.h.
5748 (init_builtins): Rename cpp_init_builtins. No hook to call.
5749 (init_library): Don't need to sort options.
5750 (cpp_create_reader): Don't set pending.
5751 (cpp_destroy): Don't free pending.
5752 (struct pending_option, cl_directive_handler, struct cpp_pending,
5753 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
5754 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
5755 cl_options, cpp_handle_option): Remove.
5756 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
5757 cpp_finish_options): Remove.
5758 (cpp_init_builtins): New.
5759 * fix-header.c (read_scan_file): Update to handle -D. Fix
5760 handling of -I. Replace call to cpp_finish_options.
5761
fc308e43 57622003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5763
5764 PR optimization/9387
5765 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
5766 for conditional returns.
5767
c55e96a8 57682003-03-14 Jason Merrill <jason@redhat.com>
5769
5770 PR optimization/6871
5771 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
5772
d41b6698 57732003-03-14 Neil Booth <neil@daikokuya.co.uk>
5774
5775 * c-opts.c (finish_options): New.
5776 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
5777 (missing_arg): Handle OPT_include and OPT_imacros.
5778 (c_common_init, c_common_parse_file): Use finish_options.
5779 (handle_deferred_opts): Update.
5780 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
5781 (cpp_finish_options): Don't handle -imacros here.
5782 (no_fil): Remove.
5783 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
5784
a5c97c4a 57852003-03-14 Jakub Jelinek <jakub@redhat.com>
5786
5787 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
5788 rs6000_maybe_dead if !fromprolog.
5789
b717e161 57902003-03-14 Neil Booth <neil@daikokuya.co.uk>
5791
5792 * Makefile.in: Update.
5793 * c-common.h (fe_file_change, pp_file_change): New.
5794 * c-lex.c (init_c_lex): Don't set cb_file_change.
5795 (c_common_parse_file): Move to c-opts.c.
5796 (cb_file_change): Rename fe_file_change.
5797 * c-opts.c: Include debug.h.
5798 (warn_unused_macros, include_cursor): New.
5799 (push_command_line_include, cb_file_change): New.
5800 (COMMAND_LINE_OPTIONS): Handle -include.
5801 (c_common_decode_option): Use local warn_unused_macros.
5802 Handle OPT_include.
5803 (c_common_post_options): Set file change callback.
5804 (handle_deferred_opts): Skip -include. Don't free the array.
5805 (c_common_init): Call cpp_finish_options here, and push an
5806 initial -include file.
5807 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
5808 (preprocess_file): Don't call cpp_finish_options.
5809 (init_pp_output): Don't set the file change callback.
5810 (pp_file_change): Return if no line commands or no output.
5811 * cpphash.h (next_include_file, first_unused_line): Remove.
5812 * cppinit.c (include_head, include_tail): Remove.
5813 (cpp_destroy): Don't free -include chain.
5814 (cpp_finish_options): Don't handle -include, or worry about
5815 -Wunused-macros.
5816 (_cpp_maybe_push_include_file): Remove.
5817 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
5818 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
5819 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
5820 Used flag is set based upon the state of the warn_unused_macros
5821 flag, and so use of first_unused_line is unnecessary.
5822
96b74343 58232003-03-13 Jan Hubicka <jh@suse.cz>
53fffe66 5824
5825 * cselib.c (clear_table): Do not take argument; always clear just
5826 used slots.
5827 (cselib_process_insn): Update call of clear_table
5828 (cselib_init): Do not call clear_table.
5829 (cselib_finish): Clear table.
5830
5831 * cse.c (count_reg_usage): Do not check side_effects_p.
5832 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
5833 like noop.
5834 (find_reg_equal_equiv_note): Do not use find_reg_note.
5835
4310aa50 58362003-03-14 Richard Henderson <rth@redhat.com>
5837
5838 PR target/9700
fb780c4e 5839 * config/alpha/alpha.c (alpha_va_start): Account for
4310aa50 5840 current_function_pretend_args_size in the AP offset.
5841
5842 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
5843 (INITIAL_ELIMINATION_OFFSET): Move out of line.
5844 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
5845 (alpha_initial_elimination_offset) New.
5846 * config/alpha/alpha-protos.h: Update.
5847
194dd2f9 58482003-03-14 Jakub Jelinek <jakub@redhat.com>
5849
5850 * stmt.c (expand_start_case): Call emit_queue ().
5851
4310aa50 58522003-03-14 Chris Demetriou <cgd@broadcom.com>
5853 Alexandre Oliva <aoliva@redhat.com>
85d55e18 5854
5855 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
5856 words in new abis.
5857
43462ec3 58582003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
5859
5860 PR optimization/8396
5861 * tree-inline.c (initialize_inlined_parameters): Make sure the value
5862 of read-only constant arguments is passed with the right type.
5863
20a69fd5 58642003-03-14 Steven Bosscher <steven@gcc.gnu.org>
5865
5866 * doc/extend.texi (Function Names): Make the example compilable.
5867
0c40a8ba 58682003-03-13 David Edelsohn <edelsohn@gnu.org>
5869
5870 * config/rs6000/rs6000.c (processor_target_table): Really allow
5871 GP optional instructions on Power4.
5872
58732003-03-13 Roger Sayle <roger@eyesopen.com>
7a24815f 5874
5875 * calls.c (flags_from_decl_or_type): Factor and remove redundant
5876 conditional tests.
5877
76e1b933 58782003-03-13 Mike Stump <mrs@apple.com>
5879
5880 * ggc-page.c (struct page_entry): Remove varray.h header.
5881 Add index_by_depth field.
5882 Remove save_in_use_p field.
5883 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
5884 by_depth_max, by_depth, and save_in_use fields.
5885 (INITIAL_PTE_COUNT): Add.
5886 (save_in_use_p_i): Add.
5887 (save_in_use_p): Add.
5888 (adjust_depth): Add.
5889 (move_ptes_to_front): Add.
5890 (push_depth): Add.
5891 (push_by_depth): Add.
5892 (prefetch): Add.
5893 (free_page): Add support for and use faster data structures.
5894 (ggc_alloc): Likewise.
5895 (init_ggc): Likewise.
5896 (ggc_recalculate_in_use_p): Likewise.
5897 (ggc_pop_context): Likewise.
5898 (clear_marks): Likewise.
5899 (ggc_pch_read): Likewise.
5900 * Makefile.in (ggc-page.o): Remove varray.h.
5901
73f45a5c 59022003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
5903
6883a8e2 5904 * ChangeLog: Rotated last year's entries to...
5905 * ChangeLog.8: New.
5906
fb780c4e 5907 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
73f45a5c 5908 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
5909 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
5910 config/ia64/ia64-protos.h, config/ia64/ia64.c,
5911 config/ia64/ia64.h, config/ia64/ia64.md,
5912 config/ia64/itanium1.md, config/ia64/itanium2.md,
5913 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
5914 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
5915
89ff5f50 59162003-03-13 Aldy Hernandez <aldyh@redhat.com>
5917
0653bda3 5918 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
5919 Differentiate endianness.
5920 (s6000_override_options): Use cpu type instead of TARGET_SPE.
89ff5f50 5921
d925f762 59222003-03-13 Nick Clifton <nickc@redhat.com>
5923
f29bf0d0 5924 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
0653bda3 5925 LDM instructions with writeback enabled.
5926 (output_return_instruction): Likewise.
f29bf0d0 5927
d925f762 5928 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
5929 (CALL_USED_REGISTERS): Remove definition.
5930 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
5931
39e773a8 59322003-03-13 Alan Modra <amodra@bigpond.net.au>
5933
5934 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
5935 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
5936 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
5937 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
5938 (rs6000_legitimize_address): Formatting.
5939 (rs6000_emit_move): Likewise.
5940 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
5941 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
5942 (rs6000_elf_select_section): Comment reason for shlib being
5943 set for ABI_AIX.
5944 (rs6000_elf_unique_section): Likewise.
5945 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
5946 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
5947 as well as flag_pic.
5948 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5949 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5950 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
5951
e13693ec 59522003-03-13 Richard Henderson <rth@redhat.com>
5953
5954 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
5955
5956 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
5957 (ia64_gp_save_reg): Remove.
5958 (struct ia64_frame_info): Move to the beginning of the file;
5959 add reg_save_gp.
5960 (ia64_expand_call): Rearrange for new call patterns.
5961 (ia64_reload_gp): New.
5962 (ia64_split_call): New.
5963 (ia64_compute_frame_size): Allocate reg_save_gp.
5964 (ia64_expand_prologue): Save reg_save_gp.
5965 (ia64_expand_epilogue): Don't restore gp.
5966 (ia64_hard_regno_rename_ok): Remove R4 hack.
5967 (ia64_function_ok_for_sibcall): New.
fb780c4e 5968 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
e13693ec 5969 call try_split on sibcall pattern.
5970 * config/ia64/ia64-protos.h: Update.
5971 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
5972 Rename from nopic versions. Confiscate 2nd argument to call as
5973 a marker.
5974 (call_pic, call_value_pic, sibcall_pic): Remove.
5975 (call_gp, call_value_gp, sibcall_gp): New.
5976 (builtin_setjmp_setup): Remove.
5977 (builtin_setjmp_receiver): Call ia64_reload_gp.
5978
67234554 59792003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
5980
fb780c4e 5981 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
a7526385 5982 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
5983 "GNU CC" with "GCC".
5984
fa3fa444 5985 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
5986 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
5987 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
5988 GCC, not GNU CC.
5989
4642865b 5990 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
5991 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
5992
5a8b6e6a 5993 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
5994 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
5995 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
5996 "GNU CC" with "GCC".
5997
b5b835e5 5998 * config/v850/lib1funcs.asm, config/v850/rtems.h,
5999 config/v850/v850-c.c, config/v850/v850-protos.h,
6000 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
6001 GCC, not GNU CC.
6002
67234554 6003 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
6004 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
6005 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
6006 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
6007 GNU CC.
6008
2cbb0000 60092003-03-12 Benjamin Kosnik <bkoz@redhat.com>
6010
6011 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
6012
bc53ba74 60132003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
6014
77b355a0 6015 * fixinc/fixinc.interix: Remove dead code (most of it).
6016 * fixinc/fixinc.dgux: Remove.
6017
bc53ba74 6018 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
6019 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
6020
066397a3 60212003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6022
6023 * pa.c (pa_init_builtins): Fix warning.
6024
675bce91 60252003-03-12 Steve Ellcey <sje@cup.hp.com>
6026
6027 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
6028 (ASM_OUTPUT_XDATA_SHORT): Remove.
6029 (ASM_OUTPUT_XDATA_INT): Remove.
6030 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
6031 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
6032 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
6033 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
6034
824638f9 60352003-03-12 Andrew Lewycky <andrew@mxc.ca>
6036
6037 PR c++/7050
6038 * expr.c (store_expr): Don't attempt to store void-typed trees,
6039 just evaluate them for side effects.
6040
9e36e267 60412003-03-12 Neil Booth <neil@daikokuya.co.uk>
6042
6043 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
6044 * cppinit.c (push_include): Move with changes to cppfiles.c.
6045 (cpp_read_main_file): Mark named operators here...
6046 (cpp_finish_options): ...not here. Update.
6047 (_cpp_maybe_push_include_file): Update.
6048 * cpplib.h (cpp_push_include, cpp_rename_file): New.
6049
667fe30b 60502003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
6051
824638f9 6052 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
6053 _gcc_COMPUTE_GAS_VERSION.
6054 * configure.in: Use them.
6055 * configure: Regenerate.
667fe30b 6056
cdc17ff2 60572003-03-12 Bob Wilson <bob.wilson@acm.org>
6058
0653bda3 6059 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
cdc17ff2 6060 to detect carry.
0653bda3 6061 (subdi3): Reorder emitted instructions.
cdc17ff2 6062
dd55b13f 60632003-03-12 Andreas Jaeger <aj@suse.de>
6064
6065 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
6066 NETBSD_OS_CPP_BUILTINS_LP64.
6067
966842d4 60682003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
6069
6070 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
6071 Rearrange. Reorganize.
6072 * configure.in: Rearrange.
6073 * configure: Regenerate.
6074
143937e1 60752003-03-12 Andreas Jaeger <aj@suse.de>
6076
0653bda3 6077 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
6078 LP64 targets.
143937e1 6079
0653bda3 6080 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
6081 _LP64.
143937e1 6082
0653bda3 6083 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
6084 _LP64 macros here.
6085 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
143937e1 6086
0653bda3 6087 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
6088 NETBSD_OS_CPP_BUILTINS_LP64.
6089 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
6090 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
143937e1 6091
0653bda3 6092 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
143937e1 6093
96b74343 60942003-03-12 Jan Hubicka <jh@suse.cz>
aee5d381 6095
6096 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
6097
f08beca9 60982003-03-12 Daniel Jacobowitz <drow@mvista.com>
5ed37c67 6099
6100 Fix PR target/9797 and PR c/9853.
6101 * stmt.c (expand_decl_init): Call push_temp_slots () and
6102 pop_temp_slots ().
6103
96b74343 61042003-03-12 J"orn Rennecke <joern.rennecke@superh.com>
c83ee613 6105
6106 * sh.c: Include basic-block.h.
6107 (sh_output_mi_thunk, emit_load_ptr): New functions.
6108 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
6109
09c733bb 61102003-03-12 Nick Clifton <nickc@redhat.com>
6111
6112 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
6113 (CALL_USED_REGISTERS): Likewise.
6114 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
6115 describing how this value is calculated.
6116
c1b9d008 61172003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
6118
6119 * configure.in (rlim_t): Define to long if no valid definition
6120 found in sys/resource.h.
6121 * config.in, configure: Regenerate.
6122
61964d1e 61232003-03-12 Neil Booth <neil@daikokuya.co.uk>
6124
6125 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
6126 TARGET_OS_CPP_BUILTINS.
6127 * config/mcore/mcore-pe.h: Similarly.
6128 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
6129 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
6130
d8be52c7 61312003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
6132
6133 PR c/9928
6134 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
6135 only if it is a VAR_DECL.
6136
96995faf 61372003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
6138
6139 PR optimization/9888
6140 * config/i386/i386.md (jcc_1): Fix range.
6141 (jcc_2): Likewise.
6142 (jump): LIkewise.
6143 (doloop_end_internal): Likewise.
6144
30b342c6 61452003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
fb780c4e 6146
30b342c6 6147 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
6148 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
6149 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
6150 DLL_IMPORT_EXPORT_PREFIX and "i."
6151 (i386_pe_dllexport_name_p): Here.
6152 (i386_pe_dllimport_name_p): Here.
0653bda3 6153 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
30b342c6 6154 not 9 chars when getting identifier name.
6155 (i386_pe_mark_dllimport): Here.
6156 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
6157 not 9 chars when getting identifier name. Correct comment.
6158 (i386_pe_strip_name_encoding): Here. Add comments for different
6159 cases.
6160 (gen_fastcall_suffix): Break down xmalloc() argument to
6161 components.
6162 (gen_stdcall_suffix): Likewise.
6163 Update copyright year.
6164
34c9d240 61652003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
6166
6167 PR optimization/9888
6168 * config/i386/i386.md (movsi_1): Remove special alternatives
6169 for %eax register.
6170 (movsi_1_nointernunit): Likewise.
6171 (movhi_1): Likewise.
6172 * config/i386/i386.c (memory_address_length): Do not use
6173 short displacement when there is no base.
6174 (ix86_attr_length_address_default): Handle LEA instructions.
6175
7226cebd 61762003-03-12 Neil Booth <neil@daikokuya.co.uk>
6177
6178 * c-cppbuiltin.c (builtin_define_std): Make non-static.
6179
78fb562b 61802003-03-11 Loren James Rittle <ljrittle@acm.org>
6181
6182 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
6183 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
6184 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
6185 * config/freebsd.h (CPP_PREDEFINES): Remove.
6186 (TARGET_OS_CPP_BUILTINS): New.
6187 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
6188 instead of TARGET_OS_CPP_BUILTINS.
6189 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
6190
6d0a63b4 61912003-03-11 Geoffrey Keating <geoffk@apple.com>
6192
6193 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
6194
e252e1bc 61952003-03-11 Aldy Hernandez <aldyh@redhat.com>
6196
0653bda3 6197 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
6198 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
e252e1bc 6199
0653bda3 6200 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
e252e1bc 6201
96b74343 62022003-03-11 Alexandre Oliva <aoliva@redhat.com>
d7fa254c 6203
6204 * toplev.c (independent_decode_option): Return success for --help,
6205 --target-help and --version.
6206
96b74343 62072003-03-11 Alexandre Oliva <aoliva@redhat.com>
71ed59f5 6208
6209 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
6210 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
6211 specified.
6212 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
6213 DRIVER_SELF_SPECS.
6214 (LINK_SPEC): Let endian options affect the linker emulation name.
6215
96b74343 62162003-03-11 J"orn Rennecke <joern.rennecke@superh.com>
bed38986 6217
6218 * sh.md (reload_inqi): Fix mode for source in second set.
6219
96b74343 62202003-03-11 Jan Hubicka <jh@suse.cz>
bb5b3af8 6221
6222 * cselib.c (cselib_invalidate_mem_1): Move too ...
6223 (cselib_invalidate_mem): ... here; use new list
6224 (dummy_val, first_containing_mem): New static variables.
6225 (clear_table): Initialize first_containing_mem.
6226 (discard_useless_values): Compact the containing_mem list.
6227 (add_mem_for_addr): Add to the list.
6228 * cselib.h (cselib_val): Add next_containing_mem.
6229
6e1f8d16 62302003-03-11 Aldy Hernandez <aldyh@redhat.com>
6231
0653bda3 6232 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
6233 instructions for e500.
6e1f8d16 6234
082b852a 62352003-03-11 Neil Booth <neil@daikokuya.co.uk>
6236
6237 * Makefile.in: Update.
6238 * c-cppbuiltin.c: Include tm_p.h.
6239
e92aec9e 62402003-03-11 Aldy Hernandez <aldyh@redhat.com>
6241
0653bda3 6242 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
e92aec9e 6243
0653bda3 6244 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
6245 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
6246 (_Unwind_SetGR): Same.
6247 (_Unwind_GetGRPtr): New.
6248 (_Unwind_SetGRPtr): New.
6249 (uw_update_context_1): Use accesor functions instead of accessing
6250 context->reg[] directly.
6251 (uw_install_context_1): Same.
6252 (execute_cfa_program): Same.
6253 (__frame_state_for): Same.
e92aec9e 6254
0653bda3 6255 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
6256 the synthetic register offset.
e92aec9e 6257
0653bda3 6258 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
e92aec9e 6259
529825bd 62602003-03-11 Hans-Peter Nilsson <hp@axis.com>
6261
6262 * config/cris/cris.md: Remove lingering EGCS reference.
6263 ("*extopqihi_side_biap"): For HI operation, match
6264 cris_additive_operand_extend_operator, not
6265 cris_operand_extend_operator. Adjust condition.
6266 ("*extopqihi_side", "*extopqihi"): Ditto.
6267 ("*extopqisi_side_biap"): Correct operand numbers in condition.
6268 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
6269 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
6270 ("*extophisi_swap"): Ditto.
6271 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
6272 PLUS, not cris_operand_extend_operator. Adjust condition and
6273 output template.
6274 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
6275 * config/cris/cris.h (PREDICATE_CODES): Add
6276 cris_additive_operand_extend_operator.
6277 * config/cris/cris.c (cris_additive_operand_extend_operator):
6278 New predicate.
6279
b69139c7 62802003-03-11 Hartmut Penner <hpenner@de.ibm.com>
6281
6282 * df.c (read_modify_subreg_p): Change from static to global.
6283 * df.h (read_modify_subreg_p): Add prototype.
6284 * sched-deps.c (sched_analyze_1): Generate true dependency for
fb780c4e 6285 strict_low_part, certain subregs and zero/sign_extract.
b69139c7 6286
fd6f6435 62872003-03-11 Neil Booth <neil@daikokuya.co.uk>
6288
6289 * Makefile.in: Update.
6290 * c-common.c: Don't include real.h or except.h.
6291 (REGISTER_PREFIX): Remove.
6292 (builtin_define_std, builtin_define_with_value,
6293 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
6294 builtin_define_type_max, builtin_define_type_precision,
6295 builtin_define_float_constants): Move to c-cppbuiltin.c.
6296 (c_stddef_cpp_builtins): New.
6297 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
6298 * c-cppbuiltin.c: New, extracted from c-common.c.
6299 (define__GNUC__): New.
6300 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
6301 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
6302 (cpp_unique_options): Don't support no-gcc.
6303 (do_spec_1): Remove support of version specs.
6304 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
6305 * doc/passes.texi: Update.
6306 * doc/tm.texi: Update.
6307
a4920475 63082003-03-10 Aldy Hernandez <aldyh@redhat.com>
6309
0653bda3 6310 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
a4920475 6311
8f74ae7b 63122003-03-10 Andrew Pinski <apinski@apple.com>
6313
6314 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
6315 is on should not get here.
6316 (machopic_indirect_data_reference): If dynamic-no-pic is on just
6317 generate high/low parts of the address.
6318 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
6319 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
6320 symbol and labels with a new reg. Dynamic-no-pic does not have a
6321 pic_offset_table_rtx.
6322 (machopic_select_section): Change references of flag_pic to
fb780c4e 6323 MACHOPIC_INDIRECT.
8f74ae7b 6324 (machopic_asm_out_destructor): Likewise.
6325 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
6326 reference of flag_pic to MACHOPIC_INDIRECT.
6327 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
6328 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
6329 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
6330 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
6331 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
6332 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
6333 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
6334 (TARGET_DYNAMIC_NO_PIC): Define.
6335 (SUBTARGET_SWITCHES): Define, have sub-target switches for
fb780c4e 6336 dynamic-no-pic.
8f74ae7b 6337 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
6338 rs6000_override_options to here. Dynamic-no-pic overrides
6339 pic.
6340 (CC1_SPEC): Change from not static then pic to not static and not
6341 dynamic-no-pic then pic.
6342 * config/rs6000/rs6000.c (rs6000_override_options): Move the
6343 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
6344 (rs6000_legitimize_reload_address): Add case for loading floating in
6345 dynamic-no-pic.
6346 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
6347 of flag_pic to MACHOPIC_INDIRECT.
6348 (secondary_reload_class): Conditional change the reference of
6349 flag_pic to MACHOPIC_INDIRECT.
6350 (rs6000_output_mi_thunk): Change reference of flag_pic to
6351 MACHOPIC_INDIRECT.
6352 (output_profile_hook): Likewise.
6353 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
6354 * config/rs6000/rs6000.md (movdf_low): Add the case for
6355 MACHO_DYNAMIC_NO_PIC_P.
6356 (call): Change references for flag_pic in TARGET_MACHO to
6357 MACHOPIC_INDIRECT.
6358 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
6359 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
6360 * doc/invoke.texi (-mdynamic-no-pic): Document.
89b4de10 6361
63622003-03-10 Devang Patel <dpatel@apple.com>
fb780c4e 6363
89b4de10 6364 PR c++/9394
6365 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
6366 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
6367 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
6368 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
6369 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
6370 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
fb780c4e 6371
783d7043 63722003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
6373
6374 PR optimization/7189
6375 * toplev.c (rest_of_compilation): Move
6376 check_function_return_warnings up to just after
6377 delete_unreachable_blocks.
6378
4b2ade62 63792003-03-10 Stephane Carrez <stcarrez@nerim.fr>
6380
6381 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
6382 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
6383 Declare.
6384 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
6385 for reg rename optimization to avoid using Z and Y registers.
6386
4575b101 63872003-03-10 Stephane Carrez <stcarrez@nerim.fr>
6388
6389 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
6390 when adding to X and Y since leax/leay are fast.
6391 ("*addhi3"): Accept 'I' constraint when adding to address register.
6392 ("rotlhi3"): Operand 1 must be a register_operand.
6393 (peephole2): New peephole to optimize some adds.
6394 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
6395 to represent -2 .. 2 small integer range.
6396
8121e878 63972003-03-10 Stephane Carrez <stcarrez@nerim.fr>
6398
6399 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
6400 each 16-bit rotation.
6401
181a72b4 64022003-03-10 Zack Weinberg <zack@codesourcery.com>
6403
6404 * c-opts.c (add_prefixed_path): Don't use concat. When
6405 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
6406 cpp_GCC_INCLUDE_DIR_len characters.
6407
ddcba420 64082003-03-10 Segher Boessenkool <segher@koffie.nl>
6409
181a72b4 6410 * testsuite/gcc.dg/altivec-9.c: New file.
ddcba420 6411
181a72b4 6412 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
6413 (rs6000_emit_prologue): Use rs6000_frame_related instead.
ddcba420 6414
f89afaa2 64152003-03-10 Aldy Hernandez <aldyh@redhat.com>
6416
181a72b4 6417 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
6418 vectors.
6419 (__ev_convert_u64): Remove macro. Define as inline.
6420 (__ev_convert_s64): Same.
f89afaa2 6421
d838c8e7 64222003-03-10 Aldy Hernandez <aldyh@redhat.com>
6423
181a72b4 6424 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
6425 (rs6000_stack_t): Add spe_64bit_regs_used.
d838c8e7 6426
181a72b4 6427 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
6428 spe_64bit_regs_used, and use it to determine the size of the
6429 frame.
6430 (spe_func_has_64bit_regs_p): New.
6431 (spe_synthesize_frame_save): New.
6432 (rs6000_frame_related): Handle SPE synthetic registers.
6433 (rs6000_emit_prologue): Only save in 64-bits if the function used
6434 any registers in 64-bit mode.
6435 (rs6000_emit_epilogue): Same, but for restore.
d838c8e7 6436
c7f506fd 64372003-03-10 Richard Earnshaw <rearnsha@arm.com>
6438
6439 * arm.h (enum floating_point_type): Delete. Replace with...
6440 (enum fputype): ... new.
6441 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
6442 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
6443 * arm.md (attr fpu): Reworked for new underlying enum values.
6444 * arm.c (arm_fpu_arch): Now enum fputype.
6445 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
6446 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
6447 Update uses of arm_fpu_arch and arm_fpu_tune.
6448
f2756aab 64492003-03-10 Josef Zlomek <zlomekj@suse.cz>
6450
181a72b4 6451 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
f2756aab 6452 (try_crossjump_to_edge): Replace refereces to one jump table by
6453 references to identical jump table.
6454 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
6455 (replace_label): Moved to rtlanal.c.
6456 (struct rtx_pair): Moved to rtl.h.
181a72b4 6457 * rtl.h (struct rtx_pair): Moved from loop.c.
f2756aab 6458 (replace_label): New extern function.
6459 (subrtx_p): New extern function.
6460 (tablejump_p): New extern function.
181a72b4 6461 * rtlanal.c (replace_label): Moved from loop.c.
f2756aab 6462 (subrtx_p_1): New static function.
6463 (subrtx_p): New function.
6464 (tablejump_p): New function.
6465
96b74343 64662003-03-10 Jan Hubicka <jh@suse.cz>
9d574a94 6467
a6a0ec1c 6468 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
6469
9d574a94 6470 * cfgcleanup.c (merge_blocks): Return where to iterate next.
6471 (try_optimize_cfg): Use return value of merge_blocks
6472
ccad1933 64732003-03-10 Michael Matz <matz@suse.de>
6474
6475 * cfg.c (unchecked_make_edge): New.
6476 (cached_make_edge): Use it.
6477 * basic-block.h (unchecked_make_edge): Declare.
6478 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
6479
7db9af5d 64802003-03-10 Richard Earnshaw <rearnsha@arm.com>
6481
6482 * fpa.md: New file. Move all patterns relating to FPA co-processor
6483 to here...
6484 * arm.md: ... from here.
6485 (cirrus.md, fpa.md): Include at end of description.
6486 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
6487 (pic_load_addr_based): Remove register constraint from expander.
6488 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
6489 (sordered, sungt, sunle, sunge, sunlt): Likewise.
6490 (eh_epilogue, tablejump): Likewise.
6491
50c77a2e 64922003-03-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6493
6494 * tree.c (substitute_in_expr, case 'e'): Only make recursive call
6495 on operands if it has a PLACEHOLDER_EXPR.
6496
d0c91f74 64972003-03-09 David Edelsohn <edelsohn@gnu.org>
6498 Mostafa Hagog
6499
6500 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
6501 condition.
6502
6dfe8beb 65032003-03-09 Neil Booth <neil@daikokuya.co.uk>
6504
6505 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
6506 * config/ip2k/ip2k.h: Similarly.
6507 * config/m32r/m32r.h: Similarly.
6508 * config/m68hc11/m68hc11.h: Similarly.
6509 * config/mn10200/mn10200.h: Similarly.
6510 * config/mn10300/mn10300.h: Similarly.
6511 * config/pdp11/pdp11.h: Similarly.
6512 * config/v850/v850.h: Similarly.
6513 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
6514 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
6515 * config/mips/iris3.h: Remove #if 0 block.
6516
65172003-03-09 Roger Sayle <roger@eyesopen.com>
6518 Joern Rennecke <joern.rennecke@superh.com>
6519
6520 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
6521 pending argument upon return from handle_braces here.
6522 (do_spec_2): Instead handle it upon return from do_spec_1 here.
6523
5842765d 65242003-03-09 Roger Sayle <roger@eyesopen.com>
6525 Joern Rennecke <joern.rennecke@superh.com>
6526
6527 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
6528 pending argument upon return from handle_braces here.
6529 (do_spec_2): Instead handle it upon return from do_spec_1 here.
6530
95c45f17 65312003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6532
6533 * varasm.c (make_decl_one_only): Use declare_weak().
6534
ffa8918b 65352003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6536
6537 PR middle-end/9986
6538 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
6539 after the common builtins.
6540 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
6541 * pa.c (TARGET_INIT_BUILTINS): Define.
6542 (pa_init_builtins): New function.
6543
6544 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
6545 space has been allocated for the outgoing arguments, set the arg
6546 pointer for a call emitted after virtuals have been instantiated
6547 using the stack pointer offset, otherwise abort.
6548
6a60222a 65492003-03-09 DJ Delorie <dj@redhat.com>
6550
6551 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
6552
a33d5c9c 65532003-03-09 Richard Earnshaw <rearnsha@arm.com>
6554
6555 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
6556 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
6557 conversion to integer.
6558 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
6559
b44aebd0 65602003-03-09 Roger Sayle <roger@eyesopen.com>
6561
6562 * builtins.def: Fix typo and improve grammar.
6563 * loop-unroll.c (decide_peel_completely): Tidy log message.
6564
831a61d5 65652003-03-09 Kazu Hirata <kazu@cs.umass.edu>
6566
6567 * config/h8300/h8300.md (*tstsi_upper_bit): New.
6568 (*iorsi3_e2f): Likewise.
6569
5a622ac3 65702003-03-08 Kazu Hirata <kazu@cs.umass.edu>
6571
6572 * config/h8300/h8300.c (h8300_and_costs): Return the number of
6573 assembly instructions needed.
6574 (h8300_shift_costs): Likewise.
6575
fcc56321 65762003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
6577
b3aeb0a6 6578 * config/cris/aout.h (ENDFILE_SPEC): Undef.
6579
8d94ba7c 6580 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
6581 moves from here ...
6582 * expr.c (emit_move_insn_1): ... to here.
6583
7877f8b5 6584 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
6585 (TARGET_OS_CPP_BUILTINS): New macro.
6586 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
6587 (TARGET_OS_CPP_BUILTINS): New macro.
6588 (CPP_PREDEFINES): Don't define. Move old definitions and...
6589 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
6590 (TARGET_CPU_CPP_BUILTINS): New macro.
6591 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
6592 definitions and the optional __PIC__, __pic__ and
6593 __NO_UNDERSCORES__ definitions to...
6594 (TARGET_OS_CPP_BUILTINS): New macro.
6595
5d364be7 6596 * flags.h (flag_leading_underscore): Declare.
6597
fcc56321 6598 * c-opts.c (c_common_post_options): On fopen failure, return
6599 false, not NULL.
6600
725111ba 66012003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
6602
6603 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
6604 config.h.
6605 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
6606 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
6607
efd8e442 66082003-03-08 Neil Booth <neil@daikokuya.co.uk>
6609
6610 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
6611 CPP_PREDEFINES.
6612 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
6613 CPP_PREDEFINES.
6614
03bde601 66152003-03-08 Neil Booth <neil@daikokuya.co.uk>
6616
6617 * c-common.h (c_common_init, c_common_post_options): Update.
6618 * c-objc-common.c (c_objc_common_init): Update for new prototype.
6619 * c-opts.c (saved_lineno): New.
6620 (c_common_post_options, c_common_init): Update prototypes,
6621 move call to cpp_read_main_file from latter to former.
6622 * c-tree.h (c_ojbc_common_init): Update.
6623 * langhooks-def.h (lhd_post_options): New.
6624 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
6625 * langhooks.c (lhd_post_options): New.
6626 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
6627 * toplev.c (no_backend): New.
6628 (process_options): Call post_options hook and set main_input_filename
6629 and input_filename here.
6630 (lang_dependent_init, do_compile): post_options hook moved to
6631 process_options.
6632 * objc/objc-act.c (objc_init): Update prototype.
6633 * objc/objc-act.h (objc_init): Update prototype.
6634
0d409008 66352003-03-08 Roger Sayle <roger@eyesopen.com>
6636
6637 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
6638 a complex or vector type, using a load in the original mode.
6639
96b74343 66402003-03-08 Jan Hubicka <jh@suse.cz>
639e4be4 6641
6642 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
6643 * gt-cgraph.h: New GC file.
6644 * cgraph.c (known_fns): New static variable.
6645 (cgraph_node): Add the decl into varray.
6646
4d8f32b1 66472003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
6648
6649 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
6650
e8ff69a4 66512003-03-08 Richard Earnshaw <rearnsha@arm.com>
6652
6653 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
6654 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
6655 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
6656 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
6657 All callers changed.
6658 * arm.md, arm.h, arm-protos.h: Updated.
6659
6660 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
6661 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
6662 * arm.c (arm_regno_class, f_register_operand): Updated.
6663
b79b4d8a 66642003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
6665
6666 * config/cris/cris.h: Remove EGCS references.
fb780c4e 6667 (CPP_SPEC): Remove "-$".
b79b4d8a 6668 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
6669
547defaa 66702003-03-08 Neil Booth <neil@daikokuya.co.uk>
6671
6672 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
6673 preference to CPP_PREDEFINES.
6674
07536414 66752003-03-08 Neil Booth <neil@daikokuya.co.uk>
6676
6677 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
6678
62028706 66792003-03-08 Kazu Hirata <kazu@cs.umass.edu>
6680
6681 * config/h8300/h8300.md (*extzv_16_8): New.
6682
96b74343 66832003-03-08 Jan Hubicka <jh@suse.cz>
961e3b13 6684
6685 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
6686 * cgraph.h: (cgraph_local_info): Add can_inline_once
6687 (cgraph_global_info): Add inline_once.
6688 (cgraph_node): Add previous.
6689 (cgraph_remove_node): New.
6690 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
6691 function.
6692 (cgraph_optimize): Call it.
6693 (cgraph_finalize_function): Set inlinable flags.
6694 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
6695 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
6696 (cgraph_expand_function): Likewise.
181a72b4 6697 * cgraph.c
961e3b13 6698 (cgraph_node): Put nodes into doubly linked chain.
6699 (cgraph_remove_node): New function.
6700 * flags.h (flag_inline_functions_called_once): Declare.
6701 * tree-inline.c: Include cgraph.h
6702 (inlinable_functions_p): Add extra argument to bypass limits.
6703 (expand_call_inline): Obey cgraph flag.
6704 * tree-inline.h (tree_inlinable_function_p): Update prototype.
6705
a964683a 67062003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6707
6708 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
6709 irreducible loops.
6710
6711 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
6712 loops info correctly.
6713
45c2938e 67142003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
6715
6716 PR middle-end/7796
6717 * unroll.c (calculate_giv_inc): Handle constants being
6718 loaded with LSHIFTRT.
6719
1ebaf018 67202003-03-07 David Edelsohn <edelsohn@gnu.org>
6721
6722 * config/rs6000/rs6000.c (processor_target_table): Do not disable
6723 GP optional instructions on Power3, Power4, 620, and 630.
6724
037845e5 67252003-03-07 Kazu Hirata <kazu@cs.umass.edu>
6726
6727 * calls.c: Fix comment formatting.
6728 * cfgloopanal.c: Likewise.
6729 * cfgloopmanip.c: Likewise.
6730 * combine.c: Likewise.
6731 * dwarf2out.c: Likewise.
6732 * ggc-common.c: Likewise.
6733 * langhooks.c: Likewise.
6734 * loop-unroll.c: Likewise.
6735 * loop.c: Likewise.
6736 * ra-build.c: Likewise.
6737 * sbitmap.c: Likewise.
6738 * toplev.c: Likewise.
6739
7da7e24b 67402003-03-07 James E Wilson <wilson@tuliptree.org>
6741
45c2938e 6742 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
7da7e24b 6743
66ac76fd 67442003-03-07 Geoffrey Keating <geoffk@apple.com>
6745
6746 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
6747 support -no-integrated-cpp.
6748
6749 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
6750 than langhooks.name.
6751
bd9c340f 67522003-03-07 Michael Matz <matz@suse.de>
6753
6754 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
6755 (DF_FOR_REGALLOC): New.
6756 * df.c (df_ref_record): Set DF_REF_STRIPPED.
6757 (read_modify_subreg_p): Simplify.
6758 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
6759 Use DF_FOR_REGALLOC.
6760 * ra.h (struct web): New member subreg_stripped.
6761 (invalid_mode_change_regs): Declare.
6762 * ra.c (invalid_mode_change_regs): New.
6763 (init_ra): Initialize it.
6764 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
6765 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
6766 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
6767 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
6768 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
6769
604f3a0a 67702003-03-07 Richard Earnshaw <rearnsha@arm.com>
6771
6772 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
6773 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
6774 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
6775 machine description file from ...
6776 * cirrus.md: ... here.
6777
7662d61a 67782003-03-06 Kazu Hirata <kazu@cs.umass.edu>
6779
6780 * config/h8300/h8300.md (a peephole2): Don't use
6781 reg_overlap_mentioned_p.
6782
6090deb8 67832003-03-06 Geoffrey Keating <geoffk@apple.com>
6784
6785 * c-pch.c: Include langhooks.h.
6786 (IDENT_LENGTH): New.
6787 (get_ident): New.
6788 (pch_ident): Delete.
6789 (pch_init): Use get_ident, IDENT_LENGTH.
6790 (c_common_valid_pch): Likewise. Also, use actual language
6791 in warning message.
6792 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
6793
6794 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
6795 c-parse.in.
6796 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
6797 gt-objc-objc-act.h.
6798 (gt-objc-objc-act.h): New rule.
6799 * objc/lang-specs.h: Support PCH.
6800 * objc/objc-act.c: Include gt-objc-objc-act.h.
6801 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
6802 (build_selector_reference_decl): Move idx out, mark for PCH.
6803 (build_class_reference_decl): Likewise.
6804 (build_objc_string_decl): Move *_idx out, mark for PCH.
6805 (build_tmp_function_decl): Move xxx out, mark for PCH.
6806
90ff8937 68072003-03-06 Dale Johannesen <dalej@apple.com>
6808
6809 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
6810 global functions for inlining on Darwin.
6811
d42d3429 68122003-03-06 Vladimir Makarov <vmakarov@redhat.com>
6813
6814 * haifa-sched.c (schedule_block): Don't call reorder when sorting
6815 is prohibited.
6816
e920deaf 68172003-03-06 Neil Booth <neil@daikokuya.co.uk>
6818
6819 * Makefile.in (c-ppoutput.o): Update.
6820 * c-common.h (init_pp_output): New.
6821 (preprocess_file): Update.
6822 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
6823 Register builtins.
6824 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
6825 Make call to cpp_read_main_file common to whether preprocessing
6826 or not. Don't register builtins.
6827 * c-ppoutput.c: Include c-pragma.h.
6828 (setup_callbacks): Rename init_pp_output.
6829 (preprocess_file): No longer setup callbacks or call
6830 cpp_read_main_file.
6831 * cpphash.h (_cpp_init_mbchar): New.
6832 * cppinit.c (init_library): Call _cpp_init_mbchar.
6833 * cpplex.c (_cpp_init_mbchar): New.
6834
7ed3fdd6 68352003-03-06 Roger Sayle <roger@eyesopen.com>
6836
6837 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
6838 MEM, try loading the MEM into a register and taking the low-part
6839 of that, to help CSE see the use of the MEM in its true mode.
6840
4b0b9adb 68412003-03-05 Tom Tromey <tromey@redhat.com>
6a3c0fd8 6842
6843 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
6844 Define.
6845
4b0b9adb 68462003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
6a3c0fd8 6847
6848 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
6849 operand 2.
6850 ("*ineqbranchsi"): Likewise.
6851
4b0b9adb 68522003-03-05 Andrew Haley <aph@cambridge.redhat.com>
6a3c0fd8 6853
6854 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
6855 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
6856 register store followed by a stack increment.
6857
4b0b9adb 68582003-03-05 Chris Moller <cmoller@redhat.com>
6a3c0fd8 6859
6860 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
6861 to inhibit saving CARRY_REGS.
6862
6863 * config/stormy16/stormy16.c (xs_hi_general_operand):
6864 added predicate to detect and error-out on out-of-range
6865 const_ints for movhi.
181a72b4 6866 * config/stormy16/stormy16.md (movhi): use
6a3c0fd8 6867 xs_hi_general_operand.
6868
6869 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
6870 added a check for local vbl size overflow.
6871 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
6872 added predicate to detect and error-out on out-of-range
6873 const_ints for addhi and subhi.
181a72b4 6874 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
6a3c0fd8 6875 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
6876
6877 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
6878 add a term to accept PRE_MODIFY addresses.
6879 * config/stormy16/stormy16.c (xstormy16_expand_move):
6880 add code to expand PRE_MODIFY addresses to an add followed
6881 by a move.
6882
8b423c36 68832003-03-06 Jason Merrill <jason@redhat.com>
6884
6885 * tree-inline.c (inlinable_function_p): Revert earlier change
6886 pending investigation.
6887
40d58d20 68882003-03-06 Kazu Hirata <kazu@cs.umass.edu>
6889
6890 * config/h8300/h8300.md (a new peephole2): New.
6891
96b74343 68922003-03-06 Jan Hubicka <jh@suse.cz>
964f7991 6893
6894 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
6895
1ef5e659 68962003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6897
6898 * dwarf2out.c (size_of_die): Compute size of external reference to
6899 die correctly.
6900
7d677035 69012003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
6902
6903 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
6904 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
6905 expanders.
6906
6d1cedf9 69072003-03-05 Roger Sayle <roger@eyesopen.com>
6908
6909 * expr.h (lang_expand_expr): Delete obsolete prototype.
6910
29d56731 69112003-03-05 Kazu Hirata <kazu@cs.umass.edu>
6912
6913 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
6914
545754bb 69152003-03-05 Kazu Hirata <kazu@cs.umass.edu>
6916
6917 * config/h8300/h8300.md (a peephole2): Generalize to
6918 accept a memory operand.
6919
96b74343 69202003-03-05 Olivier Hainque <hainque@act-europe.fr>
822c7fc8 6921
6922 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
6923 * config/alpha/alpha.c (print_operand, case '+'): New.
6924 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
6925 (call_value_osf_1_noreturn): Likewise.
6926
96b74343 69272003-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
805e0cf0 6928
6929 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
6930 (expand_end_bindings): Likewise.
6931
7a92105e 69322003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6933
6934 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
6935 (epilogue): Don't generate return_external_pic when emitting PA 2.0
6936 code.
6937
9754a2f0 69382003-03-05 Aldy Hernandez <aldyh@redhat.com>
6939
181a72b4 6940 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
9754a2f0 6941
181a72b4 6942 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
9754a2f0 6943
181a72b4 6944 * hooks.c (hook_rtx_rtx_null): New.
9754a2f0 6945
181a72b4 6946 * hooks.h (hook_rtx_rtx_null): Protoize.
9754a2f0 6947
181a72b4 6948 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
6949 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
9754a2f0 6950
181a72b4 6951 * target.h (struct gcc_target): Add dwarf_register_span.
9754a2f0 6952
181a72b4 6953 * dwarf2out.c (multiple_reg_loc_descriptor): New.
6954 (one_reg_loc_descriptor): New.
6955 (reg_loc_descriptor): Add support for values that span more than
6956 one register.
9754a2f0 6957
96b74343 69582003-03-05 Jan Hubicka <jh@suse.cz>
28992b23 6959
6960 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
6961 * alias.c: Include cgraph.h
6962 (mark_constant_function): Use cgraph_rtl_info.
6963 * calls.c: Include cgraph.h
6964 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
6965 calls.
6966 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
6967 * cgraph.c (cgraph_rtl_info): New function.
6968 * cgraph.h (cgraph_rtl_info): Declare
6969 (cgraph_rtl_info): Likewise.
6970 * function.h (struct function): Add recursive_call_emit.
6971 * toplev.c: Include cgraph.h.
6972 (rest_of_compilation): Set preferred_incoming_stack_boundary.
6973
7d3e46b8 69742003-03-05 Kazu Hirata <kazu@cs.umass.edu>
6975
6976 * config/h8300/h8300.c (output_simode_bld): Clear the
6977 destination first if possible.
6978 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
6979 alternative.
6980 (extzv_1_r_inv_h8300hs): Likewise.
6981
a5414ff5 69822003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6983
6984 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
6985 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
6986 * cfgloop.c (flow_loop_free): Made global.
6987 (establish_preds): New static function.
6988 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
6989 (get_loop_exit_edges): New.
6990 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
6991 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
6992 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
6993 loops.
6994 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
6995 removability of an edge.
6996 (fix_irreducible_loops): New static function.
6997 (find_path, remove_path): Add ability to remove enclosing loops.
6998 (unloop): New.
6999 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
7000 flags.
7001 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
7002 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
7003 not neccessary.
7004 (decide_peel_completely, peel_loops_completely): Allow complete peeling
7005 of non-duplicable once rolling loops.
7006 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
7007
96b74343 70082003-03-05 J"orn Rennecke <joern.rennecke@superh.com>
a3e54512 7009
7010 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
7011 for align_jumps is 4.
7012
7013 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
7014 use GENERAL_REGS.
7015
8e455060 70162003-03-05 Stephane Carrez <stcarrez@nerim.fr>
7017
7018 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
7019 according to va_arg type.
7020 (EXPAND_BUILTIN_VA_ARG): Remove.
7021 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
7022 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
7023
61601b86 70242003-03-05 David Edelsohn <edelsohn@gnu.org>
7025
7026 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
7027 else clauses.
7028
2ea89eea 70292003-03-05 Michael Matz <matz@suse.de>
7030
7031 * i386/i386.c (ix86_save_reg): Also test
7032 current_function_uses_const_pool.
7033
aec3ae55 70342003-03-05 Michael Matz <matz@suse.de>
7035
7036 * unwind.h: Add the GPL exception.
7037 * Makefile.in (USER_H): Add unwind.h.
7038
e087929a 70392003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
7040
7041 PR c/9799
7042 * c-typeck.c (push_init_level): Add sanity check.
7043
96b74343 70442003-03-05 Jan Hubicka <jh@suse.cz>
80a85d8a 7045
7046 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
7047 RTL inlining is done.
7048
7049 * cgraphunit.c (cgraph_mark_local_functions): New local function.
7050 (cgraph_optimize): Mark local functions.
7051 * i386-protos.h (init_cumulative_args): Update prototype.
7052 * i386.c (init_cumulative_args): Use register passing convention for
7053 local functions.
7054
7055 * cgraph.c (cgraph_global_info_ready): New global variable
7056 (cgraph_local_info, cgraph_global_info): New functions.
7057 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
7058 structures.
7059 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
7060 Declare.
7061 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
7062 (cgraph_mark_functions_to_output): Use inline_many.
7063 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
7064 (cgraph_expand_functions): Expand inline functions last.
7065 (cgraph_optimize): Do not emit uneeded functions.
7066
12726d6a 70672003-03-04 Steve Ellcey <sje@cup.hp.com>
7068
7069 * expr.c (convert_modes): Check for legal hard register.
7070
c835a482 70712003-03-04 Tom Tromey <tromey@redhat.com>
7072
7073 * doc/sourcebuild.texi (Front End Directory): Document tags.
7074 * configure: Rebuilt.
7075 * configure.in (target_list): Added tags.
7076 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
7077 TAGS files by reference.
7078 * objc/Make-lang.in (objc.tags): New target.
7079
2dcd3a4d 70802003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7081
7082 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
7083 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
7084 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
7085 gcov_read_string, gcov_write_length): Modified to enable reading/
7086 writing of whole .da file just once.
7087 (da_file_open, da_file_close, da_file_eof, da_file_error,
7088 da_file_position, da_file_seek, da_file_write, da_file_read): New
7089 functions.
7090 (actual_da_file, actual_da_file_position, actual_da_file_length,
7091 actual_da_file_buffer, actual_da_file_buffer_size): New static
7092 functions.
7093 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
7094 just once.
7095
7096
c0b4b463 70972003-03-04 Andreas Schwab <schwab@suse.de>
7098
7099 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
7100 offset without frame pointer.
7101
a0d86b72 71022003-03-04 Steve Ellcey <sje@cup.hp.com>
7103
7104 * expr.c (expand_expr): Call promote_mode to set unsignedp.
7105
d68c6656 71062003-03-04 Daniel Jacobowitz <drow@mvista.com>
7107
7108 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
7109 * configure: Regenerated.
7110 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
7111
20eac5f4 71122003-03-04 Andreas Jaeger <aj@suse.de>
7113
7114 * configure.in: Check for <memcheck.h>.
181a72b4 7115 * configure: Regenerated.
20eac5f4 7116
7117 * config.in: Define HAVE_MEMCHECK_H.
7118
7119 * ggc-common.c: Use <memcheck.h> if available instead of
7120 <valgrind.h>.
7121 * ggc-page.c: Likewise.
7122 * cppfiles.c: Likewise.
7123
3e94cd10 71242003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7125
7126 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
7127
736393e5 71282003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
7129
7130 PR c/9262
7131 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
7132 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
7133
96b74343 71342003-03-04 Jan Hubicka <jh@suse.cz>
a172c36d 7135
7136 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
7137 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
7138 for -O3.
7139
7349ace9 71402003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
7141
7142 * configure.in: Delete three unused variables. Move a variable
7143 definition closer to its use. Simplify use_collect2 logic. Start to
7144 organize. Simplify tests for in-tree gas and ld.
7145 * configure: Regenerate.
7146
f7070933 71472003-03-04 Neil Booth <neil@daikokuya.co.uk>
7148
7149 * Makefile.in: Update.
7150 * c-common.c (flag_no_line_commands, flag_no_output,
7151 flag_dump_macros, flag_dump_includes): New.
7152 * c-common.h (flag_no_line_commands, flag_no_output,
7153 flag_dump_macros, flag_dump_includes, preprocess_file): New.
7154 (init_c_lex): Update prototype.
7155 * c-lex.c (init_c_lex): Update prototype; move some code to
7156 c_common_init.
7157 * c-opts.c (preprocess_file): Subsume into c_common_init.
7158 (c_common_decode_option): Update flags.
7159 (c_common_init): Move code from preprocess_file and init_c_lex.
7160 (sanitize_cpp_opts): Update.
7161 * c-ppoutput.c: New, cppmain.c almost verbatim.
7162 * cpphash.h (struct printer): Remove.
7163 (struct cpp_reader): Remove print.
7164 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
7165 cpp_preprocess_file): Remove.
7166 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
7167 and dump_includes.
7168 * cppmain.c: Remove.
7169 * doc/passes.texi: Update.
7170
256f9b65 71712003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7172
7173 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
7174 (assign_stack_local_1): Perform overall stack alignment only when
7175 STACK_ALIGNMENT_NEEDED is non-zero.
7176 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
7177
7178 * pa.c (compute_frame_size): Rename fsize to size. Account for
7179 alignment to a word boundary before general register save block. Only
7180 account for double-word alignment before floating point register save
7181 block if one or more are saved. Don't allocate space for %r3 when
7182 frame pointer is needed.
7183 (hppa_expand_prologue): Include alignment to word boundary in local
7184 frame size.
7185 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
7186 (STACK_ALIGNMENT_NEEDED): Define.
7187
3332aee2 71882003-03-04 Kevin Buettner <kevinb@redhat.com>
7189
7190 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
7191 global register variables.
7192
fd3ac62f 71932003-03-04 Alexandre Oliva <aoliva@redhat.com>
7194
7195 * reload.c (reload_adjust_reg_for_mode): New function.
7196 (subst_reloads): Call it.
7197 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
7198 * reload.h (reload_adjust_reg_for_mode): Declare.
7199 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
7200 Call it.
7201
52ce4c9b 72022003-03-03 James E Wilson <wilson@tuliptree.org>
7203
7204 * optabs.c (add_equal_note): Delete SUBREG_REG use.
7205 Fixes PR c/7872.
7206
d1f15f1b 72072003-03-03 Kazu Hirata <kazu@cs.umass.edu>
7208
7209 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
7210 (*ixorsi3_lshiftrt_16): New.
7211 (*iorsi3_ashift_16): Remove.
7212
90883a1f 72132003-03-03 Kazu Hirata <kazu@cs.umass.edu>
7214
7215 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
7216 pattern.
7217
def13964 72182003-03-03 Geoffrey Keating <geoffk@apple.com>
7219
7220 * doc/install.texi (Specific): Update entry for powerpc-darwin.
7221
4bb3c8ba 72222003-03-03 Richard Henderson <rth@redhat.com>
7223
7224 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
7225
d311a14b 72262003-03-03 David Edelsohn <edelsohn@gnu.org>
7227
7228 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
7229 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
7230 (rs6000_variable_issue): Do not return negative value.
7231 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
7232 scheduling pass.
7233
449db731 72342003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7235
7236 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
7237 prune_unused_types calls.
7238
2a68cb1e 72392003-03-03 Jason Merrill <jason@redhat.com>
7240
7241 * tree-inline.c (find_builtin_longjmp_call): Save and restore
7242 lineno and input_filename.
7243 (find_alloca_call): Likewise.
7244 (inlinable_function_p): Run the langhook earlier.
7245
7246 * calls.c (compute_argument_addresses): Give the new MEMs a
7247 minimum alignment of PARM_BOUNDARY.
7248
96b74343 72492003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
c999a707 7250
7251 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
7252 subtarget_asm_isa_spec.
7253 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
7254 (ASM_SPEC): Define as SH_ASM_SPEC.
7255 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
7256 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
7257 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
7258 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
2a6493a5 7259
7260 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
7261 and align_jumps if not set.
7262 Force align_jumps to be at least 2.
7263 When relaxing, force align_functions to be at least the maximum of
7264 align_loops, align_jumps and 4.
7265 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
7266 (sh_loop_align): Honour align_loops_log.
7267
7268 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
7269 to check for indirect_jump_scratch.
7270 (indirect_jump_scratch): Add second set.
7271 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
7272 when looking for indirect_jump_scratch.
7273 Extract scratch register taking new structure of indirect_jump_scratch
7274 into account.
7275 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
7276
96b74343 72772003-03-03 Jan Hubicka <jh@suse.cz>
e800415f 7278
95672afe 7279 * calls.c (rtx_for_function_call): Take the address as an argument
7280 (expand_call): Do not modify the expression.
7281
e800415f 7282 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
7283 optimizing.
7284
86fb5618 72852003-03-03 Kazu Hirata <kazu@cs.umass.edu>
7286
7287 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
7288 TARGET_H8300H and TARGET_H8300S.
7289
0834df27 72902003-03-03 Kazu Hirata <kazu@cs.umass.edu>
7291
7292 * config/h8300/h8300.md (a peephole2): New.
7293
8451abc8 72942003-03-03 Kazu Hirata <kazu@cs.umass.edu>
7295
7296 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
7297 operands[0] and operands[1] are different.
7298
72992003-03-03 Kazu Hirata <kazu@cs.umass.edu>
7a2a0d76 7300
7301 * reload1.c (reload_cse_move2add): Remove variable success.
7302
26106956 73032003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7304
7305 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
7306 warnings.
7307
0cc4b4a2 73082003-03-02 Richard Henderson <rth@redhat.com>
7309
7310 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
7311 * config.in, configure: Rebuild.
7312 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
20eac5f4 7313 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
0cc4b4a2 7314 paired ldtoffx and ldxmov annotations.
7315 (load_symptr_internal1): Remove.
7316 (load_symptr_high, load_symptr_low): New.
7317
143e0eb0 73182003-03-02 Neil Booth <neil@daikokuya.co.uk>
7319
7320 * c-incpath.c (add_path): Fix sysp assignment.
7321
e2b04249 73222003-03-02 Kurt Garloff <garloff@suse.de>
7323
7324 * params.def: Introduce parameter max-inline-insns-rtl for
7325 a separate limit for the RTL inliner.
7326 * params.h: Likewise.
7327 * integrate.c (function_cannot_inline_p): Use it.
20eac5f4 7328 * toplev.c (decode_f_option): Set multiple parameters
e2b04249 7329 controlling inlining with -finline-limit.
7330 * params.def: Fix orthographic and typographic errors.
7331 * doc/invoke.texi: Document parameters controlling inlining
7332 and the way -finline-limit sets multiple of them.
7333
7334 * tree.h (struct tree_decl): Introduce inlined_function_flag,
7335 recording whether the function became eligible for inlining
7336 by a compiler flag rather than the declaration.
7337 Provide DID_INLINE_FUNC macro to access it.
7338 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
7339 * cp/decl.c (grokfndecl): Likewise.
7340 * toplev.c (rest_of_compilation): Likewise.
7341 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
7342 * print-tree.c (print_node): Report it.
7343 * params.def: Introduce new max-inline-insns-auto limit.
7344 * params.h: Likewise.
7345 * tree-inline.c (inlinable_function_p): Apply it to functions
7346 with DID_INLINE_FUNC set.
7347 * toplev.c (decode_f_option): Initialize it from -finline-limit
7348 value.
7349 * doc/invoke.texi: Document new parameter.
7350
d1ed74ff 73512003-03-02 Geoffrey Keating <geoffk@apple.com>
7352
7353 * fix-header.c (read_scan_file): Don't reference simplify_path.
7354
d66007b7 73552003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7356
7357 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
7358 min/max instructions by default as may result in reload errors.
7359
3444a63f 73602003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7361
7362 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
7363 avoid reload problems; define split for it.
7364
9ffd661f 73652003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7366
7367 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
7368 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
7369 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
20eac5f4 7370 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
9ffd661f 7371 rotatert and rotate.
7372 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
7373 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
7374 ("*rotrhi3_addr"): New split for shift insns on address register.
7375 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
7376 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
7377 (___rotrhi3): Likewise.
7378 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
7379
a766fb27 73802003-03-02 Neil Booth <neil@daikokuya.co.uk>
7381
7382 * toplev.c (aux_base_name): Moved from toplev.h.
7383 (filename): Constify.
7384 (lang_dependent_init): Don't duplicate name.
7385 (process_options): Set aux_base_name here, not...
7386 (do_compile): ...here. Change protoype.
7387 (toplev_main): Move some code from do_compile.
7388 * toplev.h: Remove aux_base_name.
7389
4c924258 73902003-03-02 Kazu Hirata <kazu@cs.umass.edu>
7391
7392 * config/h8300/h8300-protos.h: Add a prototype for
7393 iorxor_operator.
7394 * config/h8300/h8300.c (print_operand): Handle 'c'.
7395 (iorxor_operator): New.
7396 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
7397 * config/h8300/h8300.md (*iorhi3_zext): Remove.
7398 (*iorsi3_zexthi): Likewise.
7399 (*iorsi3_zextsi): Likewise.
7400 (*xorhi3_zextqi): Likewise.
7401 (*xorsi3_zexthi): Likewise.
7402 (*xorsi3_zextsi): Likewise.
7403 (*ixorhi3_zext): New.
7404 (*ixorsi3_zext_qi): Likewise.
7405 (*ixorsi3_zext_hi): Likewise.
7406
03e3f0fd 74072003-03-02 Neil Booth <neil@daikokuya.co.uk>
7408
7409 * c-incpath.c (remove_component_p, simplify_path): Move back to
7410 cppfiles.c.
7411 (remove_duplicates): Use cpp_simplify_path.
7412 * c-incpath.h (simplify_path): Remove.
7413 * c-lex.c: Don't include c-incpath.h.
7414 (init_c_lex): Remove simplify_path.
7415 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
7416 (find_or_create_entry, validate_pch): Revert.
7417
6f60f118 74182003-03-02 Ashif Harji <asharji@uwaterloo.ca>
7419
7420 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
7421 an external cpp during compilation.
7422 (option_map): Likewise.
7423 * objc/lang-specs.h (default_compilers): Similarly.
7424 * doc/invoke.texi: Document -no-integrated-cpp flag.
7425
2c63f13c 74262003-03-02 Kazu Hirata <kazu@cs.umass.edu>
7427
7428 * config/h8300/h8300.md (zero_extendqisi2): Change to an
7429 expander.
7430 (*zero_extendqisi2_h8300): New.
7431 (*zero_extendqisi2_h8300hs): New.
7432 (two splitters): New.
7433
2afdc5b3 74342003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7435
7436 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
7437
c0ec52a4 74382003-03-01 Kazu Hirata <kazu@cs.umass.edu>
7439
7440 * config/h8300/h8300.md (a peephole2): Remove dead code.
7441
03901330 74422003-03-01 Roger Sayle <roger@eyesopen.com>
7443
7444 PR c++/9367
7445 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
7446 (BT_FN_INT_CONST_STRING_VALIST_ARG,
7447 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
7448 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
7449 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
7450 BT_FN_INT_STRING_CONST_STRING_VAR,
7451 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
7452 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
7453 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
7454 ATTR_NONNULL_3): Also include the nothrow attribute.
7455 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
7456 vsnprintf, vscanf, vsscanf): Don't define attributes here.
7457 * builtins.def (putchar, puts): Make full C89 built-ins.
7458 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
7459 vsscanf, vsnprintf, vsprintf): New built-ins.
7460 * c-common.c (c_common_nodes_and_builtins): Handle new macro
7461 DEF_FUNCTION_TYPE_VAR_3.
7462
7463 * doc/extend.texi: Document these new built-in functions.
7464
7fa7821f 74652003-03-01 Kazu Hirata <kazu@cs.umass.edu>
7466
7467 * config/h8300/h8300.md (a peephole2): New.
7468
fc22704f 74692003-03-01 Richard Earnshaw <rearnsha@arm.com>
7470
7471 * predict.c (estimate_bb_frequencies): Correctly set
7472 real_values_initialized after initialization.
7473
e69f4d0e 74742003-03-01 Neil Booth <neil@daikokuya.co.uk>
7475
7476 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
7477 cppinit.o, cppdefault.o, fix-header): Update.
7478 * c-incpath.c: New file.
7479 * c-incpath.h: New file.
7480 * c-lex.c: Include c-incpath.h.
7481 (init_c_lex): Register path simplifier.
7482 * c-opts.c: Include cppdefault.h and c-incpath.h.
7483 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
7484 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
7485 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
7486 (missing_arg, c_common_decode_option): Handle them.
7487 (c_common_post_options): Register include chains.
7488 (print_help): Update.
7489 * cppdefault.h (struct default include): Update.
7490 Move some macros to ...
7491 * cppdefault.c: ... here.
7492 (cpp_include_defaults): Add extra field add_sysroot.
7493 * cppfiles.c (include_file, search_from, find_or_create_entry,
7494 cpp_included, find_include_file, remap_filename): Update for
7495 renaming of search_path to cpp_path, and of the chain headers.
7496 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
7497 * cpphash.h (struct search_path): Move to cpplib.h.
7498 (struct cpp_buffer, struct cpp_reader): Update.
7499 (_cpp_simplify_pathname): Remove.
7500 * cppinit.c: Don't include prefix.h and cppdefault.h.
7501 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
7502 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
7503 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
7504 no_pth, cpp_handle_options): Remove.
7505 (struct pending_option): Remove chain members.
7506 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
7507 cpp_handle_option): Update.
7508 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
7509 (struct cpp_options): Remove quote_include, bracket_include,
7510 include_prefix, include_prefix_len, verbose, ignore_srcdir,
7511 no_standard_includes, no_standard_cplusplus_includes.
7512 (struct cpp_callbacks): Add simplify_path.
7513 (cpp_handle_options): Remove.
7514 * fix-header.c: Include c-incpath.h.
7515 (read_scan_file): Update to use c-incpath functionality.
7516 * doc/passes.texi: Update.
7517
d28c6096 75182003-03-01 Kazu Hirata <kazu@cs.umass.edu>
7519
7520 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
7521 satisfies EXTRA_CONSTRAINT 'U'.
7522
268fe2ae 75232003-03-01 Kazu Hirata <kazu@cs.umass.edu>
7524
7525 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
7526 register.
7527 (*tst_extzv_memqi_1_n): Change to a splitter.
7528 (a peephole2): Update.
7529
31e4010e 75302003-03-01 Richard Earnshaw <rearnsha@arm.com>
7531
7532 * predict.c (estimate_bb_frequencies): Initialize the sreal
7533 constants once per compilation.
7534
38497cd7 75352003-02-28 Richard Henderson <rth@redhat.com>
7536
7537 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
7538
c83a163c 75392003-02-28 scott snyder <snyder@fnal.gov>
7540
7541 * flags.h: Add flag_eliminate_unused_debug_types.
7542 * toplev.c: Add flag_eliminate_unused_debug_types.
7543 (f_options): Add -feliminate-unused-debug-types.
7544 * dwarf2out.c (struct file_table): Add emitted member.
7545 (splice_child_die): Fix the parent pointer for the child being
7546 spliced.
7547 (lookup_filename): Maintain file_table.emitted array. Don't
7548 output .file directive here.
7549 (maybe_emit_file): (new)
7550 (init_file_table): Set up file_table.emitted.
7551 (dwarf2out_source_line): Use maybe_emit_file.
7552 (dwarf2out_start_source_file): Use maybe_emit_file.
7553 (dwarf2out_init): Use maybe_emit_file.
7554 (prune_unused_types_walk_attribs): (new)
7555 (prune_unused_types_mark): (new)
7556 (prune_unused_types_walk): (new)
7557 (prune_unused_types_prune): (new)
7558 (prune_unused_types): (new)
7559 (dwarf2out_finish): Call prune_unused_types if
7560 flag_eliminate_unused_debug_types is set.
7561 * doc/invoke.texi (Option Summary): Add
7562 -feliminate-unused-debug-types.
7563 (Debugging Options): Likewise.
7564
49045bb4 75652003-02-28 Geoffrey Keating <geoffk@apple.com>
7566
7567 * doc/invoke.texi: Change .pch to .gch.
7568 * cppfiles.c (open_file_pch): Likewise.
7569 * gcc.c (default_compilers): Likewise.
7570
842a17d7 75712003-02-28 Aldy Hernandez <aldyh@redhat.com>
7572
181a72b4 7573 * floatlib.c: Remove.
842a17d7 7574
0b4a51d1 75752003-02-28 Jason Merrill <jason@redhat.com>
7576
7577 * stor-layout.c (variable_size): Leave a "minus 1" outside the
7578 SAVE_EXPR.
7579
d8592be0 75802003-02-28 David Edelsohn <edelsohn@gnu.org>
7581
7582 * config/rs6000/power4.md: Add compare bypass.
7583
0c51a1b1 75842003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
7585
7586 * config/netbsd.h: Update copyright years.
7587 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
7588 -pthread is specified on the command line.
7589
62b58625 75902003-02-28 Dale Johannesen <dalej@apple.com>
7591
181a72b4 7592 * loop.c (struct movable): Add insert_temp, shrink savemode.
62b58625 7593 (scan_loop): Accept invariants that require copying; mark as
181a72b4 7594 insert_temp.
62b58625 7595 (combine_movables): Don't combine insert_temp movables.
7596 (move_movables): Insert copies for insert_temp movables.
7597 Don't record the info based on regno for insert_temp's.
7598
980dba51 75992003-02-28 Joel Sherrill <joel@OARcorp.com>
7600
7601 PR 9638/other
20eac5f4 7602 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
980dba51 7603 this constant defaults to 1.
7604
19cda8f6 76052003-02-28 Bob Wilson <bob.wilson@acm.org>
7606
7607 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
7608
fec538d9 76092003-02-28 Richard Earnshaw <rearnsha@arm.com>
7610
20eac5f4 7611 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
fec538d9 7612 ARMv5e processor, not just for XScale. Instructions are predicable.
7613 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
7614
087f9649 76152003-02-28 Nick Clifton <nickc@redhat.com>
7616
7617 * config/arm/arm.c (note_invalid_constants): Change parameter type
7618 from bool to int.
7619
79a71a06 76202003-02-28 Kazu Hirata <kazu@cs.umass.edu>
7621
7622 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
7623 test of bit 7.
7624 (*tst_extzv_memqi_1_n): Likewise.
7625 (a peephole2): New.
7626
4b0b9adb 76272003-02-28 Richard Sandiford <rsandifo@redhat.com>
d9d1d6bf 7628
7629 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
7630 #ifndef __mips16.
7631
96b74343 76322003-02-28 Jan Hubicka <jh@suse.cz>
c3988e3b 7633
7634 * combine.c (gen_lowpart_for_combine): Update handling of
7635 subregs_of_mode
7636 * flow.c (life_analysis, mark_used_regs): Likewise.
7637 * regclass.c (subregs_of_mode): Turn into single bitmap.
7638 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
7639 dealing with subregs_of_mode
7640 * regs.h (subregs_of_mode): Update prototype.
7641
263c416c 76422003-02-28 Josef Zlomek <zlomekj@suse.cz>
7643
7644 * emit-rtl.c (set_reg_attrs_for_parm): New function.
7645 * rtl.h (set_reg_attrs_for_parm): New exported function.
7646 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
7647 set_reg_attrs_from_mem.
7648
5f6af493 76492003-02-27 Roger Sayle <roger@eyesopen.com>
7650 Zack Weinberg <zack@codesourcery.com>
7651
7652 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
7653
325ead1d 76542003-02-27 Kazu Hirata <kazu@cs.umass.edu>
7655
7656 * reload1.c (sext_for_mode): Remove.
7657 (reload_cse_move2add): Use trunc_int_for_mode instead of
7658 sext_for_mode.
7659 (move2add_note_store): Likewise.
7660 Reset register information if we see a set in non-integer
7661 mode.
7662
01fa74cc 76632003-02-27 David Edelsohn <edelsohn@gnu.org>
7664
82a5e7ab 7665 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
7666 option.
7667 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
7668 * config/rs6000/aix51.h: Same.
7669 * config/rs6000/aix52.h: Same.
01fa74cc 7670 * config/rs6000/power4.md: Additional VMX bypasses.
7671
e4de0dc0 76722003-02-27 Geert Bosch <bosch@gnat.com>
7673
7674 * toplev.c (print_version): Add indentation for GGC heuristics and
7675 output after printing version information.
7676
da052aaf 76772003-02-27 James E Wilson <wilson@tuliptree.org>
7678
7679 * combine.c (simplify_comparison): Require integral mode when
7680 permuting SUBREG with AND.
7681
3bc1b56e 76822003-02-27 Steve Ellcey <sje@cup.hp.com>
7683
7684 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
7685
caedf871 76862003-02-27 Nick Clifton <nickc@redhat.com>
7687
7688 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
7689 deleted when cirrus instructions were added.
7690
b7ac288f 76912003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
7692
7693 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
7694 POSIX thread support by default.
7695
2b41198e 76962003-02-27 Roger Sayle <roger@eyesopen.com>
7697
7698 * config/i386/cygwin.h: Don't include any other files directly.
7699 * config/i386/mingw32.h: Don't include cygwin.h directly.
7700 * config.gcc (cygwin, mingw32, uwin): Instead make these files
7701 explicit in the tm_files variable.
7702
b34c57e0 77032003-02-27 Alan Modra <amodra@bigpond.net.au>
7704
7705 * config/rs6000/rs6000.md: Add TI constant splitter.
7706
eb21abb2 77072003-02-26 Alexandre Oliva <aoliva@redhat.com>
7708
26d64224 7709 * builtins.c (purge_builtin_constant_p): Handle subreg of
7710 constant_p_rtx too.
7711
eb21abb2 7712 * function.c (assign_stack_local_1): Truncate constant added to
7713 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
7714
81226272 77152003-02-26 David Edelsohn <edelsohn@gnu.org>
7716
7717 * config.gcc: Add power4 to PowerPC with_cpu list.
7718
96b74343 77192003-02-26 Jan Hubicka <jh@suse.cz>
3003e3dd 7720
7721 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
7722
77a89ce1 77232003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7724
7725 * gcov-dump.c (print_prefix): Fix signedness warning.
7726 * gcov-io.h (struct counter_section, struct counter_section_data): New.
7727 (struct function_info): n_arc_counts field removed, n_counter_sections,
7728 counter_sections fields added.
7729 (struct gcov_info): arc_counts, n_arc_counts fields removed,
7730 n_counter_sections, counter_sections fields added.
7731 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
7732 profile sections.
7733 * profile.h (MAX_COUNTER_SECTIONS): New.
7734 (struct section_info): New.
7735 (struct profile_info): count_instrumented_edges,
7736 count_edges_instrumented_now fields removed, n_sections, section_info
7737 fields added.
7738 (find_counters_section): Declare.
7739 * profile.c (struct function_list): count_edges field removed,
7740 n_counter_sections, counter_sections fields added.
7741 (set_purpose, label_for_tag, build_counter_section_fields,
7742 build_counter_section_value, build_counter_section_data_fields,
7743 build_counter_section_data_value, build_function_info_fields,
7744 build_function_info_value, build_gcov_info_fields,
7745 build_gcov_info_value): New static functions.
7746 (find_counters_section): New function.
7747 (instrument_edges, get_exec_counts, compute_branch_probabilities,
7748 branch_prob, create_profiler): Modified to support multiple profile
7749 sections.
7750
81d1e315 77512003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7752
7753 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
7754 is 8 * STACK_BOUNDARY.
7755 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
7756
13c6e1bb 77572003-02-26 Michael Matz <matz@suse.de>
7758
7759 * ra-colorize.c (merge_moves): Fix list handling.
7760
2c6c7d8b 77612003-02-26 Nick Clifton <nickc@redhat.com>
7762
7763 * config/arm/arm.c (is_load_address): Rename to...
181a72b4 7764 (arm_memory_load_p) ... this and make it check for SUBREGs and
7765 constant loads that will be converted into loads from the
7766 minipool.
7767 (is_cirrus_insn): Rename to ...
7768 (arm_cirrus_insn_p): ... this, for consistency. Replace test
7769 of CIRRUS_NO with CIRRUS_NOT.
7770 (cirrus_reorg): Use renamed functions.
7771 (note_invalid_constants): Change from a void function to bool.
7772 Add an extra parameter, saying whether the fixups should be
7773 pushed. Return true if fixups are needed.
7774 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
7775 of CIRRUS_NO with CIRRUS_NOT.
7776 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
7777 other floating point co-processors can also affect this.
7778 * config/arm/arm.md ("type" attribute): Add mav_farith and
7779 mav_dmult. Replace references to "cirrus_type" attribute with
7780 "type".
7781 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
7782 ("cirrus_type" attribute): Delete - use "type" instead.
7783 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
7784 'normal'.
2c6c7d8b 7785
96b74343 77862003-02-25 Jan Hubicka <jh@suse.cz>
376c21d1 7787
7788 * objc-act.c: Include cgraph.h
7789 (mark_referenced_methods): New function.
7790 (objc_init): Call it.
7791 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
7792
7793 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
7794 mode.
7795
7796 * optabs.c (expand_fix): Do not widen the input operand.
7797
7798 * expr.c (emit_group_store): Fix crash when converting single
7799 register into complex register.
7800
7801 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
7802 * alias.c: Include timevar.h
7803 (init_alias_analysis): Set timevar
7804 * jump.c: Include timevar.h
7805 (rebuild_jump_labels): Set timevar
7806 * regcalss.c: Include timevar.h
7807 (reg_scan): Set timevar
7808 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
7809
ce32fe65 78102003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7811
7812 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
7813
7814 * Makefile.in (loop-unroll.o): New.
7815 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
7816 (unroll_and_peel_loops): Declare.
7817 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
7818 flag_old_unroll_loops.
7819 * loop.c (loop_invariant_p): Ditto.
7820 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
7821 flag_old_unroll_all_loops.
7822 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
7823 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
7824 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
7825 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
7826 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
7827 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
7828 PARAM_MAX_ONCE_PEELED_INSNS): New.
7829 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
7830 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
7831 instead of old one.
7832 (flag_peel_loops): New.
7833 (lang_independent_options): The new flags added.
7834 (rest_of_compilation): Call new unroller.
7835 (process_options): Setup flags for coexistence of old and new unroller.
7836 * doc/invoke.texi: Document new options.
7837 * doc/passes.texi: Document new unroller pass.
7838
7df58c71 78392003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
7840
7841 * fixinc/fixincl.x: Regenerate
7842
39e04906 78432003-02-26 Josef Zlomek <zlomekj@suse.cz>
7844
7845 * function.c (assign_parms): Set reg_attrs for parameters passed in
7846 registers.
7847
0beb646c 78482003-02-26 Alan Modra <amodra@bigpond.net.au>
7849
b0c472e5 7850 PR target/9681
0beb646c 7851 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
7852
ddca8899 78532003-02-25 David Edelsohn <edelsohn@gnu.org>
7854
7855 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
7856 pseudo-op.
7857
a4589b78 78582003-02-25 Roger Sayle <roger@eyesopen.com>
7859
7860 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
7861 * cse.c (invalidate_skipped_set): Likewise.
7862 * integrate.c (subst_constants): Likewise.
7863 * jump.c (reversed_comparison_code_parts): Likewise.
7864 * loop.c (canonicalize_condition): Likewise.
7865 * simplify-rtx.c (simplify_relational_operation): Likewise.
7866
982c684c 78672003-02-25 Roger Sayle <roger@eyesopen.com>
7868
7869 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
7870 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
7871 the appropriate macro to define built-in function.
7872 (fmod,fmodf,fmodl): New built-in functions.
7873
7874 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
7875
242e3938 78762003-02-25 Richard Henderson <rth@redhat.com>
7877
7878 * config/i386/i386.c (function_arg): Pass variable sized
7879 structures correctly on the stack.
7880
6f0a593b 78812003-02-25 Kazu Hirata <kazu@cs.umass.edu>
7882
7883 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
7884 does not reduce the cost of SET.
7885
29c25da4 78862003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7887
7888 PR target/9732
7889 * config/rs6000/rs6000.c (first_reg_to_save): Handle
7890 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
7891 (rs6000_emit_prologue): Likewise.
7892 (rs6000_emit_epilogue): Likewise.
7893 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
7894 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
7895
2d8a350e 78962003-02-25 Richard Henderson <rth@redhat.com>
7897
7898 * real.c (real_to_integer2): Force overflow result only for
7899 unsigned overflow.
7900
84766aa0 79012003-02-25 Kazu Hirata <kazu@cs.umass.edu>
7902
7903 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
7904
b9dd9156 79052003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
181a72b4 7906 Richard Henderson <rth@redhat.com>
b9dd9156 7907
7908 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
d59c62ec 7909 there is no similar load.
b9dd9156 7910
9b7c6f02 79112003-02-25 Vladimir Makarov <vmakarov@redhat.com>
181a72b4 7912 Richard Henderson <rth@redhat.com>
9b7c6f02 7913
7914 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
7915 sched-rgn.c.
7916 (add_forward_dependence): New function prototype.
7917
7918 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
7919 sched-init.h.
7920 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
7921 them to haifa-sched.c.
7922
7923 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
7924 haifa_classify_insn): Move them from sched-rgn.c.
7925
7926 * sched-deps.c (add_dependence): Return flag of creating a new
7927 entry.
7928 (add_forward_dependence): New function.
7929 (compute_forward_dependences): Use the function.
20eac5f4 7930
9b7c6f02 7931 * sched-ebb.c (earliest_block_with_similiar_load): New function.
7932 (add_deps_for_risky_insns): New function.
7933 (schedule_ebb): Call the function.
7934
79352003-02-20 Aldy Hernandez <aldyh@redhat.com>
ad92037a 7936
181a72b4 7937 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
7938 TARGET_VECTOR_OPAQUE_P. Document accordingly.
ad92037a 7939
181a72b4 7940 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
7941 opaque types fail.
ad92037a 7942
181a72b4 7943 * c-typeck.c (comptypes): Change call to vector_types_compatible
7944 to vector_opaque_p.
7945 (convert_for_assignment): Call vector_opaque_p instead of
7946 vector_types_compatible.
7947 (really_start_incremental_init): Disallow initialization of opaque
7948 types.
ad92037a 7949
181a72b4 7950 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
7951 Define TARGET_VECTOR_OPAQUE_P.
7952 (TARGET_INITIALIZER): Same.
ad92037a 7953
181a72b4 7954 * target.h (struct gcc_target): Remove vector_types_compatible.
7955 Add vector_opaque_p.
ad92037a 7956
181a72b4 7957 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
7958 Remove.
7959 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
7960 a vector type. Change return type to bool.
7961 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
7962 (TARGET_VECTOR_OPAQUE_P): Define.
ad92037a 7963
181a72b4 7964 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
7965 target hook.
7966 Include target.h.
7967 (cp_parser_init_declarator): Fix typo in function comments.
ad92037a 7968
96b74343 79692003-02-25 Jan Hubicka <jh@suse.cz>
6ce54148 7970
7971 * Makefile.in (lcm.o): Add dependency on function.h
7972 * lcm.c (function.h): Include.
7973 * i386.c (machine_function, ix86_stack_locals,
7974 * ix86_save_varrargs_registers) : Move to
7975 ...
7976 * i386.h (machine_function, ix86_stack_locals,
7977 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
7978 (ix86_optimize_mode_switching): New.
7979 * i386.md (fix patterns): Set ix86_optimize_mode_switching
7980
8281e5d5 79812003-02-25 Nick Clifton <nickc@redhat.com>
7982
7983 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
7984 of fourth arg is 'fndecl' not 'indirect'. Update comment
7985 describing the function's parameters.
7986
96b74343 79872003-02-24 Jan Hubicka <jh@suse.cz>
a1043dde 7988
7989 * combine.c (simplify_shift_const): Fix previous patch.
7990
b6f7edfa 79912003-02-24 Jeff Law <law@redhat.com>
7992
7993 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
7994 alternative.
7995 (testsi_1, testhi_1, testqi_1): Likewise.
7996
219cff1b 79972003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7998
7999 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
8000 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
8001 * doc/extend.texi (Tru64 Pragmas): Reflect this.
8002
8003 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
20eac5f4 8004 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
219cff1b 8005 * fixinc/fixincl.x: Regenerate.
8006 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
8007 testcase.
8008 Fixes PR c/5059, c/6126, other/9671.
20eac5f4 8009
c5c22354 80102003-02-24 Roger Sayle <roger@eyesopen.com>
8011
8012 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
8013 from handle_braces in "%{...}".
8014
cec78553 80152003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
8016
8017 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
8018 (prepare_move_operands): Handle TLS operands.
8019 (tls_symbolic_operand): New.
8020 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
8021 (legitimize_pic_address): Do nothing for the TLS symbol.
8022 (sh_encode_section_info): Handle TLS case.
8023 (sh_strip_name_encoding): Drop TLS encoding.
8024 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
8025 * config/sh/sh.h (SH_TLS_ENCODING): Define.
8026 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
8027 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
8028 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
8029 * config/sh/sh.md: Define TLS UNSPEC constants.
8030 (type): Add tls_load.
8031 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
8032 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
8033 ("tls_initial_exec"): New insn.
8034 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
8035 ("load_gbr"): New insn.
8036
8037 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
181a72b4 8038 * configure: Regenerate.
cec78553 8039
a35a63ff 80402003-02-24 Alan Modra <amodra@bigpond.net.au>
8041
b34c57e0 8042 PR 9297, PR 9722
a35a63ff 8043 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
8044 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
8045 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
8046 (enum block_op_methods): Reorder for better store_expr optimization.
8047 * expr.c (store_expr): Test bit 1 of "want_value" for call param
8048 stores, test bit 0 for original want_value meaning. Pass
8049 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
8050 recursive calls, and calls to expand_param.
8051 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
8052 expected, set target to 0 rather than to subtarget. Formatting.
8053
7cc73d08 80542003-02-23 Kazu Hirata <kazu@cs.umass.edu>
8055
8056 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
8057
2577ed5c 80582003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8059
8060 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
8061 new default behavior.
8062 * ggc-common.c: Include sys/resource.h.
8063 (ggc_rlimit_bound): New function.
8064 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
8065 defaults to account for rlimits.
8066
706b598d 80672003-02-22 Richard Henderson <rth@redhat.com>
8068
8069 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
8070
80712003-02-22 Kelley Cook <kelley@dwhoops.info>
8072
181a72b4 8073 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
706b598d 8074 (ix86_tune_string): Rename from ix86_cpu_string.
8075
47a66cd7 80762003-02-22 Kelley Cook <kelleycook@comcast.net>
8077
181a72b4 8078 * config/i386/i386.c: Replace "mcpu" with "mtune".
8079 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
8080 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
8081 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
8082 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
47a66cd7 8083
56935b5d 80842003-02-23 Andreas Schwab <schwab@suse.de>
8085
8086 * config.gcc: Delete references to m68k/t-linux and
8087 m68k/t-linux-aout.
8088 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
8089
96b74343 80902003-02-22 Jan Hubicka <jh@suse.cz>
badb3374 8091
8092 * toplev.c (rest_of_compilation): Apply fotgotten hunk
8093 of track scheduling patch.
8094
96b74343 80952003-02-22 Jan Hubicka <jh@suse.cz>
08684909 8096
8097 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
8098 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
8099
96b74343 81002003-02-22 Jan Hubicka <jh@suse.cz>
13337765 8101
8102 * c-decl.c (c_expand_body_1): Fix.
8103
96b74343 81042003-02-22 Jan Hubicka <jh@suse.cz>
ae01b312 8105
8106 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
8107
8108 * cfgcleanup.c (try_forward_edges): Don't check loop structures
8109 when not optimizing.
8110 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
8111 when not expensive.
8112 * toplev.c (rest_of_compilation): Duplicate loop headers only when
8113 optimizing; Delete trivially dead insns early; fix optimize check.
8114
8115 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
8116 dependency on cgraph.h
8117 * c-decl.c: Include cgraph.h
8118 (finish_function): Update call of tree_inlinable_function_p.
8119 * c-objc-common.c: Include cgraph.h
8120 * cgraph.h: New file.
8121 * cgraphunit.c: New file.
8122 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
8123 (cgraph_nodes, cgraph_n_nodes): Globalize.
8124 (cgraph_finalize_function, cgraph_finalize_compilation_unit
8125 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
8126 Move into cgraphunit.c
8127 * tree-inline.c: Include cgraph.h
8128 * tree-inline.c: Include cgraph.h
8129
98a08622 81302003-02-22 Josef Zlomek <zlomekj@suse.cz>
8131
8132 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
8133 for copying a register.
8134
da980a43 81352003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
8136
8137 PR other/3782
8138 * toplev.c (process_options): If flag_detailed_statistics is set,
8139 then set time_report as well.
8140
17a74abe 8141 PR c/8828
8142 * jump.c (never_reached_warning): Don't fall through BARRRIER
da980a43 8143 insns. Update comments to reflect what the function really does.
8144
e9f80ff5 81452003-02-21 Roger Sayle <roger@eyesopen.com>
8146
8147 * fold-const.c (omit_one_operand): No longer static.
8148 * tree.h (omit_one_operand): Prototype here.
8149 (div_and_round_double): Keep fold-const.c prototypes together.
8150 * builtins.c (builtin_mathfn_code): Handle binary built-in
8151 funtions, such as "pow" and "atan2".
8152 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
8153 Simplify optimizations using "type" the builtin's return type.
8154
6360286e 81552003-02-22 Hans-Peter Nilsson <hp@axis.com>
8156
9d6707d3 8157 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
8158 Fix functionalization typo.
8159
6360286e 8160 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
8161 in an asm.
8162
7d83df95 81632003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8164
8165 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
8166 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
8167 documentation.
8168 * ggc-common.c: Include params.h
8169 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
8170 init_ggc_heuristics): New functions.
8171 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
8172 init_ggc_heuristics): Prototype.
8173 * toplev.c (print_version): Output GGC heuristics.
8174 (parse_options_and_default_flags): Call init_ggc_heuristics.
8175
96b74343 81762003-02-22 Jan Hubicka <jh@suse.cz>
1f27494a 8177
8178 * i386.c (def_builtin): Special case 64bit builtins.
8179 (MASK_SSE164, MASK_SSE264): New constants.
8180 (builtin_description): Add 64bit builtins.
8181 (ix86_init_mmx_sse_builtins): Likewise.
8182 * i386.h (enum ix86_builtins): Likewise.
8183 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
8184 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
8185 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
8186 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
8187 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
8188 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
8189 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
8190
96b74343 81912003-02-22 Jan Hubicka <jh@suse.cz>
b28bedce 8192
8193 * i386.c (builtin_description): Add __builtin_ia32_paddq and
8194 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
8195 and __builtin_ia32_psubq128.
8196 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
8197 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
8198 (mmx_adddi3, mmx_subdi3): New.
8199 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
8200 * xmmintrin.h (_mm_movepi64_pi64): New.
8201 (_mm_add_epi64, _mm_sub_epi64): fix.
8202 (_mm_mul_pu16): Rename to...
8203 (_mm_mul_su32): ... this one.
8204
8205 * builtins.c (expand_builtin_expect): Do not predict
8206 flag_guess_branch_prob is not set.
8207 * c-semantics.c (expand_stmt): Likewise.
8208 * predict.c (predict_insn): Likewise.
8209 * stmt.c (expand_continue_loop): Likewise.
8210 * toplev.c (rest_of_compilation): Do not call
8211 note_prediction_to_br_prob and note_prediction_to_br_prob
8212 when not optimizing.
8213
96b74343 82142003-02-21 Jan Hubicka <jh@suse.cz>
c96040c6 8215
8216 * cfgrtl.c (commit_edge_insertions): Call
8217 find_many_sub_basic_block only when some code has been emitted.
8218 (commit_edge_insertions_watch_calls): Bring into sync with
8219 commit_edge_insertions
8220
96b74343 82212003-02-21 J"orn Rennecke <joern.rennecke@superh.com>
4aa67c38 8222
8223 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
8224
8225 * sh.md (binary_sf_op): Use extra constant operand instead of
8226 negating constant operand 4.
8227 * sh.c (sh_expand_binop_v2sf): Supply it.
8228
7825551f 82292003-02-21 Zack Weinberg <zack@codesourcery.com>
8230
8231 * cpphash.h (struct lexer_state): Add directive_wants_padding.
8232 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
8233 for directives of type INCL.
8234 (glue_header_name, parse_include): Use get_token_no_padding.
8235 * cppmacro.c (replace_args): If directive_wants_padding,
8236 provide padding tokens.
8237
d5141bbe 82382003-02-21 Kazu Hirata <kazu@cs.umass.edu>
8239
8240 * config/h8300/h8300.md (a peephole2): New.
8241
96b74343 82422003-02-21 Jan Hubicka <jh@suse.cz>
43585301 8243
8244 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
8245 (commit_edge_insertions): Call find_many_sub_basic_blocks
8246
8247 * reg-stack.c (convert_regs): Cleax aux for blocks.
8248
96b74343 82492003-02-21 Jan Hubicka <jh@suse.cz>
206ff28d 8250
8251 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
8252
313b27fa 82532003-02-21 Glen Nakamura <glen@imodulo.com>
8254
8255 PR optimization/8613
8256 * builtins.c (expand_builtin): Emit postincrements before expanding
8257 builtin functions.
8258
2d9f6ba6 82592003-02-21 Ben Elliston <bje@redhat.com>
8260
8261 PR other/5634
8262 * doc/install.texi (Configuration): Explain using $HOME instead of
8263 the ~ metacharacter when referring to home directories.
8264
c323a7f4 82652003-02-20 Alexandre Oliva <aoliva@redhat.com>
8266
8267 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8268 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8269 '${exec_prefix}' (in addition to the expansion thereof) as
8270 relocatable.
8271 * configure: Rebuilt.
8272
e6b14cb4 82732003-02-20 Kazu Hirata <kazu@cs.umass.edu>
8274
8275 * config/h8300/h8300.md (addhi3_incdec): Change the name to
8276 *addhi3_incdec.
8277 (addsi3_incdec): Change the name to *addsi3_incdec.
8278
63160ce9 82792003-02-20 Roger Sayle <roger@eyesopen.com>
8280
8281 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
8282
aa9c2ce2 82832003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
8284
8285 PR fortran/9038
8286 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
8287 options to be ignored.
8288 (c_common_decode_option): Ignore them when preprocessing.
8289
96b74343 82902003-02-20 Jan Hubicka <jh@suse.cz>
38099b6a 8291
63160ce9 8292 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
8293 global variables.
8294 (lang_independent_options): Add -fsched2-use-superblocks
8295 -fsced2-use-traces.
38099b6a 8296 (rest_of_compilation): Deal with it.
8297 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
63160ce9 8298 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
8299 Declare.
38099b6a 8300 * rtl.h (reg_to_stack): Update prototype.
8301 * reg-stack.c (reg_to_stack): Return when something has changed;
8302 update liveness when executing after superblock scheduling.
8303
8304 * combine.c (simplify_shift_const): Simplify few special cases
8305 into constants.
8306
76889587 83072003-02-20 David Edelsohn <edelsohn@gnu.org>
8308
8309 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
8310 (add.,subf.,neg.): Change attribute to fast_compare.
8311 All DFA descriptions updated.
8312
95f3173a 83132003-02-20 Nathan Sidwell <nathan@codesourcery.com>
8314
8315 Change base class access representation.
8316 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
8317 TREE_VIA_PRIVATE): Remove.
8318 (BINFO_BASEACCESSES): New binfo elt.
8319 (BINFO_BASEACCESS): New accessor.
8320 (BINFO_ELTS): Increase.
8321 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
8322 (access_public_node, access_protected_node,
8323 access_private_node): New global nodes.
8324 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
8325 * dbxout.c (dbxout_type): Adjust.
8326 * dwarf2out.c (gen_inheritance_die): Add access parameter.
8327 (gen_member_die): Adjust.
8328 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
8329 (output_type): Adjust.
8330 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
8331
8332 Change base class access representation. Share virtual base
8333 binfos.
8334 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
8335 call.
8336 * cp/class.c (build_base_path): Likewise.
8337 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
8338 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
8339 (make_new_vtable): Adjust.
8340 (force_canonical_binfo_r): Delete.
8341 (force_canonical_binfo): Delete.
8342 (mark_primary_virtual_base): Delete.
8343 (dfs_unshared_virtual_bases): Delete.
8344 (mark_primary_bases): Adjust.
8345 (maybe_warn_about_overly_private_class): Adjust.
8346 (dfs_base_derived_from): Delete.
8347 (base_derived_from): Follow the inheritance chain.
8348 (struct find_final_overrider_data): Add vpath member.
8349 (dfs_find_final_overrider): Adjust.
8350 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
8351 (find_final_overrider): Adjust.
8352 (update_vtable_entry_for_fn): Adjust.
8353 (modify_all_vtables): Adjust.
8354 (walk_subobject_offsets): Adjust.
8355 (layout_nonempty_base_or_field): Adjust.
8356 (layout_empty_base): Remove last parameter. Adjust.
8357 (build_base_field): Adjust.
8358 (build_base_fields): Adjust.
8359 (propagate_binfo_offsets): Remove last parameter. Adjust.
8360 (dfs_set_offset_for_unshared_vbases): Delete.
8361 (layout_virtual_bases): Adjust.
8362 (finish_struct_1): Adjust.
8363 (init_class_processing): Don't init access nodes.
8364 (dfs_get_primary_binfo): Delete.
8365 (get_primary_binfo): Adjust.
8366 (dump_class_hierarchy_r): Remove most derived arg, add IGO
8367 parameter. Adjust.
8368 (dump_class_hierarchy): Adjust.
8369 (finish_vtbls): Adjust.
8370 (get_original_base): Delete.
8371 (build_vtt_inits): Adjust.
8372 (dfs_build_secondary_vptr_vtt_inits): Adjust.
8373 (dfs_ctor_vtable_bases_queue_p): Adjust.
8374 (build_ctor_vtbl_group): Adjust.
8375 (dfs_accumulate_vtbl_inits): Adjust.
8376 (build_vtbl_initializer): Adjust.
8377 (build_vbase_offset_vtbl_entries): Adjust.
8378 (add_vcall_offset_vtbl_entries_1): Adjust.
8379 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
8380 (access_*_node): Remove.
8381 (CANONICAL_BINFO): Delete.
8382 (BINFO_UNSHARED_MARKED): Remove.
8383 (BINFO_MARKED): Set LANG_FLAG_0 directly.
8384 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
8385 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
8386 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
8387 Delete.
8388 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
8389 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
8390 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
8391 Delete.
8392 (BINFO_DEPENDENT_BASE_P): New.
8393 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
8394 index.
8395 (markedp, unmarkedp): Adjust.
8396 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
8397 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
8398 find_vbase_instance, binfo_for_vbase): Delete.
8399 (copied_binfo, original_binfo): Declare.
8400 (finish_base_specifier): Add virtual_p arg.
8401 (unshare_base_binfos): Delete.
8402 (copy_base_binfos): Declare.
8403 (reverse_path): Delete.
8404 * cp/decl.c (xref_basetypes): Access and virtuality passed
8405 differently. Don't copy direct base binfos here. Call
8406 copy_base_binfos.
8407 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
8408 (initialize_vtbl_ptrs): Adjust.
8409 (expand_member_init): Adjust.
8410 * cp/parser.c (cp_parser_base_specifier): Adjust.
8411 * cp/pt.c (instantiate_class_template): Adjust.
8412 (get_template_base_recursive): Adjust.
8413 * cp/rtti.c (get_pseudo_ti_init): Adjust.
8414 (get_pseudo_ti_desc): Adjust.
8415 * cp/tree.c (unshare_base_binfos): Rename to ...
8416 (copy_base_binfos): ... here, reimplement.
8417 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
8418 (reverse_path): Remove.
8419 * cp/typeck.c (get_delta_difference): Adjust error messages.
8420 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
8421 * cp/search.c (lookup_base_r): Adjust.
8422 (dynamic_cast_base_recurse): Adjust.
8423 (canonical_binfo): Remove.
8424 (dfs_canonical_queue): Remove.
8425 (dfs_assert_unmarked_p): Remove.
8426 (assert_canonical_unmarked): Remove.
8427 (shared_marked_p, shared_unmarked_p): Remove.
8428 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
8429 (dfs_access_in_type): Adjust.
8430 (access_in_type): Adjust.
8431 (dfs_accessible_queue_p): Adjust.
8432 (dfs_accessible_p): Adjust.
8433 (is_subobject_of_p_1, is_subobject_of_p): Remove.
8434 (struct lookup_field_info): Remove from_dep_base_p field.
8435 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
8436 (lookup_field_r): Remove dependent base code.
8437 (lookup_member): Likewise.
8438 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
8439 (dfs_unmarked_real_bases_queue_p): Remove.
8440 (dfs_marked_real_bases_queue_p): Remove.
8441 (dfs_skip_vbases): Remove.
8442 (dfs_get_pure_virtuals): Adjust.
8443 (markedp, unmarkedp): Adjust.
8444 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
8445 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
8446 (dfs_unmark): Adjust.
8447 (dfs_get_vbase_types):Remove.
8448 (dfs_build_inheritance_graph_order): Remove.
8449 (get_vbase_types): Remove
8450 (dfs_find_vbase_instance): Remove.
8451 (find_vbase_instance): Remove.
8452 (dfs_debug_unmarkedp): Adjust.
8453 (dependent_base_p): Remove.
8454 (dfs_push_type_decls): Adjust.
8455 (dfs_push_decls): Adjust.
8456 (dfs_no_overlap_yet): Adjust.
8457 (copied_binfo): New function.
8458 (original_binfo): New function.
8459 (binfo_for_vbase): Remove.
8460
8461 Change base class access representation.
8462 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
8463 (add_interface_do): Likewise.
8464
229e1cf8 84652003-02-20 David Edelsohn <edelsohn@gnu.org>
8466
7825551f 8467 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8468 * config/rs6000/power4.md (power4-store,power4-vecstore): New
229e1cf8 8469 insn reservations.
8470 (power4-fpstore): Compact.
8471
479450a0 84722003-02-20 Kazu Hirata <kazu@cs.umass.edu>
8473
8474 * config/h8300/h8300.md (*iorsi3_w): New.
8475
082372f1 84762003-02-20 Josef Zlomek <zlomekj@suse.cz>
8477
8478 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
8479 * rtl.c (reg_note_name): Likewise.
8480 * rtl.h (enum reg_note): Likewise.
8481 * doc/invoke.texi: Likewise.
8482 * doc/rtl.texi: Likewise.
8483
3ff6ad35 84842003-02-20 Josef Zlomek <zlomekj@suse.cz>
8485
8486 * bb-reorder.c (find_traces_1_round): Fix comment typo.
8487
c7590f7e 84882003-02-19 Roger Sayle <roger@eyesopen.com>
8489
8490 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
8491 addition in the presence of signaling NaNs.
8492
96dadd9c 84932003-02-19 Krister Walfridsson <cato@df.lth.se>
8494
8495 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
8496
0372ccb5 84972003-02-19 Kazu Hirata <kazu@cs.umass.edu>
8498
8499 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
8500 ORing with 0xffff??00 with the highest bit of the ?? part set.
8501 (compute_logical_op_length): Update.
8502 (compute_logical_op_cc): Likewise.
8503
d5ade7f4 85042003-02-19 Josef Zlomek <zlomekj@suse.cz>
8505
8506 * bb-reorder.c (find_traces_1_round): Fixed condition for small
8507 destination block with multiple predecessors.
8508 (connect_traces): Check whether the block is a start of trace.
8509
96b74343 85102003-02-19 Jan Hubicka <jh@suse.cz>
6a635b57 8511
8512 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
8513 * function.c (assign_params): Likewise.
8514 * arm-protos.h (arm_init_cumulative_args): Update prototype.
8515 * arm.c (arm_init_cumulative_args): Update function.
8516 * arm.h (INIT_CUMULATIVE_ARGS): Update.
8517 * avr-protos.h (init_cumulative_args): Update prototype.
8518 * avr.c (init_cumulative_args): Update function.
8519 * avr.h (INIT_CUMULATIVE_ARGS): Update.
8520 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
8521 * d30v.c (d30v_init_cumulative_args): Update function.
8522 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
8523 * frv-protos.h (frv_init_cumulative_args): Update prototype.
8524 * frv.c (frv_init_cumulative_args): Update function.
8525 * frv.h (INIT_CUMULATIVE_ARGS): Update.
8526 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
8527 * pa.h (INIT_CUMULATIVE_ARGS): Update.
8528 * sparc-protos.h (init_cumulative_args): Update prototype.
8529 * sparc.c (init_cumulative_args): Update function.
8530 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
8531 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
8532
b6c5c939 85332003-02-19 Kazu Hirata <kazu@cs.umass.edu>
8534
8535 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
8536 (*ashiftsi_sextqi_7): Likewise.
8537
609088c0 85382003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8539
8540 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
8541 ISO C99 and C++.
8542
8543 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
8544 for C++ on IRIX 6.5.1[89].
8545 * fixinc/tests/base/internal/sgimacros.h: New file.
8546
8547 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
8548 * fixinc/tests/base/internal/wchar_core.h: New file.
7825551f 8549
609088c0 8550 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
8551 socklen_t definition.
8552 * fixinc/fixincl.x: Regenerate.
8553 * fixinc/tests/base/sys/socket.h: New file.
8554 Fixes PR libgcj/9652.
8555
96b74343 85562003-02-19 Jan Hubicka <jh@suse.cz>
579be09f 8557
8558 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
8559
4162bd6d 85602003-02-19 David Edelsohn <edelsohn@gnu.org>
8561
8562 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
8563 align_jumps_max_skip and align_loops_max_skip.
8564
85652003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
8566
8567 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
8568 test size if named section.
8569
a0c9f8fa 85702003-02-19 Daniel Jacobowitz <drow@mvista.com>
8571
8572 * expr.c (expand_expr): Use gen_int_mode for the argument
8573 to gen_rtx_MULT.
8574
96b74343 85752003-02-19 Jan Hubicka <jh@suse.cz>
073c9cd5 8576
8577 * i386.md (cosxf2): Fix conditional.
8578
d16b96a9 85792003-02-19 Kazu Hirata <kazu@cs.umass.edu>
8580
8581 * config/h8300/h8300.md (extendqisi2): Change to an expander.
8582 (*extendqisi2_h8300): New.
8583 (*extendqisi2_h8300hs): Likewise.
8584
90b024e5 85852003-02-19 Kazu Hirata <kazu@cs.umass.edu>
8586
8587 * config/h8300/h8300-protos.h: Update the prototype for
8588 split_adds_subs. Remove the prototypes for
8589 const_int_le_2_operand and const_int_le_6_operand.
8590 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
8591 (const_int_le_2_operand): Remove.
8592 (const_int_le_6_operand): Likewise.
8593 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
8594 for const_int_le_2_operand and const_int_le_6_operand.
8595 * config/h8300/h8300.md: Update all uses of split_adds_subs.
8596 (a peephole2): New.
8597
96b74343 85982003-02-18 Jan Hubicka <jh@suse.cz>
91920de0 8599
8600 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
8601 (cgraph_expand_function): Rewrite.
8602
d3ea5d40 86032003-02-18 Matt Austern <austern@apple.com>
c7590f7e 8604
d3ea5d40 8605 * toplev.c, langhooks.c, langhooks-def.h: Move
7825551f 8606 write_global_declarations from toplev.c to langhooks.c.
c7590f7e 8607
5b145e0c 86082003-02-18 Kazu Hirata <kazu@cs.umass.edu>
8609
8610 * config/h8300/h8300.c (general_operand_src): Always check
8611 MODE.
8612 (general_operand_dst): Likewise.
8613
81859e4d 86142003-02-18 Roger Sayle <roger@eyesopen.com>
8615
8616 * convert.c (convert_to_real): Also optimize (float)log(x) into
8617 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
8618
02359f85 86192003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
8620
7825551f 8621 * config/sh/sh.c (unspec_caller_rtx_p): New.
02359f85 8622 (sh_cannot_copy_insn_p): New.
7825551f 8623 (TARGET_CANNOT_COPY_INSN_P): New.
02359f85 8624
d0a31bd8 86252003-02-18 Richard Henderson <rth@redhat.com>
8626
8627 * c-common.c (handle_used_attribute): Accept static data too.
8628
86292003-02-18 Nick Clifton <nickc@redhat.com>
7825551f 8630 Aldy Hernandez <aldyh@redhat.com>
b1cb12a3 8631
7825551f 8632 * testsuite/gcc.dg/20030218-1.c: New.
b1cb12a3 8633
7825551f 8634 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
b1cb12a3 8635
7825551f 8636 * target-def.h (TARGET_INITIALIZER): Add
8637 TARGET_VECTOR_TYPES_COMPATIBLE.
8638 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
b1cb12a3 8639
7825551f 8640 * target.h (struct gcc_target): Add field vector_types_compatible.
b1cb12a3 8641
7825551f 8642 * c-typeck.c (comptypes): Take into account
8643 TARGET_VECTOR_TYPES_COMPATIBLE.
8644 (convert_for_assignment): Same.
b1cb12a3 8645
7825551f 8646 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
8647 (rs6000_spe_vector_types_compatible): New.
8648 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
b1cb12a3 8649
643713c0 86502003-02-19 Andreas Schwab <schwab@suse.de>
8651
8652 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
8653 * toplev.c: Include langhooks-def.h.
8654
3c002ace 86552003-02-18 Chris Demetriou <cgd@broadcom.com>
8656
8657 * config/mips/mips.h (enum processor_type): Sort entries
8658 alphabetically.
8659 * config/mips/mips.md (define_attr cpu): Sync with processor_type
8660 enum values, including adding entries that were missing.
8661
96b74343 86622003-02-18 J"orn Rennecke <joern.rennecke@superh.com>
0a41c525 8663
c7590f7e 8664 * sh.c (calc_live_regs): Also check GET_CODE when checking if
8665 initial value for PR_REG is still the PR_REG register.
0a41c525 8666
3823bd9c 86672003-02-18 Jim Wilson <wilson@redhat.com>
8668
8669 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
8670 instruction in output template.
8671 (bsp_value): Change output template from string to C code, add %,
8672 before actual instruction.
8673 (flushrs): Mark as not predicable.
8674
81a897fb 86752003-02-18 Krister Walfridsson <cato@df.lth.se>
8676
8677 * inclhack.def (netbsd_bogus_semicolon): New fix.
8678 * fixincl.x: Rebuilt.
8679 * tests/base/ctype.h: Update.
8680
22331643 86812003-02-18 Roger Sayle <roger@eyesopen.com>
8682
8683 * fold-const.c (negate_expr_p): New function to determine whether
8684 an expression can be negated cheaply.
8685 (fold) [MINUS_EXPR]: Use it to determine whether to transform
8686 -A - B into -B - A for floating point types.
8687
e52a3bed 86882003-02-18 Roger Sayle <roger@eyesopen.com>
8689
8690 * sbitmap.c (sbitmap_resize): New function.
8691 * sbitmap.h (sbitmap_resize): Prototype here.
8692 * recog.c (split_all_insns): Use sbitmap_resize.
8693
8c960e2a 86942003-02-18 Kazu Hirata <kazu@cs.umass.edu>
8695
8696 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
8697 insn length.
8698 (extendqisi2): Likewise.
8699 (*extendhisi2_h8300): Likewise.
8700
28db4d96 87012003-02-18 Matt Austern <austern@apple.com>
7825551f 8702
28db4d96 8703 * langhooks.h, langhooks-def.h: introduce new langhook,
8704 final_write_globals, with write_global_declarations as default.
8705 * toplev.c: Move invocation of wrapup_global_declarations from
8706 compile_file to new function, write_global_declarations. Change
8707 compile_file to use final_write_globals hook. Change
8708 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
7825551f 8709 conditional.
8710
05967fa2 87112003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8712
8713 * pa.md: Correct and enhance comment.
8714
41b8b07e 87152003-02-18 Geoffrey Keating <geoffk@apple.com>
8716
8717 * gcc.c (validate_switches): Don't scan past closing '}'.
8718
6b4b1c7b 87192003-02-18 Ben Elliston <bje@redhat.com>
8720
8721 PR c++/1607
8722 * doc/extend.texi (Function Attributes): Document the effect of
8723 the C++ "this" parameter on the counting of arguments for the
8724 "format" and "format_arg" attributes.
8725
aab4c015 87262003-02-17 Aldy Hernandez <aldyh@redhat.com>
8727
7825551f 8728 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
8729 (__ev_stdw): Same.
8730 (__ev_stdh): Same.
aab4c015 8731
96b74343 87322003-02-17 Jan Hubicka <jh@suse.cz>
34e8b93e 8733
8734 * recog.c (split_all_insns): Fix memory overflow.
8735
04767da6 87362003-02-17 Kazu Hirata <kazu@cs.umass.edu>
8737
8738 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
8739 (cmphi): Likewise.
8740 (*cmphi_h8300): Likewise.
8741 (*cmphi_h8300hs): Likewise.
8742 (cmpsi): Likewise.
8743 (7 peephole2): Likewise.
8744
96b74343 87452003-02-16 Jan Hubicka <jh@suse.cz>
6d0025f4 8746
8747 * c-typeck.c (build_c_cast): Fold constant variables into
8748 initial values.
8749
832570c5 87502003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8751
8752 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
8753 (Binaries): Ditto for Sinix/Reliant Unix.
8754
dfb47981 87552003-02-16 Richard Earnshaw <rearnsha@arm.com>
8756
8757 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
8758 not overlap the final result register.
8759
009f6e1c 87602003-02-16 Arend Bayer <arend.bayer@web.de>
8761 Richard Henderson <rth@redhat.com>
8762
cf97344f 8763 PR c/8068
009f6e1c 8764 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
8765 rearrange mult arguments for less recursion.
8766 (extract_muldiv): New. Prevent runaway recursion.
8767
634e627c 87682003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
8769
8770 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
8771 MASK_ALIGN_DOUBLE.
8772
17815dd7 87732003-02-15 Roger Sayle <roger@eyesopen.com>
8774
8775 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
8776 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
8777 (ext_80387_constants_table): Global table of 80387 special constants
8778 guarded by ext_80387_constants_init flag when not initialized.
8779 (init_ext_80387_constants): New function to initialize this table.
8780 (standard_80387_constant_p): Extend to recognize extra 80387
8781 constants, in XFmode, on processors where this is a win.
8782 (standard_80387_constant_opcode): New function to return the
8783 opcode associated with standard_80387_constant_p.
8784 (standard_80387_constant_rtx): New function to return the XFmode
8785 CONST_DOUBLE associated with standard_80387_constant_p.
8786 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
8787
8788 * config/i386/i386-protos.h (standard_80387_constant_opcode):
8789 Prototype here.
8790 (standard_80387_constant_rtx): Likewise.
8791
8792 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
8793 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
8794 *movtf_integer): Simplify using new standard_80387_constant_opcode.
8795
214502e1 87962003-02-15 Geoffrey Keating <geoffk@apple.com>
8797
8798 * doc/invoke.texi (Optimize Options): Correct @option syntax.
8799
2f58af60 88002003-02-15 Richard Henderson <rth@redhat.com>
8801
8802 * Makefile.in (cfglayout.o): Depend on TARGET_H.
8803 * cfglayout.c: Include target.h.
8804 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
8805 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
8806 * target.h (struct gcc_target): Add cannot_copy_insn_p.
8807
8808 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
8809 (TARGET_CANNOT_COPY_INSN_P): New.
8810 (override_options): Revert 2003-02-08 hack.
8811
9eadb793 88122003-02-15 Richard Henderson <rth@redhat.com>
8813
8814 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
8815 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
8816
a0b98322 88172003-02-15 David Edelsohn <edelsohn@gnu.org>
8818
8819 * config/rs6000/rs6000.h (processor_type): Add PPC440.
8820 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8821 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8822 TARGET_SCHED_VARIABLE_ISSUE): Define.
8823 (rs6000_use_dfa_pipeline_interface): New function.
8824 (rs6000_multipass_dfa_lookahead): New Function.
8825 (rs6000_variable_issue): New function.
8826 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
8827 (rs6000_issue_rate): Add PPC440.
8828 * config/rs6000/rs6000.md (unspec list): Correct typo.
8829 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
8830 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
8831 cmp, delayed_cr, mfcr, mtcr.
8832 (automata_option): Set "ndfa".
8833 (extendMMNN2): Update attributes.
8834 (movcc_internal1): Discourage move to non-cr0. Update
8835 attributes.
8836 (movMM_update): Update attributes.
8837 (cmpMM_internal): Update attributes.
8838 (sCC CR materialization): Update attributes.
8839 (branch patterns): Do not discourage non-cr0.
8840 (cr logical patterns): Prefer destructive register allocation.
8841 Update attributes.
8842 (movesi_from_cr): Update attribute.
8843 (mtcrf_operation): Update attribute.
8844 (mtcrfsi): Update attribute.
8845 * config/rs6000/40x.md: New file.
8846 * config/rs6000/603.md: New file.
8847 * config/rs6000/6xx.md: New file.
8848 * config/rs6000/7450.md: New file.
8849 * config/rs6000/7xx.md: New file.
8850 * config/rs6000/mpc.md: New file.
8851 * config/rs6000/power4.md: New file.
8852 * config/rs6000/rios1.md: New file.
8853 * config/rs6000/rios2.md: New file.
8854 * config/rs6000/rs64.md: New file.
8855 [Some DFA descriptions based on work by Michael Hayes]
8856
cea5721f 88572003-02-15 Richard Henderson <rth@redhat.com>
8858
8859 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
8860 successors with multiple predecessors.
8861 (connect_traces): Try harder to copy traces of length 1.
8862
8863 * function.h (struct function): Add computed_goto_common_label,
8864 computed_goto_common_reg.
8865 * function.c (free_after_compilation): Zap them.
7825551f 8866 * stmt.c (expand_computed_goto): Use them to produce one
cea5721f 8867 indirect branch per function.
8868
2a5b4716 88692003-02-15 Richard Henderson <rth@redhat.com>
8870
8871 * cfgcleanup.c: Include params.h.
8872 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
8873 too many outgoing edges from a block.
8874 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
8875 * params.def (max-crossjump-edges): New.
8876 * doc/invoke.texi: Document it.
8877
56dddaad 88782003-02-15 Richard Henderson <rth@redhat.com>
8879
7825551f 8880 * recog.c (split_all_insns): Include new blocks in life update;
8881 do a global life update.
56dddaad 8882
552fa8a2 88832003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
8884
8885 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
8886 Update copyright.
8887 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
8888 -mno-cygwin case.
8889
19901689 88902003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
8891
8892 PR optimization/7702
8893 * reload1.c (reload_cse_simplify_set): Honor
8894 CANNOT_CHANGE_MODE_CLASS.
8895
8935d57c 88962003-02-14 Alexandre Oliva <aoliva@redhat.com>
8897
8898 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
8899 function.
8900 * config/mn10300/mn10300-protos.h: Declare it.
8901 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
8902 attribute cc of instructions that may use clr.
8903
d3ca4dfe 89042003-02-14 Kazu Hirata <kazu@cs.umass.edu>
8905
8906 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
8907 (x - (x & y)) is found.
8908
7b6408ee 89092003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8910
8911 * configure.in: Fix typo.
8912 * configure: Regenerate.
8913
a306cab2 89142003-02-14 Kazu Hirata <kazu@cs.umass.edu>
8915
8916 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
8917
0defd243 89182003-02-13 Adam Nemet <anemet@lnxw.com>
a306cab2 8919
7825551f 8920 PR opt/2391
19901689 8921 * combine.c: Fix spelling in comment.
8922 (cached_nonzero_bits): New function.
8923 (cached_num_sign_bit_copies): New function.
0defd243 8924 (nonzero_bits_with_known): New macro.
8925 (num_sign_bit_copies_with_known): New macro.
19901689 8926 (nonzero_bits1): Rename from nonzero_bits. Add three new
0defd243 8927 arguments. Change calls from nonzero_bits to
8928 nonzero_bits_with_known.
19901689 8929 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
0defd243 8930 three new arguments. Change calls from num_sign_bit_copies to
8931 num_sign_bit_copies_with_known.
19901689 8932 (nonzero_bits): New macro.
8933 (num_sign_bit_copies): New macro.
8934 (update_table_tick): Don't traverse identical subexpression more
0defd243 8935 than once.
19901689 8936 (get_last_value_validate): Likewise.
0defd243 8937
64402fe6 89382003-02-13 Zack Weinberg <zack@codesourcery.com>
8939
8940 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
8941 * function.h (struct emit_status): Length of regno_pointer_align
8942 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
8943 not regno_pointer_align_length (i.e. length actually used, not
8944 length as allocated)
8945
8946 * config/i386/i386.c (struct stack_local_entry): New.
8947 (struct machine_function): Replace huge array with alist.
8948 (assign_386_stack_local): Change to match.
8949
f281c5b8 89502003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
8951
8952 * inclhack.def (hpux_long_double): Tighten select and add bypass
8953 regexp.
8954 * fixincl.x: Rebuilt.
8955
7900bf3d 89562003-02-13 Josef Zlomek <zlomekj@suse.cz>
8957
8958 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
8959 edge and block ends with a jump insn it must be simple jump.
8960
17acc97a 89612003-02-13 Daniel Jacobowitz <drow@mvista.com>
8962
8963 * Makefile.in (PREPROCESSOR_DEFINES): Add
8964 @TARGET_SYSTEM_ROOT_DEFINE@.
8965 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
8966 is specified or if building a cross compiler.
8967 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
8968 if the sysroot is under $exec_prefix.
8969 * configure: Regenerated.
8970 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
8971 defined.
8972 (struct default_include): Add add_sysroot field.
8973 (cpp_SYSROOT): Declare.
8974 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
8975 field.
8976 (cpp_SYSROOT): New variable.
8977 * cppinit.c (cpp_create_reader): Initialize
8978 CPP_OPTION (pfile, sysroot).
8979 (init_standard_includes): Handle add_sysroot. Do not
8980 add unrelocated copies of relocated directories.
8981 (COMMAND_LINE_OPTIONS): Add -isysroot.
8982 (cpp_handle_option): Handle -isysroot.
8983 * cpplib.h (struct cpp_options): Add sysroot member.
8984 * gcc.c (The Specs Language): Update description of %I.
8985 (target_system_root_changed): New variable.
8986 (process_command): Conditionalize make_relative_prefix call
8987 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
8988 target_system_root_changed.
8989 (do_spec_1): Add -isysroot to %I.
8990 * doc/invoke.texi (Spec Files): Update description of %I.
8991 * doc/install.texi (--with-sysroot): Update comment about
8992 relocation.
8993
19967eda 89942003-02-13 Kazu Hirata <kazu@cs.umass.edu>
8995
8996 * config/h8300/h8300.md (a peephole2): New.
8997
63a35b3a 89982003-02-13 Robert Lipe <robertlipe@usa.net>
64402fe6 8999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
63a35b3a 9000
9001 * doc/install.texi (Specific): Update three SCO-related URLs.
9002
72223969 90032003-02-13 Andreas Schwab <schwab@suse.de>
9004
9005 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
9006 Parenthesize properly.
9007 (NPREDECESORS): Parenthesize properly.
9008
851fe51a 90092003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
9010
9011 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
9012
b60cce8a 90132003-02-12 Roger Sayle <roger@eyesopen.com>
9014
9015 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
9016 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
9017
9018 * reg-stack.c (subst_stack_regs_pat): Add support for binary
9019 UNSPEC instructions (e.g. "fpatan").
9020
7a8d80c6 90212003-02-12 Mike Stump <mrs@apple.com>
9022
9023 * varray.c (element_size): Remove.
9024 (uses_ggc): Remove.
9025 (element): Add.
9026 (varray_init): Use new interface.
9027 (varray_grow): Use new interface.
9028 (varray_clear): Use new interface.
9029
274c5c56 90302003-02-12 Aldy Hernandez <aldyh@redhat.com>
9031
64402fe6 9032 * config/rs6000/spe.h: Add casts to the arguments of the following
9033 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
9034 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
9035 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
9036 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
9037 __ev_get_u16, __ev_get_s16.
274c5c56 9038
c8adb150 90392003-02-12 Kazu Hirata <kazu@cs.umass.edu>
9040
9041 * config/h8300/h8300.md (a peephole2): New.
9042
96b74343 90432003-02-12 Jan Hubicka <jh@suse.cz>
833eb724 9044
9045 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
9046 (OBJS): Add callgraph.o
9047 (callgraph.o): New.
9048 * c-decl.c (expand_body_1): Break out from ...
9049 (expand_body): This one; change calling convention
9050 (finish_function): Move some of expand_body logic here.
9051 (c_expand_deferred_function): Update call of expand_body
9052 (c_expand_stmt): Use c_expand_body_1.
9053 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
9054 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
9055 * c-tree.h (c_expand_body): Declare.
9056 * callgraph.c: New file.
9057 * flags.h (flag_unit_at_a_time): Declare.
9058 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
9059 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
9060 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
9061 * langhooks.h (struct lang_hooks_for_callgraph): New.
9062 (struct lang_hooks): Add callgraph field.
9063 * toplev.c (flag_unit_at_a_time): New.
9064 (lang_independent_options): Add flag_unit_at_a_time.
9065 (process_options): Disable unit-at-a-time mode for frontends not
9066 supporting callgraph.
9067 * tree-inline.c (typedef struct inline_data): Add "decl"
9068 (expand_call_inline): Update callgraph.
9069 (optimize_inline_calls): Set id.decl.
9070 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
9071 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
9072 cgraph_calls_p): Declare.
9073 * invoke.texi (-funit-at-a-time): Document
9074
919d789f 90752003-02-12 Aldy Hernandez <aldyh@redhat.com>
9076
64402fe6 9077 * config/rs6000/spe.h: Fix misc formatting.
9078 (__ev_create_ufix32_fs): Cast ev argument.
9079 (__ev_create_sfix32_fs): Same.
9080 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
9081 (__ev_get_ufix32_fs_internal): Same.
919d789f 9082
760c3e42 90832003-02-12 Ranjit Mathew <rmathew@hotmail.com>
9084
9085 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
9086 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
9087
f4578baa 90882003-02-12 Zack Weinberg <zack@codesourcery.com>
9089
9090 * cpplib.c (do_include_common): Move warnings for
9091 #include_next and #import out to callers. Use early-return
9092 instead of nested ifs. Don't do check_eol here.
9093 (parse_include): Do check_eol here with the rest of the
9094 parsing stuff.
9095 (do_include_next, do_import): Now handle warnings.
9096
868aa50a 90972003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9098
9099 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
9100
96b74343 91012003-02-12 Jan Hubicka <jh@suse.cz>
7a188e52 9102
9103 * predict.c (estimate_probability): Fix roundoff error.
9104
9eeb1a45 91052003-02-12 Kazu Hirata <kazu@cs.umass.edu>
9106
9107 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
9108 (two peephole2): New.
9109
d22462d6 91102003-02-12 Kazu Hirata <kazu@cs.umass.edu>
9111
9112 * config/h8300/h8300.md (several peephole2): Replace
9113 find_regno_note with peep2_reg_dead_p.
9114
217a3395 91152003-02-11 Richard Henderson <rth@redhat.com>
9116
9117 * gcse.c (lookup_set): Remove unused argument PAT. Update
9118 both callers.
9119
5f07bab0 91202003-02-11 Geoffrey Keating <geoffk@apple.com>
9121
9122 * diagnostic.c (real_abort): New.
9123 (diagnostic_report_diagnostic): Call real_abort on error.
9124 * diagnostic.h (diagnostic_abort_on_error): New.
9125 (struct diagnostic_context): Add abort_on_error field.
9126 * toplev.c (setup_core_dumping): New.
9127 (decode_d_option): Handle 'H' case.
9128 * doc/invoke.texi (Debugging Options): Document -dH.
9129
edccf101 91302003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
9131
9132 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
9133 which refers to obsolete directories.
9134
e751d675 91352003-02-11 Richard Henderson <rth@redhat.com>
9136
9137 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
9138
96b74343 91392002-10-21 Jan Hubicka <jh@suse.cz>
9c195728 9140
9141 * i386.c (contains_128bit_aligned_vector_p): New function.
9142 (ix86_function_arg_boundary): Properly align vector modes.
9143
3370e9b1 91442003-02-11 Bob Wilson <bob.wilson@acm.org>
9145
9146 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
9147 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
9148 as a SET pattern.
9149
a4356fb9 91502003-02-11 Roger Sayle <roger@eyesopen.com>
9151
9152 * builtins.c: Fix failure caused by commiting wrong patch.
9153
3952be0a 91542003-02-11 Dale Johannesen <dalej@apple.com>
9155 * ra-build.c (compare_and_free_webs): Relax checking.
9156 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
9157 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
9158
d0a099f8 91592003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
9160
9161 PR optimization/9651
9162 * rtlanal.c (may_trap_p): Handle FIX.
9163
2852f205 91642003-02-11 Dave Jones <davej@codemonkey.org.uk>
9165
9166 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
9167 * doc/invoke.texi: Extra alias.
9168
73e4dc72 91692003-02-11 Geoffrey Keating <geoffk@apple.com>
9170
9171 * config/rs6000/host-darwin.c: Fix comment.
9172
834b53e5 91732003-02-11 David Edelsohn <edelsohn@gnu.org>
9174
9175 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
9176 predicate for mod result.
9177
78bf813c 91782003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9179
9180 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
9181 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
9182 * fixincl.x: Rebuilt.
9183 * tests/base/stdlib.h: Update.
9184 * tests/base/ctype.h: New file.
9185
96b74343 91862003-02-11 Jan Hubicka <jh@suse.cz>
ce07bc35 9187
9188 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
9189
aa916343 91902003-02-11 Richard Henderson <rth@redhat.com>
9191
9192 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
9193 appropriated as globals.
9194 (ix86_expand_clrstr): Similarly.
9195 * config/i386/i386.md (cmpstrsi): Similarly.
9196
39ca99d7 91972003-02-11 Kazu Hirata <kazu@cs.umass.edu>
9198
9199 * config/h8300/h8300.md (a peephole2): Add a case of 255.
9200
0fd605a5 92012003-02-11 Roger Sayle <roger@eyesopen.com>
9202
9203 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
9204 (pow_optab, atan2_optab): Define corresponding macros.
9205 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
9206 * genopinit.c (optabs): Implement pow_optab and atan2_optab
9207 using pow?f3 and atan2?f3 patterns.
9208 * builtins.c (expand_errno_check): New function to update errno
9209 if necessary, split out from expand_builtin_mathfn.
9210 (expand_builtin_mathfn): Use expand_errno_check.
9211 (expand_builtin_mathfn_2): New function to handle expanding binary
9212 math functions, reusing the code in expand_errno_check.
9213 (expand_builtin): Handle the pow and atan2 math built-ins,
9214 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
9215 expand_builtin_mathfn_2.
9216
9217 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
9218
96b74343 92192003-02-11 Jan Hubicka <jh@suse.cz>
967f8427 9220
9221 * combine.c (combine_simplify_rtx): Fix folding of
9222 nested float_truncates.
9223
ecee35ff 92242003-02-11 Kazu Hirata <kazu@cs.umass.edu>
9225
9226 * config/h8300/h8300.md (a peephole2): Fix a typo.
9227
62eddbd4 92282003-02-11 Richard Earnshaw <rearnsha@arm.com>
9229
9230 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
9231 register number.
9232
c6720edd 92332003-02-11 Kazu Hirata <kazu@cs.umass.edu>
9234
9235 * config/h8300/h8300-protos.h: Add a prototype for
9236 gtuleu_operator.
9237 * config/h8300/h8300.c (gtuleu_operator): New.
9238 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
9239 * config/h8300/h8300.md (a peephole2): New.
9240
96b74343 92412003-02-11 Jan Hubicka <jh@suse.cz>
f39de5a0 9242
9243 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
9244
96b74343 92452003-02-11 Jan Hubicka <jh@suse.cz>
10f81547 9246
9247 * predict.c (choose_function_section): Choose sections correctly.
9248
2ff147ce 92492003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9250
9251 * reload1.c (first_label_num): New.
9252 (reload): Index offsets_known_at and offsets_at using difference of
9253 label number and first label number. Don't use offset pointers.
9254 (set_label_offsets, set_initial_label_offsets): Likewise.
9255
7592a77f 92562003-02-10 Roger Sayle <roger@eyesopen.com>
9257
9258 * mips-tfile.c (init_file): Add missing initializers in the
9259 "#ifdef __alpha" case.
9260 (file_offset, max_file_offset): Declare as unsigned long.
9261 (write_varray): Cast to "unsigned long" in comparisons against
9262 either file_offset or max_file_offset.
9263 (write_object): Likewise.
9264 (read_seek): Likewise.
9265 (copy_object): Likewise. Declare "ifd" as int to match its use
9266 in add_ext_symbol, and avoid signed/unsigned conditional warning.
9267
4c852b56 92682003-02-10 Nick Clifton <nickc@redhat.com>
f4578baa 9269 Aldy Hernandez <aldyh@redhat.com>
4c852b56 9270
f4578baa 9271 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
9272 override options which have been specified on the command line.
4c852b56 9273
d3cb04dc 92742003-02-10 Kazu Hirata <kazu@cs.umass.edu>
9275
9276 * config/h8300/h8300.md (abssf2): New.
9277 (*abssf2_h8300): Likewise.
9278 (*abssf2_h8300hs): Likewise.
9279
52b078bc 92802003-02-10 Phil Edwards <pme@gcc.gnu.org>
9281
9282 * tree.c (build_tree_list): Fix parameter names in comment.
9283
df745324 92842003-02-10 Janis Johnson <janis187@us.ibm.com>
9285
9286 * config/rs6000/ppc64-fp.c: New file.
9287 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
9288
674f7a9c 92892003-02-10 Josef Zlomek <zlomekj@suse.cz>
9290
9291 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
f4578baa 9292 * bb-reorder.c (make_reorder_chain): Deleted.
674f7a9c 9293 (make_reorder_chain_1): Deleted.
9294 (find_traces): New function.
9295 (rotate_loop): New function.
9296 (mark_bb_visited): New function.
9297 (find_traces_1_round): New function.
9298 (copy_bb): New function.
9299 (bb_to_key): New function.
9300 (better_edge_p): New function.
9301 (connect_traces): New function.
9302 (copy_bb_p): New function.
9303 (get_uncond_jump_length): New function.
9304 (reorder_basic_blocks): Use new functions (Software Trace Cache).
9305 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
9306 boundaries.
9307
809f20f8 93082003-02-10 Aldy Hernandez <aldyh@redhat.com>
9309
9310 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
9311
b025da1c 93122003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9313
9314 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
f4578baa 9315 (DECL_LIVE_RANGE_RTL): Remove.
b025da1c 9316
acf6ed70 93172003-02-10 Nick Clifton <nickc@redhat.com>
9318
9319 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
9320 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
9321 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
9322 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
9323 config/arm/freebsd.h, config/arm/linux-elf.h,
9324 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
9325 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
9326 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
9327 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
9328 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
9329 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
9330 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
9331 and reformat as appropriate.
9332
a03c245c 93332003-02-10 Kazu Hirata <kazu@cs.umass.edu>
9334
9335 * config/h8300/clzsi2.c: Remove.
9336 * config/h8300/ctzsi2.c: Likewise.
9337 * config/h8300/paritysi2.c: Likewise.
9338 * config/h8300/popcountsi2.c: Likewise.
9339 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
9340 ctzsi2, paritysi2, and popcountsi2.
9341
5389807a 93422003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
f4578baa 9343 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
5389807a 9344
9345 PR c/7741
9346 * c-decl.c (duplicate_decls): Discard the initializer of the
9347 new decl when the types are conflicting.
9348
e9d7220b 93492003-02-10 Josef Zlomek <zlomekj@suse.cz>
9350
9351 * Makefile.in (sreal.o): Added.
9352 (predict.o): Depends on sreal.h instead of real.h.
9353 * sreal.c: New file.
9354 * sreal.h: New file.
9355 * predict.c: Use sreal.c instead of real.c.
9356
7d57ec45 93572003-02-10 Nick Clifton <nickc@redhat.com>
9358
9359 * Contributed support for the Cirrus EP9312 "Maverick"
9360 floating point co-processor. Written by Aldy Hernandez
f4578baa 9361 <aldyh@redhat.com>.
7d57ec45 9362 (config/arm/arm.c): Add Cirrus support.
9363 (config/arm/arm.h): Likewise.
9364 (config/arm/aout.h): Likewise.
9365 (config/arm/arm.md): Likewise.
9366 (config/arm/arm-protos.h): Likewise.
9367 (config.gcc): Likewise.
9368 (doc/invoke.texi): Describe new -mcpu value and new
9369 -mcirrus-fix-invalid-insns switch,
9370 (cirrus.md): New file.
9371
96b74343 93722003-02-10 Jan Hubicka <jh@suse.cz>
36c8ff52 9373
9374 * combine.c (combine_simplify_rtx): Simplify using
9375 (float_truncate (float x)) is (float x)
9376 (float_extend (float_extend x)) is (float_extend x).
9377
fd2c0c1d 93782003-02-10 Alan Modra <amodra@bigpond.net.au>
9379
9380 * calls.c (try_to_integrate): Tidy stack_usage_map access.
9381 (emit_library_call_value_1): Likewise. Formatting.
9382 (store_one_arg): Likewise.
9383
cf5ebb81 93842003-02-09 Nick Clifton <nickc@redhat.com>
f4578baa 9385 Aldy Hernandez <aldyh@redhat.com>
cf5ebb81 9386
f4578baa 9387 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
9388 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
9389 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
9390 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
9391 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
9392 docs. Add range test for immediate value.
cf5ebb81 9393
93942003-02-09 Aldy Hernandez <aldyh@redhat.com>
9395
f4578baa 9396 Rename spe_evxor to xorv2si3.
9397 (xorv4hi3): New.
9398 (xorv1di3): New.
cf5ebb81 9399
258b58a9 94002003-02-10 Glen Nakamura <glen@imodulo.com>
f4578baa 9401
258b58a9 9402 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
9403 tag.
9404
96b74343 94052003-02-10 Jan Hubicka <jh@suse.cz>
7f2b3f44 9406
9407 * i386.c (vector_move_operand): New predicate.
9408 (ix86_expand_vector_move): Be happy about 0.
9409 * i386.h (PREDICATE_CODES): Add sse-move_operand.
9410 * i386.md (mov*_internal): Add 'C' alternative.
9411
96b74343 94122003-02-09 Jan Hubicka <jh@suse.cz>
a0119cac 9413
9414 * i386.md (floathi*): Deal with SSE.
9415
96b74343 94162003-02-09 Jan Hubicka <jh@suse.cz>
a7e82922 9417
9418 * simplify-rtx.c (simplify_unary_operation,
9419 simplify_binary_operation): Deal with vector modes
9420 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
9421
4b0b9adb 94222003-02-09 Richard Sandiford <rsandifo@redhat.com>
b9acd9ea 9423
9424 * toplev.c (rest_of_compilation): Recompute register usage after
9425 split_all_insns.
9426
0f186426 94272003-02-09 Richard Henderson <rth@redhat.com>
9428
9429 * libgcc-std.ver (__clztf2): New.
9430 (__ctztf2, __popcounttf2, __paritytf2): New.
9431 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
9432 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
9433 adjust code to match the different type sizes.
9434 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
9435 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
9436
9437 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
9438 TImode; select word_mode and twice that.
9439 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
9440 select the modes from float, double, and long double.
9441 (init_optabs): Remove duplicate initializations.
9442
64c06d55 94432003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
9444
9445 * doc/install.texi: Squeeze and streamline section on
9446 testing and regression checking.
9447
96b74343 94482003-02-09 Jan Hubicka <jh@suse.cz>
b649c04e 9449
9450 * i386.md (ahi?v*3): Set third operand type to TImode.
9451 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
9452
9453 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
9454 integer mode.
9455
9456 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
9457 Change code so they are arithmetic expressions now.
9458 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
9459 simplify_ternary_operation): Deal with VEC_* expressions.
9460
9461 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
9462
96b74343 94632003-02-08 Jan Hubicka <jh@suse.cz>
aaf52ffb 9464
9465 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
9466 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
9467 possibly got duplicated.
9468
6d405dc8 94692003-02-08 Richard Henderson <rth@redhat.com>
9470
9471 * config/alpha/alpha.c (override_options): Turn off explicit
9472 relocs until post-peep2 code duplication resolved.
9473
7f10ce85 94742003-02-08 Kazu Hirata <kazu@cs.umass.edu>
9475
9476 * optabs.c (expand_unop): Widen clz properly when clz is done
9477 via libcall.
9478
dbbae424 94792003-02-08 Kazu Hirata <kazu@cs.umass.edu>
9480
9481 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
9482 * config/h8300/crti.asm: Likewise.
9483 * config/h8300/crtn.asm: Likewise.
9484 * config/h8300/ctzsi2.c: Likewise.
9485 * config/h8300/fixunssfsi.c: Likewise.
9486 * config/h8300/h8300-protos.h: Likewise.
9487 * config/h8300/h8300.c: Likewise.
9488 * config/h8300/h8300.h: Likewise.
9489 * config/h8300/h8300.md: Likewise.
9490 * config/h8300/paritysi2.c: Likewise.
9491 * config/h8300/popcountsi2.c: Likewise.
9492 * config/h8300/rtems.h: Likewise.
9493
7a8f69e1 94942003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9495
9496 * doc/invoke.texi: Documentation for my previous commit.
9497 * doc/passes.texi: Ditto.
9498
6a606e3c 94992003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9500
9501 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
9502 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
9503 Declare.
9504 (DLTHE_FLAG_UPDATE_FREQ): New.
9505 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
9506 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
9507 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
9508 fix_bb_placement, fix_bb_placements, place_new_loop,
9509 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
9510 New static functions.
9511 (fix_loop_placement, can_duplicate_loop_p,
9512 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
9513 New functions.
9514
9515 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
9516 unswitch_loops): Declare.
9517 * loop-init.c: New file.
9518 * loop-unswitch.c: New file.
9519 * Makefile.in (loop-init.o, loop-unswitch.o): New.
9520 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
9521 * toplev.c (DFI_loop2): New dump.
9522 (flag_unswitch_loops): New.
9523 (lang_independent_options): Add it.
9524 (rest_of_compilation): Call new loop optimizer.
9525 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
9526
17cb77de 95272003-02-08 Kazu Hirata <kazu@cs.umass.edu>
9528
9529 * config/h8300/clzsi2.c: New.
9530 * config/h8300/ctzsi2.c: Likewise.
9531 * config/h8300/paritysi2.c: Likewise.
9532 * config/h8300/popcountsi2.c: Likewise.
9533 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
9534
0b6d1b79 95352003-02-07 David Edelsohn <edelsohn@gnu.org>
9536
9537 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
9538 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
d23c4355 9539 (ctzsi2): New pattern.
0b6d1b79 9540 (ffssi2): Use clz instead of unspec.
9541 (clzdi2): Rename from cntlzd2.
d23c4355 9542 (ctzdi2): New pattern.
0b6d1b79 9543 (ffsdi2): Use clz instead of unspec.
9544
02f3e5fd 95452003-02-07 Loren James Rittle <ljrittle@acm.org>
9546
9547 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
9548 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
9549 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
9550 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
9551
a705759f 95522003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
9553
9554 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
9555
3b281834 95562003-02-07 Richard Henderson <rth@redhat.com>
9557
9558 PR 9226
f4578baa 9559 * gcse.c (local_cprop_find_used_regs): New.
9560 (local_cprop_pass): Use it.
3b281834 9561
aaf2d92f 95622003-02-07 Fred Fish <fnf@intrinsity.com>
9563
9564 * mips-tfile.c (parse_def): Parenthesize assignments to fix
f4578baa 9565 precedence bugs.
aaf2d92f 9566
4951824a 95672003-02-07 Segher Boessenkool <segher@koffie.nl>
aaf2d92f 9568
f4578baa 9569 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
4951824a 9570
fa426235 95712003-02-07 Roger Sayle <roger@eyesopen.com>
9572
9573 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
9574 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
9575 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
9576 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
9577 builtin functions (and their __builtin_* variants).
9578 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
9579 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
9580 when not optimizing.
9581
9582 * doc/extend.texi: Document new pow and atan2 builtins, and
9583 their float and long double variants. Realphabetize builtins.
9584
96b74343 95852003-02-07 Jan Hubicka <jh@suse.cz>
51482831 9586
9587 * i386.md (sse2_nandv2di3): Fix.
9588
32512c79 95892003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
9590
9591 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
9592 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
9593 definition.
9594 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
9595 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
9596
96b74343 95972003-02-07 Jan Hubicka <jh@suse.cz>
04e73e5e 9598
9599 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
9600
a87c274c 96012003-02-07 Daniel Berlin <dberlin@dberlin.org>
9602
9603 * cfg.c (dump_flow_info): Add back accidently deleted line.
9604
344f3f9e 96052003-02-07 Andrey Petrov <petrov@netbsd.org>
9606
9607 * optabs.c (expand_float): Search wider integer modes first.
9608
f2c4656b 96092003-02-07 Bob Wilson <bob.wilson@acm.org>
9610
9611 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
9612 based on preprocessor flag.
9613
47dd33b5 96142003-02-07 Roger Sayle <roger@eyesopen.com>
9615 Richard Henderson <rth@redhat.com>
9616
9617 * gcse.c (implicit_sets): New.
9618 (compute_hash_table_work): Include them in hash table.
9619 (find_implicit_sets, fis_get_condition): New.
9620 (one_cprop_pass): Allocate and free implicit_sets; call
9621 find_implicit_sets before building hash table.
9622
b96c28f0 96232003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
9624
9625 * config/t-netbsd (USER_H): Revert previous change.
9626
617af415 96272003-02-07 Gabor Greif <ggreif@lucent.com>
9628
9629 * doc/c-tree.texi (Namespaces): Fix typo.
9630
96b74343 96312003-02-07 Jan Hubicka <jh@suse.cz>
83d9f776 9632
9633 * regrename.c (do_replace, find_oldest_value_reg,
9634 copyprop_hardreg_forward_1): Update register attributes.
9635
8bbadced 96362003-02-06 Vladimir Makarov <vmakarov@redhat.com>
9637
9638 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
9639 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
9640 variables starting with underscore.
9641 (struct unit_usage): New structure.
9642 (unit_usages, cycle_alt_unit_usages): New global variables.
9643 (check_unit_distribution_in_reserv): Remove it.
9644 (store_alt_unit_usage): New function.
9645 (check_regexp_units_distribution): Rewrite it.
9646
ee376abe 96472003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9648
9649 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
9650 target_cpu_default.
9651 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
9652 if not MASK_NO_SPACE_REGS.
9653 (output_call): Adjust return pointer, don't load new space register
9654 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
9655 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
9656 TARGET_NO_SPACE_REGS is true.
9657 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
9658 conditions.
9659 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
9660 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
9661 true. Use bve when TARGET_64BIT is true.
9662
b3d77230 96632003-02-06 Richard Henderson <rth@redhat.com>
9664
9665 * combine.c (nonzero_bits): Fix double break.
9666
23e7e6da 96672003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
f4578baa 9668 Richard Henderson <rth@redhat.com>
23e7e6da 9669
9670 PR c/9530
9671 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
9672 from functions that return a float to functions that don't.
9673
96b74343 96742003-02-06 Jan Hubicka <jh@suse.cz>
505f406c 9675
9676 * i386.c (x86_inter_unit_moves): New variable.
9677 (ix86_secondary_memory_needed): Fix 64bit case, honor
9678 TARGET_INTER_UNIT_MOVES
9679 * i386.h (x86_inter_unit_moves): Declare.
9680 (TARGET_INTER_UNIT_MOVES): New macro.
9681 * i386.md (movsi_1): Cleanup constraints; disable
9682 when not doing inter-unit moves.
9683 (movsi_1_nointernunit): New.
9684 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
9685 (movdi_1_rex64_nointerunit): New.
9686 (mivsf_1): disable when not doing inter-unit moves.
9687 (movsf_1_nointerunit): New.
9688
9689 * basic-block.h (inside_basic_block_p): Declare.
9690 * cfgbuild.c (inside_basic_block_p): Make global.
9691 * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
9692 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
9693 update CFG.
9694 (fix_basic_block_boundaries, add_missing_bbs): New.
9695 (rank): Use profile.
9696 (scheudle_ebbs): Rely on CFG; update coments.
9697
b197fbcf 96982003-02-05 Geoffrey Keating <geoffk@apple.com>
9699
9700 * Makefile.in (host_hook_obj): New.
9701 (OBJS): Add $(host_hook_obj).
9702 (host_default.o): New rule.
9703 * config.gcc (host_hook_obj): New, default to host-default.o.
9704 (powerpc-*-darwin*): Use host-darwin.o.
9705 (out_host_hook_obj): New.
9706 * configure: Regenerate.
9707 * configure.in: Print information about out_host_hook_obj, substitute
9708 into output files.
9709 * host-default.c: New file.
9710 * hosthooks.h: New file.
9711 * toplev.c (general_init): Call host_hooks.extra_signals.
9712 * config/rs6000/host-darwin.c: New file.
9713 * config/rs6000/x-darwin: New file.
9714 * doc/hostconfig.texi: Add documentation for new host hook.
9715 Rearrange existing documentation.
9716
07576557 97172003-02-05 Roger Sayle <roger@eyesopen.com>
9718
9719 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
9720 with *targetm.delegitimize_address.
9721 (rtl_for_decl_location): Likewise.
9722 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
9723 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
9724
9725 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
9726 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
9727 prototype.
9728 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
9729 i386_simplify_dwarf_addr. Made static. Prototyped.
9730 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
9731 i386_simplify_dwarf_addr to ix86_delegitimize_address.
9732 (ix86_find_base_term): Likewise.
9733 (maybe_get_pool_constant): Likewise.
9734
9735 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
9736 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
9737 prototype.
9738 * config/s390/s390.c (s390_delegitimize_address): Renamed from
9739 s390_simplify_dwarf_addr. Made static. Prototyped.
9740 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
9741
713bdca2 97422003-02-05 Richard Henderson <rth@redhat.com>
9743
6c583572 9744 PR c/8602
f4578baa 9745 * integrate.c (output_inline_function): Reset input_filename
9746 and lineno from the decl before rest_of_compilation.
713bdca2 9747
8f4be2be 97482003-02-05 Richard Henderson <rth@redhat.com>
9749
9750 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
9751 (CTZ_DEFINED_VALUE_AT_ZERO): New.
9752 * doc/rtl.texi, doc/tm.texi: Document them.
9753
9754 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
9755 of the value at zero properly.
9756 * fold-const.c (tree_expr_nonnegative_p): Likewise.
9757 * simplify-rtx.c (simplify_unary_operation): Likewise.
9758
9759 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
9760 (CTZ_DEFINED_VALUE_AT_ZERO): New.
9761
9762 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
9763 (TARGET_EXPAND_BUILTIN): Remove.
9764 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
9765 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
9766 (enum arm_builtins): Remove.
9767 * config/arm/arm.md (UNSPEC_CLZ): Remove.
9768 (clzsi2): Rename from clz; use clz instead of unspec.
9769 (ctzsi2): New.
9770 * config/arm/arm-protos.h: Update.
9771
96b74343 97722003-02-05 Jan Hubicka <jh@suse.cz>
3b51cb38 9773
9774 * i386-protos.h (x86_emit_floatuns): Declare.
9775 * i386.c (x86_emit_floatuns): New global function.
9776 * i386.md (floatunssisf2, floatunsdisf2,
9777 floatunsdidf2): New patterns.
9778
b536af40 97792003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9780
9781 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
9782
093922b7 97832003-02-05 Hans Boehm <Hans.Boehm@hp.com>
9784
9785 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
9786 config/ia64/linux.h
9787
4b0b9adb 97882003-02-05 Roger Sayle <roger@eyesopen.com>
ab856649 9789
9790 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
9791
67a994e6 97922003-02-05 Jakub Jelinek <jakub@redhat.com>
9793
9794 PR optimization/8555
9795 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
9796 instead of aborting.
9797
915e3cca 97982003-02-04 Richard Henderson <rth@redhat.com>
9799
9800 * config/i386/i386.md (UNSPEC_BSF): Remove.
9801 (ffssi2): Split into cmove and no_cmove insns and splitters;
9802 lose pentium float trick for now.
9803 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
9804 (ctzsi2, clzsi2, bsr): New.
9805
2d0a3e2b 98062003-02-04 Richard Henderson <rth@redhat.com>
9807
9808 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
9809 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
9810 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
9811 (ffsdi2): Use popcount instead of unspec.
9812 (popcountdi2): Rename from *popcnt.
9813 (ctzdi2, clzdi2, getf_exp_tf): New.
9814
c4bb5f73 98152003-02-04 Kazu Hirata <kazu@cs.umass.edu>
9816
9817 * genconfig.c (main): Generate CC0_P.
9818 * rtl.h (CC0_P): Remove.
9819
092445b3 98202003-02-04 Richard Henderson <rth@redhat.com>
9821
9822 * libgcc2.h, libgcc2.c (__ffsSI2): New.
9823 (__ffsDI2): Rename from __ffsdi2.
9824 * mklibgcc.in (lib2funcs): Add _ffssi2.
9825
9acebba8 98262003-02-04 Richard Henderson <rth@redhat.com>
9827
9828 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
9829 rounds with a "bit table" lookup.
9830
27d1c91f 98312003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9832
9833 * reload.c (find_reloads): Do not use the mode specified in the insn
aaf2d92f 9834 pattern as reload mode for address operands. Do not generate optional
27d1c91f 9835 reloads for operands where a mandatory reload was already pushed.
9836
762fbc72 98372003-02-04 Richard Henderson <rth@redhat.com>
9838
9839 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
9840 builtins instead of inline assembly.
9841
fd418785 98422003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
aaf2d92f 9843
fd418785 9844 PR c/9376
9845 * libgcc2.c (__subvdi3): Fix typo.
9846
96b74343 98472003-02-04 Jan Hubicka <jh@suse.cz>
d73eff20 9848
9849 * i386.md (movti_rex64): Fix constraint.
9850
96b74343 98512003-02-04 Jan Hubicka <jh@suse.cz>
254bbdac 9852
9853 * i386.md (vector push splitters): Fix typo in resolving conflict.
9854
644f3ccf 98552003-02-04 Rodney Brown <rbrown64@csc.com.au>
9856
9857 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
9858
6f147acd 98592003-02-04 Phil Edwards <pme@gcc.gnu.org>
9860
9861 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
9862 for recent libstdc++. Remove formatting cruft.
9863
83f77ecb 98642003-02-04 Jakub Jelinek <jakub@redhat.com>
9865
9866 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
9867 attribute even if input file name is absolute, but one of the
9868 includes is relative.
9869
5533bc76 98702003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
9871
9872 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
9873 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
9874 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
9875
7a02b4da 98762003-02-03 Richard Henderson <rth@redhat.com>
9877
9878 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
9879 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
9880 return type to "int". Shuffle declarations and undef int trap.
9881 * libgcc2.h: Remove their declarations.
9882 * optabs.c (expand_unop): Force outmode to int for bitops.
9883
bef09eef 98842003-02-03 Bob Wilson <bob.wilson@acm.org>
9885
9886 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
9887 coprocessor registers before floating-point registers.
9888 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
9889 to account for a previously removed register.
9890 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
9891 Delete unused macros.
9892
96b74343 98932003-02-03 Jan Hubicka <jh@suse.cz>
af2258d6 9894
9895 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
9896 (mov*_internal): Fix predicates; require one of operands to not be
9897 memory.
9898 (SSE?MMX move expanders): Fix predicates; force one of operands to
9899 register.
9900 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
9901 (movups/movupd/movdqu patterns): Force one of operands to not be
9902 memory.
9903
4b0b9adb 99042003-02-03 Roger Sayle <roger@eyesopen.com>
bfe57ab7 9905
9906 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
9907 takes a single rtx and returns it unmodified.
9908 * hooks.h (hook_rtx_rtx_identity): Prototype here.
644f3ccf 9909 * target.h (struct gcc_target): Add "delegitimize_address"
bfe57ab7 9910 field to target structure.
9911 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
9912 for delegitimize_address target using hook_rtx_rtx_identity.
9913 (TARGET_INITIALIZER): Initialize delegitimize_address field
9914 using TARGET_DELEGITIMIZE_ADDRESS macro.
9915 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
9916 extensions of constant pool references. Use delegitimize_address
9917 to undo the obfuscation of "-fpic".
9918 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
9919
9920 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
9921 i386_simplify_dwarf_addr.
9922 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
da980a43 9923 (maybe_get_pool_constant): Likewise.
bfe57ab7 9924
96b74343 99252003-02-03 Jan Hubicka <jh@suse.cz>
1f47c56f 9926
9927 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
9928
96b74343 99292003-02-03 Jan Hubicka <jh@suse.cz>
ab9856c9 9930
9931 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
9932
8663f89f 99332003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9934
9935 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
9936 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
9937
64f76a8e 99382003-02-02 Andreas Schwab <schwab@suse.de>
9939
9940 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
9941
defc47cf 99422003-02-02 Richard Earnshaw <rearnsha@arm.com>
9943
9944 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
9945 (epilogue_insns): Likewise.
9946
ac8381b8 99472003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9948
9949 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
9950
cd0dfcc5 99512003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9952
9953 * pa-protos.h (attr_length_millicode_call): Remove second argument.
9954 (attr_length_indirect_call, attr_length_indirect_call,
9955 attr_length_save_restore_dltp): New prototypes.
9956 * pa.c (attr_length_millicode_call): Remove second argument. Check
9957 INSN_ADDRESSES_SET_P in distance calculation.
9958 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
9959 INSN_ADDRESSES.
9960 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
9961 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
9962 Call attr_length_call directly.
9963 (attr_length_indirect_call, output_indirect_call,
9964 attr_length_save_restore_dltp): New functions.
9965 * pa.md (attr_length_millicode_call): Drop second argument from all
9966 patterns.
9967 (return_internal_pic): Delete.
9968 (return_external_pic): Remove use of PIC register and pic operand and
9969 flag checks.
9970 (epilogue): Use return_internal for both normal and pic code.
9971 (call, call_value): Emit new 32-bit pic patterns for symref and
9972 indirect calls. Remove uses for arg pointer and pic register.
9973 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
9974 call_reg_pic_post_reload, call_val_symref_pic,
9975 call_val_symref_pic_post_reload, call_val_reg_pic,
9976 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
9977 Implement define_split and define_peephole2 patterns for pre reload
9978 patterns.
9979 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
9980 call_value_internal_reg_64bit): Shorten names.
9981 (all call patterns): Explicitly indicate registers used and clobbered.
9982 Use attr_length_indirect_call and attr_length_save_restore_dltp for
9983 attribute length calculation. Move code generation for indirect calls
9984 to output_indirect_call.
9985 (sibcall, sibcall_value): Don't restore PIC register.
9986 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
9987 register retore.
9988
be331c4c 99892003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9990
9991 * doc/install.texi (Testing): Simplify and compress instructions
9992 concerning Dejagnu.
9993
71a0b5ce 99942003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9995
9996 * collect2.c (pexecute_pid): Rename to pid.
9997 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
9998 pid.
9999
c0cba68c 100002003-02-01 Geoffrey Keating <geoffk@apple.com>
10001
10002 * doc/extend.texi (Function Attributes): Remove documentation
10003 for PowerPC Windows NT function attributes..
10004
dc346c40 100052003-02-01 Daniel Jacobowitz <drow@mvista.com>
10006
10007 * dwarf2out.c (gen_type_die): Check for typedefs before calling
10008 for TYPE_MAIN_VARIANT.
10009
395d450a 100102003-02-01 Richard Henderson <rth@redhat.com>
10011
10012 * libgcc2.c: Include auto-host.h.
10013 (ATTRIBUTE_HIDDEN): New.
10014 (__clz_tab): Don't declare here for clz and ctz.
10015 (__clzsi2, __clzdi2): Use count_leading_zeros.
10016 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
10017 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
10018 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
10019 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
10020
489227fe 100212003-02-01 Richard Henderson <rth@redhat.com>
10022
10023 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
10024 to the conditional.
10025 (ashlsi3_1_zext splitter): Likewise.
10026
6a08d0ab 100272003-02-01 Richard Henderson <rth@redhat.com>
10028
10029 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
10030 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
10031 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
10032 return type to Wtype.
10033
10034 * libgcc-std.ver (GCC_3.4): Fix inheritance.
10035
10036 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
10037 expander input constraint.
10038
100392003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
10040
644f3ccf 10041 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
10042 OTI_parity.
10043 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
10044 * optabs.c (widen_clz, expand_parity): New.
10045 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
10046 for libcalls to clz, ctz, popcount, and parity.
10047 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
10048 parity_optab, and set up libfunc handlers.
10049 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
10050 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
10051 __popcount_tab): New.
10052 * libgcc2.h: Declare them.
10053 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
10054 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
10055 and parity_optab.
10056 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
10057 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
10058 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
10059 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
10060 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
10061 BUILT_IN_PARITYLL): New.
10062 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
10063 and add optab argument.
10064 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
10065 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
10066 * expr.c (expand_expr): Handle them.
10067 * fold-const.c (tree_expr_nonnegative_p): Likewise.
10068 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
10069 * reload1.c (eliminate_regs): Handle them.
10070 (elimination_effects): Likewise.
10071 * function.c (instantiate_virtual_regs_1): Likewise
10072 * genattrtab.c (check_attr_value): Likewise.
10073 * simplify-rtx.c (simplify_unary_operation): Likewise.
10074 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
10075 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
10076 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
10077 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
10078 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
10079 __builtin_arm_clz.
10080 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
10081 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
10082 * doc/extend.texi (Other Builtins): Add new builtins.
10083 * doc/md.texi (Standard Names): Add new patterns.
6a08d0ab 10084
b43a3b62 100852003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
10086
10087 * reload.c: Revert 2003-01-31 change.
10088
96b74343 100892003-02-01 Jan Hubicka <jh@suse.cz>
b0bb7395 10090
10091 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
10092
c1771f2c 100932003-02-01 Richard Sandiford <rsandifo@redhat.com>
10094
10095 * flags.h (flag_volatile): Remove declaration.
10096 (flag_volatile_global, flag_volatile_static): Likewise.
10097 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
10098 * toplev.c (flag_volatile): Remove definition.
10099 (flag_volatile_global, flag_volatile_static): Likewise.
10100 (f_options): Remove corresponding entries here.
10101 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
10102 or flag_volatile_static.
10103 * doc/invoke.texi: Remove documentation of -fvolatile,
10104 -fvolatile-global and -fvolatile-static.
10105
90c41894 101062003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10107
10108 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
10109 updating of total_code_bytes from prologue to epilogue.
10110
da28ed24 101112003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
10112
10113 * reload.c (find_reloads): Do not use the mode specified in the insn
10114 pattern as reload mode for address operands. Do not generate optional
10115 reloads for operands where a mandatory reload was already pushed.
10116 Generate optional reloads only in the final pass though find_reloads.
10117 (have_replacement_p): New function.
10118
badfb929 101192003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10120
10121 * doc/install.texi (Testing): Remove a reference to our obsolete
10122 /testresults web pages and strip redundant information concerning
10123 test results.
10124 (Binaries): Refer to Microsoft Windows instead of listing all
10125 possible variants.
10126
96b74343 101272003-02-01 Jan Hubicka <jh@suse.cz>
22aae821 10128
10129 * loop.c (emit_prefetch_instructions): Do conversion at right place in
10130 RTL chain.
10131
10132 * combine.c (simplify_set): Reverse order of ragumetns to
10133 REG_CANNOT_CHANGE_MODE_P
10134 * df.c (df_def_record_1): Likewise.
10135 * recog.c (register_operand): Likewise.
10136 * simplify-rtx.c (simplify_subreg): Likewise.
10137 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
10138 CANNOT_CHANGE_MODE_CLASS.
10139 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
10140 Likewise.
10141 * reload.c (push_reload): Likewise.
10142 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10143 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10144 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10145 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
10146 * mips.c (mips_cannot_change_mode_class): Update.
10147 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10148 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10149 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10150 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
10151 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
10152 * sh.c (sh_cannot_change_mode_class): Update.
10153 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
10154 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
10155
e3e9468b 101562003-01-31 Geoffrey Keating <geoffk@apple.com>
10157
10158 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
10159 change to LINK_COMMAND_SPEC in gcc.c.
10160
a0d4b29e 101612003-01-31 Jan Hubicka <jh@suse.cz>
10162
10163 PR c/9506
10164 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
10165
2b73a3b3 101662003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10167
10168 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
10169 duplicated code.
10170
4b922c0c 101712003-01-31 Nathan Sidwell <nathan@codesourcery.com>
10172
10173 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
10174 (BINFO_ELTS): New #define.
10175 * stor-layout.c (finalize_record_size): Don't set them.
10176 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
10177 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
10178 (BINFO_LANG_ELTS): New #define.
10179 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
10180 * java/class.c (make_class): Use BINFO_ELTS.
10181 (set_super_info): Likewse.
10182 (add_interface_do): Likewise.
10183 * objc/objc-act.c (start_class): Use BINFO_ELTS.
10184
cea21d59 101852003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
10186
10187 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
10188 (times): Don't ever declare if not HAVE_TIMES.
10189 (clock): Don't ever declare if not HAVE_CLOCK.
10190
e5182302 101912003-01-30 Richard Henderson <rth@redhat.com>
10192
10193 * flow.c (update_life_info): Zap life info after cleanup_cfg.
10194 (regno_uninitialized): Use correct live at function entry set.
10195 (regno_clobbered_at_setjmp): Likewise.
10196
10197 * expr.c (store_expr): Promote all MEM intermediates to regs.
10198
b89db9a7 101992003-01-30 Kazu Hirata <kazu@cs.umass.edu>
10200
10201 * config/arm/arm.c: Fix comment typos.
10202 * config/arm/arm.h: Likewise.
10203 * config/arm/netbsd-elf.h: Likewise.
10204 * config/arm/netbsd.h: Likewise.
10205
b41d328d 102062003-01-30 Geoffrey Keating <geoffk@apple.com>
10207
10208 * gengtype.c (struct walk_type_data): Add needs_cast_p.
10209 (walk_type): Set needs_cast_p in walk_type_data.
10210 (write_types_process_field): Supply casts when required to suppress
10211 warnings.
10212 (write_root): Cast gt_pch_n_S to suppress warning.
10213 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
b41d328d 10214 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
10215 when they might exist.
10216 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
10217 insn-conditions.o, and rs6000.o.
10218
598638e2 102192003-01-30 Richard Henderson <rth@redhat.com>
10220
10221 * ggc-page.c (G.context_depth_allocations): New.
10222 (G.context_depth_collections): New.
10223 (alloc_page): Set G.context_depth_allocations.
10224 (ggc_collect): Set G.context_depth_collections.
10225 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
10226 (ggc_pop_context): Early exit for no allocations or collections.
10227
b68b5ffe 102282003-01-30 Richard Henderson <rth@redhat.com>
10229
10230 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
10231
5be12bb5 102322003-01-30 Richard Earnshaw <rearnsha@arm.com>
10233
10234 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
10235 size, the link register is always saved if any other register is
10236 saved.
10237
d00580fa 102382003-01-30 Kazu Hirata <kazu@cs.umass.edu>
10239
10240 * config/h8300/h8300-protos.h: Update the prototype for
10241 compute_plussi_cc.
10242 (cpp_reader): Declare before it is used.
10243 * config/h8300/h8300.c (compute_plussi_cc): Change the return
10244 type to int.
10245 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
10246 see an unknown H8 variant.
10247
102482003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
df034f84 10249
644f3ccf 10250 PR target/9316
df034f84 10251 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
10252 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
10253 * config/rs6000/t-rtems: New file. multilib variants to match OS.
10254 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
10255 rs6000/t-ppcgas so we get the desired multilibs.
10256
1fd1aeef 102572003-01-30 Nick Clifton <nickc@redhat.com>
10258
10259 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
10260 when popping saved IP register off the stack.
10261
ec065129 102622003-01-30 Kazu Hirata <kazu@cs.umass.edu>
10263
10264 * config/rs6000/aix43.h: Fix comment typos.
10265 * config/rs6000/aix51.h: Likewise.
10266 * config/rs6000/aix52.h: Likewise.
10267 * config/rs6000/altivec.h: Likewise.
10268 * config/rs6000/rs6000.c: Likewise.
10269 * config/rs6000/rs6000.h: Likewise.
10270 * config/rs6000/rs6000.md: Likewise.
10271 * config/rs6000/spe.md: Likewise.
10272
5f6526e1 102732003-01-29 Mark Mitchell <mark@codesourcery.com>
10274
10275 * c-common.c (builtin_define_float_constants): Define
10276 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
10277
0924aa1d 102782003-01-30 Kazu Hirata <kazu@cs.umass.edu>
10279
10280 * config/sh/lib1funcs.asm: Fix comment typos.
10281 * config/sh/linux.h: Likewise.
10282 * config/sh/sh.c: Likewise.
10283 * config/sh/sh.md: Likewise.
10284
bf0457c1 102852003-01-30 Loren James Rittle <ljrittle@acm.org>
10286
10287 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
10288
e8899d83 102892003-01-30 Alexandre Oliva <aoliva@redhat.com>
10290
10291 * config/fp-bit.h (__make_dp): Declare if TMODES.
10292
2e57c088 102932003-01-29 Kazu Hirata <kazu@cs.umass.edu>
10294
10295 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
10296 general_operand_src and general_operand_dst.
10297
d3876dca 102982003-01-29 David Edelsohn <edelsohn@gnu.org>
10299
10300 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
10301 Return true for variable sized types.
10302 (rs6000_va_arg): Handle variable sized types passed by reference
10303 on non-SVR4 ABI.
10304
1ff79d84 103052003-01-29 Richard Earnshaw <rearnsha@arm.com>
10306
10307 * arm.c (arm_legtimize_address): New function.
10308 * arm-protos.h (arm_legtimize_address): Add prototype.
10309 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
10310 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
10311 do ... while (0)
10312
2e57c088 103132003-01-29 Joel Sherrill <joel@OARcorp.com>
1134ce43 10314
553b5aa0 10315 PR bootstrap/9296
1134ce43 10316 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
553b5aa0 10317 depended on it being defined until now.
1134ce43 10318
553b5aa0 103192003-01-29 Joel Sherrill <joel@OARcorp.com>
d6998fd6 10320
553b5aa0 10321 PR target/9295
d6998fd6 10322 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
10323 RTEMS code knows which C++ initialization style the toolset
553b5aa0 10324 configuration is using.
d6998fd6 10325
2e57c088 103262003-01-29 Joel Sherrill <joel@OARcorp.com>
c9f668ff 10327
553b5aa0 10328 PR bootstrap/9293
644f3ccf 10329 * config/m68k/t-crtstuff: Replace spaces with tabs, add
c9f668ff 10330 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
c9f668ff 10331
2e57c088 103322003-01-29 Joel Sherrill <joel@OARcorp.com>
b91c6222 10333
553b5aa0 10334 PR bootstrap/9292
b91c6222 10335 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
10336 RTEMS threads.
10337 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
b91c6222 10338
a417f7e7 103392003-01-29 Nick Clifton <nickc@redhat.com>
10340
10341 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
10342 not $(srcdir).
10343
eeabb55e 103442003-01-29 Andrew Haley <aph@redhat.com>
10345
10346 * tree-inline.c (walk_tree): Add CHAR_TYPE.
10347
96b74343 103482003-01-29 Jan Hubicka <jh@suse.cz>
1ec233b4 10349
10350 * i386.md (subdi3_carry_rex64): Fix typo.
10351
af6a14ce 103522003-01-28 Stan Shebs <shebs@apple.com>
10353
10354 * coretypes.h (cpp_reader): Forward declare struct.
10355 * c-pragma.h (cpp_reader): Remove forward declaration.
10356 * hashtable.h (cpp_reader): Likewise.
10357 * scan.h (cpp_reader): Likewise.
10358 * tree.h (cpp_reader): Likewise.
10359 * config/darwin-protos.h (cpp_reader): Likewise.
10360 * config/arm/arm-protos.h (cpp_reader): Likewise.
10361 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
10362 struct cpp_reader in prototypes.
10363
edf1be12 103642003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10365
10366 * doc/install.texi: Add documentation for installation into
10367 tooldirs and with DESTDIR.
10368
3102e37d 103692003-01-28 Richard Henderson <rth@redhat.com>
10370
10371 * config.gcc (ia64*-*-aix*): Remove.
10372 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
10373 * config/ia64/unwind-aix.c: Remove file.
10374
251538ce 103752003-01-28 Andreas Schwab <schwab@suse.de>
10376
644f3ccf 10377 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
10378 register.
10379 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
10380 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
10381 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
10382 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
10383 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
10384 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
10385 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
251538ce 10386
a455589c 103872003-01-28 Richard Sandiford <rsandifo@redhat.com>
10388
10389 * combine.c (nonzero_bits): Fix check for negative divide operands.
10390
2ee31014 103912003-01-28 Richard Henderson <rth@redhat.com>
10392
10393 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
10394 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
10395
8bf078ef 103962003-01-28 Richard Henderson <rth@redhat.com>
10397
10398 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
10399
9517cd99 10400 * config/cris/cris.c (cris_address_cost): Make static.
10401 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
10402 * config/cris/cris.h (ADDRESS_COST): Remove.
10403 * config/cris/cris-protos.h: Update.
10404
8bf078ef 104052003-01-23 Mike Stump <mrs@apple.com>
c8a9f9bf 10406
10407 * regclass.c (init_reg_autoinc): New function.
10408 (regclass): Move initialization of forbidden_inc_dec_class from
da980a43 10409 here...
c8a9f9bf 10410 (init_regs): to here. Avoids reinitialization for each function,
da980a43 10411 saving compilation time.
c8a9f9bf 10412
922df727 104132003-01-28 Jason Merrill <jason@redhat.com>
10414
10415 * cpplib.h (struct cpp_options): Add warn_deprecated field.
10416 * cppinit.c (cpp_create_reader): Turn it on by default.
10417 * c-opts.c (c_common_decode_option): Set it.
10418 * cpplib.c (do_pragma_once): Only complain about #pragma once
10419 if warn_deprecated is set.
10420
a5760913 104212003-01-28 Dale Johannesen <dalej@apple.com>
922df727 10422
2ee31014 10423 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
10424 * loop.c (scan_loop): Move movables on -Os rich-register targets.
10425 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
a5760913 10426
ec0457a8 104272003-01-28 Richard Henderson <rth@redhat.com>
10428
10429 * target.h (targetm.address_cost): New.
10430 * target-def.h (TARGET_ADDRESS_COST): New.
10431 (TARGET_RTX_COSTS): Uncomment. Oops.
10432 * cse.c (address_cost): Use new target hook.
10433 (default_address_cost): New.
10434 * output.h (default_address_cost): Declare.
10435 * hooks.c (hook_int_rtx_0): New.
10436 * hooks.h (hook_int_rtx_0): Declare.
10437 * loop.c (combine_givs_p): Remove if 0 code.
10438 * system.h (ADDRESS_COST): Poison.
10439
10440 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
10441 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
10442 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
10443 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
10444 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
10445 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
10446 config/xtensa/xtensa.c, config/xtensa/xtensa.h
10447 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
10448 (ADDRESS_COST): Remove.
10449
10450 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
10451 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10452 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10453 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
10454 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
10455 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
10456 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
10457 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
644f3ccf 10458 config/mips/mips.c, config/mips/mips.h,
ec0457a8 10459 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
644f3ccf 10460 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
ec0457a8 10461 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
10462 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
10463 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
10464 config/vax/vax.c, config/vax/vax.h
10465 (foo_address_cost): Make static.
10466 (TARGET_ADDRESS_COST): New.
10467 (ADDRESS_COST): Remove.
10468
10469 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
10470 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
10471 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
10472 config/stormy16/stormy16.h
10473 (ADDRESS_COST): Move code ...
10474 (foo_address_cost): ... here.
10475 (TARGET_ADDRESS_COST): New.
10476
10477 * config/m32r/m32r.c (m32r_address_cost): Remove.
10478 * config/m32r/m32r-protos.h: Update.
10479
10480 * config/mmix/mmix.c (mmix_address_cost): Remove.
10481 * config/mmix/mmix-protos.h: Update.
10482
10483 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
10484 mn10300_address_cost; move unsig allocation ...
10485 (mn10300_address_cost): ... here.
10486 (TARGET_ADDRESS_COST): New.
10487 * config/mn10300/mn10300-protos.h: Update.
10488 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
10489
9517cd99 10490 * doc/tm.texi: Update.
10491
e26579fc 104922003-01-28 Vladimir Makarov <vmakarov@redhat.com>
10493
10494 * haifa-sched.c (schedule_insn): Return necessary cycle advance
10495 after issuing the insn.
10496 (rank_for_schedule): Make a insn with /S the highest priority
10497 insn.
10498 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
10499 (choose_ready): Check SCHED_GROUP_P.
10500 (schedule_block): Advance cycle after issuing insn if it is
10501 necessary. Don't reorder insns if there is an insn with /S.
10502 (set_priorities): Ignore schedule groups.
10503
10504 * sched-deps.c (remove_dependence, group_leader): Remove the
10505 functions.
10506 (add_dependence): Ignore schedule groups.
10507 (set_sched_group_p): Don't make copy of dependencies from previous
10508 insn of the schedule group. Add anti-dependency to the previous
10509 insn of the schedule group.
10510 (compute_forward_dependences): Ignore schedule groups.
10511
10512 * sched-ebb.c (init_ready_list): Ignore schedule groups.
10513
10514 * sched-rgn.c (init_ready_list): Ditto.
10515 (can_schedule_ready_p): Ditto.
644f3ccf 10516
74519663 105172003-01-28 Vladimir Makarov <vmakarov@redhat.com>
10518
10519 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
10520 register to another one.
10521
dceaa0b1 105222003-01-28 Richard Henderson <rth@redhat.com>
10523
10524 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
10525
4a1ef3f6 105262003-01-28 Roger Sayle <roger@eyesopen.com>
10527
10528 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
10529
c87f89be 105302003-01-28 Richard Sandiford <rsandifo@redhat.com>
10531
10532 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
10533 class contains a floating-point register, return the size of the
10534 mode in half words.
10535
96b74343 105362003-01-28 Jan Hubicka <jh@suse.cz>
ed87b808 10537
da980a43 10538 * i386.c (ix86_carry_flag_operator): New predicate.
10539 (fcmov_operator): Fix whitespace.
10540 (ix86_expand_carry_flag_compare): Deal with floating point.
10541 (ix86_expand_int_movcc): Deal with fp; update insn expansion
10542 (ix86_expand_int_addcc): Likewise.
10543 (ix86_expand_strlensi_unroll_1): likewsie.
10544 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
10545 * i386.md (add?i_carry_rex64): Use new predicate.
10546 (sub?i3_carry_rex64): Likewise.
10547 (x86_mov?icc_0_m1*): Likewise.
ed87b808 10548
451e72c2 105492003-01-28 Andreas Schwab <schwab@suse.de>
10550
fe1dc701 10551 * cfgloopmanip.c (create_preheader): Initialize src to avoid
10552 warning.
10553
10554 * expmed.c (emit_store_flag): Fix cast to avoid sign
10555 comparison warning.
10556
451e72c2 10557 * combine.c (force_to_mode): Add cast to fix warning when
10558 STORE_FLAG_VALUE is negative.
10559
fab7adbf 105602003-01-27 Richard Henderson <rth@redhat.com>
10561
10562 * Makefile.in (cse.o): Depend on TARGET_H.
10563 * cse.c (rtx_cost): Use targetm.rtx_costs.
10564 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
10565 * doc/tm.texi: Update.
644f3ccf 10566
fab7adbf 10567 * target.h (targetm.rtx_costs): New.
10568 * target-def.h (TARGET_RTX_COSTS): New.
10569 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
10570 * hooks.h: Update.
10571
10572 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
10573 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
10574 * config/alpha/alpha.h (PROCESSOR_MAX): New.
10575 (CONST_COSTS, RTX_COSTS): Remove.
10576
10577 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
10578 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
10579 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
10580 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
10581 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
10582 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
10583 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
10584 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
10585 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
10586 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
10587 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
10588 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
10589 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
10590 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
10591 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
10592 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
10593 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
10594 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
10595 config/v850/v850.c, config/v850/v850.h,
10596 config/xtensa/xtensa.c, config/xtensa/xtensa.h
10597 (CONST_COSTS, RTX_COSTS): Move code ...
10598 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
10599
10600 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
10601 (arm_rtx_costs, TARGET_RTX_COSTS): New.
10602 * config/arm/arm-protos.h: Update.
10603 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
10604
10605 * config/avr/avr.h (CONST_COSTS): Move code ...
10606 * config/avr/avr.c (avr_rtx_costs): ... here.
10607 (default_rtx_costs): Make static.
10608 * config/avr/avr-protos.h: Update.
10609
10610 * config/h8300/h8300.c (const_costs): Make static.
10611 (h8300_and_costs, h8300_shift_costs): Likewise.
10612 * config/h8300/h8300-protos.h: Update.
10613
10614 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
10615 (CONST_COSTS): Move code ...
10616 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
10617 default_rtx_costs; update for signature change.
10618 * config/ip2k/ip2k-protos.h: Update.
10619
10620 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
10621 (CONST_COSTS): Move code ...
10622 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
10623 (TARGET_RTX_COSTS): New.
10624 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
10625 * config/m68hc11/m68hc11-protos.h: Update.
10626
10627 * config/m68k/m68k.c (const_int_cost): Make static.
10628 * config/m68k/m68k-protos.h: Update.
10629
10630 * config/mcore/mcore.c (mcore_const_costs): Make static.
10631 (mcore_and_cost, mcore_ior_cost): Likewise.
10632 * config/mcore/mcore-protos.h: Update.
10633
10634 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
10635 (mmix_rtx_cost_recalculated): Remove.
10636 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
10637 * config/mmix/mmix-protos.h: Update.
10638
10639 * config/sh/sh.c (shiftcosts): Make static.
10640 (addsubcosts, andcosts, multcosts): Likewise.
10641 * config/sh/sh-protos.h: Update.
10642
10643 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
10644 (sparc_rtx_costs): Make static; update for change in signature.
10645 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
10646 * config/sparc/sparc-protos.h: Update.
10647
10648 * config/v850/v850.c (const_costs): Make static.
10649 * config/v850/v850-protos.h: Update.
10650
10651 * config/vax/vax.h (RTX_COSTS): Remove.
10652 (CONST_COSTS): Move code ...
10653 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
10654 from vax_rtx_cost.
10655 (vax_rtx_costs, TARGET_RTX_COSTS): New.
10656
72f768a7 106572003-01-27 Richard Henderson <rth@redhat.com>
10658
10659 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
bb5d2966 10660 * config/vax/vax-protos.h: Update. Really.
72f768a7 10661
3968abe0 106622003-01-28 Alexandre Oliva <aoliva@redhat.com>
10663
10664 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
10665 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
10666 zero if no hardware floating point.
10667 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
10668 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
10669 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
10670 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
10671 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
10672 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
10673 even FP registers on N32 and N64.
10674 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
10675 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
10676 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
10677 even-register-like alignment to 128-bit arguments.
10678 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
10679 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
10680 on N32 or N64.
10681 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
10682 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
10683 (TPBIT): Set to tp-bit.c.
10684 (tp-bit.c): Create out of fp-bit.c.
10685
8ce9c719 106862003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
10687
10688 * c-parse.in: Remove '%expect 32' directive in objc mode.
10689
ad8617cf 106902003-01-27 Nathan Sidwell <nathan@codesourcery.com>
10691
10692 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
10693 (LIBGCOV): New variable.
10694 (libgcc.mk): Add LIBGCOV.
10695 (LIBGCC_DEPS): Add libgcov.c.
10696 (libgcov.a): New target.
10697 (clean): Remove libgcov.a.
10698 (install-libgcc): Do libgcov too.
10699 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
10700 with libgcov.a.
10701 * libgcc2.c (L_gcov): Move into ...
10702 * libgcov.c: ... here. New file.
10703 * mklibgcc.in: Add libgcov rules.
10704 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
10705
10706 * doc/invoke.texi (profile-arcs, test-coverage): Update and
10707 clarify.
644f3ccf 10708
ad8617cf 10709 * profile.c (index_counts_file): Remove duplicate check for open file.
10710
9cdc9db8 107112003-01-27 Jerry Quinn <jlquinn@optonline.net>
77305a77 10712
10713 * gcc/doc/invoke.texi (Optimization Options): Group together
10714 optional and experimental flags. Move trapv and bounds-check
cde587d7 10715 out of this section. Group floating point flags together.
77305a77 10716 (Code Gen Options): Move trapv and bounds-check to here.
10717
a8b52821 107182003-01-27 Josef Zlomek <zlomekj@suse.cz>
10719
10720 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
10721
8aa692e0 107222003-01-27 Richard Earnshaw <rearnsha@arm.com>
10723
10724 PR optimization/9090
10725 * function.c (purge_addressof_1): After pushing an addressed register
10726 onto the stack, simplify the result.
10727
d835d5ce 107282003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
10729
10730 * doc/extend.texi: Fix typo.
10731
a3af0c0e 107322003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
10733
10734 * doc/cppopts.texi: Fix typo.
10735 * doc/objc.texi: Likewise.
10736 * doc/passes.texi: Likewise.
10737
650102e0 107382003-01-27 Alexandre Oliva <aoliva@redhat.com>
10739
10740 * real.c (ibm_extended_format): Add 53 to minimum exponent.
10741 (encode_ibm_extended): Adjust.
10742
57f03ed4 107432003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
10744
10745 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
10746 timevar_id enumerations.
10747
77676a31 107482003-01-26 Kazu Hirata <kazu@cs.umass.edu>
10749
10750 * combine.c: Fix formatting.
10751
6bd9bfaa 107522003-01-26 Kazu Hirata <kazu@cs.umass.edu>
10753
10754 * doc/gccint.texi: Update the copyright.
10755
42cc08b5 107562003-01-26 Kazu Hirata <kazu@cs.umass.edu>
10757
10758 * doc/cpp.texi: Fix typos.
10759 * doc/extend.texi: Likewise.
10760 * doc/gty.texi: Likewise.
10761 * doc/install.texi: Likewise.
10762 * doc/passes.texi: Likewise.
10763 * doc/rtl.texi: Likewise.
10764 * doc/tm.texi: Likewise.
10765
1d5a21db 107662003-01-26 Kazu Hirata <kazu@cs.umass.edu>
10767
10768 * config/ia64/fde-glibc.c: Fix comment typos.
10769 * config/ia64/hpux.h: Likewise.
10770 * config/ia64/ia64.c: Likewise.
10771 * config/ia64/ia64.h: Likewise.
10772 * config/ia64/unwind-ia64.c: Likewise.
10773
b455d67b 107742003-01-26 Kazu Hirata <kazu@cs.umass.edu>
10775
10776 * config/i386/i386-modes.def: Fix comment typos.
10777 * config/i386/i386.c: Likewise.
10778 * config/i386/i386.md: Likewise.
10779
06b9f7dc 107802003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
10781
10782 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
10783 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
10784 ASM_FINISH_DECLARE_OBJECT before defining it.
10785 * toplev.c (rest_of_decl_compilation): Don't define
10786 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
10787 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
10788 parameters for DWARF2 targets because they _are_ used.
10789
5b7344c7 107902003-01-26 Alexandre Oliva <aoliva@redhat.com>
10791
199bff55 10792 * fp-bit.h: Define macros for TFmode floating-point constants
10793 in IBM-extended TFmode types.
10794 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
10795 widths.
10796 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
10797 TFmode type.
10798
5b7344c7 10799 * config/fp-bit.h: Define macros for TFmode floating-point
10800 constants in IEEE quad TFmode type. Declare functions according
10801 to L_ macros.
10802 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
10803 (TFtype, TItype, UTItype): Define if TMODES is defined.
10804 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
10805 (F_T_BITOFF, D_T_BITOFF): Define.
10806 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
10807 guaranteed to be wide enough.
10808 * config/fp-bit.c: Check for L_ macros for tf functions.
10809 (__thenan_tf): New.
10810 (nan): Adjust.
10811 (pack_d, unpack_d): Support IEEE 854 quad type.
10812 (_fpmul_parts): Support TFmode. Compute exponent adjustment
10813 from FRAC_NBITS, FRAC_BITS and NGARDS.
10814 (usi_to_float): Cast constants to be shifted to fractype
10815 instead of assuming long long is wide enough.
10816 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
10817
c509f41b 108182003-01-26 Andreas Jaeger <aj@suse.de>
10819
10820 * df.c: Remove prototype of unused function df_regno_rtl_debug.
10821
286dba1e 108222003-01-26 Alexandre Oliva <aoliva@redhat.com>
10823
a2719b7a 10824 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
10825 (DBBIT_FUNCS): Added _df_to_tf.
10826 (TPBIT_FUNCS): New.
10827 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
10828 (LIBGCC_DEPS): Added TPBIT.
10829 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
10830
9f4d4b89 10831 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
10832 been able to move the result to target.
10833
286dba1e 10834 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
10835 for the appropriate mode.
10836
40651bac 10837 * calls.c (emit_library_call_value_1): Handle return values
10838 in a PARALLEL.
10839
1a3e3a66 10840 * rtl.c (get_mode_alignment): Moved to...
10841 * stor-layout.c: ... here.
10842
52717541 10843 * print-rtl.c (print_rtx): Don't print MEM details in
10844 GENERATOR_FILEs.
10845
adb4084e 108462003-01-26 Michael Hayes <mph@paradise.net.nz>
10847
10848 * df.h: Update comments, tidy formatting.
10849 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
10850 REVERSE, UNION, INTERSECTION. All uses updated.
10851 (OLD_DF_INTERFACE): Remove.
10852 (struct insn_info): Remove commented out insn field.
10853 * df.c: Update comments, tidy formatting.
10854 (df_def_table_realloc): Remove.
10855
10856
6e96b626 108572003-01-26 Alan Modra <amodra@bigpond.net.au>
10858
10859 * calls.c (save_fixed_argument_area): Tidy.
10860 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
10861 (expand_call): Comment typo fixes. Don't init low_to_save. Start
10862 call chain loop at 1 if !try_tail_call. Formatting.
10863 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
10864 Use save_fixed_argument_area and restore_fixed_argument_area.
10865
29f06995 108662003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10867
10868 * df.c (df_uses_record): Handle CC0.
10869
b51061d4 108702003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
10871
2ee31014 10872 * reload.c (maybe_memory_address_p): New function.
10873 (find_reloads_address): Use it instead of memory_address_p.
b51061d4 10874
cea53e0a 108752003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
10876
10877 * final.c (shorten_branches): Align the address of code label
2ee31014 10878 when computing initial lengths and addresses.
cea53e0a 10879
485e00f7 108802003-01-25 Kazu Hirata <kazu@cs.umass.edu>
10881
10882 * config/m68hc11/m68hc11.md: Fix a comment typo.
10883
6e8138db 108842003-01-25 Andreas Jaeger <aj@suse.de>
10885
10886 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
10887 TARGET_MACHO.
10888
8724a717 108892003-01-25 Roger Sayle <roger@eyesopen.com>
10890
10891 * gcse.c (bypass_last_basic_block): New global variable.
10892 (bypass_block): Use redirect_edge_and_branch_force to redirect
10893 fall-through edges. Use bypass_last_basic_block to determine
10894 which blocks have valid PRE information.
10895 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
10896
96b74343 108972003-01-25 Jan Hubicka <jh@suse.cz>
69010836 10898
10899 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
10900
96b74343 109012003-01-25 Jan Hubicka <jh@suse.cz>
819f2ab7 10902 Eric Botcazou <ebotcazou@libertysurf.fr>
10903 PR opt/8492
10904 * gcse.c (one_cprop_pass): Delete unreachable blocks.
10905
4004adf0 109062003-01-25 Richard Henderson <rth@redhat.com>
10907
10908 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
10909 from ia64_aix_select_rtx_section.
10910 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
10911 instead of saving and restoring flag_pic.
10912 (ia64_rwreloc_unique_section): Similarly.
10913 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
10914 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
10915 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
10916 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
10917
33a9c2d6 109182003-01-25 Kazu Hirata <kazu@cs.umass.edu>
10919
10920 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
10921 comment.
10922
4b0b9adb 109232003-01-25 Richard Henderson <rth@redhat.com>
f9e39de2 10924
10925 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
10926
4b0b9adb 109272003-01-25 Kelley Cook <kelleycook@comcast.net>
ed8b73b3 10928
10929 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
10930
e5c8f082 109312003-01-25 Segher Boessenkool <segher@koffie.nl>
10932
10933 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
10934 type for bitmaps. Use unsigned long.
10935 (nBITMAP_WORD_BITS): New macro.
10936 (BITMAP_WORD_BITS): New macro.
10937 (rest of file): Use it.
10938 * bitmap.c: Use it.
10939
47c83366 109402003-01-25 Richard Henderson <rth@redhat.com>
10941
10942 2002-02-19 Robert Lipe <robertlipe@usa.net>
10943 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
10944
4b0b9adb 109452003-01-25 Roger Sayle <roger@eyesopen.com>
ea06a334 10946
10947 * builtins.c (purge_builtin_constant_p): Scan insn stream
10948 sequentially rather than by basic block.
10949 * function.c (purge_addressof): Simplify test with INSN_P.
10950
ba0688f3 109512003-01-25 Kazu Hirata <kazu@cs.umass.edu>
10952
47c83366 10953 * combine.c (simplify_comparison, case AND): Remove a redundant test.
ba0688f3 10954
4b0b9adb 109552003-01-25 Roger Sayle <roger@eyesopen.com>
e6f295fb 10956
10957 * function.h (struct function): New field calls_constant_p.
10958 (current_function_calls_constant_p): New macro for above.
10959 * function.c (prepare_function_start): Initialize calls_eh_return
10960 and calls_constant_p.
10961 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
10962 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
10963 when the current_function_calls_constant_p.
10964 * integrate.c (expand_inline_function): Set calls_constant_p if
10965 the function being inlined has calls_constant_p set.
10966
4b0b9adb 109672003-01-25 Roger Sayle <roger@eyesopen.com>
34863464 10968
10969 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
10970 optimizing, even if flag_gcse is true.
10971 * toplev.c (rest_of_compilation): purge_builtin_constant_p
10972 only needs to be called when "optimize > 0 && flag_gcse".
10973
315e4c10 109742003-01-25 Roger Sayle <roger@eyesopen.com>
10975
10976 * stmt.c (emit_case_bit_tests): New routine to implement suitable
10977 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
10978 (case_bit_test_cmp): New comparison function for "qsort" to order
10979 case_bit_tests by decreasing number of destination nodes.
10980 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
10981 (expand_end_case_type): Use emit_case_bit_tests to implement
10982 suitable switch statments.
10983 (CASE_USE_BIT_TESTS): New target macro to disable the above.
10984 * Makefile.in (stmt.o): Add dependency on optab.h.
10985 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
10986
1aa28b70 109872003-01-23 Andreas Schwab <schwab@suse.de>
10988
10989 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
10990 __do_global_ctors_aux hidden global and don't put it in
10991 .init_array.
10992 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
10993 instead so that it comes first.
10994
96b74343 109952003-01-25 Jan Hubicka <jh@suse.cz>
3e57036d 10996
10997 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
10998 subreg is read/modify.
10999
96b74343 110002003-01-25 Jan Hubicka <jh@suse.cz>
65e8d683 11001
11002 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
11003 do libcall for large blocks.
11004 * i386.md (comi patterns): Set type to ssecomi.
11005 (sse2_unpck?pd): Fix mode of vec_select.
11006
11007 * cse.c: Include except.h
11008 (cse_set_around_loop): Do not create new basic blocks.
11009 * Makefile.in (cse.o): Add dependnecy on except.h
11010
96b74343 110112003-01-25 Jan Hubicka <jh@suse.cz>
6528f4f4 11012
11013 * builtins.c (fold_trunc_transparent_mathfn): New function.
11014 (fold_builtin): Use it.
11015 * convert.c (convert_to_real): Re-enable code to convert
11016 math functions; add support for floor familly functions.
11017
c2c8a10e 110182003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11019
11020 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
11021 dependencies on coretypes.h and $(TM_H).
11022
96b74343 110232003-01-25 Jan Hubicka <jh@suse.cz>
28c09010 11024
11025 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
11026
4b0b9adb 110272003-01-24 Stuart Hastings <stuart@apple.com>
973af6a2 11028
aa31316b 11029 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
973af6a2 11030
0a55f764 110312003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11032
11033 * config/c4x/c4x.md (UNSPEC_BU): New constants.
11034 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
11035 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
11036 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
11037 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
11038 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
11039 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
11040 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
11041
96b74343 110422003-01-24 Jan Hubicka <jh@suse.cz>
ca74b940 11043
aa31316b 11044 * emit-rtl.c (reg_attrs_htab): New static variable.
ca74b940 11045 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
11046 functions.
11047 (reg_rtx): Do not maintain regno_decl.
11048 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
11049 set_mem_attrs_from_reg): New global function.
11050 (init_emit): Do not initialize regno_decl.
11051 (init_emit_once): initialize reg_attrs_htab.
11052 * final.c (alter_subreg): Do not replace REG by SUBREG.
11053 (gen_mem_expr_from_op): Improve output.
11054 (output_asm_operands): Likewise.
11055 * function.c (assign_params): Do not set REGNO_DECL.
11056 * function.h (struct function): Kill regno_decl.
11057 (REGNO_DECL): Kill.
11058 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
11059 * print_rtl.c (print_rtx): Output REG information.
11060 * regclass.c (reg_scan_mark_refs): Update attrs.
11061 * reload1.c (alter_reg): Likewise.
11062 * simplify_rtx.c (simplify_subreg): Likewise.
11063 * stmt.c (expand_decl): Likewise.
11064 * rtl.def (REG): Add new field.
11065 * rtl.h (struct reg_attrs): New.
11066 (rtunion_def): At rtreg.
11067 (X0MEMATTR): Add checking.
11068 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
11069 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
11070 Declare.
11071 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
11072
a6169f06 110732003-01-24 Bob Wilson <bob.wilson@acm.org>
11074
11075 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
11076 (xtensa_emit_call, print_operand): Fix printf format strings
11077 to avoid compile warnings.
11078 (xtensa_function_prologue, xtensa_function_epilogue): Change type
11079 of "size" argument to HOST_WIDE_INT to fix compile warnings.
11080 * config/xtensa/xtensa-protos.h
11081 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
11082
96b74343 110832003-01-24 Jan Hubicka <jh@suse.cz>
0a68165a 11084
11085 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
11086 (implicit_built_in_decls): New global array.
11087 (mathfn_built_in): New global function.
11088 (fold_trunc_transparent_mathfn): New static function
11089 (expand_builtin_strstr, expand_bultin_strchr,
11090 expand_builtin_strpbrk, expand_builtin_strcpy,
11091 expand_builtin_strncpy, expand_bultin_strcmp,
11092 expand_bultin_strncat, expand_builtin_fputs): Use
11093 implicint_built_in_decls.
11094 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
11095 * builtins.def: Fix comments.
11096 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
11097 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
11098 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
11099 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
11100 (DEF_C99_C90RES_BULTIN): New.
11101 (*f, *l builtins): Update.
11102 * c-common.c (DEF_BUILTIN): Initialize implicit array.
11103 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
11104 * convert.c (strip_float_extensions): New global function.
11105 * tree.h (DEF_BUILTIN): Accept 10 arguments.
11106 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
11107 Declare.
11108 * java/builtins.c (define_builtin): Handle implicit.
11109 (DEF_BUILTIN): Update.
11110 * tm.texi (TARGET_C99_FUNCTIONS): Document.
11111 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
11112 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
11113 when using glibc2.
11114
54a0bb9d 111152003-01-24 Bob Wilson <bob.wilson@acm.org>
11116
11117 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
11118 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
11119 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
11120 * config/xtensa/crti.asm: New file.
11121 * config/xtensa/crtn.asm: New file.
11122 * config/xtensa/t-elf: New file.
11123 * config/xtensa/t-linux: New file.
11124 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
11125 Move various CFLAGS settings to new t-elf file.
11126
cb9d4058 111272003-01-24 Richard Henderson <rth@redhat.com>
11128
11129 PR optimization/4382
11130 * tree-inline.c (find_builtin_longjmp_call_1): New.
11131 (find_builtin_longjmp_call): New.
11132 (inlinable_function_p): Use it.
11133
375540a1 111342003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11135
11136 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
11137 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
11138 * config/i386/i386.c (function_arg_pass_by_reference): New.
11139 (ix86_va_arg): Support arguments passed by reference.
11140
862be747 111412003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11142
11143 * cfgloopanal.c: New file.
11144 * cfgloopmanip.c: New file.
11145 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
11146 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
11147 cfglayout.o): Add dependency on cfgloop.h.
11148 (cfgloop.o): Add flags.h dependency.
11149 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
11150 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
11151 (struct loop, struct loops, flow_loops_find, flow_loops_update,
11152 flow_loops_free, flow_loops_dump, flow_loop_dump,
11153 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
11154 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
11155 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
11156 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
11157 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
11158 find_common_loop, verify_loop_structure): Declarations moved to ...
11159 * cfgloop.h: New file.
11160 * bb-reorder.c (reorder_basic_blocks): Modified.
11161 * cfglayout.c: Include cfgloop.h.
11162 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
11163 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
11164 (break_superblocks): New static function.
11165 (cfg_layout_finalize): Use it.
11166 (cfg_layout_split_block): New function.
11167 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
11168 fields.
11169 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
11170 changed.
11171 (cfg_layout_split_block): Declare.
11172 * cfgloop.c: Include cfgloop.h and flags.h.
11173 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
11174 get_loop_body): Avoid signed versus unsigned comparison warnings.
11175 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
11176 loop_latch_edge): Modified.
11177 (verify_loop_structure): Modified to use flags stored in loop structure;
11178 check irreducible loops.
11179 (cancel_loop, cancel_loop_tree): New functions.
11180 (estimate_probability): Use loop analysis code for predictions.
11181 (estimate_loops_at_level): Avoid signed versus unsigned comparison
11182 warnings.
11183 * doloop.c: Include cfgloop.h.
11184 * loop.c: Include cfgloop.h.
11185 * predict.c: Include cfgloop.h.
11186 * toplev.c: Include cfgloop.h.
11187 * unroll.c: Include cfgloop.h.
11188 * tracer.c (tracer): Modified.
11189
8796f52f 111902003-01-24 Kazu Hirata <kazu@cs.umass.edu>
11191
11192 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
11193
be00aaa8 111942003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
11195
11196 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
11197 * configure: Regenerate.
11198
11199 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
11200 (tls_symbolic_reference_mentioned_p): Add prototype.
11201 (s390_tls_get_offset): Add prototype.
11202 (emit_pic_move): Remove prototype, replace by ...
11203 (emit_symbolic_move): .. this new prototype.
11204
11205 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
11206 (tls_model_chars): New global variable.
11207 (s390_encode_section_info): Encode TLS model.
11208 Use targetm.binds_local_p to check for local symbols.
11209 (s390_strip_name_encoding): New function.
11210 (TARGET_STRIP_NAME_ENCODING): Define.
11211
11212 (get_thread_pointer): New function.
6e8138db 11213 (legitimize_tls_address): New function.
be00aaa8 11214 (legitimize_address): Call it.
11215 (emit_pic_move): Remove, replace by ...
11216 (emit_symbolic_move): ... this new function.
11217
11218 (larl_operand): Handle TLS operands.
11219 (legitimate_constant_p): Likewise.
11220 (s390_decompose_address): Likewise.
11221 (s390_cannot_force_const_mem): New function.
11222 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11223
11224 (s390_output_symbolic_const): Handle TLS unspecs.
11225 (print_operand): New code 'J'.
11226 (machine_function): Add struct member 'some_ld_name'.
11227 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
11228
11229 (enum s390_builtin): New type.
11230 (code_for_builtin_64, code_for_builtin_31): New global variables.
11231 (s390_init_builtins, s390_expand_builtin): New functions.
11232 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
11233
11234 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
11235 (ASM_OUTPUT_LABELREF): Define.
11236 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
11237
11238 * config/s390/s390.md: Define TLS UNSPEC constants.
11239 ("movdi", "movsi"): Handle TLS operands.
11240 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
11241 ("*tls_load_64", "*tls_load_31"): New insns.
11242 ("call_value_tls", "call_value_tls_exp"): New expanders.
6e8138db 11243 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
be00aaa8 11244 "bas_tls_64", "bas_tls_31"): New insns.
11245
6ef250c4 112462003-01-24 Nathan Sidwell <nathan@codesourcery.com>
11247
11248 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
11249 spe ABI is configured, if requested.
11250
d0b7f2fd 112512003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11252
11253 * doc/passes.texi: Fix typo.
11254
9a27f26f 112552003-01-24 Andreas Schwab <schwab@suse.de>
11256
11257 * stor-layout.c (excess_unit_span): Only define if used.
11258
7ce3f209 112592003-01-24 Jerry Quinn <jlquinn@optonline.net>
11260
11261 * gcc/doc/invoke.texi (Optimization Options): List -O levels
11262 for each optimization flag.
11263
c15ba0f0 112642003-01-24 Kazu Hirata <kazu@cs.umass.edu>
11265
11266 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
11267
228c76d8 112682003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11269
11270 * doc/bugreport.texi: Use @command instead of @code for commands.
11271 * doc/collect2.texi: Likewise.
11272 * doc/headerdirs.texi: Likewise.
11273 * doc/invoke.texi: Likewise.
11274 * doc/standards.texi: Likewise.
11275 * doc/tm.texi: Likewise.
11276 * doc/trouble.texi: Likewise.
11277
000c5098 112782003-01-24 Nick Clifton <nickc@redhat.com>
11279
11280 * config/arm/arm.c (use_return_insn): Do not use a single return
11281 instruction for interrupt handelrs which have to create a stack
11282 frame.
11283 (arm_expand_prologue): Do not pre-bias the return address of
11284 interrupt handlers which create a stack frame.
11285
112862003-01-24 Nick Clifton <nickc@redhat.com>
11287
11288 * Add sh2e support:
11289
11290 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
11291
11292 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
11293 med_cbranches. Fix logic in short_cbranches.
11294
11295 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
11296
11297 * config/sh/sh.md (delay for cbranch): Don't annul delay
11298 slots on SH2e.
11299 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
11300 cbranch with unfilled delay slot on SH2e.
11301 (output_branch): Fill with a nop the delay slot of a
11302 branch that required a delay slot but didn't get one.
11303
11304 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
11305
11306 * doc/invoke.texi (SH options): Document -m2e.
11307 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
11308 * config/sh/lib1funcs.asm: Likewise.
11309 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
11310 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
11311 not __sh1__.
11312 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
11313 SH2E up.
11314 (SH3E_BIT): Renamed to...
11315 (SH_E_BIT): ... this. Replace all uses.
11316 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
11317 Replace all uses of TARGET_SH3E with TARGET_SH2E.
11318 (TARGET_SWITCHES): Added 2e.
11319 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
11320 (processor_type): Added PROCESSOR_SH2E.
11321 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
11322 TARGET_SH2E, except in sqrtsf2_i.
11323 (attribute cpu): Added sh2e.
11324 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
11325 (MULTILIB_MATCHES): Use m2e multilib for m3e.
11326 * config.gcc: Add sh2e target support.
11327
56421f52 113282003-01-24 Phil Edwards <pme@gcc.gnu.org>
11329
11330 Rename -W to -Wextra.
11331 * c-decl.c: Update comments.
11332 * c-typeck.c: Likewise.
11333 * flags.h: Likewise.
11334 * function.c: Likewise.
11335 * stmt.c: Likewise.
11336 * toplev.c: Update comments.
11337 (W_options): Add 'extra'.
11338 (display_help): Remove '-W'.
11339 (decode_W_option): Special warn_uninitialized treatment in the case
11340 of -Wextra.
11341 * doc/invoke.texi: Update with new entries.
11342
704a64ba 113432003-01-23 Richard Henderson <rth@redhat.com>
11344
47c83366 11345 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
11346 in no-else-block case. Add commentary.
704a64ba 11347
4b0e3ddb 113482003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11349
18320123 11350 * configure.in: Revert last change.
11351
113522003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11353
11354 * configure.in: Don't include ansidecl.h in tconfig.h.
4b0e3ddb 11355 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
11356 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
11357 ATTRIBUTE_UNUSED.
11358
11359 * configure: Regenerate.
11360
d784a739 113612003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11362
11363 PR java/6748
11364 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
11365 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
11366 kernels.
11367
6430fa98 113682003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11369
11370 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
11371
779f7a5c 113722003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
11373
11374 * genattrtab.c (write_attr_get): Mark 'insn' paramter
11375 as ATTRIBUTE_UNUSED.
11376
f2989adc 113772003-01-23 Richard Earnshaw <rearnsha@arm.com>
11378
11379 * arm.c (thumb_base_register_rtx_p): New function.
11380 (thumb_index_register_rtx_p): New function.
11381 (thumb_legitimate_address_p): New function.
11382 (thumb_legitimate_offset_p): New function.
11383 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
b38347a5 11384 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
f2989adc 11385 definitions.
11386 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
11387 (THUMB_LEGITIMATE_OFFSET): Delte.
11388 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
11389 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
11390 (thumb_legitimate_offset_p): Likewise.
11391
5a1a138d 113922003-01-23 Andreas Schwab <schwab@suse.de>
11393
11394 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
11395
346c08bd 113962003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11397
11398 * fixinc/Makefile.in (FL_LIST): Revert last change.
11399
863ea20b 114002003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11401
11402 PR other/7341
11403 * invoke.texi (ftest-coverage): Fix broken cross-reference.
11404 Change @code to @command for gcov command.
11405
11406 * gcc.texi: Adjust title of gcov section.
11407 Adjust copyright.
11408 * gcov.texi: Likewise.
11409
c7926a82 114102003-01-22 Roger Sayle <roger@eyesopen.com>
11411
11412 PR optimization/8423
11413 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
11414 its argument is constant, or 0 if !flag_gcse.
11415 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
11416 if it's argument is constant.
11417 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
11418 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
11419 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
11420 * builtins.c (purge_builtin_constant_p): New function to force
11421 instantiation of any remaining CONSTANT_P_RTX nodes.
11422 * rtl.h (purge_builtin_constant_p): Prototype here.
11423 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
11424 pass after GCSE and before loop.
11425 (flag_gcse): No longer static.
11426 * flags.h (flag_gcse): Prototype here.
11427
563b03db 114282003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
11429
11430 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
11431 introduced by last change.
11432
3d72c7bc 114332003-01-22 Andreas Schwab <schwab@suse.de>
11434
11435 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
11436
c6ff55c2 114372003-01-22 Kazu Hirata <kazu@cs.umass.edu>
11438
11439 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
11440 request a scratch reg on H8S when the shift count is 8.
11441
ec3b9583 114422003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
11443
11444 * config/s390/s390-protos.h (preferred_la_operand_p):
11445 Remove second parameter.
11446 * config/s390/s390.c (preferred_la_operand_p): Likewise.
11447 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
11448 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
11449 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
11450 Add peepholes to transform ADD to LOAD ADDRESS.
11451
d32b3557 114522003-01-22 Richard Earnshaw <rearnsha@arm.com>
11453
11454 * arm.c (arm_address_register_rtx_p): New function.
11455 (arm_legitimate_address_p): New function.
11456 (arm_legitimate_index_p): New function.
11457 (legitimize_pic_address): Use arm_legitimate_index_p.
11458 * arm-protos.h (arm_legtimate_address_p): Add prototype.
11459 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
11460 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
11461
be6d0982 114622003-01-22 Hartmut Penner <hpenner@de.ibm.com>
11463
11464 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
11465 * config/s390/2064.md (define_bypass): Correct 'Load' and
11466 'Load-address' bypass values.
6e8138db 11467
c7cf8ad9 114682003-01-22 Andreas Schwab <schwab@suse.de>
11469
11470 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
11471
84eb7376 114722003-01-21 Zack Weinberg <zack@codesourcery.com>
11473
11474 * genautomata.c (output_internal_insn_latency_func,
11475 output_print_reservation_func): Short circuit when there is no
11476 automaton to generate code for.
11477
24dbe798 114782003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11479
11480 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
11481 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
11482
dbda5ae0 114832003-01-21 Geoffrey Keating <geoffk@apple.com>
11484
11485 * config/rs6000/rs6000.md: Remove warning.
11486 (builtin_setjmp_receiver): Likewise.
11487 * config/darwin.c (update_stubs): Slightly improve terrible hack
11488 with identifiers. Add comment pointing out problems with it.
11489 (update_non_lazy_ptrs): Likewise.
11490
9ddf8721 114912003-01-21 Richard Henderson <rth@redhat.com>
11492
11493 * dwarf2out.c (lookup_filename): Fix printf format warning.
11494 * system.h (fread_unlocked, fwrite_unlocked): Undef.
11495
11496 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
11497 (fixincl.o-warn, gnu-regex.o-warn): New.
11498 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
11499 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
11500 * fixinc/fixincl.c (process): Fix printf format warning.
11501
21d1bacf 115022003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
11503
11504 * dwarf2out (output_file_names): Don't crash if called
11505 with empty file_table.
11506
929ed800 115072003-01-21 Zack Weinberg <zack@codesourcery.com>
11508
11509 * genautomata.c (output_internal_insn_latency_func): Add
11510 missing break statement to generated code.
11511
427d3c76 115122003-01-21 Roger Sayle <roger@eyesopen.com>
11513
11514 * stmt.c (same_case_target_p): New function to determine whether
11515 two case labels branch to the same target. Split out from...
11516 (group_case_nodes): ... here. Use same_case_target_p instead.
11517 (strip_default_case_nodes): Remove explicit case nodes
11518 that branch to the default destination.
11519 (expand_end_case_type): Call strip_default_case_nodes after
11520 group_case_nodes, to simplify the case-list before we count it.
11521 Only generate table_label RTX when actually needed. Try to share
11522 thiscase->exit_label and thiscase->data.case_stmt.default_label
11523 when a switch has no explicit default case. Simplify test for
11524 constant index.
11525
de7a0622 115262003-01-21 Kazu Hirata <kazu@cs.umass.edu>
11527
11528 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
11529 \t.
11530 (*negsf2_h8300hs): Likewise.
11531 (*addsi3_lshiftrt_16_zexthi): Likewise.
11532 (*iorhi3_lshiftrt_8): Likewise.
11533
9105005a 115342003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
11535
11536 * dwarf2out.c (fde_table_in_use): Mark GTY.
11537 (dwarf2out_cfi_label_num): New variable, marked GTY.
11538 (dwarf2out_cfi_label): Use it instead of static label_num.
11539 * emit-rtl.c (label_num): Mark GTY.
11540
469dc9d2 115412003-01-21 Kazu Hirata <kazu@cs.umass.edu>
11542
11543 * config/h8300/h8300.c (output_plussi): Support H8/300.
11544 (compute_plussi_length): Likewise.
11545 (compute_plussi_cc): Likewise.
11546 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
11547 output assembly instructions.
11548
a179eb24 115492003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11550
e8bcedb6 11551 * calls.c (fix_unsafe_tree): Prototype.
11552
a179eb24 11553 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
11554 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
11555 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
11556 c-parse.o-warn): Add -Wno-error.
11557 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
11558
11559 * configure.in (--enable-werror): Add new flag.
11560 * doc/install.texi (--enable-werror): Document.
11561 * configure: Regenerate.
11562
11563 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
11564
c95df9e4 115652003-01-21 Andreas Schwab <schwab@suse.de>
11566
11567 * genautomata.c (output_internal_insn_latency_func): Fix missing
11568 close paren in output.
11569
cf5aea47 115702003-01-21 Zack Weinberg <zack@codesourcery.com>
11571
11572 * genautomata.c: Space savings in generated code:
11573 (output_dfa_insn_code_func): Split out the table-enlargement
11574 path to an out-of-line static function, dfa_insn_code_enlarge.
11575 (output_internal_insn_latency_func): Use a lookup table for the
11576 default latencies.
11577 (output_print_reservation_func): Use a lookup table for the
11578 strings.
11579
f1eb2fdd 115802003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
11581
11582 PR opt/7507
11583 * calls.c (fix_unsafe_tree): Split out from ...
11584 (expand_call): ... here. Use it on the function address too.
11585
93be38ba 115862003-01-20 Richard Henderson <rth@redhat.com>
11587
11588 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
11589
154ffe7e 115902003-01-20 Richard Henderson <rth@redhat.com>
11591
4f568b4f 11592 PR opt/7154
154ffe7e 11593 * stmt.c (expand_asm_operands): Validize memory operands.
11594
1a682a4c 115952003-01-20 Richard Henderson <rth@redhat.com>
11596
11597 PR opt/8848
11598 * ifcvt.c (noce_process_if_block): Correct arguments to
11599 modified_between_p for no-else-block case.
11600
11233c59 116012003-01-20 Kazu Hirata <kazu@cs.umass.edu>
11602
11603 * config/h8300/h8300.c (const_costs): Remove a warning.
11604 (output_plussi): Likewise.
11605 (compute_plussi_length): Likewise.
11606 (compute_plussi_cc): Likewise.
11607
bef7e5cb 116082003-01-20 Kazu Hirata <kazu@cs.umass.edu>
11609
11610 * config/h8300/h8300.md (addsi_h8300): Remove the last
11611 alternative.
11612
a033fe93 116132003-01-20 Kazu Hirata <kazu@cs.umass.edu>
11614
11615 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
11616
f162fdc6 116172003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11618
11619 * system.h (__NO_STRING_INLINES): Define.
11620
d7f916d2 116212003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11622
11623 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
11624 is not a scalar int mode.
11625
e30d7fb3 116262003-01-20 Roger Sayle <roger@eyesopen.com>
11627
11628 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
11629 insn's notes following a substitution inside a libcall.
11630
5df0e0e7 116312003-01-20 Zack Weinberg <zack@codesourcery.com>
11632
11633 * configure.in: Check for system-provided 'uchar' type.
89f3001b 11634 * configure, config.in: Regenerate.
5df0e0e7 11635 * cpphash.h: Only typedef 'uchar' if the system doesn't.
11636
890f0c17 116372003-01-20 Richard Henderson <rth@redhat.com>
11638
11639 * expr.h (MUST_PASS_IN_STACK): Move implementation...
11640 * calls.c (default_must_pass_in_stack): ... here.
11641
801a09b3 116422003-01-20 Vladimir Makarov <vmakarov@redhat.com>
11643
5df0e0e7 11644 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
11645
801a09b3 11646 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
11647
11648 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
11649 Wrap up definition of `insn_alts'.
11650
11651 * genattrtab.c (main): Wrap up `insn_alts'.
11652
31a83412 116532003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11654
11655 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
11656 prototyping.
11657 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
5df0e0e7 11658
31a83412 11659 * config.in, configure: Regenerate.
11660
ef5651d0 116612003-01-20 Nick Clifton <nickc@redhat.com>
11662
11663 * config/arm/arm.md (sibcall_epilogue): Add an
11664 UNSPEC_PROLOGUE_USE to prevent the link register from being
11665 considered dead.
11666
96b74343 116672003-01-20 Jan Hubicka <jh@suse.cz>
d0615914 11668
11669 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
11670
b74ce7fd 116712003-01-20 Andreas Schwab <schwab@suse.de>
11672
11673 * system.h: Don't declare strsignal if the decl test hasn't been
11674 run yet.
11675
1617b5d2 116762003-01-20 Kazu Hirata <kazu@cs.umass.edu>
11677
11678 * config/h8300/h8300.c (notice_update_cc): Don't assume that
11679 recog_data.operands[0] is always associated with cc0.
11680
a92a1bb2 116812003-01-19 David Edelsohn <edelsohn@gnu.org>
11682
11683 * collect2.c (ldgetname): Expand declaration to prototype.
11684 * read-rtl.c (atoll): Add prototype.
48cf6cb1 11685 * system.h (strsignal): Also declare if no declaration found.
a92a1bb2 11686
d0faeb9d 116872003-01-19 Alexandre Oliva <aoliva@redhat.com>
11688
11689 * config.gcc (mips64*-*-linux*): Added.
11690 * config/mips/linux64.h, config/mips/t-linux64: New file.
11691 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
11692 * config/mips/mips.c (override_options): Use it.
11693 * config/mips/mips.h (TARGET_SWITCHES): Added...
11694 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
11695 * Makefile.in (SPECS): New.
11696 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
11697 * gcc.c (process_command): Move self-spec processing past spec
11698 file loading.
11699 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
11700 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
11701 CRTSTUFF_T_CFLAGS.
11702 (SPECS): Document.
11703 * doc/invoke.texi (-mabi-fake-default): Document.
11704
3fa952a4 117052003-01-19 Stephane Carrez <stcarrez@nerim.fr>
11706
11707 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
11708 z_reg, z_reg_qi): Declare static and GTY().
11709 (da_reg): Remove.
11710 (create_regs_rtx): Don't create da_reg.
11711 ("gt-m68hc11.h"): Include for GTY roots.
11712 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
11713 and GTY() here.
11714 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
11715 (m68hc11_soft_tmp_reg): Likewise.
11716 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
11717
6a8fa8e2 117182003-01-18 Kazu Hirata <kazu@cs.umass.edu>
11719
11720 * basic-block.h: Fix comment formatting.
11721 * calls.c: Likewise.
11722 * combine.c: Likewise.
11723 * convert.c: Likewise.
11724 * gcov.c: Likewise.
11725 * haifa-sched.c: Likewise.
11726 * libgcc2.c: Likewise.
11727 * loop.c: Likewise.
11728 * profile.c: Likewise.
11729 * system.h: Likewise.
11730
cdc39e87 117312003-01-18 Roger Sayle <roger@eyesopen.com>
11732
11733 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
11734
05fa6637 117352003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11736
11737 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
11738
98e44749 117392003-01-17 Dale Johannesen <dalej@apple.com>
11740
5df0e0e7 11741 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
98e44749 11742 (*floatunssidf2_internal): Ditto.
11743
d716ce75 117442003-01-17 Kazu Hirata <kazu@cs.umass.edu>
11745
11746 * alias.c: Fix comment typos.
11747 * basic-block.h: Likewise.
11748 * c-common.c: Likewise.
11749 * c-common.h: Likewise.
11750 * c-decl.c: Likewise.
11751 * c-opts.c: Likewise.
11752 * c-pragma.c: Likewise.
11753 * c-pretty-print.h: Likewise.
11754 * cfg.c: Likewise.
11755 * cfganal.c: Likewise.
11756 * cfgbuild.c: Likewise.
11757 * cfgcleanup.c: Likewise.
11758 * cfglayout.c: Likewise.
11759 * cfgrtl.c: Likewise.
11760 * convert.c: Likewise.
11761 * cpphash.h: Likewise.
11762 * cpplex.c: Likewise.
11763 * cpplib.h: Likewise.
11764 * df.h: Likewise.
11765 * diagnostic.c: Likewise.
11766 * diagnostic.h: Likewise.
11767 * dwarf2.h: Likewise.
11768
36b12ba7 117692003-01-17 Stan Shebs <shebs@apple.com>
11770
11771 * config/darwin-protos.h: Forward-declare struct cpp_reader.
11772
8482c296 117732003-01-17 Douglas B Rupp <rupp@gnat.com>
11774
11775 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
11776 mistake in last checkin.
11777
98667efb 117782003-01-17 Kazu Hirata <kazu@cs.umass.edu>
11779
11780 * et-forest.c: Fix comment typos.
11781 * et-forest.h: Likewise.
11782 * except.c: Likewise.
11783 * expr.c: Likewise.
11784 * flags.h: Likewise.
11785 * flow.c: Likewise.
11786 * gcc.c: Likewise.
11787 * gcse.c: Likewise.
11788 * genattrtab.c: Likewise.
11789 * genautomata.c: Likewise.
11790 * gengtype.c: Likewise.
11791 * genrecog.c: Likewise.
11792 * global.c: Likewise.
11793 * gthr-rtems.h: Likewise.
11794
c156d8c1 117952003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11796
11797 * i386.c (x86_function_profiler): Fix format specifier.
11798
8578ce7b 117992003-01-17 Richard Henderson <rth@redhat.com>
11800
11801 * gengtype.c (walk_type): Allow paramN_is.
11802
0dc2583b 118032003-01-17 Nick Clifton <nickc@redhat.com>
11804
11805 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
11806
94491c0b 118072003-01-16 Richard Henderson <rth@redhat.com>
11808
11809 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
11810
9de382d9 118112003-01-16 Richard Henderson <rth@redhat.com>
11812
11813 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
11814 (alpha_next_sequence_number): Likewise.
11815 (alpha_this_literal_sequence_number): Likewise.
11816 (alpha_this_gpdisp_sequence_number): Likewise.
11817 (struct alpha_funcs, alpha_funcs_num): Likewise.
11818 (struct alpha_links): Fix branch merge error.
11819 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
11820
0cf0f735 118212003-01-17 Alexandre Oliva <aoliva@redhat.com>
11822
11823 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
11824 R. Ghazi.
11825
b903337a 118262003-01-16 Kazu Hirata <kazu@cs.umass.edu>
11827
11828 * ifcvt.c: Fix comment typos.
11829 * lcm.c: Likewise.
11830 * libgcc2.c: Likewise.
11831 * local-alloc.c: Likewise.
11832 * loop.c: Likewise.
11833 * predict.c: Likewise.
11834 * ra-build.c: Likewise.
11835 * ra.c: Likewise.
11836 * ra-colorize.c: Likewise.
11837 * ra.h: Likewise.
11838 * ra-rewrite.c: Likewise.
11839 * regmove.c: Likewise.
11840 * reload.h: Likewise.
11841 * rtlanal.c: Likewise.
11842 * toplev.c: Likewise.
11843 * tree.h: Likewise.
11844 * unwind-dw2-fde-glibc.c: Likewise.
11845 * vmsdbgout.c: Likewise.
11846
ff279357 118472003-01-16 Richard Henderson <rth@redhat.com>
11848
11849 * dwarf2out.c (struct file_table): Remove.
11850 (FILE_TABLE_INCREMENT): Remove.
11851 (file_table): Make a varray; mark for GC. Update all users.
11852 (file_table_last_lookup_index): Extract from struct file_table.
11853 (output_file_names): Fix unsigned compare warnings.
11854 (add_name_attribute): Remove inline marker.
11855 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
11856 (lookup_filename): Don't manage size of file_table.
11857 (init_file_table): Allocate file_table with GC.
11858 (dwarf2out_init): Don't record main_input_filename here.
11859 (dwarf2out_finish): Do it here instead.
11860
b87083eb 118612003-01-16 Bruce Korb <bkorb@gnu.org>
11862
11863 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
11864
e586c16d 118652003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
11866
5df0e0e7 11867 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
11868 instead of rotldi3_mextr.
e586c16d 11869
6dff42fd 118702003-01-16 Vladimir Makarov <vmakarov@redhat.com>
11871
11872 * haifa-sched.c (move_insn): Restore moving all schedule group.
11873 (set_priorities): Restore taking SCHED_GROUP_P into account.
11874
11875 * sched-deps.c (add_dependence): Restore processing the last group
11876 insn.
11877 (remove_dependence, group_leader): Restore the functions.
11878 (set_sched_group_p): Restore adding dependencies from previous insn
11879 in the group.
11880 (compute_forward_dependences): Restore usage of group_leader.
11881
11882 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
11883 account.
11884
11885 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
11886 account.
11887 (can_schedule_ready_p): Ditto.
11888 (add_branch_dependences): Restore skipping over the group insns.
5df0e0e7 11889
bbb1a791 118902003-01-16 Stephane Carrez <stcarrez@nerim.fr>
11891
11892 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
11893 68HC12 pre/post inc/dec side effects.
11894
2cae9c15 118952003-01-16 Stephane Carrez <stcarrez@nerim.fr>
11896
11897 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
11898
96b74343 118992003-01-16 J"orn Rennecke <amylaar@onetel.net.uk>
e1bbb517 11900
11901 * sh.md (mshflo_w_x): Fix description of operation.
11902
6ed6b935 119032003-01-16 Zack Weinberg <zack@codesourcery.com>
11904
11905 * config/rs6000/rs6000.h: Mention Altivec registers in
11906 commentary. Fix typo.
11907
259277e0 119082003-01-16 David Edelsohn <edelsohn@gnu.org>
11909
11910 * config/rs6000/rs6000.md (movti_string): Remove clobber.
11911 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
11912 generate PARALLEL with clobber for TARGET_POWER.
11913
aec26802 119142003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11915
11916 * ra-colorize.c (colorize_one_web): Initialize variable.
11917 * regmove.c (fixup_match_1): Likewise.
11918 * reload1.c (reload_as_needed): Likewise.
11919 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
11920
743f4ee2 119212003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11922
11923 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
11924
3473aefe 119252003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11926
aed1dced 11927 * dbxout.c (lastfile, cwd): Fix `unused' warning.
11928 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
11929 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
11930 is_main_source, file_table, decl_die_table_in_use,
11931 abbrev_die_table_in_use, line_info_table_in_use,
11932 separate_line_info_table_in_use, pubname_table_in_use,
11933 arange_table_in_use, ranges_table_in_use,
11934 current_function_has_inlines): Likewise.
11935 * flow.c (life_analysis): Likewise.
11936 * genemit.c (gen_insn): Likewise.
11937 * protoize.c (cplus_suffix): Likewise.
11938
068e6db6 11939 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
11940 * arm.h (ROUND_UP_WORD): Likewise.
11941
3473aefe 11942 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
11943 warning.
11944 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
11945 init_emit_once): Likewise.
11946 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
11947 Likewise.
11948 * function.c (assign_stack_temp_for_type): Likewise.
11949 * loop.c (loop_invariant_p): Likewise.
11950 * recog.c (push_operand): Likewise.
11951 * regclass.c (init_reg_sets_1): Likewise.
11952 * reload.c (update_auto_inc_notes): Likewise.
11953 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
11954 * stmt.c (expand_asm_operands): Likewise.
11955 * stor-layout.c (start_record_layout): Likewise.
11956
78301556 119572003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
11958
6ed6b935 11959 * config/c4x/c4x.md (epilogue): Correct last patch.
78301556 11960
a3859c0f 119612003-01-15 Richard Henderson <rth@redhat.com>
11962
11963 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
11964 also check that GP is being used.
11965 (alpha_find_lo_sum_using_gp): New.
11966 (alpha_does_function_need_gp): Use get_attr_usegp.
11967 * config/alpha/alpha-protos.h: Update.
11968 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
11969 as needed.
11970
e736d585 119712003-01-15 Roger Sayle <roger@eyesopen.com>
11972
11973 * gcse.c (one_cprop_pass): Change function arguments to take both
11974 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
11975 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
11976 (bypass_jumps): New function to perform separate jump bypassing pass.
11977 * rtl.h (bypass_jumps): Add function prototype.
11978 * timevar.def (TV_BYPASS): New timing variable.
11979 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
11980 (dump_file): New entry for the bypass RTL dump file.
11981 (rest_of_compilation): Insert new jump bypassing optimization
11982 pass after loop.
11983 * doc/passes.texi: Document new pass.
11984
45fc02af 119852003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11986
11987 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
11988 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
11989 * pa.h (TARGET_SOM_SDEF): Define.
11990 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
11991
933589d9 119922003-01-16 Stephane Carrez <stcarrez@nerim.fr>
11993
6ed6b935 11994 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
933589d9 11995 allocate 4-bytes of locals on 68HC11.
11996 (expand_epilogue): Likewise.
11997 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
11998
180b3dc8 119992003-01-15 Stephane Carrez <stcarrez@nerim.fr>
12000
12001 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
12002 and -mshort-double to the assembler to specify the ABI.
12003 (LINK_SPEC): Likewise.
12004 (CPP_SPEC): Pass HCS12 specific define.
12005 (MASK_M68S12): New define.
12006 (TARGET_M68S12): Likewise.
12007 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
12008 (TARGET_VERSION): Update.
12009 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
12010 (LINK_SPEC): Update.
12011 (ASM_SPEC): Update.
12012 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
12013 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
12014
e33a5b06 120152003-01-15 Stephane Carrez <stcarrez@nerim.fr>
12016
12017 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
12018 the return code.
12019
746f9f26 120202003-01-15 Josef Zlomek <zlomekj@suse.cz>
12021
12022 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
12023 flag before setting it.
12024
15b82a42 120252003-01-15 Roger Sayle <roger@eyesopen.com>
12026
12027 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
12028 when loop condition is known true, i.e. "while (1) { ... }".
12029 (genrtl_for_stmt): Similarly for "for" statements.
12030
61f1dccc 120312003-01-15 Roger Sayle <roger@eyesopen.com>
12032
12033 * real.c (real_sqrt): Return a bool result indicating whether
12034 a floating point exception or trap should be raised.
12035 * real.h (real_sqrt): Update function prototype.
12036 * builtins.c (fold_builtin): Only fold non-trapping square
12037 roots unless we're ignoring errno and trapping math.
12038
12a13e7a 120392003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
12040
12041 * expr.h (emit_conditional_add): Add PARAMS to declaration.
12042 * gengtype-lex.l (malloc, realloc): Move defines after include of
12043 system.h. Remove duplicate include of system.h.
12044
89ae05a2 120452003-01-15 Roger Sayle <roger@eyesopen.com>
12046
12047 PR middle-end/9009
12048 * optabs.c (expand_unop): When manipulating the FP sign bit
12049 using integer operations, account for targets with different
12050 integer and FP word orders.
12051 (expand_abs): Likewise.
12052
a50fb5e3 120532003-01-15 David Edelsohn <edelsohn@gnu.org>
12054
12055 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
12056 file extension in section name.
12057
e7477246 120582003-01-15 Richard Earnshaw <rearnsha@arm.com>
12059
12060 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
12061 constant offset.
12062
ae5d4a75 120632003-01-15 Richard Earnshaw <rearnsha@arm.com>
12064
12065 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
12066 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
12067 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
12068 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
12069
96b74343 120702003-01-15 Jan Hubicka <jh@suse.cz>
25bf8ba3 12071
12072 PR f/9258
6ed6b935 12073 * global.c (struct allocno): Add no_stack_reg.
25bf8ba3 12074 (global_conflicts): Set no_stack_reg.
12075 (find_reg): Use it.
12076
12077 * convert.c (convert_to_real): Fold - and abs only when profitable.
12078 * fold-const.c (fold): Fold truncates in - and abs.
12079
aa816fb8 120802003-01-15 Josef Zlomek <zlomekj@suse.cz>
12081
12082 Segher Boessenkool <segher@koffie.nl>
2e3c56e8 12083
12084 * predict.c (real_inv_br_prob_base): New variable.
12085 (propagate_freq): Use multiply by reciprocal instead of
12086 division. Don't divide by 1.0 at all.
12087 (estimate_bb_frequencies): Similar.
12088
2ddb5ea7 120892003-01-15 Alexandre Oliva <aoliva@redhat.com>
12090
12091 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
12092 * configure: Rebuilt.
12093
71343e6b 120942003-01-15 Hartmut Penner <hpenner@de.ibm.com>
f5d86738 12095
71343e6b 12096 * config/s390/s390.c (s390_safe_attr_type): New function.
12097 (s390_use_dfa_pipeline_interface): New function, return true for z900.
12098 (s390_issue_rate): New function.
12099 (s390_agen_dep_p): New function.
12100 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
12101 (s390_adjust_cost): Return 'cost' if new DFA is used.
12102 (s390_adjust_priority): Delete function.
12103 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
12104 * config/s390/s390.md (atype attribute): Attribute 'atype' default
12105 determined by 'op_type'.
12106 (type attribute): Added more type attributes.
12107 * config/s390/2064.md: New DFA description for z900 pipeline.
6ed6b935 12108
71343e6b 121092003-01-15 Alexandre Oliva <aoliva@redhat.com>
f2522b33 12110
84ab60d3 12111 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
12112 forced to memory. Fixes PR bootstrap/9036.
12113
f5d86738 12114 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
12115 to set $gp before the call.
12116
d18a1a2b 121172003-01-14 Richard Henderson <rth@redhat.com>
12118
12119 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
12120 for force_const_mem.
12121
6a1c27c3 121222003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12123
12124 * genattr.c (main): Rearrange output to avoid prototype warning.
12125 * genautomata.c (transform_3): Fix ambiguous-else warning.
12126 * local-alloc.c (requires_inout): Add parentheses around
12127 assignment used as truth-value.
12128 * timevar.c: Move system includes above local includes. Include
12129 toplev.h
12130 * Makefile.in (timevar.o): Depend on toplev.h.
12131
ca3a9cf3 121322003-01-14 Denis Chertykov <denisc@overta.ru>
12133
12134 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
12135 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
12136
12137 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
6ed6b935 12138 attributes.
ca3a9cf3 12139 (TARGET_ATTRIBUTE_TABLE): New macro.
12140 (valid_machine_type_attribute): Remove.
12141 (valid_machine_decl_attribute): Remove.
12142 (ip2k_handle_progmem_attribute): New function.
12143 (ip2k_handle_fndecl_attribute): New function.
12144
fadfba62 121452003-01-10 Andrew Haley <aph@redhat.com>
69b9e4c4 12146
12147 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
12148 registers to be in correct order. Add rip.
12149
ad7beff2 121502003-01-14 Kazu Hirata <kazu@cs.umass.edu>
12151
12152 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
12153 (*iorsi3_and_lshiftrt_9_sb): Likewise.
12154
96b74343 121552003-01-14 Jan Hubicka <jh@suse.cz>
8cce4b41 12156
12157 * convert.c (strip_float_extensions): Look for narrowest type handling
12158 FP constants.
12159
12160 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
12161 float1 CMP float2.
12162 * convert.c (strip_float_extensions): Make global.
12163 * tree.h (strip_float_extensions): Declare.
12164
c1155f31 121652003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
12166
12167 * timevar.def: define TV_NAME_LOOKUP.
12168 * timevar.c (timevar_pop): Be verbose when aborting.
12169
cb619dd5 121702003-01-13 Andreas Schwab <schwab@suse.de>
12171
12172 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
12173 $(parsedir), just move the temporary file at the end.
12174 ($(parsedir)/gengtype-yacc.c): Likewise.
12175
d320f6b2 121762003-01-13 Alexandre Oliva <aoliva@redhat.com>
12177
12178 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
12179 ${ac_tool_prefix} to ADAC or CC. Protect them from word
12180 splitting.
12181 * configure: Rebuilt.
12182
2fcf1e0d 121832003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12184
12185 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
12186 internal_mcount): Don't use PARAMS.
12187 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
12188 ISO C style.
12189 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
12190
62968534 121912003-01-13 Andreas Schwab <schwab@suse.de>
12192
12193 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
12194 directive.
12195
0c90f901 121962003-01-13 Kazu Hirata <kazu@cs.umass.edu>
12197
12198 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
12199 (*iorsi3_and_lshiftrt_n_sb): Likewise.
12200
e915f664 122012003-01-12 Mark Mitchell <mark@codesourcery.com>
12202
12203 PR c++/9264
12204 * c-lex.c (c_lex): Set the token value to error_mark_node for
12205 invalid numeric constants.
12206
04ea9445 122072003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12208
12209 * c-pch.c (asm_file_startpos): Change to `long'.
12210 (pch_init): Use ftell, not ftello.
12211 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
12212 Use `long' instead of `off_t'.
12213 (c_common_read_pch): Likewise.
12214 * ggc-common.c (gt_pch_save): Use long/ftell instead of
12215 off_t/ftello.
12216
5ff01bda 122172003-01-12 Alan Modra <amodra@bigpond.net.au>
12218
12219 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
12220
1b5baf62 122212003-01-11 Richard Earnshaw (rearnsha@arm.com)
12222
12223 * arm-protos.h (struct cpp_reader): Add declaration.
12224
96b74343 122252003-01-11 Jan Hubicka <jh@suse.cz>
8c9a6c4a 12226
12227 PR target/9068
12228 * i386.c (output_fp_compare): Fix typo.
12229
7d6fc2e1 122302003-01-10 David Edelsohn <edelsohn@gnu.org>
12231
12232 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
12233
6674394e 122342003-01-10 Geoffrey Keating <geoffk@apple.com>
12235
15da80c1 12236 * Makefile.in (parsedir): New variable.
12237 (docobjdir): New variable.
6ed6b935 12238 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
15da80c1 12239 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
12240 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
12241 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
6ed6b935 12242 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
15da80c1 12243 Use docobjdir.
12244 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
12245 objc.maintainer-clean): Use parsedir.
12246
94c331ec 12247 * varasm.c (struct constant_descriptor_rtx): Remove unused
12248 `label' field.
12249
6674394e 12250 * toplev.c (documented_lang_options): Document -Winvalid-pch.
12251
9cd47842 122522003-01-10 Richard Henderson <rth@redhat.com>
12253
12254 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
12255 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
12256
bfef7f63 122572003-01-10 Richard Henderson <rth@redhat.com>
12258
12259 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
12260 not INTEGRAL_MODE_P when widening extensions.
12261
cf1d67e3 122622003-01-10 Richard Henderson <rth@redhat.com>
12263
12264 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
12265
6d7e356a 122662003-01-10 Geoffrey Keating <geoffk@apple.com>
12267
83142a4c 12268 * ggc-page.c (ggc_collect): Avoid overflow computing
12269 min_expand.
12270
6d7e356a 12271 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
12272 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
12273 Remove calls.
12274 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
12275
96b74343 122762003-01-10 Jan Hubicka <jh@suse.cz>
4b5189c1 12277
12278 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
12279 with weird operands.
12280
42b11544 122812003-01-10 Dale Johannesen <dalej@apple.com>
6d7e356a 12282
12283 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
12284 parameters. Call check_sibcall_argument_overlap if indicated.
12285 (check_sibcall_argument_overlap): Add mark_stored_args_map
12286 parameter. Don't mark parameter area as clobbered if not set.
12287 (expand_call): Adjust calls to above.
12288
122892003-01-10 Kelley Cook <kelleycook@comcast.net>
c96f876e 12290
12291 * configure.in (linker read-only and read-write section mixing):
12292 Squelch some assembler warnings.
12293 * configure: Likewise.
12294
33096195 122952003-01-10 Hartmut Penner <hpenner@de.ibm.com>
12296
6e8138db 12297 * doc/invoke.texi: Document -mtune, delete -mcpu
33096195 12298 option for S/390 and zSeries.
12299 * config/s390/s390.c (s390_tune_string) New variable.
12300 (s390_cpu_string) Delete variable.
12301 (override_options): Use s390_tune_string instead of
12302 s390_cpu_string.
12303 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
12304
b0ea98f9 123052003-01-10 Kazu Hirata <kazu@cs.umass.edu>
12306
12307 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
12308
01e1c649 123092003-01-10 Josef Zlomek <zlomekj@suse.cz>
12310
12311 * jump.c (next_nonnote_insn_in_loop): New function.
12312 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
12313 next_nonnote_insn.
12314 (duplicate_loop_exit_test). Likewise.
12315
573aba85 123162003-01-09 Geoffrey Keating <geoffk@apple.com>
12317
12318 Merge from pch-branch:
12319
12320 2003-01-06 Geoffrey Keating <geoffk@apple.com>
12321
12322 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
12323 load.
12324
12325 2002-12-24 Geoffrey Keating <geoffk@apple.com>
12326
12327 * cpplib.c (count_registered_pragmas): New function.
12328 (save_registered_pragmas): New function.
12329 (_cpp_save_pragma_names): New function.
12330 (restore_registered_pragmas): New function.
12331 (_cpp_restore_pragma_names): New function.
12332 * cpphash.h (_cpp_save_pragma_names): Prototype.
12333 (_cpp_restore_pragma_names): Likewise.
12334 * cpppch.c (struct save_macro_item): Split from save_macro_data.
12335 (struct save_macro_data): New field 'saved_pragmas'.
12336 (save_macros): Update for changes to struct save_macro_data.
12337 (cpp_prepare_state): Call _cpp_save_pragma_names, update
12338 for changes to struct save_macro_data.
12339 (cpp_read_state): Call _cpp_restore_pragma_names, update
12340 for changes to struct save_macro_data.
12341
12342 * cpppch.c (cpp_read_state): Restore the hashtable references
12343 in the cpp_reader.
6ed6b935 12344
573aba85 12345 * tree.h (built_in_decls): Mark for PCH.
12346
12347 * dbxout.c (lastfile): Don't mark for PCH.
12348
12349 * ggc.h: Document PCH calls into memory managers.
12350
12351 2002-12-18 Geoffrey Keating <geoffk@apple.com>
12352
12353 * doc/invoke.texi (Precompiled Headers): Document the
12354 directory form of PCH.
12355 * cppfiles.c (validate_pch): New function.
12356 (open_file_pch): Search suitably-named directories for PCH files.
12357
12358 2002-12-14 Geoffrey Keating <geoffk@apple.com>
12359
12360 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
12361 reorder options.
12362 (Type Information): Mention that the information is also
12363 used to implement PCH.
12364 * doc/passes.texi (Passes): Improve documentation of
12365 language-specific files.
12366
12367 2002-12-11 Geoffrey Keating <geoffk@apple.com>
12368
12369 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
12370 (struct walk_type_data): Add reorder_fn field.
12371 (walk_type): Process 'reorder' option.
12372 (write_types_process_field): Reorder parameters to gt_pch_note_object,
12373 call reorder_note_routine.
12374 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
12375 (ggc_wtd): Update for change to struct write_types_data.
12376 (pch_wtd): Likewise.
12377 * ggc.h (gt_pch_note_object): Reorder parameters.
12378 (gt_handle_reorder): New definition.
12379 (gt_pch_note_reorder): New prototype.
12380 * ggc-common.c (struct ptr_data): Add reorder_fn.
12381 (gt_pch_note_object): Reorder parameters.
12382 (gt_pch_note_reorder): New.
12383 (gt_pch_save): Call reorder_fn.
12384 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
12385
12386 * dbxout.c (cwd): Don't mark for PCH.
12387
12388 2002-12-09 Geoffrey Keating <geoffk@apple.com>
12389
12390 * gengtype.c (finish_root_table): Fix some warnings.
12391 (write_root): Handle TYPE_STRING.
12392 * ggc.h (gt_ggc_m_S): Add prototype.
12393 * stringpool.c (gt_ggc_m_S): New function.
12394
12395 2002-11-30 Geoffrey Keating <geoffk@apple.com>
12396
12397 * dwarf2out.c (dw2_string_counter): New.
12398 (AT_string_form): Use it.
12399 (same_dw_val_p): Update for removal of hashtable.h hash tables.
12400
12401 2002-11-22 Geoffrey Keating <geoffk@apple.com>
12402
12403 * dbxout.c: Include gt-dbxout.h.
12404 (lastfile): Mark for PCH/GGC.
12405 (cwd): Likewise.
12406 (struct typeinfo): Likewise.
12407 (typevec): Likewise.
12408 (typevec_len): Likewise.
12409 (next_type_number): Likewise.
12410 (struct dbx_file): Likewise.
12411 (current_file): Likewise.
12412 (next_file_number): Likewise.
12413 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
12414 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
12415 (dbxout_end_source_file): Don't free struct dbx_file.
12416 (dbxout_type): Use GGC to allocate typevec.
12417 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
12418 (GTFILES): Add dbxout.c.
12419 (gt-dbxout.h): New rule.
6ed6b935 12420
573aba85 12421 * Makefile.in (c-pch.o): Add debug.h as dependency.
12422 * c-pch.c: Include debug.h.
12423 (pch_init): Call start_source_file to keep nesting right.
12424 (c_common_read_pch): Add orig_name parameter. Call
12425 start_source_file debug hook. Call end_source_file debug hook.
12426 * c-common.h (c_common_read_pch): Update prototype.
12427 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
12428 callback.
12429 * cppfiles.c (struct include_file): Add new field `header_name'.
12430 (find_or_create_entry): Default it to `name'.
12431 (open_file_pch): Set it to the original header file searched for.
12432 (stack_include_file): Don't stack an empty buffer, just handle
12433 PCH files immediately. Pass header_name field to read_pch callback.
12434
12435 2002-11-19 Geoffrey Keating <geoffk@apple.com>
12436
12437 * function.c (funcdef_no): Mark to be saved in a PCH.
12438
12439 2002-11-15 Geoffrey Keating <geoffk@apple.com>
12440
12441 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
12442
12443 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
12444
12445 2002-11-14 Geoffrey Keating <geoffk@apple.com>
12446
12447 * optabs.h (code_to_optab): Add GTY marker.
12448
12449 2002-11-13 Geoffrey Keating <geoffk@apple.com>
12450
12451 * Makefile.in (GTFILES): Add cpplib.h.
12452 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
12453 * c-decl.c (build_compound_literal): Don't use var_labelno.
12454 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
12455 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
12456 * varasm.c (const_labelno): Use gengtype to mark.
12457 (var_labelno): Likewise.
12458 (in_section): Likewise.
12459 (in_named_name): Likewise.
12460 (struct in_named_entry): Likewise.
12461 (in_named_htab): Likewise.
12462 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
12463 (init_varasm_once): Use GGC to allocate in_named_htab.
12464 * config/darwin.c (current_pic_label_num): Mark for PCH.
12465
12466 2002-11-11 Geoffrey Keating <geoffk@apple.com>
12467
12468 * ggc-simple.c (init_ggc_pch): New stub procedure.
12469 (ggc_pch_count_object): Likewise.
12470 (ggc_pch_total_size): Likewise.
12471 (ggc_pch_this_base): Likewise.
12472 (ggc_pch_alloc_object): Likewise.
12473 (ggc_pch_prepare_write): Likewise.
12474 (ggc_pch_write_object): Likewise
12475 (ggc_pch_finish): Likewise.
12476 (ggc_pch_read): Likewise.
12477
12478 2002-11-08 Geoffrey Keating <geoffk@apple.com>
12479
12480 * c-pch.c (c_common_write_pch): Write the macro definitions after
12481 the GCed data.
12482 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
12483 definitions after the GCed data.
12484 * cpplib.c (save_macros): New.
12485 (reset_ht): New.
12486 (cpp_write_pch_deps): Split out of cpp_write_pch.
12487 (cpp_write_pch_state): Split out of cpp_write_pch.
12488 (cpp_write_pch): Delete.
12489 (struct save_macro_data): Delete.
12490 (cpp_prepare_state): New.
12491 (cpp_read_state): Erase and restore initial macro definitions.
12492 * cpplib.h (struct save_macro_data): Forward-declare.
12493 (cpp_write_pch_deps): Prototype.
12494 (cpp_write_pch_state): Prototype.
12495 (cpp_write_pch): Delete prototype.
12496 (cpp_prepare_state): Prototype.
12497 (cpp_read_state): Add fourth argument.
12498
12499 2002-11-04 Geoffrey Keating <geoffk@apple.com>
12500
12501 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
12502 (write_array): Remove warning.
12503
12504 * gengtype.c (contains_scalar_p): New.
12505 (finish_root_table): Add the table to all languages, even if it's
12506 empty.
12507 (write_roots): Output gt_pch_scalar_rtab.
12508 * ggc-common.c (gt_pch_save): Write out scalars.
12509 (gt_pch_restore): Read scalars back.
12510
12511 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
12512 (struct page_entry): Delete pch_page field.
12513 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
12514 (clear_marks): Likewise.
12515 (sweep_pages): Likewise.
12516 (poison_pages): Likewise.
12517 (ggc_print_statistics): Likewise.
12518 (ggc_pch_read): Don't free objects read from a PCH.
12519 Properly set up in_use_p and page_tails.
12520
12521 2002-10-25 Geoffrey Keating <geoffk@apple.com>
12522
12523 * gengtype.c (struct write_types_data): New.
12524 (struct walk_type_data): Make `cookie' const; add extra
12525 prev_val item; add `orig_s' field.
12526 (walk_type): Update prev_val[3].
12527 (write_types_process_field): New.
12528 (write_func_for_structure): Take write_types_data structure.
12529 (write_types): New.
12530 (ggc_wtd): New.
12531 (pch_wtd): New.
12532 (write_types_local_process_field): New.
12533 (gc_mark_process_field): Delete.
12534 (write_local_func_for_structure): New.
12535 (gc_mark_func_name): Delete.
12536 (write_gc_types): Delete.
12537 (write_local): New.
12538 (finish_root_table): Don't include 'ggc_' in PFX.
12539 (write_root): Rename from write_root. Fill pchw field of structures.
12540 (write_array): New.
12541 (write_roots): Rename from write_gc_roots. Split out to write_array.
12542 Update to changes to other routines. Write gt_pch_cache_rtab table.
12543 (main): Write PCH walking routines.
12544 * ggc-common.c: Include toplev.h, sys/mman.h.
12545 (ggc_mark_roots): For cache hashtables, also mark the hash table
12546 and the array of entries.
12547 (saving_htab): New.
12548 (struct ptr_data): New.
12549 (POINTER_HASH): New.
12550 (gt_pch_note_object): New.
12551 (saving_htab_hash): New.
12552 (saving_htab_eq): New.
12553 (struct traversal_state): New.
12554 (call_count): New.
12555 (call_alloc): New.
12556 (compare_ptr_data): New.
12557 (relocate_ptrs): New.
12558 (write_pch_globals): New.
12559 (struct mmap_info): New.
12560 (gt_pch_save): New.
12561 (gt_pch_restore): New.
12562 * ggc-page.c (ROUND_UP_VALUE): New.
12563 (ROUND_UP): New.
12564 (struct page_entry): Add field `pch_page'.
12565 (init_ggc): Use ROUND_UP.
12566 (struct ggc_pch_data): Declare.
12567 (init_ggc_pch): New.
12568 (ggc_pch_count_object): New.
12569 (ggc_pch_total_size): New.
12570 (ggc_pch_this_base): New.
12571 (ggc_pch_alloc_object): New.
12572 (ggc_pch_prepare_write): New.
12573 (ggc_pch_write_object): New.
12574 (ggc_pch_finish): New.
12575 (ggc_pch_read): New.
12576 * ggc.h (gt_pointer_operator): New.
12577 (gt_note_pointers): New.
12578 (gt_pch_note_object): New prototype.
12579 (gt_pointer_walker): New.
12580 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
12581 (LAST_GGC_ROOT_TAB): Update.
12582 (gt_pch_cache_rtab): Declare.
12583 (gt_pch_scalar_rtab): Declare.
12584 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
12585 (LAST_GGC_CACHE_TAB): Update.
12586 (gt_pch_save_stringpool): Declare.
12587 (gt_pch_restore_stringpool): Declare.
12588 (gt_pch_p_S): Declare.
12589 (gt_pch_n_S): Declare.
12590 (struct ggc_pch_data): Forward-declare.
12591 (init_ggc_pch): Declare.
12592 (ggc_pch_count_object): Declare.
12593 (ggc_pch_total_size): Declare.
12594 (ggc_pch_this_base): Declare.
12595 (ggc_pch_alloc_object): Declare.
12596 (ggc_pch_prepare_write): Declare.
12597 (ggc_pch_write_object): Declare.
12598 (ggc_pch_finish): Declare.
12599 (ggc_pch_read): Declare.
12600 (gt_pch_save): Declare.
12601 (gt_pch_restore): Declare.
12602 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
12603 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
12604 const_double_htab, mem_attrs_htab using GGC.
12605 * c-pch.c: Include ggc.h.
12606 (pch_init): Allow reading PCH file back.
12607 (c_common_write_pch): Call gt_pch_save.
12608 (c_common_read_pch): Call gt_pch_restore.
12609 * c-parse.in (init_reswords): Delete now-untrue comment.
12610 Allocate ridpointers using GGC.
12611 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
12612 calling expand_deferred_fns.
12613 * c-common.h (ridpointers): Mark for GTY machinery.
12614 * Makefile.in (stringpool.o): Update dependencies.
12615 (c-pch.o): Update dependencies.
12616 (ggc-common.o): Update dependencies.
12617 * stringpool.c: Include gt-stringpool.h.
12618 (gt_pch_p_S): New.
12619 (gt_pch_n_S): New.
12620 (struct string_pool_data): New.
12621 (spd): New.
12622 (gt_pch_save_stringpool): New.
12623 (gt_pch_restore_stringpool): New.
12624 * tree.c (init_ttree): Make type_hash_table allocated using GC.
6ed6b935 12625
573aba85 12626 2002-10-04 Geoffrey Keating <geoffk@apple.com>
12627
12628 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
12629 (output_mangled_typename): Don't pass size_t to printf.
12630
12631 * tree.h (union tree_type_symtab): Add tag to `address' field.
12632 (union tree_decl_u2): Add tag to 'i' field.
12633 * varasm.c (union rtx_const_un): Add tags to all fields.
12634 * gengtype.c (struct walk_type_data): New.
12635 (output_escaped_param): Take struct walk_type_data parameter.
12636 (write_gc_structure_fields): Delete.
12637 (walk_type): New.
12638 (write_gc_marker_routine_for_structure): Delete.
12639 (write_func_for_structure): New.
12640 (gc_mark_process_field): New.
12641 (gc_mark_func_name): New.
12642 (gc_counter): Delete.
12643 (write_gc_types): Use write_func_for_structure.
12644 (write_gc_roots): Use walk_type.
12645
12646 2002-10-02 Geoffrey Keating <geoffk@apple.com>
12647
12648 * ggc-common.c (ggc_mark_roots): Delete 'x'.
12649 (ggc_splay_dont_free): Fix warning about unused 'x'.
12650 (ggc_print_common_statistics): Remove warnings.
12651
12652 2002-10-01 Mike Stump <mrs@apple.com>
12653
6ed6b935 12654 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
12655 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
573aba85 12656
12657 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
12658 Catherine Moore <clm@redhat.com>
12659
12660 * Makefile (c-pch.o): Update dependencies.
12661 (LIBCPP_OBJS): Add cpppch.o.
12662 (cpppch.o): New.
12663 * c-common.c (c_common_init): Don't call pch_init here.
12664 * c-common.h (c_common_read_pch): Update prototype.
12665 * c-lex.c (c_common_parse_file): Call pch_init here.
12666 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
12667 (c_common_decode_option): Handle them.
12668 * c-pch.c: Include c-pragma.h.
12669 (save_asm_offset): Delete.
12670 (pch_init): Move contents of save_asm_offset into here, call
12671 cpp_save_state.
12672 (c_common_write_pch): Call cpp_write_pch.
12673 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
12674 cpp_valid_state.
12675 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
6ed6b935 12676 * cppfiles.c (stack_include_file): Update for change to
573aba85 12677 parameters of cb.read_pch.
12678 * cpphash.h (struct cpp_reader): Add `savedstate' field.
12679 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
12680 `restore_pch_deps' fields.
12681 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
12682 (cpp_save_state): Prototype.
12683 (cpp_write_pch): Prototype.
12684 (cpp_valid_state): Prototype.
12685 (cpp_read_state): Prototype.
12686 * cpppch.c: New file.
12687 * flags.h (version_flag): Remove prototype.
12688 * mkdeps.c (deps_save): New.
12689 (deps_restore): New.
12690 * mkdeps.h (deps_save): Prototype.
12691 (deps_restore): Prototype.
12692 * toplev.c (late_init_hook): Delete.
12693 (version_flag): Make static again.
12694 (compile_file): Don't call late_init_hook.
12695 * toplev.h (late_init_hook): Delete.
12696 * doc/cppopts.texi: Document -fpch-deps.
12697 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
12698
12699 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
12700
12701 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
12702 callers.
12703 (c_common_valid_pch): Rename from c_valid_pch, change callers.
12704 (c_common_read_pch): Rename from c_read_pch, change callers.
12705
12706 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
12707 a space between it and its argument.
12708
12709 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
12710
12711 * c-pch.c: New file.
12712 * toplev.h (late_init_hook): Declare.
12713 * toplev.c (late_init_hook): Define.
12714 (version_flag): Make globally visible.
12715 (compile_file): Call late_init_hook.
12716 (init_asm_output): Make output file seekable.
12717 * gcc.c (default_compilers): Update c-header rule.
12718 * flags.h (version_flag): Declare.
12719 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
12720 fields.
12721 * cppfiles.c (struct include_file): Add 'pch' field.
12722 (INCLUDE_PCH_P): New.
12723 (open_file_pch): New.
12724 (stack_include_file): Handle PCH files specially.
12725 (find_include_file): Call open_file_pch instead of open_file.
12726 (_cpp_read_file): Explain why open_file is used instead of
12727 open_file_pch.
12728 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
12729 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
12730 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
12731 in cpplib callbacks.
12732 * c-common.c (pch_file): Correct comment.
12733 (allow_pch): Define.
12734 (c_common_init): Call pch_init.
12735 * c-common.h (allow_pch): Declare.
12736 (pch_init): Declare.
12737 (c_valid_pch): Declare.
12738 (c_read_pch): Declare.
12739 (c_write_pch): Declare.
12740 * Makefile.in (c-pch.o): New.
12741 (C_AND_OBJC_OBJS): Add c-pch.o.
12742 * doc/invoke.texi (Precompiled Headers): Add index entries,
12743 complete truncated paragraph.
12744
12745 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
12746
12747 * c-common.c: (pch_file): Define.
12748 * c-common.h (pch_file): Declare.
12749 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
12750 (missing_arg): Require --output-pch= to have an argument.
12751 (c_common_decode_option): Handle --output-pch=.
12752 * gcc.c: Document new %V.
12753 (default_compilers): Handle compiling C header files.
12754 (do_spec_1): Implement %V.
12755 (main): Handle "gcc foo.h" without trying to run linker.
12756 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
12757 (Overall Options): Document what the driver does with header files,
12758 document new -x option possibilities.
12759 (Invoking G++): More documentation for PCH.
12760 (Precompiled Headers): New.
12761
12762 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
12763
12764 * ggc.h: Don't include varray.h. Rearrange functions to be more
12765 organized.
12766 (ggc_add_root): Delete.
12767 (ggc_mark_rtx): Delete.
12768 (ggc_mark_tree): Delete.
12769 (struct ggc_statistics): Remove contents.
12770 * ggc-common.c: Remove unneeded includes.
12771 (struct ggc_root): Delete.
12772 (roots): Delete.
12773 (ggc_add_root): Delete.
12774 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
12775 (ggc_print_common_statistics): Remove most of the contents.
12776 * Makefile.in (GGC_H): No longer uses varray.h.
12777 (ggc-common.o): Update dependencies.
12778 (c-parse.o): Add varray.h to dependencies.
12779 (c-common.o): Add varray.h.
12780 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
12781 (mark_ident_hash): Rename to ggc_mark_stringpool.
12782 (init_stringpool): Don't use ggc_add_root.
12783 * c-parse.in: Include varray.h.
12784 * c-common.c: Include varray.h.
12785 * objc/Make-lang.in (objc-act.o): Add varray.h.
12786 * objc/objc-act.c: Include varray.h.
12787
12788 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
12789
12790 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
12791 (dw_cfi_oprnd1_desc): Likewise.
12792
12793 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
12794
12795 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
12796 move out of ifdef.
12797 (alpha_links): Use gengtype to mark; move out of ifdef.
12798 (mark_alpha_links_node): Delete.
12799 (mark_alpha_links): Delete.
12800 (alpha_need_linkage): Use GGC to allocate splay tree, struct
12801 alpha_links, strings. Don't use ggc_add_root.
12802 * ggc-common.c (ggc_splay_alloc): New.
12803 (ggc_splay_dont_free): New.
12804 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
12805 (ggc_mark_tree): Likewise.
12806 (splay_tree_new_ggc): New.
12807 (ggc_splay_alloc): Declare.
12808 (ggc_splay_dont_free): Declare.
12809 * dwarf2asm.c: Include gt-dwarf2asm.h.
12810 (mark_indirect_pool_entry): Delete.
12811 (mark_indirect_pool): Delete.
12812 (indirect_pool): Use gengtype to mark.
12813 (dw2_force_const_mem): Don't use ggc_add_root.
12814 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
12815 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
12816 (gt-dwarf2asm.h): Depend on s-gtype.
12817
12818 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
12819
12820 * tree.h (union tree_type_symtab): Mark `die' field.
12821 * Makefile.in (dwarf2out.o): Update dependencies.
12822 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
12823 hash tables.
12824 (dw_cfi_oprnd1_desc): New function.
12825 (dw_cfi_oprnd2_desc): New function.
12826 (indirect_string_alloc): Delete.
12827 (debug_str_do_hash): New function.
12828 (debug_str_eq): New function.
12829 (mark_limbo_die_list): Delete.
12830 (dwarf2out_init): Don't call ggc_add_root.
12831
58ada791 128322003-01-09 Vladimir Makarov <vmakarov@redhat.com>
12833
12834 The following changes are merged from itanium-sched-branch:
12835
12836 2003-01-08 David Edelsohn <edelsohn@gnu.org>
12837
12838 * doc/md.texi: Clarify assignment of units to automata description.
12839
12840 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
12841
12842 * genautomata.c (unit_decl): Remove members
12843 `the_same_automaton_unit' and
12844 `the_same_automaton_message_reported_p'.
12845 (process_unit_to_form_the_same_automaton_unit_lists,
12846 form_the_same_automaton_unit_lists_from_regexp,
12847 form_the_same_automaton_unit_lists, the_same_automaton_lists):
12848 Remove them.
12849 (annotation_message_reported_p): New global variable.
12850 (check_unit_distribution_in_reserv,
12851 check_regexp_units_distribution): New functions.
12852 (check_unit_distributions_to_automata): Rewrite it.
12853
12854 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
12855
12856 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
12857 Use continue instead of break if cycle is too big.
12858
12859 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
12860
12861 * genautomata.c (check_unit_distributions_to_automata): Output at
12862 most one message for a unit.
12863 (process_unit_to_form_the_same_automaton_unit_lists): Check
12864 automaton of units instead of units themself.
12865
12866 * doc/md.texi: Describe the constraint about assigning unit to
12867 automata.
12868
12869 2002-12-20 Jan Hubicka <jH@suse.cz>
12870 Vladimir Makarov <vmakarov@redhat.com>
12871
12872 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
12873 and `in_set_p'.
12874 (gen_cpu_unit): Initialize the new members.
12875 (process_regexp_cycles): Calculate minimal finish cycle too. Set
12876 up `min_occ_cycle_num'.
12877 (evaluate_max_reserv_cycles): Change the function call.
12878 (CLEAR_BIT): New macro.
12879 (states_union, state_shift): Use the mask.
12880 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
12881 (form_reservs_matter): New function.
12882 (make_automaton): Call the function and use the mask.
12883 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
12884 account.
6ed6b935 12885
58ada791 12886 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
12887
12888 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
12889
12890 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
12891
12892 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
12893 for Itanium.
12894
12895 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
12896
12897 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
12898 default cpu.
12899
12900 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
12901 2002-10-31 Dale Johannesen <dalej@apple.com>
12902
12903 * haifa-sched.c (find_set_reg_weight): New function.
12904 (find_insn_reg_weight): Use the new function.
12905 (schedule_block): Do sorting ready queue always
12906 after insn issue.
12907
12908 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
12909
12910 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
12911
12912 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
12913
12914 * haifa-sched.c (choice_entry): New structure.
12915 (choice_stack, cycle_issued_insns): New variables.
12916 (max_issue): Rewrite it.
12917 (choose_ready): Set up ready_try for unknown insns too.
12918 (schedule_block): Allocate and free choice_stack. Set up
12919 and modify cycle_issued_insns.
12920
12921 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
12922 with and without filling the bundle.
12923 (bundling): Combine calls of issue_nops_and_insn.
6ed6b935 12924
58ada791 12925 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
12926
12927 * config/ia64/itanium1.md: New file.
12928
12929 * config/ia64/itanium2.md: New file.
12930
12931 * config/ia64/ia64.md: Move DFA descriptions into the new files.
12932 Remove the old pipeline description.
6ed6b935 12933
58ada791 12934 * config/ia64/ia64.c (ia64_override_options): Add aliases of
12935 itanium processor names.
6ed6b935 12936
58ada791 12937 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
12938
12939 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
12940 (ia64_reorg): Set up queried unit codes for Itanium2 too.
12941
12942 * config/ia64/ia64.md: Add descriptions for Itanium2.
12943
12944 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
12945
12946 * config/ia64/ia64.h (processor_type): New enumeration.
12947 (ia64_tune, ia64_tune_string): New external declarations.
12948 (TARGET_OPTIONS): Add option `tune='.
12949
12950 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
12951 variables.
12952 (ia64_override_options): Set up `ia64_tune'.
12953 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
12954 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
12955 (bundling): Add nops for MM-insns only for Itanium.
12956 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
12957 Itanium.
12958
12959 * config/ia64/ia64.md (cpu): New attribute.
12960 (DFA description): Enable it only for Itanium.
6ed6b935 12961
58ada791 12962 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
12963 Richard Henderson <rth@redhat.com>
12964
12965 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
12966 MASK_EARLY_STOP_BITS.
12967 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
12968 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
12969 `early-stop-bits'.
6ed6b935 12970
58ada791 12971 * config/ia64/ia64.c (ia64_dfa_new_cycle,
12972 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
12973 instead of TARGET_TUNE_STOP_BITS.
6ed6b935 12974
58ada791 12975 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
12976 `-mearly-stop-bits'.
12977
12978 * config/ia64/ia64.c (automata_option "v"): Comment it.
6ed6b935 12979
58ada791 12980 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
12981
6ed6b935 12982 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
58ada791 12983 New macros.
12984 (TARGET_SWITCHES): Add entries for the new option.
6ed6b935 12985
58ada791 12986 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
12987 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
12988 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
12989 global variables.
12990 (ia64_sched_reorder2): Set up `clocks'.
12991 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
12992 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
12993 queue when TARGET_TUNE_STOP_BITS.
12994 (bundling): Insert additional nops for MM-insns.
12995 (final_emit_insn_group_barriers): Add insertion of stop bits
12996 according `stops_p'.
12997 (ia64_reorg): Initiate the new varibales.
12998
12999 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
6ed6b935 13000
58ada791 13001 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
13002
13003 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
13004 insns at the end of block insn scheduling.
13005
13006 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
13007
13008 * sched-deps.c (remove_dependence, group_leader): Remove it.
13009 (add_dependence): Add dependence to group leader to.
13010 (set_sched_group_p): Add dependence to the first insn of the
13011 schedule group too.
13012 (sched_analyze_insn): Make dependence to jump as anti-dependence.
13013 Change true dependence by anti-dependence when
13014 `reg_pending_barrier'.
13015
13016 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
13017 add_branch_dependences): Ignore schedule groups.
13018
13019 * sched-ebb.c (init_ready_list): Ditto.
13020
13021 * (move_insn, set_priorities): Ditto.
13022
13023 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
13024 flag is clear after reload.
13025 (adjust_cost): Change cost only for output dependencies.
6ed6b935 13026
58ada791 13027 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
6ed6b935 13028
58ada791 13029 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
13030
13031 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
13032
13033 * target.h (gcc_target): Add member
13034 `dependencies_evaluation_hook'.
13035
13036 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
13037 macro.
13038 (TARGET_SCHED): Add initiatialization of the new member.
13039
13040 * sched-ebb.c: Include `target.h'.
13041 (schedule_ebb): Call `dependencies_evaluation_hook'.
13042
13043 * sched-rgn.c (schedule_region): Call
13044 `dependencies_evaluation_hook'.
13045
13046 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
13047 New macro.
13048 (ia64_dependencies_evaluation_hook): New function.
13049
13050 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
13051 Describe the new hook.
6ed6b935 13052
58ada791 13053 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
13054
13055 * target.h (gcc_target): Add members
13056 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
13057
13058 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
13059 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
13060 macros.
13061 (TARGET_SCHED): Add initiatialization of the new members.
13062
13063 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
13064 insn scheduling too.
13065 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
13066 initialize `ready_try'.
13067 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
13068 `dfa_new_cycle' says not to do it.
6ed6b935 13069
58ada791 13070 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
13071 bundling.
13072
13073 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
13074
13075 * config/ia64/ia64.c: Include `hashtab.h'.
13076 (ia64_first_cycle_multipass_dfa_lookahead_guard,
13077 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
13078 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
13079 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
13080 bundle_state_eq_p, insert_bundle_state,
13081 initiate_bundle_state_table, finish_bundle_state_table,
13082 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
13083 get_template, get_next_important_insn, bundling): New functions.
13084 (ia64_internal_sched_reorder): Remove it.
13085 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
13086 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
13087 (ia64_safe_itanium_requires_unit0): Remove it.
13088 (group_barrier_needed_p): Place group barrier right before a real
13089 insn.
13090 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
13091 Remove them.
13092 (bundle_name): New variable.
13093 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
13094 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
13095 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
13096 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
13097 temp_dfa_state, prev_cycle_state): New global variables.
13098 (insn_matches_slot, maybe_rotate, finish_last_head,
13099 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
13100 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
13101 find_best_packet, itanium_reorder, dump_current_packet,
13102 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
13103 (sched_data, sched_ready, sched_types): Remove them.
13104 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
13105 `init_insn_group_barriers'.
13106 (ia64_sched_reorder, ia64_sched_reorder2): Call
13107 ia64_dfa_sched_reorder.
13108 (ia64_variable_issue): Rewrite it.
13109 (bundle_state): New structure.
13110 (index_to_bundle_states, bundle_states_num,
13111 allocated_bundle_states_chain, free_bundle_state_chain): New
13112 global variables.
13113 (ia64_sched_finish): Add stop bits and call `bundling' after the
13114 2nd insn scheduling.
13115 (ia64_use_dfa_pipeline_interface): Return zero always.
13116 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
13117 insn scheduling.
13118 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
13119 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
13120 (ia64_reorg): Add bundling insns.
13121
13122 * doc/tm.texi
13123 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
13124 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
6ed6b935 13125
58ada791 13126 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
13127
13128 * config/ia64/ia64.md: Add Itanium1 DFA description.
13129 (itanium_class): Add `nop' and `pre_cycle'. Add
13130 define_function_unit for `nop'.
13131 (nop): Change attribute `itanium_class'.
13132 (pre_cycle): New define_insn.
13133
13134 * config/ia64/ia64-protos.h (bundling_p): New external variable.
13135 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
13136 ia64_produce_address_p): New function prototypes.
13137
13138 * config/ia64/ia64.c (bundling_p): New global variable.
13139 (ia64_use_dfa_pipeline_interface,
13140 ia64_first_cycle_multipass_dfa_lookahead,
13141 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
13142 functions.
13143 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
13144 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
13145 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
13146 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
13147 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
13148 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
13149 (dfa_pre_cycle_insn): New variable.
6ed6b935 13150
58ada791 13151 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
13152
13153 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
13154 constructions.
13155
13156 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
13157 New function prototypes.
13158
13159 * genattrtab.c (main): Process the new constructions.
13160
13161 * genautomata.c (gen_presence_absence_set,
13162 process_presence_absence_names, process_presence_absence_patterns,
13163 add_presence_absence, check_absence_pattern_sets): Add parameter
13164 `final_p'.
13165 (unit_decl): Add new members `final_presence_list' and
13166 `final_absence_list'.
13167 (unit_pattern_rel_decl): Add new member `final_p'.
13168 (gen_final_presence_set, gen_final_absence_set): New functions.
13169 (process_decls): Use member `final_p'.
13170 (temp_reserv): New global variable.
13171 (reserv_sets_are_intersected): Add processing `final_presence_set'
13172 and `final_absence_set'.
13173 (initiate_states): Allocate `temp_reserv'.
13174 (unit_final_presence_set_table, unit_final_absence_set_table): New
13175 gloabal variables.
13176 (initiate_presence_absence_pattern_sets): Initiate them.
13177 (NDFA_to_DFA): Fix typo.
13178 (output_description): Output `final_presence_set' and
13179 `final_absence_set'.
13180
13181 * doc/md.texi (final_presence_set, final_absence_set): Describe
13182 them.
6ed6b935 13183
58ada791 13184 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
13185
13186 * genautomata.c (transform_3): Process a missing case (nothing on
13187 unit place).
13188
13189 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
13190
13191 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
13192 comments about queried units and the minimization.
6ed6b935 13193
58ada791 13194 * doc/md.texi: Ditto.
6ed6b935 13195
58ada791 13196 * genautomata.c (create_composed_state): Return nonzero if the new
13197 state has been created.
13198 (first_cycle_unit_presence): New function.
13199 (state_is_differed): Add new parameter. Use the new function.
13200 Take queried units into account.
13201 (partition_equiv_class): Pass additional parameter to
13202 `state_is_differed'.
13203 (merge_states): Process composed states too.
13204 (build_automaton, create_automata, output_min_issue_delay_table,
13205 output_tables, output_statistics): Output more information.
13206 (output_reserved_units_table): Use function
13207 `first_cycle_unit_presence'.
13208 (output_tables): Output table of queried units even if the
13209 minimization is switched on.
13210 (write_automata): Output code for querying units even if the
13211 minimization is switched on.
6ed6b935 13212
58ada791 13213 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
13214
13215 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
13216 syntax of the constructions.
6ed6b935 13217
58ada791 13218 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
13219 extended syntax of the constructions.
6ed6b935 13220
58ada791 13221 * genautomata.c (unit_rel_decl): Rename it to
13222 `unit_pattern_rel_decl'.
13223 (pattern_set_el, pattern_reserv): New structures.
13224 (pattern_set_el_t, pattern_reserv_t): New types.
13225 (gen_presence_absence_set): New function.
13226 (process_presence_absence): Remove it.
13227 (process_presence_absence_names,
13228 process_presence_absence_patterns): New functions.
13229 (get_presence_absence_set): Remove it.
13230 (initiate_presence_absence_sets): Rename it on
13231 `initiate_presence_absence_pattern_sets'. Use new function
13232 `form_reserv_sets_list'.
13233 (form_reserv_sets_list, check_presence_pattern_sets,
13234 check_absence_pattern_sets, output_pattern_set_el_list): New
13235 functions.
13236 (unit_decl): Change types of members `presence_list' and
13237 `absence_list'.
13238 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
13239 (decl): Change types of members `excl', `presence', and `absence'.
13240 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
13241 at the end of the vector.
13242 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
13243 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
13244 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
13245 (gen_presence_set, gen_absence_set): Use new function
13246 `gen_presence_absence_set'.
13247 (add_presence_absence): Process `pattern_list' instead of
13248 `source_list'.
13249 (process_decls): USe new functions
13250 `process_presence_absence_names' and
13251 `process_presence_absence_patterns'.
13252 (reserv_sets_are_intersected): Use new function
13253 `check_presence_pattern_sets'.
13254 (presence_set, absence_set): Remove them.
13255 (unit_presence_set_table, unit_absence_set_table): New global
13256 variables.
13257 (output_description): Use new function
13258 `output_pattern_set_el_list'.
13259 (generate): Use `initiate_presence_absence_pattern_sets'.
6ed6b935 13260
58ada791 13261 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
13262
13263 * genattr.c (main): Add output of prototype of new interface
13264 function `dfa_clean_insn_cache'.
13265
13266 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
13267 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
13268 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
13269 the generated code.
13270 (write_automata): Call the new function.
6ed6b935 13271
96b74343 132722003-01-09 Jan Hubicka <jh@suse.cz>
40655984 13273
573aba85 13274 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
13275 correctly.
40655984 13276
bc00c454 132772003-01-09 Paolo Carlini <pcarlini@unitus.it>
13278
13279 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
13280
96b74343 132812003-01-09 J"orn Rennecke <joern.rennecke@superh.com>
48ea5577 13282
13283 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
13284 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
13285 (CONSTRAINT_LEN): Provide default definition.
13286 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
13287 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
13288 (EXTRA_CONSTRAINT_STR): Likewise.
13289 (REG_CLASS_FROM_CONSTRAINT): Define.
13290 * genoutput.c (check_constraint_len, constraint_len): New functions.
13291 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
13292 constraint / modifier.
13293 (gen_insn): Call check_constraint_len.
13294 * local-alloc.c (block_alloc): Update to use new macros / pass
13295 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
13296 * ra-build.c (handle_asm_insn): Likewise.
13297 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
13298 (constrain_operands, peep2_find_free_register): Likewise.
13299 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
13300 * regmove.c (find_matches): Likewise.
13301 * reload.c (push_secondary_reload, find_reloads): Likewise.
13302 (alternative_allows_memconst): Likewise.
13303 * reload1.c (maybe_fix_stack_asms): Likewise.
13304 (reload_cse_simplify_operands): Likewise.
13305 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
13306 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
13307 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
13308 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
13309 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
13310 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
f35a3d21 13311
13312 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
13313
3a013abf 133142003-01-09 Kazu Hirata <kazu@cs.umass.edu>
13315
13316 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
13317 length.
13318 (*extzv_1_r_h8300hs): Likewise.
13319 (*extzv_1_r_inv_h8300): Likewise.
13320 (*extzv_1_r_inv_h8300hs): Likewise.
13321
b2589b50 133222003-01-09 Kazu Hirata <kazu@cs.umass.edu>
13323
13324 * config/h8300/h8300.h (PREDICATE_CODES): New.
13325
b104dcf8 133262003-01-09 Kazu Hirata <kazu@cs.umass.edu>
13327
13328 * config/h8300/h8300.md (*addsi3_upper): New.
13329 (*iorsi3_shift): Likewise.
13330 (two splitters): Likewise.
13331 (*addsi3_shift): Likewise.
13332 (two splitters): Likewise.
13333
d16f9b9d 133342003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
13335
13336 * Makefile.in (optabs.o): Add dependency on basic-block.h.
13337 * basic-block.h (control_flow_insn_p): Fuction was exported.
13338 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
13339 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
13340 notes only when the region is contained in a single basic block.
13341
c52051b7 133422003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
13343
13344 PR inline-asm/8832
13345 * tree.h (expand_asm): New prototype.
13346 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
13347 to do so.
13348 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
13349 down to expand_asm.
13350 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
13351 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
13352 (volatile_refs_p) [ASM_INPUT]: Likewise.
13353 (side_effects_p) [ASM_INPUT]: Likewise.
13354
96b74343 133552003-01-09 Jan Hubicka <jh@suse.cz>
aadef98c 13356
13357 * i386.md (*mul*): FIx constraints; remove confused comment; fix
13358 athlon_decode attributes
13359 (imul/k8 optimization peep2s): New.
13360
13361 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
13362 * i386.md (type attribute): Add ssecomi.
13363 (unit, memory, prefix attributes): Handle ssecomi.
13364 (cvt?2? patterns): Fix athlon_decode attribute
13365 (comi patterns): Set attribute to ssecomi.
13366
13367 PR target/8343
13368 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
13369
ad598604 133702003-01-09 Richard Sandiford <rsandifo@redhat.com>
13371
13372 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
13373 that match register_operands.
13374 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
13375 register_operand the default case.
13376
66fb954a 133772003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
13378
13379 PR c/8032
13380 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
13381 an empty element, do not advance the pointer to unfilled
13382 fields if there are pending initializers.
13383
36f95905 133842003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
13385
13386 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
13387 (install-gcc-tooldir, install-cpp, installdirs,
13388 install-common, install-driver, install-info, install-man,
13389 install-headers, install-include-dir, install-headers-tar,
13390 install-headers-cpio, install-headers-cp, install-mkheaders,
13391 install-collect2, uninstall): Prepend $(DESTDIR) to
13392 destination paths in all (un)installation commands.
13393 (install-driver): Rewrite $(LN) commands to support DESTDIR
13394 with "ln" as well as with "ln -s".
13395 (installdirs): Simply use mkinstalldirs.
13396 (install-libgcc, install-multilib): Also pass DESTDIR.
13397 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
13398 installation destination variable ldir.
13399 * config/alpha/t-osf4, config/arm/t-netbsd,
13400 config/ia64/t-hpux, config/mips/t-iris5-6,
13401 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
13402 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
13403 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
13404 in the definition of SHLIB_INSTALL.
13405 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
13406 $(libsubdir) in the installation commands.
13407
9df2aa62 134082003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
13409
13410 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
13411 non-optimizing compile.
13412 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
13413 compile.
13414
b09c5db2 134152003-01-08 Douglas B Rupp <rupp@gnat.com>
13416
13417 * config/i386/i386.c (ix86_attribute_table): Add new attributes
13418 ms_struct and gcc_struct.
13419 (ix86_handle_struct_attribute): New function.
13420 (ix86_ms_bitfield_layout_p): Update to take new attributes
13421 into account.
13422 * doc/extend.texi: Document new attributes.
13423 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
13424
77f9d5bb 134252003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
13426
6ed6b935 13427 PR optimization/8750
13428 * config/i386/i386.c (ix86_expand_prologue): Don't allow
13429 scheduling pass to move insns across __alloca call.
77f9d5bb 13430
192e987d 134312003-01-08 Dale Johannesen <dalej@apple.com>
13432
6ed6b935 13433 * config/rs6000/rs6000.md: Replace *store_multiple_string
13434 with *stmsi[3-8].
192e987d 13435
4314bcbc 134362003-01-08 Jeff Sturm <jsturm@one-point.com>
13437
13438 PR target/9210
13439 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
13440 Set SYMBOL_REF_FLAG on local data sym_ref.
13441
60623ba6 134422003-01-08 Dale Johannesen <dalej@apple.com>
6ed6b935 13443
13444 * function.c (assign_parms): Don't set pretend_args_size if
60623ba6 13445 REG_PARM_STACK_SPACE.
6ed6b935 13446 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
60623ba6 13447 pretend_args_size.
13448
e1a0f636 134492003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
13450
13451 * gcc.hlp: Delete.
13452
96b74343 134532003-01-09 Jan Hubicka <jh@suse.cz>
058706f0 13454
13455 * i386.c (ix86_expand_int_addcc): Fix thinko.
13456
aec6ed91 134572003-01-08 David Edelsohn <edelsohn@gnu.org>
13458
13459 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
13460 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
13461 as hook_bool_tree_hwi_hwi_tree_true.
13462 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
13463 (rs6000_emit_epilogue): Same.
13464 (rs6000_output_mi_thunk): Re-implement as RTL.
13465 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
13466 xcoffout_declare_function if any debugging enabled.
13467
a02568c6 134682003-01-08 Chris Demetriou <cgd@broadcom.com>
13469
13470 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
13471 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
13472 * config/mips/mips.h (enum processor_type): Rename
13473 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
13474 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
13475 Add PROCESSOR_M4K.
13476 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
13477 (ISA_MIPS32R2): New define.
13478 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
13479 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
13480 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
13481 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
13482 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
13483 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
13484 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
13485 compiling MIPS16 code.
13486 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
13487 comment.
13488 (ISA_HAS_SEB_SEH): New define.
13489 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
13490 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
13491 processor_type value renaming. Add support for MIPS32R2.
13492 Clean up comments, and move "sb1" entry with other MIPS64 CPU
13493 entries.
13494 (override_options): Reimplement -mipsN option handling so that
13495 it will work correctly for -mips32r2. Avoid branch-likely
13496 instructions on MIPS32R2.
13497 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
13498 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
13499 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
13500 (extendhisi2_hw, extendqisi2_hw): New.
13501 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
13502 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
13503 MIPS32R2, and MIPS64.
13504 (LINK_SPEC): Pass -mips32r2 to linker.
13505 * config/mips/t-isa3264: Built -mips32r2 multilibs.
13506 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
13507 for mips32r2 in the -march description. Alphabetically sort
13508 CPU names in the -march description. Add long-missed -mips32
13509 and -mips64 to MIPS option summary.
13510
13511 * config.gcc: Update copyright years to include 2003.
13512 * config/mips/mips.c: Likewise.
13513 * config/mips/mips.h: Likewise.
13514 * config/mips/mips.md: Likewise.
13515 * config/mips/netbsd.h: Likewise.
13516 * doc/invoke.texi: Likewise.
13517
d8ea82e6 135182003-01-08 Andreas Schwab <schwab@suse.de>
13519
13520 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
13521 variable.
13522 * configure: Regenerated.
13523
cdcf26ff 135242003-01-08 Kazu Hirata <kazu@cs.umass.edu>
13525
13526 * config/h8300/h8300.c (output_logical_op): Replace byte/word
13527 extraction of det with b0, b1, w0, w2, etc.
13528 (compute_logical_op_length): Likewise.
13529 (compute_logical_op_cc): Likewise.
13530
bf33764c 135312003-01-08 Kazu Hirata <kazu@cs.umass.edu>
13532
13533 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
13534 HIGH on all variants.
13535
96b74343 135362003-01-08 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
6ed6b935 13537
a45624d0 13538 * Makefile.in (PARTITION_H): New.
13539 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
13540 * basic-block.h: Include hard-reg-set.h.
13541
27da10cf 135422003-01-08 Richard Earnshaw <rearnsha@arm.com>
13543
13544 * arm.h (ENABLE_XF_PATTERNS): Delete.
13545 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
13546 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
13547 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
13548 (cmpxf_trap): Delete.
13549 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
13550
96b74343 135512003-01-08 Jan Hubicka <jh@suse.cz>
c7bf7428 13552
13553 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
13554 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
13555 (add??cc): New expanders.
13556 * i386.c (expand_int_addcc): New function.
13557 * i386-protos.h (expand_int_addcc): Declare.
13558
13559 * alias.c (memory_modified_1): New static function.
13560 (memory_modified): New static varaible.
13561 (memory_modified_in_insn_p): New global function.
13562 * rtl.h (memory_modified_in_insn_p): Declare.
13563 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
13564 references.
13565
13566 * expr.h (emit_conditional_add): Declare.
13567
174c8ca3 135682003-01-07 Janis Johnson <janis187@us.ibm.com>
13569
13570 PR other/8947
13571 * doc/invoke.texi (-malign-double): Explain that the option breaks
13572 binary compatibility.
13573
102b9402 135742003-01-08 Andreas Schwab <schwab@suse.de>
13575
13576 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
13577 should come from the generic *-*-linux* entry.
13578
96b74343 135792003-01-07 Jan Hubicka <jh@suse.cz>
8a98e28f 13580
13581 * cselib.c (cselib_current_insn_in_libcall): New static variable.
13582 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
13583 we are inside libcall.
13584 * cselib.h (elt_loc_list): Add in_libcall.
13585 * gcse.c (do_local_cprop): Do not copy propagate using insns
13586 in libcalls.
13587
2d1a9add 135882003-01-07 David Edelsohn <edelsohn@gnu.org>
13589
13590 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
13591 not normally affect to issue rate.
13592
96b74343 135932003-01-07 Jan Hubicka <jh@suse.cz>
d3da2ad8 13594
13595 * genopinit.c (optabs): Add addc_optab.
13596 * ifcvt.c (noce_try_store_flag): Rename to ...
13597 (noce_try_addcc): ... this one; handle generic conditional increment.
13598 (noce_process_if_block): Update noce_try_addcc call.
13599 * optabs.c (emit_conditional_add): New.
13600 (init_obtabs): Initialize addc_optab.
13601 * optabs.h (optab_index): Add OTI_addcc.
13602 (addcc_optab): New macro.
13603 * md.texi: Document addMcc
13604
13605 PR target/8322
13606 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
13607 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
13608 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
13609
13610 * reload1.c (delete_output_reload): Avoid repeated attempts
13611 to delete insn.
13612
24d1674d 136132003-01-07 Andreas Schwab <schwab@suse.de>
13614
102b9402 13615 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
13616 Move --enable-initfini-array check ...
13617 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
13618 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
13619 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
13620 * configure: Rebuild.
24d1674d 13621
a303ed8c 136222003-01-07 Richard Henderson <rth@redhat.com>
13623
102b9402 13624 * alias.c (find_base_value): Only use new_reg_base_value shortcut
13625 if the register is set once.
a303ed8c 13626
5e7915fc 136272003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
6ed6b935 13628
5e7915fc 13629 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
13630 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
13631 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
13632
3a258605 136332003-01-07 Benjamin Kosnik <bkoz@redhat.com>
13634 Sunil Davasam <sunil.k.davasam@intel.com>
13635
6ed6b935 13636 PR libstdc++/9076
3a258605 13637 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
13638 DW_CFA_same_value, read next and ignore.
13639
2c3f453c 136402003-01-07 Richard Henderson <rth@redhat.com>
13641
13642 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
13643
b694b261 136442003-01-07 Daniel Berlin <dberlin@dberlin.org>
13645
13646 * cfg.c: Include alloc-pool.h
13647 (edge_pool): New pool.
13648 (bb_pool): New pool.
13649 (first_deleted_edge): Remove.
13650 (first_deleted_block): Remove.
13651 (init_flow): Alloc/free the pools.
13652 (free_edge): Use pools.
13653 (alloc_block): Ditto.
13654 (expunge_block): Ditto.
13655 (cached_make_edge): Ditto.
13656
13657 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
13658
136592003-01-07 Daniel Berlin <dberlin@dberlin.org>
13660
13661 * et-forest.c: Include alloc-pool.h.
13662 (struct et_forest): Add node_pool and occur_pool.
13663 (et_forest_create): Create the new pools.
13664 (et_forest_delete): Delete them.
13665 (et_forest_add_node): Allocate and free using pools.
13666 (et_forest_add_edge): Ditto.
13667 (et_forest_remove_node): Ditto.
13668 (et_forest_remove_edge): Ditto.
13669
13670 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
13671
e6cf6c71 136722003-01-07 Kazu Hirata <kazu@cs.umass.edu>
13673
13674 * config/h8300/h8300.c (output_logical_op): Simplify and
13675 optimize the handling of SImode.
13676 * config/h8300/h8300.c (compute_logical_op_length): Update
13677 accordingly.
13678 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
13679
411666ea 136802003-01-07 Richard Sandiford <rsandifo@redhat.com>
13681
13682 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
13683 big-endian correction to indirect arguments too.
13684
c234ad65 136852003-01-06 Aldy Hernandez <aldyh@redhat.com>
13686
13687 Segher Boessenkool <segher@koffie.nl>
13688
5e7915fc 13689 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
13690 (alt_reg_names): Ditto, fix formatting.
13691 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
c234ad65 13692
407921a5 136932003-01-06 Kazu Hirata <kazu@cs.umass.edu>
13694
13695 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
13696 (output_logical_op): Constify intval and det.
13697 (compute_logical_length): Likewise.
13698 (compute_logical_cc): Likewise.
13699 (output_a_shift): Constify mask.
13700 (h8300_encode_label): Constify len.
13701
b36ddff8 137022003-01-06 Kazu Hirata <kazu@cs.umass.edu>
13703
13704 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
13705 (h8300_expand_epilogue): Likewise.
13706
da0ad72a 137072003-01-06 Aldy Hernandez <aldyh@redhat.com>
13708
13709 Segher Boessenkool <segher@koffie.nl>
13710
5e7915fc 13711 * config/rs6000/altivec.md: Remove spaces from assembler
13712 instruction argument lists.
6ed6b935 13713
3c8d298d 137142003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13715
13716 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
13717 c4x_assembler_function_p.
13718 (c4x_null_epilogue_p): Complement return value, all uses updated.
13719 (c4x_insert_attributes): Add naked.
13720 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
13721 * doc/extend.texi: Update C4x function attributes.
13722
a36057b0 137232003-01-06 Richard Henderson <rth@redhat.com>
13724
13725 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
13726 properly when changing "local-ness".
13727 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
13728
9fb0071e 137292003-01-06 Dale Johannesen <dalej@apple.com>
13730
13731 * config/darwin-protos.h: Add prototypes for new section functions.
13732
4d5b08a8 137332003-01-06 Chris Demetriou <cgd@broadcom.com>
13734
13735 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
13736 to EABI.
13737
7b382543 137382003-01-06 Zack Weinberg <zack@codesourcery.com>
13739
13740 * hwint.h: If the current compiler has no 64-bit type at all,
13741 make HOST_WIDEST_INT 32 bits.
13742
7798dc70 137432003-01-06 Eric Christopher <echristo@redhat.com>
13744
13745 * config/mips/mips.md (movdf_internal2): Fix constraints.
13746
9e3e9deb 137472003-01-06 Kazu Hirata <kazu@cs.umass.edu>
13748
13749 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
13750
b43aa620 137512003-01-06 Richard Sandiford <rsandifo@redhat.com>
13752
13753 * config/mips/mips.md (leadi): Use dla rather than la.
13754
b36ddff8 137552003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
2c383079 13756
13757 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
13758 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
13759
b36ddff8 137602003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
420fde99 13761
7b382543 13762 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
420fde99 13763 redefinition.
13764
13ae3e24 137652003-01-05 Kazu Hirata <kazu@cs.umass.edu>
13766
13767 * config/h8300/h8300.md (*extzv_8_23): New.
13768
d59aa441 137692003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13770
13771 * pa64-hpux.h (JCR_SECTION_NAME): Define.
13772 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
13773 USE_EH_FRAME_REGISTRY when defining.
13774
3d71ed48 137752003-01-05 Kazu Hirata <kazu@cs.umass.edu>
13776
13777 * config/h8300/h8300.c (output_a_shift): Do not output a
13778 variable shift.
13779 * config/h8300/h8300.md (two splitters): New.
13780
bb83ee19 137812003-01-05 Richard Sandiford <rsandifo@redhat.com>
13782
13783 * config/mips/mips.md: Disable the movstrsi define_split.
13784
5320179d 137852003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13786
13787 * alloc-pool.c: Don't include "libiberty.h".
13788 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
13789 * convert.c (convert_to_real): Hide unused variable.
13790
fd956ee4 137912003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13792
13793 * Makefile.in (gtyp-gen.h): Const-ify.
13794 * gcov-dump.c (tag_table): Likewise.
13795
f407d613 137962003-01-04 Bruce Korb <bkorb@gnu.org>
13797
13798 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
13799 of *both* the file name and the fix name.
13800
36f95905 138012003-01-04 John David Anglin <dave.anglin@nrc.ca>
de419443 13802
13803 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
13804 collect2.
13805 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
13806 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
13807 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
13808 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
13809 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
13810 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
13811 elfos.h.
13812 (EH_FRAME_IN_DATA_SECTION): Delete define.
13813 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
13814 (STARTFILE_SPEC): Use crtbegin.o.
13815 (ENDFILE_SPEC): Use crtend.o.
13816 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
13817 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
13818 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
13819 DTOR_LIST_BEGIN): Define.
13820 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
13821 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
13822 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
13823
2b5c5c15 138242002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
13825
13826 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
13827 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
13828 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
13829 Cleanup handling of replacement text.
13830 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
13831
138322003-01-04 Bruce Korb <bkorb@gnu.org>
13833
13834 * fixinc/tests/base/math.h: removed obsolete results
13835 * fixinc/tests/base/stdlib.h: ditto
13836 * fixinc/tests/base/sys/param.h: ditto
13837 * fixinc/tests/base/sys/stat.h: ditto
13838 * fixinc/tests/base/time.h: ditto
13839 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
13840 * fixinc/tests/base/sys/byteorder.h: ditto
13841 * fixinc/inclhack.def: Remove superfluous backslashes
13842
8f260b97 138432003-01-04 Kazu Hirata <kazu@cs.umass.edu>
13844
13845 * config/h8300/h8300-protos.h: Add prototypes for
13846 the new functions defined below.
13847 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
13848 define.
13849 (dosize): Emit RTL instead of assembly code.
13850 (push): Likewise.
13851 (pop): Likewise.
13852 (h8300_output_function_prologue): Remove.
13853 (h8300_expand_prologue): New.
13854 (h8300_expand_epilogue): New.
13855 (h8300_output_function_epilogue): Do only the reset of
13856 pragma_saveall.
13857 * config/h8300/h8300.md (push_h8300): New.
13858 (push_h8300hs): Likewise.
13859 (pop_h8300): Likewise.
13860 (pop_h8300hs): Likewise.
13861 (*stm_h8300s_2): Change the name to stm_h8300s_2.
13862 (*stm_h8300s_3): Change the name to stm_h8300s_3.
13863 (*stm_h8300s_4): Change the name to stm_h8300s_4.
13864 (*ldm_h8300s_2): New.
13865 (*ldm_h8300s_3): Likewise.
13866 (*ldm_h8300s_4): Likewise.
13867 (return): Likewise.
13868 (*return_1): Likewise.
13869 (prologue): Likewise.
13870 (epilogue): Likewise.
13871 (monitor_prologue): Likewise.
13872
de32204e 138732003-01-03 Dale Johannesen <dalej@apple.com>
13874
13875 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
13876 machopic_picsymbol_stub1.
13877 (EXTRA_SECTION_FUNCTIONS): Ditto.
13878 * rs6000/rs6000.c: Update copyright.
13879 (machopic_output_stub): Use them. Remove an insn from stub code.
13880
81010c97 138812003-01-02 Jason Merrill <jason@redhat.com>
13882
bdb2219e 13883 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
13884
13885 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
13886 static/external decls.
7798dc70 13887
81010c97 13888 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
13889 outermost scope.
13890 * c-decl.c (c_make_fname_decl): Push the decls there, too.
13891
41ed3bcd 138922003-01-03 Kazu Hirata <kazu@cs.umass.edu>
13893
13894 * config/h8300/h8300-protos.h: Add a prototype for
13895 h8300_current_function_interrupt_function_p.
13896 * config/h8300/h8300.c (interrupt_handler): Remove.
13897 (os_task): Likewise.
13898 (monitor): Likewise.
13899 (pragma_interrupt): New.
13900 (WORD_REG_USED): Use
13901 h8300_current_function_interrupt_function_p.
13902 (dosize): Likewise.
13903 (h8300_output_function_prologue): Likewise.
13904 Do not set interrupt_handler, os_task, monitor.
13905 (h8300_output_function_prologue): Use
13906 h8300_current_function_interrupt_function_p.
13907 Do not set interrupt_handler, os_task, monitor.
13908 (h8300_current_function_interrupt_function_p): New.
13909 (h8300_pr_interrupt): Set pragma_interrupt.
13910 (h8300_insert_attributes): Reset pragma_interrupt.
13911
48318a30 139122003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13913
13914 * doc/install.texi (Configuration): Fix markup for reference to
13915 gcc/config.gcc.
13916
7a972534 139172003-01-02 Kazu Hirata <kazu@cs.umass.edu>
13918
13919 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
13920 (*iorhi3_two_qi): Likewise.
13921 (*iorsi3_zexthi): Likewise.
13922 (*xorhi3_zextqi): Likewise.
13923 (*xorsi3_zexthi): Likewise.
13924 (*xorsi3_zextqi): Likewise.
13925
90e56b83 139262003-01-02 Kazu Hirata <kazu@cs.umass.edu>
13927
13928 * config/h8300/h8300.c (stack_pointer_operand): New.
13929 (const_int_gt_2_operand): Likewise.
13930 (const_int_ge_8_operand): Likewise.
13931 * config/h8300/h8300.md (a splitter): Likewise.
13932 (a peephole2): Likewise.
13933 * config/h8300/h8300-protos.h: Add prototypes for the new
13934 functions above.
13935
06fb4c5c 139362003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
13937
13938 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
13939 objc/objc-act.h: Fix copyright years.
13940
711af9f6 139412003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
13942
13943 * doc/passes.texi: Fix documentation for -fssa-ccp
13944
39d931f4 139452003-01-02 Neil Booth <neil@daikokuya.co.uk>
13946
13947 * gccbug.in: Update for new categories.
13948
cc61f43e 139492003-01-01 Kazu Hirata <kazu@cs.umass.edu>
13950
13951 * config/h8300/h8300.md: Reorder some patterns.
13952
1c75fadf 139532003-01-01 Kazu Hirata <kazu@cs.umass.edu>
13954
13955 * config/h8300/h8300.c (output_logical_op): Fix a warning.
13956
0904acb0 139572003-01-01 Neil Booth <neil@daikokuya.co.uk>
13958
13959 * config/darwin-protos.h, config/c4x/c4x-protos.h,
13960 config/cris/cris-protos.h, config/i370/i370-protos.h,
13961 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
13962 config/v850/v850-protos.h: Use struct, and don't conditionally
13963 compile on GCC_C_PRAGMA_H.
13964
32a65ab3 139652003-01-01 Kazu Hirata <kazu@cs.umass.edu>
13966
13967 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
13968 * config/h8300/h8300-protos.h: Likewise.
13969 * config/sh/sh-protos.h: Likewise.
13970
4952c3eb 139712003-01-01 Kazu Hirata <kazu@cs.umass.edu>
13972
13973 * config/arm/arm-protos.h: Use struct cpp_reader instead of
13974 cpp_reader.
13975 * config/h8300/h8300-protos.h: Likewise.
13976 * config/sh/sh-protos.h: Likewise.
13977
c0bb4975 139782003-01-01 Neil Booth <neil@daikokuya.co.uk>
13979
13980 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
13981 arm_pr_long_calls_off): Use struct.
13982 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
13983 : Similarly.
13984 Don't include cpplib.h.
13985 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
13986 sh_pr_nosave_low_regs): Similarly.
13987
f420bedf 139882003-01-01 Kazu Hirata <kazu@cs.umass.edu>
13989
13990 * config/h8300/h8300.c: Include cpplib.h.
13991
e3708be9 139922003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
13993
13994 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
13995 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
13996 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
13997 "GCC" in the copyright header.
13998
eb180587 139992003-01-01 Neil Booth <neil@daikokuya.co.uk>
14000
14001 * c-pragma.c (c_register_pragma): New.
14002 (init_pragma): Use it.
14003 * c-pragma.h (cpp_register_pragma): Don't declare.
14004 (c_register_pragma): New.
14005 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
14006 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
14007 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
14008 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
14009 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
14010 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
14011 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
14012 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
14013 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
14014 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
14015 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
14016 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
14017
6883a8e2 14018See ChangeLog.8 for earlier changes.