3fb943611c9c19e387e2bcc4d663930f8e2bdf6e
[gcc.git] / gcc / ChangeLog
1 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2
3 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
4 different from header.
5
6 2003-07-05 Andreas Schwab <schwab@suse.de>
7
8 * config/m68k/m68k.c: Remove code protected by CRDS.
9 * config/m68k/m68k.md: Likewise.
10
11 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
12
13 PR driver/11417
14 * c-opts.c (permit_fortran_options): New.
15 (c_common_init_options): Accept fortran front end options if
16 it looks like we might be preprocessing Fortran.
17 (c_common_handle_option): Don't reject switch if permit_fotran_options.
18
19 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20
21 * genattr.c (internal_dfa_insn_code): Output prototype.
22 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
23 * genautomata.c: Likewise.
24 * genconditions.c: Likewise.
25 * genemit.c: Likewise.
26 * genextract.c: Likewise.
27 * gengenrtl.c: Likewise.
28 * gengtype.c: Likewise.
29 * genopinit.c: Likewise.
30 * genoutput.c: Likewise.
31 * genpeep.c: Likewise.
32 * genrecog.c: Likewise.
33
34 2003-07-04 Zack Weinberg <zack@codesourcery.com>
35
36 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
37 (struct cpp_options): Add narrow_charset, wide_charset,
38 bytes_big_endian fields. Remove EBCDIC field.
39 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
40
41 * cpphash.h: Include <iconv.h> if we have it, otherwise
42 provide a dummy definition of iconv_t.
43 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
44 (_cpp_valid_ucn): Update prototype.
45 (_cpp_destroy_iconv): New prototype.
46
47 * doc/cpp.texi: Document character set handling.
48 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
49 * doc/extend.texi: Delete entire section on multiline strings.
50 Rewrite section on __FUNCTION__ etc now that these are
51 variables in C.
52
53 * cppucnid.tab, cppucnid.pl: New files.
54 * cppucnid.h: New generated file.
55 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
56 (iconv_open, iconv, iconv_close): Provide dummy definitions
57 if !HAVE_ICONV.
58 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
59 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
60 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
61 cpp_interpret_string, narrow_str_to_charconst,
62 wide_str_to_charconst): New.
63 (ucn_valid_in_identifier): Use a binary search through the
64 ucnranges table defined in cppucnid.h, not a long chain of if
65 statements.
66 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
67 character names are only valid in C++ and C99" to a warning.
68 Issue the "meaning of \[uU] is different in traditional C"
69 warning here. Take care not to let iconv see an invalid UCS
70 value if we get a malformed UCN. Issue an error if we don't
71 have iconv.
72 (cpp_interpret_charconst): Moved here from cpplex.c. Use
73 cpp_interpret_string to do the heavy lifting.
74
75 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
76 narrow_charset, wide_charset fields of options structure.
77 (cpp_destroy): Call _cpp_destroy_iconv.
78 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
79 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
80 (cpp_interpret_charconst): Moved to cppcharset.c.
81 * cpplib.c (dequote_string): Delete.
82 (interpret_string_notranslate): New.
83 (do_line, do_linemarker): Use interpret_string_notranslate.
84
85 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
86
87 * c-common.c (fname_string, combine_strings): Delete.
88 * c-common.h (fname_string, combine_strings): Delete prototypes.
89 * c-lex.c (ignore_escape_flag): Delete.
90 (cb_ident): Use cpp_interpret_string, not lex_string.
91 (get_nonpadding_token): New function.
92 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
93 Adjust calls to lex_string. Don't write *value twice.
94 (lex_string): Now handles string constant concatenation.
95 Most of the work handed off to cpp_interpret_string.
96 Call fix_string_type here.
97 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
98 FUNC_NAME, throughout.
99 (OBJC_STRING): New token type.
100 (primary:STRING): No need to call fix_string_type here.
101 (primary:objc_string): Make that OBJC_STRING.
102 (objc_string nonterminal): Delete.
103 (yylexname): Delete code to handle fake string constants.
104 (yylexstring): Delete entirely.
105 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
106 to handle CPP_ATSIGN.
107
108 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
109 * c-opts.c (missing_arg, c_common_handle_option): Handle
110 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
111 (c_common_init): Set cpp_opts->bytes_big_endian, not
112 cpp_opts->EBCDIC. Call cpp_init_iconv.
113 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
114 (TARGET_EBCDIC): Delete default definition.
115
116 * objc/objc-act.c (build_objc_string_object): No need to
117 handle string constant concatenation.
118
119 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
120
121 * doc/install.texi: Fix typos.
122 * doc/invoke.texi: Likewise.
123 * doc/tm.texi: Likewise.
124
125 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
126
127 * config/pa/fptr.c: Fix comment typos.
128 * config/pa/pa-64.h: Likewise.
129 * config/pa/pa.c: Likewise.
130 * config/pa/pa.h: Likewise.
131 * config/rs6000/603.md: Likewise.
132 * config/rs6000/7xx.md: Likewise.
133 * config/rs6000/darwin.h: Likewise.
134 * config/rs6000/freebsd.h: Likewise.
135 * config/rs6000/rs6000.c: Likewise.
136 * config/rs6000/rs6000.md: Likewise.
137 * config/rs6000/spe.h: Likewise.
138
139 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
140
141 * config/s390/2064.md: Change GNU CC to GCC.
142 * config/s390/2084.md: Likewise.
143 * config/s390/fixdfdi.h: Likewise.
144 * config/s390/linux.h: Likewise.
145 * config/s390/s390-modes.def: Likewise.
146 * config/s390/s390-protos.h: Likewise.
147 * config/s390/s390.c: Likewise.
148 * config/s390/s390.h: Likewise.
149 * config/s390/s390.md: Likewise.
150 * config/s390/s390x.h: Likewise.
151
152 2003-07-04 Jeff Law <law@redhat.com>
153
154 PR c/11428
155 * expr.c (do_store_flag): Pass in the correct result type
156 when calling fold_single_bit_test.
157 * fold-const.c (fold_single_bit_test): Use result_type for the
158 result when folding a sign bit test.
159
160 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
161
162 * opts.c (common_handle_options): Negate sense of -falign- switches.
163
164 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
165
166 * Makefile.in: Replace PWD with PWD_COMMAND.
167
168 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
169
170 * cfgloopanal.c (count_strange_loop_iterations): New static function.
171 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
172 Handle strange loops.
173
174 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
175
176 * install.texi: Even the g77 manpage is derived from
177 the full g77 manual.
178
179 2003-07-04 Zack Weinberg <zack@codesourcery.com>
180
181 * ABOUT-NLS: Delete.
182 * intl: Delete entire directory.
183 * aclocal.m4: Include ../config/gettext.m4. Delete
184 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
185 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
186 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
187 Remove intl/Makefile from all_outputs.
188 * configure, config.in: Regenerate.
189 * Makefile.in: Expunge all references to intl subdirectory.
190 Add -I../intl to INCLUDES.
191 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
192
193 2003-07-04 Roger Sayle <roger@eyesopen.com>
194
195 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
196 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
197
198 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
199
200 PR c++/5287, PR c++/7910, PR c++/11021
201 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
202 dllimport attribute if function is defined at declaration, but
203 report error instead. Likewise for dllimport'd variable
204 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
205 declared within functions, Report error if dllimport or dllexport
206 symbol is not global.
207 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
208 if defined after declaration or if inlined. Don't allow definition
209 of static data members of C++ classes. Don't dllimport virtual
210 methods.
211 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
212 (i386_pe_mark_dllimport): Remove unnecessary checks.
213 (i386_pe_encode_section_info): Warn if the dllimport attribute
214 and symbol prefix have been instantiated and then overridden.
215
216 * doc/extend.texi: Document dllimport and dllexport attributes.
217
218 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
219
220 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
221
222 * config/kaos.h (CPP_PREDEFINES): Delete.
223 (TARGET_OS_CPP_BUILTINS): New.
224
225 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
226
227 * c-aux-info.c: Include toplev.h after c-tree.h.
228 * c-common.c: Likewise.
229 (GCC_DIAG_STYLE): Undef.
230 * c-semantics.c (GCC_DIAG_STYLE): Define.
231 * c-tree.h (GCC_DIAG_STYLE): Likewise.
232 * diagnostic.h (inform): Move prototype to toplev.h.
233 * jump.c: Include diagnostic.h before toplev.h.
234 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
235 (warning, error, fatal_error, pedwarn, sorry, inform,
236 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
237
238 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
239
240 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
241 at all if edge is not specified.
242 (can_copy_bbs_p, copy_bbs): New.
243 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
244 * cfgloop.c (get_loop_body): Comment more precisely.
245 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
246 (scale_bbs_frequencies): Fix comment typo.
247 (can_duplicate_loop_p): Use can_copy_bbs_p.
248 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
249
250 2003-07-03 Devang Patel <dpatel@apple.com>
251
252 * c-opts.c (c_common_parse_file): Remove extra
253 debug_hooks->start_source_file call.
254
255 2003-07-03 Roger Sayle <roger@eyesopen.com>
256
257 * real.c (real_trunc, real_floor, real_ceil): New functions
258 to implement trunc, floor and ceil respectively.
259 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
260 * builtins.c (integer_valued_real_p): New function to test if
261 a floating point expression has an integer valued result.
262 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
263 foo(x) where foo is an integer rounding function. Similarly,
264 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
265 (double)(int)x when both foo and bar are integer rounding
266 functions and we don't need to honor errno.
267 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
268 New functions to fold trunc, floor and ceil.
269 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
270 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
271 to fold BUILT_IN_CEIL*.
272 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
273 the remaining integer rounding functions.
274
275 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
276
277 * config/sparc/sparc.c (function_arg_partial_nregs): Use
278 SPARC_INT_ARG_MAX to determine where to split unnamed
279 complex FP arguments.
280
281 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
282
283 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
284 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
285 (merge_blocks_move_predecessor_nojumps,
286 merge_blocks_move_successor_nojumps): Use merge_blocks.
287 (try_optimize_cfg): Use merge_blocks_move.
288 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
289 (merge_blocks_nomove): Rename to rtl_merge_blocks.
290 (cfg_layout_create_basic_block): New.
291 (rtl_can_merge_blocks): New.
292 (cfg_layout_split_block): Do not alloc aux by hand.
293 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
294 merge_blocks.
295 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
296 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
297 * cfgloopmanip.c (loop_split_edge_with): Likewise.
298 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
299
300 * basic-block.h (basic_block_def): Add field 'rbi'.
301 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
302 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
303 * cfg.c (entry_exit_blocks): Add new field.
304 * cfglayout.c: Include alloc-pool.h;
305 (cfg_layout_pool): New.
306 (record_effective_endpoints, fixup_reorder_chain,
307 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
308 of rbi.
309 (cfg_layout_initialize_rbi): New function.
310 (cfg_layout_initialize): Use it.
311 (cfg_layout_finalize): Clear rbi fields.
312 * cfglayout.h (RBI): Kill.
313 (cfg_layout_initialize_rbi): Declare.
314 * cfgloopmanip.c (copy_bbs): Use rbi.
315 (record_exit_edges): Likewise.
316 (duplicate_loop_to_header_edge): Likewise.
317 * cfgrtl.c (cfg_layout_create_basic_block): Use
318 cfg_layout_initialize_rbi.
319 (cfg_layout_split_block): Use rbi.
320 (cfg_layout_delete_block): Likewise.
321 * loop-init.c (loop_optimizer_finalize): Likewise.
322 * loop-unswitch.c (unswitch_loop): Likewise.
323 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
324
325 * cfgrtl.c: Update comments.
326 (try_redirect_by_replacing_jump): New argument.
327 (redirect_branch_edge): Break out from ...
328 (rtl_redirect_edge_and_branch): ... this one.
329 (update_cfg_after_block_merging): Break out from ...
330 (rtl_merge_blocks): ... this one.
331 (cfg_layout_split_edge): New.
332 (cfg_layout_merge_blocks): New.
333 (cfg_layout_can_merge_blocks_p): New.
334 (cfg_layout_redirect_edge_and_branch): Reorganize.
335 (cfg_layout_rtl_cfg_hooks): Fill in.
336 (cfg_layout_delete_block): Kill barriers.
337 * cfganal.c (can_fallthru): Deal with exit blocks
338 * cfglayout.c (cfg_layout_function_header): New function
339 (record_effective_endpoints): Record function header.
340 (fixup_reorder_chain): Fixup dead jumptables; place header
341
342 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
343 * bb-reorder.c (cfg_layout_initialize): Update call.
344 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
345 edges in cfglayout mode.
346 * cfglayout.c (cleanup_unconditional_jumps): Kill.
347 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
348 * cfglayout.h (cfg_layout_initialize): Update prototype.
349 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
350 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
351 * flow.c (propagate_block): Do not crash when basic block ends
352 by first insn in the chain.
353 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
354 do loop discovery.
355 * tracer.c (tracer): Update call of cfg_layout_initialize.
356
357 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
358
359 * Makefile.in: Use dependency variables in lieu of explicit
360 files throughout.
361
362 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
363
364 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
365 * tree.h: ...to here.
366
367 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
368
369 * config/s390/2064.md: Fix comment typos.
370 * config/s390/2084.md: Likewise.
371 * config/s390/s390.c: Likewise.
372 * config/s390/s390.md: Likewise.
373 * config/sh/sh.c: Likewise.
374 * config/sh/sh.h: Likewise.
375 * config/sh/sh.md: Likewise.
376 * config/sparc/sparc.c: Likewise.
377 * config/sparc/sparc.h: Likewise.
378 * config/sparc/sparc.md: Likewise.
379 * config/stormy16/stormy16.c: Likewise.
380 * config/stormy16/stormy16.h: Likewise.
381 * config/stormy16/stormy-abi: Fix a typo.
382
383 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
384
385 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
386
387 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
388
389 * config/mips/mips.h (save_argv): Delete.
390
391 2003-07-03 Roger Sayle <roger@eyesopen.com>
392
393 PR target/10700
394 * fold-const.c (extract_muldiv_1): There's nothing that can be done
395 if the expression is a SAVE_EXPR.
396
397 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
398
399 * config/m32r/m32r.c: Fix comment typos.
400 * config/m68hc11/m68hc11.c: Likewise.
401 * config/m68hc11/m68hc11.h: Likewise.
402 * config/m68k/m68k.c: Likewise.
403 * config/mcore/mcore.c: Likewise.
404 * config/mcore/mcore.h: Likewise.
405 * config/mcore/mcore.md: Likewise.
406 * config/mips/mips.c: Likewise.
407 * config/mips/mips.h: Likewise.
408 * config/mips/mips.md: Likewise.
409 * config/mips/netbsd.h: Likewise.
410 * config/mn10300/mn10300.c: Likewise.
411
412 2003-07-03 Andreas Schwab <schwab@suse.de>
413
414 * dbxout.c (pending_bincls): Move decl down inside
415 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
416
417 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
418
419 * rtl.h (NOTE_DATA): Refer to whole union.
420 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
421
422 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
423
424 PR optimization/11381
425 * simplify-rtx.c (simplify_relational_operation): Check that
426 two equal operands have no side-effects before simplifying
427 the comparison.
428
429 2003-07-02 Jeff Law <law@redhat.com>
430
431 * expr.c (do_store_flag): Remove special case folding for
432 single bit tests. Instead call back into the commonized folder
433 routine.
434 * fold-const.c (fold_single_bit_test): New function, mostly
435 extracted from do_store_flag, with an additional case extracted
436 from fold.
437 (fold): Call fold_single_bit_test appropriately.
438 * tree.h (fold_single_bit_test): Prototype.
439
440 2003-07-02 Zack Weinberg <zack@codesourcery.com>
441
442 * system.h: Include filenames.h.
443 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
444 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
445 define based on HAVE_DOS_BASED_FILE_SYSTEM.
446 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
447 * config/i386/xm-mingw32.h: Don't define
448 HAVE_DOS_BASED_FILE_SYSTEM,
449 DIR_SEPARATOR, or DIR_SEPARATOR_2.
450 * doc/hostconfig.texi: Update to match.
451
452 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
453 config/i386/cygwin.h:
454 Use IS_ABSOLUTE_PATH throughout.
455 * gcc.c (DIR_UP): Delete, unused.
456 * protoize.c (IS_SAME_PATH): Define in terms of
457 FILENAME_CMP.
458 (is_abspath): Delete.
459
460 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
461
462 * config/i386/emmintrin.h: Fix comment typos.
463 * config/i386/i386.c: Likewise.
464 * config/i386/i386.h: Likewise.
465 * config/i386/sco5.h: Likewise.
466 * config/ia64/ia64.c: Likewise.
467 * config/ia64/itanium2.md: Likewise.
468
469 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
470
471 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
472 DBX_USE_BINCL.
473 (emit_bincl_stab): Same.
474 (emit_pending_bincls): Same.
475
476 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
477
478 * config/h8300/h8300.c (compute_mov_length): Fix the length of
479 loading CONST0_RTX (SFmode).
480 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
481 'G' to CONST0_RTX (SFmode).
482 * config/h8300/h8300.md (movsf_h8300): Change the first
483 constraint to 'G'.
484 (movsf_h8300h): Likewise.
485
486 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
487
488 * c-common.h (c_common_init_options): New prototype.
489 * c-opts.c (deferred_size): Remove.
490 (defer_opt): Array is now pre-allocated.
491 (c_common_init_options): Pre-allocate deferred_opts. Make
492 lang_flags unsigned.
493 (push_command_line_options): Free deferred_opts.
494 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
495 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
496 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
497 * langhooks.h (struct lang_hooks): New prototype for init_options.
498 * main.c (main): Cast argv.
499 * opts.c (handle_option, handle_options): Update prototypes.
500 (decode_options): save_argc, save_argv are not global. Constify.
501 * opts.h (decode_options): New prototype.
502 * toplev.c (general_init): New protoype.
503 (save_argv): Make static.
504 (save_argc): Remove.
505 (print_switch_values, general_init): Constify.
506 (toplev_main): Save argv.
507 * toplev.h (toplev_main): Update prototype.
508 (save_argc, save_argv): Remove.
509
510 2003-07-02 David Edelsohn <edelsohn@gnu.org>
511
512 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
513 (emit_bincl_stab): Same.
514 (emit_pending_bincls): Same.
515
516 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
517
518 PR c++/11072
519 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
520
521 2003-07-02 Andreas Schwab <schwab@suse.de>
522
523 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
524
525 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
526
527 PR optimization/11210
528 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
529 about the behaviour with regard to bitfields.
530 * fold-const (decode_field_reference): Record outermost type in
531 case the expression is a NOP. Strip all NOPs. Set the signedness
532 to that of the outermost type (if any) when the bitsize is equal
533 to the size of the type.
534
535 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
536
537 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
538 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
539 (adddi3_internal_3, addsi3_internal_2): Likewise.
540
541 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
542
543 * config/mips/mips.c (machine_function): Add new fields:
544 ignore_hazard_length_p and all_noreorder_p.
545 (mips_flag_delayed_branch): New variable.
546 (override_options): Treat '/' as an operand punctuation character.
547 Set up mips_flag_delayed_branch.
548 (print_operand): Handle '/'.
549 (mips_output_function_prologue): Put the whole function in
550 .set noreorder and .set nomacro if all_noreorder_p is true.
551 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
552 (mips16_optimize_gp): Remove "first insn" parameter.
553 (mips16_lay_out_constants): New function, split out from mips_reorg.
554 (mips_avoid_hazard, mips_avoid_hazards): New functions.
555 (mips_reorg): For mips16 code, call mips16_lay_out_constant
556 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
557 do delayed-branch scheduling followed by hazard detection.
558 (mips_adjust_insn_length): Only account for hazards if
559 !ignore_hazard_length_p.
560 (mips_output_load_label): Add a nop to the o32 sequence if
561 the target suffers from load delays.
562 (mips_output_conditional_branch): Add %/ to the end of branches.
563 (mips_output_division): Fill the branch delay slot with %#.
564 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
565 instructions. End all other %* branches with %/.
566 (ffssi2, ffsdi2): Fix lengths.
567 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
568 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
569 (fix_truncsfsi2_macro): Likewise.
570 (mov_lwl): Set hazard to "none".
571 (ashldi3_internal): Fill the branch delay slot with %#.
572 (ashrdi3_internal, lshrdi3_internal): Likewise.
573 (exception_receiver): Explicitly set $28.
574 (hazard_nop): New pattern.
575
576 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
577
578 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
579 before calling tree_inlinable_function_p.
580
581 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
582
583 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
584 <internal/stdio_core.h> too.
585 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
586 <internal/wchar_core.h> too.
587 Substitute va_list uses in inline definition.
588 * fixinc/fixincl.x: Regenerate.
589
590 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
591
592 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
593 Undef before redefinition.
594 (LABEL_AFTER_LOC): Likewise.
595 (DEFAULT_SIGNED_CHAR): Likewise.
596 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
597 Fix IRIX spelling.
598
599 * config/mips/iris3.h: Remove, unused.
600 * config/mips/iris4.h: Likewise.
601
602 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
603
604 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
605 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
606 target_cpu_default.
607
608 * config/mips/iris5.h: Move explicit includes ...
609 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
610
611 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
612 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
613 tm_defines.
614
615 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
616 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
617 target_cpu_default.
618
619 * config/mips/iris6.h: Fix IRIX spelling.
620 (MULTILIB_DEFAULTS): Undef before redefinition.
621
622 * config/mips/iris6.h: Move explicit includes ...
623 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
624
625 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
626
627 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
628 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
629 Use next_needed field instead of aux to maintain the queue.
630 * cgraph.h (cgraph_node): Add next_needed.
631 (cgraph_varpool_node): Add next_needed; remove aux.
632 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
633
634 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
635
636 * cgraphunit.c (cgraph_finalize_function): Set finalized.
637 (cgraph_finalize_function): Do not examine inlinablility.
638 (cgraph_finalize_compilation_unit): Do it here.
639 * cgraph.h (cgraph_local_info): Add finalized field.
640
641 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
642
643 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
644 (gt_pch_restore): Likewise.
645
646 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
647
648 * config/alpha/alpha.c: Fix comment typos.
649 * config/alpha/elf.h: Likewise.
650 * config/arm/arm.c: Likewise.
651 * config/arm/arm.h: Likewise.
652 * config/arm/arm.md: Likewise.
653 * config/arm/t-arm-coff: Likewise.
654 * config/arm/t-strongarm-pe: Likewise.
655 * config/arm/xscale-elf.h: Likewise.
656 * config/avr/avr.h: Likewise.
657
658 2003-07-01 Jeff Law <law@redhat.com>
659
660 * stmt.c (any_pending_cleanups): Remove another redundant test.
661
662 2003-07-01 David Edelsohn <edelsohn@gnu.org>
663 J"orn Rennecke <joern.rennecke@superh.com>
664
665 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
666 for MEM case.
667
668 2003-07-01 Devang Patel <dpatel@apple.com>
669
670 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
671 (binclstatus): New.
672 (struct dbx_file): New members - bincl_status, pending_bincl_name and
673 prev.
674 (pending_bincls): New.
675 (dbxout_init): Initialize new dbx_file members.
676 (dbxout_start_source_file): Same.
677 (emit_bincl_stab): New function.
678 (emit_pending_bincls): Same.
679 (emit_pending_bincls_if_required): Same.
680 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
681 processed.
682 (dbxout_begin_block): Emit pending BINCL stabs.
683 (dbxout_end_block): Same.
684 (dbxout_function_decl): Same.
685 (dbxout_continue): Same.
686 (dbxout_type): Same.
687 (dbxout_class_name_qualifiers): Same.
688 (dbxout_symbol): Same.
689 (dbxout_symbol_location): Same.
690 (dbxout_parms): Same.
691
692 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
693
694 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
695 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
696
697 2003-07-01 Andreas Jaeger <aj@suse.de>
698
699 * fold-const.c: Convert prototypes to ISO C90.
700 * function.c: Likewise.
701 * function.h: Likewise.
702
703 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
704
705 * doc/contrib.texi: Fix typos.
706 * doc/invoke.texi: Likewise.
707 * doc/passes.texi: Likewise.
708 * doc/sourcebuild.texi: Likewise.
709 * doc/tm.texi: Likewise.
710
711 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
712
713 * basic-block.h: Fix comment typos.
714 * bb-reorder.c: Likewise.
715 * c-format.c: Likewise.
716 * cfgcleanup.c: Likewise.
717 * cfghooks.h: Likewise.
718 * cfgloop.c: Likewise.
719 * cfgloopmanip.c: Likewise.
720 * cfgrtl.c: Likewise.
721 * cgraph.h: Likewise.
722 * cgraphunit.c: Likewise.
723 * combine.c: Likewise.
724 * convert.c: Likewise.
725 * dbxout.c: Likewise.
726 * df.c: Likewise.
727 * df.h: Likewise.
728 * diagnostic.c: Likewise.
729 * dwarf2out.c: Likewise.
730 * et-forest.h: Likewise.
731 * flow.c: Likewise.
732 * fold-const.c: Likewise.
733 * function.h: Likewise.
734 * gcov-io.h: Likewise.
735 * gcov.c: Likewise.
736 * gcse.c: Likewise.
737 * genautomata.c: Likewise.
738 * ggc-common.c: Likewise.
739 * ggc-page.c: Likewise.
740 * loop-unroll.c: Likewise.
741 * loop-unswitch.c: Likewise.
742 * loop.c: Likewise.
743 * mips-tfile.c: Likewise.
744 * optabs.c: Likewise.
745 * ra-build.c: Likewise.
746 * ra-colorize.c: Likewise.
747 * ra-rewrite.c: Likewise.
748 * ra.h: Likewise.
749 * regmove.c: Likewise.
750 * reload.c: Likewise.
751 * rtlanal.c: Likewise.
752 * sched-ebb.c: Likewise.
753 * sched-int.h: Likewise.
754 * sched-vis.c: Likewise.
755 * sreal.c: Likewise.
756 * ssa-ccp.c: Likewise.
757 * ssa.c: Likewise.
758 * toplev.c: Likewise.
759 * tree-inline.c: Likewise.
760 * value-prof.c: Likewise.
761 * value-prof.h: Likewise.
762
763 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
764
765 * rtl.h (emit_line_note_after): Remove.
766 (emit_note_copy_after, emit_note_copy): New.
767 * emit-rtl.c (reorder_insns_with_line_notes): Replace
768 emit_line_note_after with emit_note_copy_after.
769 (emit_insn_after_with_line_notes): Likewise.
770 (emit_line_note_after): Kill.
771 (emit_note_copy_after): New.
772 (emit_note_copy): New.
773 * function.c (emit_return_into_block): Use emit_note_copy_after.
774 (thread_prologue_and_epilogue_insns): Likewise.
775 * integrate.c (expand_inline_function): Use emit_note_copy.
776 (copy_insn_list): Likewise.
777 * unroll.c (copy_loop_body): Likewise.
778 * cfglayout.c (duplicate_insn_chain): Likewise.
779
780 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
781
782 * c-tree.h (define_label): Replace filename and lineno arguments
783 with a location_t.
784 * c-decl.c (poplevel): Adjust define_label call.
785 (pop_label_level): Likewise.
786 (define_label): Replace filename and lineno arguments with a
787 location_t.
788 (store_parm_decls): Use DECL_SOURCE_LOCATION.
789 * c-parse.in (label): Adjust define_label call.
790
791 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
792
793 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
794 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
795 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
796 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
797 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
798
799 2003-07-01 Andreas Jaeger <aj@suse.de>
800
801 * final.c: Convert prototypes to ISO C90.
802 * flow.c: Likewise.
803 * flags.h: Likewise.
804 * gcov-io.c: Likewise.
805 * gcov-io.h: Likewise.
806
807 2003-06-30 Bruno Haible <bruno@clisp.org>
808
809 PR middle-end/6578
810 * libgcc2.c (__subvsi3): Remove simplification that would not work
811 when subtracting -0x80000000.
812 (__subvdi3): Remove simplification that would return a wrong result.
813 (__mulvsi3): Fix overflow check.
814 (__absvdi2): Fix simplification that would return a wrong result.
815 (__mulvdi3): Fix overflow check.
816
817 2003-06-30 Jeff Law <law@redhat.com>
818
819 * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
820 was always passed in the value '1'. Simplify body appropriately.
821 * tree.h (any_pending_cleanups): Corresponding changes.
822 * calls.c: (expand_call): Corresponding changes.
823
824 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
825
826 * combine.c (distribute_notes): Don't bother REG_WAS_0.
827 * cse.c (cse_insn): Likewise.
828 * final.c (final_scan_insn): Likewise.
829 * jump.c (duplicate_loop_exit_test): Likewise.
830 * rtl.c (reg_note_name): Remove REG_WAS_0.
831 * rtl.h (REG_WAS_0): Remove.
832 * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
833 * config/avr/avr.c (output_movqi): Don't use reg_was_0.
834 (output_movhi): Likewise.
835 (output_movsisf): Likewise.
836 (reg_was_0): Remove.
837 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
838 REG_WAS_0.
839 (m68hc11_gen_movqi): Likewise.
840 * config/vax/vax-protos.h: Remove the prototype for
841 reg_was_0_p.
842 * config/vax/vax.c (follows_p): Remove.
843 (reg_was_0_p): Likewise.
844 * config/vax/vax.md (movsi): Don't use reg_was_0_p.
845 (movhi): Likewise.
846 (movqi): Likewise.
847 * doc/rtl.texi (REG_WAS_0): Remove.
848
849 2003-06-30 Mark Mitchell <mark@codesourcery.com>
850
851 * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
852
853 2003-06-30 Bob Wilson <bob.wilson@acm.org>
854
855 * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
856 top-level include directory.
857 * config/xtensa/lib2funcs.S: Likewise.
858 * config/xtensa/xtensa.h: Likewise.
859 * config/xtensa/xtensa-config.h: Remove.
860 * doc/install.texi: Update location of "xtensa-config.h" header.
861
862 2003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
863
864 * config/s390/s390.c (s390_extra_constraint): New function.
865 * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
866 * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
867 * config/s390/s390.c (q_constraint): Remove.
868 * config/s390/s390-protos.h (q_constraint): Likewise.
869 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
870 (EXTRA_ADDRESS_CONSTRAINT): Define.
871
872 * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
873 (DISP_IN_RANGE, s390_short_displacement): New.
874 (legitimate_reload_operand_p): Support long displacements.
875 (s390_decompose_address): Likewise.
876 (legitimize_pic_address): Likewise.
877 (legitimize_address): Likewise.
878 (s390_fixup_clobbered_return_reg): Likewise.
879 (s390_emit_prologue, s390_emit_epilogue): Likewise.
880 (s390_output_mi_thunk): Likewise.
881
882 * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
883 (attr "atype", attr "length"): Add defaults for new op_types.
884 (all insns): Change op_type attribute where appropriate.
885
886 ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
887 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
888 "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
889 "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
890 "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
891 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
892 "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
893 "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
894 "*movdf_64", "*movdf_31", "*movsf",
895 "*load_multiple_si", "*store_multiple_di",
896 "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
897 "*la_64", "*la_31", "*la_31_and", "force_la_31",
898 "*addsi3_carry1_cc", *addsi3_carry1_cconly",
899 "*addsi3_carry2_cc", *addsi3_carry2_cconly",
900 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
901 "*addsi3_sign", "*addsi3_sub", "addsi3",
902 "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
903 "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
904 "mulsi3"
905 "*andsi3_cc", "*andsi3_cconly", "andsi3",
906 "*andqi3_ss", "*andqi3_ss_inv",
907 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
908 "*iorqi3_ss", "*iorqi3_ss_inv",
909 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
910 "*xorqi3_ss", "*xorqi3_ss_inv",
911 "*tls_load_31"): Add alternatives for long-displacement instructions.
912
913 ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
914 "*load_multiple_di", "*store_multiple_di",
915 "*sethighqidi_64", "*zero_extendhisi2_31",
916 "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
917 "adddf3", "*adddf3", "*adddf3_ibm",
918 "addsf3", "*addsf3", "*addsf3_ibm",
919 "subdf3", "*subdf3", "*subdf3_ibm",
920 "subsf3", "*subsf3", "*subsf3_ibm",
921 "mulsi_6432", "divmoddisi3",
922 "muldf3", "*muldf3", "*muldf3_ibm",
923 "mulsf3", "*mulsf3", "*mulsf3_ibm",
924 "divdf3", "*divdf3", "*divdf3_ibm",
925 "divsf3", "div*sf3", "*divsf3_ibm",
926 "sqrtdf2", "sqrtsf2",
927 "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
928 "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
929 "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
930 and address constraints for instructions that do not accept long
931 displacements.
932
933 2003-06-30 Hartmut Penner <hpenner@de.ibm.com>
934 Ulrich Weigand <uweigand@de.ibm.com>
935
936 * config/s390/2084.md: New file.
937 * config/s390/s390.md: Include it.
938 * config/s390/s390.c (s390_adjust_priority): New function.
939 (TARGET_SCHED_ADJUST_PRIORITY): Define.
940 (s390_first_cycle_multipass_dfa_lookahead): New function.
941 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
942 (s390_sched_reorder2): New function.
943 (TARGET_SCHED_REORDER2): Define.
944 (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
945 (s390_issue_rate): Likewise.
946
947 Mon Jun 30 23:47:33 CEST 2003 Jan Hubicka <jh@suse.cz>
948
949 * Makefile.in (GTFILES): Add cgraph.h.
950 * cgraph.c (known_decls): Remove.
951 (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
952 cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
953 (cgraph_node): Do not allocate known_decls; use polutate hashtable.
954 (cgraph_varpool_node): Likewise; add next pointer.
955 (cgraph_varpool_nodes): New static variable.
956 * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
957 cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
958 cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
959 * gengtype.c (open_base_files): Include cgraph.h
960
961 2003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
962
963 * Changelog: Remove ">>>>>>>" from previous change.
964
965 2003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
966
967 * config/cris/cris.c: Fix spelling for "testcase".
968 * config/cris/cris.h: Likewise.
969 * config/cris/cris.md: Likewise.
970 * config/mmix/crti.asm: Likewise.
971 * config/mmix/mmix.h: Likewise.
972 * config/mmix/mmix.md: Likewise.
973
974 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
975
976 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
977 1.
978
979 2003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
980
981 * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
982 --with-mode configure options.
983 * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
984 (DRIVER_SELF_SPECS): Define.
985 * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
986 architecture to assembler.
987 (LINK_SPEC): Merge 31-bit and 64-bit variants.
988 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
989 * config/s390/s390.c (override_options): New default rules for
990 architecture mode and cpu architecture selection.
991 * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
992 new default rules.
993
994 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
995 * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
996 * config/s390/s390.c (override_options): Add "z990" to
997 processor_alias_table.
998 * doc/invoke.texi (-march): Document "z990" processor type.
999
1000 * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
1001 * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
1002 (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
1003 TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
1004 * config/s390/s390.c (override_options): Replace enum pta_flags by
1005 enum processor_flags. Fill in s390_tune_flags and s390_arch_flags.
1006
1007 * config/s390/s390.c (s390_cpu): Rename to ...
1008 (s390_tune): ... this.
1009 * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
1010 * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
1011 * config/s390/s390.md (attr "cpu"): Likewise.
1012
1013 2003-06-30 Neil Booth <neil@daikokuya.co.uk>
1014
1015 * c-common.c (enum c_language_kind, flag_objc): Remove.
1016 (fix_string_type, check_case_value, c_common_nodes_and_builtins,
1017 c_add_case_label, finish_label_addr_expr, boolean_increment):
1018 Use c_dialect_ macros.
1019 * c-common.h (enum c_language_kind): Extend.
1020 (c_dialect_cxx, c_dialect_objc): New.
1021 (flag_objc): Remove.
1022 (c_common_init_options): Update prototype.
1023 * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
1024 macros.
1025 * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
1026 macros.
1027 * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
1028 * c-lang.c (c_init_options): Remove.
1029 (c_language): Define.
1030 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1031 * c-lex.c (lex_charconst): Use c_dialect_ macros.
1032 * c-opts.c (lang_flags): Make function-local.
1033 (c_common_init_options): Use c_dialect_ macros. Handle
1034 C++ diagnostic requirements.
1035 (c_common_handle_option, c_common_post_options): Use flag_cxx.
1036 * c-parse.in (init_reswords): Use c_dialect_objc ().
1037 * c-pch.c (get_ident): Use c_language.
1038 * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
1039 * c-typeck.c (comptypes, build_c_cast): Similarly.
1040 * objc/objc-lang.c (c_language): Define.
1041 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1042 (objc_init_options): Remove.
1043
1044 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
1045
1046 * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
1047 * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
1048
1049 2003-06-30 Wolfgang Bangerth <bangerth@dealii.org>
1050
1051 * doc/sourcebuild.texi: Don't reference gnats.html any more.
1052
1053 2003-06-30 Kazu Hirata <kazu@cs.umass.edu>
1054
1055 * config/h8300/h8300.c (compute_mov_length): Fix length of
1056 mov:SF on H8/300.
1057
1058 2003-06-30 Nick Clifton <nickc@redhat.com>
1059
1060 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
1061 constant.
1062
1063 Mon Jun 30 15:36:29 CEST 2003 Jan Hubicka <jh@suse.cz>
1064
1065 (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
1066
1067 2003-06-30 Hartmut Penner <hpenner@de.ibm.com>
1068
1069 * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
1070 (altivec_in_gprs_p): New function.
1071
1072 * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
1073 prototype.
1074 (altivec_in_gprs_p): New prototype.
1075
1076 * config/rs6000/altivec.md (*movv4si_internal): Change
1077 multi-assembler alternative to '#'. Add postreload splitter to
1078 handle this cases.
1079 (*movv4hi_internal): Likewise.
1080 (*movv4qi_internal): Likewise.
1081 (*movv4sf_internal): Likewise.
1082
1083 2003-06-30 Jason Merrill <jason@redhat.com>
1084
1085 * defaults.h (PUSH_ARGS_REVERSED): Define default here.
1086 * calls.c: Not here.
1087
1088 2003-06-30 Ben Elliston <bje@wasabisystems.com>
1089
1090 * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
1091 (bad_signed_byte_operand): Likewise.
1092 (arm_output_epilogue): Likewise.
1093 (arm_final_prescan_insn): Likewise.
1094
1095 2003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1096
1097 * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
1098
1099 2003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1100
1101 * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
1102 subsequent writes.
1103
1104 Mon Jun 30 10:03:02 CEST 2003 Jan Hubicka <jh@suse.cz>
1105
1106 * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
1107 in cfglayout mode.
1108
1109 Mon Jun 30 09:52:39 CEST 2003 Jan Hubicka <jh@suse.cz>
1110
1111 * i386.c (standard_80387_constant_p): Accept TFmode constants too.
1112 (init_ext_80387_constants): Likewise.
1113 (standard_80387_constant_rtx): Likewise.
1114 * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
1115 (atantf): Disable for !TARGET_128BIT_LONG_LONG
1116 (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
1117 (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
1118 (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
1119 (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
1120 (frndinttf2): New.
1121 (f2xm1tf2): New.
1122 (exp?f2): Use expsf2_tf when needed.
1123 (exp?f2_tf): New.
1124 (exptf): New.
1125
1126 2003-06-29 Uwe Stieber <uwe@kaos-group.de>
1127
1128 * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
1129 statement from tmake_file set.
1130
1131 2003-06-29 James E Wilson <wilson@tuliptree.org>
1132
1133 * reload.c (find_reloads): Change push_reloads to push_reload in
1134 comment.
1135 * reload1.c (eliminate_regs): Likewise.
1136 (dump_needs): Delete prototype for deleted function.
1137
1138 2003-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1139
1140 * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
1141 format attributes.
1142 * c-format.c (enum format_type): Add gcc_diag_format_type,
1143 gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
1144 (gcc_diag_length_specs, gcc_cdiag_length_specs,
1145 gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
1146 gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
1147 gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
1148 gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
1149 (format_types_orig): Add new data.
1150 (find_char_info_specifier_index, init_dynamic_diag_info): New
1151 functions.
1152 (handle_format_attribute): Update to handle new format attributes.
1153
1154 2003-06-29 Aaron W. LaFramboise <awlaframboise@aol.com>
1155
1156 * config/i386/gthr-win32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
1157
1158 2003-06-29 Dara Hazeghi <dhazeghi@yahoo.com>
1159
1160 * doc/install.texi: Remove install documentation for obsoleted targets
1161 i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
1162 arm-*-aof.
1163 Update information about IA64 toolchain, AIX make requirements,
1164 and binutils for m68k-*-hpux and *-*-linuxaout targets.
1165
1166 Mon Jun 30 00:50:43 CEST 2003 Jan Hubicka <jh@suse.cz>
1167
1168 * regmove.c (regmove_optimize): Don't try to make src and dst match
1169 when they are in different modes.
1170
1171 Sun Jun 29 23:06:32 CEST 2003 Jan Hubicka <jh@suse.cz>
1172
1173 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
1174 busy work when builtin is not supported by the backend.
1175
1176 2003-06-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1177
1178 * loop.c (count_one_set): Fix detection of registers set in more
1179 than one basic block.
1180
1181 2003-06-29 Andreas Jaeger <aj@suse.de>
1182
1183 * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
1184 * system.h: Poison OBJ_FORMAT_ROSE.
1185 * doc/tm.texi (Macros for Initialization): Remove documentatin of
1186 OBJECT_FORMAT_ROSE.
1187 * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
1188 * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
1189
1190 2003-06-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1191
1192 * pa.c (update_total_code_bytes): New function.
1193 (last_address): Number of bytes output for a function and its
1194 associated thunks.
1195 (compute_frame_size): Use BITS_PER_UNIT.
1196 (pa_output_function_epilogue): Compute last_address. Use
1197 update_total_code_bytes.
1198 (output_lbranch): Handle long branch on portable runtime.
1199 (attr_length_millicode_call, attr_length_call,
1200 attr_length_indirect_call): Only use total_code_bytes for calls in
1201 the text section.
1202 (output_call): Only use an indirect call sequence when the target is
1203 not local.
1204 (pa_asm_output_mi_thunk): Handle updating of total_code_bytes. Improve
1205 test to determine when an IA-relative branch can be used. Add various
1206 long branch sequences. Avoid using an indirect branch on all ports
1207 except SOM.
1208
1209 2003-06-29 Ulrich Weigand <uweigand@de.ibm.com>
1210
1211 * expr.c (clear_by_pieces): Fix prototype.
1212
1213 2003-06-29 Andreas Jaeger <aj@suse.de>
1214
1215 * cse.c: Convert prototypes to ISO C90.
1216 * cselib.c: Likewise.
1217 * cselib.h: Likewise.
1218 * dbxout.c: Likewise.
1219 * debug.c: Likewise.
1220 * df.c: Likewise.
1221 * df.h: Likewise.
1222 * dojump.c: Likewise.
1223 * doloop.c: Likewise.
1224 * dominance.c: Likewise.
1225 * dwarf2asm.c: Likewise.
1226 * dwarf2out.c: Likewise.
1227 * dwarf2out.h: Likewise.
1228 * dwarfout.c: Likewise.
1229 * except.c: Likewise.
1230 * except.h: Likewise.
1231 * emit-rtl.c: Likewise.
1232 * et-forest.c: Likewise.
1233 * et-forest.h: Likewise.
1234 * except.c: Likewise.
1235 * explow.c: Likewise.
1236 * expmed.c: Likewise.
1237 * expr.c: Likewise.
1238 * expr.h: Likewise.
1239
1240 2003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1241
1242 * alloc-pool.c: Fix comment formatting.
1243 * bitmap.c: Likewise.
1244 * bitmap.h: Likewise.
1245 * bt-load.c: Likewise.
1246 * builtins.c: Likewise.
1247 * caller-save.c: Likewise.
1248 * cfganal.c: Likewise.
1249 * cfgrtl.c: Likewise.
1250 * collect2.c: Likewise.
1251 * cse.c: Likewise.
1252 * df.c: Likewise.
1253 * diagnostic.c: Likewise.
1254 * dwarf2out.c: Likewise.
1255 * dwarfout.c: Likewise.
1256 * expmed.c: Likewise.
1257 * final.c: Likewise.
1258 * flags.h: Likewise.
1259 * fold-const.c: Likewise.
1260 * gcc.c: Likewise.
1261 * gcov-io.h: Likewise.
1262 * gcov.c: Likewise.
1263 * genattrtab.c: Likewise.
1264 * genautomata.c: Likewise.
1265 * libgcov.c: Likewise.
1266 * mips-tfile.c: Likewise.
1267 * optabs.c: Likewise.
1268 * prefix.c: Likewise.
1269 * rtlanal.c: Likewise.
1270 * stmt.c: Likewise.
1271 * stor-layout.c: Likewise.
1272 * toplev.c: Likewise.
1273 * varasm.c: Likewise.
1274 * vmsdbgout.c: Likewise.
1275
1276 2003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1277
1278 * expr.c (emit_single_push_insn): If padding is needed
1279 downward, adjust the stack pointer first, and then store the
1280 data into the stack location using an offset.
1281
1282 2003-06-29 Andreas Jaeger <aj@suse.de>
1283
1284 * collect2.h: Convert prototypes to ISO C90.
1285 * collect2.c: Likewise.
1286 * conflict.c: Likewise.
1287 * coverage.c: Likewise.
1288 * convert.h: Likewise.
1289 * convert.c: Likewise.
1290
1291 2003-06-29 Nathan Sidwell <nathan@codesourcery.com>
1292
1293 * c-decl.c (c_init_decl_processing): Use a location_t. Set input
1294 filename to <internal>.
1295 * tree.c (make_node): Just copy the current location.
1296
1297 2003-06-29 Eric Botcazou <ebotcazou@libertysurf.fr>
1298
1299 PR optimization/11210
1300 * fold-const (decode_field_reference): Revert 2003-06-26 patch.
1301
1302 2003-06-29 Neil Booth <neil@daikokuya.co.uk>
1303
1304 * toplev.c (flag_dummy): Remove.
1305 (f_options): Restore flag pointers.
1306
1307 2003-06-29 David Edelsohn <edelsohn@gnu.org>
1308
1309 * config/rs6000/rs6000.c (processor_target_table): Add 970.
1310 * config.gcc: Add 970.
1311
1312 2003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1313
1314 * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
1315 -1) with ggc_strdup.
1316 * stmt.c (expand_asm_operands): Likewise.
1317 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
1318
1319 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1320
1321 * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
1322 definition.
1323
1324 2003-06-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1325
1326 * opts.c: Include insn-attr.h.
1327 * Makefile.in (opts.o): Depend on INSN_ATTR_H.
1328
1329 2003-06-27 J"orn Rennecke <joern.rennecke@superh.com>
1330
1331 * flow.c (propagate_one_insn): Use proper test for a register
1332 being part of the return value.
1333
1334 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1335
1336 * config/avr/avr.c: Fix a comment typo.
1337
1338 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1339
1340 * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
1341 with avr_simplify_comparison_p.
1342 * config/avr/avr.c: Likewise.
1343
1344 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1345
1346 * builtins.c: Follow spelling conventions.
1347 * cgraph.c: Likewise.
1348 * cpplex.c: Likewise.
1349 * config/arm/arm.c: Likewise.
1350 * config/arm/iwmmxt.md: Likewise.
1351 * config/c4x/c4x-modes.def: Likewise.
1352 * config/c4x/c4x.c: Likewise.
1353 * config/c4x/c4x.h: Likewise.
1354 * config/c4x/c4x.md: Likewise.
1355 * config/i386/i386-interix.h: Likewise.
1356 * config/mips/mips.h: Likewise.
1357
1358 2003-06-28 Neil Booth <neil@daikokuya.co.uk>
1359
1360 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
1361 __mc68020__ on TARGET_68020.
1362
1363 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1364
1365 * config/h8300/h8300.c: Fix a comment typo.
1366
1367 2003-06-28 Nathan Sidwell <nathan@codesourcery.com>
1368
1369 * c-parse.in (yylexstring): Use a location_t.
1370
1371 * diagnostic.h (diagnostic_set_info): Replace file and lineno
1372 parameters with a location_t.
1373 * diagnostic.c (diagnostic_set_info): Replace file and lineno
1374 parameters with a location_t.
1375 (inform, warning, pedwarn, error, sorry, fatal_error,
1376 internal_error, warning_with_decl, pedwarn_with_decl,
1377 error_with_decl): Adjust.
1378 * c-error.c (pedwarn_c99): Adjust.
1379 * c-format.c (status_warning): Adjust.
1380 * rtl-error.c (file_and_line_for_asm): Rename to ...
1381 (location_for_asm): Return a location_t.
1382 (diagnostic_for_asm): Adjust.
1383
1384 2003-06-28 Neil Booth <neil@daikokuya.co.uk>
1385
1386 * cpptrad.c (skip_macro_block_comment): New.
1387 (copy_comment): Use it if appropriate.
1388
1389 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1390
1391 * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
1392 definition.
1393 (store_killed_in_insn): Likewise.
1394 * print-rtl.c (print_rtx): Likewise.
1395 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1396 * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
1397 (m68hc11_reassign_regs): Likewise.
1398 (m68hc11_reorg): Likewise.
1399
1400 2003-06-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
1401
1402 * diagnostic.c (output_integer_with_precision): New macro.
1403 (output_format): Use it. Handle more format specifiers.
1404 (output_long_decimal): Remove.
1405 (output_unsigned_decimal): Likewise.
1406 (output_long_unsigned_decimal): Likewise.
1407 (output_octal): Likewise.
1408 (output_long_octal): Likewise.
1409 (output_hexadecimal): Likewise.
1410 (output_long_hexadecimal): Likewise.
1411 (output_long_long_decimal): Likewise.
1412
1413 2003-06-28 Andreas Schwab <schwab@suse.de>
1414
1415 * config/ia64/ia64.md: Follow recent emit_note API change.
1416
1417 2003-06-28 Nathan Sidwell <nathan@codesourcery.com>
1418
1419 * c-parse.in (%union): Replace filename & lineno with location.
1420 (save_filename, save_lineno): Remove.
1421 (save_location): New.
1422 (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
1423 nested_function, notype_nested_function, if_prefix, lineno_stmt,
1424 lineno_label, label): Adjust.
1425
1426 2003-06-28 Jakub Jelinek <jakub@redhat.com>
1427
1428 * builtins.c (c_strlen): Add only_value argument.
1429 Handle COND_EXPR and COMPOUND_EXPR.
1430 (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
1431 Adjust c_strlen callers.
1432 (expand_builtin_strcpy, expand_builtin_strncpy,
1433 expand_builtin_strcmp, expand_builtin_strncmp,
1434 expand_builtin_fputs, expand_builtin_sprintf,
1435 fold_builtin): Adjust c_strlen callers.
1436
1437 2003-06-28 Josef Zlomek <zlomekj@suse.cz>
1438
1439 * bb-reorder.c (find_traces_1_round): Do not send basic block
1440 to next round when we are in the last round.
1441
1442 2003-06-28 Neil Booth <neil@daikokuya.co.uk>
1443
1444 * Makefile.in: Update.
1445 * opts.c: Include tm_p.h.
1446 (handle_options): Make static.
1447 (decode_options): Copied from toplev.c.
1448 * opts.h (decode_options): New.
1449 * toplev.c (parse_options_and_default_flags): Move most to opts.c,
1450 some to...
1451 (general_init): ...here.
1452 (toplev_main): Use decode_options instead.
1453 * toplev.h (save_argc, save_argv): New.
1454
1455 2003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1456
1457 * explow.c (find_next_ref): Remove.
1458 * rtl.h: Remove the prototype for find_next_ref.
1459
1460 2003-06-27 Roger Sayle <roger@eyesopen.com>
1461
1462 * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
1463 call to match recent API change.
1464
1465 2003-06-27 Zack Weinberg <zack@codesourcery.com>
1466
1467 * dbxout.c (flag_debug_only_used_symbols): Delete redundant
1468 declaration.
1469
1470 * c-format.c (check_format_string, get_constant)
1471 * cfgrtl.c (rtl_split_edge):
1472 Mark the definition static, matching the forward declaration.
1473
1474 2003-06-27 Gunther Nikl <gni@gecko.de>
1475
1476 * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
1477
1478 PR target/11014
1479 * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
1480 syntax for MIT / MOTOROLA.
1481
1482 PR other/10240
1483 * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
1484 * configure: Rebuilt.
1485
1486 2003-06-27 Chris Demetriou <cgd@broadcom.com>
1487
1488 * config/mips/mips.c (mips_build_va_list): Make padding in
1489 va_list structure explicit to avoid -Wpadded warnings.
1490
1491 2003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1492
1493 * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
1494 * config/s390/s390.c (s390_secondary_output_reload_class): New function.
1495 * config/s390/s390-protos.h (s390_secondary_output_reload_class):
1496 Declare it.
1497 * config/s390/s390.md ("reload_outti", "reload_outdi",
1498 "reload_outdf"): New expanders.
1499
1500 * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
1501 memory operands as source.
1502 ("movdi" + splitters): Likewise.
1503 ("movdf" + splitters): Likewise.
1504 * config/s390/s390.c (s390_split_ok_p): New function.
1505 * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
1506
1507 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1508
1509 * combine.c (force_to_mode): Replace the equality comparison
1510 of INTVALs with a pointer equality comparison.
1511 (simplify_comparison): Likewise.
1512
1513 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1514
1515 * jump.c (rtx_renumbered_equal_p): Replace an expression that
1516 is known to be 0 with 0.
1517
1518 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1519
1520 * gcse.c (expr_equiv_p): Replace expressions that are known to
1521 be 0 with 0.
1522
1523 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1524
1525 * cse.c (fold_rtx): Replace the equality comparison of INTVALs
1526 with a pointer equality comparison.
1527
1528 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1529
1530 * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
1531 are known to be not equivalent.
1532
1533 2003-06-27 Richard Henderson <rth@redhat.com>
1534
1535 * config/alpha/alpha.c (function_arg): Don't pass small aggregates
1536 in floating point registers. Validate that we don't receive complex
1537 values here. Use #elif.
1538 (return_in_memory, function_value): New.
1539 (alpha_va_arg): Handle complex values as two arguments.
1540 * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
1541 (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
1542 (SPLIT_COMPLEX_ARGS): New.
1543 * config/alpha/alpha-protos.h: Update.
1544
1545 2003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1546
1547 * ggc-page.c (inverse_table): Change type of mult to size_t.
1548 (compute_inverse): Compute inverse using size_t, not unsigned int.
1549 Compute inverse also for sizes larger than half a machine page.
1550
1551 Fri Jun 27 18:36:12 CEST 2003 Jan Hubicka <jh@suse.cz>
1552
1553 * toplev.c (rest_of_decl_compilation): Only varpoolize argument
1554 when called before cgraph_optimize.
1555
1556 2003-06-27 Zack Weinberg <zack@codesourcery.com>
1557
1558 * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
1559 * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
1560 be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
1561
1562 Fri Jun 27 17:41:16 CEST 2003 Jan Hubicka <jh@suse.cz>
1563
1564 * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
1565 of known_decls.
1566
1567 2003-06-27 Hans-Peter Nilsson <hp@axis.com>
1568
1569 * defaults.h (REGISTER_MOVE_COST): Define default here.
1570 * regclass.c: Don't define default REGISTER_MOVE_COST here.
1571 * reload.c, reload1.c: Ditto.
1572
1573 2003-06-27 Richard Earnshaw <rearnsha@arm.com>
1574
1575 * flags.h: Really install previous change.
1576
1577 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1578
1579 * rtl.h (emit_note): Remove FILE parameter.
1580 * emit-rtl.c (emit_line_note): Adjust emit_note call.
1581 (emit_note): Remove FILE parameter. Adjust.
1582 * builtins.c (expand_builtin_expect): Adjust emit_note call.
1583 * c-semantics.c (genrtl_scope_stmt): Likewise.
1584 (expand_stmt): Likewise.
1585 * cfglayout.c (reemit_insn_block_notes): Likewise.
1586 (duplicate_insn_chain): Likewise.
1587 * except.c (expand_eh_region_start, expand_eh_region_end,
1588 sjlj_emit_function_enter): Likewise.
1589 * explow.c (probe_stack_range): Likewise.
1590 * expr.c (emit_block_move_via_loop): Likewise.
1591 * function.c (init_function_start, expand_function_start,
1592 expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
1593 * integrate.c (expand_inline_function, copy_insn_list): Likewise.
1594 * reg-stack.c (compensate_edge): Likewise.
1595 * reload1.c (reload): Likewise.
1596 * rtlanal.c (hoist_insn_to_edge): Likewise.
1597 * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
1598 expand_loop_continue_here, expand_end_loop, expand_continue_loop,
1599 expand_exit_loop_top_cond, expand_value_return,
1600 expand_start_bindings_and_block, expand_end_bindings,
1601 expand_decl_cleanup, expand_start_case): Likewise.
1602 * unroll.c (copy_loop_body
1603 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
1604 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1605 * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
1606 rs6000_emit_allocate_stack, rs6000_output_function_prologue,
1607 rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
1608 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1609 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1610
1611 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1612
1613 * c-tree.h (grokfield): Remove unused filename and line parameters.
1614 * c-decl.c (grokfield): Remove unused filename and line parameters.
1615 * c-parse.in (component_decl): Adjust field grokking rules, adjust
1616 grokfield calls.
1617 (component_declarator): Likewise.
1618 (component_notype_declarator): Likewise.
1619 * objc/objc-act.c (build_module_descriptor): Adjust grokfield
1620 calls.
1621 (build_protocol_template, build_method_prototype_list_template,
1622 build_method_prototype_template, build_category_template,
1623 build_selector_template, build_class_template,
1624 build_super_template, build_ivar_template,
1625 build_ivar_list_template, build_method_list_template,
1626 build_method_template, add_instance_variable): Likewise.
1627
1628 2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1629
1630 * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
1631 OP2 are known to be not equivalent.
1632
1633 2003-06-26 Devang Patel <dpatel@apple.com>
1634
1635 * final.c (debug_flush_symbol_queue): New function.
1636 (debug_queue_symbol): New function.
1637 (debug_free_queue): New function.
1638 (debug_nesting): New variable.
1639 (symbol_queue): New variable.
1640 (symbol_queue_index): Same.
1641 (symbol_queue_size): Same.
1642 * debug.h (debug_flush_symbol_queue): New.
1643 (debug_queue_symbol): New.
1644 (debug_free_queue): New.
1645 (debug_nesting): New.
1646 (symbol_queue_index): New.
1647 * dbxout.c (DBXOUT_DECR_NESTING): New macro.
1648 (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
1649 (dbxout_init): Delay symbol output.
1650 (dbxout_global_decl): Save, set and reset TREE_USED bit around
1651 dbxout_symbol() call.
1652 (dbxout_begin_function): Same.
1653 (dbxout_finish): Free symbol queue.
1654 (dbxout_type): Put appropriate symbols in queue.
1655 (dbxout_symbol): Put info for symbol's type in queue.
1656 Decrement/Increment nesting counts flush symbol queue appropriately.
1657 (dbxout_parms): Increment dbxout nesting.
1658 (dbxout_reg_parms): Same.
1659 * flags.h (flag_debug_only_used_symbols): New.
1660 * toplev.c (flag_debug_only_used_symbols): New variable.
1661 (lang_independent_options): Add entries for new option
1662 -feliminate-unused-debug-symbols.
1663 * common.opt: Add entry for -feliminate-unused-debug-symbols.
1664 * opts.c (common_handle_options): Same.
1665 * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
1666 -feliminate-unused-debug-symbols.
1667 * doc/invoke.texi (Debugging Options): Document
1668 -feliminate-unused-debug-symbols.
1669
1670 2003-06-26 Roger Sayle <roger@eyesopen.com>
1671 Jakub Jelinek <jakub@redhat.com>
1672
1673 * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
1674 obtain the format string instead of using TREE_STRING_POINTER and
1675 TREE_STRING_LENGTH. Only optimize sprintf(dst,"%s",src) when the
1676 return value is unused or the length of src is a known constant.
1677
1678 2003-06-26 Richard Henderson <rth@redhat.com>
1679
1680 * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
1681
1682 2003-06-26 Richard Henderson <rth@redhat.com>
1683
1684 * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
1685 (ia64_split_call): Only load descriptor for GP register inputs.
1686 (ia64_expand_epilogue): Check current_frame_info.mask not
1687 current_function_is_leaf to restore ar.pfs.
1688
1689 2003-06-26 Richard Henderson <rth@redhat.com>
1690
1691 * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
1692 instead of replacing it.
1693
1694 2003-06-26 Richard Henderson <rth@redhat.com>
1695
1696 * flow.c (propagate_one_insn): Kill function return value
1697 registers across tail calls.
1698
1699 * flow.c (propagate_one_insn): Preserve live-at-end registers
1700 across tail calls.
1701
1702 2003-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1703
1704 * reload.c (can_reload_into): New function.
1705 (push_reload): Use it.
1706
1707 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1708
1709 * config/h8300/h8300.c (compute_a_rotate_length): Fix the
1710 references to the amount of a rotation.
1711
1712 2003-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
1713
1714 * config/sh/coff.h: Don't include dbxcoff.h.
1715 * config.gcc: List it here.
1716
1717 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1718
1719 * postreload.c (reload_cse_simplify_set): Call cselib_lookup
1720 earlier. Don't check if SRC is a constant.
1721
1722 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1723
1724 * Makefile.in (OBJS): Add postreload.o.
1725 Remove cselib.h from the dependency list for reload1.o.
1726 Add a dependency list for postreload.o.
1727 * reload.h: Change the comment for the prototype of
1728 reload_cse_regs.
1729 * reload1.c: Don't include cselib.h.
1730 (reload_cse_regs): Move to postreload.c
1731 (reload_cse_regs_1): Likewise.
1732 (reload_cse_noop_set_p): Likewise.
1733 (reload_cse_simplify_set): Likewise.
1734 (reload_cse_simplify_operands): Likewise.
1735 (RELOAD_COMBINE_MAX_USES): Likewise.
1736 (reload_combine_ruid): Likewise.
1737 (LABEL_LIVE): Likewise.
1738 (reload_combine): Likewise.
1739 (reload_combine_note_use): Likewise.
1740 (reload_combine_note_store): Likewise.
1741 (reg_set_luid): Likewise.
1742 (reg_offset): Likewise.
1743 (reg_base_reg): Likewise.
1744 (reg_mode): Likewise.
1745 (move2add_luid): Likewise.
1746 (move2add_last_label_luid): Likewise.
1747 (MODES_OK_FOR_MOVE2ADD): Likewise.
1748 (reload_cse_move2add): Likewise.
1749 (move2add_note_store): Likewise.
1750 (reload_cse_simplify): Likewise.
1751 * postreload.c: New.
1752
1753 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1754
1755 * config/avr/avr.c (final_prescan_insn): Remove support for
1756 -mrtl.
1757 * config/avr/avr.h (MASK_RTL_DUMP): Remove.
1758 (TARGET_RTL_DUMP): Likewise.
1759 (TARGET_SWITCHES): Remove -mrtl.
1760
1761 2003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1762
1763 * config/h8300/h8300-protos.h: Change emit_a_rotate to
1764 output_a_rotate. Add a prototype for compute_a_rotate_length.
1765 * config/h8300/h8300.c (emit_a_rotate): Change to
1766 output_a_rotate.
1767 (compute_a_rotate_length): New.
1768 (h8300_adjust_insn_length): Remove.
1769 * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
1770 * config/h8300/h8300.md (adjust_length): Remove.
1771 (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
1772 (*rotlhi3_1): Likewise.
1773 (*rotlsi3_1): Likewise.
1774
1775 2003-06-26 Roger Sayle <roger@eyesopen.com>
1776 Richard Henderson <rth@redhat.com>
1777
1778 * builtins.c (expand_builtin_mathfn): Always stabilize the argument
1779 list against re-evaluation. If expand_unop fails, call expand_call
1780 with the stabilized argument list rather than return NULL_RTX.
1781 (expand_builtin_mathfn2): Likewise, always stabilize the argument
1782 list, and call expand_call ourselves if expand_binop fails.
1783
1784 2003-06-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1785
1786 PR optimization/11210
1787 * fold-const (decode_field_reference): Strip only NOPs that
1788 don't affect the sign.
1789
1790 2003-06-26 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1791
1792 * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
1793 (pop_fpscr, fpu_switch): Likewise.
1794
1795 2003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1796
1797 * value-prof.c: New.
1798 * value-prof.h: New.
1799 * Makefile.in (value-prof.o): New.
1800 (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
1801 (profile.o): Add value-prof.h and tree.h dependency.
1802 * flags.h (flag_profile_values): Declare.
1803 * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
1804 Add new counters.
1805 (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
1806 GCOV_COUNTER_V_DELTA): New counter sections.
1807 (__gcov_merge_single, __gcov_merge_delta): Declare.
1808 * flow.c (mark_used_regs): Set subregs_of_mode only when the
1809 structure is initialized.
1810 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
1811 * profile.c: Include value-prof.h and tree.h.
1812 (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
1813 gen_const_delta_profiler, instrument_values): New static functions.
1814 (get_exec_counts): Fix comment.
1815 (branch_prob): Invoke instrument_values.
1816 * toplev.c (flag_profile_values): New flag.
1817 * doc/invoke.texi (-fprofile-values): Document.
1818
1819 2003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1820
1821 * Makefile.in (cfgrtl.o): Add expr.h dependency.
1822 * cfgrtl.c: Include expr.h.
1823 (mark_killed_regs, safe_insert_insn_on_edge): New
1824 functions.
1825 * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
1826 * basic-block.h (safe_insert_insn_on_edge): Declare.
1827
1828 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
1829
1830 * c-opts.c (missing_arg): Make non-static.
1831 (c_common_handle_option): Don't check for missing arguments.
1832 * opts.c (handle_option): Check for missing arguments.
1833
1834 2003-06-26 David Edelsohn <edelsohn@gnu.org>
1835
1836 * config/rs6000/power4.md (power4-veccomplex): Correct latency.
1837
1838 2003-06-25 Loren James Rittle <ljrittle@acm.org>
1839
1840 * configure.in (ld_vers): Portability [sed].
1841 * configure: Regenerate with autoconf213.
1842
1843 2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
1844
1845 * doc/extend.texi: Document new builtin functions for Intel
1846 Prescott New Intrunctions.
1847
1848 * doc/invoke.texi: Document new command-line options, -mpni and
1849 -mno-pni, for Intel Prescott New Intrunctions.
1850
1851 * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
1852
1853 * config/i386/i386.c (override_options): Turn on MASK_SSE2
1854 for -mpni. Turn on MASK_SSE for -msse2.
1855 (bdesc_2arg): Add PNI builtins with 2 args.
1856 (bdesc_1arg): Add PNI builtins with 1 arg.
1857 (ix86_init_mmx_sse_builtins): Handle PNI builtins.
1858 (ix86_expand_builtin): Likewise.
1859
1860 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
1861 MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
1862 MASK_TLS_DIRECT_SEG_REFS): Renumbered.
1863 (TARGET_PNI): New.
1864 (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
1865 -mpni and -mno-pni.
1866 (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
1867 (ix86_builtins): Add PNI builtins.
1868 (config/i386/i386.md): Add PNI patterns.
1869
1870 * config/i386/pmmintrin.h: New file.
1871
1872 2003-06-25 Kazu Hirata <kazu@cs.umass.edu>
1873
1874 * config/h8300/h8300.md (call): Fix the insn lengths.
1875 (call_value): Likewise.
1876
1877 Thu Jun 26 00:13:35 CEST 2003 Jan Hubicka <jh@suse.cz>
1878
1879 * c-common.c (handle_used_attribute): Use mark_referenced.
1880 * varasm.c (mark_referenced): Break out from ...
1881 (assemble_name): ... here.
1882 * tree.h (mark_referenced): Declare.
1883
1884 2003-06-25 Wolfgang Bangerth <bangerth@dealii.org>
1885
1886 * gccbug.in: Add PCH to list of categories.
1887
1888 2003-06-25 Martin Schaffner <schaffner@gmx.li>
1889
1890 * cppfiles.c: Clarify comments.
1891 * cpphash.h: Likewise.
1892 * cpplib.h: Likewise.
1893 * cppmacro.c: Likewise.
1894 * mkdeps.h: Likewise.
1895
1896 2003-06-25 Neil Booth <neil@daikokuya.co.uk>
1897
1898 * c-opts.c (complain_wrong_lang, write_langs): Remove.
1899 (c_common_handle_option): Complaints about wrong language are
1900 handled in opts.c now.
1901 * opts.c (complain_wrong_lang, write_langs, handle_options): New.
1902 (find_opt): Fix thinko.
1903 (handle_option): Update prototype. Complain about switches for
1904 a different front end.
1905 * opts.h (lang_names, handle_options): New.
1906 (handle_option): Remove.
1907 * opts.sh: Write out language names array.
1908 * toplev.c (parse_options_and_default_flags): Use handle_options.
1909
1910 2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
1911
1912 * config/i386/i386.c (MASK_SSE1): Removed.
1913 (MASK_SSE164): Removed.
1914 (MASK_SSE264): Removed.
1915 (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
1916 MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
1917 with MASK_SSE2 | MASK_64BIT.
1918 (bdesc_1arg): Likewise.
1919 (ix86_init_mmx_sse_builtins): Likewise.
1920
1921 * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
1922 (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
1923 -msse2.
1924
1925 2003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1926
1927 * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
1928 (HOST_WIDE_INT_PRINT_DEC_SPACE,
1929 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
1930 HOST_WIDEST_INT_PRINT_DEC_SPACE,
1931 HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
1932 (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
1933 HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
1934 terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
1935
1936 * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
1937 * ra-debug.c (dump_static_insn_cost): Likewise.
1938
1939 2003-06-26 Nick Clifton <nickc@redhat.com>
1940
1941 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1942 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
1943 Replace occurances of '???' with 'XXX' incase they are
1944 mistaken for trigraphs.
1945 (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
1946 does not have a register for the first operand.
1947
1948 2003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1949
1950 * config/sh/sh.c (sh_register_move_cost):
1951 Add case for moving between MAC_REGS.
1952
1953 2003-06-25 Zack Weinberg <zack@codesourcery.com>
1954
1955 PR 10178
1956 * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
1957 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
1958 * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
1959 to true.
1960 * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
1961 return 0.
1962
1963 2003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1964
1965 * Makefile.in (bt-load.o): Depend on $(TM_P_H).
1966 * bt-load.c: Include "tm_p.h".
1967
1968 2003-06-25 Kazu Hirata <kazu@cs.umass.edu>
1969
1970 * config/h8300/h8300.c (compute_mov_length): Adjust for the
1971 new optimization.
1972 * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
1973 an SImode constant whose upper and lower are the same.
1974
1975 Wed Jun 25 11:31:59 CEST 2003 Jan Hubicka <jh@suse.cz>
1976
1977 * varasm.c (assemble_name): Mark needed variables even when
1978 global info is ready.
1979
1980 2003-06-24 Jerry Quinn <jlquinn@optonline.net>
1981
1982 PR other/11280
1983 * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
1984 -freorder-functions description.
1985
1986 2003-06-25 Josef Zlomek <zlomekj@suse.cz>
1987
1988 * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
1989
1990 2003-06-25 Neil Booth <neil@daikokuya.co.uk>
1991
1992 * opts.c (common_handle_option): Add missing break;s.
1993
1994 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
1995
1996 * config/h8300/h8300-protos.h: Add a prototype for
1997 compute_mov_length.
1998 * config/h8300/h8300.c (compute_mov_length): New.
1999 * config/h8300/h8300.md (*movqi_h8300): Use it.
2000 (*movqi_h8300hs): Likewise.
2001 (movstrictqi): Likewise.
2002 (*movhi_h8300): Likewise.
2003 (*movhi_h8300hs): Likewise.
2004 (movstricthi): Likewise.
2005 (*movsi_h8300): Likewise.
2006 (*movsf_h8300): Likewise.
2007 (*movsi_h8300hs): Likewise.
2008 (*movsf_h8300hs): Likewise.
2009
2010 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
2011
2012 * jump.c (next_nondeleted_insn): Remove.
2013 * rtl.h: Remove the prototype for next_nondeleted_insn.
2014
2015 2003-06-24 Roger Sayle <roger@eyesopen.com>
2016
2017 PR optimization/11311
2018 * builtins.c (powi_cost): Fix typo. The number of multiplications
2019 required is the number to reduce the argument, result, plus the
2020 cost of calculating the residual, val [not n, the original value].
2021
2022 2003-06-24 Roger Sayle <roger@eyesopen.com>
2023
2024 * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
2025
2026 2003-06-24 Richard Henderson <rth@redhat.com>
2027 (blame to: Loren James Rittle <ljrittle@acm.org>)
2028
2029 * real.h (ieee_extended_intel_96_round_53_format): New.
2030 * real.c (ieee_extended_intel_96_round_53_format): New.
2031 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
2032 for XFmode and TFmode.
2033
2034 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
2035
2036 * config/h8300/h8300.md (4 anonymous patterns): Give internal
2037 names.
2038 (movsi_h8300): Change the name to *movsi_h8300.
2039 (movsi_h8300hs): Change the name to *movsi_h8300hs.
2040 (movsf_h8300): Change the name to *movsf_h8300.
2041 (movsf_h8300hs): Change the name to *movsf_h8300hs.
2042
2043 2003-06-24 Jakub Jelinek <jakub@redhat.com>
2044
2045 * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
2046 src twice.
2047
2048 2003-06-24 J"orn Rennecke <joern.rennecke@superh.com>
2049
2050 Back out these patches:
2051 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
2052 * sh.h (OLD_ARG_MODE): New macro.
2053 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
2054 (FUNCTION_ARG_1): Break out of:
2055 (FUNCTION_ARG). Use OLD_ARG_MODE.
2056 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2057 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
2058 of the generated register.
2059
2060 * sh.h (FUNCTION_ARG_SCmode_WART): Define.
2061 (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
2062 an even number of floating point regs are in use, use the same
2063 sequence of argument passing registers for SCmode as would be
2064 used for two SFmode values.
2065 * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
2066 swap real / imaginary parts in incoming SCmode values passed
2067 in registers.
2068
2069 2003-06-24 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2070
2071 PR target/11260
2072 * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
2073
2074 Tue Jun 24 18:49:33 CEST 2003 Jan Hubicka <jh@suse.cz>
2075
2076 * Makefile.in (cgraph.o): Depend on output.h, not depend on
2077 tree-inline.h
2078 * cgraph.c: Do not include tree-inline.h; include output.h
2079 (known_fns): Rename to ...
2080 (known_decls): ... this one; update all uses.
2081 (cgraph_varpool_hash): New static variable.
2082 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
2083 variables.
2084 (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
2085 cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
2086 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
2087 New functions.
2088 * cgraph.h (cgraph_varpool_node): New structure.
2089 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
2090 (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
2091 cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
2092 cgraph_varpool_asemble_pending_decls): Declare.
2093 * cgraphunit.c (record_call_1): Notice variable references.
2094 (cgraph_finalize_compilation_unit): Assemble pending variables.
2095 * toplev.c (wrapup_global_declarations): Use varpool.
2096 (compile_file): Assemble pending declarations.
2097 (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
2098 * varasm.c (assemble_name): Notice varpool references.
2099
2100 Tue Jun 24 13:52:11 CEST 2003 Jan Hubicka <jh@suse.cz>
2101
2102 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
2103 * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
2104 * varasm.c (assemble_variable): Call prepare_assemble_variable.
2105
2106 2003-06-23 Roger Sayle <roger@eyesopen.com>
2107
2108 * builtins.c (expand_builtin): Use expand_builtin_pow to expand
2109 calls for pow, powf, powl and their __builtin_ variants.
2110 (expand_builtin_pow): If the second argument is a constant
2111 integer and compiling with -ffast-math, use expand_powi to
2112 generate RTL if powi_cost is less than POWI_MAX_MULTS.
2113 (powi_cost): New function to return the number of multiplications
2114 necessary to evaluate an Nth power, for integer constant N.
2115 (expand_powi): New function to expand the RTL for evaluating
2116 the Nth power of a floating point value, for integer constant N.
2117
2118 * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
2119
2120 Mon Jun 23 23:07:35 CEST 2003 Jan Hubicka <jh@suse.cz>
2121
2122 * cgraph.c (cgraph_nodes_queue): Declare.
2123 (eq_node): Take identifier as p2.
2124 (cgraph_node): Update htab_find_slot_with_hash call.
2125 (cgraph_node_for_identifier): New.
2126 (cgraph_mark_needed_node): Move here from cgraphunit.c.
2127 * cgraph.h (cgraph_nodes_queue): Declare.
2128 (cgraph_node_for_identifier): Declare.
2129 * cgraphunit.c (cgraph_finalize_function): Collect entry points here
2130 instead of in cgraph_finalize_compilation_unit; constructors and
2131 destructors are entry points.
2132 (cgraph_finalize_compilation_unit): Reorganize debug outout;
2133 examine nested functions after lowerng; call collect_functions hook.
2134 (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
2135 (cgraph_finalize_compilation_unit): Do not collect entry points.
2136 * varasm.c: Include cgraph.h
2137 (assemble_name): Mark referenced identifier as needed.
2138
2139 * cgraphunit.c (record_call_1): Use get_callee_fndecl.
2140
2141 2003-06-23 Jakub Jelinek <jakub@redhat.com>
2142
2143 * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
2144 just SYMBOL_REF.
2145 * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
2146 mode, as it requires pic register loaded.
2147
2148 * varasm.c (resolve_unique_section): Remove prototype. No longer
2149 static.
2150 * tree.h (resolve_unique_section): New prototype.
2151
2152 2003-06-23 Andreas Schwab <schwab@suse.de>
2153
2154 PR debug/9905
2155 * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
2156 recursing through first argument.
2157
2158 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2159
2160 * ChangeLog.1: Fix a typo.
2161 * cfgrtl.c: Fix comment typos.
2162 * dwarf2out.c: Likewise.
2163 * expmed.c: Likewise.
2164 * genrecog.c: Likewise.
2165 * jump.c: Likewise.
2166 * rtlanal.c: Likewise.
2167 * ssa-dce.c: Likewise.
2168 * toplev.c: Likewise.
2169
2170 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2171
2172 * doc/extend.texi: Fix typos.
2173 * doc/md.texi: Likewise.
2174 * doc/tm.texi: Likewise.
2175
2176 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2177
2178 * basic-block.h: Fix comment formatting.
2179 * bt-load.c: Likewise.
2180 * builtins.c: Likewise.
2181 * c-common.c: Likewise.
2182 * c-common.h: Likewise.
2183 * c-format.c: Likewise.
2184 * coverage.c: Likewise.
2185 * cpplib.h: Likewise.
2186 * cpppch.c: Likewise.
2187 * dbxout.c: Likewise.
2188 * diagnostic.c: Likewise.
2189 * dwarf2out.c: Likewise.
2190 * expr.c: Likewise.
2191 * fold-const.c: Likewise.
2192 * function.c: Likewise.
2193 * gcc.c: Likewise.
2194 * gcov-io.c: Likewise.
2195 * gcov-io.h: Likewise.
2196 * gcov.c: Likewise.
2197 * profile.c: Likewise.
2198 * real.h: Likewise.
2199 * sched-deps.c: Likewise.
2200
2201 2003-06-23 Roger Sayle <roger@eyesopen.com>
2202 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2203
2204 * doc/contrib.texi (Contributors): Add a note on testing and
2205 remove duplicates from testers list.
2206
2207 2003-06-23 Nick Clifton <nickc@redhat.com>
2208
2209 * read-rtl.c (read_braced_string): Check for EOF. If
2210 encountered issue an error message.
2211
2212 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2213
2214 * doc/invoke.texi: Document dump options, dT and dW.
2215
2216 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2217
2218 * genrecog.c (pred_table): Remove the entry for
2219 mode_independent_operand.
2220 * recog.c (next_insns_test_no_inequality): Remove.
2221 (mode_independent_operand): Likewise.
2222 * recog.h: Remove the prototype for mode_independent_operand.
2223
2224 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2225
2226 * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
2227 store into bit 0.
2228 * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
2229 second alternative to set_znv.
2230 (*extzv_1_r_inv_h8300hs): Likewise.
2231
2232 2003-06-23 Hans-Peter Nilsson <hp@bitrange.com>
2233
2234 * configure.in (in_tree_gas): Find out here whether GAS is ELF,
2235 set in_tree_gas_is_elf accordingly.
2236 (in_tree_ld): Find out whether LD emulation is ELF, set
2237 in_tree_ld_is_elf accordingly.
2238 (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
2239 (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
2240 (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
2241 (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
2242 grepping gas/Makefile.
2243 (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
2244 $in_tree_ld_is_elf instead of grepping ld/Makefile.
2245 * configure: Regenerate.
2246
2247 2003-06-22 Roger Sayle <roger@eyesopen.com>
2248
2249 * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
2250 up the stabilized argument list, not build_tree_list.
2251 (expand_builtin_strcpy): Construct new argument list manually
2252 instead of using chainon to modify the original argument list.
2253 (expand_builtin_stpcpy): Construct new argument list manually
2254 instead of using copy_list and chainon.
2255 (expand_builtin_sprintf): New function. Optimize calls to
2256 sprintf when the format is "%s" or doesn't contain a '%'.
2257 (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
2258 expand_builtin_sprintf.
2259
2260 2003-06-22 Andreas Schwab <schwab@suse.de>
2261
2262 * function.c (set_insn_locators): Mark as unused.
2263
2264 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
2265
2266 * common.opt: Add -finline-limit.
2267 * opts.c (common_handle_options): Handle it.
2268 * opts.sh: Temporary kludge for -finline-limit.
2269 * toplev.c (decode_f_option, independent_decode_option): Die.
2270 (parse_options_and_default_flags): No independent_decode_option.
2271
2272 2003-06-22 Andreas Jaeger <aj@suse.de>
2273
2274 * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
2275
2276 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2277
2278 * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
2279
2280 2003-06-22 Andreas Schwab <schwab@suse.de>
2281
2282 * doc/invoke.texi: Remove leading `-' from options in index.
2283
2284 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2285
2286 * bt-load.c: Follow spelling conventions.
2287
2288 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2289
2290 * expr.c (emit_move_insn_1): Fix a comment typo.
2291
2292 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2293
2294 * doc/invoke.texi: Alphabetize dump options.
2295
2296 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2297
2298 * doc/invoke.texi: Remove a duplicate -dk.
2299
2300 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2301
2302 * doc/invoke.texi: Update dump file names.
2303
2304 2003-06-22 Zack Weinberg <zack@codesourcery.com>
2305
2306 * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
2307 and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
2308
2309 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2310
2311 * doc/rtl.texi: Fix the @findex for pre_modify.
2312
2313 2003-06-22 Andreas Jaeger <aj@suse.de>
2314
2315 * caller-save.c: Convert to ISO C90.
2316 * calls.c: Likewise.
2317 * cfg.c: Likewise.
2318 * cfganal.c: Likewise.
2319 * cfgbuild.c: Likewise.
2320 * cfgcleanup.c: Likewise.
2321 * cfghooks.c: Likewise.
2322 * cfglayout.c: Likewise.
2323 * cfglayout.h: Likewise.
2324 * cfgloop.c: Likewise.
2325 * cfgloop.h: Likewise.
2326 * cfgloopanal.c: Likewise.
2327 * cfgloopmainip.c: Likewise.
2328 * cfgrtl.c: Likewise.
2329
2330 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
2331
2332 * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
2333 64-bit alignment.
2334
2335 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
2336
2337 * arm.md (all call_value patterns): Remove register constraints on
2338 value operand.
2339
2340 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
2341
2342 * common.opt: More -f switches.
2343 * opts.c (common_handle_options): Handle them.
2344 * toplev.c (time_report): Make extern.
2345 (f_options): USe flag_dummy.
2346 (decode_f_option): No need to use f_options now.
2347 * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
2348 flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
2349
2350 2003-06-22 Andreas Jaeger <aj@suse.de>
2351
2352 * c-lex.c: Convert to ISO C90.
2353 * c-objc-common.c: Likewise.
2354 * c-opts.c: Likewise.
2355 * c-pch.c: Likewise.
2356 * c-ppoutput.c: Likewise.
2357 * c-pragma.h: Likewise.
2358 * c-pretty-print.c: Likewise.
2359 * c-pretty-print.h: Likewise.
2360 * c-semantics.c: Likewise.
2361 * c-tree.h: Likewise.
2362 * c-typeck.c: Likewise.
2363
2364 * c-lang.c: Convert to ISO C90.
2365
2366 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
2367
2368 * opts.c (find_opt): Fix to always guarantee a find of a
2369 switch with joined parameter.
2370 * opts.h (struct cl_option): New member back_chain.
2371 * opts.sh: Update to calculate and add back_chain member.
2372
2373 2003-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2374
2375 * diagnostic.h (output_host_wide_integer): Declare.
2376 * diagnostic.c (output_long_long_decicaml): New function.
2377 (output_host_wide_integer): Likewise.
2378 (output_format): Use them. Handle "%ll" and "%w".
2379
2380 2003-06-21 Jason Thorpe <thorpej@wasabisystems.com>
2381
2382 * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
2383
2384 2003-06-21 Zack Weinberg <zack@codesourcery.com>
2385
2386 * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
2387 * configure.in: Don't use gcc_AC_C_CHARSET.
2388 * configure, config.in: Regenerate.
2389 * config/i370/i370.c, config/i370/i370.h: Use
2390 (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
2391 instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad.
2392
2393 2003-06-21 Neil Booth <neil@daikokuya.co.uk>
2394
2395 * Makefile.in: Update.
2396 * common.opt: New switches.
2397 * opts.c: Include diagnostic.h.
2398 (common_handle_option): Handle new switches.
2399 * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2400 flag_if_conversion2, flag_delete_null_pointer_checks,
2401 flag_rerun_cse_after_loop): Make extern.
2402 (flag_dummy): New.
2403 (f_options): Update to use flag_dummy for moved options.
2404 (decode_f_option): Some switches moved to opts.c.
2405 * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2406 flag_if_conversion2, flag_delete_null_pointer_checks,
2407 flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
2408 flag_tracer, flag_thread_jumps, flag_unroll_loops,
2409 flag_unroll_all_loops, flag_unswitch_loops): New.
2410
2411 Sat Jun 21 13:41:00 CEST 2003 Jan Hubicka <jh@suse.cz>
2412
2413 * i386.c (ix86_va_arg): Fix allocation of temporary slot.
2414
2415 2003-06-20 Kazu Hirata <kazu@cs.umass.edu>
2416
2417 * config/h8300/h8300-protos.h: Add a prototype for
2418 same_cmp_preceding_p.
2419 * config/h8300/h8300.c (same_cmp_preceding): New.
2420 * config/h8300/h8300.md: Extend peephole2's that transform
2421 compare:SI into shorter sequences so that they can deal with
2422 signed comparisons.
2423
2424 2003-06-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2425
2426 * doc/contrib.texi (Contributors): Use Windows instead of Win32.
2427
2428 Update Andreas Jaeger's entry.
2429
2430 Merge the two entries of Kaveh Ghazi, David Edelsohn, and
2431 Loren J. Rittle.
2432
2433 2003-06-21 Nathanael Nerode <neroden@gcc.gnu.org>
2434
2435 * mkconfig.sh: Add multiple inclusion guards to generated headers.
2436
2437 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
2438
2439 * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
2440 * common.opt: Add remaining -W options and -g.
2441 * diagnostic.c (warnings_are_errors): Remove.
2442 * flags.h: Make most warning flags boolean.
2443 * opts.c (common_handle_option): Handle remaining -W options, and -g.
2444 Move many warning flags from toplev.c, making them boolean.
2445 * toplev.c: Remove many warning flags.
2446 (decode_W_option): Remove.
2447 (decode_g_option): Make extern. Error on unknown switch.
2448 (lang_independent_W_options): Use warn_dummy.
2449 (independent_decode_option): Just handle -f switches now.
2450 * toplev.h (decode_g_option): New.
2451
2452 2003-06-20 Aldy Hernandez <aldyh@redhat.com>
2453
2454 PR/11092
2455 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
2456 vectors.
2457
2458 2003-06-20 Kelley Cook <kelleycook@wideopenwest.com>
2459
2460 * opts.sh: Tweak awk script for portability.
2461
2462 2003-06-20 Mark Mitchell <mark@codesourcery.com>
2463
2464 PR c++/10888
2465 * tree-inline.c (expand_call_inline): Do not warn about failing to
2466 inline functions declared in system headers.
2467 * doc/invoke.texi (-Winline): Expand on documentation.
2468
2469 2003-06-20 Richard Henderson <rth@redhat.com>
2470
2471 * config/alpha/alpha.c (alpha_file_start): Disable
2472 file_start_file_directive for ELF and not MDEBUG.
2473
2474 2003-06-20 J"orn Rennecke <joern.rennecke@superh.com>
2475
2476 * sh.h (ROUND_TYPE_ALIGN): Remove.
2477
2478 2003-06-20 Richard Henderson <rth@redhat.com>
2479
2480 * hooks.c (hook_int_void_no_regs): Rename from
2481 hook_reg_class_void_no_regs; change return type.
2482 * hooks.h: Update.
2483 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
2484 * target.h (branch_target_register_class): Change return type to int.
2485 Add documentation.
2486 * config/sh/sh.c (sh_target_reg_class): Change return type.
2487 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2488
2489 2003-06-20 Andreas Tobler <toa@pop.agri.ch>
2490
2491 * c-format.c: Change _Bool to bool reverting part of the last
2492 patch.
2493
2494 2003-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2495
2496 * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
2497 strip name encoding.
2498
2499 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2500
2501 * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
2502 * configure: Regenerate.
2503 Fixes PR driver/9362.
2504
2505 2003-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2506
2507 * config/alpha/alpha.c (alpha_file_start): Fix typo.
2508
2509 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2510
2511 * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
2512 to ASM_OUTPUT_SOURCE_LINE.
2513
2514 2003-06-20 Daniel Egger <degger@fhm.edu>
2515 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2516
2517 * doc/install.texi (Building): Correct and improve statement
2518 about parallel builds.
2519
2520 2003-06-20 Andreas Jaeger <aj@suse.de>
2521
2522 * c-common.c: Change _Bool to bool reverting part of the last
2523 patch.
2524
2525 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
2526
2527 * tree.h (expand_function_end): Remove all parameters.
2528 * function.c (expand_function_end): Remove all parameters.
2529 Use input_location. Never expand_end_bindings.
2530 * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
2531 * coverage.c (create_coverage): Likewise.
2532
2533 2003-06-20 Nick Clifton <nickc@redhat.com>
2534
2535 * doc/extend.texi (ARM Built-in Functions): New node. Document
2536 ARM builtin functions for iWMMXt support.
2537
2538 2003-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
2539
2540 * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
2541 SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
2542 (--with-as): Add @anchor.
2543 (--with-gnu-ld): Fix typo.
2544 (--with-ld): Add @uref to --with-as.
2545
2546 2003-06-19 Zack Weinberg <zack@codesourcery.com>
2547
2548 * doc/tm.texi: Uniformly use @defmac for macros, rather than
2549 @table items. Minor formatting and editorial corrections.
2550
2551 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
2552
2553 * line-map.c, line-map.h: Convert to ISO prototypes.
2554
2555 2003-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2556
2557 * gcse.c (store_killed_in_insn): Fix.
2558
2559 2003-06-19 Zack Weinberg <zack@codesourcery.com>
2560
2561 * target.h (asm_out.file_start, file_start_app_off,
2562 file_start_file_directive): New hooks.
2563 * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2564 TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
2565 New hook-definition macros.
2566 * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
2567 * varasm.c (default_file_start): New.
2568 * output.h: Prototype it.
2569 * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
2570 * system.h: Poison ASM_FILE_START.
2571
2572 * config/alpha/alpha.c (alpha_write_verstamp): Delete.
2573 (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
2574 (unicosmk_asm_file_start): Rename unicosmk_file_start,
2575 make static, take no arguments.
2576 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
2577 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
2578 * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
2579 TARGET_ASM_FILE_END. Remove reference to ASM_FILE_START in
2580 comment.
2581 * config/arc/arc.c (arc_asm_file_start): Rename
2582 arc_file_start, take no arguments, make static.
2583 (TARGET_ASM_FILE_START): Set it.
2584 * config/arm/arm.c (aof_file_start): New static function.
2585 (TARGET_ASM_FILE_START): Set it, when appropriate.
2586 * config/arm/coff.h, config/arm/elf.h:
2587 Set TARGET_ASM_FILE_START_APP_OFF to true.
2588 * config/avr/avr.c (asm_file_start): Rename avr_file_start,
2589 take no arguments, make static.
2590 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2591 Set them.
2592 * config/c4x/c4x.c (c4x_file_start): New static function.
2593 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2594 Set them.
2595 * config/cris/cris.c (cris_file_start): New static function.
2596 (TARGET_ASM_FILE_START): Set it.
2597 * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
2598 dsp16xx_file_start, make static.
2599 (luxworks_dsp16xx_file_start): Delete.
2600 (TARGET_ASM_FILE_START): Set it.
2601 * config/h8300/h8300.c (asm_file_start): Rename
2602 h8300_file_start, make static, take no arguments.
2603 (TARGET_ASM_FILE_START): Set it.
2604 * config/i370/i370.c (i370_file_start): New static function.
2605 (TARGET_ASM_FILE_START): Set it.
2606 * config/i386/i386.c (x86_file_start): New static function.
2607 (TARGET_ASM_FILE_START): Set it.
2608 * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
2609 X86_FILE_START_FLTUSED): New macros, default to false.
2610 * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
2611 * config/i386/sysv4.h, config/i386/sco5.h: Override
2612 X86_FILE_START_VERSION_DIRECTIVE to true.
2613 * config/ia64/ia64.c (ia64_file_start): New static function.
2614 (TARGET_ASM_FILE_START): Set it.
2615 (emit_safe_across_calls): Take no arguments.
2616 * config/ia64/ia64.md: Update to match.
2617 * config/m32r/m32r.c (m32r_asm_file_start): Rename
2618 m32r_file_start, make static, take no arguments.
2619 (TARGET_ASM_FILE_START): Set it.
2620 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
2621 m68hc11_file_start, make static, take no arguments.
2622 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2623 (print_options): Delete.
2624 * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
2625 (TARGET_ASM_FILE_START_APP_OFF): Set.
2626 * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
2627 m68k_hp320_file_start.
2628 * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
2629 Make static, take no arguments.
2630 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2631 * config/mmix/mmix.c (mmix_asm_file_start): Rename
2632 mmix_file_start, make static, take no arguments.
2633 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2634 * config/mn10300/mn10300.c (asm_file_start): Rename
2635 mn10300_file_start, make static, take no arguments.
2636 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2637 * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
2638 * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
2639 pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
2640 pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
2641 pa_hpux64_hpas_file_start): New static functions.
2642 * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
2643 * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
2644 pa_linux_file_start.
2645 * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
2646 pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
2647 appropriate.
2648 * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
2649 * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
2650 (rs6000_file_start): Make static, take no arguments. Reset
2651 default_cpu under certain conditions.
2652 (rs6000_xcoff_file_start): New function.
2653 * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
2654 * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
2655 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
2656 * config/sh/sh.c (output_file_start): Rename
2657 sh_file_start, make static, take no arguments. Merge in old
2658 code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
2659 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2660 * config/sh/sh.c (TARGET_ELF): Define to 0.
2661 * config/sh/elf.h (TARGET_ELF): Redefine to 1.
2662 * config/v850/v850.c (asm_file_start): Delete.
2663 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2664 * config/vax/vax.c (vax_file_start): New static function.
2665 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
2666
2667 * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
2668 * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
2669 * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
2670 * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
2671 * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
2672 * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
2673
2674 * config/darwin.h, config/elfos.h, config/alpha/elf.h
2675 * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
2676 * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
2677 * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
2678 * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
2679 * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
2680 * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
2681 * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
2682 * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
2683 * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
2684 * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
2685 * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
2686 * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
2687 * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
2688 * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
2689 * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
2690 * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
2691 * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
2692
2693 * config/alpha/alpha-protos.h, config/arc/arc-protos.h
2694 * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
2695 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
2696 * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
2697 * config/mips/mips-protos.h, config/mmix/mmix-protos.h
2698 * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
2699 * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
2700
2701 * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
2702 Remove reference to ASM_FILE_START in comment.
2703 * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
2704 * config/arm/linux-gas.h, config/arm/netbsd-elf.h
2705 * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
2706
2707 2003-06-19 Graeme Peterson <gp@qnx.com>
2708
2709 * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
2710 SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
2711 sysroot_hdrs_suffix_spec): New.
2712 (static_specs): Initialize new variables.
2713 (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
2714 * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
2715 New macros.
2716
2717 2003-06-19 Andreas Jaeger <aj@suse.de>
2718
2719 * c-aux-info.c: Convert to ISO C90.
2720 * c-pragma.c: Likewise.
2721 * c-common.c: Likewise.
2722 * c-common.h: Likewise.
2723 * c-convert.c: Likewise.
2724 * c-cppbuiltin.c: Likewise.
2725 * c-dump.c: Likewise.
2726 * c-decl.c: Likewise
2727 * c-format.c: Likewise.
2728 * c-incpath.c: Likewise.
2729 * c-incpath.h: Likewise.
2730
2731 2003-06-19 Roger Sayle <roger@eyesopen.com>
2732
2733 * builtins.c (expand_errno_check): Assume that flag_errno_math
2734 and HONOR_NANS have been tested before calling here. Only try
2735 to set errno ourselves if the decl can't throw an exception.
2736 (expand_builtin_mathfn): Move the code to stabilize the arg
2737 after the main switch, so that that its only done when needed.
2738 BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
2739 Don't modify the original expr when stabilizing the argument.
2740 (expand_builtin_mathfn_2): Likewise, move the code to stabilize
2741 the args after the main switch, and don't modify the orginal exp.
2742
2743 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
2744
2745 * expr.c (const_vector_from_tree): Initialize remaining elements
2746 to 0.
2747
2748 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
2749
2750 * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
2751 Change "fix" to "float".
2752
2753 2003-06-19 Andreas Jaeger <aj@suse.de>
2754
2755 * c-tree.h: Remove declaration of poplevel.
2756
2757 * tree.h: Remove declaration of approx_sqrt.
2758
2759 * c-lex.c: Remove redundant declaration of asm_out_file.
2760
2761 * flags.h: Remove declaration of warn_unknown_pragma and
2762 main_input_filename.
2763
2764 * rtl.h: Remove functions from fold-const.c since they're already
2765 declared in tree.h.
2766
2767 * regs.h: Remove redundant declaration of reg_names.
2768
2769 * bt-load.c (migrate_btr_defs): Correct printf arguments.
2770
2771 * protoize.c: Fix breakage from last patch.
2772
2773 2003-06-19 J"orn Rennecke <joern.rennecke@superh.com>
2774
2775 * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
2776 has been included.
2777
2778 2003-06-18 James A Morrison <ja2morri@student.math.uwaterloo.ca>
2779
2780 * config/sparc/sparc.c: Update copyright year.
2781
2782 2003-06-19 David Edelsohn <edelsohn@gnu.org>
2783
2784 * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
2785 to ABI_V4.
2786
2787 2003-06-18 Joseph S. Myers <jsm@polyomino.org.uk>
2788
2789 PR bootstrap/4068
2790 * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
2791
2792 2003-06-19 Kazu Hirata <kazu@cs.umass.edu>
2793
2794 * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
2795 to the end of the file. Remove unnecessary prototypes.
2796
2797 2003-06-19 Hans-Peter Nilsson <hp@axis.com>
2798
2799 * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
2800 calls to insn_default_latency and result_ready_cost. Initialize
2801 def_latency to 1.
2802
2803 2003-06-18 Richard Henderson <rth@redhat.com>
2804
2805 * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
2806 (_Unwind_FindEnclosingFunction): Implement.
2807
2808 2003-06-18 Kazu Hirata <kazu@cs.umass.edu>
2809
2810 * toplev.c (rest_of_handle_sched): Hide the entire function if
2811 INSN_SCHEDULING is not defined.
2812 (rest_of_compilation): Call rest_of_handle_sched() only when
2813 INSN_SCHEDULING is defined.
2814
2815 2003-06-18 Stephen Clarke <stephen.clarke@superh.com>
2816 J"orn Rennecke <joern.rennecke@superh.com>
2817
2818 * bt-load.c: New file.
2819 * Makefile.in (OBJS): Include bt-load.o
2820 (bt-load.o): Add dependencies.
2821 * flags.h (flag_branch_target_load_optimize): Declare.
2822 (flag_branch_target_load_optimize2): Likewise.
2823 * hooks.c (hook_reg_class_void_no_regs): New function.
2824 (hook_bool_bool_false): Likewise.
2825 * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
2826 * rtl.h (branch_target_load_optimize): Declare.
2827 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
2828 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2829 (TARGET_INITIALIZER): Include these.
2830 * target.h (struct gcc_target): Add branch_target_register_class
2831 and branch_target_register_callee_saved members.
2832 * toplev.c (enum dump_file_index): Add DFI_branch_target_load
2833 (dump_file) Add "tars" entry.
2834 (flag_branch_target_load_optimize): New variable.
2835 (flag_branch_target_load_optimize2): Likewise.
2836 (lang_independent_options): Add entries for new options.
2837 (rest_of_compilation): Call branch_target_load_optimize.
2838 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
2839 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2840 * doc/invoke.texi: Document -fbranch-target-load-optimize and
2841 -fbranch-target-load-optimize2.
2842 * rtl.h (epilogue_completed): Declare.
2843 * recog.c (epilogue_completed): New variable.
2844 * toplev.c (rest_of_compilation): Set it.
2845 * flow.c (mark_regs_live_at_end): Use it.
2846 * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
2847 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2848 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2849 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2850
2851 * sh.c (shmedia_space_reserved_for_target_registers): New variable.
2852 (sh_target_reg_class): New function.
2853 (sh_optimize_target_register_callee_saved): Likwise.
2854 (shmedia_target_regs_stack_space): Likewise.
2855 (shmedia_reserve_space_for_target_registers_p): Likewise.
2856 (shmedia_target_regs_stack_adjust): Likewise.
2857 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
2858 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2859 (calc_live_regs): If flag_branch_target_load_optimize2 and
2860 TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
2861 for target registers, make sure that we save all target registers.
2862 (sh_expand_prologue, sh_expand_epilogue): Take target register
2863 optimizations into account. Collapse stack adjustments if that
2864 is beneficial.
2865 (initial_elimination_offset): Reserve space for target registers
2866 if necessary.
2867 * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
2868 (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
2869
2870 2003-06-18 Nick Clifton <nickc@redhat.com>
2871
2872 * config.gcc: Add an extra_header for ARM targets.
2873 Support configuring with --with-cpu=iwmmxt.
2874 * doc/invoke.texi: Document new value for -mcpu= ARM switch.
2875 * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
2876 names. Fix formatting.
2877 * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
2878 names.
2879 * config/arm/arm-protos.h (arm_emit_vector_const): New
2880 prototype.
2881 (arm_output_load_gr): New prototype.
2882 * config/arm/arm.c (extra_reg_names1): Delete.
2883 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
2884 * arch_is_iwmmxt): Define.
2885 (all_cores, all_architecture): Add entry for iwmmxt.
2886 (arm_override_options): Add support for iwmmxt.
2887 (use_return_insn, arm_function_arg, arm_legitimate_index_p,
2888 arm_print_value, arm_rtx_costs_1, output_move_double,
2889 arm_compute_save_reg_mask, arm_output_epilogue,
2890 arm_get_frame_size, arm_expand_prologue, arm_print_operand,
2891 arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
2892 Likewise.
2893 (arm_init_cumulative_args): Count iwmmxt registers.
2894 (arm_function_ok_for_sibcall): Return false of sibcall_blocked
2895 has been set.
2896 (struct minipool_node): Add fix_size field.
2897 (add_minipool_forward_ref): Add support for 8-byte aligning of
2898 the pool.
2899 (add_minipool_backward_ref, add_minipool_offsets,
2900 dump_minipool, push_minipool_fix): Likewise.
2901 (struct builtin_description): New struct.
2902 (builtin_description): New array of iwmmxt builtin functions.
2903 (arm_init_iwmmxt_builtins): New function.
2904 (arm_init_builtins): New function.
2905 (safe_vector_operand): New function.
2906 (arm_expand_binop_builtin): New function.
2907 (arm_expand_unop_builtin): New function.
2908 (arm_expand_builtin): New function.
2909 (arm_emit_vector_const): New function.
2910 (arm_output_load_gr): New function.
2911 * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
2912 TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
2913 TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
2914 DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
2915 (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
2916 (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
2917 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
2918 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2919 REG_CLASS_FOR_LETTER): Add iwmmxt registers.
2920 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
2921 registers unless the iwmmxt target is selected.
2922 (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
2923 FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
2924 IS_IWMMXT_GR_REGNUM): Define.
2925 (FIRST_PSEUDO_REGISTER): Bump to 63.
2926 (struct machine_function): Add sibcall_blocked field.
2927 (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
2928 nargs fields.
2929 (enum arm_builtins): New enum list.
2930 * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
2931 UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
2932 UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
2933 UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
2934 (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
2935 VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
2936 (movv2si, movv4hi, movv8qi): New expands for vector moves.
2937 Include iwmmxt.md.
2938 * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
2939 multilib.
2940 (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
2941 * config/arm/mmintrin.h: New ARM specific header file.
2942 * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
2943
2944 2003-06-18 J"orn Rennecke <joern.rennecke@superh.com>
2945
2946 * toplev.c (Remaining -d letters summary): Update.
2947
2948 2003-06-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2949
2950 * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
2951 argument.
2952 (function_arg): Handle CALL_LIBCALL flag.
2953 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
2954 prototype.
2955 * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
2956 (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
2957 (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
2958 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
2959
2960 2003-06-18 Neil Booth <neil@daikokuya.co.uk>
2961
2962 * Makefile.in: Update.
2963 * common.opt: New options.
2964 * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
2965 set_Wunused): New.
2966 (common_handle_option): Handle new options.
2967 * toplev.c (set_target_switch): Export.
2968 (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
2969 (decode_W_option): -Wunused and -Wextra handled in opts.c now.
2970 (independent_decode_option): More options handled in opts.c now.
2971 Change prototype.
2972 * toplev.h (set_target_switch): New.
2973
2974 2003-06-17 Robert Abeles <rabeles@archaelogic.com>
2975
2976 PR debug/4252
2977 * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
2978 to dump_switch_p().
2979 * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
2980 from static strings in dump_files.
2981
2982 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2983
2984 * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
2985 VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
2986 libiberty macros.
2987
2988 2003-06-17 Jason Merrill <jason@redhat.com>
2989
2990 PR c++/10929
2991 * tree-inline.c (expand_call_inline): Don't warn about failing to
2992 inline a function which was made inline by -finline-functions.
2993
2994 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
2995
2996 * config/h8300/h8300-protos.h: Update to ISO C.
2997 * config/h8300/h8300.c: Likewise.
2998 * config/h8300/h8300.h: Likewise.
2999 * config/h8300/h8300.md: Likewise.
3000
3001 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3002
3003 * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
3004 * configure: Regenerate.
3005 * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
3006
3007 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
3008
3009 * install.texi (Testing): Add information on how to run Java
3010 runtime tests separately.
3011
3012 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3013
3014 * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
3015
3016 * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
3017 (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
3018
3019 2003-06-17 Christopher Faylor <cgf@redhat.com>
3020
3021 * doc/install.texi: Add msvc rebuild caveat.
3022
3023 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3024
3025 * config/sh/coff.h: Replace Hitachi with Renesas.
3026 * config/sh/elf.h: Likewise.
3027 * config/sh/embed-elf.h: Likewise.
3028 * config/sh/lib1funcs.asm: Likewise.
3029 * config/sh/sh-protos.h: Likewise.
3030 * config/sh/sh.c: Likewise.
3031 * config/sh/sh.h: Likewise.
3032 * config/sh/sh.md: Likewise.
3033
3034 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3035
3036 * ChangeLog.3: Fix comment typos.
3037 * ChangeLog.6: Likewise.
3038 * config/d30v/d30v.c: Likewise.
3039 * config/h8300/h8300.md: Likewise.
3040 * config/m32r/m32r.md: Likewise.
3041 * config/mips/mips.c: Likewise.
3042 * config/mips/mips.md: Likewise.
3043 * config/ns32k/NOTES: Likewise.
3044
3045 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
3046 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3047
3048 * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
3049 to run Java runtime tests separately.
3050
3051 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3052
3053 * config/h8300/h8300-protos.h: Update a comment.
3054
3055 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3056
3057 * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
3058 are aligned like integral modes.
3059 (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
3060
3061 * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
3062 (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
3063 * sh.md (*pt): Remove.
3064
3065 * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
3066
3067 * sh.md (return_media_rte): New pattern.
3068 (return_media): Use it.
3069
3070 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3071
3072 * doc/contrib.texi: Replace Hitachi with Renesas.
3073 * doc/install.texi: Likewise.
3074 * doc/invoke.texi: Likewise.
3075
3076 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3077
3078 * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
3079 behaviour.
3080
3081 2003-06-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3082
3083 * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
3084
3085 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
3086 2003-01-23 patch. Corrected to handle kernels with changed ucontext.
3087
3088 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
3089 -msdata=eabi usages.
3090
3091 * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
3092
3093 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3094
3095 * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
3096 * fixinc/gnu-regex.c: Don't define `volatile'.
3097 * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
3098 * ggc-simple.c: Likewise.
3099 * system.h: Don't define `volatile'.
3100
3101 * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
3102 * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
3103 call these macros.
3104 * config.in, configure: Regenerated.
3105
3106 2003-06-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3107
3108 * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
3109 Handle POINTERS_EXTEND_UNSIGNED.
3110
3111 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3112
3113 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
3114 !TARGET_IRIX6]: Define as NULL.
3115
3116 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3117
3118 * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
3119
3120 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3121
3122 * dbxout.c (dbxout_source_line_counter): New global variable.
3123 Mark it with GTY(()).
3124 (dbxout_source_line): Increment dbxout_source_line_counter
3125 and pass it to ASM_OUTPUT_SOURCE_LINE.
3126 * sdbout.c (sdbout_source_line_counter): New global variable.
3127 Mark it with GTY(()).
3128 (unnamed_struct_number): Mark it with GTY(()).
3129 (sdbout_source_line): Increment sdbout_source_line_counter
3130 and pass it to ASM_OUTPUT_SOURCE_LINE.
3131 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
3132 (xcoffout_source_line): Pass 0 as third argument to
3133 ASM_OUTPUT_SOURCE_LINE.
3134 (xcoffout_begin_prologue): Likewise.
3135 * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3136 Use it instead of 'sym_lineno' but without incrementing it.
3137 * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3138 * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3139 * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3140 * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
3141 argument to ASM_OUTPUT_SOURCE_LINE.
3142 * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3143 * config/arm/aout.h: Remove useless comment.
3144 * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3145 * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3146 * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3147 Use it instead of 'sym_lineno' but without incrementing it.
3148 * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3149 * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
3150 parameter. Use it instead of 'sym_lineno' but without incrementing it.
3151 * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
3152 argument to ASM_OUTPUT_SOURCE_LINE.
3153 * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3154 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3155 * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3156 Use it instead of 'sym_lineno' but without incrementing it.
3157 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3158 * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3159 * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3160 * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3161 * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
3162
3163 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
3164
3165 * config/mips/mips-protos.h (mips_expand_block_move): Declare.
3166 (expand_block_move, output_block_move): Remove.
3167 * config/mips/mips.h (enum block_move_type): Remove.
3168 * config/mips/mips.c (block_move_call, output_block_move): Remove.
3169 (mips_block_move_straight, mips_adjust_block_mem): New function.
3170 (mips_block_move_loop): Renamed and reworked from block_move_loop.
3171 (mips_expand_block_move): Likewise expand_block_move. Return false
3172 to fall back on the target-independent code.
3173 * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
3174 (movstrsi_internal*): Remove.
3175
3176 2003-06-16 Zack Weinberg <zack@codesourcery.com>
3177
3178 * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
3179 * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
3180 * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
3181 ISO C: new-style function declarations, no need for PARAMS,
3182 no special punctuation on indirect function calls, use string
3183 constant concatenation where convenient.
3184
3185 2003-06-17 Andreas Jaeger <aj@suse.de>
3186
3187 * rtl.h: Remove declarations from coverage.h.
3188 * toplev.c: Include coverage.h.
3189 * Makefile.in (toplev.o): Depend on coverage.h.
3190
3191 * toplev.h: Remove extra declaration of print_time.
3192
3193 * gengtype.c (close_output_files): Remove duplicated declaration.
3194
3195 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3196
3197 * config/sparc/sysv4.h: Remove target-independent comment;
3198 replace "GNU CC" with "GCC".
3199 * config/vxworks.h: Replace "GNU compiler" with "GCC".
3200 * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
3201 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3202 config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
3203 config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
3204 config/sparc/rtemself.h, config/sparc/sol2-64.h,
3205 config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
3206 config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
3207 config/sparc/sol2.h, config/sparc/sp64-aout.h,
3208 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
3209 config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
3210 "GNU compiler", "GNU CC" with "GCC".
3211 * config/sparc/cypress.md, config/sparc/hypersparc.md,
3212 config/sparc/sparc-modes.def, config/sparc/sparc.c,
3213 config/sparc/sparc.md, config/sparc/sparclet.md,
3214 config/sparc/supersparc.md, config/sparc/ultra1_2.md,
3215 config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
3216 "GNU C Compiler" with "GCC".
3217 * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
3218
3219 2003-06-16 Aldy Hernandez <aldyh@redhat.com>
3220
3221 * simplify-rtx.c (simplify_subreg): Do not over-extend vector
3222 constants.
3223
3224 * testsuite/gcc.c-torture/execute/simd-4.c: New.
3225
3226 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3227
3228 * config/ip2k/ip2k.h: Remove target-independent comments.
3229
3230 * config.gcc: Explicitly mention elfos.h in ip2k entry.
3231 * config/ip2k/ip2k.h: Don't #include it here.
3232
3233 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3234
3235 * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
3236 config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
3237 dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
3238 function.c, gcc.c, genoutput.c, gensupport.c, global.c,
3239 haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
3240 loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
3241 read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
3242 stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
3243 the PTR macro.
3244
3245 * gengtype.c: Don't use UNION_INIT_ZERO.
3246 * system.h (UNION_INIT_ZERO): Delete.
3247
3248 2003-06-16 Richard Henderson <rth@redhat.com>
3249
3250 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
3251 GET_MODE_UNIT_SIZE when simplifying constant vectors.
3252
3253 2003-06-16 Andreas Jaeger <aj@suse.de>
3254
3255 * timevar.c (get_run_time): Remove function provided also by
3256 libiberty.
3257 * timevar.h: Remove get_run_time declaration.
3258
3259 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
3260
3261 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
3262 unreachable code.
3263
3264 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3265
3266 * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
3267 cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
3268 use macros from "symcat.h", instead rely on ISO C.
3269
3270 * system.h: Don't include "symcat.h".
3271 * configure.in (AC_C_STRINGIZE): Delete.
3272 * config.in, configure: Regenerate.
3273
3274 2003-06-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3275
3276 * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
3277
3278 * tree.h (STMT_CHECK): New macro.
3279 Also upper-case argument names on all checking macros and
3280 fix some whitespace problems; assume CODE argument does not
3281 have side-effects.
3282
3283 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3284
3285 * scan.h: Convert to ISO C.
3286 * system.h: Likewise.
3287
3288 * c-format.c (dynamic_format_types): New pointer for dynamic data.
3289 (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
3290 New functions split out of...
3291 (handle_format_attribute): ...here.
3292
3293 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
3294
3295 * sh.h (REG_CLASS_FROM_LETTER): Change to:
3296 (REG_CLASS_FROM_CONSTRAINT).
3297 (CONST_OK_FOR_I): Rename to:
3298 (CONST_OK_FOR_I08). Changed all users.
3299 (CONST_OK_FOR_J): Rename to:
3300 (CONST_OK_FOR_I16). Changed all users.
3301 (CONST_OK_FOR_K): Rename to:
3302 (CONST_OK_FOR_P27). Changed all users.
3303 (CONST_OK_FOR_L): Rename to:
3304 (CONST_OK_FOR_K08). Changed all users.
3305 (CONST_OK_FOR_O): Rename to:
3306 (CONST_OK_FOR_I06). Changed all users.
3307 (CONST_OK_FOR_P): Rename to:
3308 (CONST_OK_FOR_I10). Changed all users.
3309 (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
3310 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
3311 (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
3312 (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
3313 (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
3314 (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
3315 (CONST_OK_FOR_LETTER_P): Replace with
3316 (CONST_OK_FOR_CONSTRAINT_P).
3317 (EXTRA_CONSTRAINT_S): Rename to:
3318 (EXTRA_CONSTRAINT_C16). Changed all users.
3319 (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
3320 (EXTRA_CONSTRAINT_T): Rename to:
3321 (EXTRA_CONSTRAINT_Csy). Changed all users.
3322 (EXTRA_CONSTRAINT_Z): Remove.
3323 (EXTRA_CONSTRAINT): Replace with:
3324 (EXTRA_CONSTRAINT_STR).
3325 (EXTRA_CONSTRAINT_U): Rename to:
3326 (EXTRA_CONSTRAINT_Z). Changed all users.
3327 * sh.c (and_operand): Use CONST_OK_FOR_J16.
3328 * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
3329 (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
3330 (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
3331 (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
3332 (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
3333 (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
3334 (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
3335 (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
3336 (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
3337 (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
3338 (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
3339 (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
3340 (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
3341 (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
3342 (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
3343 (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
3344 (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
3345 (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
3346 (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
3347 (sssubv4hi3): Likewise.
3348 (movsf_i): Change I[08]/r to G/r.
3349 (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
3350
3351 * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
3352
3353 2003-06-16 Vladimir Makarov <vmakarov@redhat.com>
3354
3355 * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
3356
3357 2003-06-16 Andreas Jaeger <aj@suse.de>
3358
3359 * basic-block.h: Remove duplicate prototype of
3360 note_prediction_to_br_prob.
3361
3362 * tree.h: Remove duplicate prototype of strip_float_extensions.
3363
3364 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3365
3366 * config/c4x/c4x.c: Don't include "c-tree.h".
3367 * config/pa/pa.c: Likewise.
3368 * langhooks.c: Likewise.
3369 * tree.h (poplevel): Declare.
3370
3371 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
3372
3373 * config/h8300/h8300.c (const_costs): Move this to ...
3374 (h8300_rtx_costs): ... here.
3375
3376 2003-06-16 Roger Sayle <roger@eyesopen.com>
3377
3378 * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
3379 (tan_optab, atan_optab): Define corresponding macros.
3380 * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
3381 * genopinit.c (optabs): Implement tan_optab and atan_optab
3382 using tan?f2 and atan?f2 patterns.
3383 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
3384 using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
3385 Change the default value of errno_set to false.
3386 (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
3387 using expand_builtin_mathfn.
3388
3389 * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
3390 expander patterns implemented using existing atan2?f3 patterns.
3391
3392 2003-06-16 Roger Sayle <roger@eyesopen.com>
3393
3394 * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
3395 both operands of the addition equal, reuse the expanded RTL.
3396 (expand_expr <MULT_EXPR>): Likewise for multiplication.
3397
3398 2003-06-16 Roger Sayle <roger@eyesopen.com>
3399 Jeff Law <law@redhat.com>
3400
3401 * fold-const.c (operand_equal_p): Consider two calls to "const"
3402 functions with identical non-volatile arguments to be equal.
3403 Consider the FUNCTION_DECL for the "__builtin_foo" form of a
3404 built-in function to be equal to the "foo" form.
3405
3406 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3407
3408 * config/rs6000/sysv4le.h: Remove target-independent comment.
3409 Replace "GNU compiler" with "GCC" in comment.
3410
3411 2003-06-16 Andreas Jaeger <aj@suse.de>
3412
3413 * tracer.c: Remove duplicate declaration.
3414
3415 * toplev.c: Remove extra declaration of decode_d_option.
3416
3417 * ssa.c: Remove duplicate declaration.
3418
3419 * sreal.c: Remove extra declaration of dump_sreal.
3420
3421 * reload1.c: Remove duplicate declarations.
3422
3423 * integrate.c: Remove extra declaration of
3424 set_decl_abstract_flags.
3425
3426 * flow.c: Remove extra declaration of dump_flow_info.
3427
3428 * alias.c: Remove extra declaration of get_addr.
3429
3430 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3431
3432 * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
3433 config/vxworks.h: GNU CC -> GCC.
3434
3435 * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
3436 lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
3437 stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
3438 ssa.h, tree.def: Replace overly specific references to "GNU C"
3439 and "GNU C Compiler" with references to "GCC".
3440
3441 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
3442
3443 * sh.c (prepare_move_operand): Check if operand 0 is an invalid
3444 memory reference. Fix test that checks if operand 1 is using r0.
3445 * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
3446
3447 * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
3448 defined.
3449
3450 2003-06-15 Nathan Sidwell <nathan@codesourcery.com>
3451
3452 * function.h (struct emit_status): Remove x_last_linenum,
3453 x_last_filename. Add x_last_location.
3454 * rtl.h: #include "input.h".
3455 (NOTE_DATA): New.
3456 * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
3457 number notes.
3458 * emit-rtl.c (last_linenum, last_filename): Remove.
3459 (last_location): New.
3460 (emit_line_note_after): LINE must always be >= 0.
3461 (emit_line_note): Likewise. Check not duplicate here...
3462 (emit_note): ... rather than here.
3463 (emit_line_note_force, force_next_line_note, init_emit): Adjust.
3464 * integrate.c (expand_inline_function): Use emit_line_note for
3465 line number notes.
3466 (copy_insn_list): Likewise.
3467 * unroll.c (copy_loop_body): Likewise.
3468 * Makefile.in (RTL_H): Add input.h.
3469
3470 2003-06-16 Richard Sandiford <rsandifo@redhat.com>
3471
3472 * optabs.c (emit_libcall_block): Don't hoist insns past a label.
3473
3474 2003-06-16 Richard Henderson <rth@redhat.com>
3475
3476 * config/alpha/alpha-protos.h, config/alpha/elf.h,
3477 config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
3478 config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
3479 * config/alpha/alpha.c: Likewise. Move targetm init to end of file.
3480 Remove unneeded static function decls.
3481
3482 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
3483
3484 * c-opts.c (c_common_handle_option): s/on/value/.
3485 (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
3486 directly rather than converting the argument.
3487 * c.opt: Update docs. Use UInteger where appropriate.
3488 * common.opt: Use UInteger where appropriate.
3489 * opts.c (integral_argument): New.
3490 (handle_argument): Handle integral arguments, and optional
3491 joined arguments.
3492 (common_handle_option): Update.
3493 * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
3494 * opts.sh: Handle JoinedOrMissing and UInteger flags.
3495
3496 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
3497
3498 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
3499 unnecessary extern declaration.
3500
3501 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
3502
3503 * config/gofast.h, config/interix.h, config/interix3.h,
3504 config/libgloss.h, config/linux-aout.h, config/linux.h,
3505 config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
3506 * config/kaos.h: "GNU compiler" -> GCC.
3507 * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
3508
3509 * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
3510 config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
3511 GNU CC -> GCC.
3512
3513 * config/svr3.h: Remove #if 0 code, misleading comments.
3514 GNU CC -> GCC.
3515
3516 2003-06-15 Zack Weinberg <zack@codesourcery.com>
3517
3518 * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
3519 main_input_filename to avoid conflict with input_filename macro.
3520
3521 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3522
3523 * config/mips/mips.h (asm_file_name, g_switch_set,
3524 g_switch_value): Remove.
3525 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3526 unnecessary extern declarations.
3527
3528 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3529
3530 * config/frv/frv.h: Remove declaration of g_switch_value.
3531 * config/m32r/m32r.h: Remove declaration of g_switch_value.
3532 * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
3533
3534 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3535
3536 * opts.sh: Quote '+' in regex.
3537
3538 2003-06-15 Andrew Pinski <pinskia@physics.uc.edu>
3539
3540 * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
3541 * config/rs6000/rs6000.c: Include cfglayout.h.
3542 * config/alpha/alpha.c: Likewise.
3543 * config/ia64/ia64.c: Likewise.
3544 * config/sparc/sparc.c: Likewise.
3545 * config/sh/sh.c: Likewise.
3546
3547 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3548
3549 * opts.sh: Quote '+' in regex.
3550
3551 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3552
3553 * c-opts.c (lang_flags): Update for new spelling of flags.
3554 (write_langs): Similarly.
3555 * c.opt: Specify languages.
3556 * opts.h: Remove languages.
3557 * opts.sh: Recognise front-end defined languages.
3558 * doc/sourcebuild.texi: Update.
3559
3560 2003-06-15 Andreas Jaeger <aj@suse.de>
3561
3562 * alloc-pool.c: Convert to ISO C90 prototypes.
3563 * alloc-pool.h: Likewise.
3564 * alias.c: Likewise.
3565 * attribs.c: Likewise.
3566 * bb-reorder.c: Likewise.
3567 * bitmap.h: Likewise.
3568 * bitmap.c: Likewise.
3569 * builtins.c: Likewise.
3570
3571 * tree.h: Convert prototypes of attribs.c to ISO C90.
3572 * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
3573 * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
3574 * expr.h: Convert prototypes of builtins.c to ISO C90.
3575
3576 2003-06-15 Roger Sayle <roger@eyesopen.com>
3577
3578 * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
3579 implement exp, expf and expl built-ins as inline x87 intrinsics.
3580 (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
3581 represent x87's fscale, frndint and f2xm1 insns respectively.
3582 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
3583 to encode x87's "fscale" instruction followed by a pop.
3584 (*frndintxf2): New insn pattern for "frndint".
3585 (*f2xm1xf2): New insn pattern for "f2xm1".
3586
3587 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
3588 UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
3589 UNSPEC_FPATAN.
3590
3591 2003-06-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3592
3593 * gencheck.c (main): Avoid generating duplicate macros.
3594
3595 * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
3596 knowing names of language subdirectories.
3597
3598 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
3599
3600 * c-pch.c (asm_file_name): Remove.
3601 * common.opt: Add more switches.
3602 * flags.h (g_switch_set): Boolify.
3603 * opts.c (g_switch_value, g_switch_set, exit_after_options,
3604 version_flag): Move from toplev.c.
3605 (common_handle_option): Handle more switches from toplev.c.
3606 * toplev.c (display_help, display_target_options, decode_d_option,
3607 print_version): Make non-static, remove prototypes.
3608 (aux_base_name, asm_file_name, aux_info_file_name): Constify.
3609 (version_flag, g_switch_value, g_switch_set, exit_after_options):
3610 Remove.
3611 (independent_decode_option): Move some handlers to opts.c.
3612 * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
3613 exit_after_options, version_flag, display_help, display_target_options,
3614 print_version, decode_d_option): New.
3615
3616 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
3617
3618 * config/alpha/alpha.md: Follow spelling conventions.
3619 * config/arm/arm.c: Likewise.
3620 * config/arm/arm.h: Likewise.
3621 * config/arm/arm.md: Likewise.
3622 * config/arm/crtn.asm: Likewise.
3623 * config/m32r/m32r.c: Likewise.
3624 * config/m32r/m32r.md: Likewise.
3625 * config/rs6000/rs6000.c: Likewise.
3626
3627 2003-06-15 Richard Henderson <rth@redhat.com>
3628
3629 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
3630 insn_locators_initialize.
3631 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3632 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3633 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3634 * config/sh/sh.c (sh_output_mi_thunk): Do it later.
3635
3636 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
3637
3638 * builtins.c (expand_builtin_expect_jump): Remove redundant
3639 tests that are also in any_condjump_p().
3640
3641 2003-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3642
3643 * libgcc2.c: Delete sysV68 L_trampoline section.
3644 * config/m68k/mot3300-crt0.S: Delete file.
3645 * config/m68k/mot3300Mcrt0.S: Likewise.
3646
3647 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
3648
3649 * config/aoutos.h: Remove.
3650 * config.gcc: Remove reference to aoutos.h.
3651 * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
3652
3653 2003-06-14 Kazu Hirata <kazu@cs.umass.edu>
3654
3655 * doc/install.texi: Follow spelling conventions.
3656 * doc/tm.texi: Likewise.
3657 * config/fp-bit.c: Likewise.
3658 * config/arm/arm.c: Likewise.
3659 * config/frv/frv.c: Likewise.
3660 * config/ns32k/NOTES: Likewise.
3661 * config/ns32k/STATUS: Likewise.
3662
3663 2003-06-14 Roger Sayle <roger@eyesopen.com>
3664 Zack Weinberg <zack@codesourcery.com>
3665
3666 * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
3667 * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
3668 * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
3669
3670 * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
3671 * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
3672 * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
3673 * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
3674 * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
3675 * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
3676 * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
3677 * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
3678 * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
3679 * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
3680 * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
3681 * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
3682 * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
3683 * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
3684 * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
3685 * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
3686 * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
3687 * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
3688 * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
3689 * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
3690
3691 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
3692
3693 * opts.sh (POSIXLY_CORRECT): Unset it.
3694
3695 * tree.h (init_function_start): Remove filename and line paramters.
3696 * function.c (init_function_start): Remove filename and line
3697 parameters. Use DECL_SOURCE_LOCATION.
3698 * c-decl.c (store_parm_decls): Adjust init_function_start call.
3699 (c_expand_body_1): Likewise.
3700 * coverage.c (create_coverage): Likewise.
3701 * objc/objc-act.c (build_tmp_function_decl): Set line number to
3702 zero.
3703 (hack_method_prototype): Adjust init_function_start call.
3704
3705 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
3706
3707 PR target/3724
3708 * arm/linux-elf.h (PROFILE_HOOK): Define.
3709
3710 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
3711
3712 PR target/11183
3713 * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
3714
3715 2003-06-14 Roger Sayle <roger@eyesopen.com>
3716
3717 * opts.sh: Work around a mysterious feature in cygwin's gawk
3718 where specifying the input files explicitly has a different
3719 behavior to piping them via stdin.
3720
3721 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
3722
3723 * doc/sourcebuild.texi: Update.
3724
3725 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
3726
3727 PR target/11183
3728 * arm.c (output_move_double): Pass SImode to adjust_address.
3729
3730 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
3731
3732 * Makefile.in: Update to use common.opt and lang_opt_files.
3733 (c-options.c, c-options.h): Remove.
3734 (options.c, options.h): Add.
3735 * c-opts.c: Include options.h not c-options.h.
3736 * common.opt: New file.
3737 * configure, configure.in: Add lang_opt_files.
3738 * opts.c: Include flags.h and diagnostic.h.
3739 (common_handle_option): New.
3740 (handle_option): Update to recognize common options and all
3741 language-dependent options.
3742 * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
3743 (struct cl_option): Make flags of type int.
3744 * opts.h: Flag option with front ends to which it applies.
3745 Handle duplicate options.
3746 * toplev.c (filename): Remove.
3747 (independent_decode_option): Don't handle filenames and -quiet.
3748 (process_options, do_compile): Update.
3749
3750 2003-06-14 Nick Clifton <nickc@redhat.com>
3751
3752 * doc/install.texi (Specific): Add description of different
3753 ARM supported file format targets.
3754
3755 Sat Jun 14 11:12:04 CEST 2003 Jan Hubicka <jh@suse.cz>
3756
3757 * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
3758 inside delay slots.
3759
3760 2003-06-13 Matt Kraai <kraai@alumni.cmu.edu>
3761
3762 * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
3763 * unwind-pe.h (size_of_encoded_value): Do not define if
3764 NO_SIZE_OF_ENCODED_VALUE is defined.
3765
3766 2003-06-13 Roger Sayle <roger@eyesopen.com>
3767
3768 * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
3769 expanding a complex constant into a CONCAT target.
3770
3771 2003-06-13 Zack Weinberg <zack@codesourcery.com>
3772
3773 * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
3774 (ASM_FILE_START_1): Delete.
3775 * config/i386/att.h, config/i386/sco5.h,
3776 config/i386/sysv3.h
3777 (ASM_FILE_START_1): Delete.
3778
3779 2003-06-13 Kelley Cook <kelleycook@wideopenwest.com>
3780
3781 * config/i386/bsd.h: Remove ASM_FILE_START.
3782 * config/i386/djgpp.h: Likewise.
3783 * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
3784
3785 * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
3786 * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
3787
3788 2003-06-13 Vladimir Makarov <vmakarov@redhat.com>
3789
3790 PR bootstrap/10835
3791 * haifa-sched.c (max_lookahead_tries,
3792 cached_first_cycle_multipass_dfa_lookahead,
3793 cached_issue_rate): New variables.
3794 (max_issue): Check the number of tries.
3795 (choose_ready): Calculate max_lookahead_tries.
3796 (sched_init): Check cached_issue_rate.
3797
3798 2003-06-13 Richard Henderson <rth@redhat.com>
3799
3800 * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
3801 * cfgrtl.c (purge_dead_edges): Expect it too.
3802
3803 2003-06-13 Jim Wilson <wilson@tuliptree.org>
3804 Eric Botcazou <ebotcazou@libertysurf.fr>
3805
3806 PR bootstrap/10983
3807 * combine.c (make_extraction): Use gen_lowpart_for_combine
3808 when extracting from a REG and not in the destination of a SET.
3809
3810 2003-06-13 Doug Evans <dje@sebabeach.org>
3811
3812 * tsystem.h (abort): Declare in inhibit_libc case to remove build
3813 warnings for addvsi3, et.al.
3814
3815 2003-06-13 Aldy Hernandez <aldyh@redhat.com>
3816
3817 * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
3818
3819 * simplify-rtx.c (simplify_subreg): Same.
3820
3821 * emit-rtl.c (gen_lowpart_common): Same.
3822
3823 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
3824
3825 * builtins.c: Fix comment typos.
3826 * fold-const.c: Likewise.
3827
3828 2003-06-13 Doug Evans <dje@sebabeach.org>
3829 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3830
3831 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
3832 * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
3833 (m32r_va_arg): Use it.
3834 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
3835 (RETURN_IN_MEMORY): Ditto.
3836
3837 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
3838
3839 * c-typeck.c: Remove #if 0 clauses.
3840
3841 PR other/1494
3842 * config/alpha/openbsd.h, config/i386/openbsd.h,
3843 config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
3844 residual reference to EGCS.
3845
3846 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3847
3848 * arm.c (output_call_mem): If the address references the link-register
3849 use an instruction sequence that avoids early-clobbering IP.
3850 (eliminate_lr2ip): Delete.
3851
3852 2003-06-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3853
3854 * c-format.c (format_types_orig): Disallow '*' width/precision in
3855 asm_fprintf format checks.
3856
3857 2003-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3858
3859 * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
3860 non-integral types from integer register save area slots.
3861
3862 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
3863
3864 * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
3865
3866 2003-06-13 Florian Weimer <fw@deneb.enyo.de>
3867
3868 * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
3869
3870 2003-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
3871
3872 * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
3873 to file_end_indicate_exec_stack.
3874
3875 2003-06-12 Richard Henderson <rth@redhat.com>
3876
3877 PR target/11089
3878 * config/i386/i386.md (sse_movaps): Use an expander to force
3879 one operand to be a register.
3880 (sse_movups): Likewise.
3881
3882 2003-06-13 Doug Evans <dje@sebabeach.org>
3883
3884 Remove some build warnings.
3885 * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
3886 (__do_global_ctors,__do_global_dtors): Ditto.
3887
3888 2003-06-12 Richard Henderson <rth@redhat.com>
3889
3890 PR middle-end/10557
3891 * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
3892
3893 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
3894
3895 * config/m32r/m32r.md: Fix a comment typo.
3896
3897 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3898 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
3899
3900 PR target/10142
3901 * config/sparc/sparc.c (function_arg_record_value_parms): Add
3902 new 'stack' field.
3903 (function_arg_record_value_1): Set 'stack' to 1 if we run out of
3904 integer slots for an integer field.
3905 (function_arg_record_value_3): Shift vector index.
3906 (function_arg_record_value_2): Likewise.
3907 (function_arg_record_value): Initialize 'stack' to 0.
3908 Set 'stack' to 1 if we run out of integer slots for an integer field.
3909 Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
3910
3911 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3912
3913 PR optimization/10955
3914 * unroll.c (unroll_loop): Fix off-by-one bug.
3915
3916 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
3917
3918 * config/rs6000/rs6000.c (function_arg): Remove typo.
3919
3920 2003-06-12 Richard Henderson <rth@redhat.com>
3921
3922 * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
3923 and UNSPEC_DTPOFF.
3924
3925 2003-06-12 Richard Henderson <rth@redhat.com>
3926
3927 PR middle-end/10475
3928 * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
3929 for extracting sub-words.
3930
3931 2003-06-12 Richard Henderson <rth@redhat.com>
3932
3933 PR target/7594
3934 * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
3935 (zero_extendqihi2, zero_extendqisi2): Likewise.
3936
3937 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
3938
3939 * config/rs6000/rs6000.c (function_arg): Always split vectors for
3940 e500 if it's a stdarg function.
3941 (function_arg_advance): Advance 2 registers for vectors in a
3942 stdarg function.
3943 (init_cumulative_args): Initialize stdarg.
3944 (rs6000_spe_function_arg): New.
3945
3946 * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
3947
3948 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
3949
3950 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
3951
3952 2003-06-12 Roger Sayle <roger@eyesopen.com>
3953
3954 PR middle-end/168
3955 * fold-const.c (tree_expr_nonnegative_p): Handle addition
3956 and multiplication of zero extensions, floating point division,
3957 and integer<->fp, fp<->fp and zero extension conversions.
3958 The built-in ceil and floor functions preserve signedness.
3959
3960 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
3961
3962 * ChangeLog: Follow spelling conventions.
3963 * ChangeLog.2: Likewise.
3964 * c-decl.c: Likewise.
3965 * cfgloop.h: Likewise.
3966 * cgraph.c: Likewise.
3967 * coverage.c: Likewise.
3968 * cppcharset.c: Likewise.
3969 * cpphash.h: Likewise.
3970 * cpplex.c: Likewise.
3971 * cpplib.c: Likewise.
3972 * dbxout.c: Likewise.
3973 * df.c: Likewise.
3974 * dwarf2out.c: Likewise.
3975 * dwarfout.c: Likewise.
3976 * emit-rtl.c: Likewise.
3977 * explow.c: Likewise.
3978 * gcov-io.c: Likewise.
3979 * gcov-io.h: Likewise.
3980 * gcov.c: Likewise.
3981 * gengtype.c: Likewise.
3982 * ggc.h: Likewise.
3983 * opts.c: Likewise.
3984 * real.c: Likewise.
3985 * reload.c: Likewise.
3986 * stmt.c: Likewise.
3987
3988 2003-06-12 Janis Johnson <janis187@us.ibm.com>
3989
3990 * doc/install.texi (m32r-*-elf): Change company to Renesas.
3991
3992 Thu Jun 12 20:00:55 CEST 2003 Jan Hubicka <jh@suse.cz>
3993
3994 * basic-block.h (flow_delete_block_noexpunge): Kill.
3995 * cfgrtl.c (flow_delete_block_noexpunge): Merge to
3996 rtl_delete_block.
3997
3998 2003-06-10 Richard Henderson <rth@redhat.com>
3999
4000 PR inline-asm/4823
4001 * reg-stack.c (any_malformed_asm): New.
4002 (check_asm_stack_operands): Set it.
4003 (convert_regs_1): Check it before aborting.
4004
4005 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
4006
4007 * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
4008
4009 2003-06-12 Jakub Jelinek <jakub@redhat.com>
4010
4011 * c-opts.c (complain_wrong_lang): Add on argument.
4012 Print no- switch if on is false.
4013 (c_common_decode_option): Adjust caller.
4014
4015 2003-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4016
4017 * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
4018 to initialize GOT register.
4019
4020 2003-06-12 Roger Sayle <roger@eyesopen.com>
4021
4022 * fold-const.c (tree_expr_nonnegative_p): Add support for
4023 floating point constants, addition and multiplication.
4024
4025 2003-06-12 J"orn Rennecke <joern.rennecke@superh.com>
4026
4027 * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
4028 constraint modifier for operand 0.
4029
4030 2003-06-12 Hans-Peter Nilsson <hp@axis.com>
4031
4032 Don't warn on dollars in builtin macro definitions,
4033 e.g. __REGISTER_PREFIX__.
4034 * cpphash.h (struct cpp_reader): Move member warn_dollars...
4035 * cpplib.h (struct cpp_options): ...to here. Change type to
4036 unsigned char.
4037 * cppinit.c (cpp_create_reader): Set it to 1 here.
4038 (post_options): Don't set it here.
4039 * c-opts.c (c_common_init_options): Reset it to 0 here.
4040 (finish_options): Set it here.
4041 * cpplex.c (forms_identifier_p): Tweak for new location of
4042 warn_dollars.
4043
4044 * configure.in (assembler dwarf2 debug_line support): Define insn
4045 for cris-*-* and mmix-*-*.
4046 * configure: Regenerate.
4047
4048 2003-06-11 Uwe Stieber <uwe@kaos-group.de>
4049
4050 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
4051 powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
4052 (sh-*-elf*): Add sh*-*-kaos* support.
4053 * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
4054 config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
4055 config/sh/kaos-sh.h: New files.
4056
4057 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
4058
4059 * gcse.c (fis_get_condition): Make it a global function.
4060 * reload1.c (reload_cse_move2add): Detect implicit sets.
4061 * rtl.h: Add a prototype for fis_get_condition.
4062
4063 2003-06-11 Richard Henderson <rth@redhat.com>
4064
4065 * stmt.c (expand_asm_operands): Don't warn for memories with
4066 queued addresses.
4067
4068 2003-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
4069
4070 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
4071 brackets.
4072
4073 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
4074
4075 * hooks.c (hook_int_size_t_constcharptr_int_0): New.
4076 * hooks.h (hook_int_size_t_constcharptr_int_0): New.
4077 * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
4078 (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
4079 * langhooks.c (lhd_decode_option): Remove.
4080 * langhooks.h (struct lang_hooks): Remove decode_option.
4081 * opts.c (handle_option): No longer use decode_option.
4082
4083 2003-06-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4084
4085 * cfgloopanal.c (variable_initial_value): Update the set of altered
4086 registers correctly.
4087
4088 2003-06-11 Roger Sayle <roger@eyesopen.com>
4089 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4090
4091 * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
4092 * config/i386/netbsd-elf.h: Likewise.
4093 * config/m32r/m32r.h: Likewise.
4094 * config/mn10300/mn10300.h: Likewise.
4095 * config/stormy16/stormy16.h: Likewise.
4096 * config/v850/v850.h: Likewise.
4097 * config/vax/netbsd-elf.h: Likewise.
4098 * config/xtensa/elf.h: Likewise.
4099 * config/xtensa/linux.h: Likewise.
4100
4101 2003-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4102
4103 * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
4104 DWARF 2 default.
4105
4106 * config/mips/dbxmdebug.h: New file.
4107 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
4108 gas and --with-stabs.
4109
4110 2003-06-11 Ulrich Weigand <uweigand@de.ibm.com>
4111
4112 * expr.c (can_move_by_pieces): align argument may be unused.
4113
4114 2003-06-11 J"orn Rennecke <joern.rennecke@superh.com>
4115
4116 * expr.c (convert_move): Handle moves between two CONCATs.
4117
4118 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
4119
4120 * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
4121 !TARGET_H8300.
4122
4123 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
4124
4125 * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
4126 * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
4127 (TARGET_RTL_DUMP): Likewise.
4128 (TARGET_SWITHCES): Remove -mrtl-dump.
4129
4130 2003-06-10 Richard Henderson <rth@redhat.com>
4131
4132 * optabs.c (gen_cond_trap): Fix prepare_operand typo.
4133
4134 2003-06-10 Richard Henderson <rth@redhat.com>
4135
4136 * config/ia64/ia64.md (call_gp): Fix memory mode.
4137
4138 2003-06-10 James E Wilson <wilson@tuliptree.org>
4139
4140 PR target/8812
4141 * reload1.c (choose_reload_regs): For equiv reg, add loop over all
4142 hard regs for reload_reg_used_at_all and reg_class_contents checks.
4143
4144 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
4145
4146 * config/h8300/h8300.c (print_operand): Remove support for
4147 operand character 'b'.
4148 Add the AND case to operand character 'c'.
4149 * config/h8300/h8300.md (two anonymous patterns): Replace
4150 operand character 'b' with 'c'.
4151
4152 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
4153
4154 * config/h8300/h8300.c (print_operand): Remove support for
4155 operand character 'u'.
4156
4157 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
4158
4159 * configure.in: Fix typo.
4160 * configure: Regenerate.
4161
4162 2003-06-10 Loren James Rittle <ljrittle@acm.org>
4163
4164 * config/alpha/alpha.c (unicosmk_file_end): Add conditional
4165 compilation guard.
4166
4167 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
4168
4169 * sh-protos.h (function_symbol): Declare.
4170 * sh.c (expand_block_move, expand_ashiftrt): Use it.
4171 (sh_expand_prologue, sh_expand_epilogue): Likewise.
4172 (sh_initialize_trampoline): Likewise.
4173 (function_symbol): New function.
4174 * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
4175 (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
4176 (call_value_pop, shcompact_return_tramp): Likewise.
4177
4178 * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
4179
4180 * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
4181 target register.
4182
4183 2003-06-10 DJ Delorie <dj@redhat.com>
4184
4185 * doc/md.texi (Machine Constraints): Document stormy's Z
4186 constraint.
4187
4188 2003-06-10 Geoffrey Keating <geoffk@apple.com>
4189
4190 * except.c (call_site_base): Mark with GTY.
4191
4192 2003-06-10 Richard Earnshaw <rearnsha@arm.com>
4193
4194 * arm-proto.h: Convert to ISO C90 prototypes.
4195 * arm.c: Likewise.
4196
4197 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
4198
4199 * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
4200
4201 2003-06-10 Steve Ellcey <sje@cup.hp.com>
4202
4203 * calls.c (expand_call): Convert structure_value_addr to Pmode if
4204 necessary.
4205
4206 2003-06-10 Andrew Haley <aph@redhat.com>
4207
4208 * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
4209 (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
4210 (lhd_decl_ok_for_sibcall): New.
4211 * langhooks.c (lhd_decl_ok_for_sibcall): New.
4212 * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
4213 * calls.c (expand_call): Check lang_hook before generating a
4214 sibcall.
4215
4216 2003-06-10 DJ Delorie <dj@redhat.com>
4217
4218 * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
4219 which matches (const_int 0) for addhi3.
4220 * config/stormy16/stormy16.md: Document known constraints.
4221 (addhi3): Handle adding zero.
4222
4223 2003-06-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4224
4225 * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
4226 * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
4227 * config/m32r/m32r-protos.h: Prototype it.
4228
4229 2003-06-10 Janis Johnson <janis187@us.ibm.com>
4230
4231 * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
4232 common to rs6000 sysv targets.
4233 * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
4234 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
4235
4236 2003-06-10 Nick Clifton <nickc@redhat.com>
4237
4238 * config.gcc: Add arm-wince-pe target.
4239 * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
4240 Add comment about default apcs26 support.
4241 * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
4242 multilib.
4243 (MULTILIB_DIRNAMES): Add 'apcs32'.
4244 * config/arm/t-wince-pe: New makefile fragment.
4245 * config/arm/wince-pe.h: New file. Overrides a few definitions
4246 in arm/pe.h
4247
4248 2003-06-10 Roger Sayle <roger@eyesopen.com>
4249
4250 * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
4251 * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
4252 when x is easily negated and f is sin, tan or atan.
4253 (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
4254 sin(x) with flag_unsafe_math_optimizations.
4255 (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
4256 sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
4257
4258 2003-06-10 Roger Sayle <roger@eyesopen.com>
4259
4260 * fold-const.c (fold <EQ_EXPR>): Don't fold x == x only if x
4261 is a floating point type *and* we currently honor NaNs.
4262 (fold <NE_EXPR>): Likewise.
4263
4264 2003-06-10 Mark Mitchell <mark@codesourcery.com>
4265
4266 PR c++/11131
4267 * tree-inline.c (inlinable_function_p): Call the language-specific
4268 hook early.
4269
4270 2003-06-09 David Taylor <dtaylor@emc.com>
4271
4272 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg): Skip over
4273 the f_res field.
4274
4275 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
4276
4277 * configure.in: Remove references to host_truncate_target.
4278 * configure: Regenerate.
4279 * config.gcc: Remove references to truncate_target,
4280 host_truncate_target.
4281
4282 * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
4283 Replace "build_canonical" with build, "host_canonical" with host.
4284 * configure.in: Use GCC_TOPLEV_SUBDIRS.
4285 * aclocal.m4: Include ../config/acx.m4.
4286 * configure: Regenerate.
4287
4288 2003-06-09 David Taylor <dtaylor@emc.com>
4289
4290 * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
4291 bytes of padding in the __va_list_tag structure a name (reserved).
4292
4293 2003-06-09 Jason Merrill <jason@redhat.com>
4294
4295 * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
4296
4297 2003-06-09 Osku Salerma <osku@iki.fi>
4298
4299 * c-format.c (check_format_string, get_constant): New.
4300 (handle_format_attribute, handle_format_arg_attribute,
4301 decode_format_attr): Change to use above functions.
4302
4303 2003-06-09 Richard Henderson <rth@redhat.com>
4304
4305 * stmt.c (expand_asm_operands): Re-word warning.
4306
4307 2003-06-08 Andrew Pinski <pinskia@physics.uc.edu>
4308
4309 PR target/8787
4310 * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
4311 if -masm=intel.
4312
4313 2003-06-09 James E Wilson <wilson@tuliptree.org>
4314
4315 * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
4316 config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
4317 Add libgcc exception.
4318
4319 2003-06-09 David Edelsohn <edelsohn@gnu.org>
4320 Ayal Zaks <gcchaifa@us.ibm.com>
4321
4322 * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
4323 (insvsi*): Add insert_word attribute.
4324 * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
4325 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
4326 power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
4327
4328 2003-06-09 Kazu Hirata <kazu@cs.umass.edu>
4329
4330 * fold-const.c (fold): Fix a comment typo.
4331
4332 2003-06-09 Nathan Sidwell <nathan@codesourcery.com>
4333
4334 * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
4335 removed.
4336
4337 2003-06-09 J"orn Rennecke <joern.rennecke@superh.com>
4338
4339 * sh.c (gen_block_redirect): Use locators.
4340
4341 2003-06-09 Richard Earnshaw <rearnsha@arm.com>
4342
4343 * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
4344 cast to int.
4345
4346 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4347
4348 * configure.in: Assume gas 2.14 and above can handle MIPS relocation
4349 operators.
4350 * configure: Regenerated.
4351
4352 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4353 Alexandre Oliva <aoliva@redhat.com>
4354
4355 * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
4356 (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
4357 (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
4358 n32/64 PIC.
4359 (MUST_SAVE_REGISTERS): Delete.
4360 * config/mips/mips.c (mips_frame_info): Remove extra_size field.
4361 (machine_function): Add global_pointer field.
4362 (mips_classify_constant): Check for (const $gp) using pointer equality
4363 with pic_offset_table_rtx.
4364 (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4365 (mips_restore_gp): Use current_function_outgoing_args_size.
4366 (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
4367 GP_REG_FIRST + 28. Handle relocation strings that have
4368 more than one '('.
4369 (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4370 (mips_global_pointer): New function.
4371 (mips_save_reg_p): New function, mostly split out from...
4372 (compute_frame_size): ...here. Remove handling of extra_size.
4373 Reclaim args_size if no variables depend on it. Don't treat gp
4374 as a special case: handle it in the main GPR loop.
4375 (mips_initial_elimination_offset): Fix comment.
4376 (save_restore_insns): Save every register in the GPR mask,
4377 removing distinction between mask and real_mask.
4378 (mips_output_function_prologue): Update .frame psuedo-op after
4379 the removal of extra_size. Move the SVR4 PIC stack allocation
4380 and cprestore instructions to mips_expand_prologue.
4381 (mips_gp_insn): New function.
4382 (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
4383 the chosen global pointer. Handle SVR4 PIC stack allocation
4384 in the same way as other ABIs. Adjust varargs code accordingly.
4385 Emit a cprestore insn after allocating the stack. Use mips_gp_insn
4386 to emit the loadgp sequence. Follow it with a loadgp_blockage
4387 if not using explicit relocs.
4388 (mips_output_function_epilogue): Reinstate the default gp register.
4389 (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
4390 (mips16_optimize_gp): Likewise.
4391 * config/mips/mips.md (UNSPEC_LOADGP): Remove.
4392 (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
4393 (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
4394 (loadgp): Remove.
4395 (loadgp_blockage, cprestore): New instructions.
4396 (builtin_setjmp_setup): Implement using emit_move_insn. Use
4397 pic_offset_table_rtx.
4398 (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
4399 (builtin_longjmp): Use gen_raw_REG to force use of $28.
4400
4401 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4402
4403 * config/mips/mips-protos.h (mips_output_division): Declare.
4404 * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
4405 (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
4406 (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
4407 (TARGET_CHECK_ZERO_DIV): New macro.
4408 (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
4409 * config/mips/mips.c (mips_output_division): New function.
4410 * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
4411 account when calculating the default length of a division.
4412 (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
4413 Enable regardless of optimization level. Use mips_output_division.
4414 (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
4415 udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
4416 divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
4417 modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
4418 udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
4419 umoddi3_internal): Remove.
4420
4421 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4422
4423 * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
4424 (mips_sw_reg_names): Likewise.
4425 (mips_regno_to_class): Change hilo entry to NO_REGS.
4426 (hilo_operand): Use MD_REG_P.
4427 (extend_operator): New predicate.
4428 (override_options): Remove 'a' constraint.
4429 (mips_secondary_reload_class): Remove hilo handling. Also remove
4430 handling of (plus sp reg) reloads for mips16.
4431 (mips_register_move_cost): Remove hilo handling.
4432 * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
4433 (MD_REG_LAST): Remove hilo from range.
4434 (HILO_REGNUM): Delete.
4435 (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
4436 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4437 (PREDICATE_CODES): Add entry for extend_operator.
4438 (DEBUG_REGISTER_NAMES): Change hilo entry to "".
4439 * config/mips/mips.md: Remove hilo clobbers wherever they occur.
4440 Remove constraints from multiplication define_expands. Remove
4441 clobbers from "decorative" define_expand patterns.
4442 (UNSPEC_HILO_DELAY): Delete.
4443 (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
4444 (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
4445 Adjust C code to just emit insns for !TARGET_64BIT.
4446 (mulsidi3_internal): Rename to mulsidi3_32bit.
4447 (mulsidi3_64bit): Use a "d" constraint for the destination.
4448 Use extend_operator so that the pattern can handle umulsidi3 as well.
4449 Split the instruction after reload.
4450 (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
4451 (umulsidi3_internal): Rename to umulsidi3_32bit.
4452 (umulsidi3_64bit): Remove.
4453 (*smsac_di, *umsac_di): Line-wrap fixes.
4454 (udivsi3_internal): Don't allow operand 2 to be constant.
4455 (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
4456 (movdi_internal2, movsi_internal): Remove hilo alternatives.
4457 (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
4458
4459 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
4460
4461 PR target/10913
4462 * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
4463 PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
4464 PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
4465 PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
4466 SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
4467 (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
4468 PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
4469 asm_out_text_file with asm_out_file.
4470 * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
4471 * config/mips/elf.h (TEXT_SECTION): Undefine.
4472 * config/mips/elf64.h (TEXT_SECION): Undefine.
4473 * config/mips/openbsd.h (TEXT_SECION): Undefine.
4474 * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
4475 (override_options): Disable small-data optimizations unless using
4476 gas or explicit relocations.
4477 (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
4478 iris6_asm_named_section, iris6_asm_file_start): Remove code for
4479 handling TARGET_FILE_SWITCHING.
4480 (copy_file_data): Move into TARGET_IRIX6 block.
4481
4482 2003-06-08 Richard Henderson <rth@redhat.com>
4483
4484 * expr.h (EXPAND_MEMORY): New.
4485 * expr.c (expand_expr): Check it.
4486 * stmt.c (expand_asm_operands): Provide it when the constraint
4487 requires a memory. Warn for memory input constraints without
4488 a memory operand.
4489
4490 2003-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4491
4492 * varasm.c: Don't include c-tree.h.
4493
4494 2003-06-08 Andreas Jaeger <aj@suse.de>
4495
4496 * predict.h: Convert to ISO C90 prototypes.
4497 * predict.c: Likewise.
4498 * tree-dump.h: Likewise.
4499 * tree-dump.c: Likewise.
4500 * diagnostic.h: Likewise.
4501 * diagnostic.c: Likewise.
4502 * combine.c: Likewise.
4503
4504 * rtl.h: Convert prototypes of combine.c to ISO C90.
4505
4506 Sun Jun 8 21:27:41 CEST 2003 Jan Hubicka <jh@suse.cz>
4507
4508 * cfglayout.c (insn_scope): New static function
4509 (block_locators_*, line_locators*, file_locators*): New static varrays.
4510 (scope_to_insns_initialize): Use them.
4511 (insn_line, insn_file): New functions.
4512 (scope_to_insns_finalize): Use insn_scope.
4513 (prologue_locator, epilogue_locator): New global variables.
4514 * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
4515 make_call_insn_raw, emit_copy_of_insn_after): Use locators.
4516 (emit_insn_after_scope, emit_insn_before_scope
4517 emit_jump_insn_after_scope, emit_jump_insn_before_scope
4518 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4519 (emit_insn_after_setloc, emit_insn_before_setloc
4520 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4521 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4522 use locators.
4523 * final.c (notice_source_line): Use locators.
4524 (final_start_function): Set initial source file and line.
4525 (final_scan_insn): Use locators.
4526 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4527 noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
4528 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4529 noce_process_if_block, find_cond_trap): Likewise.
4530 * integrate.c (copy_insn_list): Likewise.
4531 * jump.c (duplicate_loop_exit_test): LIkewise.
4532 * print-rtl.c (print_rtx): Print locators.
4533 * recog.c (peephole2_optimize): Likewise.
4534 * rtl.h (INSN_SCOPE): Remove.
4535 (emit_insn_after_scope, emit_insn_before_scope
4536 emit_jump_insn_after_scope, emit_jump_insn_before_scope
4537 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4538 (emit_insn_after_setloc, emit_insn_before_setloc
4539 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4540 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4541 (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
4542 * unroll.c (copy_loop_body): Use locators.
4543 * function.c (set_insn_locators): New function.
4544 (thread_prologue_and_epilogue_insns): Set the locators accordingly.
4545
4546 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
4547
4548 * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
4549 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
4550 _fixsfdi _fixunssfdi.
4551 (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
4552 popcounthi2.
4553 (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
4554 * config/h8300/clzhi2.c: New.
4555 * config/h8300/ctzhi2.c: Likewise.
4556 * config/h8300/parityhi2.c: Likewise.
4557 * config/h8300/popcounthi2.c: Likewise.
4558
4559 Sun Jun 8 15:52:17 CEST 2003 Jan Hubicka <jh@suse.cz>
4560
4561 * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
4562 * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
4563
4564 * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
4565 (dump_bb): New based on old dump_bb in cfgrtl.c
4566 (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
4567 * cfghooks.h (cfgh_verify_flow_info): Return status.
4568 * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
4569 * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
4570 (dump_bb): Remove generic parts.
4571 (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
4572 (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
4573
4574 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
4575
4576 * Makefile.in: Rename options.c and options.h to c-options.c and
4577 c-options.h.
4578 (OBJS): Remove options.o.
4579 * c-opts.c: Don'tInclude c-options.h instead of options.h.
4580 * opts.c: Don't include options.h.
4581 (find_opt): Can't use enum opt_code or N_OPTS.
4582 * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
4583 * opts.sh: ... here.
4584
4585 2003-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4586 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4587
4588 PR pch/9830
4589 * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
4590 if HAVE_MINCORE is defined.
4591 (MAP_FAILED): Define if not defined.
4592 (gt_pch_save): Test against MAP_FAILED.
4593 (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
4594 the mapping address to the preferred base after checking it
4595 is possible to do so. Test against MAP_FAILED.
4596 * configure.in: Test for the presence of mincore in libc.
4597 * config.in: Regenerate.
4598 * configure: Regenerate.
4599
4600 2003-06-07 Richard Henderson <rth@redhat.com>
4601
4602 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
4603 conditional compilation guard.
4604
4605 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
4606
4607 * optabs.c (expand_abs): Set result_unsignedp to 1 if
4608 flag_trav is zero.
4609
4610 2003-06-07 Richard Henderson <rth@redhat.com>
4611
4612 * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
4613
4614 2003-06-07 Richard Henderson <rth@redhat.com>
4615
4616 * basic-block.h (EDGE_SIBCALL): New.
4617 (EDGE_ALL_FLAGS): Update.
4618 * cfg.c (dump_edge_info): Add sibcall name.
4619 * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
4620 * cfgrtl.c (purge_dead_edges): Handle sibcalls.
4621
4622 2003-06-07 Andreas Jaeger <aj@suse.de>
4623
4624 * mklibgcc.in (lib2funcs): Remove _exit.
4625 * libgcc2.c: Remove L_exit.
4626 * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
4627
4628 * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4629
4630 * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4631
4632 * ggc.h: Convert to ISO C90 prototypes.
4633 * ggc-none.c: Likewise.
4634 * ggc-common.c: Likewise.
4635 * ggc-page.c: Likewise.
4636 * ggc-simple.c: Likewise.
4637
4638 * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
4639
4640 * system.h: Poison INIT_SECTION_PREAMBLE.
4641
4642 2003-06-07 Zack Weinberg <zack@codesourcery.com>
4643
4644 * config.gcc (with_cpu handling): Translate sparc64 in
4645 $machine to --with-cpu=v9.
4646 * config/alpha/alpha.c
4647 (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
4648 (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
4649
4650 * target.h: New hook asm_out.file_end.
4651 * target.h: Update to match. New hook macro TARGET_ASM_FILE_END.
4652 * toplev.c (compile_file): Use targetm.asm_out.file_end.
4653 * system.h: Poison ASM_FILE_END.
4654 * varasm.c (file_end_indicate_exec_stack): New.
4655 * output.h: Prototype it.
4656 * doc/tm.texi: Document TARGET_ASM_FILE_END and
4657 file_end_indicate_exec_stack. Delete references to attasm.h.
4658
4659 * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
4660 (ASM_FILE_END): Delete; move code...
4661 * config/darwin.c (darwin_file_end): Here; new function.
4662 * config/darwin-protos.h: Prototype it.
4663 * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
4664 rename unicosmk_file_end.
4665 * config/arm/aof.h (ASM_FILE_END): Delete; move code...
4666 * config/arm/arm.c (aof_file_end): ... here; new static function.
4667 Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
4668 Make aof_dump_imports and aof_dump_pic_table static.
4669 * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
4670 Set TARGET_ASM_FILE_END to avr_file_end.
4671 * config/c4x/c4x.c (c4x_file_end): Make static. Take no arguments.
4672 Set TARGET_ASM_FILE_END to c4x_file_end.
4673 * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
4674 make static. Take no arguments. Set TARGET_ASM_FILE_END to
4675 h8300_file_end.
4676 * config/i370/i370.h (ASM_FILE_END): Delete; move code...
4677 * config/i370/i370.c (i370_file_end): ... here; new static function.
4678 Set TARGET_ASM_FILE_END to i370_file_end.
4679 * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
4680 Take no arguments. Call file_end_indicate_exec_stack if
4681 NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
4682 * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4683 Define NEED_INDICATE_EXEC_STACK to 0.
4684 * config/i386/linux.h, config/i386/linux64.h: Redefine
4685 NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
4686 * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
4687 i386_pe_file_end. Take no arguments. Use ix86_file_end.
4688 * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
4689 ia64_hpux_file_end, make static. Take no arguments.
4690 * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
4691 commands_in_prologues, commands_in_epilogues): Delete.
4692 (function_epilogue): Update to match.
4693 * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
4694 make static. Take no arguments.
4695 (iris6_asm_file_end): Rename iris6_file_end, make static, use
4696 mips_file_end, take no arguments.
4697 Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
4698 appropriate.
4699 * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
4700 make static, take no arguments. Set TARGET_ASM_FILE_END to
4701 mmix_file_end.
4702 * config/pa/pa.c (output_deferred_plabels): Make static, take
4703 no arguments. Set TARGET_ASM_FILE_END to output_deferred_plabels.
4704 * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
4705 (ASM_FILE_END): Delete; move code...
4706 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
4707 new static function.
4708
4709 * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
4710 * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
4711 Don't set ASM_FILE_END.
4712 * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
4713 * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
4714 * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
4715 file_end_indicate_exec_stack; don't set ASM_FILE_END.
4716 * config/alpha/unicosmk.h, config/i386/cygming.h
4717 * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4718 * config/arm/arm-protos.h, config/alpha/alpha-protos.h
4719 * config/avr/avr-protos.h, config/c4x/c4x-protos.h
4720 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
4721 * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
4722 * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
4723
4724 Sat Jun 7 18:32:13 CEST 2003 Jan Hubicka <jh@suse.cz>
4725
4726 * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
4727 specified.
4728
4729 Sat Jun 7 15:20:01 CEST 2003 Jan Hubicka <jh@suse.cz>
4730
4731 * Makefile.in (stageprofile_build): Kill redundant target.
4732 * i386.c (mdep_reorg): Don't pad jumps for Athlon.
4733
4734 2003-06-07 Andreas Jaeger <aj@suse.de>
4735
4736 * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
4737
4738 * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
4739 * config/dsp16xx/dsp16xx.h: Likewise.
4740 * config/i386/i386.h: Likewise.
4741 * config/ip2k/ip2k.h: Likewise.
4742
4743 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
4744
4745 * Makefile.in (OJBS, c-opts.o): Update.
4746 (c-options.c, c-options.h): Rename options.h and options.c.
4747 (options.h): Rename options_.h.
4748 (opts.o): New.
4749 * c-common.h (c_common_handle_option): Replace c_common_decode_option.
4750 (c_common_init_options): Update prototype.
4751 * c-lang.c (c_init_options): Update prototype.
4752 (LANG_HOOKS_HANDLE_OPTION): Override.
4753 (LANG_HOOKS_DECODE_OPTION): Drop.
4754 * c-opts.c: Include opts.h and options.h instead of c-options.h
4755 and c-options.c.
4756 (lang_flags): Move to file scope.
4757 (find_opt, c_common_decode_option): Remove.
4758 (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
4759 CL_REJECT_NEGATIVE): Move to opts.h.
4760 (missing_arg): Update prototype.
4761 (c_common_init_options): Update for new prototype.
4762 (c_common_handle_options): Filenames are passed as N_OPTS.
4763 * hooks.c (hook_int_void_0): New.
4764 * hooks.h (hook_int_void_0): New.
4765 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
4766 (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
4767 (LANG_HOOKS_INITIALIZER): Update.
4768 * langhooks.h (init_options): Update.
4769 (handle_option): New.
4770 * opts.c, opts.h: New files.
4771 * opts.sh: Update c file to include opts.h and options.h.
4772 * toplev.c: Include opts.h; change options.h to options_.h.
4773 (parse_options_and_default_flags): Get lang_mask, use
4774 handle_option for language-specific handling.
4775 * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
4776 (LANG_HOOKS_HANDLE_OPTION): Override.
4777 (objc_init_options): Update.
4778
4779 2003-06-07 Magnus Kreth <magnus.kreth@gmx.de>
4780 Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
4781
4782 PR other/7031
4783 * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
4784 gcov.
4785
4786 2003-06-07 Kelley Cook <kelleycook@wideopenwest.com>
4787
4788 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
4789 section names.
4790 * configure: Regenerate.
4791
4792 2003-06-07 Alan Modra <amodra@bigpond.net.au>
4793
4794 * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
4795
4796 2003-06-06 James E Wilson <wilson@tuliptree.org>
4797
4798 PR inline-asm/10890
4799 * reload1.c (merge_assigned_reloads): Abort only if two reloads have
4800 different in fields.
4801
4802 2003-06-06 Nathanael Nerode <neroden@gcc.gnu.org>
4803
4804 * configure.in: Make $(target_subdir) correspond with top level usage.
4805 * Makefile.in: Likewise.
4806 * configure: Regenerate.
4807
4808 2003-06-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4809
4810 * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
4811 ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
4812 unsigned HOST_WIDE_INT.
4813 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
4814 Likewise.
4815 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
4816 Likewise.
4817
4818 2003-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4819
4820 * doc/install.texi (Prerequisites): New section documenting
4821 tools and packages necessary prior to building and/or
4822 modifying GCC.
4823 * doc/install.texi2html: Also generate prerequisites.html.
4824
4825 2003-06-06 Richard Earnshaw <rearnsha@arm.com>
4826
4827 PR target/11052
4828 * ifcvt.c (noce_process_if_block): Fail if the destination has
4829 side-effects.
4830
4831 2003-06-06 Jason Merrill <jason@redhat.com>
4832
4833 * stmt.c (resolve_asm_operand_names): Rename from
4834 resolve_operand_names. No longer static. Avoid needless copying.
4835 Don't build array of constraints.
4836 (expand_asm_operands): Build it here.
4837 * tree.h: Declare resolve_asm_operand_names.
4838
4839 * stmt.c (expand_decl): Put artificial vars into registers even
4840 when not optimizing, and don't mark the regs as user vars.
4841
4842 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4843
4844 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
4845 of the generated register.
4846
4847 2003-06-06 Daniel Jacobowitz <drow@mvista.com>
4848
4849 * config.gcc: Add a missing sparc64 case.
4850
4851 2003-06-06 Jakub Jelinek <jakub@redhat.com>
4852
4853 * mklibgcc.in: Propagate .note.GNU-stack section if needed into
4854 the .hidden assembly stubs.
4855
4856 2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
4857
4858 * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
4859 and x86_64-*-*.
4860
4861 * config/i386/mmintrin.h: Update version and add alternate
4862 intrinsic names.
4863 * config/i386/xmmintrin.h: Likewise.
4864
4865 * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
4866 intrinsics to ...
4867 * config/i386/emmintrin.h: Here. New file.
4868
4869 2003-06-06 Roger Sayle <roger@eyesopen.com>
4870
4871 * fold-const.c (fold <ABS_EXPR>): Re-fold the result of folding
4872 fabs(-x) into fabs(x). Use tree_expr_nonnegative_p to determine
4873 when the ABS_EXPR (fabs or abs) is not required.
4874 (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
4875 always nonnegative from fold to here. Additionally, cabs and fabs
4876 are always non-negative, and pow and atan are non-negative if
4877 their first argument is non-negative.
4878
4879 * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
4880 Evaluate cabs of a constant at compile-time. Convert cabs of a
4881 non-complex argument into fabs. Convert cabs(z) into
4882 sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
4883 -funsafe-math-optimizations or -ffast-math.
4884 (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
4885 Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
4886
4887 Thu Jun 5 20:51:09 CEST 2003 Jan Hubicka <jh@suse.cz>
4888
4889 * sourcebuild.texi (Front End Directory): Document new hooks.
4890
4891 Fri Jun 6 11:02:35 CEST 2003 Jan Hubicka <jh@suse.cz>
4892
4893 * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
4894 * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
4895 stack frames.
4896 (pro_epilogue_adjust_stack_rex64_2): New pattern
4897
4898 Fri Jun 6 11:03:14 CEST 2003 Jan Hubicka <jh@suse.cz>
4899 Pop Sebastian
4900 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4901
4902 * cfghooks.h, cfghooks.c: New files.
4903 * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
4904 (OBJS): Add cfghooks.o.
4905 (cfghooks.o): New rule.
4906 * basic-block.h (split_edge): Rename to rtl_split_edge.
4907 (verify_flow_info): Rename to rtl_verify_flow_info.
4908 (cfghooks.h): Included here.
4909 * cfgrtl.c (split_edge): Renamed rtl_split_edge.
4910 (verify_flow_info): Renamed rtl_verify_flow_info.
4911 * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
4912
4913 * basic-block.h (split_block, split_edge, flow_delete_block,
4914 redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
4915 (flow_delete_block_noexpunge): Return void.
4916 * cfg.c (verify_flow_info): New function.
4917 * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
4918 try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
4919 Use delete_block.
4920 * cfglayout.c (function_footer): Rename to...
4921 (cfg_layout_function_footer): ... this variable
4922 (unlink_insn_chain): Make global.
4923 (fixup_reorder_chain, record_effective_endpoints): Update.
4924 (cleanup_unconditional_jumps): Use delete_block.
4925 (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
4926 (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
4927 (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
4928 * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block): Delete.
4929 (cfg_layout_function_footer): Declare.
4930 * cfgloopmanip (split_loop_bb): Do not update RBI.
4931 (remove_bbs): Use delete_block.
4932 (loop_reidrect_edge, loop_delete_branch_edge): Use
4933 redirect_edge_and_branch.
4934 (create_preheader): Use split_block and redirect_edge_and_branch_force.
4935 (split_edge_with): Likewise.
4936 * cfgrtl.c: Include cfglayout.h
4937 (split_edge): Rename to ...
4938 (rtl_split_edge) ... this one; make local.
4939 (redirect_edge_and_branch): Rename to ...
4940 (rtl_redirect_edge_and_branch) ... this one; make local.
4941 (redirect_edge_and_branch_force): Rename to ...
4942 (rtl_redirect_edge_and_branch_force) ... this one; make local.
4943 (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
4944 (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
4945 cfglayout.c; update to directly call RTL counterparts.
4946 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
4947 * ifcvt.c (find_cond_trap): Use delete_block.
4948 (find_if_case_1): Use delete_block.
4949 (find_if_case_2): Use delete_block.
4950 * rtl.h (unlink_insn_chain): Declare.
4951 * toplev.c (rtl_reigster_cfg_hooks): New.
4952
4953 2003-06-05 Richard Henderson <rth@redhat.com>
4954
4955 * recog.c (peephole2_optimize): Revert last change.
4956
4957 2003-06-05 Richard Henderson <rth@redhat.com>
4958
4959 * recog.c (peephole2_optimize): Don't split block unless
4960 can_throw_internal.
4961
4962 2003-06-06 Kazu Hirata <kazu@cs.umass.edu>
4963
4964 * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
4965 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
4966
4967 2003-06-05 Kelley Cook <kelleycook@wideopenwest.com>
4968
4969 PR optimization/4490
4970 * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
4971 * doc/invoke.texi (m96bit-long-double, m128bit-long-double): Reword
4972 documentation to accurately reflect what these options do.
4973
4974 2003-06-06 Kaz Kojima <kkojima@gcc.gnu.org>
4975
4976 * config/sh/linux.h (STARTFILE_SPEC): Handle -pie. Simplify.
4977 (ENDFILE_SPEC): Redefine to handle -pie.
4978
4979 2003-06-05 Phil Edwards <phil@jaj.com>
4980
4981 * Makefile.in (qmtest-g++): Use target_alias, not target.
4982
4983 2003-06-05 Per Bothner <pbothner@apple.com>
4984
4985 * toplev.c (push_srcloc): Simplify behavior to save current location
4986 and set current location to parameters.
4987 (pop_srcloc): Simplify semantics.
4988 (lang_dependent_init): Remove now-useless initial push_srcloc.
4989
4990 2003-05-06 Richard Henderson <rth@redhat.com>
4991
4992 * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
4993 language-specific tree codes.
4994
4995 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4996
4997 PR middle-end/9986
4998 * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
4999 BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
5000
5001 Thu Jun 5 18:32:46 CEST 2003 Jan Hubicka <jh@suse.cz>
5002
5003 * install.tex: Document profiledbootstrap.
5004
5005 * configure.in: Add support for lang.stageprofile and
5006 lang.stagefeedback
5007 * Makefile.in (clean, distclean): Kill new stages
5008 (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
5009 (STAGE2_FLAGS_TO_PASS): ... this one.
5010 (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
5011 (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
5012 (stageprofile_build, stageprofile_copy, stagefeedback_build,
5013 stagefeedback_copy): New.
5014 (restageprofile, restagefeedback, stageprofile-start,
5015 stageprofile, stagefeedback-start): Likewise.
5016
5017 2003-06-05 David Miller <davem@redhat.com>
5018 Richard Henderson <rth@redhat.com>
5019
5020 * optabs.c (HAVE_conditional_trap): Provide default.
5021 (gen_conditional_trap): Likewise.
5022 (init_optabs): Merge init_traps.
5023 (gen_cond_trap): Use prepare_operand. Restructure and avoid ifdef.
5024
5025 Thu Jun 5 14:59:44 CEST 2003 Jan Hubicka <jh@suse.cz>
5026
5027 * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
5028 is REG for nonzero_bits (REG) == 8.
5029
5030 Thu Jun 5 13:23:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5031
5032 * i386.md (align): Fix warning; clarify what to do when no p2align
5033 is available.
5034
5035 2003-06-05 Nick Clifton <nickc@redhat.com>
5036
5037 * config.gcc (m32r-elf): Revert previous delta.
5038 * config/m32r/t-m32r (crtinit.o): Fix rule to work with
5039 multilibs. Remove m32rx specific version.
5040 (crtfini.o): Likewise.
5041 (EXTRA_MULTILIB_PARTS): Define.
5042
5043 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5044
5045 * doc/md.texi (Machine Constraints): Correct the meaning of
5046 constraints related to floating-point registers on SPARC.
5047
5048 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5049 Paolo Bonzini <bonzini@gnu.org>
5050
5051 PR target/10663
5052 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
5053 assembler and linker output to /dev/null.
5054 Use a 'sed' construct instead of 'grep -A1'.
5055 * configure: Regenerate.
5056
5057 2003-06-04 Richard Henderson <rth@redhat.com>
5058
5059 * config/i386/i386.c (struct ix86_address): Add seg.
5060 (no_seg_address_operand): New.
5061 (ix86_decompose_address): Restructure PLUS loop. Accept one
5062 UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS. Adjust ESP swap test
5063 to test for a regnum, not stack_pointer_rtx.
5064 (ix86_address_cost): Reduce cost if non-default segment.
5065 (legitimate_address_p): Remove UNSPEC_TP check.
5066 (get_thread_pointer): Add to_reg argument. Don't represent
5067 the thread pointer as a memory load.
5068 (legitimize_tls_address): Split out of ...
5069 (legitimize_address): ... here.
5070 (print_operand_address): Handle parts.seg.
5071 (ix86_expand_move): Use legitimize_tls_address.
5072 (ix86_rtx_costs): Handle UNSPEC_TP.
5073 * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
5074 (TARGET_TLS_DIRECT_SEG_REFS): New.
5075 (TARGET_SWITCHES): Add tls-direct-seg-refs.
5076 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
5077 (PREDICATE_CODES): Add no_seg_address_operand.
5078 * config/i386/i386.md (lea_1): Use it.
5079 (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
5080 (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
5081 * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5082 * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5083 * doc/invoke.texi: Add -mtls-direct-seg-refs.
5084
5085 2003-06-04 Mark Mitchell <mark@codesourcery.com>
5086
5087 * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
5088 (QMTEST_GPP_TESTS): Use "g++" by default.
5089 (stamp-qmtest): Tweak database creation.
5090 (QMTEST_DIR/context): Update context file format.
5091 (qmtest-g++): Tweak command-line.
5092
5093 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5094
5095 * Makefile.in (varasm.o): Don't set -Wno-error.
5096 * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
5097
5098 2003-06-04 Zack Weinberg <zack@codesourcery.com>
5099
5100 PR bootstrap/3163
5101 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
5102 (gcc_AC_FUNC_MMAP_BLACKLIST): New.
5103 * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
5104 and AC_CHECK_FUNCS lists, respectively. Use
5105 gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
5106 AC_FUNC_MMAP_FILE.
5107 * configure, config.in: Regenerate.
5108
5109 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5110
5111 * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
5112 * arm.c (arm_output_function_prologue): Fix format specifiers.
5113 * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
5114 * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
5115 HOST_WIDE_INT_PRINT_DEC.
5116 * vax.c (vax_output_function_prologue): Fix format specifiers.
5117
5118 2003-06-04 Richard Henderson <rth@redhat.com>
5119
5120 * cse.c (find_best_addr): Consider binary operators even if second
5121 argument is not CONST_INT.
5122
5123 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5124
5125 * doc/invoke.texi (max-cse-path-length): Document.
5126
5127 2003-06-04 Richard Henderson <rth@redhat.com>
5128
5129 * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
5130
5131 2003-06-04 Andrew Pinski <pinskia@physics.uc.edu>
5132
5133 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
5134 Remove semi-colon at the end of the expression.
5135
5136 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5137
5138 * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
5139 * i370.h (mvs_function_name_length): Likewise.
5140 * i960.h (CONSTANT_ALIGNMENT): Likewise.
5141 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5142 * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5143 * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5144 * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
5145 variable.
5146
5147 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5148
5149 * config.gcc: Reorganize --with-cpu logic. Set
5150 configure_default_options according to the default CPU, --with-cpu,
5151 --with-arch, --with-tune, --with-schedule, --with-abi, and
5152 --with-float. Check for legal values of various options.
5153 * configure.in: Define configure_default_options in configargs.h.
5154 * configure: Regenerated.
5155 * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
5156 (TARGET_DEFAULT_FLOAT_P): New macros.
5157 * gcc.c (do_option_spec): New function.
5158 (struct default_spec, option_default_specs): New.
5159 (main): Call do_option_spec.
5160 * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
5161 config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
5162 config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
5163
5164 * doc/install.texi: Update --with-cpu documentation. Mention
5165 --with-arch, --with-schedule, --with-tune, --with-abi, and
5166 --with-float.
5167 * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
5168
5169 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5170
5171 * config.gcc: Only process --with-cpu logic in the third pass.
5172
5173 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5174
5175 * config.gcc: Reorganize --with-cpu section. Remove an
5176 obsolete comment about the default CPU for x86-64. Fix
5177 a typo for the ep9312. Update the list of supported PowerPC
5178 CPUs. Support a limited set of new --with-cpu options
5179 for i386.
5180
5181 2003-06-04 Aldy Hernandez <aldyh@redhat.com>
5182
5183 * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
5184 complex numbers <= 32 bits into two registers.
5185
5186 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5187
5188 * alpha.c (print_operand_address): Fix format specifier warnings.
5189 * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5190 * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5191 * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
5192 * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
5193 * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
5194 ASM_OUTPUT_SKIP): Likewise.
5195 * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5196 * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5197 * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
5198 Likewise.
5199 * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5200 * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
5201 * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
5202 * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5203 * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
5204 * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5205 * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5206 * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5207 * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5208 * svr3.h (ASM_OUTPUT_COMMON): Likewise.
5209
5210 2003-06-04 J"orn Rennecke <joern.rennecke@superh.com>
5211
5212 * c-decl.c (c_init_decl_processing): Clear input_file_name
5213 while building common nodes.
5214 * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
5215 Don't add working directory for strings like <built-in> .
5216
5217 2003-06-04 David Edelsohn <edelsohn@gnu.org>
5218
5219 * doc/install.texi (*-ibm-aix*): Native as and ld required
5220 to bootstrap on AIX 5L.
5221
5222 2003-06-04 Richard Henderson <rth@redhat.com>
5223
5224 * c-common.c (handle_cleanup_attribute): New.
5225 (c_common_attributes): Add it.
5226 * c-decl.c (finish_decl): Honor the cleanup attribute.
5227 * doc/extend.texi (Variable Attributes): Document it.
5228
5229 * unwind-c.c: New file.
5230 * Makefile.in (LIB2ADDEH): Add it.
5231 * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
5232 config/ia64/t-ia64: Likewise.
5233
5234 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5235
5236 * function.c (trampolines_created): New variable.
5237 (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
5238 * function.h (trampolines_created): Add.
5239 * config/s390/linux.h (ASM_FILE_END): Define.
5240 * config/alpha/linux-elf.h (ASM_FILE_END): Define.
5241 * config/m68k/linux.h (ASM_FILE_END): Define.
5242 * config/rs6000/linux.h (ASM_FILE_END): Define.
5243 * config/rs6000/linux64.h (ASM_FILE_END): Define.
5244 * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
5245 * config/sparc/linux.h (ASM_FILE_END): Define.
5246 * config/sparc/linux64.h (ASM_FILE_END): Define.
5247 * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
5248 * config/i386/linux.h (SUBTARGET_FILE_END): Define.
5249 * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
5250
5251 Wed Jun 4 18:39:33 CEST 2003 Jan Hubicka <jh@suse.cz>
5252
5253 * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
5254 (ix86_reorg): Use it.
5255 * i386.md (align): New insn pattern.
5256
5257 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5258
5259 * toplev.c (rest_of_type_compilation): Fix typo.
5260
5261 2003-06-04 Jakub Jelinek <jakub@redhat.com>
5262 Alan Modra <amodra@bigpond.net.au>
5263
5264 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
5265 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
5266 * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
5267 * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
5268 * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
5269 * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
5270 (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
5271 * config/rs6000/rs6000.c (output_profile_hook): Likewise.
5272
5273 * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
5274 Pass it to $gcc_cv_as.
5275 * configure: Rebuilt.
5276
5277 * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
5278 (print_operand): Allow TARGET_AIX to be non-constant.
5279 (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
5280 Define unconditionally.
5281 (rs6000_elf_declare_function_name): New function.
5282 * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
5283 non-constant.
5284 * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
5285 to 1.
5286 (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
5287 [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
5288 is defined.
5289 (TARGET_AIX): Define to 1 if TARGET_64BIT.
5290 (PROCESSOR_DEFAULT): Remove.
5291 (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
5292 INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5293 [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
5294 (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
5295 -m32 and -m64.
5296 (MULTILIB_DEFAULTS): Define.
5297 (SUBSUBTARGET_EXTRA_SPECS): Define.
5298 (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
5299 (TARGET_TOC): Define only if !RS6000_BI_ARCH.
5300 (TARGET_NO_TOC): Remove.
5301 [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
5302 TARGET_PROTOTYPE): Define to 0.
5303 (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
5304 (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
5305 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
5306 if !TARGET_64BIT.
5307 (USER_LABEL_PREFIX): Remove.
5308 (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
5309 (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
5310 if TARGET_64BIT.
5311 (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
5312 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
5313 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
5314 (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
5315 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5316 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
5317 TARGET_64BIT.
5318 (RS6000_CALL_GLUE): Likewise.
5319 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
5320 RESTORE_FP_SUFFIX): Likewise.
5321 (ASM_DECLARE_FUNCTION_NAME): Remove.
5322 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
5323 DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
5324 name if TARGET_64BIT.
5325 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
5326 !TARGET_64BIT.
5327 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
5328 (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
5329 (DRAFT_V4_STRUCT_RET): Define.
5330 (SIGNAL_FRAMESIZE): New enum value.
5331 (MD_FALLBACK_FRAME_STATE_FOR): Define.
5332 * config/rs6000/default64.h: New file.
5333 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
5334 options.
5335 (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
5336 to RS6000_ABI_NAME. Only disallow mixing of -fPIC with -mcall-aixdesc
5337 if !TARGET_64BIT.
5338 [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5339 (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
5340 function.
5341 (TARGET_OS_SYSV_CPP_BUILTINS): Define.
5342 (TARGET_OS_CPP_BUILTINS): Use it.
5343 (CPP_SYSV_SPEC): Remove.
5344 (CPP_SPEC): Remove cpp_sysv.
5345 (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
5346 Add SUBSUBTARGET_EXTRA_SPECS.
5347 (SUBSUBTARGET_EXTRA_SPECS): Define.
5348 * config/rs6000/biarch64.h: New file.
5349 * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
5350 New prototype.
5351 * config/rs6000/x-linux64: New file.
5352 * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
5353 multilibs.
5354 * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
5355 * config/rs6000/eabi-cn.asm: Likewise.
5356 * config/rs6000/tramp.asm: Likewise.
5357 * config/rs6000/sol-ci.asm: Likewise.
5358 * config/rs6000/sol-cn.asm: Likewise.
5359 * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
5360 (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
5361 * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
5362 _CALL_AIXDESC section.
5363 * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
5364 defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
5365 or default32.
5366
5367 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
5368
5369 * config.gcc: Revert accidentally committed ARM changes.
5370
5371 2003-06-04 Roger Sayle <roger@eyesopen.com>
5372
5373 * builtins.c (dconstpi, dconste): New mathematical constants.
5374 (init_builtin_dconsts): New function to initialize dconstpi
5375 and dconste.
5376 (fold_builtin): Optimize exp(1.0) = e. Evaluate exp(x) at
5377 compile time with -ffast-math when x is an integer constant.
5378 Optimize tan(0.0) = 0.0. Optimize atan(0.0) = 0.0,
5379 atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
5380
5381 2003-06-04 Roger Sayle <roger@eyesopen.com>
5382
5383 * calls.c (expand_call): Avoid calling pure or const functions
5384 when the result is ignored (or void) and none of the arguments
5385 are volatile. Move warning diagnostic earlier in function.
5386
5387 2003-06-04 Andreas Jaeger <aj@suse.de>
5388
5389 * system.h: Do not poison TDESC_SECTION_ASM_OP,
5390 RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
5391
5392 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5393
5394 * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
5395 optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
5396 handle %ll, optimize regular character case.
5397
5398 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5399
5400 * Makefile.in (cse.o): Add params.h dependency.
5401 * cse.c: Include params.h.
5402 (PATHLENGTH): Removed.
5403 (struct cse_basic_block_data): Make path array dynamic.
5404 (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
5405 of PATHLENGTH.
5406 (cse_main, cse_basic_block): Allocate path array.
5407 * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
5408
5409 Wed Jun 4 09:49:21 CEST 2003 Jan Hubicka <jh@suse.cz>
5410
5411 * i386.c (ix86_reorg): Replace the jump instead of adding nop.
5412 * i386.md (UNSPEC_REP): New constant.
5413 (return_internal_long): New pattern.
5414
5415 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5416
5417 PR optimization/11018
5418 * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
5419 consistently to decide whether the scratch register is really
5420 required.
5421
5422 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5423
5424 PR optimization/10876
5425 * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
5426 new 'O' constraint for constant 4096.
5427 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5428 * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
5429 Do not transform into MINUS insn for constant 4096.
5430 (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
5431 for constant 4096 as third operand.
5432 (addsi3 expander): Remove.
5433 (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
5434 new alternative for constant 4096 as third operand.
5435 (subdi3 expander): Do not transform into PLUS insn for constant 4096.
5436 (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
5437 operand.
5438 (subsi3 expander): Remove.
5439 (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
5440 constant 4096 as third operand.
5441 * doc/md.texi (Machine Constraints): Document new 'O' constraint for
5442 the SPARC port.
5443
5444 2003-06-03 Chris Demetriou <cgd@broadcom.com>
5445
5446 * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
5447
5448 2003-06-04 Andreas Jaeger <aj@suse.de>
5449
5450 * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
5451
5452 * config/i386/i386.c (ix86_expand_prologue): Do not use
5453 SUBTARGET_PROLOGUE.
5454
5455 * system.h: Poision SUBTARGET_PROLOGUE.
5456
5457 * config/arm/arm-protos.h: Remove unused rdate_section prototype.
5458
5459 * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
5460 dependend code.
5461
5462 * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
5463
5464 * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
5465 INSN_CACHE_LINE_WIDTH.
5466
5467 * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
5468 (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
5469 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
5470
5471 * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
5472 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
5473
5474 * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
5475 (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
5476 (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
5477 (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
5478 (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
5479 (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
5480
5481 * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
5482 DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
5483 DBX_WORKING_DIRECTORY.
5484
5485 * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
5486 DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
5487
5488 * config/frv/frv-protos.h: Remove unused const_section
5489 declaration.
5490 * config/vax/vax-protos.h: Likewise.
5491
5492 * output.h: Remove CONST_SECTION_ASM_OP usage.
5493
5494 * system.h: Poison CONST_SECTION_ASM_OP.
5495
5496 * crtstuff.c (__do_global_dtors_aux): Remove usage of
5497 CRT_GET_RFIB_TEXT.
5498 (frame_dummy): Likewise.
5499 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
5500 * system.h: Poison CRT_GET_RFIB_TEXT.
5501
5502 * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
5503
5504 * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
5505 (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
5506 (recognized_function): Likewise.
5507 (read_scan_file): Likewise.
5508
5509 2003-06-03 Roger Sayle <roger@eyesopen.com>
5510
5511 * optabs.c (expand_binop): Optimize complex multiplication for
5512 the case of squaring a complex argument.
5513
5514 2003-06-03 Roger Sayle <roger@eyesopen.com>
5515
5516 * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
5517 non-volatile operands of binary operations.
5518 (prepare_cmp_insn): Likewise.
5519
5520 2003-06-03 Roger Sayle <roger@eyesopen.com>
5521
5522 * varasm.c (force_const_mem): Handle alignment of constants not
5523 representable as a type in the front-end language.
5524
5525 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
5526
5527 * flow.c (initialize_uninitialized_subregs): Use
5528 emit_move_insn instead of emitting a hardcoded move.
5529
5530 2003-06-03 Richard Henderson <rth@redhat.com>
5531
5532 * optabs.c (expand_abs_nojump): Split out from ...
5533 (expand_abs): ... here.
5534 * optabs.h (expand_abs_nojump): Declare.
5535 * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
5536 * Makefile.in (ifcvt.o): Depend on optabs.h.
5537
5538 2003-06-03 Alan Modra <amodra@bigpond.net.au>
5539
5540 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
5541
5542 2003-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5543
5544 * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
5545 (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
5546 to yes.
5547 * configure.in: Allow default_use_cxa_atexit to determine the
5548 value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
5549 disabled.
5550 * configure: Regenerate.
5551
5552 2003-06-03 Douglas B Rupp <rupp@gnat.com>
5553
5554 * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
5555 * doc/gcc.texi: Remove vms.texi section.
5556 * doc/vms.texi: Remove obsolete file.
5557
5558 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
5559
5560 * configure.in (inhibit_libc): Don't define when configuring
5561 with --with-newlib --with-headers.
5562 * configure: Regenerate.
5563
5564 * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
5565
5566 2003-06-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5567
5568 * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
5569 IRIX 6 without GNU ld.
5570 * configure: Regenerate.
5571
5572 2003-06-03 Roger Sayle <roger@eyesopen.com>
5573
5574 * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
5575 of a complex number rather than invoke mov_optab directly.
5576
5577 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
5578
5579 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
5580 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
5581
5582 2003-06-03 Nathanael Nerode <neroden@gcc.gnu.org>
5583
5584 * config/i386/x86-64.h: Remove two target-independent comments;
5585 replace "GNU CC" with "GCC".
5586
5587 2003-06-03 Anthony Green <green@redhat.com>
5588
5589 * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
5590
5591 2003-06-03 Roger Sayle <roger@eyesopen.com>
5592
5593 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
5594 New builtins representing ISO C99's cabs, cabsf and cabsl.
5595 * builtins.c (expand_builtin_fabs): New function.
5596 (expand_builtin_cabs): New function.
5597 (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
5598 using expand_builtin_fabs and expand_builtin_cabs respectively.
5599
5600 * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
5601
5602 2003-06-03 Aldy Hernandez <aldyh@redhat.com>
5603
5604 * function.c (assign_parms): Split complex arguments.
5605
5606 * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
5607
5608 * expr.h (SPLIT_COMPLEX_ARGS): Define.
5609 (split_complex_types): Protoize.
5610 (split_complex_values): Protoize.
5611
5612 * calls.c (expand_call): Split complex arguments on architectures
5613 that require it.
5614 (split_complex_values): New.
5615 (split_complex_types): New.
5616
5617 * config/rs6000/rs6000.c (rs6000_libcall_value): New.
5618 (rs6000_function_value): Handle complex values on AIX.
5619 (rs6000_complex_function_value): New.
5620
5621 * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
5622
5623 * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
5624 (SPLIT_COMPLEX_ARGS): New.
5625
5626 2003-06-03 Jakub Jelinek <jakub@redhat.com>
5627
5628 * configure.in (HAVE_LD_PIE): Check for ld -pie.
5629 * config.in: Rebuilt.
5630 * configure: Rebuilt.
5631 * toplev.c (flag_pie, flag_shlib): New variables.
5632 (f_options): Add -fpie and -fPIE.
5633 (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
5634 Set flag_shlib if flag_pic and not -fpie/-fPIE.
5635 * flags.h (flag_pic, flag_shlib): Add.
5636 * varasm.c (default_binds_local_p): Use flag_shlib instead of
5637 flag_pic.
5638 * gcc.c (LINK_PIE_SPEC): Define.
5639 (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
5640 (option_map): Add --pie -> -pie mapping.
5641 * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
5642 and -fPIE the same way as -fPIC.
5643 * config/openbsd.h (ASM_SPEC): Likewise.
5644 * config/frv/frv.h (ASM_SPEC): Likewise.
5645 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
5646 * config/arm/semi.h (ASM_SPEC): Likewise.
5647 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5648 * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
5649 * config/i386/beos-elf.h (CC1_SPEC): Likewise.
5650 * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
5651 * config/m68k/linux.h (CPP_SPEC): Likewise.
5652 * config/m68k/netbsd.h (ASM_SPEC): Likewise.
5653 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5654 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5655 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
5656 * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
5657 * config/pa/pa-linux.h (CPP_SPEC): Likewise.
5658 * config/netbsd-aout.h (ASM_SPEC): Likewise.
5659 * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
5660 * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
5661 * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5662 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5663 * config/sparc/sparc.h (ASM_SPEC): Likewise.
5664 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5665 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5666 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5667 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5668 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5669 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
5670 Simplify.
5671 * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5672 * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5673 * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5674 * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5675 * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5676 * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5677 * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5678 * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
5679
5680 2003-06-03 Jakub Jelinek <jakub@redhat.com>
5681
5682 * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
5683 != 0 handling. Pass 0 to store_by_pieces.
5684 (expand_builtin_mempcpy): Add endp argument. Don't call
5685 expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
5686 directly. If ignoring result, only do expand_call.
5687 (expand_builtin_stpcpy): Likewise. Call expand_builtin_mempcpy
5688 otherwise.
5689 (expand_builtin_strncpy, expand_builtin_memset): Adjust
5690 store_by_pices callers.
5691 (expand_builtin): Adjust expand_builtin_memcpy and
5692 expand_builtin_mempcpy callers.
5693 * expr.c (can_move_by_pieces): New function.
5694 (move_by_pieces): Add endp argument, return to resp. memory at end
5695 or one byte earlier depending on endp.
5696 (store_by_pieces): Likewise.
5697 (emit_block_move): Adjust call to move_by_pieces.
5698 (emit_push_insn): Adjust move_by_pieces caller.
5699 * expr.h (can_move_by_pieces): New prototype.
5700 (store_by_pieces): Adjust prototypes.
5701 * rtl.h (move_by_pieces): Adjust prototype.
5702 * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
5703 caller.
5704
5705 2003-06-03 Ben Elliston <bje@wasabisystems.com>
5706
5707 * doc/md.texi (Processor pipeline description): Improve wording.
5708
5709 2003-06-03 Neil Booth <neil@daikokuya.co.uk>
5710
5711 * c-opts.c (c_common_handle_option): New, pulled out of
5712 c_common_decode_option. Substitute uses of argv.
5713 (c_common_decode_option): Broken into two.
5714
5715 2003-06-02 Roger Sayle <roger@eyesopen.com>
5716 Zack Weinberg <zack@codesourcery.com>
5717
5718 * emit-rtl.c (gen_complex_constant_part): Remove unnecessary
5719 test of TREE_CONSTANT_POOL_ADDRESS_P.
5720
5721 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5722
5723 * mips.c: Don't include output.h twice.
5724 * stormy16.c: Likewise.
5725 * xtensa.c: Likewise.
5726 * output.h: Protect against multiple inclusion.
5727
5728 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
5729
5730 * sh.h (OLD_ARG_MODE): New macro.
5731 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
5732 (FUNCTION_ARG_1): Break out of:
5733 (FUNCTION_ARG). Use OLD_ARG_MODE.
5734
5735 2003-06-02 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5736
5737 * gcc/config.gcc Add support multilib parts for m32rx processor.
5738
5739 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5740
5741 * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
5742 (mostlyclean): Delete c-options.c and c-options.h.
5743
5744 2003-06-02 Neil Booth <neil@daikokuya.co.uk>
5745
5746 * c-opts.c (CL_REJECT_NEGATIVE): New.
5747 (c_common_decode_option): Update to use it.
5748 * c.opt: Update documentation; use RejectNegative.
5749 * opts.sh: Handle RejectNegative.
5750
5751 2003-06-01 Zack Weinberg <zack@codesourcery.com>
5752
5753 * ggc-page.c (init_ggc): Give better diagnostics on failure to
5754 open /dev/zero.
5755 * toplev.c (crash_signal): Reset handling for received signal
5756 to SIG_DFL.
5757
5758 2003-06-02 Ben Elliston <bje@wasabisystems.com>
5759
5760 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
5761 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
5762 (arm_use_dfa_pipeline_interface): Implement.
5763 * config/arm/arm.md (arm): New automaton.
5764 (write_buf): Remove function units; new cpu unit.
5765 (write_blockage): Remove function units; new cpu unit.
5766 (core): Remove function units; new cpu unit.
5767 (r_mem_f_wbuf): New instruction reservation.
5768 (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
5769 (store1_ldsched, store2, store3, store4): Likewise.
5770 (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
5771 (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
5772 (multi_cycle, single_cycle): Likewise.
5773 * config/arm/fpa.md (armfp): New automaton.
5774 (fpa): Remove function units; new cpu unit.
5775 (fpa_mem): Remove function unit; new cpu unit.
5776 (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
5777 (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
5778
5779 2003-06-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5780
5781 * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
5782 * c-format.c (enum format_type): Add asm_fprintf_format_type.
5783 (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
5784 asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
5785 (format_types_orig): Renamed from format_types. Add new data.
5786 (format_types): Declare as pointer.
5787 (handle_format_attribute): Move later in file so we have all
5788 necessary declarations. Add section to capture HOST_WIDE_INT.
5789 * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
5790 (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
5791
5792 2003-06-01 Andreas Jaeger <aj@suse.de>
5793
5794 * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
5795 ROUND_TYPE_SIZE_UNIT.
5796
5797 * stor-layout.c (finalize_record_size): Remove usages of
5798 ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5799 (finalize_type_size): Likewise.
5800 (layout_type): Likewise.
5801
5802 * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5803
5804 * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
5805
5806 * config/d30v/d30v.h: Remove text copied from the manual.
5807
5808 2003-06-01 Roger Sayle <roger@eyesopen.com>
5809 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5810 Geoffrey Keating <geoffk@apple.com>
5811
5812 * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
5813 constants as condition code values.
5814
5815 2003-06-01 DJ Delorie <dj@redhat.com>
5816
5817 * cppmacro.c (warn_of_redefinition): Handle cases where the two
5818 definitions have different numbers of tokens.
5819
5820 2003-06-01 Andreas Jaeger <aj@suse.de>
5821
5822 * gen-protos.c (main): Readd unused attribute for argc.
5823
5824 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
5825
5826 * Makefile.in (c-options.c, c-options.h): Parallel make safe.
5827 * c.opt: End in blank line.
5828 * opts.sh: Take AWK from environment if available; use C locale.
5829
5830 2003-06-01 Andreas Schwab <schwab@suse.de>
5831
5832 * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
5833
5834 2003-06-01 Andreas Jaeger <aj@suse.de>
5835
5836 * gen-protos.c (main): Revert patch to check for argument.
5837
5838 2003-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
5839
5840 PR target/11044
5841 * config/i386/i386.md (length attribute): Set length to 4
5842 for instructions of type "fcmp".
5843
5844 2003-06-01 Andreas Jaeger <aj@suse.de>
5845
5846 * toplev.c: Use ISO C90 prototypes.
5847
5848 * toplev.h: Use ISO C90 prototypes.
5849
5850 * genrecog.c: Use ISO C90 prototypes.
5851 (nodes_identical): Correct declaration to match prototype.
5852 (maybe_both_true): Likewise.
5853 (merge_trees): Likewise.
5854
5855 * genpeep.c (gen_peephole): Remove #if 0 code.
5856 Use ISO C90 prototypes.
5857
5858 * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
5859 Remove #if 0'ed function simplify_by_alternatives.
5860 (optimize_attrs): Remove #if 0'ed code.
5861 Remove ^L.
5862 Use ISO C90 prototypes.
5863 (make_canonical): Remove #if 0'ed code.
5864 (convert_const_symbol_ref): Remove #if 0'ed function.
5865
5866 * gen-protos.c (main): Check for argument.
5867
5868 * rtl.h: Use ISO C90 prototypes for functions from lists.c.
5869
5870 * params.h: Use ISO C90 prototypes.
5871 * params.c: Likewise.
5872 * intl.c: Likewise.
5873 * intl.h: Likewise.
5874 * lists.c: Likewise.
5875 * errors.c: Likewise.
5876 * errors.h: Likewise.
5877 * gencodes.c: Likewise.
5878 * genpreds.c: Likewise.
5879 * genattr.c: Likewise.
5880 * gen-protos.c: Likewise.
5881 * genflags.c: Likewise
5882 * genconditions.c: Likewise.
5883 * genautomata.c: Likewise.
5884 * gencheck.c: Likewise.
5885 * genconfig.c: Likewise.
5886 * genconstants.c: Likewise.
5887 * genemit.c: Likewise.
5888 * genextract.c: Likewise.
5889 * gengenrtl.c: Likewise.
5890 * gengtype.c: Likewise.
5891 * gengtype.h: Likewise.
5892 * genopinit.c: Likewise.
5893 * genoutput.c: Likewise.
5894 * gensupport.c: Likewise.
5895 * gensupport.h: Likewise.
5896
5897 * sdbout.h: Use ISO C90 prototypes.
5898
5899 * sdbout.c (CONTIN): Removed empty macro.
5900 (sdbout_one_type): Remove CONTIN usages.
5901 Remove ^Ls.
5902 (tag_of_ru_type): Remove #if 0'ed function.
5903 (sdbout_symbol): Remove #if 0'ed code.
5904 (sdbout_one_type): Remove a #if 1.
5905 (sdbout_one_type): Remove #if 0'ed code.
5906 (sdbout_init): Remove RMS_QUICK_HACK_1 code.
5907 Remove PARAMS, use ISO C90 prototypes for all functions.
5908
5909 2003-06-01 Josef Zlomek <zlomekj@suse.cz>
5910
5911 * rtl.def (CONST_DOUBLE): Update comment.
5912
5913 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
5914
5915 * opts.sh: Remove path from sort.
5916
5917 2003-06-01 Aldy Hernandez <aldyh@redhat.com>
5918
5919 PR/9680
5920 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
5921 TARGET_SPE for SPE_VECTOR_MODE.
5922
5923 2003-05-31 Aldy Hernandez <aldyh@redhat.com>
5924
5925 * toplev.c (botch): Remove.
5926 (do_abort): Remove.
5927 (set_Wunused): Comment.
5928 (set_Wextra): Comment.
5929 Remove ^L's.
5930 (rest_of_compilation): Factor out common code into functions.
5931 (rest_of_handle_inlining): New.
5932 (rest_of_handle_ssa): New.
5933 (rest_of_handle_cse): New.
5934 (rest_of_handle_gcse): New.
5935 (rest_of_handle_loop_optimize): New.
5936 (rest_of_handle_jump_bypass): New.
5937 (rest_of_handle_sibling_calls): New.
5938 (rest_of_handle_null_pointer): New.
5939 (rest_of_handle_addresof): New.
5940 (rest_of_handle_flow): New.
5941 (rest_of_handle_branch_prob): New.
5942 (rest_of_handle_if_conversion): New.
5943 (rest_of_handle_tracer): New.
5944 (rest_of_handle_loop2): New.
5945 (rest_of_handle_cse2): New.
5946 (rest_of_handle_life): New.
5947 (rest_of_handle_combine): New.
5948 (rest_of_handle_if_after_combine): New.
5949 (rest_of_handle_regmove): New.
5950 (rest_of_handle_sched): New.
5951 (rest_of_handle_old_regalloc): New.
5952 (rest_of_handle_new_regalloc): New.
5953 (rest_of_handle_regrename): New.
5954 (rest_of_handle_reorder_blocks): New.
5955 (rest_of_handle_sched2): New.
5956 (rest_of_handle_new_regalloc): New.
5957 (rest_of_handle_old_regalloc): New.
5958 (rest_of_handle_regrename): New.
5959 (rest_of_handle_reorder_blocks): New.
5960 (rest_of_handle_stack_regs): New.
5961 (rest_of_handle_machine_reorg): New.
5962 (rest_of_handle_delay_slots): New.
5963 (rest_of_handle_final): New.
5964
5965 * toplev.h (botch): Remove prototype.
5966 (do_abort): Same.
5967
5968 2003-05-31 Neil Booth <neil@daikokuya.co.uk>
5969
5970 * Makefile.in (c-opts.o, c-options.h): Update dependencies.
5971 * c-opts.c: Include c-options.h and c-options.c.
5972 (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
5973 Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
5974 (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
5975 OPT, opt_comp): Remove.
5976 (missing_arg, c_common_init_options, c_common_decode_option,
5977 write_langs): Update for macro redefinitions and enumeration
5978 name changes.
5979 * c.opt, opts.sh: New files.
5980 * doc/passes.texi: Update.
5981
5982 2003-05-31 Andreas Jaeger <aj@suse.de>
5983
5984 * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
5985 usage.
5986
5987 * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
5988
5989 * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
5990
5991 * system.h: Poison ALLOCATE_TRAMPOLINE.
5992
5993 * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
5994 * system.h: Poison HANDLE_PRAGMA.
5995
5996 2003-05-31 Kazu Hirata <kazu@cs.umass.edu>
5997
5998 * doc/invoke.texi: Update dump file names.
5999
6000 2003-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6001
6002 * c-format.c (format_length_info, format_char_info,
6003 format_flag_spec, format_flag_pair, format_kind_info):
6004 De-const-ify structure members.
6005
6006 2003-05-31 Roger Sayle <roger@eyesopen.com>
6007
6008 * flags.h (flag_wrapv): New flag controlling overflow semantics.
6009 * toplev.c (flag_wrapv): Declare the variable with default false.
6010 (lang_independent_options): New option "-fwrapv" to set the above.
6011
6012 * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
6013 as x, when signed arithmetic overflow wraps around.
6014 (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
6015 * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
6016 overflow when flag_wrapv is true.
6017
6018 * doc/invoke.texi: Document new -fwrapv command line option.
6019 * doc/c-tree.texi: Mention that the overflow semantics of
6020 NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
6021 upon both flag_wrapv and flag_trapv.
6022
6023 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6024
6025 * doc/install.texi (mips-sgi-irix5): Add missing
6026 HTML <hr> marker.
6027
6028 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6029
6030 * doc/md.texi (Machine Constraints): Document
6031 missing SPARC constraints.
6032
6033 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6034
6035 * doc/md.texi (Automaton pipeline description): Use
6036 "type" instead of "cpu" as the attribute in the examples.
6037
6038 2003-05-30 Stan Shebs <shebs@apple.com>
6039
6040 * system.h: Poison OBJC_PROLOGUE.
6041
6042 2003-05-30 Roger Sayle <roger@eyesopen.com>
6043
6044 * emit-rtl.c (gen_complex_constant_part): New function for getting
6045 the constant real or imaginary part of a complex constant.
6046 (gen_realpart): Use it.
6047 (gen_imagpart): Likewise.
6048
6049 2003-05-30 Kazu Hirata <kazu@cs.umass.edu>
6050
6051 * doc/invoke.texi: Fix typos.
6052 * doc/rtl.texi: Likewise.
6053
6054 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
6055
6056 * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
6057 mode.
6058 * config/h8300/crtn.asm: Likewise.
6059 * config/h8300/lib1funcs.asm: Likewise.
6060 * config/h8300/h8300.c (asm_file_start): Likewise.
6061 * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
6062 h8300snelf emulations for normal mode.
6063 * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
6064 emulations for normal mode.
6065
6066 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
6067
6068 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
6069 true if TARGET_NORMAL_MODE.
6070
6071 2003-05-30 Roger Sayle <roger@eyesopen.com>
6072
6073 * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
6074 making a substitution.
6075 (dead_libcall_p): If directly replacing a libcall with a
6076 constant value produces an invalid instruction, also try forcing
6077 the constant into the constant pool.
6078 * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
6079 obvious that the source is a constant.
6080 (compress_float_constant): Use set_unique_reg_note to place
6081 REG_EQUAL notes on instructions.
6082
6083 2003-05-30 Eric Christopher <echristo@redhat.com>
6084
6085 * config/mips/mips.c (extern_list): Add GTY marker.
6086 (extern_head): Separate out definition. Add marker.
6087 (mips_output_external): Use ggc_alloc for extern_list
6088 allocation.
6089 (mips_output_external_libcall): Ditto.
6090
6091 2003-05-30 Florian Weimer <fw@deneb.enyo.de>
6092
6093 * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
6094 later.
6095
6096 2003-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6097
6098 * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
6099 warnings.
6100 (PRINT_OPERAND): Likewise.
6101
6102 2003-05-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6103
6104 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
6105 -mdebug/-no-mdebug switches ...
6106 (MDEBUG_ASM_SPEC): ... here.
6107 Use only with gas.
6108 (EXTRA_SPECS): Initialize mdebug_asm_spec.
6109
6110 2003-05-29 Matt Kraai <kraai@alumni.cmu.edu>
6111
6112 * gthr-gnat.c: Remove #undef UNUSED.
6113 (__gnat_default_lock, __gnat_default_unlock): Prototype.
6114 (__gnat_task_lock, __gnat_task_unlock): Make declarations
6115 prototypes.
6116 (__gnat_install_locks): Convert declaration to ISO C90, make
6117 parameter declarations prototypes, and remove blank line.
6118 * gthr-gnat.h (__gnat_install_locks): Make parameter
6119 declarations prototypes.
6120
6121 2003-05-29 Jason Merrill <jason@redhat.com>
6122
6123 * Makefile.in (unstrap): Remove stage_last after make unstage1.
6124
6125 2003-05-29 Roger Sayle <roger@eyesopen.com>
6126
6127 * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
6128
6129 2003-05-29 Roger Sayle <roger@eyesopen.com>
6130 Kaveh Ghazi <ghazi@caip.rutgers.edu>
6131
6132 PR bootstrap/10169
6133 * mips-tfile.c (main): Use getopt_long instead of getopt.
6134 Add new command line option --version to display version.
6135 Treat --verbose like -v to report a single line version.
6136 (options): New global variable for getopt_long.
6137 * mips-tdump.c (main): Use getopt_long instead of getopt.
6138 New command line options -v, --version and -verbose to display
6139 the program version number (to match mips-tfile's behavior).
6140 (options): New global variable for getopt_long.
6141
6142 * gcov.c (options): Zero-terminate getopt_long array.
6143 * gcov-dump.c (options): Likewise.
6144
6145 * Makefile.in (mips-tdump.o): Add dependency on version.h.
6146
6147 2003-05-29 Stan Shebs <shebs@apple.com>
6148
6149 Remove OBJC_PROLOGUE everywhere.
6150 * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
6151 * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
6152 * config/d30v/d30v.h: Similarly.
6153 * config/ip2k/ip2k.h: Similarly.
6154 * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
6155
6156 2003-05-29 Roger Sayle <roger@eyesopen.com>
6157
6158 * c-semantics.c (genrtl_do_stmt_1): New function split out from...
6159 (gen_rtl_do_stmt): ... here. Call genrtl_do_stmt_1.
6160 (expand_unreachable_stmt): Expand unreachable while statements
6161 using genrtl_do_stmt_1.
6162
6163 2003-05-29 Richard Sandiford <rsandifo@redhat.com>
6164
6165 * config/mips/mips-protos.h (mips_output_load_label): Declare.
6166 * config/mips/mips.c (mips_output_load_label): New function.
6167 (mips_output_conditional_branch): Use it.
6168 * config/mips/mips.md (jump): And here.
6169
6170 2003-05-28 Bob Wilson <bob.wilson@acm.org>
6171
6172 * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
6173 (xtensa_split_operand_pair): New proto.
6174 * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
6175 (smalloffset_double_mem_p): Delete.
6176 (gen_float_relational, printx, print_operand, xtensa_va_arg):
6177 Fix whitespace.
6178 (xtensa_split_operand_pair): New.
6179 (xtensa_dbx_register_number): Fix formatting.
6180 * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
6181 * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
6182 instead of splitting them into single-word moves. Remove unnecessary
6183 checks for reload_in_progress and reload_completed.
6184 (movdi_internal, movdf_internal): Change to post-reload split patterns.
6185 Add constraints to allow constant operands.
6186 (movsf_internal): Allow CONST_INT operands.
6187
6188 2003-05-27 Danny Smith <dannysmith@users.sourceforge.net>
6189
6190 * config.gcc (i[34567]86-*-mingw32*): Add host makefile
6191 fragment i386/x-mingw32.
6192 * config/i386/x-mingw32: New file. Make local_includedir
6193 relative to EXEC_PREFIX.
6194
6195 2003-05-27 Aaron W. LaFramboise <awlaframboise@aol.com>
6196
6197 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
6198 (MD_STARTFILE_PREFIX): Define.
6199
6200 2003-05-27 Denis Chertykov <denisc@overta.ru>
6201
6202 * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
6203 VOIDmode.
6204 * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
6205 call of cselib_invalidate_regno.
6206
6207 2003-05-28 Daniel Jacobowitz <drow@mvista.com>
6208
6209 * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
6210 -lthread to -lpthread.
6211
6212 2003-05-28 Eric Botcazou <ebotcazou@libertysurf.fr>
6213 Bruce Korb <bkorb@gnu.org>
6214 Arno Klaassen <arno@heho.snv.jussieu.fr>
6215
6216 * fixinc/inclhack.def: Add missing declaration of getpagesize()
6217 to unistd.h on Solaris 2.5.1.
6218 Fix prototype of recv() and send() in sys/socket.h on
6219 Solaris 2.5.1 and 2.6.
6220 * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
6221 * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
6222 * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
6223 * fixinc/fixincl.x: Regenerate.
6224
6225 2003-05-27 Jason Merrill <jason@redhat.com>
6226
6227 * tree.c (expr_first, expr_length): New fns.
6228 * tree.h: Declare them.
6229
6230 * tree.c (iterative_hash_expr): Hash commutative expressions
6231 consistently.
6232
6233 2003-05-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6234
6235 * tree.h (contains_placeholder_p): Now returns bool.
6236 (CONTAINS_PLACEHOLDER_P): New macro.
6237 (type_contains_placeholder_p): New function.
6238 * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
6239 (contains_placeholder_p): Now returns bool.
6240 Rework to use CONTAINS_PLACEHOLDER_P macro.
6241 (type_contains_placeholder_p): New function.
6242 * fold-const.c (fold, case COMPONENT_REF): Don't fold if
6243 type_contains_placeholder_p.
6244 (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
6245 Use CONTAINS_PLACEHOLDER_P macro.
6246 * builtins.c (fold_builtin): Likewise.
6247 * calls.c (initialize_argument_information): Likewise.
6248 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6249 * explow.c (expr_size): Likewise.
6250 * expr.c (store_constructor, get_inner_reference): Likewise.
6251 * function.c (assign_parms): Likewise.
6252 * stor-layout.c (variable_size): Likewise.
6253
6254 2003-05-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6255
6256 * diagnostic.h (output_verbatim, verbatim): Remove printf
6257 attribute.
6258
6259 2003-05-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6260
6261 * doc/contrib.texi (Contributors): Update Kean Johnston.
6262
6263 2003-05-24 David Edelsohn <edelsohn@gnu.org>
6264
6265 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
6266
6267 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
6268
6269 * config/rs6000/440.md, config/stormy16/stormy16protos.h,
6270 config/stormy16/stormy16.c, config/stormy16/stormy16.md:
6271 Replace "GNU CC" with "GCC".
6272
6273 2003-05-24 Matt Kraai <kraai@alumni.cmu.edu>
6274
6275 * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
6276 intermediate computation.
6277
6278 2003-05-23 Eric Christopher <echristo@redhat.com>
6279
6280 * config/mips/mips.md (clzsi, clzdi): New patterns.
6281
6282 2003-05-23 Geoffrey Keating <geoffk@apple.com>
6283
6284 * gcc.c (default_compilers): Use -o to specify preprocessor's output
6285 file. Make -no-integrated-cpp work when building PCH files.
6286 * objc/lang-specs.h: Likewise.
6287
6288 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
6289
6290 * fixinc/Makefile.in: Correct description.
6291 * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
6292 fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
6293 fixinc/genfixes: Replace "GNU CC" with "GCC".
6294
6295 2003-05-23 Roger Sayle <roger@eyesopen.com>
6296
6297 * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
6298 builtin functions (and their __builtin_* variants).
6299 * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
6300 (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
6301 optimizing.
6302
6303 * doc/extend.texi: Document new tan and atan builtins, and
6304 their float and long double variants.
6305
6306 2003-05-23 Jason Thorpe <thorpej@wasabisystems.com>
6307
6308 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
6309 __sparcv9 in the TARGET_ARCH64 case.
6310
6311 Fri May 23 22:17:32 CEST 2003 Jan Hubicka <jh@suse.cz>
6312
6313 * i386.c (ix86_reorg): Calls are also jumps.
6314
6315 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
6316
6317 * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
6318 note containing an EXPR_LIST, process all the arguments.
6319
6320 Fri May 23 21:19:31 CEST 2003 Jan Hubicka <jh@suse.cz>
6321 Andreas Jaeger <aj@suse.de>
6322
6323 * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
6324 do not use assertion.
6325
6326 2003-05-23 Mike Stump <mrs@apple.com>
6327
6328 * tlink.c (scan_linker_output): Add support for darwin linker, as it
6329 emits unresolved symbols one per line, consuming the entire line.
6330
6331 2003-05-23 Larin Hennessy <larin@science.oregonstate.edu>
6332 Zack Weinberg <zack@codesourcery.com>
6333
6334 * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
6335 * config/m68k/m68k.c (m68k_output_function_prologue):
6336 Remove code under #if NEED_PROBE.
6337 * config/m68k/m68k.h: Don't define NEED_PROBE.
6338 * config/m68k/m68k.md: Remove "probe" insn.
6339 * doc/md.texi: Remove documentation of "probe" pattern.
6340
6341 2003-05-23 Dorit Naishlos <gcchaifa@il.ibm.com>
6342
6343 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
6344
6345 2003-05-23 Eric Botcazou <ebotcazou@libertysurf.fr>
6346
6347 * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
6348 Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
6349
6350 2003-05-22 Roger Sayle <roger@eyesopen.com>
6351
6352 * real.c (real_maxval): New function to return the largest finite
6353 value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
6354 * real.h (real_maxval): Prototype here.
6355 * fold-const.c (fold_inf_compare): Transform comparisons against
6356 +-Infinity into comparisons against DBL_MAX (or equivalent).
6357
6358 2003-05-22 Mike Stump <mrs@apple.com>
6359
6360 * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
6361 default.
6362
6363 2003-05-22 DJ Delorie <dj@redhat.com>
6364
6365 * calls.c (expand_call): If the arg block is going to grow
6366 downward, we need argblock to point to the top of the block,
6367 not the bottom.
6368
6369 2003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6370
6371 * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
6372
6373 * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
6374 constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
6375
6376 2003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6377
6378 * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
6379 * m68k.c: Likewise.
6380 * m68k.h: Likewise.
6381
6382 2003-05-22 Zack Weinberg <zack@codesourcery.com>
6383
6384 PR other/2873
6385 * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
6386 expressions to prevent triggering on recent curses.h,
6387 linux/nls.h, or X11/Xlib.h.
6388 (stdio_va_list): Add _G_va_list to bypass pattern.
6389 (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
6390 * fixinc/fixincl.x: Regenerate.
6391
6392 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
6393
6394 * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
6395 switches when --target-help option is specified.
6396
6397 2003-05-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6398
6399 PR bootstrap/10805
6400 * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
6401 failure with Sun assembler 5.0 Alpha 03/27/98.
6402
6403 2003-05-21 Loren James Rittle <ljrittle@acm.org>
6404
6405 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
6406 to match system compiler convention.
6407
6408 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
6409
6410 * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
6411 value, not just if defined.
6412 Update copyright year.
6413
6414 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6415
6416 PR target/6428
6417 * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
6418 directories from LIB_SPEC to LINK_SPEC. Emit warning if `-p' or `-pg'
6419 option is used without `-static'.
6420 * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
6421 * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
6422
6423 2003-05-21 Bob Wilson <bob.wilson@acm.org>
6424
6425 * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
6426 TARGET_SERIALIZE_VOLATILE): Delete.
6427 (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
6428 (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
6429 (TARGET_SWITCHES): Remove "-mserialize-volatile" and
6430 "-mno-serialize-volatile".
6431 * config/xtensa/xtensa.c (print_operand): Remove checks of
6432 TARGET_SERIALIZE_VOLATILE.
6433 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
6434 * doc/invoke.texi (Option Summary, Xtensa Options): Remove
6435 "-mserialize-volatile" and "-mno-serialize-volatile" options.
6436
6437 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
6438
6439 * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
6440 (nested_function): Likewise.
6441 (notype_nested_function): Likewise.
6442
6443 2003-05-21 Nick Clifton <nickc@redhat.com>
6444
6445 * config/stormy16/stormy-abi: Update overflow type for
6446 R_XSTORMY16_16 reloc.
6447
6448 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
6449
6450 * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
6451 * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
6452 (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
6453 * print-tree.c (print_node): Remove ambient-boundedness.
6454 * tree.h (tree_common): Remove bounded_flag.
6455 (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
6456 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
6457 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
6458 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
6459 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
6460 Remove.
6461 (TYPE_QUALS): Remove BOUNDED.
6462 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
6463 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
6464 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
6465 TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
6466 VA_LIST_POINTER_DEPTH): Remove.
6467 (struct tree_type): Remove pointer_depth.
6468
6469 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6470
6471 * c-pretty-print.c (pp_c_integer_literal): Use
6472 HOST_WIDE_INT_PRINT_DOUBLE_HEX.
6473
6474 2003-05-20 Roger Sayle <roger@eyesopen.com>
6475 Kazu Hirata <kazu@cs.umass.edu>
6476 Joern Rennecke <joern.rennecke@superh.com>
6477
6478 * gcse.c (cprop_jump): Make use of REG_EQUAL notes on both
6479 setcc and jump, if they exist. If substituted instruction
6480 fails to validate, store current effort in a REG_EQUAL note.
6481 (cprop_insn): Don't attempt further substitutions if the
6482 current instruction has been deleted.
6483 (local_cprop_pass): Likewise.
6484
6485 * jump.c (redirect_jump): Also update REG_EQUAL note, if
6486 one is attached to the jump instruction.
6487 (invert_jump): Delete REG_EQUAL note on jump, if one exists.
6488
6489 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
6490
6491 PR c++/9738
6492 * config/i386/winnt.c (i386_pe_encode_section_info): Enable
6493 even if not first.
6494
6495 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6496
6497 * genautomata.c (output_description, output_automaton_units,
6498 output_state_arcs): Add missing specifiers.
6499
6500 2003-05-20 Bob Wilson <bob.wilson@acm.org>
6501
6502 * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
6503 (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
6504 (__mulsi3): Use do_addx* instead of ADDX* instructions. Formatting.
6505 (nsau): Rename to do_nsau. Provide alternate version for use when
6506 the NSAU instruction is available.
6507 (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
6508 (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
6509 * config/xtensa/xtensa-config.h: Update comments to match binutils.
6510 (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
6511 * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
6512 (TARGET_ABS, TARGET_ADDX): Define.
6513 (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
6514 (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
6515 * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
6516 *subx8): Set predicate condition to TARGET_ADDX.
6517 (abssi2): Set predicate condition to TARGET_ABS.
6518 * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
6519 "-maddx", and "-mno-addx" options.
6520 (Xtensa Options): Likewise. Also tag some opcode names with @code.
6521
6522 2003-05-20 Kevin Ryde <user42@zip.com.au>
6523 Wolfgang Bangerth <bangerth@dealii.org>
6524
6525 PR/10355
6526 * doc/extend.texi: Put a warning into the documentation
6527 of attribute regparm.
6528
6529 2003-05-20 Jason Merrill <jason@redhat.com>
6530
6531 * tree.c (expr_last): New fn.
6532 * tree.h: Declare it.
6533 * objc/objc-act (expr_last): Rename to objc_expr_last.
6534
6535 2003-05-20 J"orn Rennecke <joern.rennecke@superh.com>
6536
6537 * sh.c (sh_register_move_cost): Add clase for moving between
6538 FP registers and MAC registers.
6539
6540 2003-05-19 John David Anglin <dave.anglin@nrc-gnrc.gc.ca>
6541
6542 * pa/milli64.S ($$mulI): Fix typo.
6543
6544 2003-05-19 Matt Kraai <kraai@alumni.cmu.edu>
6545
6546 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
6547 (nonlocal_set_p): Remove initial blank line.
6548 * dwarf2out.c (simple_type_size_in_bits): Likewise.
6549 * et-forest.c (et_forest_create): Likewise.
6550 * explow.c (stabilize): Likewise.
6551 * fix-header.c (write_lbrac): Likewise.
6552 * graph.c (start_fct, node_data): Likewise.
6553 * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
6554 * rtlanal.c (global_reg_mentioned_p): Likewise.
6555 * tree.c (bit_position): Likewise.
6556
6557 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
6558
6559 * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
6560 -lthread to -lpthread.
6561
6562 2003-05-19 Neil Booth <neil@daikokuya.co.uk>
6563
6564 * c-opts.c (c_common_decode_option): Don't accept dollars
6565 as identifier characters in assembly.
6566 * doc/cpp.texi: Document this.
6567
6568 2003-05-19 Seth Arnold <sarnold@wirex.com>
6569 Aldy Hernandez <aldyh@redhat.com>
6570
6571 * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
6572 vrsave_size twice.
6573
6574 2003-05-19 Aldy Hernandez <aldyh@redhat.com>
6575
6576 * doc/tm.texi (function_arg): Fix typo.
6577
6578 2003-05-19 Matt Austern <austern@apple.com>
6579
6580 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
6581 * c-common.h (warn_invalid_offsetof): Declare.
6582 * c-common.c (warn_invalid_offsetof): Define.
6583 * doc/invoke.texi: Document -Winvalid-offsetof.
6584 * testsuite/g++.dg/other/offsetof3.C: New.
6585 * testsuite/g++.dg/other/offsetof4.C: New.
6586
6587 2003-05-19 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
6588 David Edelsohn <edelsohn@gnu.org>
6589
6590 * config/rs6000/rs6000.c (rs6000_alignment_string,
6591 rs6000_alignment_flags): New variables.
6592 (rs6000_parse_alignment_option): New function.
6593 (rs6000_override_options): Call it.
6594 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
6595 (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
6596 macros.
6597 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
6598 natural alignment if TARGET_NATURAL_ALIGNMENT
6599 (ROUND_TYPE_ALIGN): Always use default record alignment if
6600 TAGET_NATURAL_ALIGNMENT.
6601 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
6602 (ROUND_TYPE_ALIGN): Same.
6603 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
6604 (ROUND_TYPE_ALIGN): Same.
6605 * doc/invoke.texi (Option Summary, PowerPC Options): Document
6606 new options.
6607
6608 2003-05-19 J"orn Rennecke <joern.rennecke@superh.com>
6609
6610 * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
6611 of a function using ASMSPEC, prepend a star.
6612
6613 2003-05-19 Jason Merrill <jason@redhat.com>
6614
6615 * tree-inline.c (copy_body_r): Avoid generating &* during inline
6616 substitution.
6617
6618 2003-05-19 Andrew Macleod <amacleod@redhat.com>
6619
6620 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
6621 not mark assignments to the hard frame pointer as being stack
6622 frame related.
6623 (xstormy16_expand_epilogue): Mark adjustments to the stack
6624 pointer as being stack frame related.
6625
6626 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
6627
6628 * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
6629 ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
6630 (PREDICATE_CODES): Add hilo_operand.
6631 * config/mips/mips.c (hilo_operand): New predicate.
6632 (mips_adjust_insn_length): Account for the number nops that might
6633 be needed to avoid hardware hazards.
6634 * config/mips/mips.md (dslot): Remove attribute.
6635 (hazard): New attribute.
6636 (can_delay): Use it. Check for calls, branches & jumps.
6637 (muldi3): Use the standard dmult pattern for mips16 code.
6638 (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
6639
6640 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
6641
6642 * config/mips/mips-protos.h (final_prescan_insn,
6643 mips_count_memory_refs, mips_fill_delay_slot): Remove.
6644 * config/mips/mips.h (delay_type, dslots_load_total,
6645 dslots_load_filled, dslots_jump_total, dslots_jump_filled,
6646 dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
6647 mips_load_reg3, mips_load_reg4): Remove.
6648 (MASK_STATS): Remove.
6649 (MASK_EXPLICIT_RELOCS): Reuse its value.
6650 (TARGET_STATS): Remove.
6651 (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
6652 Warn that -mstats is now ignored.
6653 (FINAL_PRESCAN_INSN): Undefine.
6654 (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
6655 (ASM_OUTPUT_REG_POP): Likewise.
6656 * config/mips/mips.c (dslots_load_total, dslots_load_filled,
6657 dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
6658 mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
6659 mips_fill_delay_slot, mips_count_memory_refs,
6660 final_prescan_insn): Remove.
6661 (output_block_move): Remove calls to mips_count_memory_refs.
6662 (print_operand): Remove printing of #nop for TARGET_STATS.
6663 (mips_output_function_epilogue): Remove TARGET_STATS code.
6664 Reorganize setting of fnnmae.
6665 * config/mips/mips.md: Remove handling of dslot statistics
6666 throughout file. Change all fcmp patterns into normal asm
6667 templates, removing calls to mips_fill_delay_slot.
6668 * doc/invoke.texi: Remove documentation of -mstats.
6669
6670 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
6671
6672 * config/mips/mips.c (mips_class_max_nregs): Return the number of
6673 words in the mode.
6674
6675 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
6676
6677 * config/mips/mips.c (override_options): Disable explicit
6678 relocs for old ABIs unless using gas.
6679
6680 2003-05-18 Eric Christopher <echristo@redhat.com>
6681
6682 * config/mips/mips.h: Remove definition of g_switch_value.
6683
6684 2003-05-18 Matt Kraai <kraai@alumni.cmu.edu>
6685
6686 * flags.h (g_switch_value): Change to an unsigned
6687 HOST_WIDE_INT.
6688 * toplev.c (g_switch_value): Likewise.
6689
6690 * config/alpha/alpha.c (small_symbolic_operand): Remove
6691 g_switch_value cast.
6692 (alpha_in_small_data_p): Cast size to an unsigned
6693 HOST_WIDE_INT.
6694
6695 * config/frv/frv.c (frv_in_small_data_p): Cast size to an
6696 unsigned HOST_WIDE_INT.
6697 * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
6698 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
6699
6700 * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
6701 unsigned HOST_WIDE_INT.
6702 (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
6703 * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
6704 (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
6705
6706 * config/rs6000/rs6000.c (rs6000_file_start): Use
6707 HOST_WIDE_INT_PRINT_UNSIGNED.
6708 (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
6709 (rs6000_elf_in_small_data_p): Cast size to unsigned
6710 HOST_WIDE_INT.
6711 * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
6712 Remove.
6713 (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
6714 g_switch_set.
6715 (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
6716 g_switch_value cast.
6717
6718 2003-05-18 Roger Sayle <roger@eyesopen.com>
6719 Zack Weinberg <zack@codesourcery.com>
6720
6721 PR middle-end/10472
6722 * builtins.c (expand_builtin_memcpy): Call force_operand on
6723 expressions and use simplify_gen_binary to create the addition.
6724
6725 2003-05-18 Andreas Schwab <schwab@suse.de>
6726
6727 * config/m68k/m68k.md: Use define_constants for unspec numbers.
6728
6729 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
6730
6731 * config/sparc/sparc.h: Define sparc for now.
6732
6733 2003-05-18 Nathanael Nerode <neroden@gcc.gnu.org>
6734
6735 * config.gcc: Clear xm_file, md_file at the beginning of each pass.
6736
6737 * config/stormy16/stormy16.h: Remove about 3000 lines of
6738 target-independent comments. Update copyright notice.
6739
6740 * doc/collect2.texi: GNU CC -> GCC.
6741 * doc/headerdirs.texi: GNU CC -> GCC.
6742
6743 2003-05-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
6744
6745 * hashtable.h (struct ht_identifier): Add data member "hash_value".
6746 * hashtable.c (ht_lookup): Use it when searching, remember.
6747 (ht_expand): Do not recompute.
6748 * tree.h (IDENTIFIER_HASH_VALUE): New macro.
6749
6750 2003-05-18 Nathan Sidwell <nathan@codesourcery.com>
6751
6752 * gcov-io.c (gcov_read_bytes): Fix fread thinko.
6753
6754 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
6755
6756 * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
6757 Default here.
6758 (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
6759 * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
6760 * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
6761 * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
6762 config/arm/linux-elf.h, config/arm/rtems-elf.h,
6763 config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
6764 config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
6765 config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
6766 config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
6767 config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
6768 config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
6769 config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
6770 config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
6771 config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
6772 config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
6773 config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
6774 Don't define __ELF__.
6775 * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
6776 Define __ELF__.
6777 * doc/cpp.texi: Document __ELF__.
6778 * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS. *
6779
6780 2003-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6781
6782 * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
6783 always use stdarg.
6784 * c-errors.c (pedwarn_c99): Likewise.
6785 * c-format.c (status_warning): Likewise.
6786 * c-semantics.c (build_stmt): Likewise.
6787 * calls.c (emit_library_call, emit_library_call_value): Likewise.
6788 * collect2.c (notice, fatal_perror, fatal, error): Likewise.
6789 * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
6790 * diagnostic.c (build_message_string, output_printf,
6791 output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
6792 fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
6793 error_with_decl, fnotice): Likewise.
6794 * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
6795 dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
6796 dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
6797 dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
6798 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
6799 dw2_asm_output_encoded_addr_rtx): Likewise.
6800 * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
6801 * errors.c (warning, error, fatal, internal_error): Likewise.
6802 * final.c (output_operand_lossage, asm_fprintf): Likewise.
6803 * fix-header.c (fatal): Likewise.
6804 * gcc.c (fatal, error, notice): Likewise.
6805 * gcov.c (fnotice): Likewise.
6806 * genattrtab.c (attr_rtx, attr_printf): Likewise.
6807 * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
6808 * gensupport.c (message_with_line): Likewise.
6809 * mips-tfile.c (fatal, error): Likewise.
6810 * protoize.c (notice): Likewise.
6811 * ra-debug.c (ra_debug_msg): Likewise.
6812 * read-rtl.c (fatal_with_file_and_line): Likewise.
6813 * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
6814 * tree.c (build, build_nt, build_function_type_list): Likewise.
6815
6816 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6817
6818 * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
6819 * gcc.c (cpp_predefines): Remove.
6820 (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
6821 (static_specs): Remove predefines.
6822 * system.h: Poison CPP_PREDEFINES.
6823 * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
6824 config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
6825
6826 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6827
6828 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
6829 config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
6830 config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
6831 use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
6832
6833 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6834
6835 PR c/9209
6836 * c-common.c, c-common.h (dollars_in_ident): Remove.
6837 * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
6838 (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
6839 * cpphash.h (warned_dollar): Rename warn_dollars.
6840 * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
6841 Permit dollars regardless of -std=.
6842 (post_options): Set warn_dollars.
6843 * cpplex.c (forms_identifier_p): Use warn_dollars.
6844 * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
6845 Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
6846 * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
6847 Update documentation.
6848
6849 2003-05-17 Andreas Schwab <schwab@suse.de>
6850
6851 * config/m68k/m68k.c (m68k_output_function_prologue): Use
6852 HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
6853 formatting a HOST_WIDE_INT.
6854 (m68k_output_function_epilogue): Likewise.
6855
6856 2003-05-17 Zack Weinberg <zack@codesourcery.com>
6857
6858 * doc/install.texi: Remove information about desupported targets.
6859
6860 2003-05-17 Andreas Schwab <schwab@suse.de>
6861
6862 * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
6863 * config/m68k/linux.h: Likewise.
6864 * config/m68k/m68k-none.h: Likewise.
6865 * config/m68k/netbsd-elf.h: Likewise.
6866 * config/m68k/sgs.h: Likewise.
6867 * config/m68k/m68k.h: Likewise.
6868 * config/m68k/m68k.md: Likewise.
6869 * config/m68k/m68k.c: Likewise.
6870 * doc/md.texi (Machine Constraints): Remove Sun FPA specific
6871 constraints.
6872 * doc/invoke.texi (Option Summary): Remove -mfpa.
6873 (M680x0 Options): Likewise.
6874
6875 2003-05-17 David Edelsohn <edelsohn@gnu.org>
6876
6877 * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
6878
6879 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6880
6881 * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
6882 * config/sparc/liteelf.h, config/sparc/openbsd64.h,
6883 config/sparc/rtemself.h, config/sparc/sol2-64.h,
6884 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
6885 Update for use of TARGET_SUB_OS_CPP_BUILTINS.
6886
6887 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6888
6889 * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
6890 TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
6891
6892 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
6893
6894 * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
6895 * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
6896 sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
6897 sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
6898 sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
6899 sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
6900 sparc/sysv4.h,
6901 * sparc/sysv4-only.h: New.
6902
6903 2003-05-17 Alan Modra <amodra@bigpond.net.au>
6904
6905 * function.c (assign_parms): Check for zero size args.
6906
6907 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6908
6909 * cfgloopanal.c (test_for_iteration): Use string concatentation on
6910 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
6911 function calls into one.
6912 * dbxout.c (dbxout_symbol): Likewise.
6913 * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
6914 * dwarf2asm.c (dw2_asm_output_data_uleb128,
6915 dw2_asm_output_data_sleb128): Likewise.
6916 * genrecog.c (debug_decision_2): Likewise.
6917 * loop.c (emit_prefetch_instructions): Likewise.
6918 * print-rtl.c (print_rtx): Likewise.
6919 * print-tree.c (print_node_brief, print_node): Likewise.
6920 * ra-debug.c (dump_igraph, dump_graph_cost,
6921 dump_static_insn_cost): Likewise.
6922 * ra-rewrite.c (dump_cost): Likewise.
6923 * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
6924 * sreal.c (dump_sreal): Likewise.
6925 * unroll.c (unroll_loop, precondition_loop_p): Likewise.
6926 * varasm.c (assemble_vtable_entry): Likewise.
6927
6928 * avr.c (avr_output_function_prologue,
6929 avr_output_function_epilogue, print_operand): Fix format specifier
6930 warnings.
6931 (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
6932 * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
6933
6934 2003-05-16 Geoffrey Keating <geoffk@apple.com>
6935
6936 * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
6937 and ! TARGET_STRING cases.
6938
6939 * doc/cppopts.texi (-undef): Fix texinfo warning.
6940
6941 * doc/cppopts.texi (-H): Document that -H works for PCH files too.
6942 * cppfiles.c (validate_pch): When -H is used, print some information
6943 about PCH files found.
6944
6945 2003-05-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6946
6947 * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
6948 * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
6949 * config/mips/t-sr71k: Likewise.
6950
6951 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6952
6953 * arc.c (arc_output_function_prologue,
6954 arc_output_function_epilogue): Fix format specifier warnings.
6955 * arc.h (LARGE_INT): Fix signed/unsigned warnings.
6956
6957 * v850.c (print_operand): Fix format specifier warnings.
6958
6959 * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
6960 specifier warnings.
6961
6962 * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
6963 format specifier warnings.
6964
6965 * ip2k.c (function_prologue, function_epilogue, print_operand):
6966 Fix format specifier warnings.
6967 * ip2k.md: Likewise.
6968
6969 * i960.c (i960_output_function_prologue, i960_print_operand,
6970 i960_print_operand_addr): Fix format specifier warnings.
6971
6972 * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
6973 (i370_output_function_prologue): Fix format specifier warnings.
6974 * i370.h (PRINT_OPERAND): Likewise.
6975
6976 * fr30.c (fr30_print_operand): Fix format specifier warnings.
6977
6978 * dsp16xx.c (print_operand_address): Fix format specifier warning.
6979 * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
6980
6981 * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
6982 specifier warnings.
6983
6984 * alpha.c (print_operand_address, alpha_start_function,
6985 unicosmk_output_ssib): Use string concatentation on
6986 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
6987 function calls into one.
6988 * arm.c (arm_print_operand): Likewise.
6989 * cris.c (cris_asm_output_mi_thunk): Likewise.
6990 * frv.c (frv_asm_output_mi_thunk): Likewise.
6991 * ia64.c (ia64_print_operand, process_set): Likewise.
6992 * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
6993 Likewise.
6994 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
6995 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
6996 * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
6997 * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
6998 * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
6999 * s390.c (s390_assemble_integer): Likewise.
7000 * sparc.c (sparc_flat_function_prologue,
7001 sparc_flat_function_epilogue): Likewise.
7002 * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
7003 * vax.c (vax_output_mi_thunk): Likewise.
7004
7005 * frv.c (frv_print_operand_memory_reference): Fix format specifier
7006 warning.
7007 (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
7008
7009 * m68k.c (m68k_output_function_epilogue): Fix format specifier
7010 warnings.
7011
7012 * stormy16-protos.h (xs_hi_general_operand,
7013 xs_hi_nonmemory_operand): Prototype.
7014 * stormy16.c (xstormy16_output_shift): Fix format specifier
7015 warnings.
7016
7017 * cris.c: Fix format specifier warnings.
7018
7019 2003-05-16 Nick Clifton <nickc@redhat.com>
7020
7021 * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
7022
7023 2003-05-16 Wolfgang Bangerth <bangerth@dealii.org>
7024
7025 * doc/bugreport.texi: Remove most of the of the preface of the
7026 bugs section.
7027
7028 2003-05-16 Jakub Jelinek <jakub@redhat.com>
7029
7030 * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
7031 .save XX, r0.
7032
7033 2003-05-15 Roger Sayle <roger@eyesopen.com>
7034
7035 * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
7036
7037 2003-05-15 Eric Christopher <echristo@redhat.com>
7038
7039 * cfgcleanup.c (merge_blocks): Fix return value.
7040
7041 2003-05-15 Eric Christopher <echristo@redhat.com>
7042
7043 * combine.c (expand_compound_operation): Make sure
7044 that zero_extend operation is profitable.
7045
7046 2003-05-15 Richard Henderson <rth@redhat.com>
7047
7048 * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
7049 code protected by USE_GNULIBC_1.
7050
7051 2003-05-15 Zack Weinberg <zack@codesourcery.com>
7052
7053 * config.gcc: Purge all targets obsoleted in GCC 3.3. Also
7054 remove hppa*-*-mpeix* which could not be built, and prune
7055 files from tmake_file= or tm_file= lists that don't exist.
7056
7057 * config/alpha/alpha-interix.h, config/alpha/alpha32.h
7058 * config/alpha/t-interix, config/arm/conix-elf.h
7059 * config/arm/t-arm-aout, config/arm/t-strongarm-coff
7060 * config/arm/unknown-elf-oabi.h, config/i386/win32.h
7061 * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
7062 * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
7063 * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
7064 * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
7065 * config/m68k/m68k-psos.h, config/m68k/mot3300.h
7066 * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
7067 * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
7068 * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
7069 * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
7070 * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
7071 * config/m68k/tower-as.h, config/m68k/tower.h
7072 * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
7073 * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
7074 * config/m88k/m88k-protos.h, config/m88k/m88k.c
7075 * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
7076 * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
7077 * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
7078 * config/mips/rtems64.h, config/mips/sni-gas.h
7079 * config/mips/sni-svr4.h, config/mips/t-ecoff
7080 * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
7081 * config/mn10200/mn10200.c, config/mn10200/mn10200.h
7082 * config/mn10200/mn10200.md, config/mn10200/t-mn10200
7083 * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
7084 * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
7085 * config/romp/romp-protos.h, config/romp/romp.c
7086 * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
7087 * config/rs6000/aix3newas.h, config/rs6000/mach.h
7088 * config/sparc/bsd.h, config/sparc/hal.h
7089 * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
7090 * config/sparc/lynx.h, config/sparc/netbsd.h
7091 * config/sparc/sp86x-aout.h, config/sparc/splet.h
7092 * config/sparc/sun4gas.h, config/sparc/sun4o3.h
7093 * config/sparc/sunos4.h, config/sparc/t-chorus-elf
7094 * config/sparc/t-halos, config/sparc/t-sparcbare
7095 * config/sparc/t-splet, config/sparc/t-sunos41
7096 * config/v850/rtems.h: Delete file.
7097
7098 2003-05-15 Aldy Hernandez <aldyh@redhat.com>
7099
7100 * config/rs6000/rs6000-protos.h (function_value): Protoize.
7101
7102 * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
7103
7104 * config/rs6000/rs6000.c (rs6000_function_value): New.
7105
7106 2003-05-15 Philip Blundell <philb@gnu.org>
7107
7108 * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
7109 All uses updated.
7110 (arm_tune_xscale): New variable.
7111 (arm_override_options): Set it.
7112 (arm_adjust_cost): Use it in place of arm_arch_xscale.
7113 (arm_gen_load_multiple): Likewise.
7114 (arm_gen_store_multiple): Likewise.
7115 * config/arm/arm.md (is_xscale): Likewise.
7116 * config/arm/arm.h (arm_tune_xscale): Declare.
7117
7118 2003-05-15 Philip Blundell <philb@gnu.org>
7119
7120 PR target/10730
7121 * config/arm/arm.c (adjacent_mem_locations): Reject offsets
7122 involving invalid constants.
7123
7124 2003-05-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7125
7126 * pa.c (hppa_expand_prologue): Remove blockage.
7127
7128 2003-05-15 Wolfgang Bangerth <bangerth@dealii.org>
7129
7130 * doc/bugreport.texi: Remove most of the bug reporting
7131 instructions and merge them into bugs.html.
7132
7133 2003-05-14 Matt Kraai <kraai@alumni.cmu.edu>
7134
7135 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
7136 g_switch_value to unsigned HOST_WIDE_INT.
7137
7138 2003-05-14 Eric Christopher <echristo@redhat.com>
7139
7140 * combine.c: Fix header comments.
7141 (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
7142 to all calls and prototype.
7143
7144 2003-05-14 Roger Sayle <roger@eyesopen.com>
7145
7146 PR optimization/10764
7147 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
7148 Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
7149 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): Likewise,
7150 add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
7151 (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
7152 the corresponding *fyl2x_?fxf3 instructions.
7153
7154 2003-05-14 Bob Wilson <bob.wilson@acm.org>
7155
7156 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
7157 * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
7158 XCHAL_HAVE_L32R): New.
7159 * config/xtensa/xtensa-protos.h (non_const_move_operand,
7160 xtensa_load_constant, xtensa_function_prologue,
7161 xtensa_function_epilogue): Delete prototypes.
7162 (xtensa_expand_prologue): New.
7163 * config/xtensa/xtensa.c (frame_size_const,
7164 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
7165 non_const_move_operand, xtensa_load_constant, xtensa_reorg,
7166 xtensa_function_prologue): Delete.
7167 (add_operand, xtensa_mem_offset): Formatting.
7168 (move_operand): If the const16 option is available, allow any SFmode
7169 and SImode constants.
7170 (xtensa_emit_move_sequence): Inline the former contents of
7171 xtensa_load_constant with modifications to handle the const16 option.
7172 (override_options): Add xtensa_char_to_class['W'] and set it to
7173 the general register class only if the const16 option is enabled.
7174 Fix formatting. Disallow PIC when using the const16 option.
7175 (print_operand): Reorganize to switch on "letter" instead of the
7176 RTL code. Add output_operand_lossage calls for invalid cases.
7177 Add support for 't' and 'b' letters.
7178 (xtensa_expand_prologue): New function to replace
7179 xtensa_function_prologue and xtensa_reorg.
7180 (xtensa_function_epilogue): Declare this as static. Delete code
7181 to print the retw.n or retw instruction.
7182 (xtensa_return_addr): Use A0_REG instead of 0.
7183 (xtensa_rtx_costs): Add costs for using the const16 option.
7184 * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
7185 (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
7186 (TARGET_SWITCHES): Add "const16" and "no-const16".
7187 (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
7188 (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
7189 using the const16 option.
7190 (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
7191 (TRAMPOLINE_SIZE): Change from 49 to 59.
7192 (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
7193 (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
7194 when using the const16 option.
7195 (PREDICATE_CODES): Delete non_const_move_operand.
7196 * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
7197 UNSPECV_ENTRY.
7198 (movdi, movdf): If the source is a constant, always expand to a
7199 sequence of movsi insns.
7200 (movdi_internal, movdf_internal): Remove alternative using l32r insns.
7201 (movsi_internal, movsf_internal): Add alternative using const16 insns.
7202 (movsf): Add const16 support.
7203 (entry, prologue, epilogue): New.
7204 (set_frame_ptr): Add missing mode for unspec_volatile operation.
7205 Likewise for subsequent split pattern.
7206 * doc/invoke.texi (Option Summary, Xtensa Options): Document new
7207 "-mconst16" and "-mno-const16" options.
7208
7209 2003-05-14 Richard Henderson <rth@redhat.com>
7210
7211 * config/ia64/ia64.c (ia64_expand_load_address): Force destination
7212 to be DImode register. Merge load_symptr.
7213 * config/ia64/ia64.md (load_symptr): Remove.
7214
7215 2003-05-14 Richard Henderson <rth@redhat.com>
7216
7217 * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
7218 DEFERRED_CONSTANT_P.
7219 * integrate.c (copy_rtx_and_substitute): Update use.
7220 * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
7221 to the copy generated.
7222 (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
7223 of the constant to see if we should emit.
7224 (mark_constant): Similarly.
7225 (output_constant_def_contents): Set TREE_ASM_WRITTEN.
7226
7227 2003-05-14 David Edelsohn <edelsohn@gnu.org>
7228
7229 * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
7230 move record condition.
7231 (movdi_internal2): Same.
7232
7233 2003-05-14 Nathan Sidwell <nathan@codesourcery.com>
7234
7235 * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
7236 (GCOV_TAG_*) Force type to gcov_unsigned_t.
7237 (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
7238 (struct gcov_var): Remove modified. Add start, length, offset,
7239 overread. Have buffer array for libgcov.
7240 (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
7241 (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
7242 * gcov-io.c (gcov_open): Set mode, do not read anything.
7243 (gcov_close): Write final block.
7244 (gcov_write_block, gcov_allocate): New.
7245 (gcov_write_bytes): Make static. Write or allocate buffer.
7246 (gcov_write_unsigned, gcov_write_counter): Buffer can never be
7247 null.
7248 (gcov_write_string): Adjust.
7249 (gcov_write_tag)
7250 (gcov_write_length): Adjust. Flush the block.
7251 (gcov_write_tag_length): Buffer can never be null.
7252 (gcov_read_bytes): Make static. Read in block.
7253 (gcov_sync): Moved here. Adjust.
7254 (gcov_seek): Moved here. Adjust.
7255 * coverage.c (read_counts_file): Adjust.
7256 * gcov-dump.c (print_prefix): Add position parameter.
7257 (flag_dump_positions): New flag.
7258 (options, main, print_usage): Add it.
7259 (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
7260 tag_summary): Adjust.
7261 * gcov.c (read_graph_file, read_count_file): Adjust.
7262 * libgcov.c (gcov_exit): Adjust.
7263
7264 * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
7265 (libgcov.a): Depend on libgcc.a.
7266 (gcov.o, gcov-dump.o): Add gcov-io.c.
7267 * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
7268
7269 * loop.c (check_dbra_loop): Factor common test.
7270
7271 2003-05-14 Ben Elliston <bje@wasabisystems.com>
7272
7273 * doc/md.texi (Automaton pipeline description): Grammar fixes.
7274
7275 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
7276
7277 * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
7278 (TARGET_INITIALIZER): Include it.
7279 * target.h (struct gcc_target): Add machine_dependent_reorg field.
7280 * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
7281 * system.h: Poison MACHINE_DEPENDENT_REORG.
7282
7283 * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
7284 * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
7285 * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7286 (alpha_handle_trap_shadows): Remove "first insn" parameter.
7287 (alpha_align_insns): Likewise.
7288 (alpha_reorg): Likewise. Make static. Update calls to above
7289 functions.
7290
7291 * config/arm/arm-protos.h (arm_reorg): Remove declaration.
7292 * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
7293 * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7294 (arm_reorg): Remove parameter. Make static.
7295
7296 * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
7297 * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
7298 * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7299 (avr_reorg): Renamed from machine_dependent_reorg. Make static.
7300 Remove parameter.
7301
7302 * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
7303 * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
7304 * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7305 (c4x_reorg): Renamed from c4x_process_after_reload. Make static.
7306 Remove parameter.
7307
7308 * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
7309 * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
7310 * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
7311
7312 * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
7313 * config/frv/frv.c: Remove orphaned comment.
7314
7315 * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
7316 * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
7317 * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7318 (ix86_reorg): Renamed from x86_machine_dependent_reorg. Make static.
7319 Remove parameter.
7320
7321 * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
7322 * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
7323 * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7324 (emit_insn_group_barriers): Remove "first insn" parameter.
7325 (emit_all_insn_group_barriers): Likewise.
7326 (ia64_reorg): Likewise. Make static. Update calls to above functions.
7327 (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
7328
7329 * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
7330 * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
7331 * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7332 (ip2k_reorg): Renamed from machine_dependent_reorg. Make static.
7333 Remove parameter.
7334
7335 * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
7336 * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
7337 * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7338 (m68hc11_reorg): Make static. Remove parameter.
7339
7340 * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
7341 * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
7342 * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7343 (conditionalize_optimization): Remove parameter.
7344 (mcore_reorg): Renamed from mcore_dependent_reorg. Remove parameter.
7345 Make static. Update call to conditionalize_optimization.
7346
7347 * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
7348 * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
7349 * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7350 (mips_reorg): Renamed from machine_dependent_reorg. Remove parameter.
7351 Make static.
7352
7353 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
7354 * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
7355 * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7356 (mmix_reorg): Renamed from mmix_machine_dependent_reorg. Make static.
7357 Remove parameter.
7358
7359 * config/pa/pa-protos.h (pa_reorg): Remove declaration.
7360 * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
7361 * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7362 (pa_combine_instructions): Remove "first insn" parameter.
7363 (remove_useless_addtr_insns): Likewise.
7364 (pa_reorg): Likewise. Make static. Update calls to above functions.
7365
7366 * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
7367 commented-out definition.
7368
7369 * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
7370 * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
7371 * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7372 (s390_reorg): Renamed from s390_machine_dependent_reorg. Make static.
7373 Remove parameter.
7374
7375 * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
7376 * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
7377 * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7378 (sh_reorg): Renamed from machine_dependent_reorg. Make static.
7379 Remove parameter.
7380 (sh_output_mi_thunk): Call sh_reorg directly.
7381 * config/sh/sh.md: Update comment.
7382
7383 * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
7384 commented-out definition.
7385
7386 * config/v850/v850-protos.h (v850_reorg): Remove declaration.
7387 * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
7388 * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7389 (v850_reorg): Make static. Remove parameter.
7390
7391 * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
7392 * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
7393 * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7394 (xtensa_reorg): Make static. Remove parameter.
7395
7396 * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
7397 (TARGET_MACHINE_DEPENDENT_REORG): Document.
7398
7399 2003-05-13 Richard Henderson <rth@redhat.com>
7400
7401 * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
7402 the old decl had instantiated DECL_RTL.
7403
7404 2003-05-13 Mike Stump <mrs@apple.com>
7405
7406 * doc/invoke.texi (Option Summary): Kill off documentation for -$.
7407
7408 2003-05-13 Janis Johnson <janis187@us.ibm.com>
7409
7410 * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
7411 HOST_WIDE_INT argument.
7412
7413 2003-05-13 Jason Merrill <jason@redhat.com>
7414
7415 * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
7416
7417 * tree.c (iterative_hash_expr): New fn.
7418
7419 * c-semantics.c (emit_local_var): Don't mess with temp slots if
7420 there's no initializer.
7421
7422 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
7423
7424 * final.c (final_scan_insn): Apply the effects of frame-related
7425 delay slot insns before emitting a delayed branch.
7426
7427 2003-05-13 Nick Clifton <nickc@redhat.com>
7428
7429 * config/mcore/mcore.md (jump): Use emit_jump_insn.
7430
7431 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7432
7433 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
7434 parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
7435
7436 2003-05-12 DJ Delorie <dj@redhat.com>
7437
7438 * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
7439 (emit_push_insn): Don't use push when the source alignment is less
7440 than the stack's push rounding.
7441
7442 2003-05-13 Zack Weinberg <zack@codesourcery.com>
7443
7444 * diagnostic.c (output_format): Add support for %m.
7445 (output_printf, output_verbatim, diagnostic_set_info,
7446 verbatim): Set err_no field of the text_info structure being
7447 initialized.
7448 (fatal_io_error): Delete function.
7449 * diagnostic.h (text_info): Add err_no field.
7450 * toplev.h (fatal_io_error): Delete prototype.
7451
7452 * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
7453 * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
7454 * objc/objc-act.c: Replace all calls to fatal_io_error with
7455 calls to fatal_error; add ": %m" to the end of all the affected
7456 error messages.
7457
7458 2003-05-13 Zack Weinberg <zack@codesourcery.com>
7459
7460 * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
7461 * rtl.h: Prototype it.
7462 * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
7463 when appropriate.
7464
7465 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7466
7467 * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
7468 ("*iorsi3_oi"): Likewise.
7469
7470 2003-05-13 Richard Earnshaw <rearnsha@arm.com>
7471
7472 * arm.md (compare_scc): Use shorter sequence for EQ case.
7473 (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
7474 (and_scc_scc): Ensure split only applies when there is a dominance
7475 of the comparisons.
7476 (and_scc_scc_nodom): New insn-and-split pattern.
7477
7478 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
7479
7480 * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
7481 to _Unwind_SetGRPtr().
7482
7483 2003-05-13 Michael Eager <eager@mvista.com>
7484
7485 * Makefile.in: Initialize program_transform_cross_name from
7486 @program_transform_name@ instead of target_alias.
7487
7488 2003-05-12 Janis Johnson <janis187@us.ibm.com>
7489 Alan Modra <amodra@bigpond.net.au>
7490 Jakub Jelinek <jakub@redhat.com>
7491
7492 * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
7493 * configure: Rebuild.
7494 * config/rs6000/rs6000-protos.h: Update.
7495 * config/rs6000/rs6000.c (rs6000_tls_size): New.
7496 (rs6000_tls_size_string): New.
7497 (rs6000_parse_tls_size_option): New.
7498 (rs6000_legitimize_tls_address): New.
7499 (rs6000_tls_get_addr): New.
7500 (rs6000_got_sym): New.
7501 (rs6000_tls_symbol_ref): New.
7502 (rs6000_tls_symbol_ref_1): New.
7503 (rs6000_get_some_local_dynamic_name): New.
7504 (rs6000_get_some_local_dynamic_name_1): New.
7505 (TARGET_HAVE_TLS): New.
7506 (TARGET_CANNOT_FORCE_CONST_MEM): New.
7507 (rs6000_override_options): Handle -mtls-size option.
7508 (constant_pool_expr_1): Handle TLS symbols.
7509 (rs6000_legitimize_address): Handle TLS symbols.
7510 (rs6000_tls_referenced_p): New.
7511 (rs6000_legitimate_address): Handle TLS symbols.
7512 (rs6000_emit_move): Handle TLS symbols.
7513 (print_operand): Handle TLS symbols.
7514 (uses_TOC): Handle TLS symbols.
7515 (rs6000_emit_prologue): Use symbol for unspec constant.
7516 * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
7517 (some_ld_name): New.
7518 (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
7519 (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
7520 (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
7521 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
7522 Support TLS.
7523 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
7524 tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
7525 tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
7526 tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
7527 tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
7528 tls_tls_64): New.
7529 * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
7530
7531 2003-05-12 Neil Booth <neil@cat.daikokuya.co.uk>
7532
7533 * Makefile.in (stage2_build, stage3_build, stage4_build):
7534 Set BUILD_CC to the same as CC.
7535
7536 2003-05-12 Neil Booth <neil@daikokuya.co.uk>
7537
7538 * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
7539
7540 2003-05-12 Andreas Schwab <schwab@suse.de>
7541
7542 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
7543 as unused.
7544 (bundling): Initialize 'pos'.
7545 (ia64_expand_builtin): Initialize 'rmode'.
7546
7547 2003-05-12 David Edelsohn <edelsohn@gnu.org>
7548
7549 * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
7550 (ASM_OUTPUT_ALIGNED_COMMON): Same.
7551 (ASM_OUTPUT_LOCAL): Same.
7552
7553 Mon May 12 21:53:29 CEST 2003 Jan Hubicka <jh@suse.cz>
7554
7555 * varasm.c (output_constant): Fix underflow.
7556
7557 2003-05-12 Mark Mitchell <mark@codesourcery.com>
7558
7559 PR other/10745
7560 * configure.in: Correct detection of GNU ld version number.
7561 * configure: Regenerated.
7562
7563 2003-05-12 Zack Weinberg <zack@codesourcery.com>
7564
7565 * diagnostic.c (diagnostic_for_decl): Take a
7566 diagnostic_context argument. Restructure to be consistent
7567 with diagnostic_report_diagnostic.
7568 (diagnostic_count_diagnostic): Now static. Take a
7569 diagnostic_info argument, not just a diagnostic_t. Some code
7570 moved here from internal_error. Move a case label for
7571 clarity.
7572 (diagnostic_action_after_output): New function. Code moved
7573 here from internal_error and fatal_error.
7574 (bug_report_request): New #define so that this text appears in
7575 only one place.
7576 (diagnostic_report_diagnostic): Update to match changes to
7577 diagnostic_count_diagnostic. Call diagnostic_action_after_output.
7578 (diagnostic_set_info): Call gettext here.
7579
7580 (pedwarn): Update comment. Don't call gettext here.
7581 (sorry): Use report_diagnostic. Don't call gettext here.
7582 (fatal_error): Remove final fnotice and exit, but call
7583 real_abort to prevent warnings about noreturn function returning.
7584 (internal_error): Likewise. Don't do ICE suppression here nor
7585 call context->internal_error.
7586 (warning_with_decl): Suppress for decls in system headers.
7587 Adjust call to diagnostic_for_decl.
7588 (pedwarn_with_decl): Likewise.
7589 (error_with_decl): Adjust call to diagnostic_for_decl.
7590 (error_recursion): Use bug_report_request.
7591
7592 * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
7593 * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
7594 diagnostic_count_diagnostic.
7595
7596 2003-05-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7597
7598 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
7599
7600 Mon May 12 15:57:54 CEST 2003 Jan Hubicka <jh@suse.cz>
7601
7602 * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
7603 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
7604 * mips/mips.h (ASM_OUTPUT_SKIP): Fix typo in the previous patch.
7605
7606 2003-05-12 Roger Sayle <roger@eyesopen.com>
7607
7608 * doc/rtl.texi: Document zero_extract as a valid destination
7609 of a set insn.
7610
7611 2003-05-12 Richard Earnshaw <rearnsha@arm.com>
7612
7613 * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
7614 '.'. Change all local symbol definitions and references to use LSYM.
7615
7616 Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
7617
7618 * expr.h (assemble_static_space): Update prototype.
7619 * output.h (assemble_zeros, output_constant): Likewise.
7620 * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
7621 * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
7622 it 64bit clean.
7623 * elf.h (ASM_OTUPUT_SKIP): Likewise.
7624 * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
7625 * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7626 Expect HOST_WIDE_INT operand.
7627 * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7628 Expect HOST_WIDE_INT operand.
7629 * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7630 Expect HOST_WIDE_INT operand.
7631 * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
7632 HOST_WIDE_INT operand.
7633 * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
7634 ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
7635 * aout.h (ASM_OTUPUT_SKIP): Likewise.
7636 * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
7637 * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
7638 * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
7639 * frv.h (ASM_OTUPUT_SKIP): Likewise.
7640 * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
7641 * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7642 Make it 64bit
7643 clean.
7644 * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
7645 * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7646 Make it 64bit clean.
7647 * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
7648 * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
7649 HOST_WIDE_INT operand
7650 * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7651 Expect HOST_WIDE_INT operand
7652 * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
7653 * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
7654 ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
7655 * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7656 Likewise.
7657 * m32r.h (ASM_OUTPUT_COMMON): Likewise.
7658 * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7659 Likewise.
7660 * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7661 * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7662 * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7663 ASM_OUTPUT_SKIP): Likewise.
7664 * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7665 Likewise.
7666 * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7667 ASM_OUTPUT_SKIP): Likewise.
7668 * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7669 ASM_OUTPUT_SKIP): Likewise.
7670 * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7671 * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7672 ASM_OUTPUT_SKIP): Likewise.
7673 * sgs.h (ASM_OUTPUT_SKIP): Likewise.
7674 * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7675 ASM_OUTPUT_SKIP): Likewise.
7676 * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
7677 Likewise.
7678 * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
7679 * iris.h (ASM_OUTPUT_LOCAL): Likewise.
7680 * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7681 * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7682 ASM_OUTPUT_SKIP): Make it 64bit clean.
7683 * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
7684 Make it 64bit clean.
7685 * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
7686 ASM_OUTPUT_SKIP): Make it 64bit clean.
7687 * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
7688 64bit clean.
7689 * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7690 HOST_WIDE_INT argument
7691 * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
7692 * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7693 HOST_WIDE_INT argument
7694 * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7695 * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
7696 * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7697 * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7698 HOST_WIDE_INT argument
7699 * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7700 * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7701 * varasm.c (asm_output_bss, asm_output_aligned_bss,
7702 asm_emit_uninitialized, assemble_zeros, assemble_static_space):
7703 HOST_WIDE_INT argument
7704
7705 2003-05-10 Steven Bosscher <steven@gcc.gnu.org>
7706
7707 * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
7708 favor of walk_tree_without_duplicates. Add comments.
7709
7710 2003-05-12 Josef Zlomek <zlomekj@suse.cz>
7711
7712 * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
7713 (struct alloc_pool_def): New element 'id'.
7714 * alloc-pool.c (fancy_abort): Extern function prototype.
7715 (abort): Macro which uses fancy_abort.
7716 (struct allocation_object_def): New structure.
7717 (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
7718 (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
7719 (last_id): New variable.
7720 (create_alloc_pool): Add the offset of u.data to size of element,
7721 increase and use last_id.
7722 (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
7723 (pool_alloc): Likewise. Set ID for elements.
7724 (pool_free): Check whether the PTR was allocated from POOL.
7725
7726 2003-05-11 Richard Henderson <rth@redhat.com>
7727
7728 PR c/10675
7729 * c-decl.c: Include hashtab.h.
7730 (detect_field_duplicates): New.
7731 (finish_struct): Use it.
7732 * Makefile.in (c-decl.o): Update.
7733 * c-parse.in (structsp_attr): Nreverse component_decl_list results.
7734 (component_decl_list, component_decl_list2,
7735 components, components_notype): Build list in reverse order.
7736 (enumlist): Clarify docs. Use TREE_CHAIN not chainon.
7737
7738 * tree.c (chainon): Special case op2 null as well.
7739 Reorg for clarity.
7740
7741 2003-05-11 Roger Sayle <roger@eyesopen.com>
7742
7743 * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
7744 to implement log, logf and logl built-ins as inline x87 intrinsics.
7745 (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
7746 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
7747 patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
7748
7749 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
7750 UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
7751
7752 2003-05-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7753
7754 * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
7755
7756 * sparc.c (print_operand): Fix uninitialized warning.
7757
7758 2003-05-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7759
7760 * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
7761 real insns.
7762 * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
7763 condition.
7764
7765 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
7766
7767 * doc/cpp.texi: Fix typos.
7768
7769 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7770
7771 * config/s390/s390.c (s390_function_arg_float): New function.
7772 (s390_function_arg_pass_by_reference): Use it.
7773 (s390_function_arg_advance): Likewise.
7774 (s390_function_arg): Likewise.
7775 (s390_va_arg): Likewise
7776
7777 2003-05-11 Nathan Sidwell <nathan@codesourcery.com>
7778
7779 * coverage.h (coverage_counter_alloc): New function.
7780 * function.h (struct function): Remove arc_profile flag.
7781 * coverage.c (fn_ident): Remove.
7782 (fn_b_ctrs, no_coverage): New.
7783 (get_coverage_counts): Use current_function_funcdef_no.
7784 (coverage_counter_alloc): New.
7785 (coverage_counter_ref): Adjust.
7786 (coverage_begin_output): Check no_coverage. Use
7787 current_function_funcdef_no.
7788 (coverage_end_function): Likewise.
7789 (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
7790 than clearing flag_inline_functions. Do not clear arc_profile
7791 flag.
7792 * function.c (prepare_function_start): Do not set arc_profile
7793 flag.
7794 * profile.c (instrument_edges): Return number of instrumented
7795 edges. Use a for loop.
7796 (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
7797 local to here and simplify. Use profile_arc_flag not arc_profile
7798 flag.
7799 (find_spanning_tree): Reformat.
7800 * toplev.c (rest_of_compilation): Use profile_arc_flags and
7801 flag_test_coverage rather than arc_profile flag.
7802
7803 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
7804
7805 * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
7806
7807 2003-05-11 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7808
7809 * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
7810
7811 2003-05-11 Bruno Haible <bruno@clisp.org>
7812
7813 * cppfiles.c (find_or_create_entry): Preserve errno.
7814
7815 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
7816
7817 * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
7818 cpplib as it's a Standard Predefined Macro.
7819 * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
7820 * cppinit.c (_cpp_init_builtins): Take HOSTED. Define
7821 __STDC_HOSTED__ appropriately.
7822 * cpplib.h (_cpp_init_builtins): Update.
7823 * fix-header.c (read_scan_file): Update.
7824 * doc/cpp.texi, doc/cppopts.texi: Update documentation.
7825
7826 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
7827
7828 PR C++/689
7829 PR C++/9257
7830 * c-opts.c (c_common_decode_option): Don't set
7831 warn_ctor_dtor_privacy wen -Wall.
7832 * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
7833
7834 2003-05-10 Alexandre Oliva <aoliva@redhat.com>
7835
7836 * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
7837 patch.
7838
7839 2003-05-10 Zack Weinberg <zack@codesourcery.com>
7840
7841 * diagnostic.c: Reorder functions for clarity, putting all the
7842 functions in the "error" family next to each other, and
7843 likewise all the functions in the "error_with_decl" family.
7844 Some other routines were moved too. Add comments.
7845 (vbuild_message_string): Fold into sole caller.
7846
7847
7848 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7849
7850 * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
7851 (EH_RETURN_HANDLER_RTX): Likewise.
7852 (expand_builtin_eh_return): Do not copy stack adjustment
7853 if EH_RETURN_STACKADJ_RTX is not defined.
7854 (expand_eh_return): Likewise. Also, do not pass stack
7855 adjustment as argument to the eh_return pattern.
7856 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
7857 because EH_RETURN_STACKADJ_RTX is not defined.
7858 * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
7859 is not defined, treat stack pointer like a regular register.
7860 (uw_init_context_1): Set up fake initial stack pointer register.
7861 (uw_install_context_1): Do not compute stack adjustment if
7862 EH_RETURN_STACKADJ_RTX is not defined.
7863
7864 * config/i386/i386.md ("eh_return"): Remove first argument.
7865 * config/mips/mips.md ("eh_return"): Likewise.
7866 * config/rs6000/rs6000.md ("eh_return"): Likewise.
7867 * config/sh/sh.md ("eh_return"): Likewise.
7868
7869 * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
7870
7871 2003-05-10 Alexander Aganichev <aaganichev@yandex.ru>
7872
7873 * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
7874
7875 2003-05-10 Nathan Sidwell <nathan@codesourcery.com>
7876
7877 * defaults.h (GCOV_TYPE_SIZE): Remove.
7878 * gcov-io.h (gcov_type): Set to specific mode int on target.
7879 (gcov_unsigned_t, gcov_position_t): New.
7880 (GCOV_TYPE_NODE): New.
7881 (GCOV_TAG_SUMMARY_LENGTH): Adjust.
7882 (GCOV_COUNTERS_SUMMABLE): New.
7883 (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
7884 gcov_ctr_info, gcov_info): Adjust types.
7885 (gcov_var): Adjust types.
7886 (gcov_write_unsigned, gcov_write_tag,
7887 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7888 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7889 (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
7890 * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
7891 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7892 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7893 * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
7894 __gcov_init, __gcov_merge_add): Adjust gcov types.
7895 * coverage.c (ctr_merge_functions): Constify.
7896 (ctr_names): New.
7897 (read_counts_file): Adjust gcov types. Only summarize & merge
7898 summable counters.
7899 (coverage_counter_ref): Use GCOV_TYPE_NODE.
7900 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
7901 build_ctr_info_value, build_gcov_info): Adjust types.
7902 * profile.c (branch_prob): Adjust gcov types.
7903 * gcov_dump (dump_file): Adjust gcov types.
7904
7905 2003-05-10 Richard Earnshaw <rearnsha@arm.com>
7906
7907 * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
7908 constants.
7909 (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
7910 * arm.c (arm_select_dominance_cc_mode): Renamed from
7911 select_dominance_cc_mode, no-longer static. Use DOM_CC... constants.
7912 Callers updated.
7913 * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
7914
7915 2003-05-09 Roger Sayle <roger@eyesopen.com>
7916
7917 * config/alpha/alpha.c (alpha_start_function): Declare frame_size
7918 as unsigned to avoid signed/unsigned comparison warnings.
7919
7920 2003-05-09 Bob Wilson <bob.wilson@acm.org>
7921
7922 * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
7923 instruction if the Xtensa density option is enabled.
7924
7925 2003-05-09 Matt Kraai <kraai@alumni.cmu.edu>
7926
7927 * mklibgcc.in: Remove extra quotes.
7928
7929 2003-05-09 Mark Mitchell <mark@codesourcery.com>
7930
7931 * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
7932 of int_ftype_void.
7933
7934 2003-05-09 Alexandre Oliva <aoliva@redhat.com>
7935
7936 * reload1.c (reload_cse_move2add): Don't turn an implicit
7937 truncation into a self-set in the narrow mode.
7938
7939 2003-05-09 Richard Earnshaw <rearnsha@arm.com>
7940
7941 * arm.md (clzsi2): The CLZ instruction is predicable.
7942
7943 2003-05-09 Bob Wilson <bob.wilson@acm.org>
7944
7945 * config/xtensa/xtensa.c: Formatting.
7946
7947 2003-05-09 Diego Novillo <dnovillo@redhat.com>
7948
7949 * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
7950 instead of TREE_OPERAND to access the operand of a
7951 CONSTRUCTOR node.
7952
7953 2003-05-09 Diego Novillo <dnovillo@redhat.com>
7954
7955 * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
7956 one operand.
7957
7958 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7959
7960 * toplev.h (warning_with_file_and_line): Don't declare.
7961 (error_with_file_and_line): Likewise.
7962 * diagnostic.c (error_with_file_and_line): Remove.
7963 (warning_with_file_and_line): Likewise.
7964
7965 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7966
7967 * c-parse.in (if_stmt_locus): New object.
7968 (if_prefix rule): Use it. Don't use warning_with_file_and_line.
7969 (select_or_iter_stmt rule): Likewise.
7970 (if_stmt_file): Remove.
7971 (if_stmt_line): Likewise.
7972 * jump.c: include "diagnostic.h"
7973 (never_reached_warning): Don't use warning_with_file_and_line.
7974 * Makefile.in (jump.o): Add dependce on diagnostic.h
7975
7976 2003-05-09 Alan Modra <amodra@bigpond.net.au>
7977
7978 * expr.c (move_block_from_reg): Remove "size" parm. Localize vars.
7979 Move code handling pieces not larger than a word to..
7980 * function.c (assign_parms): ..here, but use change_address instead
7981 of adjust_address and operand_subword, and expand_binop instead of
7982 expand_shift. Adjust calls to move_block_from_reg.
7983 * expr.h (move_block_from_reg): Update declaration.
7984 (copy_blkmode_from_reg): Formatting.
7985 * Makefile.in (function.o): Add $(OPTABS_H) to deps.
7986 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
7987 move_block_from_reg calls.
7988 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7989 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
7990 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7991 * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
7992 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7993 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7994 * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
7995 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
7996 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
7997
7998 2003-05-08 DJ Delorie <dj@redhat.com>
7999
8000 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
8001 to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
8002 variable-sized types).
8003 (xstormy16_function_arg): New. Pass them that way too.
8004 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
8005 * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
8006
8007 2003-05-08 Aldy Hernandez <aldyh@redhat.com>
8008
8009 * mklibgcc.in: Use mkinstalldirs when installing multilib
8010 directories.
8011
8012 2003-05-08 J"orn Rennecke <joern.rennecke@superh.com>
8013
8014 * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
8015 instead of CODE_FOR_jump
8016
8017 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8018
8019 * objc/objc-act.c (error_with_ivar): Don't use
8020 error_with_file_and_line.
8021 (warn_with_method): Don't use warning_with_file_and_line.
8022
8023 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8024
8025 * stmt.c (emit_locus): New macro.
8026 (emit_filename): Remove.
8027 (emit_lineno): Likewise.
8028 (struct stmt_status): Replace members x_emit_filename and
8029 x_emit_lineno with x_emit_locus.
8030 (set_file_and_line_for_stmt): Adjust.
8031 (expand_expr_stmt_value): Don't use warning_with_file_and_line.
8032 (warn_if_unused_value): Likewise.
8033 (check_seenlabel): Likewise.
8034
8035 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8036
8037 * c-decl.c (define_label): Tidy. Don't use any of
8038 error_with_file_and_line or warning_with_file_and_file.
8039 (pending_xref_error): Likewise.
8040 (store_parm_decls): Likewise.
8041 (current_function_prototype_locus): New object. Package from
8042 current_function_prototype_file and current_function_prototype_line.
8043 (start_function): Use it.
8044 (current_function_prototype_file): Remove.
8045 (current_function_prototype_line): Remove;
8046
8047 2003-05-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8048
8049 * builtins.c (readonly_data_expr): New function.
8050 (expand_builtin_memmove): Optimize any rodata source, not just
8051 strings.
8052
8053 2003-05-07 David Mosberger <davidm@hpl.hp.com>
8054
8055 * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
8056
8057 2003-05-07 Richard Henderson <rth@redhat.com>
8058
8059 * config/i386/i386.c (ix86_split_long_move): Fix base register
8060 mode for XFmode splits for TARGET_64BIT.
8061
8062 2003-05-07 Richard Henderson <rth@redhat.com>
8063
8064 * sched-ebb.c (schedule_ebb): Supply the correct starting
8065 block number to save_line_notes.
8066
8067 2003-05-07 Richard Henderson <rth@redhat.com>
8068
8069 * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
8070 (dump_file): Likewise.
8071
8072 2003-05-07 David Mosberger <davidm@hpl.hp.com>
8073
8074 * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
8075 forget to preserve gp.
8076 * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
8077
8078 * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
8079 .prologue directive.
8080 Use .skip instead of data8 for .bss section to make Intel
8081 Assembler (ias) happy. Minor whitespace fixups. Make "nop 0"
8082 explicit in the .mib bundles and remove the unnecessary stop
8083 bits. Replace local labels with normal labels, to make ias
8084 happy. Don't register __do_global_ctors_aux here, do it in
8085 crtend.asm instead.
8086
8087 * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
8088 __do_global_ctors_aux in .init_array section instead of
8089 declaring it as a hidden global. Replace local labels with
8090 ordinary labels to make ias happy.
8091
8092 2003-05-07 Richard Henderson <rth@redhat.com>
8093
8094 PR c++/10570
8095 * except.c: Revert 04-01 and 04-02 forced-unwind changes.
8096 * flags.h, toplev.c, doc/invoke.texi: Likewise.
8097
8098 * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
8099 * unwind.inc (_Unwind_DeleteException): Check for null
8100 exception_cleanup.
8101
8102 * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
8103 * unwind.inc (_Unwind_Resume_or_Rethrow): New.
8104 * unwind.h: Declare them.
8105 * libgcc-std.ver (GCC_3.3): Export them.
8106
8107 2003-05-07 Richard Henderson <rth@redhat.com>
8108
8109 * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
8110 not _Unwind_Word.
8111
8112 2003-05-07 Zack Weinberg <zack@codesourcery.com>
8113
8114 * stmt.c (force_label_rtx): New function, based on logic
8115 formerly found in expand_expr.
8116 * expr.h: Prototype it.
8117 * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
8118 appropriate.
8119 * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
8120
8121 * print-tree.c (debug_tree): Free the table after we're done
8122 with it. Use putc.
8123
8124 2003-05-07 Aldy Hernandez <aldyh@redhat.com>
8125
8126 * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
8127 Unreverse arguments for __ev_subw.
8128
8129 * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
8130
8131 2003-05-07 Nick Clifton <nickc@redhat.com>
8132
8133 * config/stormy16/stormy-abi: Update to include
8134 R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
8135 R_XSTORMY16_12 relocs.
8136
8137 2003-05-07 Alan Modra <amodra@bigpond.net.au>
8138
8139 * function.c (assign_parms): Correct reversed reg_parm_stack_space
8140 test. Add partial in-regs size to stack_args_size.
8141
8142 2003-05-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8143
8144 * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
8145 as a C only option.
8146
8147 2003-05-07 Nathan Sidwell <nathan@codesourcery.com>
8148
8149 * gcov-io.h (GCOV_LOCKED): New #define.
8150 (GCOV_LINKAGE): Make sure it is #defined.
8151 (gcov_write_string, gcov_write_tag, gcov_write_length,
8152 gcov_read_string, gcov_time): Poison in libgcov.
8153 (gcov_seek_end): Remove.
8154 (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
8155 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
8156 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
8157 GCOV_TAG_SUMMARY_LENGTH): New #defines.
8158 (gcov_write_tag, gcov_write_length): Not in libgcov.
8159 * gcov-io.c (gcov_open): Use GCOV_LOCKED.
8160 (gcov_write_tag, gcov_write_length): Not in libgcov.
8161 (gcov_write_tag_length): New.
8162 (gcov_write_summary): Use gcov_write_tag_length.
8163 * libgcov.c: Always #include gcov-io.h.
8164 (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
8165 (GCOV_LINKAGE): Define to nothing for L_gcov.
8166 (gcov_exit): Replace gcov_write_tag, gcov_write_length with
8167 gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
8168 * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
8169 (read_count_file): Likewise.
8170 * gcov-dump.c (dump_file): Likewise.
8171 * coverag.c (read_counts_file): Likewise.
8172
8173 2003-05-06 Mark Mitchell <mark@codesourcery.com>
8174
8175 PR other/10658
8176 * gcc.c (process_command): Update copyright date.
8177
8178 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
8179
8180 * doc/install.texi (mips-*-*): Add note about libstdc++.
8181
8182 2003-05-06 DJ Delorie <dj@redhat.com>
8183
8184 * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
8185 * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
8186 * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
8187
8188 2003-05-06 <neil@cat.daikokuya.co.uk>
8189
8190 * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
8191 and -Wstrict-prototypes if C++.
8192
8193 2003-05-06 Aldy Hernandez <aldyh@redhat.com>
8194
8195 * config/rs6000/linuxspe.h: New file.
8196
8197 * config.gcc: Add powerpc-*-linux-gnuspe* target.
8198
8199 2003-05-06 Richard Henderson <rth@redhat.com>
8200
8201 * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
8202 previous frame didn't save sp. Clear sp for next frame.
8203 (uw_install_context_1): Honor saved sp from frame.
8204
8205 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
8206
8207 * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
8208 (mips_move_1word, mips_move_2words): Remove declaration.
8209 (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
8210 (mips_restore_gp): Remove insn argument.
8211 * config/mips/mips.h (FP_REG_RTX_P): New macro.
8212 * config/mips/mips.c (volatile_buffer): Remove.
8213 (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
8214 (mips_move_1word, mips_move_2words): Remove, replacing with...
8215 (mips_output_move): ...this new function.
8216 (mips_restore_gp): Remove insn argument. Adjust for above changes.
8217 (print_operand): Make '%h' print %hi(op) for HIGH operands. Remove
8218 handling of floating-point constants. Handle zero CONST_DOUBLE
8219 arguments.
8220 (mips_annotate_frame_insn): Replace with...
8221 (mips_set_frame_expr): ...this, which just takes one argument.
8222 (mips_frame_set): Change the register argument to an rtx.
8223 (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
8224 check whether moves should be split. Use mips_split_64bit_move
8225 to split them. Use mips_subword to generate the high and low
8226 parts of a paired FPR. Adjust calls to frame_set and
8227 mips_set_frame_expr.
8228 (mips_expand_prologue): Simplify due to above changes.
8229 * config/mips/mips.md: Add splitters for 64-bit moves on 32-bit
8230 targets, replacing xisting register-only versions.
8231 (UNSPEC_STORE_DF_HIGH): New unspec.
8232 (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
8233 (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
8234 (*paradoxical_extendhidi2): Remove.
8235 (movdi_internal, movdi_internal2): Use mips_output_move.
8236 (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
8237 (movsf_internal1, movsf_internal2): Likewise.
8238 (movdf_internal1a): Likewise. Fix length and type of f <- G case.
8239 (movdf_internal1b): Use mips_output_move. Fix type of f <- G case.
8240 (movdf_internal2): Use mips_output_move. Fix lengths of FPR moves.
8241 Add m <- G alternative.
8242 (load_df_low, load_df_high, store_df_low): New patterns.
8243 (movhi_internal): Use @ template instead of calling a function.
8244 Remove unnecessary 'z' alternatives.
8245 (movqi_internal): Likewise.
8246 (exception_receiver): Update call to mips_restore_gp.
8247
8248 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
8249
8250 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
8251 (mips_delegitimize_address): Declare.
8252 * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
8253 (FIND_BASE_TERM): Define.
8254 * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8255 (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
8256 Handle small-data addresses.
8257
8258 2003-05-05 Roger Sayle <roger@eyesopen.com>
8259
8260 * real.c (real_powi): New function to calculate the value of
8261 a real raised to an integer power, i.e. pow(x,n) for int n.
8262 (real_sqrt): Convert to using the faster do_add, do_multiply
8263 and do_divide API for consistency with the rest of real.c.
8264 * real.h (real_powi): Prototype here.
8265 * builtins.c (fold_builtin): Avoid local variable mode when
8266 evaluating sqrt at compile time. Attempt to evaluate pow at
8267 compile-time, by checking for an integral exponent.
8268
8269 2003-05-05 Richard Henderson <rth@redhat.com>
8270
8271 * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
8272
8273 2003-05-05 David O'Brien <obrien@FreeBSD.org>
8274
8275 * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
8276 other FreeBSD ports.
8277 (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
8278 (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
8279
8280 2003-05-05 Janis Johnson <janis187@us.ibm.com>
8281
8282 * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
8283 expanded variables.
8284 * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
8285
8286 2003-05-05 Zack Weinberg <zack@codesourcery.com>
8287
8288 * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
8289 * varasm.c (struct varasm_status): Add deferred_constants field.
8290 (n_deferred_strings): Delete variable.
8291 (n_deferred_constants): New #define.
8292 (struct constant_descriptor_tree): Kill next and label fields.
8293 (const_hash_table, MAX_HASH_TABLE): Delete.
8294 (const_desc_htab): New static variable.
8295 (const_hash): Rename const_desc_hash, and make it fit the
8296 hashtab.h interface.
8297 (const_desc_eq): New.
8298 (const_hash_1, compare_constant): Const-ify arguments.
8299 (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
8300 SYMBOL_REFs. Clarify comments. Don't set desc->label.
8301 (output_constant_def): Do the lookup/insert using the
8302 hashtab.h interface. Don't muck with n_deferred_constants or
8303 DEFERRED_CONSTANT_P here.
8304 Always call maybe_output_constant_def_contents.
8305 (maybe_output_constant_def_contents): Take a pointer to the
8306 descriptor, not the EXP and RTL separately. Return
8307 immediately if this constant is not deferred. Defer output of
8308 everything, except writable string constants. Update
8309 n_deferred_constants here.
8310 (output_constant_def_contents): Now takes just one argument,
8311 an rtx. Clear DEFERRED_CONSTANT_P here.
8312 (mark_constant_pool): Update for rename of n_deferred_strings.
8313 (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
8314
8315 (init_varasm_status): Clear p->deferred_constants.
8316 (init_varasm_once): Call htab_create_ggc for const_desc_htab.
8317
8318 2003-05-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8319
8320 * builtins.c (expand_builtin_stpcpy): Only expand when the length
8321 of the source string can be evaluated at compile-time.
8322
8323 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8324
8325 * testsuite/gcc.c-torture/compile/simd-6.c: New.
8326
8327 * c-typeck.c (digest_init): Handle arrays of vector constants.
8328
8329 2003-05-05 Jakub Jelinek <jakub@redhat.com>
8330
8331 * builtins.c (expand_builtin_mempcpy): New function.
8332 (expand_builtin_stpcpy): Optimize stpcpy whose return value is
8333 ignored into strcpy no matter what arguments it has.
8334 (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
8335 expand_builtin_mempcpy.
8336
8337 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8338
8339 * testsuite/gcc.dg/20030505.c: New.
8340
8341 * c-typeck.c (convert_for_assignment): Opaque pointers can
8342 interconvert.
8343
8344 * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
8345 (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
8346 (spe_init_builtins): Rename all pv2si_type_node to
8347 opaque_p_V2SI_type_node.
8348 Remove declaration of pv2si_type_node.
8349 (is_ev64_opaque_type): Accept opaque pointers.
8350
8351 2003-05-05 Geoffrey Keating <geoffk@apple.com>
8352
8353 * config/rs6000/rs6000.c (validate_condition_mode): Use
8354 flag_finite_math_only.
8355 (rs6000_reverse_condition): Never return UNKNOWN; use
8356 flag_finite_math_only.
8357 (rs6000_generate_compare): Use flag_finite_math_only.
8358 (rs6000_emit_cmove): Handle UNLE. Support UNEQ under -ffast-math.
8359 Use HONOR_* rather than flag_unsafe_math_optimizations. Correct
8360 UNGE and GT cases. Handle UNEQ and LTGT when ! HONOR_NANS.
8361
8362 * toplev.c (check_global_declarations): Suppress not-used warning
8363 for volatile variables.
8364
8365 2003-05-05 Olivier Hainque <hainque@act-europe.fr>
8366
8367 * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
8368 usage of bitfield instructions for mode1 != BLKmode, only ignoring
8369 SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
8370 (store_field): Likewise.
8371
8372 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8373
8374 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
8375 evsubifw to builtins accepting 5-bit unsigned constants.
8376 (easy_vector_constant): Return if V1DImode. Fix typo.
8377
8378 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
8379
8380 * config/rs6000/spe.h: Revert licensing change from last patch.
8381
8382 2003-05-05 DJ Delorie <dj@redhat.com>
8383
8384 * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
8385 before reload, but defer the split until after.
8386 * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
8387 to match.
8388
8389 2003-05-05 David Edelsohn <edelsohn@gnu.org>
8390
8391 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
8392 * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
8393
8394 2003-05-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8395
8396 * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
8397 is defined.
8398
8399 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8400
8401 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
8402 ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
8403 ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
8404
8405 (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
8406 ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
8407 ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
8408 New.
8409
8410 * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
8411 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
8412
8413 (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
8414 BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
8415 BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
8416 BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
8417 BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
8418 BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
8419 BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
8420 BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
8421 BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
8422 BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
8423 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
8424 BUILT_IN_STRDUP): Add "nonnull" attribute.
8425
8426 2003-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8427
8428 * expr.c (store_field): Don't clobber TEMP in shift: it might be
8429 a variable.
8430 (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
8431 whose purpose is to step up the alignment.
8432 (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
8433
8434 * stor-layout.c (compute_record_mode): Relax restriction
8435 on fields crossing word boundaries forcing BLKmode.
8436
8437 2003-05-04 Neil Booth <neil@daikokuya.co.uk>
8438
8439 * cppinit.c (cpp_create_reader, post_options): Warn about
8440 trigraphs unless explicity set or -trigraphs.
8441 * cpplex.c (warn_in_comment): New.
8442 (_cpp_process_line_notes): Better handling of -Wtrigraphs.
8443 (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
8444 * doc/cppopts.texi, doc/cpp.texi: Update.
8445
8446 2003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8447
8448 * Makefile.in (LIBGCOV): Add _gcov_merge_add.
8449 * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
8450 namespace clash.
8451 (GCOV_MERGE_FUNCTIONS): New.
8452 (gcov_merge_fn): Declare.
8453 (struct gcov_ctr_info): New field "merge".
8454 (__gcov_merge_add): Declare.
8455 * coverage.c (ctr_merge_functions): New.
8456 (build_ctr_info_type, build_ctr_info_value): Initialize merge field
8457 of gcov_ctr_info type.
8458 * libgcov.c (__gcov_merge_add): New.
8459 (gcov_exit): Call a hook to merge values of counters.
8460
8461 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8462
8463 * toplev.h (pedwarn_with_file_and_line): Don't declare.
8464 * diagnostic.c (pedwarn_with_file_and_line): Remove.
8465
8466 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8467
8468 * varasm.c (assemble_variable): Don't use error_with_file_and_line.
8469
8470 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8471
8472 * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
8473 expand_builtin_frame_address): Update prototypes.
8474 (expand_builtin_constant_p, expand_builtin_strlen,
8475 expand_builtin_strcpy, expand_builtin_memset,
8476 expand_builtin_bzero, expand_builtin_args_info,
8477 expand_builtin_frame_address): Pass in just the argument(s)
8478 needed, not the entire expression `exp'.
8479 (expand_builtin): Update all calls to these functions.
8480
8481 2003-05-03 Richard Henderson <rth@redhat.com>
8482
8483 * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
8484 <BUILT_IN_DWARF_SP_COLUMN>: New.
8485 * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
8486 (BUILT_IN_DWARF_SP_COLUMN): New.
8487 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
8488 (expand_builtin_dwarf_sp_column): New.
8489 * except.h: Update to match.
8490 * unwind-dw2.c (execute_stack_op): Correct stack push typo.
8491 (execute_cfa_program): Record location expression address
8492 before extracting length.
8493 (uw_update_context_1): Install old CFA into stack pointer column.
8494 (uw_init_context_1): Set cfa_reg to stack pointer column.
8495
8496 2003-05-03 Richard Henderson <rth@redhat.com>
8497
8498 * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
8499 return bool.
8500 (toc_relative_expr_p): Likewise.
8501 (SPE_CONST_OFFSET_OK): Move from rs6000.h.
8502 (legitimate_constant_pool_address_p): Move from rs6000.h, change
8503 into a function, downcase all users.
8504 (legitimate_small_data_p): Likewise.
8505 (legitimate_offset_address_p): Likewise.
8506 (legitimate_indexed_address_p): Likewise.
8507 (legitimate_indirect_address_p): Likewise.
8508 (legitimate_lo_sum_address_p): Likewise.
8509 (rs6000_mode_dependent_address): Likewise.
8510 * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
8511 (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
8512 LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
8513 LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
8514 LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
8515 (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
8516 (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
8517 * config/rs6000/rs6000-protos.h: Update.
8518
8519 2003-05-03 Geoffrey Keating <geoffk@apple.com>
8520
8521 * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
8522 (REVERSE_CONDITION): Define.
8523
8524 * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
8525 to branch_positive_comparison_operator.
8526 (ccr_bit): Check that sCOND conditions are actually a positive bit.
8527 (print_operand): Remove %D substitution.
8528 (rs6000_emit_sCOND): Generate complement operation to ensure that
8529 sCOND input is a positive bit.
8530 * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
8531 same order as bCOND, and add the missing ones. Remove the %D
8532 substitutions from the scc patterns.
8533
8534 * simplify-rtx.c (simplify_relational_operation): Add case for
8535 ! (fabs(x) < 0.0).
8536
8537 2003-05-03 Bruce Korb <bkorb@gnu.org>
8538
8539 * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
8540 in fixincl.x
8541 * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
8542
8543 2003-05-03 Aldy Hernandez <aldyh@redhat.com>
8544
8545 * config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
8546
8547 2003-05-03 Zack Weinberg <zack@codesourcery.com>
8548
8549 PR c/10604
8550 * c-common.c (warn_sign_compare): Initialize to -1.
8551 * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
8552 (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
8553 for C++ only.
8554 (c_common_post_options): Set warn_sign_compare from extra_warnings
8555 if it's still -1 at this point.
8556
8557 * toplev.c (maybe_warn_unused_parameter): New static variable.
8558 (set_Wextra): New static function.
8559 (W_options): Remove "extra".
8560 (decode_W_option): Call set_Wextra.
8561 (independent_decode_option): Likewise.
8562 (set_Wunused): Cooperate with set_Wextra in setting
8563 warn_unused_parameter.
8564 (rest_of_compilation): No need to check extra_warnings as
8565 well as warn_uninitialized.
8566
8567 * c-typeck.c (build_binary_op, build_conditional_expr):
8568 No need to check extra_warnings as well as warn_sign_compare.
8569 (internal_build_compound_expr): No need to check extra_warnings
8570 as well as warn_unused_value.
8571 * function.c (expand_function_end): No need to check extra_warnings
8572 as well as warn_unused_parameter.
8573 * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
8574 as well as warn_unused_value.
8575
8576 * doc/invoke.texi: Clarify documentation of -Wsign-compare.
8577
8578 * Makefile.in: Disable -Werror for gengtype-lex.o.
8579
8580 2003-05-03 Olivier Hainque <hainque@act-europe.fr>
8581
8582 * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
8583 * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
8584 * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
8585 * calls.c (emit_call_1): Likewise.
8586 (expand_call): For calls initializing constant memory, replace
8587 emission of standalone mem /u clobber with function usage entry.
8588 * expr.c (emit_block_move_via_libcall): Likewise.
8589 * cse.c (count_reg_usage, case EXPR_LIST): New case.
8590 * flow.c (propagate_one_insn): Pass entire operand of
8591 CALL_INSN_FUNCTION_USAGE to mark_used_regs.
8592 * integrate.c (try_constants): For CALL_INSNs, substitute constants
8593 within the FUNCTION_USAGE also.
8594 * loop.c (prescan_loop): Note clobbers of const mem mentioned in
8595 FUNCTION_USAGE lists.
8596 * reload1.c (replace_pseudos_in): Renamed.
8597 (reload): Use it for clobbers surviving until the end of the reload.
8598
8599 2003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8600
8601 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
8602 gen_lowpart on non-integer modes.
8603
8604 * stor-layout.c (place_field): When adjusting offset_align, use
8605 desired_align, not DECL_ALIGN.
8606
8607 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
8608
8609 * c-decl.c (pending_invalid_xref_file): Remove.
8610 (pending_invalid_xref_line): Remove.
8611 (pending_invalid_xref_location): New.
8612 (lookup_label): Use location_t and input_location directly.
8613 (lookup_tag): Likewise.
8614 (pending_xref_error): Likewise.
8615 (c_expand_body_1): Likewise.
8616 * c-common.c (x_expand_start_cond): Likewise.
8617 * c-semantics.c (genrtl_for_stmt): Likewise.
8618 (find_reachable_label): Likewise.
8619 * expr.c (expand_expr): Likewise.
8620 * integrate.c (output_inline_function): Likewise.
8621 * tree-inline.c (find_alloca_call): Likewise.
8622 (find_builtin_longjmp_call): Likewise.
8623 * gcc.c (input_filename): Make static.
8624
8625 2003-05-03 Richard Sandiford <rsandifo@redhat.com>
8626
8627 * config/mips/mips.md: Fix comment typo.
8628
8629 * config/mips/mips.c (mips_integer_op): New structure.
8630 (MIPS_MAX_INTEGER_OPS): Define.
8631 (mips_const_insns): Use mips_build_integer to determine the number
8632 of instructions needed to load a CONST_INT.
8633 (move_operand): Reject compound CONST_INTs.
8634 (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
8635 (mips_move_integer): New fn.
8636 (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
8637 (mips_legitimize_move): Only legitimize constants when moving
8638 word or subword values.
8639
8640 2003-05-02 Matt Kraai <kraai@alumni.cmu.edu>
8641
8642 * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
8643
8644 2003-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8645
8646 * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
8647 modifying it.
8648
8649 2003-05-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
8650 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8651
8652 * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
8653 Hernandez, and Kazu Hirata. Update Richard Henderson.
8654
8655 2003-05-02 Geoffrey Keating <geoffk@apple.com>
8656
8657 * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
8658 to tentative declaration.
8659
8660 * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
8661 (SYMBOL_FLAG_SMALL_V4): Delete.
8662 * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
8663 (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
8664 (rs6000_elf_in_small_data_p): Add extra section names. Add
8665 comment about TREE_PUBLIC test.
8666
8667 * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
8668 expand_stmt on result of expand_unreachable_stmt.
8669
8670 2003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8671
8672 * doc/contrib.texi (Contributors): Add Daniel Berlin.
8673
8674 2003-05-02 David Edelsohn <edelsohn@gnu.org>
8675
8676 * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
8677 number of automata.
8678
8679 * config/rs6000/rs6000.c (symbol_ref_operand): Check
8680 SYMBOL_REF_FUNCTION_P on AIX.
8681 (current_file_function_operand): Same.
8682 * config/rs6000/rs6000.md (call,call_value): Force non-function
8683 symbol_ref into register on AIX.
8684
8685 2003-05-02 Alan Modra <amodra@bigpond.net.au>
8686
8687 * calls.c (struct arg_data): Move offset, slot_offset, size and
8688 alignment_pad to struct locate_and_pad_arg_data. Update all refs.
8689 (initialize_argument_information): Adjust call to locate_and_pad_parm.
8690 Delete alignment_pad var. Don't calculate slot_offset here.
8691 (emit_library_call_value_1): Delete alignment_pad, offset and size
8692 vars. Use struct locate_and_pad_arg_data instead. Adjust refs.
8693 Adjust call to locate_and_pad_parm. Don't tweak arg size for
8694 partial in-regs here. Formatting fixes.
8695 * expr.h (struct locate_and_pad_arg_data): New struct.
8696 (locate_and_pad_parm): Adjust declaration.
8697 * function.c (assign_parms): Localize vars. Use "locate" instead of
8698 other arg location vars. Don't invoke FUNCTION_ARG or
8699 FUNCTION_INCOMING_ARG unless pretend_named is different from
8700 named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before
8701 calling locate_and_pad_parm. Adjust locate_and_pad_parm call.
8702 Use slot_offset for stack home of reg parms. Correct test for
8703 parm passed in memory. Formatting fixes.
8704 (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr
8705 arg_size_ptr and alignment pad with "locate". Set slot_offset here.
8706 Correct initial_offset_ptr handling. Localize vars. Always pad
8707 locate->offset even when in_regs.
8708
8709 2003-05-02 Nathan Sidwell <nathan@codesourcery.com>
8710
8711 * Makefile.in (TREE_H): Replace location.h with input.h.
8712 (GTFILES) Remove location.h
8713 (gt-lists.h): Replace gt-location.h with gt-input.h
8714 * input.h (input_filename, input_line): Remove variables.
8715 (location_s, location_t): Move from location.h.
8716 (input_location): New.
8717 (input_filename, input_line): New #defines.
8718 * location.h: Remove.
8719 * tree.h: Replace location.h with input.h.
8720 (input_filename, input_line): Remove.
8721 * diagnostic.h: Replace location.h with input.h.
8722 * gcc.h (input_filename, input_filename_length): Remove declarations.
8723 * toplev.c (input_filename, input_line): Remove.
8724 (input_location): Define.
8725 (push_srcloc, pop_srcloc): Adjust.
8726 * diagnostic.c (diagnostic_report_current_module): Adjust.
8727
8728 2003-05-02 Nick Clifton <nickc@redhat.com>
8729
8730 * configure.in: Add xstormy16 to list of targets that has a nop
8731 instruction and hence which can be tested to see if the
8732 assembler supports the --gdwarf2 switch.
8733 * configure: Regenerate.
8734
8735 2003-05-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
8736
8737 PR target/8257
8738 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
8739 alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
8740 Avoid undefined shifts by making the shift operand unsigned.
8741
8742 2003-05-01 DJ Delorie <dj@redhat.com>
8743
8744 * reload.c (find_reloads): Also check that all of a multi-reg
8745 value is in the class.
8746
8747 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
8748
8749 * scan.h (lineno): Revert the rename here.
8750
8751 2003-05-01 Stan Shebs <shebs@apple.com>
8752
8753 * config/darwin.c (darwin_encode_section_info): Call
8754 default_encode_section_info.
8755
8756 2003-05-01 David Edelsohn <edelsohn@gnu.org>
8757
8758 * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
8759 (movsi_internal1): Use new mfjmpr attribute.
8760 (movhi_internal): Same.
8761 (movqi_internal): Same.
8762 (movcc_internal1): Same.
8763 (movdi_internal64): Same.
8764 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
8765 power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
8766 * config/rs6000/40x.md: Add fpu_405.
8767 * config/rs6000/power4.md: Merge power4lsu and power4disp automata
8768 into power4misc automata. Remove extraneous parentheses.
8769 * config/rs6000/440.md: New file.
8770 * config/rs6000/rs6000.c (processor_target_table): Add 440,
8771 440fp. Rename 405f to 405fp.
8772 (function_arg_padding): Correct formatting.
8773 (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
8774
8775 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
8776
8777 * input.h (lineno): Rename to ...
8778 (input_line): ... here.
8779 * tree.h (lineno): Rename to ...
8780 (input_line): ... here.
8781 * scan.h (lineno): Rename to ...
8782 (input_line): ... here.
8783 * toplev.c (lineno): Rename to ...
8784 (input_line): ... here.
8785 (push_srcloc, pop_srcloc): Rename lineno to input_line.
8786 * c-common.c (c_expand_start_cond, fname_decl): Likewise.
8787 * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
8788 store_parm_decls, c_expand_body_1): Likewise.
8789 * c-errors.c (pedwarn_c99): Likewise.
8790 * c-format.c (status_warning): Likewise.
8791 * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
8792 * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
8793 * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
8794 * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
8795 gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
8796 genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
8797 genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
8798 build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
8799 prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
8800 * coverage.c (create_coverage): Likewise.
8801 * diagnostic.c (pedwarn, sorry, error, fatal_error,
8802 internal_error, warning, diagnostic_report_current_module,
8803 inform): Likewise.
8804 * expr.c (expand_expr): Likewise.
8805 * integrate.c (expand_inline_function,
8806 output_inline_function): Likewise.
8807 * rtl-error.c (file_and_line_for_asm): Likewise.
8808 * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
8809 walk_tree): Likewise.
8810 * tree.c (make_node): Likewise.
8811 * ada, cp, f, java, objc, treelang: Likewise.
8812 * objc/objc-act.c (objc_init): Rename lineno to input_line.
8813 (build_module_descriptor, build_selector_translation_table,
8814 build_protocol_template, build_method_prototype_list_template,
8815 build_category_template, build_selector_table,
8816 build_class_template, build_super_template, build_ivar_template,
8817 build_ivar_list_template, build_method_list_template,
8818 build_method_template, add_instance_variable): Likewise.
8819
8820 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
8821 name from input_filename.
8822
8823 2003-04-30 Eric Christopher <echristo@redhat.com>
8824 Richard Sandiford <rsandifo@redhat.com>
8825
8826 * configure: Regenerate from patches below.
8827 * combine.c (gen_lowpart_for_combine): Fix comment and add tests
8828 for all symbolic operands.
8829 * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
8830 to function.
8831 * config/mips/linux.h: Fix typo.
8832 * Merge from mips-3_4-rewrite branch:
8833
8834 2003-04-07 Richard Sandiford <rsandifo@redhat.com>
8835
8836 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
8837 handling local labels when TARGET_ABICALLS.
8838
8839 2003-04-04 Richard Sandiford <rsandifo@redhat.com>
8840
8841 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
8842 integer argument.
8843 (mips_expand_call): Likewise.
8844 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
8845 (FIXED_REGISTERS): Clear $31 entry.
8846 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
8847 (EPILOGUE_USES): Define.
8848 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
8849 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
8850 (override_options): Add a 'j' register class.
8851 (mips_expand_call): Handle sibcalls
8852 (mips_expand_epilogue): Handle epilogues for sibcalls.
8853 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
8854 (sibcall_epilogue): New pattern.
8855 (call, call_value): Adjust calls to mips_expand_call.
8856 (sibcall, sibcall_value): New expanders.
8857 (sibcall_internal, sibcall_value_internal): New patterns.
8858 (sibcall_value_multiple_internal): New pattern.
8859
8860 2003-03-25 Richard Sandiford <rsandifo@redhat.com>
8861
8862 * config/mips/mips.md (extended_mips16): New attribute.
8863 (define_attr length): Default to 8 if extended_mips16 == yes.
8864 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
8865 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
8866 (call_internal): Set extended_mips16 to yes for direct jumps.
8867 Remove redundant mode attribute.
8868 (call_value_internal, call_value_multiple_internal): Likewise.
8869 (call_split): Remove redundant mode attribute.
8870 (call_value_split, call_value_multiple_split): Likewise.
8871
8872 * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
8873 of unaligned offsets.
8874
8875 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
8876 of SYMBOL_GENERAL.
8877
8878 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
8879
8880 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
8881 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
8882 for mips16 code.
8883
8884 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
8885
8886 * config/mips/mips.h (ADDRESS_COST): Define.
8887
8888 2003-03-20 Richard Sandiford <rsandifo@redhat.com>
8889
8890 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
8891 'R' to 'U'. Make 'R' mean a single-instruction memory reference.
8892 * config/mips/mips.md: Replace 'R' constraints with 'U'.
8893
8894 2003-03-18 Richard Sandiford <rsandifo@redhat.com>
8895
8896 * config/mips/mips.md (truncdisi2): Add commentary. Use sll instead
8897 of a two-instruction sequence. Add register->memory alternative.
8898 (truncdihi2, truncdiqi2): Likewise.
8899 Rework shift/truncate instructions so that they only handle right
8900 shifts of 32 (or more, in the case of arithmetic shifts).
8901 Add patterns for truncate/sign-extend.
8902
8903 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8904
8905 * configure.in (mips*-*-*): Check for explicit relocation support.
8906 * configure: Regenerate.
8907
8908 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8909
8910 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
8911 and -mno-explicit-relocs.
8912 (MASK_EXPLICIT_RELOCS): Define.
8913 (TARGET_EXPLICIT_RELOCS): Use it.
8914 (mips_split_addresses): Remove declaration.
8915 * config/mips/mips.c (override_options): Update comment for
8916 mips_split_addresses. Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
8917
8918 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8919
8920 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
8921 a CONST as identity. Check the return value of gen_lowpart_common.
8922
8923 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8924
8925 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
8926 references for TARGET_EXPLICIT_RELOCS.
8927 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
8928 !TARGET_MIPS16.
8929
8930 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8931
8932 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
8933 (addsi3): Remove redundant constraints.
8934 (addsi3_internal): Use separate register & constant alternatives.
8935 Use a 'Q' constraint and "addiu" insn for the latter.
8936 (adddi3_internal_3, addsi3_internal_2): Likewise.
8937
8938 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8939
8940 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
8941 (mips_expand_unaligned_store): Declare.
8942 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
8943 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
8944 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
8945 (UNSPEC_ULD, UNSPEC_USD): Remove.
8946 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
8947 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
8948 (extv, extzv): Use mips_expand_unaligned_load.
8949 (insv): Use mips_expand_unaligned_store. Use a reg_or_0_operand
8950 predicate for operand 3.
8951 (movsi_ulw, movsi_usw): Replace with...
8952 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
8953 (movdi_uld, movdi_usd): Likewise replace with...
8954 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
8955
8956 2003-02-26 Richard Sandiford <rsandifo@redhat.com>
8957
8958 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
8959 * config/mips/mips.h (LEA_REGS): New register class.
8960 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
8961 (GR_REG_CLASS_P): Include LEA_REGS.
8962 (DANGEROUS_FOR_LA25_P): New macro.
8963 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
8964 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
8965 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
8966 entries to LEA_REGS.
8967 (mips_global_pic_constant_p): New function.
8968 (override_options): Add 'e' register constraint.
8969 (mips_secondary_reload_class): Return LEA_REGS when reloading
8970 a dangerous constant into a class containing $25.
8971 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
8972 (movsi_internal): Likewise.
8973
8974 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
8975
8976 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
8977 * config/mips/mips.md (call_split): New insn.
8978 (call_value_split, call_value_multiple_split): New insns.
8979 (call_internal): Turn into a define_insn_and_split. Split the
8980 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
8981 (call_value_internal, call_value_multiple_internal): Likewise.
8982
8983 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
8984
8985 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
8986 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
8987 (mips_encode_section_info): Don't take symbol visibility into
8988 account if TARGET_ABICALLS. Add more commentary.
8989 * config/mips/mips.md: Add commentary above reloc constants.
8990
8991 2003-02-12 Richard Sandiford <rsandifo@redhat.com>
8992
8993 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
8994 from mips_legitimize_move. Legitimize constant pool references.
8995 (mips_legitimize_move): Call mips_legitimize_const_move. Attach
8996 a REG_EQUAL note to the last instruction.
8997
8998 2003-02-11 Richard Sandiford <rsandifo@redhat.com>
8999
9000 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
9001 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
9002 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
9003 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
9004 * config/mips/mips.md (UNSPEC_HIGH): New constant.
9005 (UNSPEC_RELOC_GPREL16): Rename to...
9006 (RELOC_GPREL16): ...this.
9007 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
9008 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
9009 (macro_calls): New attribute.
9010 (length): Use it to set the default length of calls. Don't allow
9011 calls to have delay slots if macro_calls is "yes".
9012 (luisi, luidi): New patterns.
9013 (lowsi, lowdi): Use '%R' to print the relocation.
9014 (lowdi_extend): Remove.
9015 (loadgp): Remove mode from operand 0. Use '%0' instead of '%a0'.
9016 (call_internal): Merge alternatives. Always use "jal".
9017 (call_value_internal, call_value_multiple_internal): Likewise.
9018 (reloc_gprel16): Remove.
9019 * config/mips/mips.c (mips_got_alias_set): New variable.
9020 (mips_classify_constant): Handle the new relocation constants.
9021 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
9022 (mips_symbolic_address_p): Return false if generating explicit relocs.
9023 Otherwise allow local PIC symbols to have an offset.
9024 (mips_splittable_symbol_p): New function.
9025 (mips_classify_address): Use it to check whether a LO_SUM is valid.
9026 (mips_const_insns): Always accept HIGH.
9027 (call_insn_operand): Don't accept global symbols if using explicit
9028 relocs.
9029 (move_operand): Don't accept HIGH when generating PIC.
9030 (mips_reloc, mips_lui_reloc): New functions.
9031 (mips_force_temporary): Remove MODE argument. Expect VALUE to
9032 be a valid right-hand-side for a SET pattern.
9033 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
9034 (mips_emit_high): New function.
9035 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
9036 case. Use mips_splittable_symbol_p to check whether a LO_SUM
9037 address should be used. Use mips_emit_high to generate the
9038 high part of such an address. Adjust the global symbol + offset
9039 case to match the change to mips_force_temprorary.
9040 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
9041 If generating explicit-reloc PIC, load the address of global
9042 symbols from the GOT. Use mips_emit_high to emit the high part
9043 of an address.
9044 (mips_simplify_dwarf_addr): New function.
9045 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
9046 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
9047 (mips_expand_call): Load the addresses of global functions using
9048 %call* relocs if generating explicit-reloc PIC. Don't generate
9049 an exception_receiver pattern.
9050 (override_options): Initialize mips_got_alias_set.
9051 (print_relocation): Remove in favor of...
9052 (mips_reloc_string): ...this new function.
9053 (print_operand): Handle '%R'. Use mips_reloc_string.
9054 (print_operand_address): Use print_operand to print the symbolic
9055 part of a LO_SUM address.
9056 (mips_output_function_prologue): Use .cprestore, reverting last patch.
9057 (mips_encode_section_info): Factor out DECL_RTL accesses. Reverse
9058 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
9059 for local symbols.
9060
9061 2003-02-02 Eric Christopher <echristo@redhat.com>
9062
9063 * config/mips/mips.c (mips_sign_extend): Remove.
9064 * config/mips/mips-protos.h: Ditto.
9065 * config/mips/mips.md (movdi_internal2_extend): Remove.
9066 (extendsidi2): Fix mode of convert_memory_address.
9067
9068 2003-01-24 Eric Christopher <echristo@redhat.com>
9069
9070 * config/mips/mips.md: Rewrite zero_extend* and extend*
9071 patterns. Use explicit instructions and split after reload
9072 for register extensions.
9073 (ashlsi3_internal1_extend): New combiner pattern for
9074 shift and extend combinations.
9075 * config/mips/mips.h: Change Pmode back to ptr_mode
9076 for performance enhancement.
9077 * combine.c (expand_compound_operation): Make sure
9078 that zero_extend operation is profitable.
9079
9080 2003-01-14 Richard Sandiford <rsandifo@redhat.com>
9081
9082 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
9083 addresses depend on ptr_mode rather than Pmode.
9084 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
9085 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
9086 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
9087 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
9088 * config/mips/mips.md (tablejump): Likewise. Remove Pmode
9089 condition for selecting cpaddsi or cpadddi: use cpadd instead.
9090 (tablejump_internal1): Remove condition.
9091 (tablejump_internal2): Change condition to TARGET_64BIT.
9092 (cpaddsi): Rename to...
9093 (cpadd): ...this.
9094 (cpadddi): Remove.
9095
9096 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
9097
9098 * config/mips/mips-protos.h (mips16_constant_after_function_p,
9099 mips_address_cost, mips_check_split, double_memory_operand,
9100 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
9101 pic_address_needs_scratch, symbolic_operand): Remove declarations.
9102 (mips_legitimate_address_p): Return bool.
9103 (mips_address_insns, mips_fetch_insns, mips_const_insns,
9104 mips_legitimize_address, mips_legitimize_move,
9105 mips_expand_call): Declare.
9106 (mips_return_addr): Move outside #ifdef RTX_CODE.
9107
9108 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
9109 (PIC_FN_ADDR_REG): New reg_class.
9110 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
9111 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
9112 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
9113 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
9114 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
9115 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
9116 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
9117 (LEGITIMATE_PIC_OPERAND): Undefine.
9118 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
9119 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
9120 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
9121 (FUNCTION_MODE): Change to SImode.
9122 (CONST_COSTS): Use mips_const_insns to calculate the cost of
9123 most constants. Treat const_artih_operands specially if they
9124 occur in a PLUS or MINUS.
9125 (CONSTANT_POOL_COST): New macro.
9126 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
9127 Add LO_SUM handling.
9128 (ADDRESS_COST): Undefine.
9129 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
9130 Add CONST to the list of codes for arith_operand. Add LABEL_REF
9131 to call_insn_operand and remove CONST_INT.
9132
9133 * config/mips/mips.c: Include integrate.h.
9134 (SINGLE_WORD_MODE_P): New macro.
9135 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
9136 (mips_constant_info, mips_address_info): New structs.
9137 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
9138 (mips_classify_constant, mips_classify_symbol,
9139 mips_valid_base_register_p, mips_symbolic_address_p,
9140 mips_classify_address, mips_symbol_insns,
9141 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
9142 mips_fetch_insns, mips_force_temporary, mips_add_offset,
9143 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
9144 mips_print_relocation): New functions.
9145 (const_arith_operand): New operand predicate.
9146 (arith_operand): Use it.
9147 (mips_const_double_ok, mips16_simple_memory_operand,
9148 simple_memory_operand, double_memory_operand, mips_check_split,
9149 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
9150 mips16_gp_offset_p, mips16_output_gp_offset,
9151 mips16_constant_after_function_p, mips16_constant): Remove.
9152 (call_insn_operand): Be more fussy about symbolic constants.
9153 Use register_operand.
9154 (move_operand): Use mips_symbolic_address_p to check symbolic
9155 operands and general_operand to check the rest.
9156 (symbolic_operand): Use mips_classify_constant.
9157 (mips_legitimate_address_p): Use mips_classify_address.
9158 (mips_move_1word): Combine handling of symbolic addresses.
9159 Remove special treatment of gp-relative loads for TARGET_MIPS16.
9160 (move_move_2words): Likewise. Assume addresses are offsettable
9161 if they need to refer to more than one word. Add HIGH handling.
9162 (mips_restore_gp): Use ptr_mode for the GP save slot.
9163 (mips_expand_call): New function, combining the old mips.md
9164 call and call_internal define_expands. If the address isn't
9165 a call_insn_operand, force it into a register. For SVR4 PIC,
9166 emit an exception_receiver instruction after the call.
9167 (override_options): Only override flag_pic for TARGET_ABICALLS
9168 if it is currently zero. Allow mips_split_addresses when
9169 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
9170 Add new register class letter, 'c'.
9171 (print_operand): Use mips_classify_constant for constant operands.
9172 (print_operand_address): Use mips_classify_address.
9173 (mips_output_function_prologue): Don't use .cprestore.
9174 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
9175 via the frame pointer if current_function_calls_eh_return.
9176 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
9177 to mark whether a symbol is local or global.
9178 (build_mips16_call_stub): Expect the address of the function rather
9179 than a MEM reference to it. Update call generation sequences.
9180 (mips16_optimize_gp): Remove Pmode checks. Temporarily disable
9181 small-data adjustments.
9182
9183 * config/mips/mips.md: Remove 'R'/'m' memory distinction. Use default
9184 length for loads and stores.
9185 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
9186 (define_attr type): Add const and prefetch.
9187 (define_attr length): Use mips_const_insns for const instructions.
9188 Use mips_fetch_insns for load and store instructions.
9189 (define_attr single_insn): New.
9190 (define_attr can_delay): Use it.
9191 (define_attr abicalls): Remove.
9192 (define_delay): Use can_delay. Always allow calls to have delay slots.
9193 (addsi3_internal_2): Add 'Q' constraint.
9194 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
9195 (high): Remove.
9196 (lowsi): Renamed from low.
9197 (lowdi): New pattern.
9198 (movdi, movsi): Use mips_legitimize_move. Remove define_split.
9199 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
9200 (loadgp): Change operand 0 to an immediate_operand.
9201 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
9202 beforehand.
9203 (cpaddsi, cpadddi): New patterns.
9204 (tablejump_internal3, tablejump_internal4): Remove define_expands
9205 and associated define_splits.
9206 (call, call_value): Use mips_expand_call.
9207 (call_internal): New, replacing all existing call_internal* insns.
9208 (call_value_internal): Likewise call_value_internal*.
9209 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
9210 (untyped_call): Remove if (operands[0]) magic.
9211 (prefetch_si_address, prefetch_si): Change type to "prefetch".
9212 (prefetch_di_address, prefetch_di): Likewise.
9213 (leasi, leadi): Remove.
9214 (reloc_gprel16): New.
9215
9216 * config/mips/5400.md (ir_vr54_hilo): Include const type.
9217 * config/mips/5500.md (ir_vr55_hilo): Likewise.
9218 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
9219
9220 2003-01-08 Eric Christopher <echristo@redhat.com>
9221
9222 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
9223 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
9224 configure check for libgloss.
9225 * config/mips/elf64.h: Ditto.
9226 * config/mips/mips.c: Remove ABI_MEABI.
9227 * config/mips/mips.h: Ditto.
9228
9229 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
9230
9231 Fix merge fallout.
9232 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
9233 (muldi3_internal): Remove outdated comment.
9234 (*muls_di, *umuls_di): Fix comment and 64-bitness.
9235 (*smsac_di, *umsac_di): Likewise. Reformat.
9236 (umulsi3_highpart): Minor formatting tweaks.
9237 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI. Remove
9238 redundant scratch operand. Minor formatting tweak.
9239 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
9240 (umulsi3_highpart_neg_mulhi_internal): Likewise. Fix asm template.
9241 (smulsi3_highpart): As for the unsigned version.
9242 (smulsi3_highpart_internal): Likewise.
9243 (smulsi3_highpart_mulhi_internal): Likewise.
9244 (smulsi3_highpart_neg_mulhi_internal): Likewise.
9245 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
9246 (*smul_acc_di): Remove duplicated pattern.
9247 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
9248 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
9249 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
9250
9251 2002-10-22 Eric Christopher <echristo@redhat.com>
9252
9253 * config/mips/mips-protos.h (mips_return_addr): New.
9254 * config/mips/mips.c (mips_return_addr): New.
9255 (movdi_operand): Remove.
9256 (se_register_operand): Ditto.
9257 (se_reg_or_0_operand): Ditto.
9258 (se_uns_arith_operand): Ditto.
9259 (se_arith_operand): Ditto.
9260 (se_nonmemory_operand): Ditto.
9261 (extend_operator): Ditto.
9262 (highpart_shift_operator): Ditto.
9263 (mips_initial_elimination_offset): Remove return address pointer
9264 elimination.
9265 (mips_reg_names): Remove $ra.
9266 (mips_regno_to_class): Ditto.
9267 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
9268 and TARGET_64BIT.
9269 (POINTER_BOUNDARY): Remove.
9270 (POINTERS_EXTEND_UNSIGNED): Define to 0.
9271 (PROMOTE_MODE): Promote to Pmode.
9272 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
9273 (Pmode): Define to TARGET_64BIT.
9274 (FUNCTION_MODE): Define as Pmode.
9275 (mips_args): Remove deleted functions.
9276 (SIZE_TYPE): Depend on POINTER_SIZE.
9277 (PTRDIFF_TYPE): Ditto.
9278 (FIXED_REGISTERS): Fix extra registers.
9279 (CALL_USED_REGISTERS): Ditto.
9280 (CALL_REALLY_USED_REGISTERS): Ditto.
9281 (RAP_REG_NUM): Remove.
9282 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
9283 (RETURN_ADDR_RTX): Define to mips_return_addr.
9284 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
9285 (CAN_ELIMINATE): Ditto.
9286 * config/mips/mips.md: For DImode patterns, take into account
9287 deletions above. Split mulsidi patterns into sign_extend and
9288 zero_extend.
9289
9290 2002-10-16 Richard Sandiford <rsandifo@redhat.com>
9291 Michael Meissner <meissner@redhat.com>
9292
9293 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
9294 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
9295 mop up unnecessarly moves through LO.
9296 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
9297 (*macc): New pattern for ISA_HAS_MACC. Add define_peephole2s to
9298 change mtlo/macc sequences into mul/add sequences when a three-
9299 address mul is available.
9300 (*macc2): New pattern. Add a define_peephole2 to generate it.
9301 (*mul_sub_si): Fix contraint for operand 5.
9302 (*muls): Use in 32-bit code as well.
9303 (*msac): Likewise. Use msub instead of msac in vr5500 code
9304 if the destination is LO. Remove duplicate define_split.
9305 (*muls_di): Use only in 32-bit code. Adjust rtl accordingly.
9306 (*msac_di): Likewise. Fix formatting.
9307 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
9308 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
9309 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
9310 (*xmulsi3_neg_highpart_mulhi): Likewise.
9311 (*mul_acc_64bit_di): Remove.
9312 (*mul_acc_di): Use only in 32-bit code. Handle ISA_HAS_MACC as well.
9313
9314 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
9315
9316 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
9317 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
9318 (MULTILIB_DIRNAMES): Remove long32.
9319 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
9320 (MULTILIB_REDUNDANT_DIRS): Remove.
9321
9322 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
9323
9324 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
9325 * gcc.c (driver_self_specs): New variable.
9326 (do_self_spec): New function.
9327 (main): Use it to process driver_self_specs.
9328
9329 2002-10-09 Richard Sandiford <rsandifo@redhat.com>
9330
9331 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
9332 Remove DImode define_split for !TARGET_64BIT.
9333 (anddi3): Remove !TARGET_64BIT support from here as well.
9334 Change operand 2's predicate to se_uns_arith_operand.
9335 Add constant alternatives to define_insn.
9336 (iordi3, xordi3, *nordi3): Likewise.
9337 (anddi3_internal1, xordi3_immed): Remove.
9338
9339 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9340
9341 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
9342 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
9343 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
9344 * config/mips/mips.md: Apply same renaming here.
9345
9346 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9347
9348 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
9349 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
9350 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
9351 * config/mips/mips.md (define_attr cpu): Remove r4320.
9352 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
9353
9354 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9355
9356 * config/mips/mips.c (mips16_strings): New variable.
9357 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
9358 symbol in mips16_strings. Free the list.
9359 (mips_encode_section_info): Keep track of local strings.
9360
9361 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9362
9363 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
9364 (sordered_df, sordered_sf): Remove.
9365 * config/mips/mips.c (get_float_compare_codes): New fn.
9366 (gen_int_relational, gen_conditional_move): Use it.
9367
9368 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9369
9370 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
9371 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
9372 * config/mips/mips.c (fcc_register_operand): New function.
9373 (mips_emit_fcc_reload): New function, extracted from reload_incc.
9374 (override_options): Allow TFmode values in float registers
9375 if ISA_HAS_8CC.
9376 * cnfig/mips/mips.md (reload_incc): Change destination prediate
9377 to fcc_register_operand. Remove misleading source constraint.
9378 Use mips_emit_fcc_reload.
9379 (reload_outcc): Duplicate reload_incc.
9380
9381
9382 2003-04-30 Diego Novillo <dnovillo@redhat.com>
9383
9384 * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
9385
9386 2003-04-30 Geoffrey Keating <geoffk@apple.com>
9387
9388 * tree-inline.c (inlinable_function_p): Back out last change, it's
9389 unnecessary.
9390
9391 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
9392
9393 * ggc-page.c (TREE_EXP_SIZE): Define.
9394 (extra_order_size_table): New entry for expr trees with
9395 two operands.
9396
9397 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9398
9399 * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
9400 (c_expand_start_cond): Adjust.
9401 (c_expand_end_cond): Don't use warning_with_file_and_file.
9402 (shadow_warning): Likewise.
9403
9404 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
9405
9406 * tree.h (DECL_POINTER_DEPTH): Remove.
9407 (struct tree_decl): Remove pointer_depth.
9408
9409 2003-04-30 Janis Johnson <janis187@us.ibm.com>
9410
9411 * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
9412 * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
9413 (rs6000_xcoff_encode_section_info): Remove.
9414 (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
9415 (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
9416 (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
9417 Use SYMBOL_REF_FLAGS.
9418 (rs6000_elf_encode_section_info): Call default_encode_section_info for
9419 generic flags, use SYMBOL_REF_FLAGS; code cleanups.
9420 * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
9421 (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
9422 * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
9423 (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
9424
9425 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9426
9427 * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
9428
9429 2003-04-30 Andreas Schwab <schwab@suse.de>
9430
9431 * doc/extend.texi (Other Builtins): Enclose multiple word data
9432 type in braces for @deftypefn.
9433
9434 2003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9435
9436 * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
9437
9438 * doc/install.texi (--enable-threads): Document "gnat" option.
9439
9440 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9441
9442 * diagnostic.h (output_formatted_scalar): Tweak.
9443 * diagnostic.c (output_long_decimal): Likewise.
9444 (output_unsigned_decimal): Likewise.
9445 (output_long_unsigned_decimal): Likewise.
9446 (output_octal): Likewise.
9447 (output_long_octal): Likewise.
9448 (output_hexadecimal): Likewise.
9449 (output_long_hexadecimal): Likewise.
9450 (output_pointer): New function.
9451 (output_format): Use it. Recognize "%p" format specifier.
9452
9453 2003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9454
9455 * function.c (purge_addressof_1): Postpone insn in fewer cases.
9456
9457 2003-04-29 Geoffrey Keating <geoffk@apple.com>
9458
9459 * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
9460 call abort() after running out of stack space.
9461
9462 * c-typeck.c (function_types_compatible_p): Ignore incompatible
9463 'volatile' qualifiers on a function's return type in GNU mode.
9464
9465 2003-04-29 Aldy Hernandez <aldyh@redhat.com>
9466
9467 * expr.c (emit_group_load): Dump parallels of simd types to
9468 memory.
9469
9470 2003-04-29 Vladimir Makarov <vmakarov@redhat.com>
9471
9472 * genautomata.c (add_vect): Check undefined value for range type
9473 too.
9474
9475 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
9476
9477 * configure.in: More general test for cmp --ignore-initial.
9478 * configure: Regenerate.
9479
9480 2003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9481
9482 * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
9483 (layout_decl, place_field): Likewise.
9484 Also make minor type and whitespace changes.
9485
9486 * tree.c (save_expr): Don't fold a COMPONENT_REF.
9487
9488 2003-04-29 Olivier Hainque <hainque@act-europe.fr>
9489
9490 * calls.c (expand_call): When modes of target and valreg match, force
9491 sibcall failure when target is a MEM.
9492
9493 2003-04-29 Geoffrey Keating <geoffk@apple.com>
9494
9495 * tree-inline.c (inlinable_function_p): Don't support inlining
9496 functions using varargs.
9497
9498 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
9499
9500 * dwarf2out.c (output_call_frame_info): No need to output EH
9501 unwind information if all_throwers_are_sibcalls.
9502
9503 * c-semantics.c (expand_unreachable_stmt): Return a tree.
9504 (expand_stmt): Update for change to expand_unreachable_stmt.
9505 (expand_unreachable_if_stmt): Likewise.
9506
9507 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
9508
9509 2003-04-29 Jason Merrill <jason@redhat.com>
9510
9511 PR middle-end/10336
9512 * jump.c (never_reached_warning): Really stop looking if we reach
9513 the beginning of the function.
9514
9515 2003-04-29 Bob Wilson <bob.wilson@acm.org>
9516
9517 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
9518 Remove redundant macros.
9519 (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
9520 (LOCAL_LABEL_PREFIX): Define unconditionally.
9521 (NO_DOT_IN_LABEL): Clarify comment.
9522 * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
9523 definition to "long int".
9524
9525 2003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
9526
9527 bootstrap/10452
9528 * gengtype-yacc.y: Improve portability.
9529
9530 2003-04-29 Zack Weinberg <zack@codesourcery.com>
9531
9532 * config.gcc: Install obsolete target list for GCC 3.3.
9533 * doc/install.texi: Mention in specific-target instructions
9534 that certain configurations are deprecated.
9535
9536 2003-04-29 Zack Weinberg <zack@codesourcery.com>
9537
9538 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
9539
9540 2003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9541
9542 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
9543 * gcc.c (display_help): Likewise.
9544 * toplev.c (f_options): Likewise.
9545 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
9546 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
9547 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
9548 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
9549 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
9550
9551 2003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
9552
9553 * varasm.c (default_assemble_visibility): Use assemble_name.
9554
9555 2003-04-29 David O'Brien <obrien@FreeBSD.org>
9556
9557 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
9558 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
9559 (SIZE_TYPE): New macro.
9560 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
9561 (SET_ASM_OP): New macro.
9562 (HANDLE_SYSV_PRAGMA): New macro.
9563 (ASM_WEAKEN_LABEL): New macro.
9564
9565 2003-04-28 Mark Mitchell <mark@codesourcery.com>
9566
9567 PR c++/10180
9568 * tree-inline.c (expand_call_inline): Call push_srcloc when
9569 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
9570
9571 2003-04-28 Mike Stump <mrs@apple.com>
9572
9573 * gdbinit.in: Update to reflect new identifier structure.
9574
9575 2003-04-28 Zack Weinberg <zack@codesourcery.com>
9576
9577 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
9578 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
9579 struct tree_complex, struct tree_vector): Remove RTL field.
9580 (CONSTRUCTOR_ELTS): Use elt 0.
9581 * tree.def (CONSTRUCTOR): Delete first of its two operands.
9582 * varasm.c (output_constant_def): Remove early exit if
9583 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
9584 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
9585 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
9586 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
9587
9588 2003-04-28 Jakub Jelinek <jakub@redhat.com>
9589
9590 * c-decl.c (finish_decl): When prototype with asmspec is found
9591 for built-in, adjust built_in_decls as well as expr.c decls.
9592 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
9593 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
9594 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
9595
9596 2003-04-28 Richard Henderson <rth@redhat.com>
9597
9598 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
9599 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
9600 integral constant mult operand.
9601 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
9602 (const_smulsi3_highpart_v8plus): Likewise.
9603 (const_smulsi3_highpart): Likewise.
9604 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
9605 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
9606 (const_umulsi3_highpart_v8plus): Likewise.
9607 (const_umulsi3_highpart): Likewise.
9608
9609 2003-04-28 David O'Brien <obrien@FreeBSD.org>
9610
9611 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
9612 Define as 1.
9613
9614 2003-04-28 David O'Brien <obrien@FreeBSD.org>
9615
9616 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
9617
9618 2003-04-28 Jakub Jelinek <jakub@redhat.com>
9619
9620 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
9621 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
9622 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
9623 functions.
9624 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
9625
9626 2003-04-28 Nick Clifton <nickc@redhat.com>
9627
9628 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
9629
9630 2003-04-27 Zack Weinberg <zack@codesourcery.com>
9631
9632 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
9633 output_constant_def, use its result instead of TREE_CST_RTL (exp).
9634 Can assume it has the form (mem (symbol_ref ".LCxxx")).
9635 (expand_expr <COMPONENT_REF>): Can always just extract the
9636 relevant field of a CONSTRUCTOR.
9637 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
9638 ARRAY_RANGE_REF>): Make control flow explicit.
9639 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
9640 an INTEGER_CST.
9641
9642 2003-04-27 Kazu Hirata <kazu@cs.umass.edu>
9643
9644 * reload1.c (reg_set_luid): Fix a comment typo.
9645
9646 2003-04-27 Zack Weinberg <zack@codesourcery.com>
9647
9648 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
9649 struct deferred_string, const_str_htab): Kill.
9650 (n_deferred_strings): New static variable.
9651 (build_constant_desc): Set SYMBOL_REF_DECL of the new
9652 symbol_ref to point to the constant.
9653 (output_constant_def): When a deferred string is forced out,
9654 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
9655 (mark_constant): Likewise.
9656 (maybe_output_constant_def_contents): When deferring a string
9657 constant, just set STRING_POOL_ADDRESS_P and increment
9658 n_deferred_strings.
9659 (mark_constant_pool): Check n_deferred_strings, not the size
9660 of const_str_htab.
9661 (init_varasm_once): No need to create const_str_htab.
9662
9663 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
9664 SYMBOL_REF_DECL points to a constant.
9665
9666 2003-04-26 Zack Weinberg <zack@codesourcery.com>
9667
9668 * varasm.c (output_constant_def): Split out two new static
9669 functions, build_constant_desc and maybe_output_constant_def_contents.
9670 Restructure for comprehensibility. Don't call
9671 output_addressed_constants. Treat defstr being non-NULL for
9672 STRING_POOL_ADDRESS_P constants as an invariant.
9673 (struct deferred_string): Remove labelno field.
9674 (output_constant_def_contents): Kill labelno argument. Call
9675 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
9676 asm_out.internal_label.
9677 (mark_constant): Update call to output_constant_def_contents.
9678 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
9679 constants as an invariant.
9680
9681 2003-04-26 Richard Henderson <rth@redhat.com>
9682
9683 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
9684 (ix86_expand_call, ix86_rtx_consts): Likewise.
9685
9686 2003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9687
9688 * doc/md.texi (cmpstr): Document additional restrictions.
9689
9690 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
9691
9692 * flags.h (time_report): Remove.
9693 * timevar.c (timevar_enable): New.
9694 (TIMEVAR_ENABLE): Remove, use timevar_enable.
9695 (timevar_init): Rename from init_timevar.
9696 * timevar.h (timevar_init): Rename from init_timevar.
9697 * toplev.c (time_report): Make static.
9698 (do_compile): Conditionally call init_timevar first.
9699 (preprocess_options): Move some code to do_compile.
9700
9701 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
9702
9703 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
9704
9705 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
9706
9707 * _cpp_lex_direct: Remove pointless code.
9708
9709 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
9710
9711 * doc/extend.texi (Function Attributes): Document "near" and "far"
9712 for 68HC11 and 68HC12.
9713
9714 2003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9715
9716 * expr.c (store_field): When making temporary for store, don't
9717 make it TYPE_QUAL_CONST.
9718
9719 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
9720
9721 * toplev.c (read_integral_parameter): Use "argument" in error
9722 message to distinguish it from actual invalid options.
9723
9724 2003-04-25 Bob Wilson <bob.wilson@acm.org>
9725
9726 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
9727 addition of __PIC__ and __pic__ macros.
9728 * config/xtensa/xtensa.h: Clean up indentation.
9729
9730 2003-04-25 Bob Wilson <bob.wilson@acm.org>
9731
9732 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
9733 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
9734 (SUBTARGET_CPP_SPEC): Define.
9735 (LIB_SPEC): Delete.
9736 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
9737 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
9738 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
9739 Define.
9740 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9741 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
9742
9743 2003-04-25 H.J. Lu <hjl@gnu.org>
9744
9745 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
9746 for return mode.
9747 (ia64_expand_builtin): Set rmode to SImode for
9748 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
9749 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
9750 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
9751 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
9752
9753 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
9754
9755 * configure.in (make_compare_target): Test for GNU cmp and set this
9756 variable appropriately.
9757 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
9758 compare4-lean): Rename actual targets to slowcompare*. New compare*
9759 targets depend on names based on make_compare_target.
9760 * configure: Regenerated.
9761
9762 2003-04-25 Richard Henderson <rth@redhat.com>
9763
9764 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
9765 to clobber ar.pfs and ar.unat.
9766 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
9767 fix test for spilling ar.pfs to the stack.
9768
9769 2003-04-25 Richard Henderson <rth@redhat.com>
9770
9771 PR opt/10315
9772 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
9773 checks during reload; use validize_mem instead of adjust_address.
9774
9775 2003-04-26 Ben Elliston <bje@wasabisystems.com>
9776
9777 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
9778 return values from recog_memoized().
9779
9780 2003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9781
9782 PR opt/8705
9783 * gcse.c (try_replace_reg): On a successful substitution of a constant
9784 into a single set, try to simplify the source of the set.
9785 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
9786 constant source.
9787
9788 2003-04-24 Neil Booth <neil@daikokuya.co.uk>
9789
9790 * cpplex.c (cpp_token_len): Tighten up.
9791 (cpp_token_as_text): Need extra byte now.
9792 * cpplib.c (glue_header_name): Need extra 2 bytes.
9793 * cppmacro.c (cpp_macro_definition): Need extra byte.
9794
9795 2003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
9796
9797 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
9798 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
9799 where they might be not present. Use their _sp64 equivalent
9800 instead.
9801
9802 Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
9803
9804 * i386.md (cvtsi2sdq): Fix typo in previous patch.
9805
9806 2003-04-24 Krister Walfridsson <cato@df.lth.se>
9807
9808 * configure.in: Check whether mbstowcs works.
9809 * configure, config.in: Regenerate.
9810 * intl.c: Use HAVE_WORKING_MBSTOWCS.
9811
9812 2003-04-24 H.J. Lu <hjl@gnu.org>
9813
9814 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
9815 for __sync_bool_compare_and_swap_di for int return type.
9816
9817 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
9818 Change return type to int.
9819 (__sync_bool_compare_and_swap): Likewise.
9820
9821 Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
9822
9823 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
9824 looking for fallthru edge.
9825
9826 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
9827 Fix.
9828 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
9829 athlon-fvector): New.
9830 (athlon_*): Revisit to match new optimization guide.
9831 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
9832 * i386.md (cvt??2?? patterns): Fix modes.
9833 (fistp patterns): Set modes.
9834
9835 Accidentaly commited with my earlier reload patch:
9836 PR c/10308
9837 * reload.c (find_reloads_address_1): Reload plus at the place of
9838 index register.
9839
9840 2003-04-24 Nathan Sidwell <nathan@codesourcery.com>
9841
9842 New GCOV_TAG_FUNCTION layout
9843 * coverage.c (struct function_list): Replace name with ident.
9844 (struct counts_entry): Likewise.
9845 (fn_ident): New.
9846 (htab_counts_entry_hash, htab_counts_entry_eq,
9847 htab_counts_entry_del): Adjust.
9848 (reads_count_file, get_coverage_counts,
9849 coverage_begin_output, coverage_end_function): Adjust.
9850 (build_fn_info_type, build_fn_info_value): Likewise.
9851 * gcov-dump.c (tag_function): Adjust.
9852 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9853 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9854 * gcov.c (struct function_info): Add ident.
9855 (read_graph_file, read_count_file): Adjust.
9856 * libgcov.c (gcov_exit): Adjust.
9857
9858 2003-04-23 Richard Henderson <rth@redhat.com>
9859
9860 PR opt/8300
9861 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
9862 after initialize_uninitialized_subregs; update reg info assuming
9863 new pseudos were created.
9864
9865 2003-04-23 Neil Booth <neil@daikokuya.co.uk>
9866
9867 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
9868 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
9869 (lex_string): Take cpp_string with full spelling.
9870 (cb_ident): Update.
9871 (c_lex): Update diagnostics.
9872 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
9873 (create_literal): New.
9874 (lex_string): Unterminated literals have type CPP_OTHER.
9875 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
9876 for CPP_OTHER.
9877 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
9878 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
9879 * cpplib.c (parse_include, do_line, do_linemarker,
9880 destringize_and_run): Update for token storing full spelling.
9881 * cpplib.h: Update token spelling types.
9882 * cppmacro.c (stringify_arg, check_trad_stringification):
9883 Update for token storing full spelling.
9884
9885 2003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
9886
9887 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
9888
9889 2003-04-23 Richard Earnshaw <rearnsha@arm.com>
9890
9891 * arm.h (TARGET_OPTIONS): Add value field.
9892
9893 2003-04-23 Mark Mitchell <mark@codesourcery.com>
9894
9895 * doc/extend.texi: Remove duplicate 2003 copyright date.
9896
9897 2003-04-23 Nathan Sidwell <nathan@codesourcery.com>
9898
9899 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
9900 (libgcov.a): Depends on LIBGCC_DEPS.
9901 * basic-block.h (profile_info): Moved here from coverage.h. Made
9902 a pointer.
9903 * coverage.c (struct function_list): Fixed array of counter types.
9904 (struct counts_entry): Keyed by counter type, contains summary.
9905 (profile_info): Moved to profile.c.
9906 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
9907 vars.
9908 (profiler_label): Remove.
9909 (ctr_labels): New.
9910 (set_purpose, label_for_tag, build_counter_section_fields,
9911 build_counter_section_value, build_counter_section_data_fields,
9912 build_counter_section_data_values, build_function_info_fields,
9913 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
9914 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
9915 build_ctr_info_value, build_gcov_info): New.
9916 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
9917 (reads_counts_file): Adjust.
9918 (get_coverage_counts): Takes counter number. Add summary
9919 parameter. Adjust.
9920 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
9921 create counter array labels.
9922 (coverage_end_function): Adjust.
9923 (create_coverage): Adjust.
9924 (find_counters_section): Remove.
9925 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
9926 (struct section_info, struct profile_info): Remove.
9927 (profile_info): Moved to basic-block.h.
9928 (coverage_counter_ref): Takes a counter number.
9929 (get_coverage_counts): Takes a counter number. Added summary
9930 parameter.
9931 (find_counters_section): Remove.
9932 * gcov-dump.c (tag_arc_counts): Rename to ...
9933 (tag_counters): ... here. Adjust.
9934 (tag_table): Move tag_counters to 3rd entry. Remove
9935 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
9936 (dump_file): Check for counter tag values here.
9937 (tag_summary): Adjust.
9938 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
9939 * gcov-io.h (GCOV_LOCKED): New.
9940 (GCOV_TAG_ARC_COUNTS): Rename to ...
9941 (GCOV_TAG_COUNTS_BASE): ... here.
9942 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
9943 Remove.
9944 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
9945 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
9946 GCOV_TAG_IS_COUNTER): New.
9947 (struct gcov_ctr_summary): New.
9948 (struct gcov_summary): Adjust.
9949 (struct gcov_counter_section): Remove.
9950 struct gcov_counter_section_data): Remove.
9951 (struct gcov_function_info): Rename to ...
9952 (struct gcov_fn_info): ... here. Adjust.
9953 (struct gcov_ctr_info): New.
9954 (struct gcov_info): Adjust.
9955 * gcov.c (read_count_file): Adjust.
9956 (output_lines): Adjust.
9957 * libgcov.c (gcov_exit): Adjust.
9958 (__gcov_flush): Adjust.
9959 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
9960 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
9961 probably_never_executed_bb_p, compute_frequency_function): Adjust
9962 profile_info use.
9963 * profile.c (struct counts_entry): Remove.
9964 (profile_info): Define here.
9965 (get_exec_counts): Adjust get_coverage_counts call.
9966 (compute_branch_probablilities): Remove find_counters_section
9967 call.
9968 (gen_edge_profiler): Adjust coverage_counter_ref call.
9969 * tracer.c (tail_duplicate): Adjust profile_info use.
9970
9971 2003-04-23 Roger Sayle <roger@eyesopen.com>
9972
9973 PR optimization/10339
9974 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
9975 directly instead of unsafely transforming call into a memcmp.
9976 (expand_builtin_strncmp): Likewise.
9977
9978 2003-04-22 Roger Sayle <roger@eyesopen.com>
9979
9980 * alias.c (mark_constant_function): Check for constancy and
9981 purity even of void functions. Update both the function decl
9982 and the cgraph RTL info with the results.
9983
9984 2003-04-22 Roger Sayle <roger@eyesopen.com>
9985
9986 * real.c (do_add): Change to return a bool indicating that the
9987 result of the operation may be inexact due to loss of precision.
9988 (do_multiply): Likewise.
9989 (do_divide): Likewise.
9990
9991 2003-04-22 Geoffrey Keating <geoffk@apple.com>
9992 Loren James Rittle <ljrittle@acm.org>
9993
9994 * dwarf2out.c (fde_table_allocated): Mark with GTY.
9995 (decl_die_table_allocated): Likewise.
9996 (abbrev_die_table_allocated): Likewise.
9997 (line_info_table_allocated): Likewise.
9998 (separate_line_info_table_allocated): Likewise.
9999 (pubname_table_allocated): Likewise.
10000 (arange_table_allocated): Likewise.
10001 (ranges_table_allocated): Likewise.
10002 (decl_die_table_in_use): Unconditionalize; mark with GTY.
10003 (abbrev_die_table_in_use): Likewise.
10004 (line_info_table_in_use): Likewise.
10005 (separate_line_info_table_in_use): Likewise.
10006 (pubname_table_in_use): Likewise.
10007 (arange_table_in_use): Likewise.
10008 (ranges_table_in_use): Likewise.
10009 (have_location_lists): Likewise.
10010 (emitcount): New GTY-marked static, moved...
10011 (maybe_emit_file): ...from here.
10012 (label_num): New GTY-marked static, moved...
10013 (gen_internal_sym): ...from here.
10014
10015 2003-04-22 Richard Henderson <rth@redhat.com>
10016
10017 PR 8866
10018 * rtl.h (MEM_NOTRAP_P): New.
10019 (MEM_COPY_ATTRIBUTES): Copy it.
10020 * rtlanal.c (may_trap_p): Check it.
10021 * expr.c (do_tablejump): Set it.
10022 * doc/rtl.texi (Flags): Document it.
10023
10024 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
10025
10026 2003-04-22 Olivier Hainque <hainque@act-europe.fr>
10027
10028 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
10029 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
10030
10031 2003-04-22 Vincent Celier <celier@gnat.com>
10032
10033 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
10034 --enable-threads=gnat.
10035 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
10036 * configure.in: Add gnat to the list of thread packages
10037 * configure: Rebuild.
10038 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
10039
10040 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
10041
10042 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
10043
10044 2003-04-22 Devang Patel <dpatel@apple.com>
10045
10046 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
10047 parameter count.
10048 (_cpp_copy_replacement_text): Same.
10049
10050 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
10051
10052 * c-lex.c (c_lex): Handle CPP_OTHER differently.
10053 * cppexp.c (_cpp_parse_expr): Similarly.
10054 * cpplex.c (SPELL_CHAR): Remove.
10055 (_cpp_lex_direct): Stray chars are saved as byte strings.
10056 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
10057 handle SPELL_CHAR.
10058 (cpp_avoid_paste): Update handling of CPP_OTHER.
10059 * cpplib.h: Spell CPP_OTHER like a number.
10060 (struct cpp_token): Remove member c.
10061 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
10062
10063 2003-04-22 David Turner <novalis@gnu.org>
10064
10065 * gbl-ctors.h: Add special license exception.
10066 * libgcc2.h: Likewise.
10067 * tsystem.h: Likewise.
10068 * gcov-io.h: Likewise.
10069
10070 2003-04-22 David Edelsohn <edelsohn@gnu.org>
10071
10072 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
10073 macro defaulting to original BRANCH_COST heuristic.
10074 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
10075
10076 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
10077
10078 2003-04-22 Aldy Hernandez <aldyh@redhat.com>
10079
10080 * config/rs6000/t-spe: Merge in t-fprules into file.
10081
10082 * config.gcc: Add t-spe to powerpc-eabispe.
10083
10084 2003-04-22 Kean Johnston <jkj@sco.com>
10085
10086 * tlink.c (recompile_files): Add missing '=' to putenv calls
10087
10088 2003-04-22 Nathan Sidwell <nathan@codesourcery.com>
10089
10090 * ginclude/stddef.h: Provide C++ safe offsetof.
10091
10092 2003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
10093
10094 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
10095 for reg notes, if there are no substitutions, just use a SUBREG.
10096
10097 2003-04-21 Mark Mitchell <mark@codesourcery.com>
10098
10099 * Makefile.in (calls.o): Depend on except.h.
10100 * calls.c: Include except.h.
10101 (emit_call_1): Call note_eh_region_may_contain_throw if
10102 appropriate.
10103 * except.c (eh_region): Add may_contain_throw.
10104 (expand_eh_region_end_cleanup): Do not include handler code when
10105 it cannot be reached.
10106 (note_eh_region_may_contain_throw): New function.
10107 * except.h (note_eh_region_may_contain_throw): New function.
10108
10109 2003-04-21 Mark Mitchell <mark@codesourcery.com>
10110
10111 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
10112 changes.
10113
10114 2003-04-21 Aldy Hernandez <aldyh@redhat.com>
10115
10116 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
10117 64-bit long doubles.
10118
10119 2003-04-21 Olivier Hainque <hainque@act-europe.fr>
10120
10121 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
10122 a number of conversions required for type consistency and previously
10123 stripped off by STRIP_NOPS.
10124
10125 * calls.c (expand_call): Prevent sibcall optimization for calls to
10126 nested subprograms.
10127
10128 * expmed.c (extract_bit_field): Reverse operands of && condition to
10129 prevent a potential division by zero in the previously first branch.
10130 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
10131
10132 2003-04-21 Joel Brobecker <brobecker@gnat.com>
10133
10134 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
10135 (subrange_type_die): Likewise.
10136 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
10137 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
10138
10139 2003-04-21 Nathan Sidwell <nathan@codesourcery.com>
10140
10141 Break out coverage routines to new file.
10142 * Makefile.in (COVERAGE_H): New variable
10143 (C_OBJS): Add coverage.o
10144 (coverage.o): New target.
10145 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
10146 dependencies.
10147 (GTFILES): Adjust.
10148 (gt-coverage.h): New target.
10149 (gt-profile.h): Remove.
10150 * profile.h: Remove. Move to ...
10151 * coverage.h: ... here. New. #include gcov-io.h.
10152 * gcov-io.h: Move function definitions to ...
10153 * gcov-io.c: ... here. New.
10154 * profile.c: Move coverage routines to coverage.c.
10155 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
10156 end_branch_prob): Adjust.
10157 * coverage.c: New. Coverage routines from profile.c
10158 (coverage_counter_ref, coverage_init, coverage_finish,
10159 coverage_end_function, coverage_begin_output,
10160 coverage_counter_ref, get_coverage_counts): Define.
10161 * gcov-dump.c, gcov.c: #include gcov-io.c.
10162 * libgcov.c: Likewise. Adjust.
10163 * loop-init.c: Don't #include profile.h
10164 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
10165 * rtl.h: Add coverage prototypes.
10166 * toplev.c (compile_file): Init coverage, not branch_prob.
10167 Always call coverage_finish.
10168 (rest_of_compilation): Call coverage_end_function.
10169
10170 2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
10171
10172 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
10173
10174 2003-04-21 Neil Booth <neil@daikokuya.co.uk>
10175
10176 * c-ppoutput.c (cb_include): Don't take a cpp_token.
10177 * cppfiles.c: Don't undef strcmp.
10178 (find_include_file): Don't take a cpp_token. Check for empty
10179 file names.
10180 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
10181 (cpp_push_include): Simplify.
10182 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
10183 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
10184 (parse_include): Similary. Don't check for zero-length filenames.
10185 (do_include_common, do_pragma_dependency): Update accordingly.
10186 * cpplib.h (struct cpp_callbacks): Change prototype of include.
10187
10188 2003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10189
10190 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
10191 details of conflict handling.
10192
10193 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
10194 when conversion overflows.
10195
10196 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
10197
10198 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
10199 before clearing.
10200
10201 2003-04-21 Mark Mitchell <mark@codesourcery.com>
10202
10203 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
10204 have the same form as the old RTL.
10205
10206 2003-04-21 Andreas Jaeger <aj@suse.de>
10207
10208 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
10209
10210 2003-04-20 Chris Lattner <sabre@nondot.org>
10211 Zack Weinberg <zack@codesourcery.com>
10212
10213 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
10214 genrtl_cleanup_stmt. Correct comment at head of
10215 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
10216
10217 * stmt.c (struct nesting): Kill n_function_calls.
10218 (expand_start_bindings): Don't set
10219 thisblock->data.block.n_function_calls.
10220 (expand_end_bindings): Compare function_call_count against 0.
10221 (expand_cleanups): Kill DONT_DO argument; all callers passed
10222 NULL_TREE. All callers updated to match.
10223
10224 2003-04-20 Zack Weinberg <zack@codesourcery.com>
10225
10226 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
10227 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
10228 (output_constant_def): Remove code predicated on
10229 defer_addressed_constants_flag.
10230
10231 * output.h: Remove prototypes of deleted functions.
10232 * c-typeck.c (constructor_subconstants_deferred): Kill.
10233 (struct initializer_stack): Remove 'deferred' field.
10234 (start_init): Remove all references to the above.
10235 (finish_init): Likewise. Also remove never-executed call to
10236 output_deferred_addressed_constants. Pull assignment to
10237 defstr out of if expression.
10238
10239 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
10240
10241 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
10242 NOTE_NEWLINE): Remove.
10243 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
10244 to handle new form of line note type.
10245
10246 2003-04-20 Zack Weinberg <zack@codesourcery.com>
10247
10248 * target.h (encode_section_info): Add new argument carrying
10249 the RTL to be modified by the hook.
10250
10251 * varasm.c (make_decl_rtl, output_constant_def): Update calls
10252 to encode_section_info.
10253 (default_encode_section_info): Take and use RTL argument,
10254 don't use TREE_CST_RTL or DECL_RTL.
10255 * output.h: Update prototype of default_encode_section_info.
10256 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
10257 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
10258 Update calls to encode_section_info.
10259
10260 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
10261 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
10262 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
10263 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
10264 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
10265 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
10266 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
10267 except for PE dllimport/dllexport. Update calls to
10268 default_encode_section_info.
10269
10270 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
10271 Update prototypes.
10272
10273 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
10274
10275 2003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10276
10277 PR/8705
10278 * pa.md (movccfp): New expander.
10279 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
10280 Reverse fcmp conditions.
10281
10282 2003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
10283
10284 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
10285 of operand 1 correctly.
10286
10287 2003-04-20 Nathan Sidwell <nathan@codesourcery.com>
10288
10289 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
10290 * gcov.c (output_lines): Don't be so fussy about going past EOF.
10291
10292 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
10293
10294 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
10295 (cppcharset.o): New target.
10296 * c-lex.c (is_extended_char): Move to cppcharset.c.
10297 (utf8_extend_token): Delete.
10298 * cppcharset.c: New file.
10299 * cpphash.h (_cpp_valid_ucn): New.
10300 * cpplex.c (lex_identifier): Update prototype.
10301 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
10302 escapes.
10303 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
10304 in cppcharset.c.
10305 (lex_number, lex_identifier, cpp_parse_escape): Update.
10306 (_cpp_lex_direct): Update to handle UCNs.
10307 (cpp_avoid_paste): Don't paste to form a UCN.
10308
10309 2003-04-19 Roger Sayle <roger@eyesopen.com>
10310
10311 * builtins.c (expand_builtin): Don't expand a pure or const
10312 built-in function if the result will be ignored and none of
10313 its arguments are volatile.
10314
10315 2003-04-19 Kean Johnston <jkj@sco.com>
10316
10317 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
10318 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
10319 target fragment now: t-sco5; dont compile crti.o.
10320 * config/i386/sco5.h: major overhaul to remove all COFF remnants
10321 and to use elfos.h for most definitions.
10322 (BSS_SECTION_ASM_OP): set correct segment attributes.
10323 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
10324 (DWARF2_UNWIND_INFO): Always set to 1.
10325 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
10326 (MD_STARTFILE_PREFIX_1): Define.
10327 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
10328 (DEFAULT_LINKER): Define if not specified to configure.
10329 (CTORS_SECTION_ASM_OP): Remove COFF crud.
10330 (DTORS_SECTION_ASM_OP): Remove COFF crud.
10331 (WINT_TYPE): Define.
10332 (SDB_DEBUGGING_INFO): Remove.
10333 (EXTRA_SECTIONS): Likewise.
10334 (EXTRA_SECTION_FUNCTIONS): Likewise.
10335 (CTOR_LIST_BEGIN): Likewise.
10336 (CTOR_LIST_END): Likewise.
10337 (INIT_SECTION_FUNCTION): Likewise.
10338 (FINI_SECTION_FUNCTION): Likewise.
10339 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
10340 (LOCAL_LABEL_PREFIX): Likewise.
10341 (NON_SAVING_SETJMP): Likewise.
10342 (RETURN_POPS_ARGS): Likewise.
10343 (ASM_OUTPUT_SKIP): Likewise.
10344 (TARGET_ASM_NAMED_SECTION): Likewise.
10345 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
10346 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
10347 (ASM_OUTPUT_IDENT): Likewise.
10348 (ASM_OUTPUT_CASE_LABEL): Likewise.
10349 (ASM_OUTPUT_ASCII): Likewise.
10350 (ASM_OUTPUT_LIMITED_STRING): Likewise.
10351 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
10352 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10353 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10354 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10355 (ASM_DECLARE_OBJECT_NAME): Likewise.
10356 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
10357 (ASM_DECLARE_FUNCTION_NAME): Likewise.
10358 (ASM_DECLARE_RESULT): Likewise.
10359 (ASM_WEAKEN_LABEL): Likewise.
10360 (SUPPORTS_WEAK): Likewise.
10361 (APPLY_RESULT_SIZE): Likewise.
10362 (LPREFIX): Likewise.
10363 (ALIGN_ASM_OP): Likewise.
10364 (ASCII_DATA_ASM_OP): Likewise.
10365 (IDENT_ASM_OP): Likewise.
10366 (ASM_SHORT): Likewise.
10367 (ASM_LONG): Likewise.
10368 (TYPE_ASM_OP): Likewise.
10369 (SIZE_ASM_OP): Likewise.
10370 (STRING_ASM_OP): Likewise.
10371 (SKIP_ASM_OP): Likewise.
10372 (EH_FRAME_SECTION_ASM_OP): Likewise.
10373 (READONLY_DATA_SECTION_ASM_OP): Likewise.
10374 (INIT_SECTION_ASM_OP): Likewise.
10375 (FINI_SECTION_ASM_OP): Likewise.
10376 (TEXT_SECTION_ASM_OP): Likewise.
10377 (DATA_SECTION_ASM_OP): Likewise.
10378 (TYPE_OPERANT_FORMAT): Likewise.
10379 (ASM_SPEC): Remove COFF code.
10380 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
10381 cause -pg to emit an error; use pcrt1elf.o with -pp
10382 (ENDFILE_SPEC): Likewise.
10383 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
10384 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
10385 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
10386 add -z alt_resolve to support weak symbols the way GCC wants them.
10387 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
10388 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
10389 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
10390 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
10391 (CRTSTUFF_T_CFLAGS_S): Define.
10392 (MULTILIB_OPTIONS): Likewise.
10393 (MULTILIB_DIRNAMES): Likewise.
10394 (MULTILIB_MATCHES): Likewise.
10395 (MULTILIB_EXTRA_OPTS): Likewise.
10396 (LIBGCC): Likewise.
10397 (INSTALL_LIBGCC): Likewise.
10398 (crti.o): Remove.
10399 * config/i386/t-sco5gas: Remove.
10400 * doc/install.texi: Updated for new OpenServer instructions.
10401 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
10402
10403 2003-04-19 Kean Johnston <jkj@sco.com>
10404
10405 * fixinc/check.tpl: Allow user to over-ride diff program.
10406 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
10407 (sco_math): Added test for SCO math header files.
10408 (sco_regset): Added check for conflicts with ieeefp.h.
10409 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
10410 * fixinc/fixincl.x: Regenerated
10411 * fixinc/tests/base/math.h: Added sco_math tests.
10412 * fixinc/tests/base/string.h: New file.
10413 * fixinc/tests/base/sys/regset.h: New file.
10414
10415 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10416
10417 * cpphash.h (struct cpp_buffer): Remove backup_to.
10418 * cpplex.c (BACKUP, get_effective_char): Die.
10419 (_cpp_skip_block_comment): Assume '*' is location on entry.
10420 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
10421 (IF_NEXT_IS): Update.
10422 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
10423
10424 2003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
10425
10426 * README.Portability: Move to a new section and obsolete K+R
10427 portability issues.
10428
10429 Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
10430
10431 * rtlanal.c (subreg_offset_representable_p): Fix call of
10432 subreg_lowpart.
10433
10434 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10435
10436 * cpphash.h (struct cpp_reader): New member warned_dollar.
10437 * cpplex.c (continues_identifier_p): New function.
10438 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
10439 lex_number and lex_string, and simplify.
10440 (parse_slow, unescaped_terminator_p): Die.
10441 (_cpp_lex_direct): Update.
10442
10443 2003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10444
10445 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
10446
10447 2003-04-19 Nathan Sidwell <nathan@codesourcery.com>
10448
10449 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
10450 fork behavior.
10451
10452 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10453
10454 * cppexp.c (eval_token): Permit true and false even if pedantic.
10455
10456 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10457
10458 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
10459
10460 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
10461
10462 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
10463 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
10464 (struct include_file): Remove fefcnt, mapped members.
10465 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
10466 (read_include_file): Don't use mmap, terminate buffers in '\r'.
10467 (purge_cache): Don't use munmap.
10468 * cpphash.h (CPP_BUF_COLUMN): Update.
10469 (lexer_state): Remove lexing_comment.
10470 (struct _cpp_line_note): New.
10471 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
10472 next_line and need_line. Remove col_adjust and saved_flags.
10473 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
10474 _cpp_skip_block_comment, scan_out_logical_line): New.
10475 (_cpp_init_mbchar): Remove.
10476 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
10477 (cpp_read_main_file): Set line to 1 earlier.
10478 (post_options): -traditional-cpp doesn't want trigraphs.
10479 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
10480 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
10481 _cpp_get_fresh_line): New.
10482 (handle_newline, skip_escaped_newlines, trigraph_p,
10483 continue_after_nul, _cpp_init_mbchar): Remove.
10484 (get_effective_char): Update.
10485 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
10486 (skip_line_comment): Simplify.
10487 (skip_whitespace, parse_identifier, parse_slow, parse_number,
10488 parse_string): Update.
10489 (cpp_lex_direct): Use clean lines and process line notes. Update.
10490 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
10491 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
10492 directly.
10493 (_cpp_handle_directive): Don't set saved_flags.
10494 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
10495 cpp_undef, handle_assertion, cpp_push_buffer): Update.
10496 (_cpp_pop_buffer): Free notes.
10497 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
10498 * cpppch.c (cpp_read_state): \n terminate buffer.
10499 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
10500 (copy_comment): Use _cpp_skip_block_comment.
10501 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
10502 Simplify.
10503 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
10504 save_replacement_text): Update.
10505 (scan_out_logical_line): Update to use clean lines and process
10506 line notes.
10507 * fix-header.c (read_scan_file): Update.
10508
10509 2003-04-18 Douglas B Rupp <rupp@gnat.com>
10510
10511 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
10512 null begin parameter (as well as pointer to null).
10513 (__deregister_frame_info_bases): Likewise.
10514
10515 2003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10516
10517 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
10518 hard or virtual register and copy into pseudo if replacement fails.
10519
10520 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
10521
10522 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
10523
10524 2003-04-18 Olivier Hainque <hainque@act-europe.fr>
10525
10526 * calls.c (expand_call): Move special case for constructor calls
10527 to right place. Ensures constructor calls used to initialize
10528 arguments get a clean outgoing argument block for themselves.
10529 Move check for stack deallocation completeness until after last
10530 deallocation. Add stack_pointer_delta to set of state
10531 variables saved and restored along with current stack_level.
10532
10533 * integrate.c (expand_inline_function): Ensure non-const actuals
10534 don't end up const in the caller's flow after conversion to possibly
10535 const formal type.
10536
10537 2003-04-18 Vincent Celier <celier@gnat.com>
10538
10539 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
10540 and *_DIV_EXPR as TRUNC_*_EXPR.
10541
10542 2003-04-18 Mark Mitchell <mark@codesourcery.com>
10543
10544 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
10545 for orphaned jump tables.
10546
10547 2003-04-18 Kazu Hirata <kazu@cs.umass.edu>
10548
10549 * reload1.c: Revert my previous patch on 2002-04-17.
10550
10551 2003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10552
10553 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
10554 Add Segher Boessenkool.
10555
10556 2003-04-18 Alexander Sotirov <sluncho@mirizma.org>
10557
10558 PR c/9177
10559 * c-decl.c (c_expand_body): Don't garbage collect the function
10560 body if we are going to dump it later.
10561
10562 2003-04-18 Richard Henderson <rth@redhat.com>
10563
10564 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
10565 (alpha_end_function): Don't set them.
10566 (decl_in_text_section): Remove.
10567 (alpha_encode_section_info): Remove.
10568 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
10569 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
10570 sections, rather than decl_in_text_section results.
10571
10572 2003-04-18 Roger Sayle <roger@eyesopen.com>
10573
10574 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
10575 and SIGN_EXTRACT.
10576
10577 2003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
10578
10579 PR optimization/7675
10580 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
10581 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
10582 nested functions if they refer to declarations from parent functions.
10583 * stmt.c (expand_decl): Don't put automatic variables in registers
10584 if the DECL_NONLOCAL flag is set.
10585
10586 2003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
10587
10588 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
10589 consider those to be movable where the source matches
10590 want_to_gcse_p.
10591 (update_ld_motion_stores): In comment, refer to
10592 compute_ld_motion_mems for validity of replacement.
10593
10594 Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
10595
10596 * gcov-dump.c (tag_summary): Remove max_sum
10597 * gcov-io.h (gcov_summary, gcov_write_summary,
10598 gcov_read_summary): Kill max_sum.
10599 * libgcov.c (gcov_exit): Do one pass over the data. Make error
10600 message more verbose.
10601
10602 * emit-rtl.c (subreg_hard_regno): Check that register is
10603 representable.
10604
10605 * reload.c (reload_inner_reg_of_subreg): When register is not
10606 representable, reload the whole thing.
10607 (find_reloads): Likewsie.
10608 * rtlanal.c (subreg_representable_p): New function.
10609
10610 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
10611 allow negative probabilities for edges from the call to exit.
10612 (branch_prob): Do not add fake edges for functions that may return
10613 twice.
10614
10615 2003-04-17 DJ Delorie <dj@redhat.com>
10616
10617 * toplev.c (target_options): Add value field.
10618 (set_target_switch): Handle target options with values.
10619 * doc/tm.texi: Document how fixed vs variable target
10620 options work.
10621 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10622 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
10623 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10624 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
10625 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10626 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10627 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
10628 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
10629 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
10630 Add value initializer to target options.
10631
10632 2003-04-07 Loren James Rittle <ljrittle@acm.org>
10633
10634 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
10635
10636 2003-04-17 Kazu Hirata <kazu@cs.umass.edu>
10637
10638 * reload1.c (move2add_last_cc0): New.
10639 (reload_cse_move2add): Detect implicit sets.
10640 (move2add_note_store): Notice a store into cc0.
10641
10642 2003-04-17 Roger Sayle <roger@eyesopen.com>
10643
10644 PR c/10375
10645 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
10646 function attributes.
10647
10648 2003-04-17 Janis Johnson <janis187@us.ibm.com>
10649
10650 * doc/sourcebuild.texi (Test Suites): Document support for testing
10651 binary compatibility (moved from testsuite/README.compat).
10652
10653 2003-04-17 Richard Henderson <rth@redhat.com>
10654
10655 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
10656
10657 2003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
10658
10659 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
10660 the one provided by the FSF.
10661
10662 2003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10663
10664 * doc/install.texi (Binaries): Update URL and list of platforms
10665 provided by ftp.thewrittenword.com.
10666
10667 2003-04-17 Richard Henderson <rth@redhat.com>
10668
10669 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
10670 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
10671 * config/xtensa/xtensa.md (call, call_value): Likewise.
10672
10673 2003-04-17 Richard Henderson <rth@redhat.com>
10674
10675 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
10676 (print_operand_address): Likewise.
10677 (ep_memory_operand): Likewise.
10678 (special_symbolref_operand): Likewise.
10679 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
10680 (v850_encode_section_info): Call default_encode_section_info.
10681 (v850_strip_name_encoding): Remove.
10682 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
10683 (ASM_OUTPUT_LABELREF): Remove.
10684 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
10685 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
10686 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
10687 (ENCODED_NAME_P): Remove.
10688 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
10689 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
10690 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
10691
10692 2003-04-17 Richard Henderson <rth@redhat.com>
10693
10694 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
10695 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
10696 SYMBOL_REF_FUNCTION_P.
10697
10698 2003-04-17 Richard Henderson <rth@redhat.com>
10699
10700 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
10701 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
10702 (text_segment_operand): Likewise.
10703
10704 2003-04-17 Richard Henderson <rth@redhat.com>
10705
10706 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
10707 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10708 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10709 (sh_encode_section_info): Remove.
10710 (sh_strip_name_encoding): Remove.
10711 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
10712 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
10713 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
10714 (ASM_OUTPUT_LABELREF): Remove.
10715 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
10716 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
10717
10718 2003-04-17 Richard Henderson <rth@redhat.com>
10719
10720 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
10721 (tls_model_chars): Remove.
10722 (larl_operand): Use SYMBOL_REF_FLAGS.
10723 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10724 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10725 (s390_output_mi_thunk): Likewise.
10726 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
10727 (s390_function_profiler): Likewise.
10728 (s390_encode_section_info): Use default_encode_section_info
10729 and SYMBOL_FLAG_ALIGN1.
10730 (s390_strip_name_encoding): Remove.
10731 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
10732 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
10733 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
10734
10735 2003-04-17 Richard Henderson <rth@redhat.com>
10736
10737 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
10738 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
10739 (print_operand_address): Likewise.
10740
10741 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
10742 * config/ns32k/ns32k.c (expand_block_move): Don't check
10743 flag_unroll_loops.
10744
10745 2003-04-17 Richard Henderson <rth@redhat.com>
10746
10747 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
10748 SYMBOL_REF_FLAG.
10749
10750 2003-04-17 Richard Henderson <rth@redhat.com>
10751
10752 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
10753
10754 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
10755 (SYMBOL_REF_MODEL): New.
10756 (LIT_NAME_P): Move from m32r.h.
10757 (m32r_select_section): Remove.
10758 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
10759 (m32r_strip_name_encoding): Remove.
10760 (m32r_in_small_data_p): New.
10761 (small_data_operand): Use SYMBOL_REF_SMALL_P.
10762 (addr24_operand): Use SYMBOL_REF_MODEL.
10763 (call26_operand): Likewise.
10764 (addr32_operand): Tidy.
10765 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
10766 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
10767 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
10768 (READONLY_DATA_SECTION_ASM_OP): Remove.
10769 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10770 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
10771 (TARGET_ASM_SELECT_SECTION): Remove.
10772 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
10773 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
10774 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
10775 (ASM_OUTPUT_LABELREF): Remove.
10776
10777 2003-04-17 Richard Henderson <rth@redhat.com>
10778
10779 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
10780 (encode_section_info): Remove.
10781 * config/ip2k/ip2k-protos.h: Update.
10782
10783 2003-04-17 Richard Henderson <rth@redhat.com>
10784
10785 * varasm.c (default_encode_section_info): Don't set
10786 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
10787 * config/i370/i370.c (i370_encode_section_info): Remove.
10788 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
10789 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
10790 * config/i370/i370.md (movsi): Likewise.
10791
10792 * config/i370/t-i370: Add missing backslash.
10793
10794 2003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
10795
10796 * doc/invoke.texi (inline-limit): Fix pasto.
10797
10798 2003-04-17 Richard Henderson <rth@redhat.com>
10799
10800 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
10801 (small_call_insn_operand): Use it.
10802 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
10803 (h8300_eightbit_constant_address_p): Use it.
10804 (SYMBOL_FLAG_TINY_DATA): New.
10805 (h8300_tiny_constant_address_p): Use it.
10806 (h8300_encode_label, h8300_strip_name_encoding): Remove.
10807 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
10808 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
10809 (ASM_OUTPUT_LABELREF): Remove.
10810
10811 2003-04-16 Richard Henderson <rth@redhat.com>
10812
10813 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
10814 all users with SYMBOL_REF_SMALL_P.
10815 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
10816 (frv_encode_section_info): Remove.
10817 (frv_strip_name_encoding): Remove.
10818 (frv_in_small_data_p): Merge tests from encode_section_info.
10819 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
10820 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
10821 (SDATA_NAME_P): Remove.
10822 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
10823 (ASM_OUTPUT_LABELREF): Remove.
10824 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
10825
10826 * config/frv/frv.c (frv_asm_out_constructor): New.
10827 (frv_asm_out_destructor): New.
10828 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
10829 (DTORS_SECTION_ASM_OP): New.
10830 (ASM_OUTPUT_CONSTRUCTOR): Remove.
10831 (ASM_OUTPUT_DESTRUCTOR): Remove.
10832
10833 2003-04-16 Richard Henderson <rth@redhat.com>
10834
10835 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
10836 SYMBOL_REF_LOCAL_P; abort if not pic.
10837 (cris_encode_section_info): Remove.
10838
10839 2003-04-16 Richard Henderson <rth@redhat.com>
10840
10841 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
10842 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
10843
10844 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
10845 flag_inline_trees.
10846
10847 2003-04-16 Richard Henderson <rth@redhat.com>
10848
10849 * config/avr/avr.c (avr_encode_section_info): Remove.
10850 (avr_insert_attributes): New.
10851 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
10852 (avr_assemble_integer): Likewise.
10853
10854 2003-04-16 Richard Henderson <rth@redhat.com>
10855
10856 * arc.c (arc_encode_section_info): Remove.
10857 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
10858 (arc_print_operand, arc_print_operand_address): Likewise.
10859 * arc.h (EXTRA_CONSTRAINT): Likewise.
10860
10861 2003-04-16 Roger Sayle <roger@eyesopen.com>
10862
10863 * c-semantics.c (find_reachable_label): New function to find a
10864 potentially reachable label in an expression.
10865 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
10866 assumes the start of the IF_STMT is unreachable (dead) code.
10867 (expand_unreachable_stmt): Similar to expand_stmt but assumes
10868 the start of the statement list is unreachable (dead) code.
10869 (genrtl_if_stmt): If the controlling expression of the IF
10870 is constant, use expand_unreachable_stmt for the THEN or ELSE
10871 clause as appropriate.
10872 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
10873 the body of a SWITCH statement.
10874 (expand_stmt): The code immediately following a "return",
10875 "break", "continue" or "goto" is unreachable.
10876 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
10877
10878 2003-04-16 Richard Henderson <rth@redhat.com>
10879
10880 * rtl.h (MEM_ALIAS_SET): Update documentation.
10881 * doc/rtl.texi (Special Accessors): New node.
10882 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
10883
10884 2003-04-16 Alexandre Oliva <aoliva@redhat.com>
10885
10886 * reload1.c (reload_cse_noop_set_p): Return false if mode of
10887 SET_DEST is not the same as that returned by...
10888 * cselib.h (cselib_reg_set_mode): ... new function.
10889 * cselib.c (cselib_reg_set_mode): Define it.
10890 (REG_VALUES): Document semantics of first element as set mode.
10891 (cselib_subst_to_values): Skip first element if ELT is NULL.
10892 (cselib_lookup): Likewise. Insert past the first element.
10893 (cselib_invalidate_regno): NULLify first element.
10894 (cselib_record_set): Set first element.
10895
10896 2003-04-16 Olivier Hainque <hainque@act-europe.fr>
10897
10898 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
10899 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
10900 * tree.h: Add prototypes for the two new functions.
10901 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
10902 updates introduced in the previous revision by call to saved_expr_p.
10903 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
10904
10905 * expr.c (store_field): Force usage of bitfield instructions when
10906 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
10907 (expand_expr, case BIT_FIELD_REF): likewise.
10908
10909 2003-04-16 Mark Mitchell <mark@codesourcery.com>
10910
10911 PR middle-end/8866
10912 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
10913 jumptables.
10914
10915 2003-04-16 Richard Henderson <rth@redhat.com>
10916
10917 * config/ia64/ia64.c (sdata_symbolic_operand): Use
10918 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
10919 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10920 (function_operand): Use SYMBOL_REF_FUNCTION_P.
10921 (ia64_expand_load_address): Likewise.
10922 (ia64_assemble_integer): Likewise.
10923 (ia64_encode_section_info): Remove.
10924 (ia64_strip_name_encoding): Remove.
10925 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
10926 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
10927
10928 2003-04-16 Richard Henderson <rth@redhat.com>
10929
10930 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
10931 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
10932 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
10933 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
10934 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
10935 (global_symbolic_operand): Similarly.
10936 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
10937 (tls_symbolic_operand_type): Likewise.
10938 (alpha_encode_section_info): Use default_encode_section_info.
10939 (alpha_strip_name_encoding): Remove.
10940 (get_tls_get_addr): Split out from ...
10941 (alpha_legitimize_address): ... here.
10942 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
10943 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
10944 (alpha_initialize_trampoline): Use init_one_libfunc.
10945 (alpha_setup_incoming_varargs): Mark unused parameters.
10946 (alpha_initial_elimination_offset): Likewise.
10947 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
10948 (unicosmk_unique_section): Use default_strip_name_encoding.
10949 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
10950
10951 2003-04-16 Aldy Hernandez <aldyh@redhat.com>
10952
10953 * config.gcc: Add t-spe for eabispe.
10954
10955 * config/rs6000/t-spe: New.
10956
10957 2003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
10958
10959 Re-apply this patch:
10960
10961 2002-05-16 Dale Johannesen <dalej@apple.com>
10962 * combine.c (cant_combine_insn_p): Reenable combinations
10963 involving hard regs unless CLASS_LIKELY_SPILLED_P.
10964
10965 2003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10966
10967 PR/10271
10968 * pa-protos.h (function_arg): Remove last argument.
10969 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
10970 * pa.h (struct hppa_args): Add member incoming.
10971 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
10972 member incoming.
10973 (FUNCTION_ARG): Revise call to function_arg.
10974 (FUNCTION_INCOMING_ARG): Delete.
10975
10976 2003-04-15 Zack Weinberg <zack@codesourcery.com>
10977
10978 * configure.in: Unify the code which creates symlinks to a
10979 just-built as, ld, objdump, and nm with the code that detects
10980 their presence for purposes of feature tests.
10981 * configure: Regenerate.
10982
10983 2003-04-15 Zack Weinberg <zack@codesourcery.com>
10984
10985 * varasm.c (output_constant_def): Do not consult
10986 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
10987 (after_function_constants, output_after_function_constants): Delete.
10988 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
10989 * config/mips/mips-protos.h, config/mips/mips.c
10990 (mips16_constant_after_function_p): Delete.
10991 * config/mips/mips.h: Delete #if-0-ed definition of
10992 CONSTANT_AFTER_FUNCTION_P.
10993 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
10994 mention of CONSTANT_AFTER_FUNCTION_P in comment.
10995
10996 2003-04-15 Geoffrey Keating <geoffk@apple.com>
10997
10998 * tree.c (next_decl_uid): Mark with GTY.
10999 (next_type_uid): Likewise.
11000
11001 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
11002
11003 PR target/9594:
11004 * sh.c (barrier_align): Also recognize stuff_delay_slot as
11005 an indicator that a barrier was created by branch splitting.
11006
11007 2003-04-15 Mark Mitchell <mark@codesourcery.com>
11008
11009 * c-decl.c (implicitly_declare): Copy declarations that are going
11010 to be placed in a local scope.
11011
11012 2003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
11013
11014 * invoke.texi (Spec Files): Wrap if-exists-else example.
11015 (MCore): Remove duplicate @itemx entries and @opindex entries.
11016
11017 2003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
11018
11019 * unwind.inc (_Unwind_Backtrace): New function.
11020 * unwind.h (_Unwind_Backtrace): Declare it.
11021 * libgcc-std.ver (_Unwind_Backtrace): Export it.
11022
11023 2003-04-14 Jason Merrill <jason@redhat.com>
11024
11025 PR middle-end/10336, c++/10401
11026 * jump.c (never_reached_warning): Also stop looking if we reach the
11027 beginning of the function.
11028
11029 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11030
11031 PR target/10338
11032 PR bootstrap/10198
11033 PR bootstrap/10140
11034 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
11035
11036 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
11037
11038 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
11039
11040 2003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11041
11042 * optabs.c (expand_binop): In multi-word add cases, ensure
11043 XTARGET is copied to TARGET if they are different.
11044
11045 2003-04-15 Olivier Hainque <hainque@act-europe.fr>
11046
11047 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
11048 to region, possible after integration of function with unreachable
11049 regions that were optimized away.
11050
11051 2003-04-15 Jakub Jelinek <jakub@redhat.com>
11052
11053 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
11054 instead of TOC_REGISTER in epilogue in
11055 current_function_calls_eh_return functions.
11056
11057 2003-04-14 Mark Mitchell <mark@codesourcery.com>
11058
11059 * doc/extend.texi (Empty Structures): Correct description of G++'s
11060 handling of these structures.
11061
11062 * c-decl.c (grokdeclarator): Reject extern redeclarations of
11063 static variables.
11064
11065 2003-04-14 Janis Johnson <janis287@us.ibm.com>
11066
11067 * config/rs6000/rs6000.md (define_constants): Define constants for
11068 all UNSPEC usage, including new values for TLS support.
11069 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
11070 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
11071 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
11072 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
11073 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
11074 eh_set_lr_di): Use them.
11075 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
11076 rs6000_emit_epilogue) Use them.
11077
11078 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
11079
11080 2003-04-14 Neil Booth <neil@daikokuya.co.uk>
11081
11082 * Makefile.in (c-opts.o): Use custom action.
11083
11084 2003-04-14 Douglas B Rupp <rupp@gnat.com>
11085
11086 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
11087
11088 2003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11089
11090 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
11091 handle "superflat arrays" in Ada.
11092
11093 * integrate.c (expand_inline_function): Don't inline if would
11094 lose /u on a BLKmode TARGET.
11095
11096 2003-04-14 Joel Brobecker <brobecker@gnat.com>
11097
11098 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
11099 extracted from dbxout_type.
11100 (dbxout_range_type): print large bounds in octal format.
11101 (dbxout_type): Replace extracted code by call to
11102 print_int_cst_bounds_in_octal_p.
11103
11104 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
11105 of DW_LANG_Ada83 for Ada units.
11106
11107 2003-04-14 Olivier Hainque <hainque@act-europe.fr>
11108
11109 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
11110 temporary used to round CONST_INT sizes.
11111
11112 * tree.c (int_fits_type_p): Extract generic checks from the case
11113 of constant type bounds. Refine the checks against constant type
11114 bounds to allow for possible decisions against each of these bounds
11115 without requiring both bounds to be constant.
11116 (tree_int_cst_msb): Put back.
11117 * tree.h (tree_int_cst_msb): Likewise.
11118
11119 * global.c (global_conflicts): Prevent allocation of call clobbered
11120 hard regs to pseudos live across abnormal edges, as later passes are
11121 not ready to handle them.
11122
11123 * fold-const.c (fold): Reorder tests for conditional expressions.
11124
11125 * expr.c (highest_pow2_factor): Return unsigned.
11126 * expr.h (offset_address): Likewise.
11127 * emit-rtl.c (offset_address): POW2 argument now unsigned.
11128
11129 2003-04-14 Roger Sayle <roger@eyesopen.com>
11130
11131 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
11132 string literals at compile-time.
11133
11134 2003-04-14 Roger Sayle <roger@eyesopen.com>
11135
11136 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
11137 comparison operation and c1/c2 are floating point constants into
11138 x swap(cmp) (c1 - c2).
11139
11140 2003-04-14 Vladimir Makarov <vmakarov@redhat.com>
11141
11142 * genautomata.c (output_translate_vect): Fix a typo in loop
11143 condition.
11144
11145 2003-04-14 Hans-Peter Nilsson <hp@axis.com>
11146
11147 PR target/10377
11148 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
11149 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
11150 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
11151 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
11152 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
11153 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
11154 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
11155 ("*extopqihi_swap_side", "*extopqisi_swap_side")
11156 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
11157 When next to constraint R, replace constraint i with n.
11158
11159 Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
11160
11161 PR opt/10024
11162 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
11163
11164 2003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
11165
11166 * doc/contrib.texi (Contributors): Correct my entry.
11167
11168 2003-04-13 Roger Sayle <roger@eyesopen.com>
11169
11170 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
11171 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
11172 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
11173 implies DECL_BUILT_IN to simplify logic.
11174 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
11175
11176 2003-04-13 Roger Sayle <roger@eyesopen.com>
11177
11178 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
11179 (BT_FN_PTR_SIZE_SIZE): Likewise.
11180 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
11181 New built-in functions for malloc, calloc and strdup respectively.
11182 * calls.c (special_function_p): No need to handle malloc-like
11183 functions any longer. ECF_MALLOC is set via built-in attributes.
11184
11185 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
11186
11187 * doc/extend.texi: Document these new built-in functions.
11188
11189 2003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11190
11191 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
11192 (expand_builtin_stpcpy): New.
11193 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
11194 * builtins.def: Add mempcpy & stpcpy support.
11195 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
11196
11197 2003-04-13 Nick Clifton <nickc@redhat.com>
11198
11199 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
11200 "GCC".
11201 * config/rs6000/40x.md, config/rs6000/603.md,
11202 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
11203 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
11204 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
11205 config/rs6000/aix43.h, config/rs6000/aix51.h,
11206 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
11207 config/rs6000/altivec.h, config/rs6000/altivec.md,
11208 config/rs6000/beos.h, config/rs6000/darwin.h,
11209 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
11210 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
11211 config/rs6000/freebsd.h, config/rs6000/gnu.h,
11212 config/rs6000/host-darwin.c, config/rs6000/linux.h,
11213 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
11214 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
11215 config/rs6000/netbsd.h, config/rs6000/power4.md,
11216 config/rs6000/rios1.md, config/rs6000/rios2.md,
11217 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
11218 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11219 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
11220 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
11221 config/rs6000/spe.md, config/rs6000/sysv4.h,
11222 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
11223 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
11224
11225 2003-04-13 Nick Clifton <nickc@redhat.com>
11226
11227 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
11228 support for -mcall-aix switch.
11229 * config/rs6000/eabiaix.h: Delete.
11230 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
11231 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
11232 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
11233 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
11234 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
11235 debug_stack_info, output_function_profiler,
11236 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
11237 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
11238 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
11239 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
11240 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
11241 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
11242 multilibs.
11243 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
11244 (MULTILIB_EXCEPTIONS): Delete.
11245 (MULTILIB_MATCHES): Remove mcall-aix matches.
11246
11247 * doc/fragments.texi: Replace -mcall-aix example with an ARM
11248 one.
11249 * doc/install.texi: Delete powerpc-*-eabiaix target.
11250 * doc/invoke.texi: Remove documentation of mcall-aix switch.
11251 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
11252 * config.gcc: Delete powerpc-*-eabiaix target.
11253
11254 2003-04-13 Kazu Hirata <kazu@cs.umass.edu>
11255
11256 * doc/invoke.texi: Fix typos.
11257 * doc/tm.texi: Likewise.
11258
11259 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11260
11261 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
11262
11263 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11264
11265 * tree.c (build_constructor): New function.
11266 * tree.h: Prototype it.
11267
11268 * c-typeck.c (build_c_cast, pop_init_level)
11269 * profile.c (build_function_info_value, build_gcov_info_value)
11270 (create_profiler):
11271 Use build_constructor.
11272
11273 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
11274
11275 * objc/objc-act.c (build_constructor):
11276 Rename objc_build_constructor. Use build_constructor.
11277 (build_objc_string_object, objc_add_static_instance)
11278 (init_def_list, init_objc_symtab, init_module_descriptor)
11279 (generate_static_references, build_selector_translation_table)
11280 (build_descriptor_table_initializer, generate_descriptor_table)
11281 (build_protocol_initializer, build_ivar_list_initializer)
11282 (generate_ivars_list, build_dispatch_table_initializer)
11283 (generate_dispatch_table, generate_protocol_list)
11284 (build_category_initializer, build_shared_structure_initializer):
11285 Update to match.
11286
11287 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11288
11289 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
11290
11291 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11292
11293 * config/m68hc11/m68hc11-protos.h
11294 (m68hc11_eq_compare_operator): Declare
11295 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
11296 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
11297 (d_register_operand): Check the operand mode.
11298 (hard_addr_reg_operand): Likewise.
11299
11300 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11301
11302 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
11303 pattern for dbcc/ibcc generation for 68HC12.
11304 ("doloop_end"): New pattern.
11305 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
11306 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
11307 ("m68hc12_dbcc_dec_qi"): New pattern.
11308 ("m68hc12_dbcc_inc_qi"): New pattern.
11309 (split): Add split for the above when we can't use dbcc/ibcc due to
11310 reloading.
11311 (peephole2): Add peephole2 to generate the above when possible.
11312
11313 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11314
11315 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
11316 mode of operand 0.
11317 (peephole2 optimize const load): Likewise for operand 2.
11318 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
11319 clobbers CC_REGNUM.
11320 ("*rotrhi3_with_carry"): Likewise.
11321 (ashift:DI 1 split): Update pattern to create the above rotate.
11322 (lshiftrt:DI 1 split): Likewise.
11323
11324 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11325
11326 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
11327 ("tstqi_z_used" split): Use it.
11328 ("cmphi_z_used"): Likewise.
11329 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
11330 ("cmpqi_z_used"): Likewise.
11331
11332 2003-04-12 Mark Mitchell <mark@codesourcery.com>
11333
11334 PR c++/7910
11335 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
11336
11337 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11338
11339 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
11340 * configure, config.in: Regenerate.
11341 * intl.c (gcc_gettext_width): New function.
11342 * intl.h: Prototype it.
11343
11344 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11345
11346 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
11347 recognize -mnorelax.
11348 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
11349 (REG_CLASS_NAMES): Add its name.
11350 (REG_CLASS_CONTENTS): Define its content.
11351
11352 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11353
11354 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
11355 parameters so that offsets are valid for far definition.
11356 (__mulsi3): Likewise and use ret to return.
11357 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
11358
11359 2003-04-12 David Edelsohn <edelsohn@gnu.org>
11360
11361 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
11362
11363 2003-04-12 Alexandre Oliva <aoliva@redhat.com>
11364
11365 * mklibgcc.in (libgcc-stage-start): For every multilib directory
11366 containing a libgcc.a, move lib* to the corresponding stage dir.
11367
11368 * Makefile.in (stage1-start, stage2-start, stage3-start,
11369 stage4-start): Move $(SPECS) to specs in stage dir.
11370 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
11371 back as $(SPECS).
11372
11373 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
11374 object files from the non-libgcc/ multilib directories as well.
11375
11376 2003-04-11 Geoffrey Keating <geoffk@apple.com>
11377
11378 * profile.c (read_counts_file): Initialise 'checksum'.
11379
11380 * emit-rtl.c (gen_rtx): Really correct typo.
11381
11382 PR c++/9393
11383 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
11384 * configure.in: Check for gettimeofday.
11385 * tree.c (flag_random_seed): Define.
11386 (default_flag_random_seed): New.
11387 (append_random_chars): Use flag_random_seed rather than trying
11388 to acquire randomness here.
11389 * tree.h (default_flag_random_seed): Declare.
11390 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
11391 descriptions.
11392 (decode_f_option): Handle -frandom-seed.
11393 (print_switch_values): Call default_flag_random_seed.
11394 * flags.h (flag_random_seed): Declare.
11395 * configure: Regenerate.
11396 * config.in: Regenerate.
11397 * config/alpha/t-crtfm: Use -frandom-seed.
11398
11399 * doc/extend.texi (Empty Structures): New.
11400
11401 * c-pch.c: Include flags.h. Add comments to routines.
11402 (struct c_pch_validity): New.
11403 (get_ident): Update PCH file version number.
11404 (pch_init): Output current debugging type.
11405 (c_common_valid_pch): Check debugging type.
11406 * Makefile.in (c-pch.o): Update dependencies.
11407 * flags.h (debug_type_names): Declare.
11408 * toplev.c (debug_type_names): Move out of decode_g_option.
11409
11410 2003-04-11 Eric Christopher <echristo@redhat.com>
11411
11412 * emit-rtl.c (gen_rtx): Fix typos.
11413
11414 2003-04-11 Richard Henderson <rth@redhat.com>
11415
11416 * emit-rtl.c (gen_rtx): Zero '0' fields.
11417
11418 2003-04-11 Richard Henderson <rth@redhat.com>
11419
11420 PR c++/10202
11421 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
11422 not COMPLETE_TYPE_P for re-invoking layout_decl.
11423
11424 2003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
11425
11426 * doc/bugreport.texi: Fix paragraph breaking between sections
11427 in preparation for TeXinfo's paragraph indentation fixes.
11428 * doc/extend.texi: Ditto.
11429 * doc/invoke.texi: Ditto.
11430 * doc/objc.texi: Ditto.
11431 * doc/gcov.texi: Wrap 'gcov' in @command{}.
11432 * doc/invoke.texi (Darwin Options): Add a preamble.
11433
11434 2003-04-11 Richard Henderson <rth@redhat.com>
11435
11436 * config/i386/i386.c (tls_model_chars): Remove.
11437 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
11438 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
11439 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11440 (tls_symbolic_operand_1): Likewise.
11441 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
11442 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
11443 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
11444 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
11445 bits "copied from i386.h" with default_encode_section_info.
11446
11447 2003-04-11 Richard Henderson <rth@redhat.com>
11448
11449 * rtl.def (SYMBOL_REF): Add two 0 fields.
11450 * gengtype.c (adjust_field_rtx_def): Handle them.
11451 * print-rtl.c (print_rtx): Print them.
11452 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
11453 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
11454 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
11455 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
11456 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
11457 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
11458 (SYMBOL_FLAG_MACH_DEP): New.
11459 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
11460 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
11461 (assemble_static_space): Set SYMBOL_REF_FLAGS.
11462 (assemble_trampoline_template): Likewise.
11463 (output_constant_def, force_const_mem): Likewise.
11464 (default_encode_section_info): New.
11465 * output.h: Declare it.
11466 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
11467
11468 2003-04-11 Richard Henderson <rth@redhat.com>
11469
11470 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
11471 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
11472 * optabs.c (init_optabs): Initialize them.
11473 (init_libfuncs): Use init_one_libfunc.
11474 * calls.c (expand_call): Use gcov_flush_libfunc.
11475 * expr.c (store_constructor): Use setbits_libfunc.
11476 * function.c (expand_main_function): Use init_one_libfunc.
11477 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
11478
11479 2003-04-11 Mark Mitchell <mark@codesourcery.com>
11480
11481 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
11482 documentation; add DECL_FRIEND_CONTEXT.
11483
11484 2003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11485
11486 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
11487 notes on linker selection and configuration for 64-bit HP-UX port.
11488 * doc/invoke.texi (hppa): Remove hppa text from description for
11489 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
11490 and -threads options.
11491
11492 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
11493 libc.a on libdld.sl when -static is specified and -nolibdld is not
11494 specified.
11495 * pa64-hpux.h (LIB_SPEC): Likewise.
11496 * pa-hpux11.h (LIB_SPEC): Likewise.
11497 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
11498 is not specified.
11499
11500 2003-04-11 Zack Weinberg <zack@codesourcery.com>
11501
11502 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
11503 not IDENTIFIER_LOCAL_VALUE.
11504
11505 2003-04-11 Richard Henderson <rth@redhat.com>
11506
11507 PR c/10201
11508 * expr.c (expand_expr): Move DECL_RTL frobbing ...
11509 * stor-layout.c (layout_decl): ... here.
11510
11511 2003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
11512
11513 * doc/invoke.texi: Eliminate extra white-space caused by
11514 @gccoptlist{ on its own line.
11515 * doc/invoke.texi: Ensured there are two spaces between each option.
11516 * doc/invoke.texi: Re-wrapped option lines that were too wide.
11517 Added @gol to options that didn't have them.
11518
11519 2003-04-11 Nathan Sidwell <nathan@codesourcery.com>
11520
11521 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
11522 gcov-iov.h.
11523
11524 Simplify interface to gcov reading and writing.
11525 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
11526 gcov_alloc, gcov_modified, gcov_errored): Move into ...
11527 (struct gcov_var gcov_var): ... this static structure.
11528 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
11529 Return void.
11530 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
11531 read object.
11532 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
11533 (gcov_reserve_length): Remove.
11534 (gcov_write_tag): New.
11535 (gcov_write_length): Adjust.
11536 (gcov_read_summary, gcov_write_summary): Adjust.
11537 (gcov_eof, gcov_ok): Rename to ...
11538 (gcov_is_eof, gcov_is_error): ... here. Return error code.
11539 (gcov_save_position, gcov_resync): Rename to ...
11540 (gcov_position, gcov_seek): ... here.
11541 (gcov_skip, gcov_skip_string): Remove.
11542 (gcov_error): Remove.
11543 (gcov_open, gcov_close): Adjust.
11544 * gcov.c (find_source): Take const char *, copy it on allocation.
11545 (read_graph_file): Adjust.
11546 (read_count_file): Adjust.
11547 * libgcov.c (gcov_exit): Adjust.
11548 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
11549 tag_arc_counts, tag_summary): Return void. Adjust.
11550 (struct tag_format): Adjust proc member.
11551 (dump_file): Adjust gcov calls.
11552
11553 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
11554
11555 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
11556 mkfixinc.sh.
11557 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
11558 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
11559 build != host sysrooted builds.
11560 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
11561 TARGET_SYSTEM_ROOT even on sysrooted natives.
11562 * configure: Rebuilt.
11563
11564 2003-04-10 Zack Weinberg <zack@codesourcery.com>
11565
11566 * c-decl.c (struct binding_level): Add shadowed_tags and
11567 function_body; remove this_block, tag_transparent, and
11568 subblocks_tag_transparent; update comments.
11569 (clear_binding_level, lookup_tag_reverse): Kill.
11570 (make_binding_level): Use ggc_alloc_cleared or memset.
11571 (lookup_tag): Remove struct binding_level* parameter. All
11572 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
11573 current_binding_level->tags if asked for thislevel_only or if
11574 we might have to diagnose "struct foo; union foo;"
11575 (pushlevel): Ignore argument. Do not push another binding
11576 level on the transition from the parameters to the top level
11577 of the function body; just tweak the flags and proceed.
11578 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
11579 a function body, separate the parameter list from the
11580 top-level local variables.
11581 (set_block): Do nothing.
11582 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
11583 shadowed_tags if necessary.
11584 (warn_if_shadowing): Nuke the special case for local shadowing
11585 parameter.
11586 (pushdecl): Do not create a shadow entry if we are replacing
11587 an older decl in the same binding level.
11588 (pushdecl_function_level): Tweak for new way of indicating
11589 function scope.
11590 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
11591 (start_function): Don't set subblocks_tag_transparent.
11592 (finish_function): Fix up the binding_level stack for totally
11593 empty functions. Otherwise, don't call poplevel.
11594
11595 * c-common.c (shadow_warning): MANDATORY argument is no longer
11596 necessary. Always use plain warning.
11597 * c-common.h: Update to match.
11598
11599 * cfglayout.c (scope_to_insns_initialize): Clear block when we
11600 hit the FUNCTION_DECL.
11601 * function.c: Do not create cyclic tree structure.
11602
11603 2003-04-10 Zack Weinberg <zack@codesourcery.com>
11604
11605 * c-tree.h (struct lang_identifier): Replace global_value,
11606 local_value members with symbol_value, tag_value. Kill
11607 implicit_decl and limbo_value.
11608 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
11609 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
11610 C_MISSING_PROTOTYPE_WARNED): Kill.
11611 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
11612 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
11613 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
11614 (implicit_decl_warning, lookup_name_current_level,
11615 record_function_scope_shadow): Don't prototype.
11616 (pushdecl_function_level): Prototype.
11617
11618 * c-decl.c (truly_local_externals): New variable.
11619 (struct binding_level): Adjust commentary.
11620 (get_function_binding_level, clear_limbo_values,
11621 record_function_scope_shadow): Kill.
11622 (lookup_name_current_level, implicit_decl_warning): Are now static.
11623 (any_external_decl, record_external_decl): New static functions.
11624 (clone_underlying type): Split out of pushdecl.
11625 (c_print_identifier): Update to match changes to struct
11626 lang_identifier.
11627 (poplevel): Delete #if 0 block. Make externals invisible
11628 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
11629 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
11630 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
11631 (duplicate-decls): For real parm decl after a forward decl,
11632 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
11633 foo(...) { } with only a warning. Say whether a previous
11634 declaration was implicit.
11635 (warn_if_shadowing): Now handles all shadowing, not just
11636 local-over-local. Clarify comments.
11637 (pushdecl): Rewritten. There is no longer a distinction
11638 between global and local symbol values; they're all
11639 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
11640 DECL_EXTERNAL decls, and use any_external_decl to check
11641 against previous externals. Kill #if 0 blocks. Don't
11642 tolerate error_mark_node being NULL.
11643 (pushdecl_top_level): Handle only those cases which
11644 Objective C (the only user) needs.
11645 (pushdecl_function_level): New function.
11646 (implicitly_declare): Create ordinary decls with
11647 C_DECL_IMPLICIT set. Recycle old decls, however they got
11648 created.
11649 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
11650 for C_DECL_INVISIBLE symbols.
11651 (lookup_name_current_level): Likewise. Use chain_member.
11652 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
11653 Use pushdecl_function_level.
11654 (builtin_function): Use C_DECL_INVISIBLE.
11655 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
11656 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
11657 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
11658 (identifier_global_value): Same. Must scan
11659 global_binding_level in extremis.
11660
11661 * c-typeck.c (undeclared_variable): New static function, split
11662 from build_external_ref.
11663 (build_external_ref): Use DECL_CONTEXT, not
11664 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
11665 an instance variable. Restructure for clarity.
11666 * objc/objc-act.c: Use identifier_global_value, not
11667 IDENTIFIER_GLOBAL_VALUE.
11668
11669 2003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
11670
11671 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
11672 not Working Paper.
11673 * doc/invoke.texi (C++ Dialect Options): Same.
11674
11675 2003-04-10 Zack Weinberg <zack@codesourcery.com>
11676
11677 * tree.c (tree_operand_check_failed): New function.
11678 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
11679 TREE_RTL_OPERAND_CHECK): New checking macros.
11680 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
11681 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
11682 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
11683 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
11684 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
11685 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
11686 checking macros.
11687
11688 Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
11689
11690 PR inline-asm/8803
11691 * function.c (instantate_virtual_regs): Verify that all ASM statements
11692 match after the virutal regs instantiation.
11693
11694 2003-04-10 Steve Ellcey <sje@cup.hp.com>
11695
11696 * ia64-protos.h (addp4_optimize_ok): New.
11697 * ia64.c (addp4_optimize_ok): New.
11698 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
11699 (*ptr_extend_plus_2): Ditto.
11700
11701 2003-04-10 Steve Ellcey <sje@cup.hp.com>
11702
11703 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
11704 not with convert_memory_address.
11705 (store_constructor): Ditto, and same for copy_size_rtx.
11706 (expand_expr): Ditto.
11707
11708 2003-04-10 Douglas B Rupp <rupp@gnat.com>
11709
11710 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
11711
11712 2003-04-10 Bob Wilson <bob.wilson@acm.org>
11713
11714 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
11715 even if it is configured to be write-through.
11716
11717 2003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
11718
11719 * config/s390/s390.c (larl_operand): Do not allow symbols
11720 marked with '@'.
11721 (s390_encode_section_info): Mark symbols with forced 1-byte
11722 alignment with '@'.
11723 (s390_strip_name_encoding): Strip '@'.
11724 (legitimize_pic_address): Handle symbols that are not valid
11725 LARL operands in 64-bit mode.
11726
11727 2003-04-10 Andrew Haley <aph@redhat.com>
11728
11729 * tree-inline.c (inlinable_function_p): Disable inlining for
11730 synchronized methods.
11731
11732 2003-04-09 Steven Bosscher <steven@gcc.gnu.org>
11733
11734 * c-common.h (lang_statement_code_p): Remove declaration.
11735 (statement_code_p): Ditto.
11736 (c_common_stmt_codes): Define; list of c-common statement codes.
11737 (statement_code_p): New extern declaration.
11738 (STATEMENT_CODE_P): Define.
11739 (INIT_STATEMENT_CODES): Define.
11740 * c-common.c (statement_code_p): Kill the function, declare
11741 as an array of bools instead.
11742 (lang_statement_code_p): Remove.
11743 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
11744 (c_safe_from_p): Ditto.
11745 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
11746 to initialize the statement_code_p array.
11747 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
11748 statement_code_p.
11749 (copy_tree_r): Ditto.
11750 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
11751 statement tree codes.
11752 * cp/lex.c (cxx_init): Add missing print line break. Use
11753 INIT_STATEMENT_CODES to initialize the statement_code_p array.
11754 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
11755 instead of statement_code_p.
11756 * cp/pt.c (tsubst_expr): Ditto.
11757 * cp/tree.c (verify_stmt_tree_r): Ditto.
11758 (cp_statement_code_p): Remove.
11759 (init_tree): Don't set lang_statement_code_p, it's gone.
11760
11761 2003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
11762 Zack Weinberg <zack@codesourcery.com>
11763
11764 * regrename.c (struct du_chain): Use a bitfield for reg_class.
11765 * cse.c (struct qty_table_elem, struct table_elt, struct set):
11766 Use bitfields for fields holding enum rtx_code or
11767 enum machine_mode values. Add comments explaining size choices.
11768
11769 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
11770
11771 * config/fp-bit.c (unpack_d): Handle pair of doubles with
11772 different signs correctly.
11773
11774 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
11775
11776 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
11777 (reg_pending_barrier): Make it of the enumeration type.
11778 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
11779 TRUE_BARRIER.
11780 (sched_analyze): Ditto.
11781 (sched_analyze_insn): Ditto. Use anti-dependencies for
11782 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
11783 (init_deps_global): Initialize the barrier as NO_BARRIER.
11784
11785 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
11786
11787 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
11788 Check that asm insn starts on a new cycle. Add nops after asm
11789 insn to end bundle.
11790 (bundling): Move insn type evaluation from the loop. Call
11791 issue_nops_and_insn with the new parameter. Ignore changing
11792 position for nops after asm insn.
11793
11794 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
11795
11796 * optabs.c: Comment that gen_add2_insn and others may actually
11797 return emitted insns, if the gen functions turn out to return
11798 emitted insns.
11799 * reload1.c (reload_cse_move2add): Cope with emitted insns from
11800 gen_add2_insn.
11801
11802 2003-04-09 Richard Henderson <rth@redhat.com>
11803
11804 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
11805 but not tls_symbolic_operand.
11806 (ia64_expand_load_address): Remove scratch operand.
11807 (ia64_expand_tls_address): Split out from ia64_expand_move.
11808 (ia64_expand_move): Split symbolics only after reload.
11809 (ia64_emit_cond_move): New.
11810 * config/ia64/ia64-protos.h: Update.
11811 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
11812 (symbolic splitter): Accept SImode operands too.
11813 (cmove splitter): Use ia64_emit_cond_move.
11814
11815 2003-04-09 Nick Clifton <nickc@redhat.com>
11816
11817 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
11818 newer.
11819 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
11820 instead of -mno-fpu.
11821 * config/arm/semi.h (ASM_SPEC): Likewise.
11822 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
11823 but only if -msoft-float is specified pass. Otherwise pass
11824 -mfpu=softvfp.
11825
11826 2003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11827
11828 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
11829 free_EXPR_LIST_node.
11830
11831 2003-04-08 Roger Sayle <roger@eyesopen.com>
11832
11833 * fold-const.c (fold): Use "fold" following build in more places.
11834 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
11835 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
11836
11837 2003-04-08 Roger Sayle <roger@eyesopen.com>
11838
11839 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
11840 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
11841 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
11842 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
11843 Delete function scope "fcode" variable to avoid shadowing.
11844
11845 2003-04-08 Kevin Buettner <kevinb@redhat.com>
11846
11847 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
11848 Take into account DWARF_INITIAL_LENGTH_SIZE.
11849
11850 2003-04-08 Hans-Peter Nilsson <hp@axis.com>
11851
11852 * reorg.c (fill_slots_from_thread): When considering changing the
11853 insn following a reg-to-reg copy insn to use the source reg of the
11854 copy, bail out if there's overlap between the registers.
11855
11856 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11857
11858 * function.c (postponed_insns): New.
11859 (purge_addressof_1): Postpone processing of insns if addressofs
11860 are not put into stack.
11861 (purge_addressof): Process postponed insns.
11862
11863 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
11864
11865 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
11866 this is FP_MODE_DOUBLE .
11867 * sh.c (ra.h): #include.
11868 (push_regs): Add second parameter. Changed all callers.
11869 If necessary, set fpscr before saving floating point registers.
11870 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
11871 do saves / restores with SZ == 1.
11872 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
11873 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
11874 registers are being restored, restore FPSCR only after restoring them.
11875
11876 2003-04-08 Aldy Hernandez <aldyh@redhat.com>
11877
11878 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
11879 regardless of architecture.
11880 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
11881
11882 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
11883
11884 * sh.c (push_regs, calc_live_regs): Return int. Take single
11885 HARD_REG_SET * parameter. Changed all callers.
11886
11887 Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
11888
11889 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
11890 GOTOFF operand.
11891 (legitimize_pic_address): Move plus outside the unspec.
11892 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
11893 for validity.
11894
11895 2003-04-08 Nathan Sidwell <nathan@codesourcery.com>
11896
11897 * gcov-io.h (gcov_save_position): Remove __inline__ from
11898 declaration.
11899
11900 2003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
11901
11902 * doc/install.texi: Use @command and @samp for single- and
11903 multi-word commands respectively.
11904 * doc/makefile.texi: Likewise.
11905 * doc/sourcebuild.texi: Likewise.
11906
11907 2003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
11908 Richard Henderson <rth@redhat.com>
11909
11910 PR c/9516
11911 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
11912 favor of looping and tail recursion for TREE_LIST and binops.
11913
11914 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11915
11916 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
11917 for insns without luid.
11918
11919 2003-04-07 Glen Nakamura <glen@imodulo.com>
11920
11921 PR opt/8634
11922 * explow.c (maybe_set_unchanging): Don't flag non-static const
11923 aggregate type initializers with RTX_UNCHANGING_P.
11924
11925 2003-04-07 Richard Henderson <rth@redhat.com>
11926
11927 PR opt/8634
11928 * function.c (purge_addressof_1): Don't try arithmetics for
11929 unchanging memories.
11930
11931 2003-04-07 Janis Johnson <janis187@us.ibm.com>
11932
11933 * doc/sourcebuild.texi (Test Suites): Document testing support for
11934 gcov and profile-directed optimizations; describe gcc.misc-tests.
11935
11936 Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
11937
11938 PR target/10077
11939 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
11940
11941 2003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11942
11943 * doc/rtl.texi (Comparison operations): Update to
11944 record the allowed comparison modes.
11945
11946 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
11947
11948 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
11949 V2SI_type_node to opaque_V2SI_type_node. Rename all
11950 V2SF_type_node to opaque_V2SF_type_node.
11951 (rs6000_init_builtins): Define opaque_V2SI_type_node and
11952 opaque_V2SF_type_node.
11953 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
11954 opaque_V2SF_type_node are opaque types.
11955
11956 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
11957
11958 * gcse.c (replace_store_insn): Use single_set.
11959
11960 2003-04-07 Nathan Sidwell <nathan@codesourcery.com>
11961
11962 Change gcov file interface to single file at a time.
11963 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
11964 Convert to C89 prototypes.
11965 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
11966 gcov_error, gcov_modified): New static variables.
11967 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
11968 functions.
11969 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
11970 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
11971 (gcov_read_summary, gcov_write_summary): Adjust.
11972 (gcov_save_position, gcov_reserve_length, gcov_write_length):
11973 Adjust.
11974 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
11975 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
11976 (da_file_position, da_file_seek, da_file_write, da_file_read):
11977 Remove.
11978 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
11979 * gcov.c (gcov_type): Don't typedef here.
11980 (IN_GCOV): #define
11981 (read_graph_file, read_count_file): Adjust.
11982 * gcov-dump.c (gcov_type): Don't typedef here.
11983 (IN_GCOV): #define.
11984 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
11985 Remove FILE parameter, adjust.
11986 (struct tag_format): Adjust proc member.
11987 (dump_file): Adjust.
11988 * libgcov.c (IN_LIBGCOV): #define.
11989 (gcov_exit): Adjust.
11990 * loop-init.c: Don't #include gcov-io.h
11991 * profile.c (struct counts_entry): New structure to hold counter
11992 values.
11993 (struct section_reference, struct da_index_entry): Remove.
11994 (bbg_file, da_file): Remove.
11995 (htab_counts_index_hash, htab_counts_index_eq,
11996 htab_counts_index_del): Replace with ...
11997 (htab_counts_entry_hash, htab_counts_entry_eq,
11998 htab_counts_entry_del): ... these.
11999 (cleanup_counts_index, index_counts_file): Remove.
12000 (read_counts_file): New function.
12001 (get_exec_counts): Adjust.
12002 (compute_branch_probabilities): Don't free the exec counts here.
12003 (branch_prob): Adjust.
12004 (init_branch_prob): Adjust.
12005 (end_branch_prob): Adjust.
12006
12007 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
12008
12009 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12010 -mfloat-gprs.
12011
12012 * config/rs6000/rs6000.c: Delete rs6000_fprs.
12013 Declare rs6000_float_gprs.
12014 Declare rs6000_float_gprs_string.
12015 (rs6000_parse_float_gprs_option): New.
12016 (rs6000_override_options): Genericize rs6000_parse_* calls to use
12017 rs6000_parse_yes_no_option.
12018 Change check for cpu=8540, to use TARGET_E500.
12019 (rs6000_parse_isel_option): Delete.
12020 (rs6000_parse_spe_option): Delete.
12021 (rs6000_parse_vrsave_option): Delete.
12022
12023 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
12024 Define rs6000_float_gprs_string.
12025 (TARGET_OPTIONS): Add rs6000_float_gprs option.
12026
12027 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
12028
12029 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
12030
12031 Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
12032
12033 PR opt/10024
12034 * cfglayout.c (cfg_layout_redirect_edge):
12035 Redirect any branch edges unified with the fallthru one.
12036 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
12037 case fallthru edges when called via cfglayout.c
12038
12039 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
12040
12041 * c-typeck.c (output_init_element): Check for type == error_mark_node.
12042
12043 2003-04-07 Kazu Hirata <kazu@cs.umass.edu>
12044
12045 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
12046 split.
12047 (a splitter): Do zero-extension via HImode.
12048
12049 2003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
12050
12051 * doc/invoke.texi: Eliminate extra white-space caused by
12052 @gccoptlist{ on its own line.
12053 * doc/invoke.texi: Ensured there are two spaces between each option.
12054 * doc/invoke.texi: Re-wrapped option lines that were too wide.
12055 Added @gol to options that didn't have them.
12056
12057 2003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
12058
12059 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
12060
12061 2003-04-06 Zack Weinberg <zack@codesourcery.com>
12062
12063 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
12064 at the sizes of the relevant structures, rather than relying
12065 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
12066 sizes of any such we don't know about. Use
12067 lang_hooks.identifier_size for IDENTIFIER_NODE.
12068
12069 (initializer_zerop): Use CONSTRUCTOR_ELTS.
12070 * tree.def: Update commentary. Make fourth element of
12071 the definition for all 'c' and 'x' nodes zero.
12072
12073 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
12074 * langhooks-def.h: Update to match.
12075 * langhooks.c: New default, lhd_tree_size.
12076
12077 * c-common.def (SRCLOC): Kill.
12078 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
12079 Remove entirely - was already #if-ed out.
12080
12081
12082 2003-04-06 Zack Weinberg <zack@codesourcery.com>
12083
12084 * mklibgcc.in: Use a here document to avoid running afoul of
12085 shells that generate control-A from "echo \1".
12086
12087 2003-04-06 Aldy Hernandez <aldyh@redhat.com>
12088
12089 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
12090 option.
12091
12092 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12093 rs6000_spe.
12094
12095 * config/rs6000/eabi.h (TARGET_E500): Define.
12096
12097 * config/rs6000/rs6000.h (TARGET_E500): Define.
12098 (TARGET_OPTIONS): Add spe= option.
12099 Declare rs6000_spe and rs6000_spe_string extern.
12100
12101 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
12102 Change TARGET_SPE to TARGET_E500.
12103 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
12104 !TARGET_FPRS.
12105 (print_operand): Same.
12106 (rs6000_generate_compare): Same.
12107 (output_cbranch): Same.
12108 (rs6000_spe): Declare.
12109 (rs6000_spe_string): Declare.
12110 (rs6000_override_options): Call rs6000_parse_spe_option.
12111 (rs6000_parse_spe_option): New.
12112
12113 2003-04-06 Steven Bosscher <steven@gcc.gnu.org>
12114
12115 * hashtable.c (gcc_obstack_init): Delete this function
12116 and everything related to it.
12117 * hashtable.h: Remove prototype.
12118 * bitmap.c (bitmap_element_allocate): Cleanup redundant
12119 defines. Cleanup some unnecessary whitespace.
12120 * defaults.h (obstack_chunk_alloc): Redefine with
12121 appropriate casts for libiberty obstacks.
12122 (obstack_chunk_free): Ditto.
12123 (OBSTACK_CHUNK_SIZE): Define, default to 0.
12124 (gcc_obstack_init): Define as a call to _obstack_begin.
12125 * tree.c (print_obstack_statistics): Delete this unused
12126 function.
12127 * tree.h (obstack): Don't forward-declare.
12128 (print_obstack_statistics): Delete prototype.
12129 (print_obstack_name): Ditto.
12130 (gcc_obstack_init): Ditto.
12131 * rtl.h (gcc_obstack_init): Ditto.
12132 * java/jv-scan.c (gcc_obstack_init): Delete this
12133 function, its prototype and related defines.
12134 * java/jvgenmain.c (gcc_obstack_init): Delete this
12135 function, and related defines.
12136 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
12137 (obstack_chunk_free): Ditto
12138
12139 2003-04-06 Geoffrey Keating <geoffk@apple.com>
12140
12141 * dbxout.c (dbxout_handle_pch): Move prototype out from
12142 #if defined DBX_DEBUGGING_INFO.
12143
12144 2003-04-05 Nathan Sidwell <nathan@codesourcery.com>
12145
12146 * gcov.c (struct arc_info): Replace local_span with cycle.
12147 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
12148 (solve_flow_graph): Set is_call_return.
12149 (add_line_counts): Adjust. In block mode, blocks attach to last line.
12150 (accumulate_line_counts): Find graph cycles, not spanning tree.
12151 (output_branch_count): Adjust.
12152 (output_lines): Adjust.
12153 * doc/gcov.texi: Update.
12154
12155 2003-04-06 Kazu Hirata <kazu@cs.umass.edu>
12156
12157 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
12158 the second alternative to "#".
12159
12160 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
12161
12162 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
12163 (single_zero_operand): Likewise.
12164
12165 2003-04-05 Daniel Berlin <dberlin@dberlin.org>
12166
12167 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
12168 * df.c: Include alloc-pool.h, not obstack.h.
12169 (df_ref_obstack): Remove.
12170 (df_ref_pool, df_link_pool): Add pools.
12171 (df_alloc): Init the new pools.
12172 (df_free): And free them.
12173 (df_link_create): Use the pools.
12174 (df_ref_create): Ditto.
12175
12176 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
12177
12178 * simplify-rtx.c: Fix formatting.
12179
12180 2003-04-05 Andrew Pinski <apinski@apple.com>
12181
12182 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
12183 reg with reg1 == reg2 and offset1 = -8.
12184
12185 2003-04-05 David Edelsohn <edelsohn@gnu.org>
12186
12187 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
12188 multiply costs. Correct Power4 divide costs.
12189 * config/rs6000/power4.md: Restore multiply and FP latency.
12190
12191 2003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12192
12193 * alias.c (find_base_term): Export.
12194 * rtl.h (find_base_term): Declare.
12195 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
12196 instead of flag_exceptions. Move test for parameter passing ...
12197 (store_killed_in_insn): ... here.
12198
12199 2003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12200
12201 PR bootstrap/10267
12202 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
12203 for configuring.
12204
12205 2003-04-04 Geoffrey Keating <geoffk@apple.com>
12206
12207 * dbxout.c (scope_labelno): Add GTY.
12208 (have_used_extensions): Add GTY.
12209 (source_label_number): Add GTY.
12210 (lastfile): Add GTY.
12211 (lastfile_is_base): New.
12212 (base_input_file): New.
12213 (dbxout_handle_pch): New.
12214 (dbx_debug_hooks): Add handle_pch.
12215 (xcoff_debug_hooks): Likewise.
12216 (dbxout_function_end): Remove scope_labelno.
12217 (dbxout_init): Set base_input_file.
12218 (dbxout_handle_pch): New.
12219 (dbxout_source_file): Honour lastfile_is_base.
12220 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
12221 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
12222 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
12223 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
12224 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
12225 * debug.h (struct gcc_debug_hooks): Add handle_pch.
12226 * c-pch.c (pch_init): Don't call start_source_file, but do call
12227 handle_pch.
12228 (c_common_write_pch): Call handle_pch.
12229 (c_common_read_pch): Don't call start_source_file,
12230 or end_source_file.
12231
12232 Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
12233
12234 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
12235 use of default attributes to agree MEM_ALIGN macro.
12236
12237 Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
12238
12239 * dbxout.c (dbxout_type): When printing type index of range type
12240 whose bounds are printed in octal format, print type of parent type if
12241 it exists so enumerated type descriptions are not transformed
12242 into unsigned types.
12243
12244 2003-04-04 Kazu Hirata <kazu@cs.umass.edu>
12245
12246 * config/h8300/h8300-protos.h: Add a prototype for
12247 compute_a_shift_cc.
12248 * config/h8300/h8300.c (shift_one): Update the CC status.
12249 (shift_two): Likewise.
12250 (output_a_shift_cc): Set cc_inline and cc_special.
12251 (compute_a_shift_cc): New.
12252 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
12253
12254 2003-04-04 Richard Henderson <rth@redhat.com>
12255
12256 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
12257
12258 2003-04-04 Loren James Rittle <ljrittle@acm.org>
12259
12260 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
12261 * fixinc/fixincl.x: Rebuilt.
12262 * fixinc/tests/base/stdio.h: Regenerated.
12263
12264 2003-04-04 Nathan Sidwell <nathan@codesourcery.com>
12265
12266 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
12267
12268 Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
12269
12270 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
12271 (NORMAL_MODE).
12272 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
12273
12274 2003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12275
12276 * doc/contrib.texi (Contributors): Add entries for Wolfgang
12277 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
12278 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
12279 Danny Smith, and Ulrich Weigand.
12280 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
12281 entry.
12282
12283 2003-04-04 Nick Clifton <nickc@redhat.com>
12284
12285 * config/sparc/sol2-bi.h: Revert previous delta.
12286 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
12287
12288 2003-04-04 Nick Clifton <nickc@redhat.com>
12289
12290 * config/v850/v850.c (expand_prologue): Only use register save
12291 helper functions if long calls are not being used.
12292 Add a clobber of r11 id using long calls.
12293 (pattern_is_ok_for_prologue): Account for the extra clobber.
12294 (construct_save_jarl): Likewise.
12295 * config/v850/v850.md (prolog pattern): Do not use this pattern
12296 for v850e's.
12297
12298 2003-04-04 Andreas Schwab <schwab@suse.de>
12299
12300 * stor-layout.c (layout_decl): Avoid syntax error in last change
12301 when PCC_BITFIELD_TYPE_MATTERS is defined but not
12302 EMPTY_FIELD_BOUNDARY.
12303
12304 2003-04-03 Jason Merrill <jason@redhat.com>
12305
12306 PR c/10175
12307 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
12308 Look backwards for a line note.
12309
12310 2003-04-03 Neil Booth <neil@daikokuya.co.uk>
12311
12312 * fix-header.c (read_scan_file): Defer switch processing.
12313
12314 2003-04-03 Matt Austern <austern@apple.com>
12315
12316 * cpppch.c (reset_ht): Remove.
12317 (cpp_read_state): Remove loop to reset hashtable identifiers.
12318 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
12319 after pch file is written.
12320 * ggc.h (gt_pch_fixup_stringpool): Declare.
12321 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
12322 hashnode's value to another hashtable, then clear the original.
12323 (saved_ident_hash): Define.
12324 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
12325 store definitions in ident_hash, and clear ident_hash.
12326 (gt_pch_fixup_stringpool): Define. Restore definitions from
12327 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
12328
12329 Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
12330
12331 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
12332
12333 2003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
12334
12335 PR optimization/10157
12336 * gcse.c (can_copy_p): Rename it to can_copy.
12337 (can_copy_init_p): Remove.
12338 (compute_can_copy): Use can_copy instead of can_copy_p.
12339 (can_copy_p): New exported function. Call compute_can_copy.
12340 (hash_scan_set): Use it.
12341 (gcse_main): Don't call compute_can_copy.
12342 (bypass_jumps): Don't call compute_can_copy.
12343 * rtl.h (can_copy_p): Declare.
12344 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
12345 copy if the mode doesn't support copy operations.
12346
12347 2003-04-03 Jason Merrill <jason@redhat.com>
12348
12349 * Makefile.in (unstrap): Also remove stage_last.
12350
12351 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
12352 (dwarf2out_source_line): Don't do anything if line==0.
12353
12354 * stor-layout.c (do_type_align): New fn, split out from...
12355 (layout_decl): ...here. Do all alignment calculations for
12356 FIELD_DECLs here.
12357 (update_alignment_for_field): Not here.
12358 (start_record_layout, debug_rli): Remove unpadded_align.
12359 * tree.h (struct record_layout_info_s): Remove unpadded_align.
12360 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
12361 or DECL_MODE on the CONST_DECLs.
12362 (finish_struct): Don't mess with DECL_ALIGN.
12363
12364 Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
12365
12366 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
12367
12368 Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
12369
12370 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
12371 function is an interrupt handler.
12372
12373 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
12374 restoring target registers with EH_RETURN_STACKADJ_RTX; use
12375 multiple registers in round-robin fashion.
12376
12377 2003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12378
12379 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
12380 * system.h (CHAR_BITFIELD): New.
12381
12382 2003-04-03 Kazu Hirata <kazu@cs.umass.edu>
12383
12384 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12385 and LE.
12386 (another peephole2): Likewise.
12387
12388 2003-04-03 Nick Clifton <nickc@redhat.com>
12389
12390 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
12391 (DEF_ARCH64_SPEC): Likewise.
12392
12393 Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
12394
12395 * i386.c (constant_address_p): Use legitimate_constant_p.
12396 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
12397
12398 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12399
12400 * config/h8300/h8300-protos.h: Add a prototype for
12401 gtle_operator.
12402 * config/h8300/h8300.c (gtle_operator): New.
12403 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
12404 gtle_operator.
12405 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12406 and LE.
12407
12408 2003-04-02 Richard Henderson <rth@redhat.com>
12409
12410 * libgcc-std.ver (_Unwind_GetCFA): New.
12411 * unwind-dw2.c (_Unwind_GetCFA): New.
12412 * unwind-libunwind.c (_Unwind_GetCFA): New.
12413 * unwind-sjlj.c (_Unwind_GetCFA): New.
12414 * unwind.h: Declare it.
12415
12416 Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
12417
12418 PR inline-asm/8088
12419 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
12420 when MMX/SSE is not available.
12421
12422 2003-04-02 Mike Stump <mrs@apple.com>
12423
12424 * doc/install.texi (Specific): Update pointers to apple.com.
12425
12426 Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
12427
12428 * i386.c (override_options): Disable red zone by default on i386.
12429 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
12430 Do not test TARGET_64BIT together with TARGET_RED_ZONE
12431
12432 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12433
12434 * config/h8300/h8300.md (a peephole2): Tighten the condition.
12435
12436 2003-04-02 Richard Henderson <rth@redhat.com>
12437
12438 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
12439
12440 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12441
12442 * config/h8300/h8300.md (a peephole2): New.
12443
12444 2003-04-02 Richard Henderson <rth@redhat.com>
12445
12446 * except.c (sjlj_find_directly_reachable_regions): Recognize when
12447 must-not-throw region has been deleted.
12448
12449 2003-04-02 Richard Henderson <rth@redhat.com>
12450
12451 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
12452 optimization when flag_exceptions not enabled.
12453
12454 2003-04-02 Vladimir Makarov <vmakarov@redhat.com>
12455
12456 * config/rs6000/rs6000.c
12457 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
12458 macros.
12459 (rs6000_issue_rate): Add case for 8540.
12460 (rs6000_use_sched_lookahead): New function.
12461
12462 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
12463 units into MU ones.
12464 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
12465 reservation before retirement.
12466 (ppc8540_multiply, ppc8540_load, ppc8540_store,
12467 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
12468 Remove additional cycle in the reservation before retirement.
12469 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
12470 reservation of ppc8540_issue.
12471
12472 2003-04-02 Andreas Schwab <schwab@suse.de>
12473
12474 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
12475
12476 2003-04-01 Richard Henderson <rth@redhat.com>
12477
12478 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
12479 notes for nothrow calls if flag_forced_unwind_exceptions.
12480 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
12481 (sjlj_find_directly_reachable_regions): Likewise.
12482 (reachable_handlers): Likewise.
12483 (can_throw_external): Likewise.
12484 (collect_one_action_chain): Record cleanups after catch-all and
12485 must-not-throw if flag_forced_unwind_exceptions.
12486 * flags.h (flag_forced_unwind_exceptions): Declare.
12487 * toplev.c (flag_forced_unwind_exceptions): New.
12488 (lang_independent_options): Add it.
12489 * doc/invoke.text: Add it.
12490
12491 2003-04-01 David Mosberger <davidm@hpl.hp.com>
12492
12493 * config/ia64/crti.asm: Clean up trailing whitespace.
12494 Remove trailing hashes (#) from identifiers.
12495
12496 * config/ia64/crtn.asm: Ditto.
12497
12498 * config/ia64/crtend.asm: Remove trailing hashes (#) from
12499 identifiers.
12500 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
12501 directives. Drop explicit bundling---it just makes the code
12502 harder to read. Don't save/restore gp needlessly.
12503
12504 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
12505 identifiers (they're only needed if the identifier would clash
12506 with a register name otherwise).
12507 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
12508 directives. Drop explicit bundling---it just makes the code
12509 harder to read.
12510 (__do_jv_register_classes): Ditto.
12511 (.fini_array): Remove "progbits" (newer
12512 assemblers don't like wrong section-types).
12513 (.init_array): Ditto.
12514
12515 2003-04-01 Roger Sayle <roger@eyesopen.com>
12516
12517 PR fortran/9974
12518 * gcse.c (reg_killed_on_edge): New function to test whether the
12519 given reg is overwritten by any instruction queued on an edge.
12520 (bypass_block): Ignore substitutions killed on incoming edges.
12521 Don't bypass outgoing edges that have queued instructions.
12522
12523 2003-04-01 Alexandre Oliva <aoliva@redhat.com>
12524
12525 * real.h (EXP_BITS): Make room for...
12526 (struct real_value): ... added canonical bit.
12527 (struct real_format): Added pnan.
12528 (mips_single_format, mips_double_format, mips_extended_format,
12529 mips_quad_format): New.
12530 * real.c: Copy p to pnan in all formats.
12531 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
12532 (real_nan): Use pnan to compute significand's shift.
12533 (real_identical): Disregard significand in canonical
12534 NaNs.
12535 (real_hash): Likewise. Take signalling into account.
12536 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
12537 Disregard significand bits in canonical NaNs. Set all bits of
12538 canonical NaN if !qnan_msb_set.
12539 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
12540 qnan_msb_set to tell the base double format.
12541 (ibm_extended_format): Use 53 as pnan.
12542 (mips_single_format, mips_double_format, mips_extended_format,
12543 mips_quad_format): Copied from the corresponding ieee/ibm
12544 formats, with qnan_msb_set false.
12545 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
12546 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
12547 * config/mips/mips.c (override_options): Use mips_single_format
12548 and mips_double_format. Default TFmode to mips_quad_format.
12549 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
12550 * config/mips/t-irix6: Likewise.
12551 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
12552 * config/fp-bit.c (pack_d, unpack_d): Obey it.
12553
12554 2003-04-01 Geoffrey Keating <geoffk@apple.com>
12555
12556 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
12557 (live_image_destructor): Reset image to initial state.
12558 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
12559
12560 2003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
12561
12562 * config/sparc/sparc.c (input_operand): Accept bare
12563 CONSTANT_P_RTX operands.
12564
12565 2003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12566
12567 * gcse.c (struct ls_expr): Added pattern_regs field.
12568 (ldst_entry): Initialize it.
12569 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
12570 (store_ops_ok): Use regs precomputed by them.
12571 (find_loads, store_killed_in_insn, load_kills_store): Change return
12572 type to bool.
12573 (store_killed_before, store_killed_after): Take position of register
12574 set in account.
12575 (reg_set_info): Store position of the setter.
12576 (gcse_main): Enable store motion.
12577 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
12578 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
12579 sharing.
12580 (simple_mem): Enable store motion of non-symbol mems.
12581 (regvec): Type changed.
12582 (LAST_AVAIL_CHECK_FAILURE): New.
12583 (compute_store_table_current_insn): New.
12584 (build_store_vectors): Computation of availability and anticipatability
12585 moved ...
12586 (compute_store_table, find_moveable_store): ... here.
12587 (delete_store): Remove senseless comment.
12588 (store_motion): Reorganize.
12589
12590 2003-04-01 Kevin Buettner <kevinb@redhat.com>
12591
12592 * config/mips/mips.c (override_options): Provide mappings for
12593 HI_REGNUM and LO_REGNUM.
12594 * config/mips/mips.h (MD_DBX_FIRST): Define.
12595
12596 2003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12597
12598 * combine.c (merge_outer_ops): Fix typo.
12599
12600 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
12601
12602 2003-04-01 David Edelsohn <edelsohn@gnu.org>
12603
12604 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
12605 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
12606 imul_compare. Add lmul_compare.
12607 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
12608 in second pair of dispatch slots. Model stores more accurately.
12609 Tweak multiply model. Add bypasses for CR instructions dependent
12610 on complicated compares.
12611 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
12612 (muldi3): Add lmul_compare patterns.
12613 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
12614 and FPSTORE_UX to split instructions and add COMPARE,
12615 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
12616 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
12617 (rs6000_rtx_costs): Separate POWER4 multiply case.
12618
12619 2003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
12620
12621 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
12622 Do nothing if __builtin_return_address was not used.
12623
12624 Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
12625
12626 * i386.md (test patterns): Allow memory operand in operand1.
12627
12628 2003-02-31 Aldy Hernandez <aldyh@redhat.com>
12629
12630 * testsuite/gcc.c-torture/execute/simd-3.c: New.
12631
12632 * expr.c (expand_expr): Handle VECTOR_CST.
12633 (const_vector_from_tree): New.
12634
12635 * varasm.c (output_constant): Handle VECTOR_CST.
12636
12637 * c-typeck.c (digest_init): Build a vector constant from a
12638 VECTOR_TYPE.
12639
12640 * config/rs6000/rs6000.c: Remove prototype for
12641 easy_vector_constant.
12642 (easy_vector_constant): Add mode parameter. Rewrite to handle
12643 more easy constants.
12644 (rs6000_emit_move): Pass mode to easy_vector_constant.
12645 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
12646 (emit_easy_vector_insn): New.
12647 (easy_vector_same): New.
12648 (EASY_VECTOR_15): New macro.
12649 (EASY_VECTOR_15_ADD_SELF): New macro.
12650 (bdesc_2arg): Rename to xorv2si3.
12651 (easy_vector_constant_add_self): New.
12652 (input_operand): Allow vector constants.
12653
12654 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12655 easy_vector_constant, easy_vector_constant_add_self.
12656 (EXTRA_CONSTRAINT): Add 'W'.
12657
12658 * config/rs6000/rs6000-protos.h: Add prototype for
12659 easy_vector_constant, emit_easy_vector_insn.
12660
12661 * config/rs6000/altivec.md (xorv8hi3): New.
12662 (xorv16qi3): New.
12663 Remove all _const0 patterns.
12664 (movv4si_internal): Rewrite to use code. Add vector constant to
12665 vector alternative. Add splitter.
12666 (movv8hi_internal): Same.
12667 (movv16qi_internal): Same.
12668 (movv4sf_internal): Same.
12669 Change the unspecs for vspltis* to use constants.
12670
12671 * config/rs6000/spe.md ("xorv4hi3"): New.
12672 ("spe_evxor"): Rename to xorv2si3.
12673 ("xorv1di3"): New.
12674 Remove all _const0 patterns.
12675 (movv2si_internal): Rewrite to use code. Add vector constant to
12676 alternatives. Add splitter.
12677 (movv4hi_internal): Add vector constant to alternatives.
12678 (movv1di_internal): Same.
12679 (movv2sf_internal): Same.
12680
12681 2003-03-31 Mark Mitchell <mark@codesourcery.com>
12682
12683 PR c/9936
12684 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
12685 variably-sized arrays in parameters.
12686 (set_save_expr_context): New function.
12687 (c_expand_body): Use it, via walk_tree.
12688
12689 2003-03-31 Eric Christopher <echristo@redhat.com>
12690
12691 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
12692 (combinable_i3pat): Remove call to expand_field_assignment and
12693 #if 0'd code.
12694
12695 2003-03-31 Mark Mitchell <mark@codesourcery.com>
12696
12697 PR c++/10278
12698 * c-common.c (finish_label_address_expr): Handle the
12699 error_mark_node.
12700
12701 2003-03-31 Richard Henderson <rth@redhat.com>
12702
12703 * real.c (real_identical): Reorg so as to not compare
12704 signalling for normals.
12705
12706 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12707
12708 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
12709
12710 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12711
12712 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
12713 notes as they are boggus.
12714 (m68hc11_gen_movqi): Likewise.
12715
12716 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12717
12718 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
12719 save the soft registers after the frame pointer so that gdb can unwind
12720 the frame more easily.
12721 (expand_epilogue): Likewise in opposite order; allow to use X register
12722 as scratch if the return value is by reference.
12723
12724 2003-03-31 Jason Merrill <jason@redhat.com>
12725
12726 PR java/10145
12727 * stor-layout.c (update_alignment_for_field): Respect
12728 DECL_USER_ALIGN for zero-length bitfields, too.
12729 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
12730 fields.
12731
12732 2003-03-31 Matt Austern <austern@apple.com>
12733
12734 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
12735 (count_defs): Keep track of number of defs as well as total size.
12736 (write_defs): Put every definition in cpp_savedstate's defs array.
12737 (comp_hashnode): Define. Comparison function for qsort.
12738 (cpp_write_pch_deps): Sort definitions before writing them.
12739 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
12740 (collect_ht_nodes): Define.
12741 (cpp_valid_state): When verifying that undefined identifiers in
12742 the pch file are still undefined, read a sorted list of undefined
12743 identifiers, collect all defined identifiers into a sorted list,
12744 and walk through both lists to make sure there's no match.
12745
12746 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12747
12748 * config/h8300/h8300.md (a peephole2): New.
12749
12750 2003-03-31 Michael Matz <matz@suse.de>
12751
12752 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
12753
12754 2003-03-31 Segher Boessenkool <segher@koffie.nl>
12755
12756 PR target/10177
12757 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
12758 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
12759 all call-clobbered registers as used.
12760
12761 2003-03-31 Michael Matz <matz@suse.de>
12762
12763 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
12764 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
12765
12766 2003-03-31 Nathan Sidwell <nathan@codesourcery.com>
12767
12768 * gcov.c: Add -a & -u options.
12769 (struct arc_info): Add local_span, is_call_non_return,
12770 is_nonlocal_return, is_unconditional flags, remove is_call flag.
12771 (struct block_info): Add flags, is_call_site, is_nonlocal_return
12772 members. Make encodings a union with span member.
12773 (struct function_info): Add blocks_executed, line, src, line_next
12774 members.
12775 (struct coverage_info): Make branches a union with blocks member.
12776 (struct source_info): Add functions member.
12777 (object_summary, program_count): New global variables.
12778 (flag_all_blocks, flag_unconditional): New flags.
12779 (find_source, output_branch_count): New functions.
12780 (print_usage): Adjust.
12781 (options): Adjust.
12782 (process_args): Adjust.
12783 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
12784 <GCOV_TAG_BLOCKS>: Read flags.
12785 <GCOV_TAG_LINES>: Adjust.
12786 (read_count_file): Process SUMMARY tags.
12787 (solve_flow_graph): Set is_unconditional and clear is_call_site
12788 appropriately.
12789 (add_branch_counts): Adjust. Don't count unconditional branches.
12790 (add_line_counts): Deal with all-blocks mode, accumulate block
12791 coverage.
12792 (accumulate_line_counts): Adjust, generate local spanning tree for
12793 all-blocks mode.
12794 (output_lines): Adjust.
12795 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
12796 * doc/gcov.texi: Document.
12797
12798 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12799
12800 * config/h8300/h8300.md: Organize peephole2's that transform
12801 (compare (reg:HI) (const_int)).
12802
12803 2003-03-31 Roger Sayle <roger@eyesopen.com>
12804
12805 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
12806 (init_emit_once): Initialize dconstm2 and dconsthalf here.
12807 * real.h (dconstm2, dconsthalf): Add prototypes here.
12808 * real.c (real_sqrt): Use dconsthalf rather than local copy.
12809 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
12810 exp(x/2.0) remember to fold the division if possible.
12811 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
12812 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
12813 1.0/(x*x) and pow(x,0.5) as sqrt(x).
12814
12815 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12816
12817 * config/h8300/h8300.md (a new peephole2): New.
12818
12819 2003-03-31 Richard Sandiford <rsandifo@redhat.com>
12820
12821 * gcse.c (simple_mem): Return false for floating-point accesses
12822 if flag_float_store is true.
12823
12824 2003-03-30 Roger Sayle <roger@eyesopen.com>
12825
12826 * gcse.c (gcse_constant_p): New function to identify constants
12827 suitable for constant propagation, including COMPARE with two
12828 integer constant arguments.
12829 (hash_scan_set): Use gcse_constant_p.
12830 (find_avail_set): Likewise.
12831 (cprop_insn): Likewise.
12832 (do_local_cprop): Likewise.
12833 (find_implicit_sets): Likewise.
12834 (find_bypass_set): Likewise.
12835
12836 2003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
12837
12838 * except.h: Remove definition of varray_type.
12839
12840 2003-03-30 Richard Henderson <rth@redhat.com>
12841
12842 PR opt/10011, opt/10252:
12843 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
12844 before post-gcse cse pass.
12845
12846 2003-03-30 Roger Sayle <roger@eyesopen.com>
12847
12848 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
12849
12850 2003-03-30 DJ Delorie <dj@redhat.com>
12851
12852 * profile.c (instrument_edges): Make sure any newly created
12853 jump insns have correct jump label info.
12854
12855 2003-03-30 Richard Henderson <rth@redhat.com>
12856
12857 * cfgbuild.c (make_edges): Use tablejump_p.
12858 * cfgcleanup.c (label_is_jump_target_p): Likewise.
12859 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
12860 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
12861 (try_redirect_by_replacing_jump): Likewise.
12862 (redirect_edge_and_branch): Likewise.
12863 * cse.c (fold_rtx): Likewise.
12864 * jump.c (delete_related_insns): Likewise.
12865 * rtlanal.c (get_jump_table_offset): Likewise.
12866 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
12867
12868 2003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
12869
12870 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
12871 (STRICT2_WARN): Likewise.
12872
12873 2003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12874
12875 PR other/6955
12876 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
12877 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
12878
12879 2003-03-30 Richard Henderson <rth@redhat.com>
12880
12881 PR c/10083
12882 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
12883 don't zero_extend const inputs.
12884
12885 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
12886
12887 * reload1.c (reload_cse_move2add): Fix a comment typo.
12888
12889 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
12890
12891 * config/h8300/h8300.md (a peephole2): Remove useless code.
12892
12893 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
12894
12895 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
12896 (*iorsi3_and_lshiftrt): Likewise.
12897 (*iorsi3_zero_extract): Likewise.
12898
12899 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
12900
12901 * config/h8300/h8300.md (*insv_si_8_8): New.
12902 (*insv_si_8_8_lshiftrt_8): Likewise.
12903 (a peephole2): Likewise.
12904
12905 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12906
12907 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
12908 Uniformly use bugfix instead of bug fix.
12909
12910 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12911
12912 PR doc/895
12913 * ONEWS: Remove those items that already appear in the EGCS
12914 release notes on our web pages.
12915
12916 2003-03-29 Alan Modra <amodra@bigpond.net.au>
12917
12918 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
12919 TARGET_HARD_FLOAT. Reformat.
12920 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
12921
12922 2003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
12923
12924 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
12925 work on Solaris 2.5.1.
12926
12927 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>
12928
12929 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
12930 section of h8300.md
12931 (*addsi3_and_nor_r_1): Likewise.
12932
12933 2003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
12934
12935 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
12936 set up before any trapping memory access if flag_non_call_exceptions.
12937
12938 2003-03-29 Alan Modra <amodra@bigpond.net.au>
12939
12940 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
12941
12942 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
12943
12944 2003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
12945
12946 * configure.in: Clarify comments.
12947 * configure: Regenerate.
12948
12949 2003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
12950
12951 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
12952 label even if pool empty when generating PIC.
12953 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
12954
12955 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
12956 Dhananjay Deshpande <dhananjayd@kpit.com>
12957
12958 PR target/10205
12959 * config/h8300/h8300.c (h8300_initial_elimination_offset):
12960 Correct the offset computation when TARGET_NORMAL.
12961
12962 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
12963
12964 PR target/10067
12965 * config/sparc/sparc.md (jump pattern): Correct order
12966 when issuing the annuling marker.
12967
12968 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
12969
12970 PR c/8281
12971 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
12972 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
12973
12974 2003-03-28 Alan Modra <amodra@bigpond.net.au>
12975
12976 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
12977 globalize_label.
12978 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12979 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12980 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12981 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12982 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12983 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12984 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
12985
12986 2003-03-28 Alan Modra <amodra@bigpond.net.au>
12987
12988 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
12989 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
12990 notes after hoisting.
12991 (load_mems): Adjust replace_loop_mems call.
12992
12993 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
12994 Richard Henderson <rth@redhat.com>
12995
12996 PR target/10114 and PR target/10084
12997 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
12998
12999 2003-03-27 Richard Henderson <rth@redhat.com>
13000
13001 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
13002
13003 2003-03-27 Roger Sayle <roger@eyesopen.com>
13004
13005 * fold-const.c (fold_inf_compare): New function to simplify FP
13006 comparisons against +Infinity or -Infinity.
13007 (fold): Optimize floating point comparisons against Infs and NaNs.
13008
13009 2003-03-27 Janis Johnson <janis187@us.ibm.com>
13010
13011 * libgcov.c: Provide only dummy functions if libc is not available.
13012
13013 2003-03-27 Richard Henderson <rth@redhat.com>
13014
13015 * real.h (struct real_value): Add signalling.
13016 (EXP_BITS): Decrement.
13017 * real.c (get_canonical_qnan): Don't set MSB-1.
13018 (get_canonical_snan): Likewise. Set signalling.
13019 (real_identical): Compare signalling.
13020 (round_for_format): Remove force-one-bit on code.
13021 (real_nan): Likewise. Set signalling.
13022 (encode_ieee_single): Add force-one-bit code; honor signalling.
13023 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
13024 (decode_ieee_single): Set signalling.
13025 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
13026
13027 2003-03-27 Olivier Hainque <hainque@act-europe.fr>
13028
13029 PR ada/9953
13030 * ada/Makefile.in (gnatlib configuration for HPUX): Split
13031 the general section for HPUX into specific sections for
13032 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
13033 11 case.
13034
13035 2003-03-27 Glen Nakamura <glen@imodulo.com>
13036
13037 PR opt/10087
13038 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
13039 while incrementing giv.
13040 (record_biv): Check for duplicate biv locations and
13041 set (struct induction *) v->same if found.
13042
13043 2003-03-27 David Mosberger <davidm@hpl.hp.com>
13044
13045 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
13046 v0.9 API change: replace read of UNW_REG_HANDLER with
13047 unw_get_proc_info().
13048 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
13049 with unw_get_proc_info().
13050 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
13051 unw_get_proc_info().
13052
13053 2003-03-27 Vladimir Makarov <vmakarov@redhat.com>
13054
13055 * config/rs6000/8540.md: Use presence_set instead of absence_set.
13056
13057 2003-03-26 Richard Henderson <rth@redhat.com>
13058
13059 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
13060
13061 2003-03-26 Roger Sayle <roger@eyesopen.com>
13062
13063 PR bootstrap/10051, PR bootstrap/10169.
13064 * mips-tfile.c (init_file): Don't provide a static initializer.
13065 (initialize_init_file): Initialize the contents of init_file.
13066 (add_file): Call initialize_init_file if not already initialized.
13067
13068 2003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
13069
13070 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
13071 registers used for global asm variables.
13072 (s390_frame_info, s390_arg_frame_offset): Likewise.
13073 (s390_emit_prologue, s390_emit_epilogue): Likewise.
13074
13075 2003-03-26 Vladimir Makarov <vmakarov@redhat.com>
13076
13077 * config/rs6000/8540.md: New file.
13078
13079 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
13080 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
13081 reservations for imul.
13082
13083 * config/rs6000/rs6000.md: Include 8540.md. Change
13084 delayed_compare onto mult_compare for insns generating
13085 multiplication.
13086 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
13087 New type attribute values.
13088
13089 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
13090 fpsimple instead of fp.
13091 (*divsf3_gpr): Use type vecfdiv instead of fp.
13092 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
13093 instead of vecfloat.
13094 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
13095 (spe_brinc): Use type brinc instead of veccomplex.
13096 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
13097 veccomplex.
13098 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
13099 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
13100 *movv2sf_internal): Define type attribute values for all
13101 alternatives.
13102 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
13103 of fpcompare.
13104 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
13105 instead of fpcompare.
13106
13107 2003-03-26 David Edelsohn <edelsohn@gnu.org>
13108
13109 * config/rs6000/power4.md: Allow delay between dispatch and
13110 function units for simple instructions. Correct store units.
13111 Allow branch to occupy as many dispatch slots as necessary.
13112
13113 2003-03-26 Jakub Jelinek <jakub@redhat.com>
13114
13115 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
13116 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
13117 zero extend old to it.
13118 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
13119 operand.
13120
13121 2003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
13122
13123 PR target/7784
13124 * reload.c (find_reloads_address): Handle
13125 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
13126 all base registers.
13127
13128 2003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
13129
13130 PR other/10203
13131 * version.c: Reference the GCC web site in the URL.
13132
13133 2003-03-26 Alan Modra <amodra@bigpond.net.au>
13134
13135 * c-incpath.c (add_standard_paths): Add both "translated" and
13136 non-translated header paths.
13137
13138 2003-03-25 Loren James Rittle <ljrittle@acm.org>
13139
13140 * doc/install.texi (*-*-freebsd*): Update with known status.
13141
13142 2003-03-21 Jason Merrill <jason@redhat.com>
13143
13144 PR optimization/10171
13145 * unroll.c (unroll_loop): Don't delete the jump at the end unless
13146 we also delete a jump at the beginning.
13147
13148 2003-03-25 Stephane Carrez <stcarrez@nerim.fr>
13149
13150 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
13151 contributor.
13152
13153 Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
13154
13155 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
13156 constants are not expensive.
13157
13158 Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
13159
13160 PR opt/10056
13161 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
13162 jump jumping to the next instruction.
13163 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13164
13165 2003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13166
13167 * doc/passes.texi (Passes): Properly document that we do not
13168 perform jump2 any longer; remove command-line option -dJ.
13169
13170 2003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
13171
13172 PR optimization/8746
13173 * config/i386/i386.md (and promoting splitters): Disable HImode to
13174 SImode promoting when the sign bit matters and is not preserved, or
13175 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
13176 for size.
13177
13178 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
13179
13180 * config/h8300/h8300.md (a peephole2): Extend to support loads
13181 in QImode and HImode.
13182
13183 2003-03-24 Stephane Carrez <stcarrez@nerim.fr>
13184
13185 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
13186 _return_far
13187 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
13188 (MULTILIB_EXCEPTIONS): Likewise.
13189 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
13190 by calling some board support routine.
13191 ("call_value"): Likewise.
13192 ("*return_void"): Likewise for return.
13193 ("*return_16bit"): Likewise.
13194 ("*return_32bit"): Likewise.
13195 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
13196 for 68HC11 too.
13197 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
13198 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
13199 -mlong-calls for 68HC11.
13200 * config/m68hc11/larith.asm (declare_near): New macro.
13201 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
13202 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
13203 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
13204 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
13205 (__mulhi32): Likewise.
13206 (ret): Update macro for 68HC11.
13207 (__far_trampoline): Implement for 68HC11.
13208 (__call_a16, __call_a32, __return_void, __return_16): New support
13209 routines for 68HC11 memory bank switching calling support.
13210 (__return_32): Likewise.
13211
13212 2003-03-24 Neil Booth <neil@daikokuya.co.uk>
13213
13214 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
13215
13216 2003-03-24 Janis Johnson <janis187@us.ibm.com>
13217
13218 * doc/install.texi (Testing): Mention test result links from build
13219 status pages.
13220
13221 2003-03-24 Mark Mitchell <mark@codesourcery.com>
13222
13223 * function.c (put_var_into_stack): Change bool parameter to int.
13224 (gen_mem_addressof): Likewise.
13225 * rtl.h (gen_mem_addressof): Likewise.
13226 * tree.h (put_var_into_stack): Likewise.
13227 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
13228 gen_mem_addressof or put_var_into_stack.
13229 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
13230 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
13231
13232 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
13233
13234 * config/h8300/h8300.md (a peephole2): New.
13235
13236 2003-03-24 Jakub Jelinek <jakub@redhat.com>
13237
13238 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
13239
13240 2003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13241
13242 * doc/contrib.texi (Contributors): Update Janis Johnson.
13243
13244 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
13245
13246 PR target/10072
13247 * combine.c (simplify_if_then_else): Check that the mode
13248 has MODE_INT class before applying the (OP Z (mult COND C2))
13249 transformation.
13250
13251 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
13252
13253 PR optimization/9414
13254 * config/sparc/sparc.md (widening peepholes): Use
13255 widen_memory_access instead of change_address.
13256
13257 2003-03-23 Mark Mitchell <mark@codesourcery.com>
13258
13259 PR c++/7086
13260 * c-typeck.c (c_mark_addressable): Adjust calls to
13261 put_var_into_stack.
13262 * expr.c (expand_expr): Likewise.
13263 * function.c (put_var_into_stack): Add rescan parameter. Do not
13264 call fixup_var_refs when rescan is false.
13265 (gen_mem_addressof): Likewise.
13266 (assign_parms): Adjust calls to put_var_into_stack.
13267 (setjmp_protect): Likewise.
13268 (setjmp_protect_args): Likewise.
13269 * rtl.h (gen_mem_addressof): Change prototype.
13270 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
13271 * tree.h (put_var_into_stack): Change prototype.
13272
13273 2003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
13274
13275 PR middle-end/9967
13276 * builtins.c (expand_builtin_fputs): When optimizing for size,
13277 don't transform fputs into fwrite.
13278
13279 2003-03-23 Glen Nakamura <glen@imodulo.com>
13280
13281 PR c/8224
13282 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
13283 when signedness changes for division or modulus.
13284
13285 2003-03-24 Alan Modra <amodra@bigpond.net.au>
13286
13287 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
13288 globalize_label.
13289
13290 2003-03-23 Roger Sayle <roger@eyesopen.com>
13291
13292 PR c/10178
13293 * stmt.c (expand_end_case_type): Check for overflow in range when
13294 determining whether to use a bit-test implementation.
13295
13296 2003-03-23 Richard Henderson <rth@redhat.com>
13297
13298 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
13299 before flow2.
13300 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
13301
13302 2003-03-23 Richard Henderson <rth@redhat.com>
13303
13304 PR opt/10116
13305 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
13306 from then_bb or else_bb after flow2.
13307
13308 2003-03-23 Zack Weinberg <zack@codesourcery.com>
13309
13310 * configure.in: Check whether it is necessary to link against
13311 libm to use ldexp.
13312 * configure: Regenerate.
13313 * Makefile.in: Add LDEXP_LIB substitution variable.
13314
13315 2003-03-23 Kazu Hirata <kazu@cs.umass.edu>
13316
13317 * config/h8300/h8300.md: Fix comment typos.
13318
13319 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13320
13321 * pa.c (output_cbranch): Fix typo in comment.
13322
13323 2003-03-22 Richard Henderson <rth@redhat.com>
13324
13325 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
13326 after reload.
13327
13328 2003-03-22 DJ Delorie <dj at redhat dot com>,
13329 Bruce Korb <bkorb at gnu dot org>
13330
13331 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
13332 buggy Solaris 2.6 mutex/cond initializers.
13333 (solaris_mutex_init): Rename to solaris_mutex_init_2.
13334 * fixinc/fixincl.x: Regenerate.
13335 * fixinc/tests/base/pthread.h: Update.
13336 * fixinc/fixincl.c(initialize): be explicit about the default case
13337 and indicate verbose level when being very, very verbose.
13338 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
13339
13340 2003-03-22 Andreas Jaeger <aj@suse.de>
13341
13342 * config/i386/i386.c (ix86_init_machine_status): Return value.
13343
13344 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13345
13346 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
13347 conditional branch to the following instruction. Use next_real_insn
13348 instead of next_active_insn.
13349 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
13350 instead of next_active_insn.
13351
13352 2003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
13353
13354 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
13355 instead of 'm' constraint in forced-split alternatives.
13356 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
13357 VALIDATE_ADDRESS parameter to operand_subword.
13358
13359 2003-03-22 Kazu Hirata <kazu@cs.umass.edu>
13360
13361 * config/h8300/h8300.c (notice_update_cc): Correctly handle
13362 the case where the set destination is STRICT_LOW_PART.
13363
13364 2003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
13365
13366 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
13367 c30 instead of a c40 processor.
13368
13369 2003-03-22 Alan Modra <amodra@bigpond.net.au>
13370
13371 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
13372
13373 2003-03-21 Zack Weinberg <zack@codesourcery.com>
13374
13375 * c-common.c: Include intl.h.
13376 (shadow_warning): Rewrite to allow better diagnostic translations.
13377 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
13378 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
13379 use it throughout.
13380 * Makefile.in (c-common.o): Add intl.h.
13381
13382 2003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
13383
13384 * config.gcc: Remove 'float_format'.
13385
13386 * fixproto: Define NULL and size_t in generated stdlib.h and
13387 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
13388 Rearrange file generation loop for readability. Generate time.h,
13389 string.h if missing.
13390 * tsystem.h: Include <string.h>, <time.h> unconditionally.
13391 * config.gcc: Blow away POSIX defines.
13392
13393 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
13394
13395 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
13396
13397 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
13398
13399 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
13400 writing .interrupt command.
13401 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
13402 if it's a far or near function.
13403 ("call_value"): Likewise.
13404 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
13405 near attributes.
13406 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
13407 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
13408 (m68hc11_initial_elimination_offset): Set current_function_far
13409 according to attributes.
13410 (expand_prologue): Likewise.
13411 (trap_handler_symbol): New global to keep track of trap handlers.
13412 (m68hc11_encode_section_info): Mark symbol as far if needed; set
13413 trap symbol.
13414 (m68hc11_is_far_symbol): New function.
13415 (m68hc11_is_trap_symbol): New function.
13416 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
13417 (m68hc11_is_trap_symbol): Declare.
13418
13419 2003-03-21 Jan Hubicka <jh@suse.cz>
13420
13421 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
13422 only when amount of saved regs changed.
13423 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
13424 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
13425
13426 2003-03-21 Jan Hubicka <jh@suse.cz>
13427
13428 PR inline-asm/7916
13429 * function.c (instantiate_virtual_regs_lossage): New function.
13430 (instantiate_virtual_regs_1): Use it.
13431 (instantiate_virtual_regs): Do not continue in substition when insn has
13432 been deleted.
13433
13434 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
13435
13436 * combine.c (make_field_assignment): Fix a warning.
13437
13438 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
13439
13440 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
13441
13442 2003-03-21 Dale Johannesen <dalej@apple.com>
13443
13444 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
13445 priority for R2 on Darwin.
13446 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
13447
13448 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
13449
13450 * combine.c (make_field_assignment): Remove unnecessary AND
13451 when storing into zero_extract.
13452
13453 2003-03-21 Zack Weinberg <zack@codesourcery.com>
13454
13455 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
13456 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
13457 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
13458 in comment.
13459
13460 2003-03-21 DJ Delorie <dj@redhat.com>
13461
13462 * optabs.c (init_integral_libfuncs): Make sure we init at least up
13463 to "long long" size words.
13464
13465 2003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
13466
13467 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
13468 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
13469 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
13470
13471 2003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13472
13473 PR doc-bug/9813
13474 * doc/extend.texi: Move misplaced paragraph about underscores in
13475 variables in macros.
13476
13477 2003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
13478 Richard Henderson <rth@redhat.com>
13479
13480 PR optimization/8366
13481 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
13482 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
13483 PIC+SYMBOLIC_CONST in other modes than Pmode.
13484 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
13485 the form PIC+SYMBOLIC_CONST as mode dependent.
13486
13487 2003-03-21 DJ Delorie <dj@redhat.com>
13488
13489 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
13490 sure we always emit at least one insn.
13491
13492 2003-03-21 Christopher Faylor <cgf@redhat.com>
13493
13494 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
13495 stub t-cygming. Use common target header cygming.h. Add extra
13496 c_target_obj and cxx_target_obj file. Default cygwin to posix
13497 threading. Enforce i386 as float format.
13498 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
13499 Remove cygwin.h as target header. Use common target header
13500 cygming.h Enforce i386 as float format. Correct typo.
13501 * config/i386/cygming.h: New file, containing definitions
13502 common to mingw32 and cygwin.
13503 * config/i386/cygwin.h: Remove definitions common to cygwin and
13504 mingw. Simplify special spec logic. Define "wrappers" around
13505 certain include path defines to accommodate -mno-cygwin.
13506 Remove some #if 0'ed code.
13507 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
13508 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
13509 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
13510 * config/i386/mingw32.h: Remove definitions common to cygwin and
13511 mingw.
13512 (EXTRA_OS_CPP_BUILTINS): Adjust.
13513 (TARGET_VERSION): Define.
13514 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
13515 mingw32.h definitions.
13516 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
13517 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
13518 Add compilation rules for cygwin1.o cygwin2.o.
13519 * config/i386/cygwin1.c: New file.
13520 * config/i386/cygwin2.c: New file.
13521 * config/i386/t-cygming: New makefile stub.
13522
13523 2003-03-20 Richard Henderson <rth@redhat.com>
13524
13525 * fold-const.c (extract_muldiv_1): Revert changing order of
13526 operands in case MULT_EXPR of 2003-02-16 patch.
13527
13528 2003-03-20 Daniel Berlin <dberlin@dberlin.org>
13529 Merge changes from new-regalloc-branch
13530
13531 From Michael Matz <matz@suse.de>
13532 * df.c (df_ref_record_1): Move init of loc to safe point.
13533 Only recurse on interesting things in parallels.
13534 Handle CLASS_CANNOT_CHANGE_MODE smarter.
13535 (df_uses_record): Ditto.
13536
13537 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
13538 it's already okay to use memory operands in (IE doesn't require
13539 adding another insn or anything).
13540
13541 2003-03-20 Richard Henderson <rth@redhat.com>
13542
13543 PR middle-end/6348
13544 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
13545 different from word_mode.
13546
13547 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13548
13549 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
13550 source operand to those that can be extracted with bld.
13551
13552 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
13553
13554 PR 10066
13555 * arm.md (UNSPEC_PIC_BASE): New constant.
13556 (pic_add_dot_plus_four): Wrap with unspec.
13557 (pic_add_dot_plus_eight): Likewise.
13558
13559 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13560
13561 * config/h8300/h8300.md (*insv_si_1_n): New.
13562 (*insv_si_1_n_lshiftrt): Likewise.
13563
13564 2003-03-20 Roger Sayle <roger@eyesopen.com>
13565
13566 * fold-const.c (fold_mathfn_compare): New function to simplify
13567 comparisons against built-in math functions. Fold comparisons
13568 of sqrt against constants.
13569 (fold): Call fold_mathfn_compare when appropriate.
13570
13571 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
13572
13573 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
13574 information.
13575
13576 2003-03-20 Per Bothner <pbothner@apple.com>
13577
13578 Various cleanups to help compile server.
13579
13580 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
13581 and pass that to _cpp_init_hashtable.
13582 (cpp_read_main_file): Drop hash_table* argument; don't call
13583 _cpp_init_hashtable.
13584 * cpplib.h: Update declarations to match.
13585 * c-opts.c (c_common_init_options): Pass ident_hash to
13586 cpp_create_reader.
13587 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
13588 * fix-header.c (read_scan_file): Likewise pass NULL table to
13589 cpp_create_reader rather than cpp_read_main_file.
13590
13591 * cppfiles.c (cpp_rename_file): Generalized and renamed
13592 to cpp_change_file.
13593 * cpplib.h: Update declaration to match.
13594 * c-opts.c (push_command_line_line, finish_options): Change
13595 cpp_rename_file calls to cpp_change_file.
13596
13597 * line-map.c (add_line_map): Allow leaving the outermost file.
13598 Allowing entering an outermost-file after the initial time.
13599
13600 * toplev.c (pop_srcloc): Allow popping from initial file.
13601
13602 2003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
13603
13604 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
13605
13606 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13607
13608 * config/h8300/h8300.md (a peephole2): New.
13609
13610 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13611
13612 * config/h8300/h8300.md (*addsi3_and_r_1): New.
13613 (*addsi3_and_not_r_1): Likewise.
13614
13615 2003-03-19 Loren James Rittle <ljrittle@acm.org>
13616
13617 * Makefile.in (STRICT2_WARN): Add @WERROR@.
13618 (GCC_WARN_CFLAGS): Remove $(WERROR).
13619 (fixinc.sh-warn): New.
13620 * ada/Make-lang.in (ada-warn): Add $(WERROR).
13621 * cp/Make-lang.in (cp-warn): Add $(WERROR).
13622 * f/Make-lang.in (f-warn): Add $(WERROR).
13623 * java/Make-lang.in (java-warn): Add $(WERROR).
13624 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
13625
13626 2003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
13627
13628 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
13629 langhooks-def.h (lhd_tree_dump_dump_tree),
13630 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
13631 Change return type from 'int' to 'bool'. Replace 0 and 1 with
13632 true and false in return statements.
13633
13634 2003-03-19 Kevin Buettner <kevinb@redhat.com>
13635
13636 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
13637 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
13638 DWARF_INITIAL_LENGTH_SIZE.
13639 (output_compilation_unit_header, output_pubnames, output_aranges)
13640 (output_line_info): Output 0xffffffff escape value for 64-bit
13641 DWARF extension.
13642 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
13643
13644 2003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
13645
13646 * config/s390/s390.c (s390_preferred_reload_class): Do not
13647 force constants to the pool unless necessary.
13648 (s390_decompose_address): Prefer to use pointer as base,
13649 not index register.
13650 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
13651 Q alternative.
13652 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
13653 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
13654 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
13655 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
13656 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
13657
13658 2003-03-19 Jan Hubicka <jh@suse.cz>
13659
13660 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
13661 * i386.c (use_fast_prologue_epilogue): Remove.
13662 (ix86_frame): New field save_regs-using_mov;
13663 (ix86_compute_frame_layout): Decide on fast prologues;
13664 allocate saved registers in red zone.
13665 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
13666
13667 2003-03-19 Nick Clifton <nickc@redhat.com>
13668
13669 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
13670
13671 2003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13672
13673 PR 10062
13674 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
13675 * pa-protos.h (output_lbranch): New prototype.
13676 * pa.c (compute_frame_size): Change size of the frame marker on the
13677 64-bit ports to 48 bytes.
13678 (pa_output_function_prologue): Document why SAVE_SP is set.
13679 (hppa_expand_prologue): Save previous stack pointer into frame marker
13680 on targets which use the hpux unwind library.
13681 (output_cbranch): Use output_lbranch.
13682 (output_lbranch): New function to output long unconditional branches.
13683 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
13684 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
13685 64-bit ports.
13686 * pa.md (jump): Use output_lbranch.
13687 (allocate_stack): New expander for dynamic stack allocation.
13688
13689 2003-03-19 Alan Modra <amodra@bigpond.net.au>
13690
13691 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
13692 when debugging on XCOFF targets. Delete "abi" temp.
13693
13694 PR target/10073
13695 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
13696
13697 2003-03-18 Jakub Jelinek <jakub@redhat.com>
13698
13699 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
13700 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
13701 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13702
13703 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
13704 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
13705 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13706
13707 2003-03-18 Geoffrey Keating <geoffk@apple.com>
13708
13709 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
13710 the result of machopic_function_base_name.
13711 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
13712 string rather than a static array.
13713
13714 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
13715
13716 * gengtype.c: Include rtl.h.
13717 (enum rtx_code): Don't define.
13718 (rtx_format): Make declaration match rtl.h.
13719 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
13720 users.
13721 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
13722 * Makefile.in (gengtype.o): Update dependencies.
13723
13724 2003-03-18 Andreas Schwab <schwab@suse.de>
13725
13726 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
13727 martin@blom.org.
13728
13729 2003-03-18 Geoffrey Keating <geoffk@apple.com>
13730
13731 * function.c (next_block_index): Mark with GTY.
13732
13733 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
13734
13735 2003-03-18 Richard Henderson <rth@redhat.com>
13736
13737 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
13738 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
13739 until after reload.
13740
13741 2003-03-18 Richard Henderson <rth@redhat.com>
13742
13743 * builtins.c (expand_builtin_unop): New target_mode operand;
13744 use it to convert the result to the correct mode.
13745 (expand_builtin): Update all callers.
13746
13747 2003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
13748
13749 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
13750
13751 2003-03-18 Jan Hubicka <jh@suse.cz>
13752
13753 * i386.md: Fix previous commit that mistakely applied the patch
13754 twice.
13755
13756 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
13757 canonicalized.
13758 (memrefs_conflict_p): Likewise.
13759 (addr_side_effect_eval): Canonicalize the constructed address.
13760
13761 2003-03-18 Jan Hubicka <jh@suse.cz>
13762
13763 * i386.md (cvtts?2si peep2): New.
13764
13765 2003-03-18 Kazu Hirata <kazu@cs.umass.edu>
13766
13767 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
13768
13769 2003-03-18 Andreas Schwab <schwab@suse.de>
13770
13771 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
13772 for format.
13773
13774 2003-03-17 Jason Merrill <jason@redhat.com>
13775
13776 PR c++/10091
13777 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
13778 an unaligned member of TREE_ADDRESSABLE type.
13779
13780 2003-03-18 Alan Modra <amodra@bigpond.net.au>
13781
13782 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
13783 (TARGET_PROFILE_KERNEL): Define.
13784 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
13785 (PROFILE_BEFORE_PROLOGUE): Don't define.
13786 (PROFILE_KERNEL): Remove hacks.
13787 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
13788 (rs6000_stack_info): No need to save lr if just for profiling when
13789 TARGET_PROFILE_KERNEL.
13790 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
13791 (output_function_profiler): Localize label generation. Emit code
13792 for kernel profiling.
13793
13794 2003-03-17 Kazu Hirata <kazu@cs.umass.edu>
13795
13796 * config/h8300/h8300-protos.h: Add a prototype for
13797 byte_accesses_mergeable_p.
13798 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
13799 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
13800 (a splitter): Likewise.
13801 (*iorsi3_ashift_16_ashift_24): Likewise.
13802 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
13803
13804 2003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13805
13806 * dwarf2asm.h: Delete obsolete comment.
13807 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
13808 dw2_asm_output_pcrel, dw2_asm_output_addr,
13809 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
13810 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
13811 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
13812 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
13813
13814 2003-03-17 Zack Weinberg <zack@codesourcery.com>
13815
13816 * c-tree.h (struct lang_identifier): Remove error_locus field.
13817 (IDENTIFIER_ERROR_LOCUS): Kill.
13818 (record_function_scope_shadow): New prototype.
13819 * c-typeck.c (build_external_ref): Don't complain if
13820 decl is error_mark_node. When not at file scope, bind the
13821 decl's local value to error_mark_node to suppress further
13822 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
13823
13824 * c-decl.c (get_function_binding_level): New static function.
13825 (record_function_scope_shadow): New exported function.
13826 (c_make_fname_decl): Use get_function_binding_level.
13827
13828 2003-03-17 Steve Ellcey <sje@cup.hp.com>
13829
13830 * stmt.c (tail_recursion_args): Call promote_mode to set
13831 unsignedp flag correctly before calling convert_move.
13832
13833 2003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13834
13835 * loop-unroll.c (decide_peel_completely,
13836 decide_unroll_constant_iterations, decide_unroll_stupid,
13837 decide_unroll_runtime_iterations, decide_peel_simple): Set
13838 loop->has_desc.
13839
13840 2003-03-17 Jan Hubicka <jh@suse.cz>
13841
13842 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
13843
13844 2003-03-17 Olivier Hainque <hainque@act-europe.fr>
13845
13846 * function.c (assign_parms): For a struct value address passed as
13847 first argument, delay the function's result RTL setup code until
13848 after the emission of parameter conversions.
13849
13850 2003-03-17 Dave Love <fx@gnu.org>
13851 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13852
13853 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
13854 __arch64__ to match Compaq cc.
13855
13856 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
13857
13858 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
13859 (c_common_init): Set EBCDIC in cpp options.
13860 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
13861 not conditional compilation.
13862 * cpplib.h (struct cpp_options): New entry EBCDIC.
13863
13864 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
13865
13866 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
13867
13868 2003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13869
13870 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
13871 argument to 0 for redirect_jump.
13872
13873 2003-03-16 Mark Mitchell <mark@codesourcery.com>
13874
13875 PR c++/8805
13876 * except.c (eh_region_u_cleanup): Add prev_try.
13877 (expand_eh_region_end_cleanup): Set it.
13878 (reachable_handlers): Use it to skip over cleanup blocks.
13879
13880 2003-03-17 Andreas Jaeger <aj@suse.de>
13881
13882 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
13883
13884 2003-03-17 Alan Modra <amodra@bigpond.net.au>
13885
13886 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
13887 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
13888 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
13889 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
13890
13891 2003-03-16 Richard Henderson <rth@redhat.com>
13892
13893 * simplify-rtx (simplify_binary_operation): Don't abort for
13894 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
13895
13896 2003-03-16 Richard Henderson <rth@redhat.com>
13897
13898 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
13899 optimize_size as well.
13900
13901 2003-03-16 Stephane Carrez <stcarrez@nerim.fr>
13902
13903 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
13904 for D register to specify the low part of it, aka B.
13905 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
13906 the register if we are loading 1 or -1 to it; avoid using temp
13907 register when moving X/Y to Y/X.
13908 (m68hc11_gen_movqi): Likewise.
13909 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
13910
13911 2003-03-14 Mark Mitchell <mark@codesourcery.com>
13912
13913 PR optimization/9016
13914 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
13915 into the constant pool.
13916
13917 2003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
13918
13919 PR target/9164
13920 * tree.c (get_narrower): For extensions with unchanged bit number,
13921 return the unsignedness of the outer mode.
13922
13923 2003-03-16 Roger Sayle <roger@eyesopen.com>
13924
13925 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
13926 to avoid "may be used uninitialized" warning on ia64-hpux.
13927 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
13928
13929 2003-03-16 Andreas Jaeger <aj@suse.de>
13930
13931 * configure.in: Improve check for memcheck.h.
13932 * configure: Regenerated.
13933
13934 2003-03-16 Neil Booth <neil@daikokuya.co.uk>
13935
13936 * doc/cppopts.texi: Remove documentation of -A-.
13937
13938 2003-03-15 Zack Weinberg <zack@codesourcery.com>
13939
13940 * doc/libgcc.texi: Remove @tie.
13941
13942 2003-03-15 Josef Zlomek <zlomekj@suse.cz>
13943
13944 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
13945 (rtx_pair): Added new element update_label_nuses, renamed to
13946 replace_label_data.
13947 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
13948 replace_label_data instead of rtx_pair.
13949 * loop.c (load_mems): Likewise.
13950 * rtlanal.c (replace_label): Replace label in pool constants and in
13951 INSN_LIST (in REG_LABEL note).
13952 (subrtx_p): Renamed to rtx_referenced_p.
13953 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
13954 LABEL_REF with CODE_LABEL, traverse constants from pool.
13955
13956 2003-03-15 Aldy Hernandez <aldyh@redhat.com>
13957 Zack Weinberg <zack@codesourcery.com>
13958
13959 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
13960 * doc/libgcc.texi: New file.
13961 * doc/interface.texi: Delete paragraph about libgcc interface.
13962 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
13963
13964 2003-03-15 Jason Merrill <jason@redhat.com>
13965
13966 PR debug/9039
13967 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
13968
13969 PR debug/6387
13970 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
13971 function DIEs at toplevel.
13972 (decls_for_scope): At -g1, don't descend into subblocks.
13973
13974 2003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
13975
13976 * varasm.c (struct rtx_const): Change type of un.addr member
13977 to struct holding an additional 'symbol' member.
13978 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
13979 with equal string addresses as equal.
13980 (simplify_subtraction): Adapt to struct rtx_const change.
13981
13982 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
13983
13984 * fix-header.c (read_scan_file): Read main file before handling -D.
13985
13986 2003-03-15 Roger Sayle <roger@eyesopen.com>
13987
13988 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
13989 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
13990 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
13991 (find_sub_basic_blocks): Likewise.
13992 * cgraphunit.c (cgraph_expand_functions): Likewise.
13993 * dwarf2out.c (prune_unused_types): Likewise.
13994 * expr.c (store_field): Likewise.
13995 * genextract.c (print_path): Likewise.
13996 * haifa-sched.c (schedule_insn): Likewise.
13997 * lcm.c (compute_antinout_edge): Likewise.
13998 * loop-unroll.c (decide_peel_once_rolling): Likewise.
13999 * ra-colorize.c (ra_colorize_free_all): Likewise.
14000 * ra-debug.c (dump_igraph): Likewise.
14001 (debug_hard_reg_set): Likewise.
14002 * reg-stack.c (reg_to_stack): Likewise.
14003 * rtlanal.c (refers_to_regno_p): Likewise.
14004 * tracer.c (layout_superblocks): Likewise.
14005
14006 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
14007
14008 * fix-header.c (read_scan_file): Fix thinko.
14009
14010 2003-03-15 Glen Nakamura <glen@imodulo.com>
14011
14012 * reload1.c (choose_reload_regs): Use && instead of ||
14013 with REG_CANNOT_CHANGE_MODE_P condition.
14014
14015 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
14016
14017 * Makefile.in: Update.
14018 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
14019 * c-lex.c (init_c_lex): Register builtins hook is dead.
14020 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
14021 (c_common_decode_option): Don't call cpp_handle_option.
14022 Handle -A, -D and -U.
14023 (handle_deferred_opts): Simplify.
14024 (finish_options): Define builtins and command line macros.
14025 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
14026 * cppinit.c: Don't include intl.h.
14027 (init_builtins): Rename cpp_init_builtins. No hook to call.
14028 (init_library): Don't need to sort options.
14029 (cpp_create_reader): Don't set pending.
14030 (cpp_destroy): Don't free pending.
14031 (struct pending_option, cl_directive_handler, struct cpp_pending,
14032 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
14033 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
14034 cl_options, cpp_handle_option): Remove.
14035 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
14036 cpp_finish_options): Remove.
14037 (cpp_init_builtins): New.
14038 * fix-header.c (read_scan_file): Update to handle -D. Fix
14039 handling of -I. Replace call to cpp_finish_options.
14040
14041 2003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14042
14043 PR optimization/9387
14044 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
14045 for conditional returns.
14046
14047 2003-03-14 Jason Merrill <jason@redhat.com>
14048
14049 PR optimization/6871
14050 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
14051
14052 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
14053
14054 * c-opts.c (finish_options): New.
14055 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
14056 (missing_arg): Handle OPT_include and OPT_imacros.
14057 (c_common_init, c_common_parse_file): Use finish_options.
14058 (handle_deferred_opts): Update.
14059 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
14060 (cpp_finish_options): Don't handle -imacros here.
14061 (no_fil): Remove.
14062 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
14063
14064 2003-03-14 Jakub Jelinek <jakub@redhat.com>
14065
14066 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
14067 rs6000_maybe_dead if !fromprolog.
14068
14069 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
14070
14071 * Makefile.in: Update.
14072 * c-common.h (fe_file_change, pp_file_change): New.
14073 * c-lex.c (init_c_lex): Don't set cb_file_change.
14074 (c_common_parse_file): Move to c-opts.c.
14075 (cb_file_change): Rename fe_file_change.
14076 * c-opts.c: Include debug.h.
14077 (warn_unused_macros, include_cursor): New.
14078 (push_command_line_include, cb_file_change): New.
14079 (COMMAND_LINE_OPTIONS): Handle -include.
14080 (c_common_decode_option): Use local warn_unused_macros.
14081 Handle OPT_include.
14082 (c_common_post_options): Set file change callback.
14083 (handle_deferred_opts): Skip -include. Don't free the array.
14084 (c_common_init): Call cpp_finish_options here, and push an
14085 initial -include file.
14086 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
14087 (preprocess_file): Don't call cpp_finish_options.
14088 (init_pp_output): Don't set the file change callback.
14089 (pp_file_change): Return if no line commands or no output.
14090 * cpphash.h (next_include_file, first_unused_line): Remove.
14091 * cppinit.c (include_head, include_tail): Remove.
14092 (cpp_destroy): Don't free -include chain.
14093 (cpp_finish_options): Don't handle -include, or worry about
14094 -Wunused-macros.
14095 (_cpp_maybe_push_include_file): Remove.
14096 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
14097 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
14098 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
14099 Used flag is set based upon the state of the warn_unused_macros
14100 flag, and so use of first_unused_line is unnecessary.
14101
14102 2003-03-13 Jan Hubicka <jh@suse.cz>
14103
14104 * cselib.c (clear_table): Do not take argument; always clear just
14105 used slots.
14106 (cselib_process_insn): Update call of clear_table
14107 (cselib_init): Do not call clear_table.
14108 (cselib_finish): Clear table.
14109
14110 * cse.c (count_reg_usage): Do not check side_effects_p.
14111 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
14112 like noop.
14113 (find_reg_equal_equiv_note): Do not use find_reg_note.
14114
14115 2003-03-14 Richard Henderson <rth@redhat.com>
14116
14117 PR target/9700
14118 * config/alpha/alpha.c (alpha_va_start): Account for
14119 current_function_pretend_args_size in the AP offset.
14120
14121 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
14122 (INITIAL_ELIMINATION_OFFSET): Move out of line.
14123 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
14124 (alpha_initial_elimination_offset) New.
14125 * config/alpha/alpha-protos.h: Update.
14126
14127 2003-03-14 Jakub Jelinek <jakub@redhat.com>
14128
14129 * stmt.c (expand_start_case): Call emit_queue ().
14130
14131 2003-03-14 Chris Demetriou <cgd@broadcom.com>
14132 Alexandre Oliva <aoliva@redhat.com>
14133
14134 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
14135 words in new abis.
14136
14137 2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
14138
14139 PR optimization/8396
14140 * tree-inline.c (initialize_inlined_parameters): Make sure the value
14141 of read-only constant arguments is passed with the right type.
14142
14143 2003-03-14 Steven Bosscher <steven@gcc.gnu.org>
14144
14145 * doc/extend.texi (Function Names): Make the example compilable.
14146
14147 2003-03-13 David Edelsohn <edelsohn@gnu.org>
14148
14149 * config/rs6000/rs6000.c (processor_target_table): Really allow
14150 GP optional instructions on Power4.
14151
14152 2003-03-13 Roger Sayle <roger@eyesopen.com>
14153
14154 * calls.c (flags_from_decl_or_type): Factor and remove redundant
14155 conditional tests.
14156
14157 2003-03-13 Mike Stump <mrs@apple.com>
14158
14159 * ggc-page.c (struct page_entry): Remove varray.h header.
14160 Add index_by_depth field.
14161 Remove save_in_use_p field.
14162 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
14163 by_depth_max, by_depth, and save_in_use fields.
14164 (INITIAL_PTE_COUNT): Add.
14165 (save_in_use_p_i): Add.
14166 (save_in_use_p): Add.
14167 (adjust_depth): Add.
14168 (move_ptes_to_front): Add.
14169 (push_depth): Add.
14170 (push_by_depth): Add.
14171 (prefetch): Add.
14172 (free_page): Add support for and use faster data structures.
14173 (ggc_alloc): Likewise.
14174 (init_ggc): Likewise.
14175 (ggc_recalculate_in_use_p): Likewise.
14176 (ggc_pop_context): Likewise.
14177 (clear_marks): Likewise.
14178 (ggc_pch_read): Likewise.
14179 * Makefile.in (ggc-page.o): Remove varray.h.
14180
14181 2003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
14182
14183 * ChangeLog: Rotated last year's entries to...
14184 * ChangeLog.8: New.
14185
14186 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
14187 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
14188 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
14189 config/ia64/ia64-protos.h, config/ia64/ia64.c,
14190 config/ia64/ia64.h, config/ia64/ia64.md,
14191 config/ia64/itanium1.md, config/ia64/itanium2.md,
14192 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
14193 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
14194
14195 2003-03-13 Aldy Hernandez <aldyh@redhat.com>
14196
14197 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
14198 Differentiate endianness.
14199 (s6000_override_options): Use cpu type instead of TARGET_SPE.
14200
14201 2003-03-13 Nick Clifton <nickc@redhat.com>
14202
14203 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
14204 LDM instructions with writeback enabled.
14205 (output_return_instruction): Likewise.
14206
14207 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
14208 (CALL_USED_REGISTERS): Remove definition.
14209 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
14210
14211 2003-03-13 Alan Modra <amodra@bigpond.net.au>
14212
14213 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
14214 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
14215 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
14216 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
14217 (rs6000_legitimize_address): Formatting.
14218 (rs6000_emit_move): Likewise.
14219 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
14220 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
14221 (rs6000_elf_select_section): Comment reason for shlib being
14222 set for ABI_AIX.
14223 (rs6000_elf_unique_section): Likewise.
14224 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
14225 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
14226 as well as flag_pic.
14227 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
14228 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14229 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
14230
14231 2003-03-13 Richard Henderson <rth@redhat.com>
14232
14233 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
14234
14235 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
14236 (ia64_gp_save_reg): Remove.
14237 (struct ia64_frame_info): Move to the beginning of the file;
14238 add reg_save_gp.
14239 (ia64_expand_call): Rearrange for new call patterns.
14240 (ia64_reload_gp): New.
14241 (ia64_split_call): New.
14242 (ia64_compute_frame_size): Allocate reg_save_gp.
14243 (ia64_expand_prologue): Save reg_save_gp.
14244 (ia64_expand_epilogue): Don't restore gp.
14245 (ia64_hard_regno_rename_ok): Remove R4 hack.
14246 (ia64_function_ok_for_sibcall): New.
14247 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
14248 call try_split on sibcall pattern.
14249 * config/ia64/ia64-protos.h: Update.
14250 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
14251 Rename from nopic versions. Confiscate 2nd argument to call as
14252 a marker.
14253 (call_pic, call_value_pic, sibcall_pic): Remove.
14254 (call_gp, call_value_gp, sibcall_gp): New.
14255 (builtin_setjmp_setup): Remove.
14256 (builtin_setjmp_receiver): Call ia64_reload_gp.
14257
14258 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14259
14260 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
14261 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
14262 "GNU CC" with "GCC".
14263
14264 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
14265 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14266 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
14267 GCC, not GNU CC.
14268
14269 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
14270 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
14271
14272 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
14273 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
14274 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
14275 "GNU CC" with "GCC".
14276
14277 * config/v850/lib1funcs.asm, config/v850/rtems.h,
14278 config/v850/v850-c.c, config/v850/v850-protos.h,
14279 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
14280 GCC, not GNU CC.
14281
14282 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
14283 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
14284 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
14285 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
14286 GNU CC.
14287
14288 2003-03-12 Benjamin Kosnik <bkoz@redhat.com>
14289
14290 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
14291
14292 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14293
14294 * fixinc/fixinc.interix: Remove dead code (most of it).
14295 * fixinc/fixinc.dgux: Remove.
14296
14297 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
14298 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
14299
14300 2003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14301
14302 * pa.c (pa_init_builtins): Fix warning.
14303
14304 2003-03-12 Steve Ellcey <sje@cup.hp.com>
14305
14306 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
14307 (ASM_OUTPUT_XDATA_SHORT): Remove.
14308 (ASM_OUTPUT_XDATA_INT): Remove.
14309 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
14310 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
14311 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
14312 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
14313
14314 2003-03-12 Andrew Lewycky <andrew@mxc.ca>
14315
14316 PR c++/7050
14317 * expr.c (store_expr): Don't attempt to store void-typed trees,
14318 just evaluate them for side effects.
14319
14320 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
14321
14322 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
14323 * cppinit.c (push_include): Move with changes to cppfiles.c.
14324 (cpp_read_main_file): Mark named operators here...
14325 (cpp_finish_options): ...not here. Update.
14326 (_cpp_maybe_push_include_file): Update.
14327 * cpplib.h (cpp_push_include, cpp_rename_file): New.
14328
14329 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14330
14331 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
14332 _gcc_COMPUTE_GAS_VERSION.
14333 * configure.in: Use them.
14334 * configure: Regenerate.
14335
14336 2003-03-12 Bob Wilson <bob.wilson@acm.org>
14337
14338 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
14339 to detect carry.
14340 (subdi3): Reorder emitted instructions.
14341
14342 2003-03-12 Andreas Jaeger <aj@suse.de>
14343
14344 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
14345 NETBSD_OS_CPP_BUILTINS_LP64.
14346
14347 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14348
14349 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
14350 Rearrange. Reorganize.
14351 * configure.in: Rearrange.
14352 * configure: Regenerate.
14353
14354 2003-03-12 Andreas Jaeger <aj@suse.de>
14355
14356 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
14357 LP64 targets.
14358
14359 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
14360 _LP64.
14361
14362 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
14363 _LP64 macros here.
14364 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14365
14366 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
14367 NETBSD_OS_CPP_BUILTINS_LP64.
14368 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
14369 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
14370
14371 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
14372
14373 2003-03-12 Jan Hubicka <jh@suse.cz>
14374
14375 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
14376
14377 2003-03-12 Daniel Jacobowitz <drow@mvista.com>
14378
14379 Fix PR target/9797 and PR c/9853.
14380 * stmt.c (expand_decl_init): Call push_temp_slots () and
14381 pop_temp_slots ().
14382
14383 2003-03-12 J"orn Rennecke <joern.rennecke@superh.com>
14384
14385 * sh.c: Include basic-block.h.
14386 (sh_output_mi_thunk, emit_load_ptr): New functions.
14387 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
14388
14389 2003-03-12 Nick Clifton <nickc@redhat.com>
14390
14391 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
14392 (CALL_USED_REGISTERS): Likewise.
14393 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
14394 describing how this value is calculated.
14395
14396 2003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
14397
14398 * configure.in (rlim_t): Define to long if no valid definition
14399 found in sys/resource.h.
14400 * config.in, configure: Regenerate.
14401
14402 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
14403
14404 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
14405 TARGET_OS_CPP_BUILTINS.
14406 * config/mcore/mcore-pe.h: Similarly.
14407 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
14408 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
14409
14410 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14411
14412 PR c/9928
14413 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
14414 only if it is a VAR_DECL.
14415
14416 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14417
14418 PR optimization/9888
14419 * config/i386/i386.md (jcc_1): Fix range.
14420 (jcc_2): Likewise.
14421 (jump): LIkewise.
14422 (doloop_end_internal): Likewise.
14423
14424 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
14425
14426 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
14427 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
14428 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
14429 DLL_IMPORT_EXPORT_PREFIX and "i."
14430 (i386_pe_dllexport_name_p): Here.
14431 (i386_pe_dllimport_name_p): Here.
14432 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
14433 not 9 chars when getting identifier name.
14434 (i386_pe_mark_dllimport): Here.
14435 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
14436 not 9 chars when getting identifier name. Correct comment.
14437 (i386_pe_strip_name_encoding): Here. Add comments for different
14438 cases.
14439 (gen_fastcall_suffix): Break down xmalloc() argument to
14440 components.
14441 (gen_stdcall_suffix): Likewise.
14442 Update copyright year.
14443
14444 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14445
14446 PR optimization/9888
14447 * config/i386/i386.md (movsi_1): Remove special alternatives
14448 for %eax register.
14449 (movsi_1_nointernunit): Likewise.
14450 (movhi_1): Likewise.
14451 * config/i386/i386.c (memory_address_length): Do not use
14452 short displacement when there is no base.
14453 (ix86_attr_length_address_default): Handle LEA instructions.
14454
14455 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
14456
14457 * c-cppbuiltin.c (builtin_define_std): Make non-static.
14458
14459 2003-03-11 Loren James Rittle <ljrittle@acm.org>
14460
14461 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
14462 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
14463 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
14464 * config/freebsd.h (CPP_PREDEFINES): Remove.
14465 (TARGET_OS_CPP_BUILTINS): New.
14466 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
14467 instead of TARGET_OS_CPP_BUILTINS.
14468 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
14469
14470 2003-03-11 Geoffrey Keating <geoffk@apple.com>
14471
14472 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
14473
14474 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
14475
14476 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
14477 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
14478
14479 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
14480
14481 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
14482
14483 * toplev.c (independent_decode_option): Return success for --help,
14484 --target-help and --version.
14485
14486 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
14487
14488 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
14489 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
14490 specified.
14491 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
14492 DRIVER_SELF_SPECS.
14493 (LINK_SPEC): Let endian options affect the linker emulation name.
14494
14495 2003-03-11 J"orn Rennecke <joern.rennecke@superh.com>
14496
14497 * sh.md (reload_inqi): Fix mode for source in second set.
14498
14499 2003-03-11 Jan Hubicka <jh@suse.cz>
14500
14501 * cselib.c (cselib_invalidate_mem_1): Move too ...
14502 (cselib_invalidate_mem): ... here; use new list
14503 (dummy_val, first_containing_mem): New static variables.
14504 (clear_table): Initialize first_containing_mem.
14505 (discard_useless_values): Compact the containing_mem list.
14506 (add_mem_for_addr): Add to the list.
14507 * cselib.h (cselib_val): Add next_containing_mem.
14508
14509 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
14510
14511 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
14512 instructions for e500.
14513
14514 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
14515
14516 * Makefile.in: Update.
14517 * c-cppbuiltin.c: Include tm_p.h.
14518
14519 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
14520
14521 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
14522
14523 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
14524 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
14525 (_Unwind_SetGR): Same.
14526 (_Unwind_GetGRPtr): New.
14527 (_Unwind_SetGRPtr): New.
14528 (uw_update_context_1): Use accesor functions instead of accessing
14529 context->reg[] directly.
14530 (uw_install_context_1): Same.
14531 (execute_cfa_program): Same.
14532 (__frame_state_for): Same.
14533
14534 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
14535 the synthetic register offset.
14536
14537 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
14538
14539 2003-03-11 Hans-Peter Nilsson <hp@axis.com>
14540
14541 * config/cris/cris.md: Remove lingering EGCS reference.
14542 ("*extopqihi_side_biap"): For HI operation, match
14543 cris_additive_operand_extend_operator, not
14544 cris_operand_extend_operator. Adjust condition.
14545 ("*extopqihi_side", "*extopqihi"): Ditto.
14546 ("*extopqisi_side_biap"): Correct operand numbers in condition.
14547 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
14548 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
14549 ("*extophisi_swap"): Ditto.
14550 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
14551 PLUS, not cris_operand_extend_operator. Adjust condition and
14552 output template.
14553 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
14554 * config/cris/cris.h (PREDICATE_CODES): Add
14555 cris_additive_operand_extend_operator.
14556 * config/cris/cris.c (cris_additive_operand_extend_operator):
14557 New predicate.
14558
14559 2003-03-11 Hartmut Penner <hpenner@de.ibm.com>
14560
14561 * df.c (read_modify_subreg_p): Change from static to global.
14562 * df.h (read_modify_subreg_p): Add prototype.
14563 * sched-deps.c (sched_analyze_1): Generate true dependency for
14564 strict_low_part, certain subregs and zero/sign_extract.
14565
14566 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
14567
14568 * Makefile.in: Update.
14569 * c-common.c: Don't include real.h or except.h.
14570 (REGISTER_PREFIX): Remove.
14571 (builtin_define_std, builtin_define_with_value,
14572 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
14573 builtin_define_type_max, builtin_define_type_precision,
14574 builtin_define_float_constants): Move to c-cppbuiltin.c.
14575 (c_stddef_cpp_builtins): New.
14576 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
14577 * c-cppbuiltin.c: New, extracted from c-common.c.
14578 (define__GNUC__): New.
14579 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
14580 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
14581 (cpp_unique_options): Don't support no-gcc.
14582 (do_spec_1): Remove support of version specs.
14583 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
14584 * doc/passes.texi: Update.
14585 * doc/tm.texi: Update.
14586
14587 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
14588
14589 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
14590
14591 2003-03-10 Andrew Pinski <apinski@apple.com>
14592
14593 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
14594 is on should not get here.
14595 (machopic_indirect_data_reference): If dynamic-no-pic is on just
14596 generate high/low parts of the address.
14597 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
14598 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
14599 symbol and labels with a new reg. Dynamic-no-pic does not have a
14600 pic_offset_table_rtx.
14601 (machopic_select_section): Change references of flag_pic to
14602 MACHOPIC_INDIRECT.
14603 (machopic_asm_out_destructor): Likewise.
14604 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
14605 reference of flag_pic to MACHOPIC_INDIRECT.
14606 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
14607 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
14608 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
14609 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
14610 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
14611 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
14612 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
14613 (TARGET_DYNAMIC_NO_PIC): Define.
14614 (SUBTARGET_SWITCHES): Define, have sub-target switches for
14615 dynamic-no-pic.
14616 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
14617 rs6000_override_options to here. Dynamic-no-pic overrides
14618 pic.
14619 (CC1_SPEC): Change from not static then pic to not static and not
14620 dynamic-no-pic then pic.
14621 * config/rs6000/rs6000.c (rs6000_override_options): Move the
14622 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
14623 (rs6000_legitimize_reload_address): Add case for loading floating in
14624 dynamic-no-pic.
14625 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
14626 of flag_pic to MACHOPIC_INDIRECT.
14627 (secondary_reload_class): Conditional change the reference of
14628 flag_pic to MACHOPIC_INDIRECT.
14629 (rs6000_output_mi_thunk): Change reference of flag_pic to
14630 MACHOPIC_INDIRECT.
14631 (output_profile_hook): Likewise.
14632 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
14633 * config/rs6000/rs6000.md (movdf_low): Add the case for
14634 MACHO_DYNAMIC_NO_PIC_P.
14635 (call): Change references for flag_pic in TARGET_MACHO to
14636 MACHOPIC_INDIRECT.
14637 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
14638 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
14639 * doc/invoke.texi (-mdynamic-no-pic): Document.
14640
14641 2003-03-10 Devang Patel <dpatel@apple.com>
14642
14643 PR c++/9394
14644 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14645 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14646 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
14647 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
14648 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14649 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14650
14651 2003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
14652
14653 PR optimization/7189
14654 * toplev.c (rest_of_compilation): Move
14655 check_function_return_warnings up to just after
14656 delete_unreachable_blocks.
14657
14658 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14659
14660 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
14661 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
14662 Declare.
14663 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
14664 for reg rename optimization to avoid using Z and Y registers.
14665
14666 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14667
14668 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
14669 when adding to X and Y since leax/leay are fast.
14670 ("*addhi3"): Accept 'I' constraint when adding to address register.
14671 ("rotlhi3"): Operand 1 must be a register_operand.
14672 (peephole2): New peephole to optimize some adds.
14673 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
14674 to represent -2 .. 2 small integer range.
14675
14676 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14677
14678 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
14679 each 16-bit rotation.
14680
14681 2003-03-10 Zack Weinberg <zack@codesourcery.com>
14682
14683 * c-opts.c (add_prefixed_path): Don't use concat. When
14684 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
14685 cpp_GCC_INCLUDE_DIR_len characters.
14686
14687 2003-03-10 Segher Boessenkool <segher@koffie.nl>
14688
14689 * testsuite/gcc.dg/altivec-9.c: New file.
14690
14691 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
14692 (rs6000_emit_prologue): Use rs6000_frame_related instead.
14693
14694 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
14695
14696 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
14697 vectors.
14698 (__ev_convert_u64): Remove macro. Define as inline.
14699 (__ev_convert_s64): Same.
14700
14701 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
14702
14703 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
14704 (rs6000_stack_t): Add spe_64bit_regs_used.
14705
14706 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
14707 spe_64bit_regs_used, and use it to determine the size of the
14708 frame.
14709 (spe_func_has_64bit_regs_p): New.
14710 (spe_synthesize_frame_save): New.
14711 (rs6000_frame_related): Handle SPE synthetic registers.
14712 (rs6000_emit_prologue): Only save in 64-bits if the function used
14713 any registers in 64-bit mode.
14714 (rs6000_emit_epilogue): Same, but for restore.
14715
14716 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
14717
14718 * arm.h (enum floating_point_type): Delete. Replace with...
14719 (enum fputype): ... new.
14720 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
14721 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
14722 * arm.md (attr fpu): Reworked for new underlying enum values.
14723 * arm.c (arm_fpu_arch): Now enum fputype.
14724 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
14725 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
14726 Update uses of arm_fpu_arch and arm_fpu_tune.
14727
14728 2003-03-10 Josef Zlomek <zlomekj@suse.cz>
14729
14730 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
14731 (try_crossjump_to_edge): Replace refereces to one jump table by
14732 references to identical jump table.
14733 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
14734 (replace_label): Moved to rtlanal.c.
14735 (struct rtx_pair): Moved to rtl.h.
14736 * rtl.h (struct rtx_pair): Moved from loop.c.
14737 (replace_label): New extern function.
14738 (subrtx_p): New extern function.
14739 (tablejump_p): New extern function.
14740 * rtlanal.c (replace_label): Moved from loop.c.
14741 (subrtx_p_1): New static function.
14742 (subrtx_p): New function.
14743 (tablejump_p): New function.
14744
14745 2003-03-10 Jan Hubicka <jh@suse.cz>
14746
14747 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
14748
14749 * cfgcleanup.c (merge_blocks): Return where to iterate next.
14750 (try_optimize_cfg): Use return value of merge_blocks
14751
14752 2003-03-10 Michael Matz <matz@suse.de>
14753
14754 * cfg.c (unchecked_make_edge): New.
14755 (cached_make_edge): Use it.
14756 * basic-block.h (unchecked_make_edge): Declare.
14757 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
14758
14759 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
14760
14761 * fpa.md: New file. Move all patterns relating to FPA co-processor
14762 to here...
14763 * arm.md: ... from here.
14764 (cirrus.md, fpa.md): Include at end of description.
14765 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
14766 (pic_load_addr_based): Remove register constraint from expander.
14767 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
14768 (sordered, sungt, sunle, sunge, sunlt): Likewise.
14769 (eh_epilogue, tablejump): Likewise.
14770
14771 2003-03-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14772
14773 * tree.c (substitute_in_expr, case 'e'): Only make recursive call
14774 on operands if it has a PLACEHOLDER_EXPR.
14775
14776 2003-03-09 David Edelsohn <edelsohn@gnu.org>
14777 Mostafa Hagog
14778
14779 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
14780 condition.
14781
14782 2003-03-09 Neil Booth <neil@daikokuya.co.uk>
14783
14784 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
14785 * config/ip2k/ip2k.h: Similarly.
14786 * config/m32r/m32r.h: Similarly.
14787 * config/m68hc11/m68hc11.h: Similarly.
14788 * config/mn10200/mn10200.h: Similarly.
14789 * config/mn10300/mn10300.h: Similarly.
14790 * config/pdp11/pdp11.h: Similarly.
14791 * config/v850/v850.h: Similarly.
14792 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
14793 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
14794 * config/mips/iris3.h: Remove #if 0 block.
14795
14796 2003-03-09 Roger Sayle <roger@eyesopen.com>
14797 Joern Rennecke <joern.rennecke@superh.com>
14798
14799 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
14800 pending argument upon return from handle_braces here.
14801 (do_spec_2): Instead handle it upon return from do_spec_1 here.
14802
14803 2003-03-09 Roger Sayle <roger@eyesopen.com>
14804 Joern Rennecke <joern.rennecke@superh.com>
14805
14806 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
14807 pending argument upon return from handle_braces here.
14808 (do_spec_2): Instead handle it upon return from do_spec_1 here.
14809
14810 2003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14811
14812 * varasm.c (make_decl_one_only): Use declare_weak().
14813
14814 2003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14815
14816 PR middle-end/9986
14817 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
14818 after the common builtins.
14819 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
14820 * pa.c (TARGET_INIT_BUILTINS): Define.
14821 (pa_init_builtins): New function.
14822
14823 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
14824 space has been allocated for the outgoing arguments, set the arg
14825 pointer for a call emitted after virtuals have been instantiated
14826 using the stack pointer offset, otherwise abort.
14827
14828 2003-03-09 DJ Delorie <dj@redhat.com>
14829
14830 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
14831
14832 2003-03-09 Richard Earnshaw <rearnsha@arm.com>
14833
14834 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
14835 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
14836 conversion to integer.
14837 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
14838
14839 2003-03-09 Roger Sayle <roger@eyesopen.com>
14840
14841 * builtins.def: Fix typo and improve grammar.
14842 * loop-unroll.c (decide_peel_completely): Tidy log message.
14843
14844 2003-03-09 Kazu Hirata <kazu@cs.umass.edu>
14845
14846 * config/h8300/h8300.md (*tstsi_upper_bit): New.
14847 (*iorsi3_e2f): Likewise.
14848
14849 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
14850
14851 * config/h8300/h8300.c (h8300_and_costs): Return the number of
14852 assembly instructions needed.
14853 (h8300_shift_costs): Likewise.
14854
14855 2003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
14856
14857 * config/cris/aout.h (ENDFILE_SPEC): Undef.
14858
14859 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
14860 moves from here ...
14861 * expr.c (emit_move_insn_1): ... to here.
14862
14863 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
14864 (TARGET_OS_CPP_BUILTINS): New macro.
14865 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
14866 (TARGET_OS_CPP_BUILTINS): New macro.
14867 (CPP_PREDEFINES): Don't define. Move old definitions and...
14868 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
14869 (TARGET_CPU_CPP_BUILTINS): New macro.
14870 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
14871 definitions and the optional __PIC__, __pic__ and
14872 __NO_UNDERSCORES__ definitions to...
14873 (TARGET_OS_CPP_BUILTINS): New macro.
14874
14875 * flags.h (flag_leading_underscore): Declare.
14876
14877 * c-opts.c (c_common_post_options): On fopen failure, return
14878 false, not NULL.
14879
14880 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
14881
14882 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
14883 config.h.
14884 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
14885 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
14886
14887 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
14888
14889 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
14890 CPP_PREDEFINES.
14891 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
14892 CPP_PREDEFINES.
14893
14894 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
14895
14896 * c-common.h (c_common_init, c_common_post_options): Update.
14897 * c-objc-common.c (c_objc_common_init): Update for new prototype.
14898 * c-opts.c (saved_lineno): New.
14899 (c_common_post_options, c_common_init): Update prototypes,
14900 move call to cpp_read_main_file from latter to former.
14901 * c-tree.h (c_ojbc_common_init): Update.
14902 * langhooks-def.h (lhd_post_options): New.
14903 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
14904 * langhooks.c (lhd_post_options): New.
14905 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
14906 * toplev.c (no_backend): New.
14907 (process_options): Call post_options hook and set main_input_filename
14908 and input_filename here.
14909 (lang_dependent_init, do_compile): post_options hook moved to
14910 process_options.
14911 * objc/objc-act.c (objc_init): Update prototype.
14912 * objc/objc-act.h (objc_init): Update prototype.
14913
14914 2003-03-08 Roger Sayle <roger@eyesopen.com>
14915
14916 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
14917 a complex or vector type, using a load in the original mode.
14918
14919 2003-03-08 Jan Hubicka <jh@suse.cz>
14920
14921 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
14922 * gt-cgraph.h: New GC file.
14923 * cgraph.c (known_fns): New static variable.
14924 (cgraph_node): Add the decl into varray.
14925
14926 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
14927
14928 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
14929
14930 2003-03-08 Richard Earnshaw <rearnsha@arm.com>
14931
14932 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
14933 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
14934 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
14935 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
14936 All callers changed.
14937 * arm.md, arm.h, arm-protos.h: Updated.
14938
14939 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
14940 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
14941 * arm.c (arm_regno_class, f_register_operand): Updated.
14942
14943 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
14944
14945 * config/cris/cris.h: Remove EGCS references.
14946 (CPP_SPEC): Remove "-$".
14947 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
14948
14949 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
14950
14951 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
14952 preference to CPP_PREDEFINES.
14953
14954 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
14955
14956 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
14957
14958 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
14959
14960 * config/h8300/h8300.md (*extzv_16_8): New.
14961
14962 2003-03-08 Jan Hubicka <jh@suse.cz>
14963
14964 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
14965 * cgraph.h: (cgraph_local_info): Add can_inline_once
14966 (cgraph_global_info): Add inline_once.
14967 (cgraph_node): Add previous.
14968 (cgraph_remove_node): New.
14969 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
14970 function.
14971 (cgraph_optimize): Call it.
14972 (cgraph_finalize_function): Set inlinable flags.
14973 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
14974 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
14975 (cgraph_expand_function): Likewise.
14976 * cgraph.c
14977 (cgraph_node): Put nodes into doubly linked chain.
14978 (cgraph_remove_node): New function.
14979 * flags.h (flag_inline_functions_called_once): Declare.
14980 * tree-inline.c: Include cgraph.h
14981 (inlinable_functions_p): Add extra argument to bypass limits.
14982 (expand_call_inline): Obey cgraph flag.
14983 * tree-inline.h (tree_inlinable_function_p): Update prototype.
14984
14985 2003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14986
14987 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
14988 irreducible loops.
14989
14990 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
14991 loops info correctly.
14992
14993 2003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
14994
14995 PR middle-end/7796
14996 * unroll.c (calculate_giv_inc): Handle constants being
14997 loaded with LSHIFTRT.
14998
14999 2003-03-07 David Edelsohn <edelsohn@gnu.org>
15000
15001 * config/rs6000/rs6000.c (processor_target_table): Do not disable
15002 GP optional instructions on Power3, Power4, 620, and 630.
15003
15004 2003-03-07 Kazu Hirata <kazu@cs.umass.edu>
15005
15006 * calls.c: Fix comment formatting.
15007 * cfgloopanal.c: Likewise.
15008 * cfgloopmanip.c: Likewise.
15009 * combine.c: Likewise.
15010 * dwarf2out.c: Likewise.
15011 * ggc-common.c: Likewise.
15012 * langhooks.c: Likewise.
15013 * loop-unroll.c: Likewise.
15014 * loop.c: Likewise.
15015 * ra-build.c: Likewise.
15016 * sbitmap.c: Likewise.
15017 * toplev.c: Likewise.
15018
15019 2003-03-07 James E Wilson <wilson@tuliptree.org>
15020
15021 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
15022
15023 2003-03-07 Geoffrey Keating <geoffk@apple.com>
15024
15025 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
15026 support -no-integrated-cpp.
15027
15028 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
15029 than langhooks.name.
15030
15031 2003-03-07 Michael Matz <matz@suse.de>
15032
15033 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
15034 (DF_FOR_REGALLOC): New.
15035 * df.c (df_ref_record): Set DF_REF_STRIPPED.
15036 (read_modify_subreg_p): Simplify.
15037 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
15038 Use DF_FOR_REGALLOC.
15039 * ra.h (struct web): New member subreg_stripped.
15040 (invalid_mode_change_regs): Declare.
15041 * ra.c (invalid_mode_change_regs): New.
15042 (init_ra): Initialize it.
15043 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
15044 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15045 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
15046 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
15047 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15048
15049 2003-03-07 Richard Earnshaw <rearnsha@arm.com>
15050
15051 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
15052 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
15053 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
15054 machine description file from ...
15055 * cirrus.md: ... here.
15056
15057 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
15058
15059 * config/h8300/h8300.md (a peephole2): Don't use
15060 reg_overlap_mentioned_p.
15061
15062 2003-03-06 Geoffrey Keating <geoffk@apple.com>
15063
15064 * c-pch.c: Include langhooks.h.
15065 (IDENT_LENGTH): New.
15066 (get_ident): New.
15067 (pch_ident): Delete.
15068 (pch_init): Use get_ident, IDENT_LENGTH.
15069 (c_common_valid_pch): Likewise. Also, use actual language
15070 in warning message.
15071 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
15072
15073 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
15074 c-parse.in.
15075 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
15076 gt-objc-objc-act.h.
15077 (gt-objc-objc-act.h): New rule.
15078 * objc/lang-specs.h: Support PCH.
15079 * objc/objc-act.c: Include gt-objc-objc-act.h.
15080 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
15081 (build_selector_reference_decl): Move idx out, mark for PCH.
15082 (build_class_reference_decl): Likewise.
15083 (build_objc_string_decl): Move *_idx out, mark for PCH.
15084 (build_tmp_function_decl): Move xxx out, mark for PCH.
15085
15086 2003-03-06 Dale Johannesen <dalej@apple.com>
15087
15088 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
15089 global functions for inlining on Darwin.
15090
15091 2003-03-06 Vladimir Makarov <vmakarov@redhat.com>
15092
15093 * haifa-sched.c (schedule_block): Don't call reorder when sorting
15094 is prohibited.
15095
15096 2003-03-06 Neil Booth <neil@daikokuya.co.uk>
15097
15098 * Makefile.in (c-ppoutput.o): Update.
15099 * c-common.h (init_pp_output): New.
15100 (preprocess_file): Update.
15101 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
15102 Register builtins.
15103 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
15104 Make call to cpp_read_main_file common to whether preprocessing
15105 or not. Don't register builtins.
15106 * c-ppoutput.c: Include c-pragma.h.
15107 (setup_callbacks): Rename init_pp_output.
15108 (preprocess_file): No longer setup callbacks or call
15109 cpp_read_main_file.
15110 * cpphash.h (_cpp_init_mbchar): New.
15111 * cppinit.c (init_library): Call _cpp_init_mbchar.
15112 * cpplex.c (_cpp_init_mbchar): New.
15113
15114 2003-03-06 Roger Sayle <roger@eyesopen.com>
15115
15116 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
15117 MEM, try loading the MEM into a register and taking the low-part
15118 of that, to help CSE see the use of the MEM in its true mode.
15119
15120 2003-03-05 Tom Tromey <tromey@redhat.com>
15121
15122 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
15123 Define.
15124
15125 2003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
15126
15127 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
15128 operand 2.
15129 ("*ineqbranchsi"): Likewise.
15130
15131 2003-03-05 Andrew Haley <aph@cambridge.redhat.com>
15132
15133 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
15134 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
15135 register store followed by a stack increment.
15136
15137 2003-03-05 Chris Moller <cmoller@redhat.com>
15138
15139 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
15140 to inhibit saving CARRY_REGS.
15141
15142 * config/stormy16/stormy16.c (xs_hi_general_operand):
15143 added predicate to detect and error-out on out-of-range
15144 const_ints for movhi.
15145 * config/stormy16/stormy16.md (movhi): use
15146 xs_hi_general_operand.
15147
15148 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
15149 added a check for local vbl size overflow.
15150 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
15151 added predicate to detect and error-out on out-of-range
15152 const_ints for addhi and subhi.
15153 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
15154 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
15155
15156 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15157 add a term to accept PRE_MODIFY addresses.
15158 * config/stormy16/stormy16.c (xstormy16_expand_move):
15159 add code to expand PRE_MODIFY addresses to an add followed
15160 by a move.
15161
15162 2003-03-06 Jason Merrill <jason@redhat.com>
15163
15164 * tree-inline.c (inlinable_function_p): Revert earlier change
15165 pending investigation.
15166
15167 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
15168
15169 * config/h8300/h8300.md (a new peephole2): New.
15170
15171 2003-03-06 Jan Hubicka <jh@suse.cz>
15172
15173 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
15174
15175 2003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15176
15177 * dwarf2out.c (size_of_die): Compute size of external reference to
15178 die correctly.
15179
15180 2003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
15181
15182 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
15183 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
15184 expanders.
15185
15186 2003-03-05 Roger Sayle <roger@eyesopen.com>
15187
15188 * expr.h (lang_expand_expr): Delete obsolete prototype.
15189
15190 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15191
15192 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
15193
15194 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15195
15196 * config/h8300/h8300.md (a peephole2): Generalize to
15197 accept a memory operand.
15198
15199 2003-03-05 Olivier Hainque <hainque@act-europe.fr>
15200
15201 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
15202 * config/alpha/alpha.c (print_operand, case '+'): New.
15203 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
15204 (call_value_osf_1_noreturn): Likewise.
15205
15206 2003-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15207
15208 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
15209 (expand_end_bindings): Likewise.
15210
15211 2003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15212
15213 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
15214 (epilogue): Don't generate return_external_pic when emitting PA 2.0
15215 code.
15216
15217 2003-03-05 Aldy Hernandez <aldyh@redhat.com>
15218
15219 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
15220
15221 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
15222
15223 * hooks.c (hook_rtx_rtx_null): New.
15224
15225 * hooks.h (hook_rtx_rtx_null): Protoize.
15226
15227 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
15228 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
15229
15230 * target.h (struct gcc_target): Add dwarf_register_span.
15231
15232 * dwarf2out.c (multiple_reg_loc_descriptor): New.
15233 (one_reg_loc_descriptor): New.
15234 (reg_loc_descriptor): Add support for values that span more than
15235 one register.
15236
15237 2003-03-05 Jan Hubicka <jh@suse.cz>
15238
15239 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
15240 * alias.c: Include cgraph.h
15241 (mark_constant_function): Use cgraph_rtl_info.
15242 * calls.c: Include cgraph.h
15243 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
15244 calls.
15245 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
15246 * cgraph.c (cgraph_rtl_info): New function.
15247 * cgraph.h (cgraph_rtl_info): Declare
15248 (cgraph_rtl_info): Likewise.
15249 * function.h (struct function): Add recursive_call_emit.
15250 * toplev.c: Include cgraph.h.
15251 (rest_of_compilation): Set preferred_incoming_stack_boundary.
15252
15253 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15254
15255 * config/h8300/h8300.c (output_simode_bld): Clear the
15256 destination first if possible.
15257 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
15258 alternative.
15259 (extzv_1_r_inv_h8300hs): Likewise.
15260
15261 2003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15262
15263 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
15264 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
15265 * cfgloop.c (flow_loop_free): Made global.
15266 (establish_preds): New static function.
15267 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
15268 (get_loop_exit_edges): New.
15269 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
15270 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
15271 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
15272 loops.
15273 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
15274 removability of an edge.
15275 (fix_irreducible_loops): New static function.
15276 (find_path, remove_path): Add ability to remove enclosing loops.
15277 (unloop): New.
15278 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
15279 flags.
15280 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
15281 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
15282 not neccessary.
15283 (decide_peel_completely, peel_loops_completely): Allow complete peeling
15284 of non-duplicable once rolling loops.
15285 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
15286
15287 2003-03-05 J"orn Rennecke <joern.rennecke@superh.com>
15288
15289 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
15290 for align_jumps is 4.
15291
15292 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
15293 use GENERAL_REGS.
15294
15295 2003-03-05 Stephane Carrez <stcarrez@nerim.fr>
15296
15297 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
15298 according to va_arg type.
15299 (EXPAND_BUILTIN_VA_ARG): Remove.
15300 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
15301 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
15302
15303 2003-03-05 David Edelsohn <edelsohn@gnu.org>
15304
15305 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
15306 else clauses.
15307
15308 2003-03-05 Michael Matz <matz@suse.de>
15309
15310 * i386/i386.c (ix86_save_reg): Also test
15311 current_function_uses_const_pool.
15312
15313 2003-03-05 Michael Matz <matz@suse.de>
15314
15315 * unwind.h: Add the GPL exception.
15316 * Makefile.in (USER_H): Add unwind.h.
15317
15318 2003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
15319
15320 PR c/9799
15321 * c-typeck.c (push_init_level): Add sanity check.
15322
15323 2003-03-05 Jan Hubicka <jh@suse.cz>
15324
15325 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
15326 RTL inlining is done.
15327
15328 * cgraphunit.c (cgraph_mark_local_functions): New local function.
15329 (cgraph_optimize): Mark local functions.
15330 * i386-protos.h (init_cumulative_args): Update prototype.
15331 * i386.c (init_cumulative_args): Use register passing convention for
15332 local functions.
15333
15334 * cgraph.c (cgraph_global_info_ready): New global variable
15335 (cgraph_local_info, cgraph_global_info): New functions.
15336 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
15337 structures.
15338 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
15339 Declare.
15340 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
15341 (cgraph_mark_functions_to_output): Use inline_many.
15342 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
15343 (cgraph_expand_functions): Expand inline functions last.
15344 (cgraph_optimize): Do not emit uneeded functions.
15345
15346 2003-03-04 Steve Ellcey <sje@cup.hp.com>
15347
15348 * expr.c (convert_modes): Check for legal hard register.
15349
15350 2003-03-04 Tom Tromey <tromey@redhat.com>
15351
15352 * doc/sourcebuild.texi (Front End Directory): Document tags.
15353 * configure: Rebuilt.
15354 * configure.in (target_list): Added tags.
15355 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
15356 TAGS files by reference.
15357 * objc/Make-lang.in (objc.tags): New target.
15358
15359 2003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15360
15361 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
15362 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
15363 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
15364 gcov_read_string, gcov_write_length): Modified to enable reading/
15365 writing of whole .da file just once.
15366 (da_file_open, da_file_close, da_file_eof, da_file_error,
15367 da_file_position, da_file_seek, da_file_write, da_file_read): New
15368 functions.
15369 (actual_da_file, actual_da_file_position, actual_da_file_length,
15370 actual_da_file_buffer, actual_da_file_buffer_size): New static
15371 functions.
15372 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
15373 just once.
15374
15375
15376 2003-03-04 Andreas Schwab <schwab@suse.de>
15377
15378 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
15379 offset without frame pointer.
15380
15381 2003-03-04 Steve Ellcey <sje@cup.hp.com>
15382
15383 * expr.c (expand_expr): Call promote_mode to set unsignedp.
15384
15385 2003-03-04 Daniel Jacobowitz <drow@mvista.com>
15386
15387 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
15388 * configure: Regenerated.
15389 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
15390
15391 2003-03-04 Andreas Jaeger <aj@suse.de>
15392
15393 * configure.in: Check for <memcheck.h>.
15394 * configure: Regenerated.
15395
15396 * config.in: Define HAVE_MEMCHECK_H.
15397
15398 * ggc-common.c: Use <memcheck.h> if available instead of
15399 <valgrind.h>.
15400 * ggc-page.c: Likewise.
15401 * cppfiles.c: Likewise.
15402
15403 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
15404
15405 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
15406
15407 2003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
15408
15409 PR c/9262
15410 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
15411 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
15412
15413 2003-03-04 Jan Hubicka <jh@suse.cz>
15414
15415 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
15416 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
15417 for -O3.
15418
15419 2003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
15420
15421 * configure.in: Delete three unused variables. Move a variable
15422 definition closer to its use. Simplify use_collect2 logic. Start to
15423 organize. Simplify tests for in-tree gas and ld.
15424 * configure: Regenerate.
15425
15426 2003-03-04 Neil Booth <neil@daikokuya.co.uk>
15427
15428 * Makefile.in: Update.
15429 * c-common.c (flag_no_line_commands, flag_no_output,
15430 flag_dump_macros, flag_dump_includes): New.
15431 * c-common.h (flag_no_line_commands, flag_no_output,
15432 flag_dump_macros, flag_dump_includes, preprocess_file): New.
15433 (init_c_lex): Update prototype.
15434 * c-lex.c (init_c_lex): Update prototype; move some code to
15435 c_common_init.
15436 * c-opts.c (preprocess_file): Subsume into c_common_init.
15437 (c_common_decode_option): Update flags.
15438 (c_common_init): Move code from preprocess_file and init_c_lex.
15439 (sanitize_cpp_opts): Update.
15440 * c-ppoutput.c: New, cppmain.c almost verbatim.
15441 * cpphash.h (struct printer): Remove.
15442 (struct cpp_reader): Remove print.
15443 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
15444 cpp_preprocess_file): Remove.
15445 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
15446 and dump_includes.
15447 * cppmain.c: Remove.
15448 * doc/passes.texi: Update.
15449
15450 2003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15451
15452 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
15453 (assign_stack_local_1): Perform overall stack alignment only when
15454 STACK_ALIGNMENT_NEEDED is nonzero.
15455 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
15456
15457 * pa.c (compute_frame_size): Rename fsize to size. Account for
15458 alignment to a word boundary before general register save block. Only
15459 account for double-word alignment before floating point register save
15460 block if one or more are saved. Don't allocate space for %r3 when
15461 frame pointer is needed.
15462 (hppa_expand_prologue): Include alignment to word boundary in local
15463 frame size.
15464 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
15465 (STACK_ALIGNMENT_NEEDED): Define.
15466
15467 2003-03-04 Kevin Buettner <kevinb@redhat.com>
15468
15469 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
15470 global register variables.
15471
15472 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
15473
15474 * reload.c (reload_adjust_reg_for_mode): New function.
15475 (subst_reloads): Call it.
15476 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
15477 * reload.h (reload_adjust_reg_for_mode): Declare.
15478 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
15479 Call it.
15480
15481 2003-03-03 James E Wilson <wilson@tuliptree.org>
15482
15483 * optabs.c (add_equal_note): Delete SUBREG_REG use.
15484 Fixes PR c/7872.
15485
15486 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15487
15488 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
15489 (*ixorsi3_lshiftrt_16): New.
15490 (*iorsi3_ashift_16): Remove.
15491
15492 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15493
15494 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
15495 pattern.
15496
15497 2003-03-03 Geoffrey Keating <geoffk@apple.com>
15498
15499 * doc/install.texi (Specific): Update entry for powerpc-darwin.
15500
15501 2003-03-03 Richard Henderson <rth@redhat.com>
15502
15503 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
15504
15505 2003-03-03 David Edelsohn <edelsohn@gnu.org>
15506
15507 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
15508 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
15509 (rs6000_variable_issue): Do not return negative value.
15510 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
15511 scheduling pass.
15512
15513 2003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15514
15515 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
15516 prune_unused_types calls.
15517
15518 2003-03-03 Jason Merrill <jason@redhat.com>
15519
15520 * tree-inline.c (find_builtin_longjmp_call): Save and restore
15521 lineno and input_filename.
15522 (find_alloca_call): Likewise.
15523 (inlinable_function_p): Run the langhook earlier.
15524
15525 * calls.c (compute_argument_addresses): Give the new MEMs a
15526 minimum alignment of PARM_BOUNDARY.
15527
15528 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
15529
15530 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
15531 subtarget_asm_isa_spec.
15532 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
15533 (ASM_SPEC): Define as SH_ASM_SPEC.
15534 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
15535 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
15536 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
15537 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
15538
15539 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
15540 and align_jumps if not set.
15541 Force align_jumps to be at least 2.
15542 When relaxing, force align_functions to be at least the maximum of
15543 align_loops, align_jumps and 4.
15544 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
15545 (sh_loop_align): Honour align_loops_log.
15546
15547 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
15548 to check for indirect_jump_scratch.
15549 (indirect_jump_scratch): Add second set.
15550 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
15551 when looking for indirect_jump_scratch.
15552 Extract scratch register taking new structure of indirect_jump_scratch
15553 into account.
15554 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
15555
15556 2003-03-03 Jan Hubicka <jh@suse.cz>
15557
15558 * calls.c (rtx_for_function_call): Take the address as an argument
15559 (expand_call): Do not modify the expression.
15560
15561 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
15562 optimizing.
15563
15564 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15565
15566 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
15567 TARGET_H8300H and TARGET_H8300S.
15568
15569 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15570
15571 * config/h8300/h8300.md (a peephole2): New.
15572
15573 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15574
15575 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
15576 operands[0] and operands[1] are different.
15577
15578 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15579
15580 * reload1.c (reload_cse_move2add): Remove variable success.
15581
15582 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15583
15584 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
15585 warnings.
15586
15587 2003-03-02 Richard Henderson <rth@redhat.com>
15588
15589 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
15590 * config.in, configure: Rebuild.
15591 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
15592 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
15593 paired ldtoffx and ldxmov annotations.
15594 (load_symptr_internal1): Remove.
15595 (load_symptr_high, load_symptr_low): New.
15596
15597 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
15598
15599 * c-incpath.c (add_path): Fix sysp assignment.
15600
15601 2003-03-02 Kurt Garloff <garloff@suse.de>
15602
15603 * params.def: Introduce parameter max-inline-insns-rtl for
15604 a separate limit for the RTL inliner.
15605 * params.h: Likewise.
15606 * integrate.c (function_cannot_inline_p): Use it.
15607 * toplev.c (decode_f_option): Set multiple parameters
15608 controlling inlining with -finline-limit.
15609 * params.def: Fix orthographic and typographic errors.
15610 * doc/invoke.texi: Document parameters controlling inlining
15611 and the way -finline-limit sets multiple of them.
15612
15613 * tree.h (struct tree_decl): Introduce inlined_function_flag,
15614 recording whether the function became eligible for inlining
15615 by a compiler flag rather than the declaration.
15616 Provide DID_INLINE_FUNC macro to access it.
15617 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
15618 * cp/decl.c (grokfndecl): Likewise.
15619 * toplev.c (rest_of_compilation): Likewise.
15620 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
15621 * print-tree.c (print_node): Report it.
15622 * params.def: Introduce new max-inline-insns-auto limit.
15623 * params.h: Likewise.
15624 * tree-inline.c (inlinable_function_p): Apply it to functions
15625 with DID_INLINE_FUNC set.
15626 * toplev.c (decode_f_option): Initialize it from -finline-limit
15627 value.
15628 * doc/invoke.texi: Document new parameter.
15629
15630 2003-03-02 Geoffrey Keating <geoffk@apple.com>
15631
15632 * fix-header.c (read_scan_file): Don't reference simplify_path.
15633
15634 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15635
15636 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
15637 min/max instructions by default as may result in reload errors.
15638
15639 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15640
15641 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
15642 avoid reload problems; define split for it.
15643
15644 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15645
15646 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
15647 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
15648 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
15649 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
15650 rotatert and rotate.
15651 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
15652 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
15653 ("*rotrhi3_addr"): New split for shift insns on address register.
15654 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
15655 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
15656 (___rotrhi3): Likewise.
15657 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
15658
15659 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
15660
15661 * toplev.c (aux_base_name): Moved from toplev.h.
15662 (filename): Constify.
15663 (lang_dependent_init): Don't duplicate name.
15664 (process_options): Set aux_base_name here, not...
15665 (do_compile): ...here. Change protoype.
15666 (toplev_main): Move some code from do_compile.
15667 * toplev.h: Remove aux_base_name.
15668
15669 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
15670
15671 * config/h8300/h8300-protos.h: Add a prototype for
15672 iorxor_operator.
15673 * config/h8300/h8300.c (print_operand): Handle 'c'.
15674 (iorxor_operator): New.
15675 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
15676 * config/h8300/h8300.md (*iorhi3_zext): Remove.
15677 (*iorsi3_zexthi): Likewise.
15678 (*iorsi3_zextsi): Likewise.
15679 (*xorhi3_zextqi): Likewise.
15680 (*xorsi3_zexthi): Likewise.
15681 (*xorsi3_zextsi): Likewise.
15682 (*ixorhi3_zext): New.
15683 (*ixorsi3_zext_qi): Likewise.
15684 (*ixorsi3_zext_hi): Likewise.
15685
15686 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
15687
15688 * c-incpath.c (remove_component_p, simplify_path): Move back to
15689 cppfiles.c.
15690 (remove_duplicates): Use cpp_simplify_path.
15691 * c-incpath.h (simplify_path): Remove.
15692 * c-lex.c: Don't include c-incpath.h.
15693 (init_c_lex): Remove simplify_path.
15694 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
15695 (find_or_create_entry, validate_pch): Revert.
15696
15697 2003-03-02 Ashif Harji <asharji@uwaterloo.ca>
15698
15699 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
15700 an external cpp during compilation.
15701 (option_map): Likewise.
15702 * objc/lang-specs.h (default_compilers): Similarly.
15703 * doc/invoke.texi: Document -no-integrated-cpp flag.
15704
15705 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
15706
15707 * config/h8300/h8300.md (zero_extendqisi2): Change to an
15708 expander.
15709 (*zero_extendqisi2_h8300): New.
15710 (*zero_extendqisi2_h8300hs): New.
15711 (two splitters): New.
15712
15713 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15714
15715 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
15716
15717 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15718
15719 * config/h8300/h8300.md (a peephole2): Remove dead code.
15720
15721 2003-03-01 Roger Sayle <roger@eyesopen.com>
15722
15723 PR c++/9367
15724 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
15725 (BT_FN_INT_CONST_STRING_VALIST_ARG,
15726 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
15727 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
15728 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
15729 BT_FN_INT_STRING_CONST_STRING_VAR,
15730 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
15731 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
15732 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
15733 ATTR_NONNULL_3): Also include the nothrow attribute.
15734 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
15735 vsnprintf, vscanf, vsscanf): Don't define attributes here.
15736 * builtins.def (putchar, puts): Make full C89 built-ins.
15737 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
15738 vsscanf, vsnprintf, vsprintf): New built-ins.
15739 * c-common.c (c_common_nodes_and_builtins): Handle new macro
15740 DEF_FUNCTION_TYPE_VAR_3.
15741
15742 * doc/extend.texi: Document these new built-in functions.
15743
15744 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15745
15746 * config/h8300/h8300.md (a peephole2): New.
15747
15748 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
15749
15750 * predict.c (estimate_bb_frequencies): Correctly set
15751 real_values_initialized after initialization.
15752
15753 2003-03-01 Neil Booth <neil@daikokuya.co.uk>
15754
15755 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
15756 cppinit.o, cppdefault.o, fix-header): Update.
15757 * c-incpath.c: New file.
15758 * c-incpath.h: New file.
15759 * c-lex.c: Include c-incpath.h.
15760 (init_c_lex): Register path simplifier.
15761 * c-opts.c: Include cppdefault.h and c-incpath.h.
15762 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
15763 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
15764 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
15765 (missing_arg, c_common_decode_option): Handle them.
15766 (c_common_post_options): Register include chains.
15767 (print_help): Update.
15768 * cppdefault.h (struct default include): Update.
15769 Move some macros to ...
15770 * cppdefault.c: ... here.
15771 (cpp_include_defaults): Add extra field add_sysroot.
15772 * cppfiles.c (include_file, search_from, find_or_create_entry,
15773 cpp_included, find_include_file, remap_filename): Update for
15774 renaming of search_path to cpp_path, and of the chain headers.
15775 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
15776 * cpphash.h (struct search_path): Move to cpplib.h.
15777 (struct cpp_buffer, struct cpp_reader): Update.
15778 (_cpp_simplify_pathname): Remove.
15779 * cppinit.c: Don't include prefix.h and cppdefault.h.
15780 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
15781 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
15782 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
15783 no_pth, cpp_handle_options): Remove.
15784 (struct pending_option): Remove chain members.
15785 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
15786 cpp_handle_option): Update.
15787 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
15788 (struct cpp_options): Remove quote_include, bracket_include,
15789 include_prefix, include_prefix_len, verbose, ignore_srcdir,
15790 no_standard_includes, no_standard_cplusplus_includes.
15791 (struct cpp_callbacks): Add simplify_path.
15792 (cpp_handle_options): Remove.
15793 * fix-header.c: Include c-incpath.h.
15794 (read_scan_file): Update to use c-incpath functionality.
15795 * doc/passes.texi: Update.
15796
15797 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15798
15799 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
15800 satisfies EXTRA_CONSTRAINT 'U'.
15801
15802 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15803
15804 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
15805 register.
15806 (*tst_extzv_memqi_1_n): Change to a splitter.
15807 (a peephole2): Update.
15808
15809 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
15810
15811 * predict.c (estimate_bb_frequencies): Initialize the sreal
15812 constants once per compilation.
15813
15814 2003-02-28 Richard Henderson <rth@redhat.com>
15815
15816 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
15817
15818 2003-02-28 scott snyder <snyder@fnal.gov>
15819
15820 * flags.h: Add flag_eliminate_unused_debug_types.
15821 * toplev.c: Add flag_eliminate_unused_debug_types.
15822 (f_options): Add -feliminate-unused-debug-types.
15823 * dwarf2out.c (struct file_table): Add emitted member.
15824 (splice_child_die): Fix the parent pointer for the child being
15825 spliced.
15826 (lookup_filename): Maintain file_table.emitted array. Don't
15827 output .file directive here.
15828 (maybe_emit_file): (new)
15829 (init_file_table): Set up file_table.emitted.
15830 (dwarf2out_source_line): Use maybe_emit_file.
15831 (dwarf2out_start_source_file): Use maybe_emit_file.
15832 (dwarf2out_init): Use maybe_emit_file.
15833 (prune_unused_types_walk_attribs): (new)
15834 (prune_unused_types_mark): (new)
15835 (prune_unused_types_walk): (new)
15836 (prune_unused_types_prune): (new)
15837 (prune_unused_types): (new)
15838 (dwarf2out_finish): Call prune_unused_types if
15839 flag_eliminate_unused_debug_types is set.
15840 * doc/invoke.texi (Option Summary): Add
15841 -feliminate-unused-debug-types.
15842 (Debugging Options): Likewise.
15843
15844 2003-02-28 Geoffrey Keating <geoffk@apple.com>
15845
15846 * doc/invoke.texi: Change .pch to .gch.
15847 * cppfiles.c (open_file_pch): Likewise.
15848 * gcc.c (default_compilers): Likewise.
15849
15850 2003-02-28 Aldy Hernandez <aldyh@redhat.com>
15851
15852 * floatlib.c: Remove.
15853
15854 2003-02-28 Jason Merrill <jason@redhat.com>
15855
15856 * stor-layout.c (variable_size): Leave a "minus 1" outside the
15857 SAVE_EXPR.
15858
15859 2003-02-28 David Edelsohn <edelsohn@gnu.org>
15860
15861 * config/rs6000/power4.md: Add compare bypass.
15862
15863 2003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
15864
15865 * config/netbsd.h: Update copyright years.
15866 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
15867 -pthread is specified on the command line.
15868
15869 2003-02-28 Dale Johannesen <dalej@apple.com>
15870
15871 * loop.c (struct movable): Add insert_temp, shrink savemode.
15872 (scan_loop): Accept invariants that require copying; mark as
15873 insert_temp.
15874 (combine_movables): Don't combine insert_temp movables.
15875 (move_movables): Insert copies for insert_temp movables.
15876 Don't record the info based on regno for insert_temp's.
15877
15878 2003-02-28 Joel Sherrill <joel@OARcorp.com>
15879
15880 PR 9638/other
15881 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
15882 this constant defaults to 1.
15883
15884 2003-02-28 Bob Wilson <bob.wilson@acm.org>
15885
15886 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
15887
15888 2003-02-28 Richard Earnshaw <rearnsha@arm.com>
15889
15890 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
15891 ARMv5e processor, not just for XScale. Instructions are predicable.
15892 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
15893
15894 2003-02-28 Nick Clifton <nickc@redhat.com>
15895
15896 * config/arm/arm.c (note_invalid_constants): Change parameter type
15897 from bool to int.
15898
15899 2003-02-28 Kazu Hirata <kazu@cs.umass.edu>
15900
15901 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
15902 test of bit 7.
15903 (*tst_extzv_memqi_1_n): Likewise.
15904 (a peephole2): New.
15905
15906 2003-02-28 Richard Sandiford <rsandifo@redhat.com>
15907
15908 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
15909 #ifndef __mips16.
15910
15911 2003-02-28 Jan Hubicka <jh@suse.cz>
15912
15913 * combine.c (gen_lowpart_for_combine): Update handling of
15914 subregs_of_mode
15915 * flow.c (life_analysis, mark_used_regs): Likewise.
15916 * regclass.c (subregs_of_mode): Turn into single bitmap.
15917 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
15918 dealing with subregs_of_mode
15919 * regs.h (subregs_of_mode): Update prototype.
15920
15921 2003-02-28 Josef Zlomek <zlomekj@suse.cz>
15922
15923 * emit-rtl.c (set_reg_attrs_for_parm): New function.
15924 * rtl.h (set_reg_attrs_for_parm): New exported function.
15925 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
15926 set_reg_attrs_from_mem.
15927
15928 2003-02-27 Roger Sayle <roger@eyesopen.com>
15929 Zack Weinberg <zack@codesourcery.com>
15930
15931 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
15932
15933 2003-02-27 Kazu Hirata <kazu@cs.umass.edu>
15934
15935 * reload1.c (sext_for_mode): Remove.
15936 (reload_cse_move2add): Use trunc_int_for_mode instead of
15937 sext_for_mode.
15938 (move2add_note_store): Likewise.
15939 Reset register information if we see a set in non-integer
15940 mode.
15941
15942 2003-02-27 David Edelsohn <edelsohn@gnu.org>
15943
15944 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
15945 option.
15946 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
15947 * config/rs6000/aix51.h: Same.
15948 * config/rs6000/aix52.h: Same.
15949 * config/rs6000/power4.md: Additional VMX bypasses.
15950
15951 2003-02-27 Geert Bosch <bosch@gnat.com>
15952
15953 * toplev.c (print_version): Add indentation for GGC heuristics and
15954 output after printing version information.
15955
15956 2003-02-27 James E Wilson <wilson@tuliptree.org>
15957
15958 * combine.c (simplify_comparison): Require integral mode when
15959 permuting SUBREG with AND.
15960
15961 2003-02-27 Steve Ellcey <sje@cup.hp.com>
15962
15963 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
15964
15965 2003-02-27 Nick Clifton <nickc@redhat.com>
15966
15967 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
15968 deleted when cirrus instructions were added.
15969
15970 2003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
15971
15972 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
15973 POSIX thread support by default.
15974
15975 2003-02-27 Roger Sayle <roger@eyesopen.com>
15976
15977 * config/i386/cygwin.h: Don't include any other files directly.
15978 * config/i386/mingw32.h: Don't include cygwin.h directly.
15979 * config.gcc (cygwin, mingw32, uwin): Instead make these files
15980 explicit in the tm_files variable.
15981
15982 2003-02-27 Alan Modra <amodra@bigpond.net.au>
15983
15984 * config/rs6000/rs6000.md: Add TI constant splitter.
15985
15986 2003-02-26 Alexandre Oliva <aoliva@redhat.com>
15987
15988 * builtins.c (purge_builtin_constant_p): Handle subreg of
15989 constant_p_rtx too.
15990
15991 * function.c (assign_stack_local_1): Truncate constant added to
15992 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
15993
15994 2003-02-26 David Edelsohn <edelsohn@gnu.org>
15995
15996 * config.gcc: Add power4 to PowerPC with_cpu list.
15997
15998 2003-02-26 Jan Hubicka <jh@suse.cz>
15999
16000 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
16001
16002 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16003
16004 * gcov-dump.c (print_prefix): Fix signedness warning.
16005 * gcov-io.h (struct counter_section, struct counter_section_data): New.
16006 (struct function_info): n_arc_counts field removed, n_counter_sections,
16007 counter_sections fields added.
16008 (struct gcov_info): arc_counts, n_arc_counts fields removed,
16009 n_counter_sections, counter_sections fields added.
16010 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
16011 profile sections.
16012 * profile.h (MAX_COUNTER_SECTIONS): New.
16013 (struct section_info): New.
16014 (struct profile_info): count_instrumented_edges,
16015 count_edges_instrumented_now fields removed, n_sections, section_info
16016 fields added.
16017 (find_counters_section): Declare.
16018 * profile.c (struct function_list): count_edges field removed,
16019 n_counter_sections, counter_sections fields added.
16020 (set_purpose, label_for_tag, build_counter_section_fields,
16021 build_counter_section_value, build_counter_section_data_fields,
16022 build_counter_section_data_value, build_function_info_fields,
16023 build_function_info_value, build_gcov_info_fields,
16024 build_gcov_info_value): New static functions.
16025 (find_counters_section): New function.
16026 (instrument_edges, get_exec_counts, compute_branch_probabilities,
16027 branch_prob, create_profiler): Modified to support multiple profile
16028 sections.
16029
16030 2003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16031
16032 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
16033 is 8 * STACK_BOUNDARY.
16034 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
16035
16036 2003-02-26 Michael Matz <matz@suse.de>
16037
16038 * ra-colorize.c (merge_moves): Fix list handling.
16039
16040 2003-02-26 Nick Clifton <nickc@redhat.com>
16041
16042 * config/arm/arm.c (is_load_address): Rename to...
16043 (arm_memory_load_p) ... this and make it check for SUBREGs and
16044 constant loads that will be converted into loads from the
16045 minipool.
16046 (is_cirrus_insn): Rename to ...
16047 (arm_cirrus_insn_p): ... this, for consistency. Replace test
16048 of CIRRUS_NO with CIRRUS_NOT.
16049 (cirrus_reorg): Use renamed functions.
16050 (note_invalid_constants): Change from a void function to bool.
16051 Add an extra parameter, saying whether the fixups should be
16052 pushed. Return true if fixups are needed.
16053 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
16054 of CIRRUS_NO with CIRRUS_NOT.
16055 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
16056 other floating point co-processors can also affect this.
16057 * config/arm/arm.md ("type" attribute): Add mav_farith and
16058 mav_dmult. Replace references to "cirrus_type" attribute with
16059 "type".
16060 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
16061 ("cirrus_type" attribute): Delete - use "type" instead.
16062 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
16063 'normal'.
16064
16065 2003-02-25 Jan Hubicka <jh@suse.cz>
16066
16067 * objc-act.c: Include cgraph.h
16068 (mark_referenced_methods): New function.
16069 (objc_init): Call it.
16070 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
16071
16072 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
16073 mode.
16074
16075 * optabs.c (expand_fix): Do not widen the input operand.
16076
16077 * expr.c (emit_group_store): Fix crash when converting single
16078 register into complex register.
16079
16080 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
16081 * alias.c: Include timevar.h
16082 (init_alias_analysis): Set timevar
16083 * jump.c: Include timevar.h
16084 (rebuild_jump_labels): Set timevar
16085 * regcalss.c: Include timevar.h
16086 (reg_scan): Set timevar
16087 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
16088
16089 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16090
16091 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
16092
16093 * Makefile.in (loop-unroll.o): New.
16094 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
16095 (unroll_and_peel_loops): Declare.
16096 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
16097 flag_old_unroll_loops.
16098 * loop.c (loop_invariant_p): Ditto.
16099 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
16100 flag_old_unroll_all_loops.
16101 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
16102 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
16103 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
16104 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
16105 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
16106 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
16107 PARAM_MAX_ONCE_PEELED_INSNS): New.
16108 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
16109 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
16110 instead of old one.
16111 (flag_peel_loops): New.
16112 (lang_independent_options): The new flags added.
16113 (rest_of_compilation): Call new unroller.
16114 (process_options): Setup flags for coexistence of old and new unroller.
16115 * doc/invoke.texi: Document new options.
16116 * doc/passes.texi: Document new unroller pass.
16117
16118 2003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
16119
16120 * fixinc/fixincl.x: Regenerate
16121
16122 2003-02-26 Josef Zlomek <zlomekj@suse.cz>
16123
16124 * function.c (assign_parms): Set reg_attrs for parameters passed in
16125 registers.
16126
16127 2003-02-26 Alan Modra <amodra@bigpond.net.au>
16128
16129 PR target/9681
16130 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
16131
16132 2003-02-25 David Edelsohn <edelsohn@gnu.org>
16133
16134 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
16135 pseudo-op.
16136
16137 2003-02-25 Roger Sayle <roger@eyesopen.com>
16138
16139 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
16140 * cse.c (invalidate_skipped_set): Likewise.
16141 * integrate.c (subst_constants): Likewise.
16142 * jump.c (reversed_comparison_code_parts): Likewise.
16143 * loop.c (canonicalize_condition): Likewise.
16144 * simplify-rtx.c (simplify_relational_operation): Likewise.
16145
16146 2003-02-25 Roger Sayle <roger@eyesopen.com>
16147
16148 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
16149 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
16150 the appropriate macro to define built-in function.
16151 (fmod,fmodf,fmodl): New built-in functions.
16152
16153 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
16154
16155 2003-02-25 Richard Henderson <rth@redhat.com>
16156
16157 * config/i386/i386.c (function_arg): Pass variable sized
16158 structures correctly on the stack.
16159
16160 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
16161
16162 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
16163 does not reduce the cost of SET.
16164
16165 2003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16166
16167 PR target/9732
16168 * config/rs6000/rs6000.c (first_reg_to_save): Handle
16169 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
16170 (rs6000_emit_prologue): Likewise.
16171 (rs6000_emit_epilogue): Likewise.
16172 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
16173 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
16174
16175 2003-02-25 Richard Henderson <rth@redhat.com>
16176
16177 * real.c (real_to_integer2): Force overflow result only for
16178 unsigned overflow.
16179
16180 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
16181
16182 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
16183
16184 2003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
16185 Richard Henderson <rth@redhat.com>
16186
16187 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
16188 there is no similar load.
16189
16190 2003-02-25 Vladimir Makarov <vmakarov@redhat.com>
16191 Richard Henderson <rth@redhat.com>
16192
16193 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
16194 sched-rgn.c.
16195 (add_forward_dependence): New function prototype.
16196
16197 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
16198 sched-init.h.
16199 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
16200 them to haifa-sched.c.
16201
16202 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
16203 haifa_classify_insn): Move them from sched-rgn.c.
16204
16205 * sched-deps.c (add_dependence): Return flag of creating a new
16206 entry.
16207 (add_forward_dependence): New function.
16208 (compute_forward_dependences): Use the function.
16209
16210 * sched-ebb.c (earliest_block_with_similiar_load): New function.
16211 (add_deps_for_risky_insns): New function.
16212 (schedule_ebb): Call the function.
16213
16214 2003-02-20 Aldy Hernandez <aldyh@redhat.com>
16215
16216 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
16217 TARGET_VECTOR_OPAQUE_P. Document accordingly.
16218
16219 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
16220 opaque types fail.
16221
16222 * c-typeck.c (comptypes): Change call to vector_types_compatible
16223 to vector_opaque_p.
16224 (convert_for_assignment): Call vector_opaque_p instead of
16225 vector_types_compatible.
16226 (really_start_incremental_init): Disallow initialization of opaque
16227 types.
16228
16229 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
16230 Define TARGET_VECTOR_OPAQUE_P.
16231 (TARGET_INITIALIZER): Same.
16232
16233 * target.h (struct gcc_target): Remove vector_types_compatible.
16234 Add vector_opaque_p.
16235
16236 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
16237 Remove.
16238 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
16239 a vector type. Change return type to bool.
16240 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
16241 (TARGET_VECTOR_OPAQUE_P): Define.
16242
16243 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
16244 target hook.
16245 Include target.h.
16246 (cp_parser_init_declarator): Fix typo in function comments.
16247
16248 2003-02-25 Jan Hubicka <jh@suse.cz>
16249
16250 * Makefile.in (lcm.o): Add dependency on function.h
16251 * lcm.c (function.h): Include.
16252 * i386.c (machine_function, ix86_stack_locals,
16253 * ix86_save_varrargs_registers) : Move to
16254 ...
16255 * i386.h (machine_function, ix86_stack_locals,
16256 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
16257 (ix86_optimize_mode_switching): New.
16258 * i386.md (fix patterns): Set ix86_optimize_mode_switching
16259
16260 2003-02-25 Nick Clifton <nickc@redhat.com>
16261
16262 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
16263 of fourth arg is 'fndecl' not 'indirect'. Update comment
16264 describing the function's parameters.
16265
16266 2003-02-24 Jan Hubicka <jh@suse.cz>
16267
16268 * combine.c (simplify_shift_const): Fix previous patch.
16269
16270 2003-02-24 Jeff Law <law@redhat.com>
16271
16272 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
16273 alternative.
16274 (testsi_1, testhi_1, testqi_1): Likewise.
16275
16276 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16277
16278 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
16279 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
16280 * doc/extend.texi (Tru64 Pragmas): Reflect this.
16281
16282 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
16283 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
16284 * fixinc/fixincl.x: Regenerate.
16285 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
16286 testcase.
16287 Fixes PR c/5059, c/6126, other/9671.
16288
16289 2003-02-24 Roger Sayle <roger@eyesopen.com>
16290
16291 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
16292 from handle_braces in "%{...}".
16293
16294 2003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
16295
16296 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
16297 (prepare_move_operands): Handle TLS operands.
16298 (tls_symbolic_operand): New.
16299 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
16300 (legitimize_pic_address): Do nothing for the TLS symbol.
16301 (sh_encode_section_info): Handle TLS case.
16302 (sh_strip_name_encoding): Drop TLS encoding.
16303 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
16304 * config/sh/sh.h (SH_TLS_ENCODING): Define.
16305 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
16306 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
16307 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
16308 * config/sh/sh.md: Define TLS UNSPEC constants.
16309 (type): Add tls_load.
16310 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
16311 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
16312 ("tls_initial_exec"): New insn.
16313 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
16314 ("load_gbr"): New insn.
16315
16316 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
16317 * configure: Regenerate.
16318
16319 2003-02-24 Alan Modra <amodra@bigpond.net.au>
16320
16321 PR 9297, PR 9722
16322 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
16323 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
16324 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
16325 (enum block_op_methods): Reorder for better store_expr optimization.
16326 * expr.c (store_expr): Test bit 1 of "want_value" for call param
16327 stores, test bit 0 for original want_value meaning. Pass
16328 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
16329 recursive calls, and calls to expand_param.
16330 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
16331 expected, set target to 0 rather than to subtarget. Formatting.
16332
16333 2003-02-23 Kazu Hirata <kazu@cs.umass.edu>
16334
16335 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
16336
16337 2003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16338
16339 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
16340 new default behavior.
16341 * ggc-common.c: Include sys/resource.h.
16342 (ggc_rlimit_bound): New function.
16343 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
16344 defaults to account for rlimits.
16345
16346 2003-02-22 Richard Henderson <rth@redhat.com>
16347
16348 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
16349
16350 2003-02-22 Kelley Cook <kelley@dwhoops.info>
16351
16352 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
16353 (ix86_tune_string): Rename from ix86_cpu_string.
16354
16355 2003-02-22 Kelley Cook <kelleycook@comcast.net>
16356
16357 * config/i386/i386.c: Replace "mcpu" with "mtune".
16358 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
16359 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
16360 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
16361 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
16362
16363 2003-02-23 Andreas Schwab <schwab@suse.de>
16364
16365 * config.gcc: Delete references to m68k/t-linux and
16366 m68k/t-linux-aout.
16367 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
16368
16369 2003-02-22 Jan Hubicka <jh@suse.cz>
16370
16371 * toplev.c (rest_of_compilation): Apply fotgotten hunk
16372 of track scheduling patch.
16373
16374 2003-02-22 Jan Hubicka <jh@suse.cz>
16375
16376 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
16377 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
16378
16379 2003-02-22 Jan Hubicka <jh@suse.cz>
16380
16381 * c-decl.c (c_expand_body_1): Fix.
16382
16383 2003-02-22 Jan Hubicka <jh@suse.cz>
16384
16385 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
16386
16387 * cfgcleanup.c (try_forward_edges): Don't check loop structures
16388 when not optimizing.
16389 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
16390 when not expensive.
16391 * toplev.c (rest_of_compilation): Duplicate loop headers only when
16392 optimizing; Delete trivially dead insns early; fix optimize check.
16393
16394 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
16395 dependency on cgraph.h
16396 * c-decl.c: Include cgraph.h
16397 (finish_function): Update call of tree_inlinable_function_p.
16398 * c-objc-common.c: Include cgraph.h
16399 * cgraph.h: New file.
16400 * cgraphunit.c: New file.
16401 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
16402 (cgraph_nodes, cgraph_n_nodes): Globalize.
16403 (cgraph_finalize_function, cgraph_finalize_compilation_unit
16404 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
16405 Move into cgraphunit.c
16406 * tree-inline.c: Include cgraph.h
16407 * tree-inline.c: Include cgraph.h
16408
16409 2003-02-22 Josef Zlomek <zlomekj@suse.cz>
16410
16411 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
16412 for copying a register.
16413
16414 2003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
16415
16416 PR other/3782
16417 * toplev.c (process_options): If flag_detailed_statistics is set,
16418 then set time_report as well.
16419
16420 PR c/8828
16421 * jump.c (never_reached_warning): Don't fall through BARRRIER
16422 insns. Update comments to reflect what the function really does.
16423
16424 2003-02-21 Roger Sayle <roger@eyesopen.com>
16425
16426 * fold-const.c (omit_one_operand): No longer static.
16427 * tree.h (omit_one_operand): Prototype here.
16428 (div_and_round_double): Keep fold-const.c prototypes together.
16429 * builtins.c (builtin_mathfn_code): Handle binary built-in
16430 funtions, such as "pow" and "atan2".
16431 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
16432 Simplify optimizations using "type" the builtin's return type.
16433
16434 2003-02-22 Hans-Peter Nilsson <hp@axis.com>
16435
16436 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
16437 Fix functionalization typo.
16438
16439 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
16440 in an asm.
16441
16442 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16443
16444 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
16445 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
16446 documentation.
16447 * ggc-common.c: Include params.h
16448 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16449 init_ggc_heuristics): New functions.
16450 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16451 init_ggc_heuristics): Prototype.
16452 * toplev.c (print_version): Output GGC heuristics.
16453 (parse_options_and_default_flags): Call init_ggc_heuristics.
16454
16455 2003-02-22 Jan Hubicka <jh@suse.cz>
16456
16457 * i386.c (def_builtin): Special case 64bit builtins.
16458 (MASK_SSE164, MASK_SSE264): New constants.
16459 (builtin_description): Add 64bit builtins.
16460 (ix86_init_mmx_sse_builtins): Likewise.
16461 * i386.h (enum ix86_builtins): Likewise.
16462 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
16463 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
16464 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
16465 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
16466 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
16467 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
16468 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
16469
16470 2003-02-22 Jan Hubicka <jh@suse.cz>
16471
16472 * i386.c (builtin_description): Add __builtin_ia32_paddq and
16473 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
16474 and __builtin_ia32_psubq128.
16475 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
16476 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
16477 (mmx_adddi3, mmx_subdi3): New.
16478 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
16479 * xmmintrin.h (_mm_movepi64_pi64): New.
16480 (_mm_add_epi64, _mm_sub_epi64): fix.
16481 (_mm_mul_pu16): Rename to...
16482 (_mm_mul_su32): ... this one.
16483
16484 * builtins.c (expand_builtin_expect): Do not predict
16485 flag_guess_branch_prob is not set.
16486 * c-semantics.c (expand_stmt): Likewise.
16487 * predict.c (predict_insn): Likewise.
16488 * stmt.c (expand_continue_loop): Likewise.
16489 * toplev.c (rest_of_compilation): Do not call
16490 note_prediction_to_br_prob and note_prediction_to_br_prob
16491 when not optimizing.
16492
16493 2003-02-21 Jan Hubicka <jh@suse.cz>
16494
16495 * cfgrtl.c (commit_edge_insertions): Call
16496 find_many_sub_basic_block only when some code has been emitted.
16497 (commit_edge_insertions_watch_calls): Bring into sync with
16498 commit_edge_insertions
16499
16500 2003-02-21 J"orn Rennecke <joern.rennecke@superh.com>
16501
16502 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
16503
16504 * sh.md (binary_sf_op): Use extra constant operand instead of
16505 negating constant operand 4.
16506 * sh.c (sh_expand_binop_v2sf): Supply it.
16507
16508 2003-02-21 Zack Weinberg <zack@codesourcery.com>
16509
16510 * cpphash.h (struct lexer_state): Add directive_wants_padding.
16511 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
16512 for directives of type INCL.
16513 (glue_header_name, parse_include): Use get_token_no_padding.
16514 * cppmacro.c (replace_args): If directive_wants_padding,
16515 provide padding tokens.
16516
16517 2003-02-21 Kazu Hirata <kazu@cs.umass.edu>
16518
16519 * config/h8300/h8300.md (a peephole2): New.
16520
16521 2003-02-21 Jan Hubicka <jh@suse.cz>
16522
16523 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
16524 (commit_edge_insertions): Call find_many_sub_basic_blocks
16525
16526 * reg-stack.c (convert_regs): Cleax aux for blocks.
16527
16528 2003-02-21 Jan Hubicka <jh@suse.cz>
16529
16530 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
16531
16532 2003-02-21 Glen Nakamura <glen@imodulo.com>
16533
16534 PR optimization/8613
16535 * builtins.c (expand_builtin): Emit postincrements before expanding
16536 builtin functions.
16537
16538 2003-02-21 Ben Elliston <bje@redhat.com>
16539
16540 PR other/5634
16541 * doc/install.texi (Configuration): Explain using $HOME instead of
16542 the ~ metacharacter when referring to home directories.
16543
16544 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
16545
16546 * configure.in (TARGET_SYSTEM_ROOT): Set default to
16547 ${exec_prefix}/${target_alias}/sys-root. Match explicit
16548 '${exec_prefix}' (in addition to the expansion thereof) as
16549 relocatable.
16550 * configure: Rebuilt.
16551
16552 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
16553
16554 * config/h8300/h8300.md (addhi3_incdec): Change the name to
16555 *addhi3_incdec.
16556 (addsi3_incdec): Change the name to *addsi3_incdec.
16557
16558 2003-02-20 Roger Sayle <roger@eyesopen.com>
16559
16560 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
16561
16562 2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
16563
16564 PR fortran/9038
16565 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
16566 options to be ignored.
16567 (c_common_decode_option): Ignore them when preprocessing.
16568
16569 2003-02-20 Jan Hubicka <jh@suse.cz>
16570
16571 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
16572 global variables.
16573 (lang_independent_options): Add -fsched2-use-superblocks
16574 -fsced2-use-traces.
16575 (rest_of_compilation): Deal with it.
16576 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
16577 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
16578 Declare.
16579 * rtl.h (reg_to_stack): Update prototype.
16580 * reg-stack.c (reg_to_stack): Return when something has changed;
16581 update liveness when executing after superblock scheduling.
16582
16583 * combine.c (simplify_shift_const): Simplify few special cases
16584 into constants.
16585
16586 2003-02-20 David Edelsohn <edelsohn@gnu.org>
16587
16588 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
16589 (add.,subf.,neg.): Change attribute to fast_compare.
16590 All DFA descriptions updated.
16591
16592 2003-02-20 Nathan Sidwell <nathan@codesourcery.com>
16593
16594 Change base class access representation.
16595 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
16596 TREE_VIA_PRIVATE): Remove.
16597 (BINFO_BASEACCESSES): New binfo elt.
16598 (BINFO_BASEACCESS): New accessor.
16599 (BINFO_ELTS): Increase.
16600 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
16601 (access_public_node, access_protected_node,
16602 access_private_node): New global nodes.
16603 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
16604 * dbxout.c (dbxout_type): Adjust.
16605 * dwarf2out.c (gen_inheritance_die): Add access parameter.
16606 (gen_member_die): Adjust.
16607 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
16608 (output_type): Adjust.
16609 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
16610
16611 Change base class access representation. Share virtual base
16612 binfos.
16613 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
16614 call.
16615 * cp/class.c (build_base_path): Likewise.
16616 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
16617 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
16618 (make_new_vtable): Adjust.
16619 (force_canonical_binfo_r): Delete.
16620 (force_canonical_binfo): Delete.
16621 (mark_primary_virtual_base): Delete.
16622 (dfs_unshared_virtual_bases): Delete.
16623 (mark_primary_bases): Adjust.
16624 (maybe_warn_about_overly_private_class): Adjust.
16625 (dfs_base_derived_from): Delete.
16626 (base_derived_from): Follow the inheritance chain.
16627 (struct find_final_overrider_data): Add vpath member.
16628 (dfs_find_final_overrider): Adjust.
16629 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
16630 (find_final_overrider): Adjust.
16631 (update_vtable_entry_for_fn): Adjust.
16632 (modify_all_vtables): Adjust.
16633 (walk_subobject_offsets): Adjust.
16634 (layout_nonempty_base_or_field): Adjust.
16635 (layout_empty_base): Remove last parameter. Adjust.
16636 (build_base_field): Adjust.
16637 (build_base_fields): Adjust.
16638 (propagate_binfo_offsets): Remove last parameter. Adjust.
16639 (dfs_set_offset_for_unshared_vbases): Delete.
16640 (layout_virtual_bases): Adjust.
16641 (finish_struct_1): Adjust.
16642 (init_class_processing): Don't init access nodes.
16643 (dfs_get_primary_binfo): Delete.
16644 (get_primary_binfo): Adjust.
16645 (dump_class_hierarchy_r): Remove most derived arg, add IGO
16646 parameter. Adjust.
16647 (dump_class_hierarchy): Adjust.
16648 (finish_vtbls): Adjust.
16649 (get_original_base): Delete.
16650 (build_vtt_inits): Adjust.
16651 (dfs_build_secondary_vptr_vtt_inits): Adjust.
16652 (dfs_ctor_vtable_bases_queue_p): Adjust.
16653 (build_ctor_vtbl_group): Adjust.
16654 (dfs_accumulate_vtbl_inits): Adjust.
16655 (build_vtbl_initializer): Adjust.
16656 (build_vbase_offset_vtbl_entries): Adjust.
16657 (add_vcall_offset_vtbl_entries_1): Adjust.
16658 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
16659 (access_*_node): Remove.
16660 (CANONICAL_BINFO): Delete.
16661 (BINFO_UNSHARED_MARKED): Remove.
16662 (BINFO_MARKED): Set LANG_FLAG_0 directly.
16663 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
16664 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
16665 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
16666 Delete.
16667 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
16668 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
16669 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
16670 Delete.
16671 (BINFO_DEPENDENT_BASE_P): New.
16672 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
16673 index.
16674 (markedp, unmarkedp): Adjust.
16675 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
16676 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
16677 find_vbase_instance, binfo_for_vbase): Delete.
16678 (copied_binfo, original_binfo): Declare.
16679 (finish_base_specifier): Add virtual_p arg.
16680 (unshare_base_binfos): Delete.
16681 (copy_base_binfos): Declare.
16682 (reverse_path): Delete.
16683 * cp/decl.c (xref_basetypes): Access and virtuality passed
16684 differently. Don't copy direct base binfos here. Call
16685 copy_base_binfos.
16686 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
16687 (initialize_vtbl_ptrs): Adjust.
16688 (expand_member_init): Adjust.
16689 * cp/parser.c (cp_parser_base_specifier): Adjust.
16690 * cp/pt.c (instantiate_class_template): Adjust.
16691 (get_template_base_recursive): Adjust.
16692 * cp/rtti.c (get_pseudo_ti_init): Adjust.
16693 (get_pseudo_ti_desc): Adjust.
16694 * cp/tree.c (unshare_base_binfos): Rename to ...
16695 (copy_base_binfos): ... here, reimplement.
16696 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
16697 (reverse_path): Remove.
16698 * cp/typeck.c (get_delta_difference): Adjust error messages.
16699 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
16700 * cp/search.c (lookup_base_r): Adjust.
16701 (dynamic_cast_base_recurse): Adjust.
16702 (canonical_binfo): Remove.
16703 (dfs_canonical_queue): Remove.
16704 (dfs_assert_unmarked_p): Remove.
16705 (assert_canonical_unmarked): Remove.
16706 (shared_marked_p, shared_unmarked_p): Remove.
16707 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
16708 (dfs_access_in_type): Adjust.
16709 (access_in_type): Adjust.
16710 (dfs_accessible_queue_p): Adjust.
16711 (dfs_accessible_p): Adjust.
16712 (is_subobject_of_p_1, is_subobject_of_p): Remove.
16713 (struct lookup_field_info): Remove from_dep_base_p field.
16714 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
16715 (lookup_field_r): Remove dependent base code.
16716 (lookup_member): Likewise.
16717 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
16718 (dfs_unmarked_real_bases_queue_p): Remove.
16719 (dfs_marked_real_bases_queue_p): Remove.
16720 (dfs_skip_vbases): Remove.
16721 (dfs_get_pure_virtuals): Adjust.
16722 (markedp, unmarkedp): Adjust.
16723 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
16724 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
16725 (dfs_unmark): Adjust.
16726 (dfs_get_vbase_types):Remove.
16727 (dfs_build_inheritance_graph_order): Remove.
16728 (get_vbase_types): Remove
16729 (dfs_find_vbase_instance): Remove.
16730 (find_vbase_instance): Remove.
16731 (dfs_debug_unmarkedp): Adjust.
16732 (dependent_base_p): Remove.
16733 (dfs_push_type_decls): Adjust.
16734 (dfs_push_decls): Adjust.
16735 (dfs_no_overlap_yet): Adjust.
16736 (copied_binfo): New function.
16737 (original_binfo): New function.
16738 (binfo_for_vbase): Remove.
16739
16740 Change base class access representation.
16741 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
16742 (add_interface_do): Likewise.
16743
16744 2003-02-20 David Edelsohn <edelsohn@gnu.org>
16745
16746 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16747 * config/rs6000/power4.md (power4-store,power4-vecstore): New
16748 insn reservations.
16749 (power4-fpstore): Compact.
16750
16751 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
16752
16753 * config/h8300/h8300.md (*iorsi3_w): New.
16754
16755 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
16756
16757 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
16758 * rtl.c (reg_note_name): Likewise.
16759 * rtl.h (enum reg_note): Likewise.
16760 * doc/invoke.texi: Likewise.
16761 * doc/rtl.texi: Likewise.
16762
16763 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
16764
16765 * bb-reorder.c (find_traces_1_round): Fix comment typo.
16766
16767 2003-02-19 Roger Sayle <roger@eyesopen.com>
16768
16769 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
16770 addition in the presence of signaling NaNs.
16771
16772 2003-02-19 Krister Walfridsson <cato@df.lth.se>
16773
16774 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
16775
16776 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16777
16778 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
16779 ORing with 0xffff??00 with the highest bit of the ?? part set.
16780 (compute_logical_op_length): Update.
16781 (compute_logical_op_cc): Likewise.
16782
16783 2003-02-19 Josef Zlomek <zlomekj@suse.cz>
16784
16785 * bb-reorder.c (find_traces_1_round): Fixed condition for small
16786 destination block with multiple predecessors.
16787 (connect_traces): Check whether the block is a start of trace.
16788
16789 2003-02-19 Jan Hubicka <jh@suse.cz>
16790
16791 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
16792 * function.c (assign_params): Likewise.
16793 * arm-protos.h (arm_init_cumulative_args): Update prototype.
16794 * arm.c (arm_init_cumulative_args): Update function.
16795 * arm.h (INIT_CUMULATIVE_ARGS): Update.
16796 * avr-protos.h (init_cumulative_args): Update prototype.
16797 * avr.c (init_cumulative_args): Update function.
16798 * avr.h (INIT_CUMULATIVE_ARGS): Update.
16799 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
16800 * d30v.c (d30v_init_cumulative_args): Update function.
16801 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
16802 * frv-protos.h (frv_init_cumulative_args): Update prototype.
16803 * frv.c (frv_init_cumulative_args): Update function.
16804 * frv.h (INIT_CUMULATIVE_ARGS): Update.
16805 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
16806 * pa.h (INIT_CUMULATIVE_ARGS): Update.
16807 * sparc-protos.h (init_cumulative_args): Update prototype.
16808 * sparc.c (init_cumulative_args): Update function.
16809 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
16810 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
16811
16812 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16813
16814 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
16815 (*ashiftsi_sextqi_7): Likewise.
16816
16817 2003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16818
16819 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
16820 ISO C99 and C++.
16821
16822 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
16823 for C++ on IRIX 6.5.1[89].
16824 * fixinc/tests/base/internal/sgimacros.h: New file.
16825
16826 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
16827 * fixinc/tests/base/internal/wchar_core.h: New file.
16828
16829 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
16830 socklen_t definition.
16831 * fixinc/fixincl.x: Regenerate.
16832 * fixinc/tests/base/sys/socket.h: New file.
16833 Fixes PR libgcj/9652.
16834
16835 2003-02-19 Jan Hubicka <jh@suse.cz>
16836
16837 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
16838
16839 2003-02-19 David Edelsohn <edelsohn@gnu.org>
16840
16841 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
16842 align_jumps_max_skip and align_loops_max_skip.
16843
16844 2003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
16845
16846 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
16847 test size if named section.
16848
16849 2003-02-19 Daniel Jacobowitz <drow@mvista.com>
16850
16851 * expr.c (expand_expr): Use gen_int_mode for the argument
16852 to gen_rtx_MULT.
16853
16854 2003-02-19 Jan Hubicka <jh@suse.cz>
16855
16856 * i386.md (cosxf2): Fix conditional.
16857
16858 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16859
16860 * config/h8300/h8300.md (extendqisi2): Change to an expander.
16861 (*extendqisi2_h8300): New.
16862 (*extendqisi2_h8300hs): Likewise.
16863
16864 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16865
16866 * config/h8300/h8300-protos.h: Update the prototype for
16867 split_adds_subs. Remove the prototypes for
16868 const_int_le_2_operand and const_int_le_6_operand.
16869 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
16870 (const_int_le_2_operand): Remove.
16871 (const_int_le_6_operand): Likewise.
16872 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
16873 for const_int_le_2_operand and const_int_le_6_operand.
16874 * config/h8300/h8300.md: Update all uses of split_adds_subs.
16875 (a peephole2): New.
16876
16877 2003-02-18 Jan Hubicka <jh@suse.cz>
16878
16879 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
16880 (cgraph_expand_function): Rewrite.
16881
16882 2003-02-18 Matt Austern <austern@apple.com>
16883
16884 * toplev.c, langhooks.c, langhooks-def.h: Move
16885 write_global_declarations from toplev.c to langhooks.c.
16886
16887 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
16888
16889 * config/h8300/h8300.c (general_operand_src): Always check
16890 MODE.
16891 (general_operand_dst): Likewise.
16892
16893 2003-02-18 Roger Sayle <roger@eyesopen.com>
16894
16895 * convert.c (convert_to_real): Also optimize (float)log(x) into
16896 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
16897
16898 2003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
16899
16900 * config/sh/sh.c (unspec_caller_rtx_p): New.
16901 (sh_cannot_copy_insn_p): New.
16902 (TARGET_CANNOT_COPY_INSN_P): New.
16903
16904 2003-02-18 Richard Henderson <rth@redhat.com>
16905
16906 * c-common.c (handle_used_attribute): Accept static data too.
16907
16908 2003-02-18 Nick Clifton <nickc@redhat.com>
16909 Aldy Hernandez <aldyh@redhat.com>
16910
16911 * testsuite/gcc.dg/20030218-1.c: New.
16912
16913 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
16914
16915 * target-def.h (TARGET_INITIALIZER): Add
16916 TARGET_VECTOR_TYPES_COMPATIBLE.
16917 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
16918
16919 * target.h (struct gcc_target): Add field vector_types_compatible.
16920
16921 * c-typeck.c (comptypes): Take into account
16922 TARGET_VECTOR_TYPES_COMPATIBLE.
16923 (convert_for_assignment): Same.
16924
16925 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
16926 (rs6000_spe_vector_types_compatible): New.
16927 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
16928
16929 2003-02-19 Andreas Schwab <schwab@suse.de>
16930
16931 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
16932 * toplev.c: Include langhooks-def.h.
16933
16934 2003-02-18 Chris Demetriou <cgd@broadcom.com>
16935
16936 * config/mips/mips.h (enum processor_type): Sort entries
16937 alphabetically.
16938 * config/mips/mips.md (define_attr cpu): Sync with processor_type
16939 enum values, including adding entries that were missing.
16940
16941 2003-02-18 J"orn Rennecke <joern.rennecke@superh.com>
16942
16943 * sh.c (calc_live_regs): Also check GET_CODE when checking if
16944 initial value for PR_REG is still the PR_REG register.
16945
16946 2003-02-18 Jim Wilson <wilson@redhat.com>
16947
16948 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
16949 instruction in output template.
16950 (bsp_value): Change output template from string to C code, add %,
16951 before actual instruction.
16952 (flushrs): Mark as not predicable.
16953
16954 2003-02-18 Krister Walfridsson <cato@df.lth.se>
16955
16956 * inclhack.def (netbsd_bogus_semicolon): New fix.
16957 * fixincl.x: Rebuilt.
16958 * tests/base/ctype.h: Update.
16959
16960 2003-02-18 Roger Sayle <roger@eyesopen.com>
16961
16962 * fold-const.c (negate_expr_p): New function to determine whether
16963 an expression can be negated cheaply.
16964 (fold) [MINUS_EXPR]: Use it to determine whether to transform
16965 -A - B into -B - A for floating point types.
16966
16967 2003-02-18 Roger Sayle <roger@eyesopen.com>
16968
16969 * sbitmap.c (sbitmap_resize): New function.
16970 * sbitmap.h (sbitmap_resize): Prototype here.
16971 * recog.c (split_all_insns): Use sbitmap_resize.
16972
16973 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
16974
16975 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
16976 insn length.
16977 (extendqisi2): Likewise.
16978 (*extendhisi2_h8300): Likewise.
16979
16980 2003-02-18 Matt Austern <austern@apple.com>
16981
16982 * langhooks.h, langhooks-def.h: introduce new langhook,
16983 final_write_globals, with write_global_declarations as default.
16984 * toplev.c: Move invocation of wrapup_global_declarations from
16985 compile_file to new function, write_global_declarations. Change
16986 compile_file to use final_write_globals hook. Change
16987 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
16988 conditional.
16989
16990 2003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16991
16992 * pa.md: Correct and enhance comment.
16993
16994 2003-02-18 Geoffrey Keating <geoffk@apple.com>
16995
16996 * gcc.c (validate_switches): Don't scan past closing '}'.
16997
16998 2003-02-18 Ben Elliston <bje@redhat.com>
16999
17000 PR c++/1607
17001 * doc/extend.texi (Function Attributes): Document the effect of
17002 the C++ "this" parameter on the counting of arguments for the
17003 "format" and "format_arg" attributes.
17004
17005 2003-02-17 Aldy Hernandez <aldyh@redhat.com>
17006
17007 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
17008 (__ev_stdw): Same.
17009 (__ev_stdh): Same.
17010
17011 2003-02-17 Jan Hubicka <jh@suse.cz>
17012
17013 * recog.c (split_all_insns): Fix memory overflow.
17014
17015 2003-02-17 Kazu Hirata <kazu@cs.umass.edu>
17016
17017 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
17018 (cmphi): Likewise.
17019 (*cmphi_h8300): Likewise.
17020 (*cmphi_h8300hs): Likewise.
17021 (cmpsi): Likewise.
17022 (7 peephole2): Likewise.
17023
17024 2003-02-16 Jan Hubicka <jh@suse.cz>
17025
17026 * c-typeck.c (build_c_cast): Fold constant variables into
17027 initial values.
17028
17029 2003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17030
17031 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
17032 (Binaries): Ditto for Sinix/Reliant Unix.
17033
17034 2003-02-16 Richard Earnshaw <rearnsha@arm.com>
17035
17036 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
17037 not overlap the final result register.
17038
17039 2003-02-16 Arend Bayer <arend.bayer@web.de>
17040 Richard Henderson <rth@redhat.com>
17041
17042 PR c/8068
17043 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
17044 rearrange mult arguments for less recursion.
17045 (extract_muldiv): New. Prevent runaway recursion.
17046
17047 2003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
17048
17049 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
17050 MASK_ALIGN_DOUBLE.
17051
17052 2003-02-15 Roger Sayle <roger@eyesopen.com>
17053
17054 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
17055 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
17056 (ext_80387_constants_table): Global table of 80387 special constants
17057 guarded by ext_80387_constants_init flag when not initialized.
17058 (init_ext_80387_constants): New function to initialize this table.
17059 (standard_80387_constant_p): Extend to recognize extra 80387
17060 constants, in XFmode, on processors where this is a win.
17061 (standard_80387_constant_opcode): New function to return the
17062 opcode associated with standard_80387_constant_p.
17063 (standard_80387_constant_rtx): New function to return the XFmode
17064 CONST_DOUBLE associated with standard_80387_constant_p.
17065 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
17066
17067 * config/i386/i386-protos.h (standard_80387_constant_opcode):
17068 Prototype here.
17069 (standard_80387_constant_rtx): Likewise.
17070
17071 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
17072 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
17073 *movtf_integer): Simplify using new standard_80387_constant_opcode.
17074
17075 2003-02-15 Geoffrey Keating <geoffk@apple.com>
17076
17077 * doc/invoke.texi (Optimize Options): Correct @option syntax.
17078
17079 2003-02-15 Richard Henderson <rth@redhat.com>
17080
17081 * Makefile.in (cfglayout.o): Depend on TARGET_H.
17082 * cfglayout.c: Include target.h.
17083 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
17084 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
17085 * target.h (struct gcc_target): Add cannot_copy_insn_p.
17086
17087 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
17088 (TARGET_CANNOT_COPY_INSN_P): New.
17089 (override_options): Revert 2003-02-08 hack.
17090
17091 2003-02-15 Richard Henderson <rth@redhat.com>
17092
17093 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
17094 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
17095
17096 2003-02-15 David Edelsohn <edelsohn@gnu.org>
17097
17098 * config/rs6000/rs6000.h (processor_type): Add PPC440.
17099 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
17100 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
17101 TARGET_SCHED_VARIABLE_ISSUE): Define.
17102 (rs6000_use_dfa_pipeline_interface): New function.
17103 (rs6000_multipass_dfa_lookahead): New Function.
17104 (rs6000_variable_issue): New function.
17105 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
17106 (rs6000_issue_rate): Add PPC440.
17107 * config/rs6000/rs6000.md (unspec list): Correct typo.
17108 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
17109 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
17110 cmp, delayed_cr, mfcr, mtcr.
17111 (automata_option): Set "ndfa".
17112 (extendMMNN2): Update attributes.
17113 (movcc_internal1): Discourage move to non-cr0. Update
17114 attributes.
17115 (movMM_update): Update attributes.
17116 (cmpMM_internal): Update attributes.
17117 (sCC CR materialization): Update attributes.
17118 (branch patterns): Do not discourage non-cr0.
17119 (cr logical patterns): Prefer destructive register allocation.
17120 Update attributes.
17121 (movesi_from_cr): Update attribute.
17122 (mtcrf_operation): Update attribute.
17123 (mtcrfsi): Update attribute.
17124 * config/rs6000/40x.md: New file.
17125 * config/rs6000/603.md: New file.
17126 * config/rs6000/6xx.md: New file.
17127 * config/rs6000/7450.md: New file.
17128 * config/rs6000/7xx.md: New file.
17129 * config/rs6000/mpc.md: New file.
17130 * config/rs6000/power4.md: New file.
17131 * config/rs6000/rios1.md: New file.
17132 * config/rs6000/rios2.md: New file.
17133 * config/rs6000/rs64.md: New file.
17134 [Some DFA descriptions based on work by Michael Hayes]
17135
17136 2003-02-15 Richard Henderson <rth@redhat.com>
17137
17138 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
17139 successors with multiple predecessors.
17140 (connect_traces): Try harder to copy traces of length 1.
17141
17142 * function.h (struct function): Add computed_goto_common_label,
17143 computed_goto_common_reg.
17144 * function.c (free_after_compilation): Zap them.
17145 * stmt.c (expand_computed_goto): Use them to produce one
17146 indirect branch per function.
17147
17148 2003-02-15 Richard Henderson <rth@redhat.com>
17149
17150 * cfgcleanup.c: Include params.h.
17151 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
17152 too many outgoing edges from a block.
17153 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
17154 * params.def (max-crossjump-edges): New.
17155 * doc/invoke.texi: Document it.
17156
17157 2003-02-15 Richard Henderson <rth@redhat.com>
17158
17159 * recog.c (split_all_insns): Include new blocks in life update;
17160 do a global life update.
17161
17162 2003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
17163
17164 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
17165 Update copyright.
17166 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
17167 -mno-cygwin case.
17168
17169 2003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
17170
17171 PR optimization/7702
17172 * reload1.c (reload_cse_simplify_set): Honor
17173 CANNOT_CHANGE_MODE_CLASS.
17174
17175 2003-02-14 Alexandre Oliva <aoliva@redhat.com>
17176
17177 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
17178 function.
17179 * config/mn10300/mn10300-protos.h: Declare it.
17180 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
17181 attribute cc of instructions that may use clr.
17182
17183 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
17184
17185 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
17186 (x - (x & y)) is found.
17187
17188 2003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17189
17190 * configure.in: Fix typo.
17191 * configure: Regenerate.
17192
17193 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
17194
17195 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
17196
17197 2003-02-13 Adam Nemet <anemet@lnxw.com>
17198
17199 PR opt/2391
17200 * combine.c: Fix spelling in comment.
17201 (cached_nonzero_bits): New function.
17202 (cached_num_sign_bit_copies): New function.
17203 (nonzero_bits_with_known): New macro.
17204 (num_sign_bit_copies_with_known): New macro.
17205 (nonzero_bits1): Rename from nonzero_bits. Add three new
17206 arguments. Change calls from nonzero_bits to
17207 nonzero_bits_with_known.
17208 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
17209 three new arguments. Change calls from num_sign_bit_copies to
17210 num_sign_bit_copies_with_known.
17211 (nonzero_bits): New macro.
17212 (num_sign_bit_copies): New macro.
17213 (update_table_tick): Don't traverse identical subexpression more
17214 than once.
17215 (get_last_value_validate): Likewise.
17216
17217 2003-02-13 Zack Weinberg <zack@codesourcery.com>
17218
17219 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
17220 * function.h (struct emit_status): Length of regno_pointer_align
17221 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
17222 not regno_pointer_align_length (i.e. length actually used, not
17223 length as allocated)
17224
17225 * config/i386/i386.c (struct stack_local_entry): New.
17226 (struct machine_function): Replace huge array with alist.
17227 (assign_386_stack_local): Change to match.
17228
17229 2003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
17230
17231 * inclhack.def (hpux_long_double): Tighten select and add bypass
17232 regexp.
17233 * fixincl.x: Rebuilt.
17234
17235 2003-02-13 Josef Zlomek <zlomekj@suse.cz>
17236
17237 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
17238 edge and block ends with a jump insn it must be simple jump.
17239
17240 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
17241
17242 * Makefile.in (PREPROCESSOR_DEFINES): Add
17243 @TARGET_SYSTEM_ROOT_DEFINE@.
17244 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
17245 is specified or if building a cross compiler.
17246 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
17247 if the sysroot is under $exec_prefix.
17248 * configure: Regenerated.
17249 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
17250 defined.
17251 (struct default_include): Add add_sysroot field.
17252 (cpp_SYSROOT): Declare.
17253 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
17254 field.
17255 (cpp_SYSROOT): New variable.
17256 * cppinit.c (cpp_create_reader): Initialize
17257 CPP_OPTION (pfile, sysroot).
17258 (init_standard_includes): Handle add_sysroot. Do not
17259 add unrelocated copies of relocated directories.
17260 (COMMAND_LINE_OPTIONS): Add -isysroot.
17261 (cpp_handle_option): Handle -isysroot.
17262 * cpplib.h (struct cpp_options): Add sysroot member.
17263 * gcc.c (The Specs Language): Update description of %I.
17264 (target_system_root_changed): New variable.
17265 (process_command): Conditionalize make_relative_prefix call
17266 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
17267 target_system_root_changed.
17268 (do_spec_1): Add -isysroot to %I.
17269 * doc/invoke.texi (Spec Files): Update description of %I.
17270 * doc/install.texi (--with-sysroot): Update comment about
17271 relocation.
17272
17273 2003-02-13 Kazu Hirata <kazu@cs.umass.edu>
17274
17275 * config/h8300/h8300.md (a peephole2): New.
17276
17277 2003-02-13 Robert Lipe <robertlipe@usa.net>
17278 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17279
17280 * doc/install.texi (Specific): Update three SCO-related URLs.
17281
17282 2003-02-13 Andreas Schwab <schwab@suse.de>
17283
17284 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
17285 Parenthesize properly.
17286 (NPREDECESORS): Parenthesize properly.
17287
17288 2003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
17289
17290 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
17291
17292 2003-02-12 Roger Sayle <roger@eyesopen.com>
17293
17294 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
17295 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
17296
17297 * reg-stack.c (subst_stack_regs_pat): Add support for binary
17298 UNSPEC instructions (e.g. "fpatan").
17299
17300 2003-02-12 Mike Stump <mrs@apple.com>
17301
17302 * varray.c (element_size): Remove.
17303 (uses_ggc): Remove.
17304 (element): Add.
17305 (varray_init): Use new interface.
17306 (varray_grow): Use new interface.
17307 (varray_clear): Use new interface.
17308
17309 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
17310
17311 * config/rs6000/spe.h: Add casts to the arguments of the following
17312 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
17313 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
17314 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
17315 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
17316 __ev_get_u16, __ev_get_s16.
17317
17318 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17319
17320 * config/h8300/h8300.md (a peephole2): New.
17321
17322 2003-02-12 Jan Hubicka <jh@suse.cz>
17323
17324 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
17325 (OBJS): Add callgraph.o
17326 (callgraph.o): New.
17327 * c-decl.c (expand_body_1): Break out from ...
17328 (expand_body): This one; change calling convention
17329 (finish_function): Move some of expand_body logic here.
17330 (c_expand_deferred_function): Update call of expand_body
17331 (c_expand_stmt): Use c_expand_body_1.
17332 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
17333 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
17334 * c-tree.h (c_expand_body): Declare.
17335 * callgraph.c: New file.
17336 * flags.h (flag_unit_at_a_time): Declare.
17337 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
17338 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
17339 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
17340 * langhooks.h (struct lang_hooks_for_callgraph): New.
17341 (struct lang_hooks): Add callgraph field.
17342 * toplev.c (flag_unit_at_a_time): New.
17343 (lang_independent_options): Add flag_unit_at_a_time.
17344 (process_options): Disable unit-at-a-time mode for frontends not
17345 supporting callgraph.
17346 * tree-inline.c (typedef struct inline_data): Add "decl"
17347 (expand_call_inline): Update callgraph.
17348 (optimize_inline_calls): Set id.decl.
17349 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
17350 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
17351 cgraph_calls_p): Declare.
17352 * invoke.texi (-funit-at-a-time): Document
17353
17354 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
17355
17356 * config/rs6000/spe.h: Fix misc formatting.
17357 (__ev_create_ufix32_fs): Cast ev argument.
17358 (__ev_create_sfix32_fs): Same.
17359 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
17360 (__ev_get_ufix32_fs_internal): Same.
17361
17362 2003-02-12 Ranjit Mathew <rmathew@hotmail.com>
17363
17364 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
17365 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
17366
17367 2003-02-12 Zack Weinberg <zack@codesourcery.com>
17368
17369 * cpplib.c (do_include_common): Move warnings for
17370 #include_next and #import out to callers. Use early-return
17371 instead of nested ifs. Don't do check_eol here.
17372 (parse_include): Do check_eol here with the rest of the
17373 parsing stuff.
17374 (do_include_next, do_import): Now handle warnings.
17375
17376 2003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17377
17378 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
17379
17380 2003-02-12 Jan Hubicka <jh@suse.cz>
17381
17382 * predict.c (estimate_probability): Fix roundoff error.
17383
17384 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17385
17386 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
17387 (two peephole2): New.
17388
17389 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17390
17391 * config/h8300/h8300.md (several peephole2): Replace
17392 find_regno_note with peep2_reg_dead_p.
17393
17394 2003-02-11 Richard Henderson <rth@redhat.com>
17395
17396 * gcse.c (lookup_set): Remove unused argument PAT. Update
17397 both callers.
17398
17399 2003-02-11 Geoffrey Keating <geoffk@apple.com>
17400
17401 * diagnostic.c (real_abort): New.
17402 (diagnostic_report_diagnostic): Call real_abort on error.
17403 * diagnostic.h (diagnostic_abort_on_error): New.
17404 (struct diagnostic_context): Add abort_on_error field.
17405 * toplev.c (setup_core_dumping): New.
17406 (decode_d_option): Handle 'H' case.
17407 * doc/invoke.texi (Debugging Options): Document -dH.
17408
17409 2003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
17410
17411 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
17412 which refers to obsolete directories.
17413
17414 2003-02-11 Richard Henderson <rth@redhat.com>
17415
17416 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
17417
17418 2002-10-21 Jan Hubicka <jh@suse.cz>
17419
17420 * i386.c (contains_128bit_aligned_vector_p): New function.
17421 (ix86_function_arg_boundary): Properly align vector modes.
17422
17423 2003-02-11 Bob Wilson <bob.wilson@acm.org>
17424
17425 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
17426 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
17427 as a SET pattern.
17428
17429 2003-02-11 Roger Sayle <roger@eyesopen.com>
17430
17431 * builtins.c: Fix failure caused by commiting wrong patch.
17432
17433 2003-02-11 Dale Johannesen <dalej@apple.com>
17434 * ra-build.c (compare_and_free_webs): Relax checking.
17435 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
17436 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
17437
17438 2003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
17439
17440 PR optimization/9651
17441 * rtlanal.c (may_trap_p): Handle FIX.
17442
17443 2003-02-11 Dave Jones <davej@codemonkey.org.uk>
17444
17445 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
17446 * doc/invoke.texi: Extra alias.
17447
17448 2003-02-11 Geoffrey Keating <geoffk@apple.com>
17449
17450 * config/rs6000/host-darwin.c: Fix comment.
17451
17452 2003-02-11 David Edelsohn <edelsohn@gnu.org>
17453
17454 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
17455 predicate for mod result.
17456
17457 2003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17458
17459 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
17460 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
17461 * fixincl.x: Rebuilt.
17462 * tests/base/stdlib.h: Update.
17463 * tests/base/ctype.h: New file.
17464
17465 2003-02-11 Jan Hubicka <jh@suse.cz>
17466
17467 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
17468
17469 2003-02-11 Richard Henderson <rth@redhat.com>
17470
17471 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
17472 appropriated as globals.
17473 (ix86_expand_clrstr): Similarly.
17474 * config/i386/i386.md (cmpstrsi): Similarly.
17475
17476 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
17477
17478 * config/h8300/h8300.md (a peephole2): Add a case of 255.
17479
17480 2003-02-11 Roger Sayle <roger@eyesopen.com>
17481
17482 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
17483 (pow_optab, atan2_optab): Define corresponding macros.
17484 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
17485 * genopinit.c (optabs): Implement pow_optab and atan2_optab
17486 using pow?f3 and atan2?f3 patterns.
17487 * builtins.c (expand_errno_check): New function to update errno
17488 if necessary, split out from expand_builtin_mathfn.
17489 (expand_builtin_mathfn): Use expand_errno_check.
17490 (expand_builtin_mathfn_2): New function to handle expanding binary
17491 math functions, reusing the code in expand_errno_check.
17492 (expand_builtin): Handle the pow and atan2 math built-ins,
17493 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
17494 expand_builtin_mathfn_2.
17495
17496 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
17497
17498 2003-02-11 Jan Hubicka <jh@suse.cz>
17499
17500 * combine.c (combine_simplify_rtx): Fix folding of
17501 nested float_truncates.
17502
17503 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
17504
17505 * config/h8300/h8300.md (a peephole2): Fix a typo.
17506
17507 2003-02-11 Richard Earnshaw <rearnsha@arm.com>
17508
17509 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
17510 register number.
17511
17512 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
17513
17514 * config/h8300/h8300-protos.h: Add a prototype for
17515 gtuleu_operator.
17516 * config/h8300/h8300.c (gtuleu_operator): New.
17517 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
17518 * config/h8300/h8300.md (a peephole2): New.
17519
17520 2003-02-11 Jan Hubicka <jh@suse.cz>
17521
17522 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
17523
17524 2003-02-11 Jan Hubicka <jh@suse.cz>
17525
17526 * predict.c (choose_function_section): Choose sections correctly.
17527
17528 2003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17529
17530 * reload1.c (first_label_num): New.
17531 (reload): Index offsets_known_at and offsets_at using difference of
17532 label number and first label number. Don't use offset pointers.
17533 (set_label_offsets, set_initial_label_offsets): Likewise.
17534
17535 2003-02-10 Roger Sayle <roger@eyesopen.com>
17536
17537 * mips-tfile.c (init_file): Add missing initializers in the
17538 "#ifdef __alpha" case.
17539 (file_offset, max_file_offset): Declare as unsigned long.
17540 (write_varray): Cast to "unsigned long" in comparisons against
17541 either file_offset or max_file_offset.
17542 (write_object): Likewise.
17543 (read_seek): Likewise.
17544 (copy_object): Likewise. Declare "ifd" as int to match its use
17545 in add_ext_symbol, and avoid signed/unsigned conditional warning.
17546
17547 2003-02-10 Nick Clifton <nickc@redhat.com>
17548 Aldy Hernandez <aldyh@redhat.com>
17549
17550 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
17551 override options which have been specified on the command line.
17552
17553 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
17554
17555 * config/h8300/h8300.md (abssf2): New.
17556 (*abssf2_h8300): Likewise.
17557 (*abssf2_h8300hs): Likewise.
17558
17559 2003-02-10 Phil Edwards <pme@gcc.gnu.org>
17560
17561 * tree.c (build_tree_list): Fix parameter names in comment.
17562
17563 2003-02-10 Janis Johnson <janis187@us.ibm.com>
17564
17565 * config/rs6000/ppc64-fp.c: New file.
17566 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
17567
17568 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
17569
17570 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
17571 * bb-reorder.c (make_reorder_chain): Deleted.
17572 (make_reorder_chain_1): Deleted.
17573 (find_traces): New function.
17574 (rotate_loop): New function.
17575 (mark_bb_visited): New function.
17576 (find_traces_1_round): New function.
17577 (copy_bb): New function.
17578 (bb_to_key): New function.
17579 (better_edge_p): New function.
17580 (connect_traces): New function.
17581 (copy_bb_p): New function.
17582 (get_uncond_jump_length): New function.
17583 (reorder_basic_blocks): Use new functions (Software Trace Cache).
17584 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
17585 boundaries.
17586
17587 2003-02-10 Aldy Hernandez <aldyh@redhat.com>
17588
17589 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
17590
17591 2003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17592
17593 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
17594 (DECL_LIVE_RANGE_RTL): Remove.
17595
17596 2003-02-10 Nick Clifton <nickc@redhat.com>
17597
17598 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
17599 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
17600 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
17601 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
17602 config/arm/freebsd.h, config/arm/linux-elf.h,
17603 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
17604 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
17605 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
17606 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
17607 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
17608 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
17609 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
17610 and reformat as appropriate.
17611
17612 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
17613
17614 * config/h8300/clzsi2.c: Remove.
17615 * config/h8300/ctzsi2.c: Likewise.
17616 * config/h8300/paritysi2.c: Likewise.
17617 * config/h8300/popcountsi2.c: Likewise.
17618 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
17619 ctzsi2, paritysi2, and popcountsi2.
17620
17621 2003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
17622 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
17623
17624 PR c/7741
17625 * c-decl.c (duplicate_decls): Discard the initializer of the
17626 new decl when the types are conflicting.
17627
17628 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
17629
17630 * Makefile.in (sreal.o): Added.
17631 (predict.o): Depends on sreal.h instead of real.h.
17632 * sreal.c: New file.
17633 * sreal.h: New file.
17634 * predict.c: Use sreal.c instead of real.c.
17635
17636 2003-02-10 Nick Clifton <nickc@redhat.com>
17637
17638 * Contributed support for the Cirrus EP9312 "Maverick"
17639 floating point co-processor. Written by Aldy Hernandez
17640 <aldyh@redhat.com>.
17641 (config/arm/arm.c): Add Cirrus support.
17642 (config/arm/arm.h): Likewise.
17643 (config/arm/aout.h): Likewise.
17644 (config/arm/arm.md): Likewise.
17645 (config/arm/arm-protos.h): Likewise.
17646 (config.gcc): Likewise.
17647 (doc/invoke.texi): Describe new -mcpu value and new
17648 -mcirrus-fix-invalid-insns switch,
17649 (cirrus.md): New file.
17650
17651 2003-02-10 Jan Hubicka <jh@suse.cz>
17652
17653 * combine.c (combine_simplify_rtx): Simplify using
17654 (float_truncate (float x)) is (float x)
17655 (float_extend (float_extend x)) is (float_extend x).
17656
17657 2003-02-10 Alan Modra <amodra@bigpond.net.au>
17658
17659 * calls.c (try_to_integrate): Tidy stack_usage_map access.
17660 (emit_library_call_value_1): Likewise. Formatting.
17661 (store_one_arg): Likewise.
17662
17663 2003-02-09 Nick Clifton <nickc@redhat.com>
17664 Aldy Hernandez <aldyh@redhat.com>
17665
17666 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
17667 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
17668 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
17669 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
17670 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
17671 docs. Add range test for immediate value.
17672
17673 2003-02-09 Aldy Hernandez <aldyh@redhat.com>
17674
17675 Rename spe_evxor to xorv2si3.
17676 (xorv4hi3): New.
17677 (xorv1di3): New.
17678
17679 2003-02-10 Glen Nakamura <glen@imodulo.com>
17680
17681 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
17682 tag.
17683
17684 2003-02-10 Jan Hubicka <jh@suse.cz>
17685
17686 * i386.c (vector_move_operand): New predicate.
17687 (ix86_expand_vector_move): Be happy about 0.
17688 * i386.h (PREDICATE_CODES): Add sse-move_operand.
17689 * i386.md (mov*_internal): Add 'C' alternative.
17690
17691 2003-02-09 Jan Hubicka <jh@suse.cz>
17692
17693 * i386.md (floathi*): Deal with SSE.
17694
17695 2003-02-09 Jan Hubicka <jh@suse.cz>
17696
17697 * simplify-rtx.c (simplify_unary_operation,
17698 simplify_binary_operation): Deal with vector modes
17699 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
17700
17701 2003-02-09 Richard Sandiford <rsandifo@redhat.com>
17702
17703 * toplev.c (rest_of_compilation): Recompute register usage after
17704 split_all_insns.
17705
17706 2003-02-09 Richard Henderson <rth@redhat.com>
17707
17708 * libgcc-std.ver (__clztf2): New.
17709 (__ctztf2, __popcounttf2, __paritytf2): New.
17710 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
17711 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
17712 adjust code to match the different type sizes.
17713 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
17714 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
17715
17716 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
17717 TImode; select word_mode and twice that.
17718 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
17719 select the modes from float, double, and long double.
17720 (init_optabs): Remove duplicate initializations.
17721
17722 2003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
17723
17724 * doc/install.texi: Squeeze and streamline section on
17725 testing and regression checking.
17726
17727 2003-02-09 Jan Hubicka <jh@suse.cz>
17728
17729 * i386.md (ahi?v*3): Set third operand type to TImode.
17730 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
17731
17732 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
17733 integer mode.
17734
17735 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
17736 Change code so they are arithmetic expressions now.
17737 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
17738 simplify_ternary_operation): Deal with VEC_* expressions.
17739
17740 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
17741
17742 2003-02-08 Jan Hubicka <jh@suse.cz>
17743
17744 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
17745 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
17746 possibly got duplicated.
17747
17748 2003-02-08 Richard Henderson <rth@redhat.com>
17749
17750 * config/alpha/alpha.c (override_options): Turn off explicit
17751 relocs until post-peep2 code duplication resolved.
17752
17753 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17754
17755 * optabs.c (expand_unop): Widen clz properly when clz is done
17756 via libcall.
17757
17758 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17759
17760 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
17761 * config/h8300/crti.asm: Likewise.
17762 * config/h8300/crtn.asm: Likewise.
17763 * config/h8300/ctzsi2.c: Likewise.
17764 * config/h8300/fixunssfsi.c: Likewise.
17765 * config/h8300/h8300-protos.h: Likewise.
17766 * config/h8300/h8300.c: Likewise.
17767 * config/h8300/h8300.h: Likewise.
17768 * config/h8300/h8300.md: Likewise.
17769 * config/h8300/paritysi2.c: Likewise.
17770 * config/h8300/popcountsi2.c: Likewise.
17771 * config/h8300/rtems.h: Likewise.
17772
17773 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17774
17775 * doc/invoke.texi: Documentation for my previous commit.
17776 * doc/passes.texi: Ditto.
17777
17778 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17779
17780 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
17781 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17782 Declare.
17783 (DLTHE_FLAG_UPDATE_FREQ): New.
17784 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
17785 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
17786 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
17787 fix_bb_placement, fix_bb_placements, place_new_loop,
17788 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
17789 New static functions.
17790 (fix_loop_placement, can_duplicate_loop_p,
17791 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17792 New functions.
17793
17794 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
17795 unswitch_loops): Declare.
17796 * loop-init.c: New file.
17797 * loop-unswitch.c: New file.
17798 * Makefile.in (loop-init.o, loop-unswitch.o): New.
17799 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
17800 * toplev.c (DFI_loop2): New dump.
17801 (flag_unswitch_loops): New.
17802 (lang_independent_options): Add it.
17803 (rest_of_compilation): Call new loop optimizer.
17804 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
17805
17806 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17807
17808 * config/h8300/clzsi2.c: New.
17809 * config/h8300/ctzsi2.c: Likewise.
17810 * config/h8300/paritysi2.c: Likewise.
17811 * config/h8300/popcountsi2.c: Likewise.
17812 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
17813
17814 2003-02-07 David Edelsohn <edelsohn@gnu.org>
17815
17816 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
17817 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
17818 (ctzsi2): New pattern.
17819 (ffssi2): Use clz instead of unspec.
17820 (clzdi2): Rename from cntlzd2.
17821 (ctzdi2): New pattern.
17822 (ffsdi2): Use clz instead of unspec.
17823
17824 2003-02-07 Loren James Rittle <ljrittle@acm.org>
17825
17826 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
17827 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
17828 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
17829 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
17830
17831 2003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
17832
17833 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
17834
17835 2003-02-07 Richard Henderson <rth@redhat.com>
17836
17837 PR 9226
17838 * gcse.c (local_cprop_find_used_regs): New.
17839 (local_cprop_pass): Use it.
17840
17841 2003-02-07 Fred Fish <fnf@intrinsity.com>
17842
17843 * mips-tfile.c (parse_def): Parenthesize assignments to fix
17844 precedence bugs.
17845
17846 2003-02-07 Segher Boessenkool <segher@koffie.nl>
17847
17848 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
17849
17850 2003-02-07 Roger Sayle <roger@eyesopen.com>
17851
17852 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
17853 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
17854 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
17855 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
17856 builtin functions (and their __builtin_* variants).
17857 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
17858 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
17859 when not optimizing.
17860
17861 * doc/extend.texi: Document new pow and atan2 builtins, and
17862 their float and long double variants. Realphabetize builtins.
17863
17864 2003-02-07 Jan Hubicka <jh@suse.cz>
17865
17866 * i386.md (sse2_nandv2di3): Fix.
17867
17868 2003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
17869
17870 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
17871 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
17872 definition.
17873 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
17874 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
17875
17876 2003-02-07 Jan Hubicka <jh@suse.cz>
17877
17878 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
17879
17880 2003-02-07 Daniel Berlin <dberlin@dberlin.org>
17881
17882 * cfg.c (dump_flow_info): Add back accidently deleted line.
17883
17884 2003-02-07 Andrey Petrov <petrov@netbsd.org>
17885
17886 * optabs.c (expand_float): Search wider integer modes first.
17887
17888 2003-02-07 Bob Wilson <bob.wilson@acm.org>
17889
17890 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
17891 based on preprocessor flag.
17892
17893 2003-02-07 Roger Sayle <roger@eyesopen.com>
17894 Richard Henderson <rth@redhat.com>
17895
17896 * gcse.c (implicit_sets): New.
17897 (compute_hash_table_work): Include them in hash table.
17898 (find_implicit_sets, fis_get_condition): New.
17899 (one_cprop_pass): Allocate and free implicit_sets; call
17900 find_implicit_sets before building hash table.
17901
17902 2003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
17903
17904 * config/t-netbsd (USER_H): Revert previous change.
17905
17906 2003-02-07 Gabor Greif <ggreif@lucent.com>
17907
17908 * doc/c-tree.texi (Namespaces): Fix typo.
17909
17910 2003-02-07 Jan Hubicka <jh@suse.cz>
17911
17912 * regrename.c (do_replace, find_oldest_value_reg,
17913 copyprop_hardreg_forward_1): Update register attributes.
17914
17915 2003-02-06 Vladimir Makarov <vmakarov@redhat.com>
17916
17917 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
17918 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
17919 variables starting with underscore.
17920 (struct unit_usage): New structure.
17921 (unit_usages, cycle_alt_unit_usages): New global variables.
17922 (check_unit_distribution_in_reserv): Remove it.
17923 (store_alt_unit_usage): New function.
17924 (check_regexp_units_distribution): Rewrite it.
17925
17926 2003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17927
17928 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
17929 target_cpu_default.
17930 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
17931 if not MASK_NO_SPACE_REGS.
17932 (output_call): Adjust return pointer, don't load new space register
17933 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
17934 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
17935 TARGET_NO_SPACE_REGS is true.
17936 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
17937 conditions.
17938 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
17939 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
17940 true. Use bve when TARGET_64BIT is true.
17941
17942 2003-02-06 Richard Henderson <rth@redhat.com>
17943
17944 * combine.c (nonzero_bits): Fix double break.
17945
17946 2003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
17947 Richard Henderson <rth@redhat.com>
17948
17949 PR c/9530
17950 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
17951 from functions that return a float to functions that don't.
17952
17953 2003-02-06 Jan Hubicka <jh@suse.cz>
17954
17955 * i386.c (x86_inter_unit_moves): New variable.
17956 (ix86_secondary_memory_needed): Fix 64bit case, honor
17957 TARGET_INTER_UNIT_MOVES
17958 * i386.h (x86_inter_unit_moves): Declare.
17959 (TARGET_INTER_UNIT_MOVES): New macro.
17960 * i386.md (movsi_1): Cleanup constraints; disable
17961 when not doing inter-unit moves.
17962 (movsi_1_nointernunit): New.
17963 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
17964 (movdi_1_rex64_nointerunit): New.
17965 (mivsf_1): disable when not doing inter-unit moves.
17966 (movsf_1_nointerunit): New.
17967
17968 * basic-block.h (inside_basic_block_p): Declare.
17969 * cfgbuild.c (inside_basic_block_p): Make global.
17970 * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
17971 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
17972 update CFG.
17973 (fix_basic_block_boundaries, add_missing_bbs): New.
17974 (rank): Use profile.
17975 (scheudle_ebbs): Rely on CFG; update coments.
17976
17977 2003-02-05 Geoffrey Keating <geoffk@apple.com>
17978
17979 * Makefile.in (host_hook_obj): New.
17980 (OBJS): Add $(host_hook_obj).
17981 (host_default.o): New rule.
17982 * config.gcc (host_hook_obj): New, default to host-default.o.
17983 (powerpc-*-darwin*): Use host-darwin.o.
17984 (out_host_hook_obj): New.
17985 * configure: Regenerate.
17986 * configure.in: Print information about out_host_hook_obj, substitute
17987 into output files.
17988 * host-default.c: New file.
17989 * hosthooks.h: New file.
17990 * toplev.c (general_init): Call host_hooks.extra_signals.
17991 * config/rs6000/host-darwin.c: New file.
17992 * config/rs6000/x-darwin: New file.
17993 * doc/hostconfig.texi: Add documentation for new host hook.
17994 Rearrange existing documentation.
17995
17996 2003-02-05 Roger Sayle <roger@eyesopen.com>
17997
17998 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
17999 with *targetm.delegitimize_address.
18000 (rtl_for_decl_location): Likewise.
18001 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
18002 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
18003
18004 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
18005 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
18006 prototype.
18007 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
18008 i386_simplify_dwarf_addr. Made static. Prototyped.
18009 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
18010 i386_simplify_dwarf_addr to ix86_delegitimize_address.
18011 (ix86_find_base_term): Likewise.
18012 (maybe_get_pool_constant): Likewise.
18013
18014 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
18015 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
18016 prototype.
18017 * config/s390/s390.c (s390_delegitimize_address): Renamed from
18018 s390_simplify_dwarf_addr. Made static. Prototyped.
18019 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
18020
18021 2003-02-05 Richard Henderson <rth@redhat.com>
18022
18023 PR c/8602
18024 * integrate.c (output_inline_function): Reset input_filename
18025 and lineno from the decl before rest_of_compilation.
18026
18027 2003-02-05 Richard Henderson <rth@redhat.com>
18028
18029 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18030 (CTZ_DEFINED_VALUE_AT_ZERO): New.
18031 * doc/rtl.texi, doc/tm.texi: Document them.
18032
18033 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
18034 of the value at zero properly.
18035 * fold-const.c (tree_expr_nonnegative_p): Likewise.
18036 * simplify-rtx.c (simplify_unary_operation): Likewise.
18037
18038 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18039 (CTZ_DEFINED_VALUE_AT_ZERO): New.
18040
18041 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
18042 (TARGET_EXPAND_BUILTIN): Remove.
18043 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
18044 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18045 (enum arm_builtins): Remove.
18046 * config/arm/arm.md (UNSPEC_CLZ): Remove.
18047 (clzsi2): Rename from clz; use clz instead of unspec.
18048 (ctzsi2): New.
18049 * config/arm/arm-protos.h: Update.
18050
18051 2003-02-05 Jan Hubicka <jh@suse.cz>
18052
18053 * i386-protos.h (x86_emit_floatuns): Declare.
18054 * i386.c (x86_emit_floatuns): New global function.
18055 * i386.md (floatunssisf2, floatunsdisf2,
18056 floatunsdidf2): New patterns.
18057
18058 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18059
18060 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
18061
18062 2003-02-05 Hans Boehm <Hans.Boehm@hp.com>
18063
18064 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
18065 config/ia64/linux.h
18066
18067 2003-02-05 Roger Sayle <roger@eyesopen.com>
18068
18069 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
18070
18071 2003-02-05 Jakub Jelinek <jakub@redhat.com>
18072
18073 PR optimization/8555
18074 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
18075 instead of aborting.
18076
18077 2003-02-04 Richard Henderson <rth@redhat.com>
18078
18079 * config/i386/i386.md (UNSPEC_BSF): Remove.
18080 (ffssi2): Split into cmove and no_cmove insns and splitters;
18081 lose pentium float trick for now.
18082 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
18083 (ctzsi2, clzsi2, bsr): New.
18084
18085 2003-02-04 Richard Henderson <rth@redhat.com>
18086
18087 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
18088 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
18089 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
18090 (ffsdi2): Use popcount instead of unspec.
18091 (popcountdi2): Rename from *popcnt.
18092 (ctzdi2, clzdi2, getf_exp_tf): New.
18093
18094 2003-02-04 Kazu Hirata <kazu@cs.umass.edu>
18095
18096 * genconfig.c (main): Generate CC0_P.
18097 * rtl.h (CC0_P): Remove.
18098
18099 2003-02-04 Richard Henderson <rth@redhat.com>
18100
18101 * libgcc2.h, libgcc2.c (__ffsSI2): New.
18102 (__ffsDI2): Rename from __ffsdi2.
18103 * mklibgcc.in (lib2funcs): Add _ffssi2.
18104
18105 2003-02-04 Richard Henderson <rth@redhat.com>
18106
18107 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
18108 rounds with a "bit table" lookup.
18109
18110 2003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
18111
18112 * reload.c (find_reloads): Do not use the mode specified in the insn
18113 pattern as reload mode for address operands. Do not generate optional
18114 reloads for operands where a mandatory reload was already pushed.
18115
18116 2003-02-04 Richard Henderson <rth@redhat.com>
18117
18118 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
18119 builtins instead of inline assembly.
18120
18121 2003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
18122
18123 PR c/9376
18124 * libgcc2.c (__subvdi3): Fix typo.
18125
18126 2003-02-04 Jan Hubicka <jh@suse.cz>
18127
18128 * i386.md (movti_rex64): Fix constraint.
18129
18130 2003-02-04 Jan Hubicka <jh@suse.cz>
18131
18132 * i386.md (vector push splitters): Fix typo in resolving conflict.
18133
18134 2003-02-04 Rodney Brown <rbrown64@csc.com.au>
18135
18136 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
18137
18138 2003-02-04 Phil Edwards <pme@gcc.gnu.org>
18139
18140 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
18141 for recent libstdc++. Remove formatting cruft.
18142
18143 2003-02-04 Jakub Jelinek <jakub@redhat.com>
18144
18145 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
18146 attribute even if input file name is absolute, but one of the
18147 includes is relative.
18148
18149 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
18150
18151 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
18152 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
18153 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
18154
18155 2003-02-03 Richard Henderson <rth@redhat.com>
18156
18157 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18158 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
18159 return type to "int". Shuffle declarations and undef int trap.
18160 * libgcc2.h: Remove their declarations.
18161 * optabs.c (expand_unop): Force outmode to int for bitops.
18162
18163 2003-02-03 Bob Wilson <bob.wilson@acm.org>
18164
18165 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
18166 coprocessor registers before floating-point registers.
18167 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
18168 to account for a previously removed register.
18169 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
18170 Delete unused macros.
18171
18172 2003-02-03 Jan Hubicka <jh@suse.cz>
18173
18174 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
18175 (mov*_internal): Fix predicates; require one of operands to not be
18176 memory.
18177 (SSE?MMX move expanders): Fix predicates; force one of operands to
18178 register.
18179 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
18180 (movups/movupd/movdqu patterns): Force one of operands to not be
18181 memory.
18182
18183 2003-02-03 Roger Sayle <roger@eyesopen.com>
18184
18185 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
18186 takes a single rtx and returns it unmodified.
18187 * hooks.h (hook_rtx_rtx_identity): Prototype here.
18188 * target.h (struct gcc_target): Add "delegitimize_address"
18189 field to target structure.
18190 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
18191 for delegitimize_address target using hook_rtx_rtx_identity.
18192 (TARGET_INITIALIZER): Initialize delegitimize_address field
18193 using TARGET_DELEGITIMIZE_ADDRESS macro.
18194 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
18195 extensions of constant pool references. Use delegitimize_address
18196 to undo the obfuscation of "-fpic".
18197 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
18198
18199 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
18200 i386_simplify_dwarf_addr.
18201 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
18202 (maybe_get_pool_constant): Likewise.
18203
18204 2003-02-03 Jan Hubicka <jh@suse.cz>
18205
18206 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
18207
18208 2003-02-03 Jan Hubicka <jh@suse.cz>
18209
18210 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
18211
18212 2003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18213
18214 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
18215 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
18216
18217 2003-02-02 Andreas Schwab <schwab@suse.de>
18218
18219 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
18220
18221 2003-02-02 Richard Earnshaw <rearnsha@arm.com>
18222
18223 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
18224 (epilogue_insns): Likewise.
18225
18226 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18227
18228 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
18229
18230 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18231
18232 * pa-protos.h (attr_length_millicode_call): Remove second argument.
18233 (attr_length_indirect_call, attr_length_indirect_call,
18234 attr_length_save_restore_dltp): New prototypes.
18235 * pa.c (attr_length_millicode_call): Remove second argument. Check
18236 INSN_ADDRESSES_SET_P in distance calculation.
18237 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
18238 INSN_ADDRESSES.
18239 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
18240 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
18241 Call attr_length_call directly.
18242 (attr_length_indirect_call, output_indirect_call,
18243 attr_length_save_restore_dltp): New functions.
18244 * pa.md (attr_length_millicode_call): Drop second argument from all
18245 patterns.
18246 (return_internal_pic): Delete.
18247 (return_external_pic): Remove use of PIC register and pic operand and
18248 flag checks.
18249 (epilogue): Use return_internal for both normal and pic code.
18250 (call, call_value): Emit new 32-bit pic patterns for symref and
18251 indirect calls. Remove uses for arg pointer and pic register.
18252 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
18253 call_reg_pic_post_reload, call_val_symref_pic,
18254 call_val_symref_pic_post_reload, call_val_reg_pic,
18255 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
18256 Implement define_split and define_peephole2 patterns for pre reload
18257 patterns.
18258 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
18259 call_value_internal_reg_64bit): Shorten names.
18260 (all call patterns): Explicitly indicate registers used and clobbered.
18261 Use attr_length_indirect_call and attr_length_save_restore_dltp for
18262 attribute length calculation. Move code generation for indirect calls
18263 to output_indirect_call.
18264 (sibcall, sibcall_value): Don't restore PIC register.
18265 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
18266 register retore.
18267
18268 2003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18269
18270 * doc/install.texi (Testing): Simplify and compress instructions
18271 concerning Dejagnu.
18272
18273 2003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18274
18275 * collect2.c (pexecute_pid): Rename to pid.
18276 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
18277 pid.
18278
18279 2003-02-01 Geoffrey Keating <geoffk@apple.com>
18280
18281 * doc/extend.texi (Function Attributes): Remove documentation
18282 for PowerPC Windows NT function attributes..
18283
18284 2003-02-01 Daniel Jacobowitz <drow@mvista.com>
18285
18286 * dwarf2out.c (gen_type_die): Check for typedefs before calling
18287 for TYPE_MAIN_VARIANT.
18288
18289 2003-02-01 Richard Henderson <rth@redhat.com>
18290
18291 * libgcc2.c: Include auto-host.h.
18292 (ATTRIBUTE_HIDDEN): New.
18293 (__clz_tab): Don't declare here for clz and ctz.
18294 (__clzsi2, __clzdi2): Use count_leading_zeros.
18295 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
18296 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
18297 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
18298 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
18299
18300 2003-02-01 Richard Henderson <rth@redhat.com>
18301
18302 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
18303 to the conditional.
18304 (ashlsi3_1_zext splitter): Likewise.
18305
18306 2003-02-01 Richard Henderson <rth@redhat.com>
18307
18308 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
18309 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18310 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
18311 return type to Wtype.
18312
18313 * libgcc-std.ver (GCC_3.4): Fix inheritance.
18314
18315 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
18316 expander input constraint.
18317
18318 2003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
18319
18320 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
18321 OTI_parity.
18322 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
18323 * optabs.c (widen_clz, expand_parity): New.
18324 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
18325 for libcalls to clz, ctz, popcount, and parity.
18326 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
18327 parity_optab, and set up libfunc handlers.
18328 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18329 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
18330 __popcount_tab): New.
18331 * libgcc2.h: Declare them.
18332 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
18333 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
18334 and parity_optab.
18335 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
18336 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
18337 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
18338 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
18339 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
18340 BUILT_IN_PARITYLL): New.
18341 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
18342 and add optab argument.
18343 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
18344 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
18345 * expr.c (expand_expr): Handle them.
18346 * fold-const.c (tree_expr_nonnegative_p): Likewise.
18347 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
18348 * reload1.c (eliminate_regs): Handle them.
18349 (elimination_effects): Likewise.
18350 * function.c (instantiate_virtual_regs_1): Likewise
18351 * genattrtab.c (check_attr_value): Likewise.
18352 * simplify-rtx.c (simplify_unary_operation): Likewise.
18353 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
18354 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
18355 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
18356 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
18357 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
18358 __builtin_arm_clz.
18359 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
18360 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
18361 * doc/extend.texi (Other Builtins): Add new builtins.
18362 * doc/md.texi (Standard Names): Add new patterns.
18363
18364 2003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
18365
18366 * reload.c: Revert 2003-01-31 change.
18367
18368 2003-02-01 Jan Hubicka <jh@suse.cz>
18369
18370 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
18371
18372 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
18373
18374 * flags.h (flag_volatile): Remove declaration.
18375 (flag_volatile_global, flag_volatile_static): Likewise.
18376 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
18377 * toplev.c (flag_volatile): Remove definition.
18378 (flag_volatile_global, flag_volatile_static): Likewise.
18379 (f_options): Remove corresponding entries here.
18380 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
18381 or flag_volatile_static.
18382 * doc/invoke.texi: Remove documentation of -fvolatile,
18383 -fvolatile-global and -fvolatile-static.
18384
18385 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18386
18387 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
18388 updating of total_code_bytes from prologue to epilogue.
18389
18390 2003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
18391
18392 * reload.c (find_reloads): Do not use the mode specified in the insn
18393 pattern as reload mode for address operands. Do not generate optional
18394 reloads for operands where a mandatory reload was already pushed.
18395 Generate optional reloads only in the final pass though find_reloads.
18396 (have_replacement_p): New function.
18397
18398 2003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18399
18400 * doc/install.texi (Testing): Remove a reference to our obsolete
18401 /testresults web pages and strip redundant information concerning
18402 test results.
18403 (Binaries): Refer to Microsoft Windows instead of listing all
18404 possible variants.
18405
18406 2003-02-01 Jan Hubicka <jh@suse.cz>
18407
18408 * loop.c (emit_prefetch_instructions): Do conversion at right place in
18409 RTL chain.
18410
18411 * combine.c (simplify_set): Reverse order of ragumetns to
18412 REG_CANNOT_CHANGE_MODE_P
18413 * df.c (df_def_record_1): Likewise.
18414 * recog.c (register_operand): Likewise.
18415 * simplify-rtx.c (simplify_subreg): Likewise.
18416 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
18417 CANNOT_CHANGE_MODE_CLASS.
18418 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
18419 Likewise.
18420 * reload.c (push_reload): Likewise.
18421 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18422 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18423 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18424 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
18425 * mips.c (mips_cannot_change_mode_class): Update.
18426 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18427 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18428 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18429 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18430 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
18431 * sh.c (sh_cannot_change_mode_class): Update.
18432 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
18433 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
18434
18435 2003-01-31 Geoffrey Keating <geoffk@apple.com>
18436
18437 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
18438 change to LINK_COMMAND_SPEC in gcc.c.
18439
18440 2003-01-31 Jan Hubicka <jh@suse.cz>
18441
18442 PR c/9506
18443 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
18444
18445 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18446
18447 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
18448 duplicated code.
18449
18450 2003-01-31 Nathan Sidwell <nathan@codesourcery.com>
18451
18452 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
18453 (BINFO_ELTS): New #define.
18454 * stor-layout.c (finalize_record_size): Don't set them.
18455 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
18456 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
18457 (BINFO_LANG_ELTS): New #define.
18458 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
18459 * java/class.c (make_class): Use BINFO_ELTS.
18460 (set_super_info): Likewse.
18461 (add_interface_do): Likewise.
18462 * objc/objc-act.c (start_class): Use BINFO_ELTS.
18463
18464 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
18465
18466 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
18467 (times): Don't ever declare if not HAVE_TIMES.
18468 (clock): Don't ever declare if not HAVE_CLOCK.
18469
18470 2003-01-30 Richard Henderson <rth@redhat.com>
18471
18472 * flow.c (update_life_info): Zap life info after cleanup_cfg.
18473 (regno_uninitialized): Use correct live at function entry set.
18474 (regno_clobbered_at_setjmp): Likewise.
18475
18476 * expr.c (store_expr): Promote all MEM intermediates to regs.
18477
18478 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18479
18480 * config/arm/arm.c: Fix comment typos.
18481 * config/arm/arm.h: Likewise.
18482 * config/arm/netbsd-elf.h: Likewise.
18483 * config/arm/netbsd.h: Likewise.
18484
18485 2003-01-30 Geoffrey Keating <geoffk@apple.com>
18486
18487 * gengtype.c (struct walk_type_data): Add needs_cast_p.
18488 (walk_type): Set needs_cast_p in walk_type_data.
18489 (write_types_process_field): Supply casts when required to suppress
18490 warnings.
18491 (write_root): Cast gt_pch_n_S to suppress warning.
18492 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
18493 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
18494 when they might exist.
18495 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
18496 insn-conditions.o, and rs6000.o.
18497
18498 2003-01-30 Richard Henderson <rth@redhat.com>
18499
18500 * ggc-page.c (G.context_depth_allocations): New.
18501 (G.context_depth_collections): New.
18502 (alloc_page): Set G.context_depth_allocations.
18503 (ggc_collect): Set G.context_depth_collections.
18504 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
18505 (ggc_pop_context): Early exit for no allocations or collections.
18506
18507 2003-01-30 Richard Henderson <rth@redhat.com>
18508
18509 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
18510
18511 2003-01-30 Richard Earnshaw <rearnsha@arm.com>
18512
18513 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
18514 size, the link register is always saved if any other register is
18515 saved.
18516
18517 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18518
18519 * config/h8300/h8300-protos.h: Update the prototype for
18520 compute_plussi_cc.
18521 (cpp_reader): Declare before it is used.
18522 * config/h8300/h8300.c (compute_plussi_cc): Change the return
18523 type to int.
18524 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
18525 see an unknown H8 variant.
18526
18527 2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
18528
18529 PR target/9316
18530 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
18531 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
18532 * config/rs6000/t-rtems: New file. multilib variants to match OS.
18533 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
18534 rs6000/t-ppcgas so we get the desired multilibs.
18535
18536 2003-01-30 Nick Clifton <nickc@redhat.com>
18537
18538 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
18539 when popping saved IP register off the stack.
18540
18541 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18542
18543 * config/rs6000/aix43.h: Fix comment typos.
18544 * config/rs6000/aix51.h: Likewise.
18545 * config/rs6000/aix52.h: Likewise.
18546 * config/rs6000/altivec.h: Likewise.
18547 * config/rs6000/rs6000.c: Likewise.
18548 * config/rs6000/rs6000.h: Likewise.
18549 * config/rs6000/rs6000.md: Likewise.
18550 * config/rs6000/spe.md: Likewise.
18551
18552 2003-01-29 Mark Mitchell <mark@codesourcery.com>
18553
18554 * c-common.c (builtin_define_float_constants): Define
18555 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
18556
18557 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18558
18559 * config/sh/lib1funcs.asm: Fix comment typos.
18560 * config/sh/linux.h: Likewise.
18561 * config/sh/sh.c: Likewise.
18562 * config/sh/sh.md: Likewise.
18563
18564 2003-01-30 Loren James Rittle <ljrittle@acm.org>
18565
18566 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
18567
18568 2003-01-30 Alexandre Oliva <aoliva@redhat.com>
18569
18570 * config/fp-bit.h (__make_dp): Declare if TMODES.
18571
18572 2003-01-29 Kazu Hirata <kazu@cs.umass.edu>
18573
18574 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
18575 general_operand_src and general_operand_dst.
18576
18577 2003-01-29 David Edelsohn <edelsohn@gnu.org>
18578
18579 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
18580 Return true for variable sized types.
18581 (rs6000_va_arg): Handle variable sized types passed by reference
18582 on non-SVR4 ABI.
18583
18584 2003-01-29 Richard Earnshaw <rearnsha@arm.com>
18585
18586 * arm.c (arm_legtimize_address): New function.
18587 * arm-protos.h (arm_legtimize_address): Add prototype.
18588 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
18589 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
18590 do ... while (0)
18591
18592 2003-01-29 Joel Sherrill <joel@OARcorp.com>
18593
18594 PR bootstrap/9296
18595 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
18596 depended on it being defined until now.
18597
18598 2003-01-29 Joel Sherrill <joel@OARcorp.com>
18599
18600 PR target/9295
18601 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
18602 RTEMS code knows which C++ initialization style the toolset
18603 configuration is using.
18604
18605 2003-01-29 Joel Sherrill <joel@OARcorp.com>
18606
18607 PR bootstrap/9293
18608 * config/m68k/t-crtstuff: Replace spaces with tabs, add
18609 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
18610
18611 2003-01-29 Joel Sherrill <joel@OARcorp.com>
18612
18613 PR bootstrap/9292
18614 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
18615 RTEMS threads.
18616 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
18617
18618 2003-01-29 Nick Clifton <nickc@redhat.com>
18619
18620 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
18621 not $(srcdir).
18622
18623 2003-01-29 Andrew Haley <aph@redhat.com>
18624
18625 * tree-inline.c (walk_tree): Add CHAR_TYPE.
18626
18627 2003-01-29 Jan Hubicka <jh@suse.cz>
18628
18629 * i386.md (subdi3_carry_rex64): Fix typo.
18630
18631 2003-01-28 Stan Shebs <shebs@apple.com>
18632
18633 * coretypes.h (cpp_reader): Forward declare struct.
18634 * c-pragma.h (cpp_reader): Remove forward declaration.
18635 * hashtable.h (cpp_reader): Likewise.
18636 * scan.h (cpp_reader): Likewise.
18637 * tree.h (cpp_reader): Likewise.
18638 * config/darwin-protos.h (cpp_reader): Likewise.
18639 * config/arm/arm-protos.h (cpp_reader): Likewise.
18640 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
18641 struct cpp_reader in prototypes.
18642
18643 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
18644
18645 * doc/install.texi: Add documentation for installation into
18646 tooldirs and with DESTDIR.
18647
18648 2003-01-28 Richard Henderson <rth@redhat.com>
18649
18650 * config.gcc (ia64*-*-aix*): Remove.
18651 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
18652 * config/ia64/unwind-aix.c: Remove file.
18653
18654 2003-01-28 Andreas Schwab <schwab@suse.de>
18655
18656 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
18657 register.
18658 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
18659 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
18660 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
18661 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
18662 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
18663 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
18664 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
18665
18666 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
18667
18668 * combine.c (nonzero_bits): Fix check for negative divide operands.
18669
18670 2003-01-28 Richard Henderson <rth@redhat.com>
18671
18672 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
18673 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
18674
18675 2003-01-28 Richard Henderson <rth@redhat.com>
18676
18677 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
18678
18679 * config/cris/cris.c (cris_address_cost): Make static.
18680 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
18681 * config/cris/cris.h (ADDRESS_COST): Remove.
18682 * config/cris/cris-protos.h: Update.
18683
18684 2003-01-23 Mike Stump <mrs@apple.com>
18685
18686 * regclass.c (init_reg_autoinc): New function.
18687 (regclass): Move initialization of forbidden_inc_dec_class from
18688 here...
18689 (init_regs): to here. Avoids reinitialization for each function,
18690 saving compilation time.
18691
18692 2003-01-28 Jason Merrill <jason@redhat.com>
18693
18694 * cpplib.h (struct cpp_options): Add warn_deprecated field.
18695 * cppinit.c (cpp_create_reader): Turn it on by default.
18696 * c-opts.c (c_common_decode_option): Set it.
18697 * cpplib.c (do_pragma_once): Only complain about #pragma once
18698 if warn_deprecated is set.
18699
18700 2003-01-28 Dale Johannesen <dalej@apple.com>
18701
18702 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
18703 * loop.c (scan_loop): Move movables on -Os rich-register targets.
18704 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
18705
18706 2003-01-28 Richard Henderson <rth@redhat.com>
18707
18708 * target.h (targetm.address_cost): New.
18709 * target-def.h (TARGET_ADDRESS_COST): New.
18710 (TARGET_RTX_COSTS): Uncomment. Oops.
18711 * cse.c (address_cost): Use new target hook.
18712 (default_address_cost): New.
18713 * output.h (default_address_cost): Declare.
18714 * hooks.c (hook_int_rtx_0): New.
18715 * hooks.h (hook_int_rtx_0): Declare.
18716 * loop.c (combine_givs_p): Remove if 0 code.
18717 * system.h (ADDRESS_COST): Poison.
18718
18719 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
18720 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
18721 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
18722 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
18723 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
18724 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
18725 config/xtensa/xtensa.c, config/xtensa/xtensa.h
18726 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
18727 (ADDRESS_COST): Remove.
18728
18729 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
18730 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
18731 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
18732 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
18733 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
18734 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
18735 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
18736 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
18737 config/mips/mips.c, config/mips/mips.h,
18738 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
18739 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
18740 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
18741 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
18742 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
18743 config/vax/vax.c, config/vax/vax.h
18744 (foo_address_cost): Make static.
18745 (TARGET_ADDRESS_COST): New.
18746 (ADDRESS_COST): Remove.
18747
18748 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
18749 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
18750 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
18751 config/stormy16/stormy16.h
18752 (ADDRESS_COST): Move code ...
18753 (foo_address_cost): ... here.
18754 (TARGET_ADDRESS_COST): New.
18755
18756 * config/m32r/m32r.c (m32r_address_cost): Remove.
18757 * config/m32r/m32r-protos.h: Update.
18758
18759 * config/mmix/mmix.c (mmix_address_cost): Remove.
18760 * config/mmix/mmix-protos.h: Update.
18761
18762 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
18763 mn10300_address_cost; move unsig allocation ...
18764 (mn10300_address_cost): ... here.
18765 (TARGET_ADDRESS_COST): New.
18766 * config/mn10300/mn10300-protos.h: Update.
18767 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
18768
18769 * doc/tm.texi: Update.
18770
18771 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
18772
18773 * haifa-sched.c (schedule_insn): Return necessary cycle advance
18774 after issuing the insn.
18775 (rank_for_schedule): Make a insn with /S the highest priority
18776 insn.
18777 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
18778 (choose_ready): Check SCHED_GROUP_P.
18779 (schedule_block): Advance cycle after issuing insn if it is
18780 necessary. Don't reorder insns if there is an insn with /S.
18781 (set_priorities): Ignore schedule groups.
18782
18783 * sched-deps.c (remove_dependence, group_leader): Remove the
18784 functions.
18785 (add_dependence): Ignore schedule groups.
18786 (set_sched_group_p): Don't make copy of dependencies from previous
18787 insn of the schedule group. Add anti-dependency to the previous
18788 insn of the schedule group.
18789 (compute_forward_dependences): Ignore schedule groups.
18790
18791 * sched-ebb.c (init_ready_list): Ignore schedule groups.
18792
18793 * sched-rgn.c (init_ready_list): Ditto.
18794 (can_schedule_ready_p): Ditto.
18795
18796 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
18797
18798 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
18799 register to another one.
18800
18801 2003-01-28 Richard Henderson <rth@redhat.com>
18802
18803 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
18804
18805 2003-01-28 Roger Sayle <roger@eyesopen.com>
18806
18807 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
18808
18809 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
18810
18811 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
18812 class contains a floating-point register, return the size of the
18813 mode in half words.
18814
18815 2003-01-28 Jan Hubicka <jh@suse.cz>
18816
18817 * i386.c (ix86_carry_flag_operator): New predicate.
18818 (fcmov_operator): Fix whitespace.
18819 (ix86_expand_carry_flag_compare): Deal with floating point.
18820 (ix86_expand_int_movcc): Deal with fp; update insn expansion
18821 (ix86_expand_int_addcc): Likewise.
18822 (ix86_expand_strlensi_unroll_1): likewsie.
18823 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
18824 * i386.md (add?i_carry_rex64): Use new predicate.
18825 (sub?i3_carry_rex64): Likewise.
18826 (x86_mov?icc_0_m1*): Likewise.
18827
18828 2003-01-28 Andreas Schwab <schwab@suse.de>
18829
18830 * cfgloopmanip.c (create_preheader): Initialize src to avoid
18831 warning.
18832
18833 * expmed.c (emit_store_flag): Fix cast to avoid sign
18834 comparison warning.
18835
18836 * combine.c (force_to_mode): Add cast to fix warning when
18837 STORE_FLAG_VALUE is negative.
18838
18839 2003-01-27 Richard Henderson <rth@redhat.com>
18840
18841 * Makefile.in (cse.o): Depend on TARGET_H.
18842 * cse.c (rtx_cost): Use targetm.rtx_costs.
18843 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
18844 * doc/tm.texi: Update.
18845
18846 * target.h (targetm.rtx_costs): New.
18847 * target-def.h (TARGET_RTX_COSTS): New.
18848 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
18849 * hooks.h: Update.
18850
18851 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
18852 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
18853 * config/alpha/alpha.h (PROCESSOR_MAX): New.
18854 (CONST_COSTS, RTX_COSTS): Remove.
18855
18856 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
18857 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
18858 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
18859 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
18860 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
18861 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
18862 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
18863 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
18864 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
18865 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
18866 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
18867 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
18868 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
18869 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
18870 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
18871 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
18872 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
18873 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
18874 config/v850/v850.c, config/v850/v850.h,
18875 config/xtensa/xtensa.c, config/xtensa/xtensa.h
18876 (CONST_COSTS, RTX_COSTS): Move code ...
18877 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
18878
18879 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
18880 (arm_rtx_costs, TARGET_RTX_COSTS): New.
18881 * config/arm/arm-protos.h: Update.
18882 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
18883
18884 * config/avr/avr.h (CONST_COSTS): Move code ...
18885 * config/avr/avr.c (avr_rtx_costs): ... here.
18886 (default_rtx_costs): Make static.
18887 * config/avr/avr-protos.h: Update.
18888
18889 * config/h8300/h8300.c (const_costs): Make static.
18890 (h8300_and_costs, h8300_shift_costs): Likewise.
18891 * config/h8300/h8300-protos.h: Update.
18892
18893 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
18894 (CONST_COSTS): Move code ...
18895 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
18896 default_rtx_costs; update for signature change.
18897 * config/ip2k/ip2k-protos.h: Update.
18898
18899 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
18900 (CONST_COSTS): Move code ...
18901 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
18902 (TARGET_RTX_COSTS): New.
18903 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
18904 * config/m68hc11/m68hc11-protos.h: Update.
18905
18906 * config/m68k/m68k.c (const_int_cost): Make static.
18907 * config/m68k/m68k-protos.h: Update.
18908
18909 * config/mcore/mcore.c (mcore_const_costs): Make static.
18910 (mcore_and_cost, mcore_ior_cost): Likewise.
18911 * config/mcore/mcore-protos.h: Update.
18912
18913 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
18914 (mmix_rtx_cost_recalculated): Remove.
18915 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
18916 * config/mmix/mmix-protos.h: Update.
18917
18918 * config/sh/sh.c (shiftcosts): Make static.
18919 (addsubcosts, andcosts, multcosts): Likewise.
18920 * config/sh/sh-protos.h: Update.
18921
18922 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
18923 (sparc_rtx_costs): Make static; update for change in signature.
18924 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
18925 * config/sparc/sparc-protos.h: Update.
18926
18927 * config/v850/v850.c (const_costs): Make static.
18928 * config/v850/v850-protos.h: Update.
18929
18930 * config/vax/vax.h (RTX_COSTS): Remove.
18931 (CONST_COSTS): Move code ...
18932 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
18933 from vax_rtx_cost.
18934 (vax_rtx_costs, TARGET_RTX_COSTS): New.
18935
18936 2003-01-27 Richard Henderson <rth@redhat.com>
18937
18938 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
18939 * config/vax/vax-protos.h: Update. Really.
18940
18941 2003-01-28 Alexandre Oliva <aoliva@redhat.com>
18942
18943 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
18944 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
18945 zero if no hardware floating point.
18946 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
18947 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
18948 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
18949 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
18950 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
18951 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
18952 even FP registers on N32 and N64.
18953 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
18954 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
18955 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
18956 even-register-like alignment to 128-bit arguments.
18957 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
18958 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
18959 on N32 or N64.
18960 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
18961 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
18962 (TPBIT): Set to tp-bit.c.
18963 (tp-bit.c): Create out of fp-bit.c.
18964
18965 2003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
18966
18967 * c-parse.in: Remove '%expect 32' directive in objc mode.
18968
18969 2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
18970
18971 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
18972 (LIBGCOV): New variable.
18973 (libgcc.mk): Add LIBGCOV.
18974 (LIBGCC_DEPS): Add libgcov.c.
18975 (libgcov.a): New target.
18976 (clean): Remove libgcov.a.
18977 (install-libgcc): Do libgcov too.
18978 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
18979 with libgcov.a.
18980 * libgcc2.c (L_gcov): Move into ...
18981 * libgcov.c: ... here. New file.
18982 * mklibgcc.in: Add libgcov rules.
18983 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
18984
18985 * doc/invoke.texi (profile-arcs, test-coverage): Update and
18986 clarify.
18987
18988 * profile.c (index_counts_file): Remove duplicate check for open file.
18989
18990 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
18991
18992 * gcc/doc/invoke.texi (Optimization Options): Group together
18993 optional and experimental flags. Move trapv and bounds-check
18994 out of this section. Group floating point flags together.
18995 (Code Gen Options): Move trapv and bounds-check to here.
18996
18997 2003-01-27 Josef Zlomek <zlomekj@suse.cz>
18998
18999 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
19000
19001 2003-01-27 Richard Earnshaw <rearnsha@arm.com>
19002
19003 PR optimization/9090
19004 * function.c (purge_addressof_1): After pushing an addressed register
19005 onto the stack, simplify the result.
19006
19007 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19008
19009 * doc/extend.texi: Fix typo.
19010
19011 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19012
19013 * doc/cppopts.texi: Fix typo.
19014 * doc/objc.texi: Likewise.
19015 * doc/passes.texi: Likewise.
19016
19017 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
19018
19019 * real.c (ibm_extended_format): Add 53 to minimum exponent.
19020 (encode_ibm_extended): Adjust.
19021
19022 2003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
19023
19024 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
19025 timevar_id enumerations.
19026
19027 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19028
19029 * combine.c: Fix formatting.
19030
19031 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19032
19033 * doc/gccint.texi: Update the copyright.
19034
19035 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19036
19037 * doc/cpp.texi: Fix typos.
19038 * doc/extend.texi: Likewise.
19039 * doc/gty.texi: Likewise.
19040 * doc/install.texi: Likewise.
19041 * doc/passes.texi: Likewise.
19042 * doc/rtl.texi: Likewise.
19043 * doc/tm.texi: Likewise.
19044
19045 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19046
19047 * config/ia64/fde-glibc.c: Fix comment typos.
19048 * config/ia64/hpux.h: Likewise.
19049 * config/ia64/ia64.c: Likewise.
19050 * config/ia64/ia64.h: Likewise.
19051 * config/ia64/unwind-ia64.c: Likewise.
19052
19053 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19054
19055 * config/i386/i386-modes.def: Fix comment typos.
19056 * config/i386/i386.c: Likewise.
19057 * config/i386/i386.md: Likewise.
19058
19059 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
19060
19061 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
19062 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
19063 ASM_FINISH_DECLARE_OBJECT before defining it.
19064 * toplev.c (rest_of_decl_compilation): Don't define
19065 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
19066 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
19067 parameters for DWARF2 targets because they _are_ used.
19068
19069 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
19070
19071 * fp-bit.h: Define macros for TFmode floating-point constants
19072 in IBM-extended TFmode types.
19073 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
19074 widths.
19075 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
19076 TFmode type.
19077
19078 * config/fp-bit.h: Define macros for TFmode floating-point
19079 constants in IEEE quad TFmode type. Declare functions according
19080 to L_ macros.
19081 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
19082 (TFtype, TItype, UTItype): Define if TMODES is defined.
19083 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
19084 (F_T_BITOFF, D_T_BITOFF): Define.
19085 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
19086 guaranteed to be wide enough.
19087 * config/fp-bit.c: Check for L_ macros for tf functions.
19088 (__thenan_tf): New.
19089 (nan): Adjust.
19090 (pack_d, unpack_d): Support IEEE 854 quad type.
19091 (_fpmul_parts): Support TFmode. Compute exponent adjustment
19092 from FRAC_NBITS, FRAC_BITS and NGARDS.
19093 (usi_to_float): Cast constants to be shifted to fractype
19094 instead of assuming long long is wide enough.
19095 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
19096
19097 2003-01-26 Andreas Jaeger <aj@suse.de>
19098
19099 * df.c: Remove prototype of unused function df_regno_rtl_debug.
19100
19101 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
19102
19103 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
19104 (DBBIT_FUNCS): Added _df_to_tf.
19105 (TPBIT_FUNCS): New.
19106 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
19107 (LIBGCC_DEPS): Added TPBIT.
19108 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
19109
19110 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
19111 been able to move the result to target.
19112
19113 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
19114 for the appropriate mode.
19115
19116 * calls.c (emit_library_call_value_1): Handle return values
19117 in a PARALLEL.
19118
19119 * rtl.c (get_mode_alignment): Moved to...
19120 * stor-layout.c: ... here.
19121
19122 * print-rtl.c (print_rtx): Don't print MEM details in
19123 GENERATOR_FILEs.
19124
19125 2003-01-26 Michael Hayes <mph@paradise.net.nz>
19126
19127 * df.h: Update comments, tidy formatting.
19128 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
19129 REVERSE, UNION, INTERSECTION. All uses updated.
19130 (OLD_DF_INTERFACE): Remove.
19131 (struct insn_info): Remove commented out insn field.
19132 * df.c: Update comments, tidy formatting.
19133 (df_def_table_realloc): Remove.
19134
19135
19136 2003-01-26 Alan Modra <amodra@bigpond.net.au>
19137
19138 * calls.c (save_fixed_argument_area): Tidy.
19139 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
19140 (expand_call): Comment typo fixes. Don't init low_to_save. Start
19141 call chain loop at 1 if !try_tail_call. Formatting.
19142 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
19143 Use save_fixed_argument_area and restore_fixed_argument_area.
19144
19145 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19146
19147 * df.c (df_uses_record): Handle CC0.
19148
19149 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
19150
19151 * reload.c (maybe_memory_address_p): New function.
19152 (find_reloads_address): Use it instead of memory_address_p.
19153
19154 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
19155
19156 * final.c (shorten_branches): Align the address of code label
19157 when computing initial lengths and addresses.
19158
19159 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19160
19161 * config/m68hc11/m68hc11.md: Fix a comment typo.
19162
19163 2003-01-25 Andreas Jaeger <aj@suse.de>
19164
19165 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
19166 TARGET_MACHO.
19167
19168 2003-01-25 Roger Sayle <roger@eyesopen.com>
19169
19170 * gcse.c (bypass_last_basic_block): New global variable.
19171 (bypass_block): Use redirect_edge_and_branch_force to redirect
19172 fall-through edges. Use bypass_last_basic_block to determine
19173 which blocks have valid PRE information.
19174 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
19175
19176 2003-01-25 Jan Hubicka <jh@suse.cz>
19177
19178 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
19179
19180 2003-01-25 Jan Hubicka <jh@suse.cz>
19181 Eric Botcazou <ebotcazou@libertysurf.fr>
19182 PR opt/8492
19183 * gcse.c (one_cprop_pass): Delete unreachable blocks.
19184
19185 2003-01-25 Richard Henderson <rth@redhat.com>
19186
19187 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
19188 from ia64_aix_select_rtx_section.
19189 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
19190 instead of saving and restoring flag_pic.
19191 (ia64_rwreloc_unique_section): Similarly.
19192 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
19193 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
19194 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
19195 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
19196
19197 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19198
19199 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
19200 comment.
19201
19202 2003-01-25 Richard Henderson <rth@redhat.com>
19203
19204 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
19205
19206 2003-01-25 Kelley Cook <kelleycook@comcast.net>
19207
19208 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
19209
19210 2003-01-25 Segher Boessenkool <segher@koffie.nl>
19211
19212 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
19213 type for bitmaps. Use unsigned long.
19214 (nBITMAP_WORD_BITS): New macro.
19215 (BITMAP_WORD_BITS): New macro.
19216 (rest of file): Use it.
19217 * bitmap.c: Use it.
19218
19219 2003-01-25 Richard Henderson <rth@redhat.com>
19220
19221 2002-02-19 Robert Lipe <robertlipe@usa.net>
19222 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
19223
19224 2003-01-25 Roger Sayle <roger@eyesopen.com>
19225
19226 * builtins.c (purge_builtin_constant_p): Scan insn stream
19227 sequentially rather than by basic block.
19228 * function.c (purge_addressof): Simplify test with INSN_P.
19229
19230 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19231
19232 * combine.c (simplify_comparison, case AND): Remove a redundant test.
19233
19234 2003-01-25 Roger Sayle <roger@eyesopen.com>
19235
19236 * function.h (struct function): New field calls_constant_p.
19237 (current_function_calls_constant_p): New macro for above.
19238 * function.c (prepare_function_start): Initialize calls_eh_return
19239 and calls_constant_p.
19240 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
19241 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
19242 when the current_function_calls_constant_p.
19243 * integrate.c (expand_inline_function): Set calls_constant_p if
19244 the function being inlined has calls_constant_p set.
19245
19246 2003-01-25 Roger Sayle <roger@eyesopen.com>
19247
19248 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
19249 optimizing, even if flag_gcse is true.
19250 * toplev.c (rest_of_compilation): purge_builtin_constant_p
19251 only needs to be called when "optimize > 0 && flag_gcse".
19252
19253 2003-01-25 Roger Sayle <roger@eyesopen.com>
19254
19255 * stmt.c (emit_case_bit_tests): New routine to implement suitable
19256 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
19257 (case_bit_test_cmp): New comparison function for "qsort" to order
19258 case_bit_tests by decreasing number of destination nodes.
19259 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
19260 (expand_end_case_type): Use emit_case_bit_tests to implement
19261 suitable switch statments.
19262 (CASE_USE_BIT_TESTS): New target macro to disable the above.
19263 * Makefile.in (stmt.o): Add dependency on optab.h.
19264 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
19265
19266 2003-01-23 Andreas Schwab <schwab@suse.de>
19267
19268 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
19269 __do_global_ctors_aux hidden global and don't put it in
19270 .init_array.
19271 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
19272 instead so that it comes first.
19273
19274 2003-01-25 Jan Hubicka <jh@suse.cz>
19275
19276 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
19277 subreg is read/modify.
19278
19279 2003-01-25 Jan Hubicka <jh@suse.cz>
19280
19281 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
19282 do libcall for large blocks.
19283 * i386.md (comi patterns): Set type to ssecomi.
19284 (sse2_unpck?pd): Fix mode of vec_select.
19285
19286 * cse.c: Include except.h
19287 (cse_set_around_loop): Do not create new basic blocks.
19288 * Makefile.in (cse.o): Add dependnecy on except.h
19289
19290 2003-01-25 Jan Hubicka <jh@suse.cz>
19291
19292 * builtins.c (fold_trunc_transparent_mathfn): New function.
19293 (fold_builtin): Use it.
19294 * convert.c (convert_to_real): Re-enable code to convert
19295 math functions; add support for floor familly functions.
19296
19297 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19298
19299 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
19300 dependencies on coretypes.h and $(TM_H).
19301
19302 2003-01-25 Jan Hubicka <jh@suse.cz>
19303
19304 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
19305
19306 2003-01-24 Stuart Hastings <stuart@apple.com>
19307
19308 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
19309
19310 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19311
19312 * config/c4x/c4x.md (UNSPEC_BU): New constants.
19313 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
19314 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
19315 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
19316 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
19317 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
19318 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
19319 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
19320
19321 2003-01-24 Jan Hubicka <jh@suse.cz>
19322
19323 * emit-rtl.c (reg_attrs_htab): New static variable.
19324 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
19325 functions.
19326 (reg_rtx): Do not maintain regno_decl.
19327 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
19328 set_mem_attrs_from_reg): New global function.
19329 (init_emit): Do not initialize regno_decl.
19330 (init_emit_once): initialize reg_attrs_htab.
19331 * final.c (alter_subreg): Do not replace REG by SUBREG.
19332 (gen_mem_expr_from_op): Improve output.
19333 (output_asm_operands): Likewise.
19334 * function.c (assign_params): Do not set REGNO_DECL.
19335 * function.h (struct function): Kill regno_decl.
19336 (REGNO_DECL): Kill.
19337 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
19338 * print_rtl.c (print_rtx): Output REG information.
19339 * regclass.c (reg_scan_mark_refs): Update attrs.
19340 * reload1.c (alter_reg): Likewise.
19341 * simplify_rtx.c (simplify_subreg): Likewise.
19342 * stmt.c (expand_decl): Likewise.
19343 * rtl.def (REG): Add new field.
19344 * rtl.h (struct reg_attrs): New.
19345 (rtunion_def): At rtreg.
19346 (X0MEMATTR): Add checking.
19347 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
19348 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
19349 Declare.
19350 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
19351
19352 2003-01-24 Bob Wilson <bob.wilson@acm.org>
19353
19354 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
19355 (xtensa_emit_call, print_operand): Fix printf format strings
19356 to avoid compile warnings.
19357 (xtensa_function_prologue, xtensa_function_epilogue): Change type
19358 of "size" argument to HOST_WIDE_INT to fix compile warnings.
19359 * config/xtensa/xtensa-protos.h
19360 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
19361
19362 2003-01-24 Jan Hubicka <jh@suse.cz>
19363
19364 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
19365 (implicit_built_in_decls): New global array.
19366 (mathfn_built_in): New global function.
19367 (fold_trunc_transparent_mathfn): New static function
19368 (expand_builtin_strstr, expand_bultin_strchr,
19369 expand_builtin_strpbrk, expand_builtin_strcpy,
19370 expand_builtin_strncpy, expand_bultin_strcmp,
19371 expand_bultin_strncat, expand_builtin_fputs): Use
19372 implicint_built_in_decls.
19373 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
19374 * builtins.def: Fix comments.
19375 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
19376 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
19377 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
19378 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
19379 (DEF_C99_C90RES_BULTIN): New.
19380 (*f, *l builtins): Update.
19381 * c-common.c (DEF_BUILTIN): Initialize implicit array.
19382 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
19383 * convert.c (strip_float_extensions): New global function.
19384 * tree.h (DEF_BUILTIN): Accept 10 arguments.
19385 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
19386 Declare.
19387 * java/builtins.c (define_builtin): Handle implicit.
19388 (DEF_BUILTIN): Update.
19389 * tm.texi (TARGET_C99_FUNCTIONS): Document.
19390 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
19391 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
19392 when using glibc2.
19393
19394 2003-01-24 Bob Wilson <bob.wilson@acm.org>
19395
19396 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
19397 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
19398 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
19399 * config/xtensa/crti.asm: New file.
19400 * config/xtensa/crtn.asm: New file.
19401 * config/xtensa/t-elf: New file.
19402 * config/xtensa/t-linux: New file.
19403 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
19404 Move various CFLAGS settings to new t-elf file.
19405
19406 2003-01-24 Richard Henderson <rth@redhat.com>
19407
19408 PR optimization/4382
19409 * tree-inline.c (find_builtin_longjmp_call_1): New.
19410 (find_builtin_longjmp_call): New.
19411 (inlinable_function_p): Use it.
19412
19413 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19414
19415 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
19416 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
19417 * config/i386/i386.c (function_arg_pass_by_reference): New.
19418 (ix86_va_arg): Support arguments passed by reference.
19419
19420 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19421
19422 * cfgloopanal.c: New file.
19423 * cfgloopmanip.c: New file.
19424 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
19425 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
19426 cfglayout.o): Add dependency on cfgloop.h.
19427 (cfgloop.o): Add flags.h dependency.
19428 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
19429 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
19430 (struct loop, struct loops, flow_loops_find, flow_loops_update,
19431 flow_loops_free, flow_loops_dump, flow_loop_dump,
19432 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
19433 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
19434 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
19435 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
19436 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
19437 find_common_loop, verify_loop_structure): Declarations moved to ...
19438 * cfgloop.h: New file.
19439 * bb-reorder.c (reorder_basic_blocks): Modified.
19440 * cfglayout.c: Include cfgloop.h.
19441 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
19442 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
19443 (break_superblocks): New static function.
19444 (cfg_layout_finalize): Use it.
19445 (cfg_layout_split_block): New function.
19446 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
19447 fields.
19448 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
19449 changed.
19450 (cfg_layout_split_block): Declare.
19451 * cfgloop.c: Include cfgloop.h and flags.h.
19452 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
19453 get_loop_body): Avoid signed versus unsigned comparison warnings.
19454 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
19455 loop_latch_edge): Modified.
19456 (verify_loop_structure): Modified to use flags stored in loop structure;
19457 check irreducible loops.
19458 (cancel_loop, cancel_loop_tree): New functions.
19459 (estimate_probability): Use loop analysis code for predictions.
19460 (estimate_loops_at_level): Avoid signed versus unsigned comparison
19461 warnings.
19462 * doloop.c: Include cfgloop.h.
19463 * loop.c: Include cfgloop.h.
19464 * predict.c: Include cfgloop.h.
19465 * toplev.c: Include cfgloop.h.
19466 * unroll.c: Include cfgloop.h.
19467 * tracer.c (tracer): Modified.
19468
19469 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
19470
19471 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
19472
19473 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
19474
19475 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
19476 * configure: Regenerate.
19477
19478 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
19479 (tls_symbolic_reference_mentioned_p): Add prototype.
19480 (s390_tls_get_offset): Add prototype.
19481 (emit_pic_move): Remove prototype, replace by ...
19482 (emit_symbolic_move): .. this new prototype.
19483
19484 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
19485 (tls_model_chars): New global variable.
19486 (s390_encode_section_info): Encode TLS model.
19487 Use targetm.binds_local_p to check for local symbols.
19488 (s390_strip_name_encoding): New function.
19489 (TARGET_STRIP_NAME_ENCODING): Define.
19490
19491 (get_thread_pointer): New function.
19492 (legitimize_tls_address): New function.
19493 (legitimize_address): Call it.
19494 (emit_pic_move): Remove, replace by ...
19495 (emit_symbolic_move): ... this new function.
19496
19497 (larl_operand): Handle TLS operands.
19498 (legitimate_constant_p): Likewise.
19499 (s390_decompose_address): Likewise.
19500 (s390_cannot_force_const_mem): New function.
19501 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
19502
19503 (s390_output_symbolic_const): Handle TLS unspecs.
19504 (print_operand): New code 'J'.
19505 (machine_function): Add struct member 'some_ld_name'.
19506 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
19507
19508 (enum s390_builtin): New type.
19509 (code_for_builtin_64, code_for_builtin_31): New global variables.
19510 (s390_init_builtins, s390_expand_builtin): New functions.
19511 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19512
19513 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
19514 (ASM_OUTPUT_LABELREF): Define.
19515 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
19516
19517 * config/s390/s390.md: Define TLS UNSPEC constants.
19518 ("movdi", "movsi"): Handle TLS operands.
19519 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
19520 ("*tls_load_64", "*tls_load_31"): New insns.
19521 ("call_value_tls", "call_value_tls_exp"): New expanders.
19522 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
19523 "bas_tls_64", "bas_tls_31"): New insns.
19524
19525 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
19526
19527 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
19528 spe ABI is configured, if requested.
19529
19530 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19531
19532 * doc/passes.texi: Fix typo.
19533
19534 2003-01-24 Andreas Schwab <schwab@suse.de>
19535
19536 * stor-layout.c (excess_unit_span): Only define if used.
19537
19538 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
19539
19540 * gcc/doc/invoke.texi (Optimization Options): List -O levels
19541 for each optimization flag.
19542
19543 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
19544
19545 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
19546
19547 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19548
19549 * doc/bugreport.texi: Use @command instead of @code for commands.
19550 * doc/collect2.texi: Likewise.
19551 * doc/headerdirs.texi: Likewise.
19552 * doc/invoke.texi: Likewise.
19553 * doc/standards.texi: Likewise.
19554 * doc/tm.texi: Likewise.
19555 * doc/trouble.texi: Likewise.
19556
19557 2003-01-24 Nick Clifton <nickc@redhat.com>
19558
19559 * config/arm/arm.c (use_return_insn): Do not use a single return
19560 instruction for interrupt handelrs which have to create a stack
19561 frame.
19562 (arm_expand_prologue): Do not pre-bias the return address of
19563 interrupt handlers which create a stack frame.
19564
19565 2003-01-24 Nick Clifton <nickc@redhat.com>
19566
19567 * Add sh2e support:
19568
19569 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
19570
19571 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
19572 med_cbranches. Fix logic in short_cbranches.
19573
19574 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
19575
19576 * config/sh/sh.md (delay for cbranch): Don't annul delay
19577 slots on SH2e.
19578 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
19579 cbranch with unfilled delay slot on SH2e.
19580 (output_branch): Fill with a nop the delay slot of a
19581 branch that required a delay slot but didn't get one.
19582
19583 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
19584
19585 * doc/invoke.texi (SH options): Document -m2e.
19586 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
19587 * config/sh/lib1funcs.asm: Likewise.
19588 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
19589 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
19590 not __sh1__.
19591 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
19592 SH2E up.
19593 (SH3E_BIT): Renamed to...
19594 (SH_E_BIT): ... this. Replace all uses.
19595 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
19596 Replace all uses of TARGET_SH3E with TARGET_SH2E.
19597 (TARGET_SWITCHES): Added 2e.
19598 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
19599 (processor_type): Added PROCESSOR_SH2E.
19600 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
19601 TARGET_SH2E, except in sqrtsf2_i.
19602 (attribute cpu): Added sh2e.
19603 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
19604 (MULTILIB_MATCHES): Use m2e multilib for m3e.
19605 * config.gcc: Add sh2e target support.
19606
19607 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
19608
19609 Rename -W to -Wextra.
19610 * c-decl.c: Update comments.
19611 * c-typeck.c: Likewise.
19612 * flags.h: Likewise.
19613 * function.c: Likewise.
19614 * stmt.c: Likewise.
19615 * toplev.c: Update comments.
19616 (W_options): Add 'extra'.
19617 (display_help): Remove '-W'.
19618 (decode_W_option): Special warn_uninitialized treatment in the case
19619 of -Wextra.
19620 * doc/invoke.texi: Update with new entries.
19621
19622 2003-01-23 Richard Henderson <rth@redhat.com>
19623
19624 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
19625 in no-else-block case. Add commentary.
19626
19627 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19628
19629 * configure.in: Revert last change.
19630
19631 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19632
19633 * configure.in: Don't include ansidecl.h in tconfig.h.
19634 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
19635 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
19636 ATTRIBUTE_UNUSED.
19637
19638 * configure: Regenerate.
19639
19640 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19641
19642 PR java/6748
19643 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
19644 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
19645 kernels.
19646
19647 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19648
19649 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
19650
19651 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
19652
19653 * genattrtab.c (write_attr_get): Mark 'insn' paramter
19654 as ATTRIBUTE_UNUSED.
19655
19656 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
19657
19658 * arm.c (thumb_base_register_rtx_p): New function.
19659 (thumb_index_register_rtx_p): New function.
19660 (thumb_legitimate_address_p): New function.
19661 (thumb_legitimate_offset_p): New function.
19662 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
19663 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
19664 definitions.
19665 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
19666 (THUMB_LEGITIMATE_OFFSET): Delte.
19667 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
19668 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
19669 (thumb_legitimate_offset_p): Likewise.
19670
19671 2003-01-23 Andreas Schwab <schwab@suse.de>
19672
19673 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
19674
19675 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19676
19677 * fixinc/Makefile.in (FL_LIST): Revert last change.
19678
19679 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19680
19681 PR other/7341
19682 * invoke.texi (ftest-coverage): Fix broken cross-reference.
19683 Change @code to @command for gcov command.
19684
19685 * gcc.texi: Adjust title of gcov section.
19686 Adjust copyright.
19687 * gcov.texi: Likewise.
19688
19689 2003-01-22 Roger Sayle <roger@eyesopen.com>
19690
19691 PR optimization/8423
19692 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
19693 its argument is constant, or 0 if !flag_gcse.
19694 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
19695 if it's argument is constant.
19696 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
19697 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
19698 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
19699 * builtins.c (purge_builtin_constant_p): New function to force
19700 instantiation of any remaining CONSTANT_P_RTX nodes.
19701 * rtl.h (purge_builtin_constant_p): Prototype here.
19702 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
19703 pass after GCSE and before loop.
19704 (flag_gcse): No longer static.
19705 * flags.h (flag_gcse): Prototype here.
19706
19707 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
19708
19709 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
19710 introduced by last change.
19711
19712 2003-01-22 Andreas Schwab <schwab@suse.de>
19713
19714 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
19715
19716 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
19717
19718 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
19719 request a scratch reg on H8S when the shift count is 8.
19720
19721 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
19722
19723 * config/s390/s390-protos.h (preferred_la_operand_p):
19724 Remove second parameter.
19725 * config/s390/s390.c (preferred_la_operand_p): Likewise.
19726 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
19727 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
19728 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
19729 Add peepholes to transform ADD to LOAD ADDRESS.
19730
19731 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
19732
19733 * arm.c (arm_address_register_rtx_p): New function.
19734 (arm_legitimate_address_p): New function.
19735 (arm_legitimate_index_p): New function.
19736 (legitimize_pic_address): Use arm_legitimate_index_p.
19737 * arm-protos.h (arm_legtimate_address_p): Add prototype.
19738 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
19739 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
19740
19741 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
19742
19743 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
19744 * config/s390/2064.md (define_bypass): Correct 'Load' and
19745 'Load-address' bypass values.
19746
19747 2003-01-22 Andreas Schwab <schwab@suse.de>
19748
19749 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
19750
19751 2003-01-21 Zack Weinberg <zack@codesourcery.com>
19752
19753 * genautomata.c (output_internal_insn_latency_func,
19754 output_print_reservation_func): Short circuit when there is no
19755 automaton to generate code for.
19756
19757 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19758
19759 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
19760 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
19761
19762 2003-01-21 Geoffrey Keating <geoffk@apple.com>
19763
19764 * config/rs6000/rs6000.md: Remove warning.
19765 (builtin_setjmp_receiver): Likewise.
19766 * config/darwin.c (update_stubs): Slightly improve terrible hack
19767 with identifiers. Add comment pointing out problems with it.
19768 (update_non_lazy_ptrs): Likewise.
19769
19770 2003-01-21 Richard Henderson <rth@redhat.com>
19771
19772 * dwarf2out.c (lookup_filename): Fix printf format warning.
19773 * system.h (fread_unlocked, fwrite_unlocked): Undef.
19774
19775 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
19776 (fixincl.o-warn, gnu-regex.o-warn): New.
19777 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
19778 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
19779 * fixinc/fixincl.c (process): Fix printf format warning.
19780
19781 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
19782
19783 * dwarf2out (output_file_names): Don't crash if called
19784 with empty file_table.
19785
19786 2003-01-21 Zack Weinberg <zack@codesourcery.com>
19787
19788 * genautomata.c (output_internal_insn_latency_func): Add
19789 missing break statement to generated code.
19790
19791 2003-01-21 Roger Sayle <roger@eyesopen.com>
19792
19793 * stmt.c (same_case_target_p): New function to determine whether
19794 two case labels branch to the same target. Split out from...
19795 (group_case_nodes): ... here. Use same_case_target_p instead.
19796 (strip_default_case_nodes): Remove explicit case nodes
19797 that branch to the default destination.
19798 (expand_end_case_type): Call strip_default_case_nodes after
19799 group_case_nodes, to simplify the case-list before we count it.
19800 Only generate table_label RTX when actually needed. Try to share
19801 thiscase->exit_label and thiscase->data.case_stmt.default_label
19802 when a switch has no explicit default case. Simplify test for
19803 constant index.
19804
19805 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
19806
19807 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
19808 \t.
19809 (*negsf2_h8300hs): Likewise.
19810 (*addsi3_lshiftrt_16_zexthi): Likewise.
19811 (*iorhi3_lshiftrt_8): Likewise.
19812
19813 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
19814
19815 * dwarf2out.c (fde_table_in_use): Mark GTY.
19816 (dwarf2out_cfi_label_num): New variable, marked GTY.
19817 (dwarf2out_cfi_label): Use it instead of static label_num.
19818 * emit-rtl.c (label_num): Mark GTY.
19819
19820 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
19821
19822 * config/h8300/h8300.c (output_plussi): Support H8/300.
19823 (compute_plussi_length): Likewise.
19824 (compute_plussi_cc): Likewise.
19825 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
19826 output assembly instructions.
19827
19828 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19829
19830 * calls.c (fix_unsafe_tree): Prototype.
19831
19832 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
19833 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
19834 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
19835 c-parse.o-warn): Add -Wno-error.
19836 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
19837
19838 * configure.in (--enable-werror): Add new flag.
19839 * doc/install.texi (--enable-werror): Document.
19840 * configure: Regenerate.
19841
19842 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
19843
19844 2003-01-21 Andreas Schwab <schwab@suse.de>
19845
19846 * genautomata.c (output_internal_insn_latency_func): Fix missing
19847 close paren in output.
19848
19849 2003-01-21 Zack Weinberg <zack@codesourcery.com>
19850
19851 * genautomata.c: Space savings in generated code:
19852 (output_dfa_insn_code_func): Split out the table-enlargement
19853 path to an out-of-line static function, dfa_insn_code_enlarge.
19854 (output_internal_insn_latency_func): Use a lookup table for the
19855 default latencies.
19856 (output_print_reservation_func): Use a lookup table for the
19857 strings.
19858
19859 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
19860
19861 PR opt/7507
19862 * calls.c (fix_unsafe_tree): Split out from ...
19863 (expand_call): ... here. Use it on the function address too.
19864
19865 2003-01-20 Richard Henderson <rth@redhat.com>
19866
19867 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
19868
19869 2003-01-20 Richard Henderson <rth@redhat.com>
19870
19871 PR opt/7154
19872 * stmt.c (expand_asm_operands): Validize memory operands.
19873
19874 2003-01-20 Richard Henderson <rth@redhat.com>
19875
19876 PR opt/8848
19877 * ifcvt.c (noce_process_if_block): Correct arguments to
19878 modified_between_p for no-else-block case.
19879
19880 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19881
19882 * config/h8300/h8300.c (const_costs): Remove a warning.
19883 (output_plussi): Likewise.
19884 (compute_plussi_length): Likewise.
19885 (compute_plussi_cc): Likewise.
19886
19887 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19888
19889 * config/h8300/h8300.md (addsi_h8300): Remove the last
19890 alternative.
19891
19892 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19893
19894 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
19895
19896 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19897
19898 * system.h (__NO_STRING_INLINES): Define.
19899
19900 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19901
19902 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
19903 is not a scalar int mode.
19904
19905 2003-01-20 Roger Sayle <roger@eyesopen.com>
19906
19907 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
19908 insn's notes following a substitution inside a libcall.
19909
19910 2003-01-20 Zack Weinberg <zack@codesourcery.com>
19911
19912 * configure.in: Check for system-provided 'uchar' type.
19913 * configure, config.in: Regenerate.
19914 * cpphash.h: Only typedef 'uchar' if the system doesn't.
19915
19916 2003-01-20 Richard Henderson <rth@redhat.com>
19917
19918 * expr.h (MUST_PASS_IN_STACK): Move implementation...
19919 * calls.c (default_must_pass_in_stack): ... here.
19920
19921 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
19922
19923 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
19924
19925 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
19926
19927 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
19928 Wrap up definition of `insn_alts'.
19929
19930 * genattrtab.c (main): Wrap up `insn_alts'.
19931
19932 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19933
19934 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
19935 prototyping.
19936 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
19937
19938 * config.in, configure: Regenerate.
19939
19940 2003-01-20 Nick Clifton <nickc@redhat.com>
19941
19942 * config/arm/arm.md (sibcall_epilogue): Add an
19943 UNSPEC_PROLOGUE_USE to prevent the link register from being
19944 considered dead.
19945
19946 2003-01-20 Jan Hubicka <jh@suse.cz>
19947
19948 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
19949
19950 2003-01-20 Andreas Schwab <schwab@suse.de>
19951
19952 * system.h: Don't declare strsignal if the decl test hasn't been
19953 run yet.
19954
19955 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19956
19957 * config/h8300/h8300.c (notice_update_cc): Don't assume that
19958 recog_data.operands[0] is always associated with cc0.
19959
19960 2003-01-19 David Edelsohn <edelsohn@gnu.org>
19961
19962 * collect2.c (ldgetname): Expand declaration to prototype.
19963 * read-rtl.c (atoll): Add prototype.
19964 * system.h (strsignal): Also declare if no declaration found.
19965
19966 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
19967
19968 * config.gcc (mips64*-*-linux*): Added.
19969 * config/mips/linux64.h, config/mips/t-linux64: New file.
19970 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
19971 * config/mips/mips.c (override_options): Use it.
19972 * config/mips/mips.h (TARGET_SWITCHES): Added...
19973 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
19974 * Makefile.in (SPECS): New.
19975 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
19976 * gcc.c (process_command): Move self-spec processing past spec
19977 file loading.
19978 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
19979 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
19980 CRTSTUFF_T_CFLAGS.
19981 (SPECS): Document.
19982 * doc/invoke.texi (-mabi-fake-default): Document.
19983
19984 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
19985
19986 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
19987 z_reg, z_reg_qi): Declare static and GTY().
19988 (da_reg): Remove.
19989 (create_regs_rtx): Don't create da_reg.
19990 ("gt-m68hc11.h"): Include for GTY roots.
19991 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
19992 and GTY() here.
19993 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
19994 (m68hc11_soft_tmp_reg): Likewise.
19995 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
19996
19997 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
19998
19999 * basic-block.h: Fix comment formatting.
20000 * calls.c: Likewise.
20001 * combine.c: Likewise.
20002 * convert.c: Likewise.
20003 * gcov.c: Likewise.
20004 * haifa-sched.c: Likewise.
20005 * libgcc2.c: Likewise.
20006 * loop.c: Likewise.
20007 * profile.c: Likewise.
20008 * system.h: Likewise.
20009
20010 2003-01-18 Roger Sayle <roger@eyesopen.com>
20011
20012 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
20013
20014 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20015
20016 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
20017
20018 2003-01-17 Dale Johannesen <dalej@apple.com>
20019
20020 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
20021 (*floatunssidf2_internal): Ditto.
20022
20023 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
20024
20025 * alias.c: Fix comment typos.
20026 * basic-block.h: Likewise.
20027 * c-common.c: Likewise.
20028 * c-common.h: Likewise.
20029 * c-decl.c: Likewise.
20030 * c-opts.c: Likewise.
20031 * c-pragma.c: Likewise.
20032 * c-pretty-print.h: Likewise.
20033 * cfg.c: Likewise.
20034 * cfganal.c: Likewise.
20035 * cfgbuild.c: Likewise.
20036 * cfgcleanup.c: Likewise.
20037 * cfglayout.c: Likewise.
20038 * cfgrtl.c: Likewise.
20039 * convert.c: Likewise.
20040 * cpphash.h: Likewise.
20041 * cpplex.c: Likewise.
20042 * cpplib.h: Likewise.
20043 * df.h: Likewise.
20044 * diagnostic.c: Likewise.
20045 * diagnostic.h: Likewise.
20046 * dwarf2.h: Likewise.
20047
20048 2003-01-17 Stan Shebs <shebs@apple.com>
20049
20050 * config/darwin-protos.h: Forward-declare struct cpp_reader.
20051
20052 2003-01-17 Douglas B Rupp <rupp@gnat.com>
20053
20054 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
20055 mistake in last checkin.
20056
20057 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
20058
20059 * et-forest.c: Fix comment typos.
20060 * et-forest.h: Likewise.
20061 * except.c: Likewise.
20062 * expr.c: Likewise.
20063 * flags.h: Likewise.
20064 * flow.c: Likewise.
20065 * gcc.c: Likewise.
20066 * gcse.c: Likewise.
20067 * genattrtab.c: Likewise.
20068 * genautomata.c: Likewise.
20069 * gengtype.c: Likewise.
20070 * genrecog.c: Likewise.
20071 * global.c: Likewise.
20072 * gthr-rtems.h: Likewise.
20073
20074 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20075
20076 * i386.c (x86_function_profiler): Fix format specifier.
20077
20078 2003-01-17 Richard Henderson <rth@redhat.com>
20079
20080 * gengtype.c (walk_type): Allow paramN_is.
20081
20082 2003-01-17 Nick Clifton <nickc@redhat.com>
20083
20084 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
20085
20086 2003-01-16 Richard Henderson <rth@redhat.com>
20087
20088 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
20089
20090 2003-01-16 Richard Henderson <rth@redhat.com>
20091
20092 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
20093 (alpha_next_sequence_number): Likewise.
20094 (alpha_this_literal_sequence_number): Likewise.
20095 (alpha_this_gpdisp_sequence_number): Likewise.
20096 (struct alpha_funcs, alpha_funcs_num): Likewise.
20097 (struct alpha_links): Fix branch merge error.
20098 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
20099
20100 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
20101
20102 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
20103 R. Ghazi.
20104
20105 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
20106
20107 * ifcvt.c: Fix comment typos.
20108 * lcm.c: Likewise.
20109 * libgcc2.c: Likewise.
20110 * local-alloc.c: Likewise.
20111 * loop.c: Likewise.
20112 * predict.c: Likewise.
20113 * ra-build.c: Likewise.
20114 * ra.c: Likewise.
20115 * ra-colorize.c: Likewise.
20116 * ra.h: Likewise.
20117 * ra-rewrite.c: Likewise.
20118 * regmove.c: Likewise.
20119 * reload.h: Likewise.
20120 * rtlanal.c: Likewise.
20121 * toplev.c: Likewise.
20122 * tree.h: Likewise.
20123 * unwind-dw2-fde-glibc.c: Likewise.
20124 * vmsdbgout.c: Likewise.
20125
20126 2003-01-16 Richard Henderson <rth@redhat.com>
20127
20128 * dwarf2out.c (struct file_table): Remove.
20129 (FILE_TABLE_INCREMENT): Remove.
20130 (file_table): Make a varray; mark for GC. Update all users.
20131 (file_table_last_lookup_index): Extract from struct file_table.
20132 (output_file_names): Fix unsigned compare warnings.
20133 (add_name_attribute): Remove inline marker.
20134 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
20135 (lookup_filename): Don't manage size of file_table.
20136 (init_file_table): Allocate file_table with GC.
20137 (dwarf2out_init): Don't record main_input_filename here.
20138 (dwarf2out_finish): Do it here instead.
20139
20140 2003-01-16 Bruce Korb <bkorb@gnu.org>
20141
20142 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
20143
20144 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
20145
20146 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
20147 instead of rotldi3_mextr.
20148
20149 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
20150
20151 * haifa-sched.c (move_insn): Restore moving all schedule group.
20152 (set_priorities): Restore taking SCHED_GROUP_P into account.
20153
20154 * sched-deps.c (add_dependence): Restore processing the last group
20155 insn.
20156 (remove_dependence, group_leader): Restore the functions.
20157 (set_sched_group_p): Restore adding dependencies from previous insn
20158 in the group.
20159 (compute_forward_dependences): Restore usage of group_leader.
20160
20161 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
20162 account.
20163
20164 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
20165 account.
20166 (can_schedule_ready_p): Ditto.
20167 (add_branch_dependences): Restore skipping over the group insns.
20168
20169 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20170
20171 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
20172 68HC12 pre/post inc/dec side effects.
20173
20174 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20175
20176 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
20177
20178 2003-01-16 J"orn Rennecke <amylaar@onetel.net.uk>
20179
20180 * sh.md (mshflo_w_x): Fix description of operation.
20181
20182 2003-01-16 Zack Weinberg <zack@codesourcery.com>
20183
20184 * config/rs6000/rs6000.h: Mention Altivec registers in
20185 commentary. Fix typo.
20186
20187 2003-01-16 David Edelsohn <edelsohn@gnu.org>
20188
20189 * config/rs6000/rs6000.md (movti_string): Remove clobber.
20190 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
20191 generate PARALLEL with clobber for TARGET_POWER.
20192
20193 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20194
20195 * ra-colorize.c (colorize_one_web): Initialize variable.
20196 * regmove.c (fixup_match_1): Likewise.
20197 * reload1.c (reload_as_needed): Likewise.
20198 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
20199
20200 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20201
20202 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
20203
20204 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20205
20206 * dbxout.c (lastfile, cwd): Fix `unused' warning.
20207 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
20208 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
20209 is_main_source, file_table, decl_die_table_in_use,
20210 abbrev_die_table_in_use, line_info_table_in_use,
20211 separate_line_info_table_in_use, pubname_table_in_use,
20212 arange_table_in_use, ranges_table_in_use,
20213 current_function_has_inlines): Likewise.
20214 * flow.c (life_analysis): Likewise.
20215 * genemit.c (gen_insn): Likewise.
20216 * protoize.c (cplus_suffix): Likewise.
20217
20218 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
20219 * arm.h (ROUND_UP_WORD): Likewise.
20220
20221 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
20222 warning.
20223 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
20224 init_emit_once): Likewise.
20225 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
20226 Likewise.
20227 * function.c (assign_stack_temp_for_type): Likewise.
20228 * loop.c (loop_invariant_p): Likewise.
20229 * recog.c (push_operand): Likewise.
20230 * regclass.c (init_reg_sets_1): Likewise.
20231 * reload.c (update_auto_inc_notes): Likewise.
20232 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
20233 * stmt.c (expand_asm_operands): Likewise.
20234 * stor-layout.c (start_record_layout): Likewise.
20235
20236 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
20237
20238 * config/c4x/c4x.md (epilogue): Correct last patch.
20239
20240 2003-01-15 Richard Henderson <rth@redhat.com>
20241
20242 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
20243 also check that GP is being used.
20244 (alpha_find_lo_sum_using_gp): New.
20245 (alpha_does_function_need_gp): Use get_attr_usegp.
20246 * config/alpha/alpha-protos.h: Update.
20247 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
20248 as needed.
20249
20250 2003-01-15 Roger Sayle <roger@eyesopen.com>
20251
20252 * gcse.c (one_cprop_pass): Change function arguments to take both
20253 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
20254 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
20255 (bypass_jumps): New function to perform separate jump bypassing pass.
20256 * rtl.h (bypass_jumps): Add function prototype.
20257 * timevar.def (TV_BYPASS): New timing variable.
20258 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
20259 (dump_file): New entry for the bypass RTL dump file.
20260 (rest_of_compilation): Insert new jump bypassing optimization
20261 pass after loop.
20262 * doc/passes.texi: Document new pass.
20263
20264 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
20265
20266 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
20267 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
20268 * pa.h (TARGET_SOM_SDEF): Define.
20269 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
20270
20271 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20272
20273 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
20274 allocate 4-bytes of locals on 68HC11.
20275 (expand_epilogue): Likewise.
20276 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
20277
20278 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
20279
20280 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
20281 and -mshort-double to the assembler to specify the ABI.
20282 (LINK_SPEC): Likewise.
20283 (CPP_SPEC): Pass HCS12 specific define.
20284 (MASK_M68S12): New define.
20285 (TARGET_M68S12): Likewise.
20286 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
20287 (TARGET_VERSION): Update.
20288 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
20289 (LINK_SPEC): Update.
20290 (ASM_SPEC): Update.
20291 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
20292 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
20293
20294 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
20295
20296 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
20297 the return code.
20298
20299 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
20300
20301 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
20302 flag before setting it.
20303
20304 2003-01-15 Roger Sayle <roger@eyesopen.com>
20305
20306 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
20307 when loop condition is known true, i.e. "while (1) { ... }".
20308 (genrtl_for_stmt): Similarly for "for" statements.
20309
20310 2003-01-15 Roger Sayle <roger@eyesopen.com>
20311
20312 * real.c (real_sqrt): Return a bool result indicating whether
20313 a floating point exception or trap should be raised.
20314 * real.h (real_sqrt): Update function prototype.
20315 * builtins.c (fold_builtin): Only fold non-trapping square
20316 roots unless we're ignoring errno and trapping math.
20317
20318 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
20319
20320 * expr.h (emit_conditional_add): Add PARAMS to declaration.
20321 * gengtype-lex.l (malloc, realloc): Move defines after include of
20322 system.h. Remove duplicate include of system.h.
20323
20324 2003-01-15 Roger Sayle <roger@eyesopen.com>
20325
20326 PR middle-end/9009
20327 * optabs.c (expand_unop): When manipulating the FP sign bit
20328 using integer operations, account for targets with different
20329 integer and FP word orders.
20330 (expand_abs): Likewise.
20331
20332 2003-01-15 David Edelsohn <edelsohn@gnu.org>
20333
20334 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
20335 file extension in section name.
20336
20337 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
20338
20339 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
20340 constant offset.
20341
20342 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
20343
20344 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
20345 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
20346 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
20347 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
20348
20349 2003-01-15 Jan Hubicka <jh@suse.cz>
20350
20351 PR f/9258
20352 * global.c (struct allocno): Add no_stack_reg.
20353 (global_conflicts): Set no_stack_reg.
20354 (find_reg): Use it.
20355
20356 * convert.c (convert_to_real): Fold - and abs only when profitable.
20357 * fold-const.c (fold): Fold truncates in - and abs.
20358
20359 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
20360
20361 Segher Boessenkool <segher@koffie.nl>
20362
20363 * predict.c (real_inv_br_prob_base): New variable.
20364 (propagate_freq): Use multiply by reciprocal instead of
20365 division. Don't divide by 1.0 at all.
20366 (estimate_bb_frequencies): Similar.
20367
20368 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
20369
20370 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
20371 * configure: Rebuilt.
20372
20373 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
20374
20375 * config/s390/s390.c (s390_safe_attr_type): New function.
20376 (s390_use_dfa_pipeline_interface): New function, return true for z900.
20377 (s390_issue_rate): New function.
20378 (s390_agen_dep_p): New function.
20379 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
20380 (s390_adjust_cost): Return 'cost' if new DFA is used.
20381 (s390_adjust_priority): Delete function.
20382 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
20383 * config/s390/s390.md (atype attribute): Attribute 'atype' default
20384 determined by 'op_type'.
20385 (type attribute): Added more type attributes.
20386 * config/s390/2064.md: New DFA description for z900 pipeline.
20387
20388 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
20389
20390 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
20391 forced to memory. Fixes PR bootstrap/9036.
20392
20393 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
20394 to set $gp before the call.
20395
20396 2003-01-14 Richard Henderson <rth@redhat.com>
20397
20398 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
20399 for force_const_mem.
20400
20401 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20402
20403 * genattr.c (main): Rearrange output to avoid prototype warning.
20404 * genautomata.c (transform_3): Fix ambiguous-else warning.
20405 * local-alloc.c (requires_inout): Add parentheses around
20406 assignment used as truth-value.
20407 * timevar.c: Move system includes above local includes. Include
20408 toplev.h
20409 * Makefile.in (timevar.o): Depend on toplev.h.
20410
20411 2003-01-14 Denis Chertykov <denisc@overta.ru>
20412
20413 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
20414 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
20415
20416 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
20417 attributes.
20418 (TARGET_ATTRIBUTE_TABLE): New macro.
20419 (valid_machine_type_attribute): Remove.
20420 (valid_machine_decl_attribute): Remove.
20421 (ip2k_handle_progmem_attribute): New function.
20422 (ip2k_handle_fndecl_attribute): New function.
20423
20424 2003-01-10 Andrew Haley <aph@redhat.com>
20425
20426 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
20427 registers to be in correct order. Add rip.
20428
20429 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
20430
20431 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
20432 (*iorsi3_and_lshiftrt_9_sb): Likewise.
20433
20434 2003-01-14 Jan Hubicka <jh@suse.cz>
20435
20436 * convert.c (strip_float_extensions): Look for narrowest type handling
20437 FP constants.
20438
20439 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
20440 float1 CMP float2.
20441 * convert.c (strip_float_extensions): Make global.
20442 * tree.h (strip_float_extensions): Declare.
20443
20444 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
20445
20446 * timevar.def: define TV_NAME_LOOKUP.
20447 * timevar.c (timevar_pop): Be verbose when aborting.
20448
20449 2003-01-13 Andreas Schwab <schwab@suse.de>
20450
20451 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
20452 $(parsedir), just move the temporary file at the end.
20453 ($(parsedir)/gengtype-yacc.c): Likewise.
20454
20455 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
20456
20457 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
20458 ${ac_tool_prefix} to ADAC or CC. Protect them from word
20459 splitting.
20460 * configure: Rebuilt.
20461
20462 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20463
20464 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
20465 internal_mcount): Don't use PARAMS.
20466 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
20467 ISO C style.
20468 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
20469
20470 2003-01-13 Andreas Schwab <schwab@suse.de>
20471
20472 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
20473 directive.
20474
20475 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
20476
20477 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
20478 (*iorsi3_and_lshiftrt_n_sb): Likewise.
20479
20480 2003-01-12 Mark Mitchell <mark@codesourcery.com>
20481
20482 PR c++/9264
20483 * c-lex.c (c_lex): Set the token value to error_mark_node for
20484 invalid numeric constants.
20485
20486 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20487
20488 * c-pch.c (asm_file_startpos): Change to `long'.
20489 (pch_init): Use ftell, not ftello.
20490 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
20491 Use `long' instead of `off_t'.
20492 (c_common_read_pch): Likewise.
20493 * ggc-common.c (gt_pch_save): Use long/ftell instead of
20494 off_t/ftello.
20495
20496 2003-01-12 Alan Modra <amodra@bigpond.net.au>
20497
20498 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
20499
20500 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
20501
20502 * arm-protos.h (struct cpp_reader): Add declaration.
20503
20504 2003-01-11 Jan Hubicka <jh@suse.cz>
20505
20506 PR target/9068
20507 * i386.c (output_fp_compare): Fix typo.
20508
20509 2003-01-10 David Edelsohn <edelsohn@gnu.org>
20510
20511 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
20512
20513 2003-01-10 Geoffrey Keating <geoffk@apple.com>
20514
20515 * Makefile.in (parsedir): New variable.
20516 (docobjdir): New variable.
20517 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
20518 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
20519 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
20520 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
20521 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
20522 Use docobjdir.
20523 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
20524 objc.maintainer-clean): Use parsedir.
20525
20526 * varasm.c (struct constant_descriptor_rtx): Remove unused
20527 `label' field.
20528
20529 * toplev.c (documented_lang_options): Document -Winvalid-pch.
20530
20531 2003-01-10 Richard Henderson <rth@redhat.com>
20532
20533 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
20534 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
20535
20536 2003-01-10 Richard Henderson <rth@redhat.com>
20537
20538 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
20539 not INTEGRAL_MODE_P when widening extensions.
20540
20541 2003-01-10 Richard Henderson <rth@redhat.com>
20542
20543 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
20544
20545 2003-01-10 Geoffrey Keating <geoffk@apple.com>
20546
20547 * ggc-page.c (ggc_collect): Avoid overflow computing
20548 min_expand.
20549
20550 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
20551 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
20552 Remove calls.
20553 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
20554
20555 2003-01-10 Jan Hubicka <jh@suse.cz>
20556
20557 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
20558 with weird operands.
20559
20560 2003-01-10 Dale Johannesen <dalej@apple.com>
20561
20562 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
20563 parameters. Call check_sibcall_argument_overlap if indicated.
20564 (check_sibcall_argument_overlap): Add mark_stored_args_map
20565 parameter. Don't mark parameter area as clobbered if not set.
20566 (expand_call): Adjust calls to above.
20567
20568 2003-01-10 Kelley Cook <kelleycook@comcast.net>
20569
20570 * configure.in (linker read-only and read-write section mixing):
20571 Squelch some assembler warnings.
20572 * configure: Likewise.
20573
20574 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
20575
20576 * doc/invoke.texi: Document -mtune, delete -mcpu
20577 option for S/390 and zSeries.
20578 * config/s390/s390.c (s390_tune_string) New variable.
20579 (s390_cpu_string) Delete variable.
20580 (override_options): Use s390_tune_string instead of
20581 s390_cpu_string.
20582 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
20583
20584 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
20585
20586 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
20587
20588 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
20589
20590 * jump.c (next_nonnote_insn_in_loop): New function.
20591 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
20592 next_nonnote_insn.
20593 (duplicate_loop_exit_test). Likewise.
20594
20595 2003-01-09 Geoffrey Keating <geoffk@apple.com>
20596
20597 Merge from pch-branch:
20598
20599 2003-01-06 Geoffrey Keating <geoffk@apple.com>
20600
20601 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
20602 load.
20603
20604 2002-12-24 Geoffrey Keating <geoffk@apple.com>
20605
20606 * cpplib.c (count_registered_pragmas): New function.
20607 (save_registered_pragmas): New function.
20608 (_cpp_save_pragma_names): New function.
20609 (restore_registered_pragmas): New function.
20610 (_cpp_restore_pragma_names): New function.
20611 * cpphash.h (_cpp_save_pragma_names): Prototype.
20612 (_cpp_restore_pragma_names): Likewise.
20613 * cpppch.c (struct save_macro_item): Split from save_macro_data.
20614 (struct save_macro_data): New field 'saved_pragmas'.
20615 (save_macros): Update for changes to struct save_macro_data.
20616 (cpp_prepare_state): Call _cpp_save_pragma_names, update
20617 for changes to struct save_macro_data.
20618 (cpp_read_state): Call _cpp_restore_pragma_names, update
20619 for changes to struct save_macro_data.
20620
20621 * cpppch.c (cpp_read_state): Restore the hashtable references
20622 in the cpp_reader.
20623
20624 * tree.h (built_in_decls): Mark for PCH.
20625
20626 * dbxout.c (lastfile): Don't mark for PCH.
20627
20628 * ggc.h: Document PCH calls into memory managers.
20629
20630 2002-12-18 Geoffrey Keating <geoffk@apple.com>
20631
20632 * doc/invoke.texi (Precompiled Headers): Document the
20633 directory form of PCH.
20634 * cppfiles.c (validate_pch): New function.
20635 (open_file_pch): Search suitably-named directories for PCH files.
20636
20637 2002-12-14 Geoffrey Keating <geoffk@apple.com>
20638
20639 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
20640 reorder options.
20641 (Type Information): Mention that the information is also
20642 used to implement PCH.
20643 * doc/passes.texi (Passes): Improve documentation of
20644 language-specific files.
20645
20646 2002-12-11 Geoffrey Keating <geoffk@apple.com>
20647
20648 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
20649 (struct walk_type_data): Add reorder_fn field.
20650 (walk_type): Process 'reorder' option.
20651 (write_types_process_field): Reorder parameters to gt_pch_note_object,
20652 call reorder_note_routine.
20653 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
20654 (ggc_wtd): Update for change to struct write_types_data.
20655 (pch_wtd): Likewise.
20656 * ggc.h (gt_pch_note_object): Reorder parameters.
20657 (gt_handle_reorder): New definition.
20658 (gt_pch_note_reorder): New prototype.
20659 * ggc-common.c (struct ptr_data): Add reorder_fn.
20660 (gt_pch_note_object): Reorder parameters.
20661 (gt_pch_note_reorder): New.
20662 (gt_pch_save): Call reorder_fn.
20663 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
20664
20665 * dbxout.c (cwd): Don't mark for PCH.
20666
20667 2002-12-09 Geoffrey Keating <geoffk@apple.com>
20668
20669 * gengtype.c (finish_root_table): Fix some warnings.
20670 (write_root): Handle TYPE_STRING.
20671 * ggc.h (gt_ggc_m_S): Add prototype.
20672 * stringpool.c (gt_ggc_m_S): New function.
20673
20674 2002-11-30 Geoffrey Keating <geoffk@apple.com>
20675
20676 * dwarf2out.c (dw2_string_counter): New.
20677 (AT_string_form): Use it.
20678 (same_dw_val_p): Update for removal of hashtable.h hash tables.
20679
20680 2002-11-22 Geoffrey Keating <geoffk@apple.com>
20681
20682 * dbxout.c: Include gt-dbxout.h.
20683 (lastfile): Mark for PCH/GGC.
20684 (cwd): Likewise.
20685 (struct typeinfo): Likewise.
20686 (typevec): Likewise.
20687 (typevec_len): Likewise.
20688 (next_type_number): Likewise.
20689 (struct dbx_file): Likewise.
20690 (current_file): Likewise.
20691 (next_file_number): Likewise.
20692 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
20693 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
20694 (dbxout_end_source_file): Don't free struct dbx_file.
20695 (dbxout_type): Use GGC to allocate typevec.
20696 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
20697 (GTFILES): Add dbxout.c.
20698 (gt-dbxout.h): New rule.
20699
20700 * Makefile.in (c-pch.o): Add debug.h as dependency.
20701 * c-pch.c: Include debug.h.
20702 (pch_init): Call start_source_file to keep nesting right.
20703 (c_common_read_pch): Add orig_name parameter. Call
20704 start_source_file debug hook. Call end_source_file debug hook.
20705 * c-common.h (c_common_read_pch): Update prototype.
20706 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
20707 callback.
20708 * cppfiles.c (struct include_file): Add new field `header_name'.
20709 (find_or_create_entry): Default it to `name'.
20710 (open_file_pch): Set it to the original header file searched for.
20711 (stack_include_file): Don't stack an empty buffer, just handle
20712 PCH files immediately. Pass header_name field to read_pch callback.
20713
20714 2002-11-19 Geoffrey Keating <geoffk@apple.com>
20715
20716 * function.c (funcdef_no): Mark to be saved in a PCH.
20717
20718 2002-11-15 Geoffrey Keating <geoffk@apple.com>
20719
20720 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
20721
20722 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
20723
20724 2002-11-14 Geoffrey Keating <geoffk@apple.com>
20725
20726 * optabs.h (code_to_optab): Add GTY marker.
20727
20728 2002-11-13 Geoffrey Keating <geoffk@apple.com>
20729
20730 * Makefile.in (GTFILES): Add cpplib.h.
20731 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
20732 * c-decl.c (build_compound_literal): Don't use var_labelno.
20733 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
20734 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
20735 * varasm.c (const_labelno): Use gengtype to mark.
20736 (var_labelno): Likewise.
20737 (in_section): Likewise.
20738 (in_named_name): Likewise.
20739 (struct in_named_entry): Likewise.
20740 (in_named_htab): Likewise.
20741 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
20742 (init_varasm_once): Use GGC to allocate in_named_htab.
20743 * config/darwin.c (current_pic_label_num): Mark for PCH.
20744
20745 2002-11-11 Geoffrey Keating <geoffk@apple.com>
20746
20747 * ggc-simple.c (init_ggc_pch): New stub procedure.
20748 (ggc_pch_count_object): Likewise.
20749 (ggc_pch_total_size): Likewise.
20750 (ggc_pch_this_base): Likewise.
20751 (ggc_pch_alloc_object): Likewise.
20752 (ggc_pch_prepare_write): Likewise.
20753 (ggc_pch_write_object): Likewise
20754 (ggc_pch_finish): Likewise.
20755 (ggc_pch_read): Likewise.
20756
20757 2002-11-08 Geoffrey Keating <geoffk@apple.com>
20758
20759 * c-pch.c (c_common_write_pch): Write the macro definitions after
20760 the GCed data.
20761 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
20762 definitions after the GCed data.
20763 * cpplib.c (save_macros): New.
20764 (reset_ht): New.
20765 (cpp_write_pch_deps): Split out of cpp_write_pch.
20766 (cpp_write_pch_state): Split out of cpp_write_pch.
20767 (cpp_write_pch): Delete.
20768 (struct save_macro_data): Delete.
20769 (cpp_prepare_state): New.
20770 (cpp_read_state): Erase and restore initial macro definitions.
20771 * cpplib.h (struct save_macro_data): Forward-declare.
20772 (cpp_write_pch_deps): Prototype.
20773 (cpp_write_pch_state): Prototype.
20774 (cpp_write_pch): Delete prototype.
20775 (cpp_prepare_state): Prototype.
20776 (cpp_read_state): Add fourth argument.
20777
20778 2002-11-04 Geoffrey Keating <geoffk@apple.com>
20779
20780 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
20781 (write_array): Remove warning.
20782
20783 * gengtype.c (contains_scalar_p): New.
20784 (finish_root_table): Add the table to all languages, even if it's
20785 empty.
20786 (write_roots): Output gt_pch_scalar_rtab.
20787 * ggc-common.c (gt_pch_save): Write out scalars.
20788 (gt_pch_restore): Read scalars back.
20789
20790 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
20791 (struct page_entry): Delete pch_page field.
20792 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
20793 (clear_marks): Likewise.
20794 (sweep_pages): Likewise.
20795 (poison_pages): Likewise.
20796 (ggc_print_statistics): Likewise.
20797 (ggc_pch_read): Don't free objects read from a PCH.
20798 Properly set up in_use_p and page_tails.
20799
20800 2002-10-25 Geoffrey Keating <geoffk@apple.com>
20801
20802 * gengtype.c (struct write_types_data): New.
20803 (struct walk_type_data): Make `cookie' const; add extra
20804 prev_val item; add `orig_s' field.
20805 (walk_type): Update prev_val[3].
20806 (write_types_process_field): New.
20807 (write_func_for_structure): Take write_types_data structure.
20808 (write_types): New.
20809 (ggc_wtd): New.
20810 (pch_wtd): New.
20811 (write_types_local_process_field): New.
20812 (gc_mark_process_field): Delete.
20813 (write_local_func_for_structure): New.
20814 (gc_mark_func_name): Delete.
20815 (write_gc_types): Delete.
20816 (write_local): New.
20817 (finish_root_table): Don't include 'ggc_' in PFX.
20818 (write_root): Rename from write_root. Fill pchw field of structures.
20819 (write_array): New.
20820 (write_roots): Rename from write_gc_roots. Split out to write_array.
20821 Update to changes to other routines. Write gt_pch_cache_rtab table.
20822 (main): Write PCH walking routines.
20823 * ggc-common.c: Include toplev.h, sys/mman.h.
20824 (ggc_mark_roots): For cache hashtables, also mark the hash table
20825 and the array of entries.
20826 (saving_htab): New.
20827 (struct ptr_data): New.
20828 (POINTER_HASH): New.
20829 (gt_pch_note_object): New.
20830 (saving_htab_hash): New.
20831 (saving_htab_eq): New.
20832 (struct traversal_state): New.
20833 (call_count): New.
20834 (call_alloc): New.
20835 (compare_ptr_data): New.
20836 (relocate_ptrs): New.
20837 (write_pch_globals): New.
20838 (struct mmap_info): New.
20839 (gt_pch_save): New.
20840 (gt_pch_restore): New.
20841 * ggc-page.c (ROUND_UP_VALUE): New.
20842 (ROUND_UP): New.
20843 (struct page_entry): Add field `pch_page'.
20844 (init_ggc): Use ROUND_UP.
20845 (struct ggc_pch_data): Declare.
20846 (init_ggc_pch): New.
20847 (ggc_pch_count_object): New.
20848 (ggc_pch_total_size): New.
20849 (ggc_pch_this_base): New.
20850 (ggc_pch_alloc_object): New.
20851 (ggc_pch_prepare_write): New.
20852 (ggc_pch_write_object): New.
20853 (ggc_pch_finish): New.
20854 (ggc_pch_read): New.
20855 * ggc.h (gt_pointer_operator): New.
20856 (gt_note_pointers): New.
20857 (gt_pch_note_object): New prototype.
20858 (gt_pointer_walker): New.
20859 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
20860 (LAST_GGC_ROOT_TAB): Update.
20861 (gt_pch_cache_rtab): Declare.
20862 (gt_pch_scalar_rtab): Declare.
20863 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
20864 (LAST_GGC_CACHE_TAB): Update.
20865 (gt_pch_save_stringpool): Declare.
20866 (gt_pch_restore_stringpool): Declare.
20867 (gt_pch_p_S): Declare.
20868 (gt_pch_n_S): Declare.
20869 (struct ggc_pch_data): Forward-declare.
20870 (init_ggc_pch): Declare.
20871 (ggc_pch_count_object): Declare.
20872 (ggc_pch_total_size): Declare.
20873 (ggc_pch_this_base): Declare.
20874 (ggc_pch_alloc_object): Declare.
20875 (ggc_pch_prepare_write): Declare.
20876 (ggc_pch_write_object): Declare.
20877 (ggc_pch_finish): Declare.
20878 (ggc_pch_read): Declare.
20879 (gt_pch_save): Declare.
20880 (gt_pch_restore): Declare.
20881 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
20882 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
20883 const_double_htab, mem_attrs_htab using GGC.
20884 * c-pch.c: Include ggc.h.
20885 (pch_init): Allow reading PCH file back.
20886 (c_common_write_pch): Call gt_pch_save.
20887 (c_common_read_pch): Call gt_pch_restore.
20888 * c-parse.in (init_reswords): Delete now-untrue comment.
20889 Allocate ridpointers using GGC.
20890 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
20891 calling expand_deferred_fns.
20892 * c-common.h (ridpointers): Mark for GTY machinery.
20893 * Makefile.in (stringpool.o): Update dependencies.
20894 (c-pch.o): Update dependencies.
20895 (ggc-common.o): Update dependencies.
20896 * stringpool.c: Include gt-stringpool.h.
20897 (gt_pch_p_S): New.
20898 (gt_pch_n_S): New.
20899 (struct string_pool_data): New.
20900 (spd): New.
20901 (gt_pch_save_stringpool): New.
20902 (gt_pch_restore_stringpool): New.
20903 * tree.c (init_ttree): Make type_hash_table allocated using GC.
20904
20905 2002-10-04 Geoffrey Keating <geoffk@apple.com>
20906
20907 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
20908 (output_mangled_typename): Don't pass size_t to printf.
20909
20910 * tree.h (union tree_type_symtab): Add tag to `address' field.
20911 (union tree_decl_u2): Add tag to 'i' field.
20912 * varasm.c (union rtx_const_un): Add tags to all fields.
20913 * gengtype.c (struct walk_type_data): New.
20914 (output_escaped_param): Take struct walk_type_data parameter.
20915 (write_gc_structure_fields): Delete.
20916 (walk_type): New.
20917 (write_gc_marker_routine_for_structure): Delete.
20918 (write_func_for_structure): New.
20919 (gc_mark_process_field): New.
20920 (gc_mark_func_name): New.
20921 (gc_counter): Delete.
20922 (write_gc_types): Use write_func_for_structure.
20923 (write_gc_roots): Use walk_type.
20924
20925 2002-10-02 Geoffrey Keating <geoffk@apple.com>
20926
20927 * ggc-common.c (ggc_mark_roots): Delete 'x'.
20928 (ggc_splay_dont_free): Fix warning about unused 'x'.
20929 (ggc_print_common_statistics): Remove warnings.
20930
20931 2002-10-01 Mike Stump <mrs@apple.com>
20932
20933 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
20934 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
20935
20936 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
20937 Catherine Moore <clm@redhat.com>
20938
20939 * Makefile (c-pch.o): Update dependencies.
20940 (LIBCPP_OBJS): Add cpppch.o.
20941 (cpppch.o): New.
20942 * c-common.c (c_common_init): Don't call pch_init here.
20943 * c-common.h (c_common_read_pch): Update prototype.
20944 * c-lex.c (c_common_parse_file): Call pch_init here.
20945 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
20946 (c_common_decode_option): Handle them.
20947 * c-pch.c: Include c-pragma.h.
20948 (save_asm_offset): Delete.
20949 (pch_init): Move contents of save_asm_offset into here, call
20950 cpp_save_state.
20951 (c_common_write_pch): Call cpp_write_pch.
20952 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
20953 cpp_valid_state.
20954 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
20955 * cppfiles.c (stack_include_file): Update for change to
20956 parameters of cb.read_pch.
20957 * cpphash.h (struct cpp_reader): Add `savedstate' field.
20958 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
20959 `restore_pch_deps' fields.
20960 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
20961 (cpp_save_state): Prototype.
20962 (cpp_write_pch): Prototype.
20963 (cpp_valid_state): Prototype.
20964 (cpp_read_state): Prototype.
20965 * cpppch.c: New file.
20966 * flags.h (version_flag): Remove prototype.
20967 * mkdeps.c (deps_save): New.
20968 (deps_restore): New.
20969 * mkdeps.h (deps_save): Prototype.
20970 (deps_restore): Prototype.
20971 * toplev.c (late_init_hook): Delete.
20972 (version_flag): Make static again.
20973 (compile_file): Don't call late_init_hook.
20974 * toplev.h (late_init_hook): Delete.
20975 * doc/cppopts.texi: Document -fpch-deps.
20976 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
20977
20978 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
20979
20980 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
20981 callers.
20982 (c_common_valid_pch): Rename from c_valid_pch, change callers.
20983 (c_common_read_pch): Rename from c_read_pch, change callers.
20984
20985 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
20986 a space between it and its argument.
20987
20988 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
20989
20990 * c-pch.c: New file.
20991 * toplev.h (late_init_hook): Declare.
20992 * toplev.c (late_init_hook): Define.
20993 (version_flag): Make globally visible.
20994 (compile_file): Call late_init_hook.
20995 (init_asm_output): Make output file seekable.
20996 * gcc.c (default_compilers): Update c-header rule.
20997 * flags.h (version_flag): Declare.
20998 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
20999 fields.
21000 * cppfiles.c (struct include_file): Add 'pch' field.
21001 (INCLUDE_PCH_P): New.
21002 (open_file_pch): New.
21003 (stack_include_file): Handle PCH files specially.
21004 (find_include_file): Call open_file_pch instead of open_file.
21005 (_cpp_read_file): Explain why open_file is used instead of
21006 open_file_pch.
21007 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
21008 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
21009 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
21010 in cpplib callbacks.
21011 * c-common.c (pch_file): Correct comment.
21012 (allow_pch): Define.
21013 (c_common_init): Call pch_init.
21014 * c-common.h (allow_pch): Declare.
21015 (pch_init): Declare.
21016 (c_valid_pch): Declare.
21017 (c_read_pch): Declare.
21018 (c_write_pch): Declare.
21019 * Makefile.in (c-pch.o): New.
21020 (C_AND_OBJC_OBJS): Add c-pch.o.
21021 * doc/invoke.texi (Precompiled Headers): Add index entries,
21022 complete truncated paragraph.
21023
21024 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
21025
21026 * c-common.c: (pch_file): Define.
21027 * c-common.h (pch_file): Declare.
21028 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
21029 (missing_arg): Require --output-pch= to have an argument.
21030 (c_common_decode_option): Handle --output-pch=.
21031 * gcc.c: Document new %V.
21032 (default_compilers): Handle compiling C header files.
21033 (do_spec_1): Implement %V.
21034 (main): Handle "gcc foo.h" without trying to run linker.
21035 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
21036 (Overall Options): Document what the driver does with header files,
21037 document new -x option possibilities.
21038 (Invoking G++): More documentation for PCH.
21039 (Precompiled Headers): New.
21040
21041 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
21042
21043 * ggc.h: Don't include varray.h. Rearrange functions to be more
21044 organized.
21045 (ggc_add_root): Delete.
21046 (ggc_mark_rtx): Delete.
21047 (ggc_mark_tree): Delete.
21048 (struct ggc_statistics): Remove contents.
21049 * ggc-common.c: Remove unneeded includes.
21050 (struct ggc_root): Delete.
21051 (roots): Delete.
21052 (ggc_add_root): Delete.
21053 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
21054 (ggc_print_common_statistics): Remove most of the contents.
21055 * Makefile.in (GGC_H): No longer uses varray.h.
21056 (ggc-common.o): Update dependencies.
21057 (c-parse.o): Add varray.h to dependencies.
21058 (c-common.o): Add varray.h.
21059 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
21060 (mark_ident_hash): Rename to ggc_mark_stringpool.
21061 (init_stringpool): Don't use ggc_add_root.
21062 * c-parse.in: Include varray.h.
21063 * c-common.c: Include varray.h.
21064 * objc/Make-lang.in (objc-act.o): Add varray.h.
21065 * objc/objc-act.c: Include varray.h.
21066
21067 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
21068
21069 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
21070 (dw_cfi_oprnd1_desc): Likewise.
21071
21072 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
21073
21074 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
21075 move out of ifdef.
21076 (alpha_links): Use gengtype to mark; move out of ifdef.
21077 (mark_alpha_links_node): Delete.
21078 (mark_alpha_links): Delete.
21079 (alpha_need_linkage): Use GGC to allocate splay tree, struct
21080 alpha_links, strings. Don't use ggc_add_root.
21081 * ggc-common.c (ggc_splay_alloc): New.
21082 (ggc_splay_dont_free): New.
21083 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
21084 (ggc_mark_tree): Likewise.
21085 (splay_tree_new_ggc): New.
21086 (ggc_splay_alloc): Declare.
21087 (ggc_splay_dont_free): Declare.
21088 * dwarf2asm.c: Include gt-dwarf2asm.h.
21089 (mark_indirect_pool_entry): Delete.
21090 (mark_indirect_pool): Delete.
21091 (indirect_pool): Use gengtype to mark.
21092 (dw2_force_const_mem): Don't use ggc_add_root.
21093 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
21094 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
21095 (gt-dwarf2asm.h): Depend on s-gtype.
21096
21097 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
21098
21099 * tree.h (union tree_type_symtab): Mark `die' field.
21100 * Makefile.in (dwarf2out.o): Update dependencies.
21101 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
21102 hash tables.
21103 (dw_cfi_oprnd1_desc): New function.
21104 (dw_cfi_oprnd2_desc): New function.
21105 (indirect_string_alloc): Delete.
21106 (debug_str_do_hash): New function.
21107 (debug_str_eq): New function.
21108 (mark_limbo_die_list): Delete.
21109 (dwarf2out_init): Don't call ggc_add_root.
21110
21111 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
21112
21113 The following changes are merged from itanium-sched-branch:
21114
21115 2003-01-08 David Edelsohn <edelsohn@gnu.org>
21116
21117 * doc/md.texi: Clarify assignment of units to automata description.
21118
21119 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
21120
21121 * genautomata.c (unit_decl): Remove members
21122 `the_same_automaton_unit' and
21123 `the_same_automaton_message_reported_p'.
21124 (process_unit_to_form_the_same_automaton_unit_lists,
21125 form_the_same_automaton_unit_lists_from_regexp,
21126 form_the_same_automaton_unit_lists, the_same_automaton_lists):
21127 Remove them.
21128 (annotation_message_reported_p): New global variable.
21129 (check_unit_distribution_in_reserv,
21130 check_regexp_units_distribution): New functions.
21131 (check_unit_distributions_to_automata): Rewrite it.
21132
21133 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
21134
21135 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
21136 Use continue instead of break if cycle is too big.
21137
21138 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
21139
21140 * genautomata.c (check_unit_distributions_to_automata): Output at
21141 most one message for a unit.
21142 (process_unit_to_form_the_same_automaton_unit_lists): Check
21143 automaton of units instead of units themself.
21144
21145 * doc/md.texi: Describe the constraint about assigning unit to
21146 automata.
21147
21148 2002-12-20 Jan Hubicka <jH@suse.cz>
21149 Vladimir Makarov <vmakarov@redhat.com>
21150
21151 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
21152 and `in_set_p'.
21153 (gen_cpu_unit): Initialize the new members.
21154 (process_regexp_cycles): Calculate minimal finish cycle too. Set
21155 up `min_occ_cycle_num'.
21156 (evaluate_max_reserv_cycles): Change the function call.
21157 (CLEAR_BIT): New macro.
21158 (states_union, state_shift): Use the mask.
21159 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
21160 (form_reservs_matter): New function.
21161 (make_automaton): Call the function and use the mask.
21162 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
21163 account.
21164
21165 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21166
21167 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
21168
21169 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21170
21171 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
21172 for Itanium.
21173
21174 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21175
21176 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
21177 default cpu.
21178
21179 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21180 2002-10-31 Dale Johannesen <dalej@apple.com>
21181
21182 * haifa-sched.c (find_set_reg_weight): New function.
21183 (find_insn_reg_weight): Use the new function.
21184 (schedule_block): Do sorting ready queue always
21185 after insn issue.
21186
21187 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
21188
21189 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
21190
21191 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
21192
21193 * haifa-sched.c (choice_entry): New structure.
21194 (choice_stack, cycle_issued_insns): New variables.
21195 (max_issue): Rewrite it.
21196 (choose_ready): Set up ready_try for unknown insns too.
21197 (schedule_block): Allocate and free choice_stack. Set up
21198 and modify cycle_issued_insns.
21199
21200 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
21201 with and without filling the bundle.
21202 (bundling): Combine calls of issue_nops_and_insn.
21203
21204 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
21205
21206 * config/ia64/itanium1.md: New file.
21207
21208 * config/ia64/itanium2.md: New file.
21209
21210 * config/ia64/ia64.md: Move DFA descriptions into the new files.
21211 Remove the old pipeline description.
21212
21213 * config/ia64/ia64.c (ia64_override_options): Add aliases of
21214 itanium processor names.
21215
21216 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
21217
21218 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
21219 (ia64_reorg): Set up queried unit codes for Itanium2 too.
21220
21221 * config/ia64/ia64.md: Add descriptions for Itanium2.
21222
21223 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
21224
21225 * config/ia64/ia64.h (processor_type): New enumeration.
21226 (ia64_tune, ia64_tune_string): New external declarations.
21227 (TARGET_OPTIONS): Add option `tune='.
21228
21229 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
21230 variables.
21231 (ia64_override_options): Set up `ia64_tune'.
21232 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
21233 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
21234 (bundling): Add nops for MM-insns only for Itanium.
21235 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
21236 Itanium.
21237
21238 * config/ia64/ia64.md (cpu): New attribute.
21239 (DFA description): Enable it only for Itanium.
21240
21241 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
21242 Richard Henderson <rth@redhat.com>
21243
21244 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
21245 MASK_EARLY_STOP_BITS.
21246 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
21247 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
21248 `early-stop-bits'.
21249
21250 * config/ia64/ia64.c (ia64_dfa_new_cycle,
21251 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
21252 instead of TARGET_TUNE_STOP_BITS.
21253
21254 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
21255 `-mearly-stop-bits'.
21256
21257 * config/ia64/ia64.c (automata_option "v"): Comment it.
21258
21259 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
21260
21261 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
21262 New macros.
21263 (TARGET_SWITCHES): Add entries for the new option.
21264
21265 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
21266 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
21267 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
21268 global variables.
21269 (ia64_sched_reorder2): Set up `clocks'.
21270 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
21271 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
21272 queue when TARGET_TUNE_STOP_BITS.
21273 (bundling): Insert additional nops for MM-insns.
21274 (final_emit_insn_group_barriers): Add insertion of stop bits
21275 according `stops_p'.
21276 (ia64_reorg): Initiate the new varibales.
21277
21278 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
21279
21280 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
21281
21282 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
21283 insns at the end of block insn scheduling.
21284
21285 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
21286
21287 * sched-deps.c (remove_dependence, group_leader): Remove it.
21288 (add_dependence): Add dependence to group leader to.
21289 (set_sched_group_p): Add dependence to the first insn of the
21290 schedule group too.
21291 (sched_analyze_insn): Make dependence to jump as anti-dependence.
21292 Change true dependence by anti-dependence when
21293 `reg_pending_barrier'.
21294
21295 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
21296 add_branch_dependences): Ignore schedule groups.
21297
21298 * sched-ebb.c (init_ready_list): Ditto.
21299
21300 * (move_insn, set_priorities): Ditto.
21301
21302 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
21303 flag is clear after reload.
21304 (adjust_cost): Change cost only for output dependencies.
21305
21306 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
21307
21308 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
21309
21310 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
21311
21312 * target.h (gcc_target): Add member
21313 `dependencies_evaluation_hook'.
21314
21315 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
21316 macro.
21317 (TARGET_SCHED): Add initiatialization of the new member.
21318
21319 * sched-ebb.c: Include `target.h'.
21320 (schedule_ebb): Call `dependencies_evaluation_hook'.
21321
21322 * sched-rgn.c (schedule_region): Call
21323 `dependencies_evaluation_hook'.
21324
21325 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21326 New macro.
21327 (ia64_dependencies_evaluation_hook): New function.
21328
21329 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21330 Describe the new hook.
21331
21332 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
21333
21334 * target.h (gcc_target): Add members
21335 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
21336
21337 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
21338 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
21339 macros.
21340 (TARGET_SCHED): Add initiatialization of the new members.
21341
21342 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
21343 insn scheduling too.
21344 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
21345 initialize `ready_try'.
21346 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
21347 `dfa_new_cycle' says not to do it.
21348
21349 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
21350 bundling.
21351
21352 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
21353
21354 * config/ia64/ia64.c: Include `hashtab.h'.
21355 (ia64_first_cycle_multipass_dfa_lookahead_guard,
21356 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
21357 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
21358 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
21359 bundle_state_eq_p, insert_bundle_state,
21360 initiate_bundle_state_table, finish_bundle_state_table,
21361 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
21362 get_template, get_next_important_insn, bundling): New functions.
21363 (ia64_internal_sched_reorder): Remove it.
21364 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21365 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
21366 (ia64_safe_itanium_requires_unit0): Remove it.
21367 (group_barrier_needed_p): Place group barrier right before a real
21368 insn.
21369 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
21370 Remove them.
21371 (bundle_name): New variable.
21372 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
21373 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
21374 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
21375 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
21376 temp_dfa_state, prev_cycle_state): New global variables.
21377 (insn_matches_slot, maybe_rotate, finish_last_head,
21378 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
21379 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
21380 find_best_packet, itanium_reorder, dump_current_packet,
21381 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
21382 (sched_data, sched_ready, sched_types): Remove them.
21383 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
21384 `init_insn_group_barriers'.
21385 (ia64_sched_reorder, ia64_sched_reorder2): Call
21386 ia64_dfa_sched_reorder.
21387 (ia64_variable_issue): Rewrite it.
21388 (bundle_state): New structure.
21389 (index_to_bundle_states, bundle_states_num,
21390 allocated_bundle_states_chain, free_bundle_state_chain): New
21391 global variables.
21392 (ia64_sched_finish): Add stop bits and call `bundling' after the
21393 2nd insn scheduling.
21394 (ia64_use_dfa_pipeline_interface): Return zero always.
21395 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
21396 insn scheduling.
21397 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
21398 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
21399 (ia64_reorg): Add bundling insns.
21400
21401 * doc/tm.texi
21402 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21403 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
21404
21405 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
21406
21407 * config/ia64/ia64.md: Add Itanium1 DFA description.
21408 (itanium_class): Add `nop' and `pre_cycle'. Add
21409 define_function_unit for `nop'.
21410 (nop): Change attribute `itanium_class'.
21411 (pre_cycle): New define_insn.
21412
21413 * config/ia64/ia64-protos.h (bundling_p): New external variable.
21414 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
21415 ia64_produce_address_p): New function prototypes.
21416
21417 * config/ia64/ia64.c (bundling_p): New global variable.
21418 (ia64_use_dfa_pipeline_interface,
21419 ia64_first_cycle_multipass_dfa_lookahead,
21420 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
21421 functions.
21422 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
21423 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
21424 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
21425 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
21426 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
21427 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
21428 (dfa_pre_cycle_insn): New variable.
21429
21430 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
21431
21432 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
21433 constructions.
21434
21435 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
21436 New function prototypes.
21437
21438 * genattrtab.c (main): Process the new constructions.
21439
21440 * genautomata.c (gen_presence_absence_set,
21441 process_presence_absence_names, process_presence_absence_patterns,
21442 add_presence_absence, check_absence_pattern_sets): Add parameter
21443 `final_p'.
21444 (unit_decl): Add new members `final_presence_list' and
21445 `final_absence_list'.
21446 (unit_pattern_rel_decl): Add new member `final_p'.
21447 (gen_final_presence_set, gen_final_absence_set): New functions.
21448 (process_decls): Use member `final_p'.
21449 (temp_reserv): New global variable.
21450 (reserv_sets_are_intersected): Add processing `final_presence_set'
21451 and `final_absence_set'.
21452 (initiate_states): Allocate `temp_reserv'.
21453 (unit_final_presence_set_table, unit_final_absence_set_table): New
21454 gloabal variables.
21455 (initiate_presence_absence_pattern_sets): Initiate them.
21456 (NDFA_to_DFA): Fix typo.
21457 (output_description): Output `final_presence_set' and
21458 `final_absence_set'.
21459
21460 * doc/md.texi (final_presence_set, final_absence_set): Describe
21461 them.
21462
21463 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
21464
21465 * genautomata.c (transform_3): Process a missing case (nothing on
21466 unit place).
21467
21468 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
21469
21470 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
21471 comments about queried units and the minimization.
21472
21473 * doc/md.texi: Ditto.
21474
21475 * genautomata.c (create_composed_state): Return nonzero if the new
21476 state has been created.
21477 (first_cycle_unit_presence): New function.
21478 (state_is_differed): Add new parameter. Use the new function.
21479 Take queried units into account.
21480 (partition_equiv_class): Pass additional parameter to
21481 `state_is_differed'.
21482 (merge_states): Process composed states too.
21483 (build_automaton, create_automata, output_min_issue_delay_table,
21484 output_tables, output_statistics): Output more information.
21485 (output_reserved_units_table): Use function
21486 `first_cycle_unit_presence'.
21487 (output_tables): Output table of queried units even if the
21488 minimization is switched on.
21489 (write_automata): Output code for querying units even if the
21490 minimization is switched on.
21491
21492 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
21493
21494 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
21495 syntax of the constructions.
21496
21497 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
21498 extended syntax of the constructions.
21499
21500 * genautomata.c (unit_rel_decl): Rename it to
21501 `unit_pattern_rel_decl'.
21502 (pattern_set_el, pattern_reserv): New structures.
21503 (pattern_set_el_t, pattern_reserv_t): New types.
21504 (gen_presence_absence_set): New function.
21505 (process_presence_absence): Remove it.
21506 (process_presence_absence_names,
21507 process_presence_absence_patterns): New functions.
21508 (get_presence_absence_set): Remove it.
21509 (initiate_presence_absence_sets): Rename it on
21510 `initiate_presence_absence_pattern_sets'. Use new function
21511 `form_reserv_sets_list'.
21512 (form_reserv_sets_list, check_presence_pattern_sets,
21513 check_absence_pattern_sets, output_pattern_set_el_list): New
21514 functions.
21515 (unit_decl): Change types of members `presence_list' and
21516 `absence_list'.
21517 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
21518 (decl): Change types of members `excl', `presence', and `absence'.
21519 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
21520 at the end of the vector.
21521 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
21522 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
21523 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
21524 (gen_presence_set, gen_absence_set): Use new function
21525 `gen_presence_absence_set'.
21526 (add_presence_absence): Process `pattern_list' instead of
21527 `source_list'.
21528 (process_decls): USe new functions
21529 `process_presence_absence_names' and
21530 `process_presence_absence_patterns'.
21531 (reserv_sets_are_intersected): Use new function
21532 `check_presence_pattern_sets'.
21533 (presence_set, absence_set): Remove them.
21534 (unit_presence_set_table, unit_absence_set_table): New global
21535 variables.
21536 (output_description): Use new function
21537 `output_pattern_set_el_list'.
21538 (generate): Use `initiate_presence_absence_pattern_sets'.
21539
21540 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
21541
21542 * genattr.c (main): Add output of prototype of new interface
21543 function `dfa_clean_insn_cache'.
21544
21545 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
21546 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
21547 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
21548 the generated code.
21549 (write_automata): Call the new function.
21550
21551 2003-01-09 Jan Hubicka <jh@suse.cz>
21552
21553 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
21554 correctly.
21555
21556 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
21557
21558 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
21559
21560 2003-01-09 J"orn Rennecke <joern.rennecke@superh.com>
21561
21562 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
21563 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
21564 (CONSTRAINT_LEN): Provide default definition.
21565 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21566 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
21567 (EXTRA_CONSTRAINT_STR): Likewise.
21568 (REG_CLASS_FROM_CONSTRAINT): Define.
21569 * genoutput.c (check_constraint_len, constraint_len): New functions.
21570 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
21571 constraint / modifier.
21572 (gen_insn): Call check_constraint_len.
21573 * local-alloc.c (block_alloc): Update to use new macros / pass
21574 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
21575 * ra-build.c (handle_asm_insn): Likewise.
21576 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21577 (constrain_operands, peep2_find_free_register): Likewise.
21578 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
21579 * regmove.c (find_matches): Likewise.
21580 * reload.c (push_secondary_reload, find_reloads): Likewise.
21581 (alternative_allows_memconst): Likewise.
21582 * reload1.c (maybe_fix_stack_asms): Likewise.
21583 (reload_cse_simplify_operands): Likewise.
21584 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21585 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
21586 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21587 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
21588 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
21589 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
21590
21591 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
21592
21593 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21594
21595 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
21596 length.
21597 (*extzv_1_r_h8300hs): Likewise.
21598 (*extzv_1_r_inv_h8300): Likewise.
21599 (*extzv_1_r_inv_h8300hs): Likewise.
21600
21601 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21602
21603 * config/h8300/h8300.h (PREDICATE_CODES): New.
21604
21605 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21606
21607 * config/h8300/h8300.md (*addsi3_upper): New.
21608 (*iorsi3_shift): Likewise.
21609 (two splitters): Likewise.
21610 (*addsi3_shift): Likewise.
21611 (two splitters): Likewise.
21612
21613 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
21614
21615 * Makefile.in (optabs.o): Add dependency on basic-block.h.
21616 * basic-block.h (control_flow_insn_p): Fuction was exported.
21617 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
21618 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
21619 notes only when the region is contained in a single basic block.
21620
21621 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21622
21623 PR inline-asm/8832
21624 * tree.h (expand_asm): New prototype.
21625 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
21626 to do so.
21627 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
21628 down to expand_asm.
21629 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
21630 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
21631 (volatile_refs_p) [ASM_INPUT]: Likewise.
21632 (side_effects_p) [ASM_INPUT]: Likewise.
21633
21634 2003-01-09 Jan Hubicka <jh@suse.cz>
21635
21636 * i386.md (*mul*): FIx constraints; remove confused comment; fix
21637 athlon_decode attributes
21638 (imul/k8 optimization peep2s): New.
21639
21640 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
21641 * i386.md (type attribute): Add ssecomi.
21642 (unit, memory, prefix attributes): Handle ssecomi.
21643 (cvt?2? patterns): Fix athlon_decode attribute
21644 (comi patterns): Set attribute to ssecomi.
21645
21646 PR target/8343
21647 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
21648
21649 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
21650
21651 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
21652 that match register_operands.
21653 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
21654 register_operand the default case.
21655
21656 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21657
21658 PR c/8032
21659 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
21660 an empty element, do not advance the pointer to unfilled
21661 fields if there are pending initializers.
21662
21663 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
21664
21665 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
21666 (install-gcc-tooldir, install-cpp, installdirs,
21667 install-common, install-driver, install-info, install-man,
21668 install-headers, install-include-dir, install-headers-tar,
21669 install-headers-cpio, install-headers-cp, install-mkheaders,
21670 install-collect2, uninstall): Prepend $(DESTDIR) to
21671 destination paths in all (un)installation commands.
21672 (install-driver): Rewrite $(LN) commands to support DESTDIR
21673 with "ln" as well as with "ln -s".
21674 (installdirs): Simply use mkinstalldirs.
21675 (install-libgcc, install-multilib): Also pass DESTDIR.
21676 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
21677 installation destination variable ldir.
21678 * config/alpha/t-osf4, config/arm/t-netbsd,
21679 config/ia64/t-hpux, config/mips/t-iris5-6,
21680 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
21681 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
21682 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
21683 in the definition of SHLIB_INSTALL.
21684 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
21685 $(libsubdir) in the installation commands.
21686
21687 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
21688
21689 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
21690 non-optimizing compile.
21691 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
21692 compile.
21693
21694 2003-01-08 Douglas B Rupp <rupp@gnat.com>
21695
21696 * config/i386/i386.c (ix86_attribute_table): Add new attributes
21697 ms_struct and gcc_struct.
21698 (ix86_handle_struct_attribute): New function.
21699 (ix86_ms_bitfield_layout_p): Update to take new attributes
21700 into account.
21701 * doc/extend.texi: Document new attributes.
21702 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
21703
21704 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
21705
21706 PR optimization/8750
21707 * config/i386/i386.c (ix86_expand_prologue): Don't allow
21708 scheduling pass to move insns across __alloca call.
21709
21710 2003-01-08 Dale Johannesen <dalej@apple.com>
21711
21712 * config/rs6000/rs6000.md: Replace *store_multiple_string
21713 with *stmsi[3-8].
21714
21715 2003-01-08 Jeff Sturm <jsturm@one-point.com>
21716
21717 PR target/9210
21718 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
21719 Set SYMBOL_REF_FLAG on local data sym_ref.
21720
21721 2003-01-08 Dale Johannesen <dalej@apple.com>
21722
21723 * function.c (assign_parms): Don't set pretend_args_size if
21724 REG_PARM_STACK_SPACE.
21725 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
21726 pretend_args_size.
21727
21728 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
21729
21730 * gcc.hlp: Delete.
21731
21732 2003-01-09 Jan Hubicka <jh@suse.cz>
21733
21734 * i386.c (ix86_expand_int_addcc): Fix thinko.
21735
21736 2003-01-08 David Edelsohn <edelsohn@gnu.org>
21737
21738 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
21739 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
21740 as hook_bool_tree_hwi_hwi_tree_true.
21741 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
21742 (rs6000_emit_epilogue): Same.
21743 (rs6000_output_mi_thunk): Re-implement as RTL.
21744 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
21745 xcoffout_declare_function if any debugging enabled.
21746
21747 2003-01-08 Chris Demetriou <cgd@broadcom.com>
21748
21749 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
21750 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
21751 * config/mips/mips.h (enum processor_type): Rename
21752 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
21753 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
21754 Add PROCESSOR_M4K.
21755 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
21756 (ISA_MIPS32R2): New define.
21757 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
21758 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
21759 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
21760 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
21761 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
21762 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
21763 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
21764 compiling MIPS16 code.
21765 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
21766 comment.
21767 (ISA_HAS_SEB_SEH): New define.
21768 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
21769 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
21770 processor_type value renaming. Add support for MIPS32R2.
21771 Clean up comments, and move "sb1" entry with other MIPS64 CPU
21772 entries.
21773 (override_options): Reimplement -mipsN option handling so that
21774 it will work correctly for -mips32r2. Avoid branch-likely
21775 instructions on MIPS32R2.
21776 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
21777 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
21778 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
21779 (extendhisi2_hw, extendqisi2_hw): New.
21780 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
21781 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
21782 MIPS32R2, and MIPS64.
21783 (LINK_SPEC): Pass -mips32r2 to linker.
21784 * config/mips/t-isa3264: Built -mips32r2 multilibs.
21785 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
21786 for mips32r2 in the -march description. Alphabetically sort
21787 CPU names in the -march description. Add long-missed -mips32
21788 and -mips64 to MIPS option summary.
21789
21790 * config.gcc: Update copyright years to include 2003.
21791 * config/mips/mips.c: Likewise.
21792 * config/mips/mips.h: Likewise.
21793 * config/mips/mips.md: Likewise.
21794 * config/mips/netbsd.h: Likewise.
21795 * doc/invoke.texi: Likewise.
21796
21797 2003-01-08 Andreas Schwab <schwab@suse.de>
21798
21799 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
21800 variable.
21801 * configure: Regenerated.
21802
21803 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
21804
21805 * config/h8300/h8300.c (output_logical_op): Replace byte/word
21806 extraction of det with b0, b1, w0, w2, etc.
21807 (compute_logical_op_length): Likewise.
21808 (compute_logical_op_cc): Likewise.
21809
21810 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
21811
21812 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
21813 HIGH on all variants.
21814
21815 2003-01-08 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
21816
21817 * Makefile.in (PARTITION_H): New.
21818 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
21819 * basic-block.h: Include hard-reg-set.h.
21820
21821 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
21822
21823 * arm.h (ENABLE_XF_PATTERNS): Delete.
21824 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
21825 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
21826 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
21827 (cmpxf_trap): Delete.
21828 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
21829
21830 2003-01-08 Jan Hubicka <jh@suse.cz>
21831
21832 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
21833 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
21834 (add??cc): New expanders.
21835 * i386.c (expand_int_addcc): New function.
21836 * i386-protos.h (expand_int_addcc): Declare.
21837
21838 * alias.c (memory_modified_1): New static function.
21839 (memory_modified): New static varaible.
21840 (memory_modified_in_insn_p): New global function.
21841 * rtl.h (memory_modified_in_insn_p): Declare.
21842 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
21843 references.
21844
21845 * expr.h (emit_conditional_add): Declare.
21846
21847 2003-01-07 Janis Johnson <janis187@us.ibm.com>
21848
21849 PR other/8947
21850 * doc/invoke.texi (-malign-double): Explain that the option breaks
21851 binary compatibility.
21852
21853 2003-01-08 Andreas Schwab <schwab@suse.de>
21854
21855 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
21856 should come from the generic *-*-linux* entry.
21857
21858 2003-01-07 Jan Hubicka <jh@suse.cz>
21859
21860 * cselib.c (cselib_current_insn_in_libcall): New static variable.
21861 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
21862 we are inside libcall.
21863 * cselib.h (elt_loc_list): Add in_libcall.
21864 * gcse.c (do_local_cprop): Do not copy propagate using insns
21865 in libcalls.
21866
21867 2003-01-07 David Edelsohn <edelsohn@gnu.org>
21868
21869 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
21870 not normally affect to issue rate.
21871
21872 2003-01-07 Jan Hubicka <jh@suse.cz>
21873
21874 * genopinit.c (optabs): Add addc_optab.
21875 * ifcvt.c (noce_try_store_flag): Rename to ...
21876 (noce_try_addcc): ... this one; handle generic conditional increment.
21877 (noce_process_if_block): Update noce_try_addcc call.
21878 * optabs.c (emit_conditional_add): New.
21879 (init_obtabs): Initialize addc_optab.
21880 * optabs.h (optab_index): Add OTI_addcc.
21881 (addcc_optab): New macro.
21882 * md.texi: Document addMcc
21883
21884 PR target/8322
21885 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
21886 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21887 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21888
21889 * reload1.c (delete_output_reload): Avoid repeated attempts
21890 to delete insn.
21891
21892 2003-01-07 Andreas Schwab <schwab@suse.de>
21893
21894 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
21895 Move --enable-initfini-array check ...
21896 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
21897 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
21898 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
21899 * configure: Rebuild.
21900
21901 2003-01-07 Richard Henderson <rth@redhat.com>
21902
21903 * alias.c (find_base_value): Only use new_reg_base_value shortcut
21904 if the register is set once.
21905
21906 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
21907
21908 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
21909 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
21910 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
21911
21912 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
21913 Sunil Davasam <sunil.k.davasam@intel.com>
21914
21915 PR libstdc++/9076
21916 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
21917 DW_CFA_same_value, read next and ignore.
21918
21919 2003-01-07 Richard Henderson <rth@redhat.com>
21920
21921 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
21922
21923 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
21924
21925 * cfg.c: Include alloc-pool.h
21926 (edge_pool): New pool.
21927 (bb_pool): New pool.
21928 (first_deleted_edge): Remove.
21929 (first_deleted_block): Remove.
21930 (init_flow): Alloc/free the pools.
21931 (free_edge): Use pools.
21932 (alloc_block): Ditto.
21933 (expunge_block): Ditto.
21934 (cached_make_edge): Ditto.
21935
21936 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
21937
21938 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
21939
21940 * et-forest.c: Include alloc-pool.h.
21941 (struct et_forest): Add node_pool and occur_pool.
21942 (et_forest_create): Create the new pools.
21943 (et_forest_delete): Delete them.
21944 (et_forest_add_node): Allocate and free using pools.
21945 (et_forest_add_edge): Ditto.
21946 (et_forest_remove_node): Ditto.
21947 (et_forest_remove_edge): Ditto.
21948
21949 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
21950
21951 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
21952
21953 * config/h8300/h8300.c (output_logical_op): Simplify and
21954 optimize the handling of SImode.
21955 * config/h8300/h8300.c (compute_logical_op_length): Update
21956 accordingly.
21957 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
21958
21959 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
21960
21961 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
21962 big-endian correction to indirect arguments too.
21963
21964 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
21965
21966 Segher Boessenkool <segher@koffie.nl>
21967
21968 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
21969 (alt_reg_names): Ditto, fix formatting.
21970 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
21971
21972 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
21973
21974 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
21975 (output_logical_op): Constify intval and det.
21976 (compute_logical_length): Likewise.
21977 (compute_logical_cc): Likewise.
21978 (output_a_shift): Constify mask.
21979 (h8300_encode_label): Constify len.
21980
21981 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
21982
21983 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
21984 (h8300_expand_epilogue): Likewise.
21985
21986 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
21987
21988 Segher Boessenkool <segher@koffie.nl>
21989
21990 * config/rs6000/altivec.md: Remove spaces from assembler
21991 instruction argument lists.
21992
21993 2003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21994
21995 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
21996 c4x_assembler_function_p.
21997 (c4x_null_epilogue_p): Complement return value, all uses updated.
21998 (c4x_insert_attributes): Add naked.
21999 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
22000 * doc/extend.texi: Update C4x function attributes.
22001
22002 2003-01-06 Richard Henderson <rth@redhat.com>
22003
22004 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
22005 properly when changing "local-ness".
22006 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
22007
22008 2003-01-06 Dale Johannesen <dalej@apple.com>
22009
22010 * config/darwin-protos.h: Add prototypes for new section functions.
22011
22012 2003-01-06 Chris Demetriou <cgd@broadcom.com>
22013
22014 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
22015 to EABI.
22016
22017 2003-01-06 Zack Weinberg <zack@codesourcery.com>
22018
22019 * hwint.h: If the current compiler has no 64-bit type at all,
22020 make HOST_WIDEST_INT 32 bits.
22021
22022 2003-01-06 Eric Christopher <echristo@redhat.com>
22023
22024 * config/mips/mips.md (movdf_internal2): Fix constraints.
22025
22026 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
22027
22028 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
22029
22030 2003-01-06 Richard Sandiford <rsandifo@redhat.com>
22031
22032 * config/mips/mips.md (leadi): Use dla rather than la.
22033
22034 2003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
22035
22036 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
22037 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
22038
22039 2003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
22040
22041 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
22042 redefinition.
22043
22044 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
22045
22046 * config/h8300/h8300.md (*extzv_8_23): New.
22047
22048 2003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
22049
22050 * pa64-hpux.h (JCR_SECTION_NAME): Define.
22051 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
22052 USE_EH_FRAME_REGISTRY when defining.
22053
22054 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
22055
22056 * config/h8300/h8300.c (output_a_shift): Do not output a
22057 variable shift.
22058 * config/h8300/h8300.md (two splitters): New.
22059
22060 2003-01-05 Richard Sandiford <rsandifo@redhat.com>
22061
22062 * config/mips/mips.md: Disable the movstrsi define_split.
22063
22064 2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22065
22066 * alloc-pool.c: Don't include "libiberty.h".
22067 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
22068 * convert.c (convert_to_real): Hide unused variable.
22069
22070 2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22071
22072 * Makefile.in (gtyp-gen.h): Const-ify.
22073 * gcov-dump.c (tag_table): Likewise.
22074
22075 2003-01-04 Bruce Korb <bkorb@gnu.org>
22076
22077 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
22078 of *both* the file name and the fix name.
22079
22080 2003-01-04 John David Anglin <dave.anglin@nrc.ca>
22081
22082 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
22083 collect2.
22084 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
22085 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
22086 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
22087 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
22088 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
22089 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
22090 elfos.h.
22091 (EH_FRAME_IN_DATA_SECTION): Delete define.
22092 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
22093 (STARTFILE_SPEC): Use crtbegin.o.
22094 (ENDFILE_SPEC): Use crtend.o.
22095 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
22096 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
22097 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
22098 DTOR_LIST_BEGIN): Define.
22099 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
22100 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
22101 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
22102
22103 2002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
22104
22105 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
22106 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
22107 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
22108 Cleanup handling of replacement text.
22109 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
22110
22111 2003-01-04 Bruce Korb <bkorb@gnu.org>
22112
22113 * fixinc/tests/base/math.h: removed obsolete results
22114 * fixinc/tests/base/stdlib.h: ditto
22115 * fixinc/tests/base/sys/param.h: ditto
22116 * fixinc/tests/base/sys/stat.h: ditto
22117 * fixinc/tests/base/time.h: ditto
22118 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
22119 * fixinc/tests/base/sys/byteorder.h: ditto
22120 * fixinc/inclhack.def: Remove superfluous backslashes
22121
22122 2003-01-04 Kazu Hirata <kazu@cs.umass.edu>
22123
22124 * config/h8300/h8300-protos.h: Add prototypes for
22125 the new functions defined below.
22126 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
22127 define.
22128 (dosize): Emit RTL instead of assembly code.
22129 (push): Likewise.
22130 (pop): Likewise.
22131 (h8300_output_function_prologue): Remove.
22132 (h8300_expand_prologue): New.
22133 (h8300_expand_epilogue): New.
22134 (h8300_output_function_epilogue): Do only the reset of
22135 pragma_saveall.
22136 * config/h8300/h8300.md (push_h8300): New.
22137 (push_h8300hs): Likewise.
22138 (pop_h8300): Likewise.
22139 (pop_h8300hs): Likewise.
22140 (*stm_h8300s_2): Change the name to stm_h8300s_2.
22141 (*stm_h8300s_3): Change the name to stm_h8300s_3.
22142 (*stm_h8300s_4): Change the name to stm_h8300s_4.
22143 (*ldm_h8300s_2): New.
22144 (*ldm_h8300s_3): Likewise.
22145 (*ldm_h8300s_4): Likewise.
22146 (return): Likewise.
22147 (*return_1): Likewise.
22148 (prologue): Likewise.
22149 (epilogue): Likewise.
22150 (monitor_prologue): Likewise.
22151
22152 2003-01-03 Dale Johannesen <dalej@apple.com>
22153
22154 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
22155 machopic_picsymbol_stub1.
22156 (EXTRA_SECTION_FUNCTIONS): Ditto.
22157 * rs6000/rs6000.c: Update copyright.
22158 (machopic_output_stub): Use them. Remove an insn from stub code.
22159
22160 2003-01-02 Jason Merrill <jason@redhat.com>
22161
22162 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
22163
22164 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
22165 static/external decls.
22166
22167 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
22168 outermost scope.
22169 * c-decl.c (c_make_fname_decl): Push the decls there, too.
22170
22171 2003-01-03 Kazu Hirata <kazu@cs.umass.edu>
22172
22173 * config/h8300/h8300-protos.h: Add a prototype for
22174 h8300_current_function_interrupt_function_p.
22175 * config/h8300/h8300.c (interrupt_handler): Remove.
22176 (os_task): Likewise.
22177 (monitor): Likewise.
22178 (pragma_interrupt): New.
22179 (WORD_REG_USED): Use
22180 h8300_current_function_interrupt_function_p.
22181 (dosize): Likewise.
22182 (h8300_output_function_prologue): Likewise.
22183 Do not set interrupt_handler, os_task, monitor.
22184 (h8300_output_function_prologue): Use
22185 h8300_current_function_interrupt_function_p.
22186 Do not set interrupt_handler, os_task, monitor.
22187 (h8300_current_function_interrupt_function_p): New.
22188 (h8300_pr_interrupt): Set pragma_interrupt.
22189 (h8300_insert_attributes): Reset pragma_interrupt.
22190
22191 2003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22192
22193 * doc/install.texi (Configuration): Fix markup for reference to
22194 gcc/config.gcc.
22195
22196 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
22197
22198 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
22199 (*iorhi3_two_qi): Likewise.
22200 (*iorsi3_zexthi): Likewise.
22201 (*xorhi3_zextqi): Likewise.
22202 (*xorsi3_zexthi): Likewise.
22203 (*xorsi3_zextqi): Likewise.
22204
22205 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
22206
22207 * config/h8300/h8300.c (stack_pointer_operand): New.
22208 (const_int_gt_2_operand): Likewise.
22209 (const_int_ge_8_operand): Likewise.
22210 * config/h8300/h8300.md (a splitter): Likewise.
22211 (a peephole2): Likewise.
22212 * config/h8300/h8300-protos.h: Add prototypes for the new
22213 functions above.
22214
22215 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
22216
22217 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
22218 objc/objc-act.h: Fix copyright years.
22219
22220 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
22221
22222 * doc/passes.texi: Fix documentation for -fssa-ccp
22223
22224 2003-01-02 Neil Booth <neil@daikokuya.co.uk>
22225
22226 * gccbug.in: Update for new categories.
22227
22228 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22229
22230 * config/h8300/h8300.md: Reorder some patterns.
22231
22232 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22233
22234 * config/h8300/h8300.c (output_logical_op): Fix a warning.
22235
22236 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
22237
22238 * config/darwin-protos.h, config/c4x/c4x-protos.h,
22239 config/cris/cris-protos.h, config/i370/i370-protos.h,
22240 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
22241 config/v850/v850-protos.h: Use struct, and don't conditionally
22242 compile on GCC_C_PRAGMA_H.
22243
22244 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22245
22246 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
22247 * config/h8300/h8300-protos.h: Likewise.
22248 * config/sh/sh-protos.h: Likewise.
22249
22250 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22251
22252 * config/arm/arm-protos.h: Use struct cpp_reader instead of
22253 cpp_reader.
22254 * config/h8300/h8300-protos.h: Likewise.
22255 * config/sh/sh-protos.h: Likewise.
22256
22257 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
22258
22259 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
22260 arm_pr_long_calls_off): Use struct.
22261 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
22262 : Similarly.
22263 Don't include cpplib.h.
22264 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
22265 sh_pr_nosave_low_regs): Similarly.
22266
22267 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22268
22269 * config/h8300/h8300.c: Include cpplib.h.
22270
22271 2003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
22272
22273 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
22274 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
22275 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
22276 "GCC" in the copyright header.
22277
22278 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
22279
22280 * c-pragma.c (c_register_pragma): New.
22281 (init_pragma): Use it.
22282 * c-pragma.h (cpp_register_pragma): Don't declare.
22283 (c_register_pragma): New.
22284 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
22285 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
22286 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
22287 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
22288 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
22289 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
22290 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
22291 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
22292 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
22293 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
22294 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
22295 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
22296
22297 See ChangeLog.8 for earlier changes.