]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
alias.c (static_reg_base_value): New to hold RTL for items allocated once per functio...
[gcc.git] / gcc / ChangeLog
CommitLineData
bf1660a6
JL
12002-06-10 Jeffrey Law <law@redhat.com>
2
3 * alias.c (static_reg_base_value): New to hold RTL for
4 items allocated once per function for the aliasing code.
5 (init_alias_once_per_function): Initialize static_reg_base_value.
6 (init_alias_analysis): Avoid throw-away allocations of RTL by
7 using pre-computed values in static_reg_base_value.
8 * function.c (prepare_function_start): Call
9 init_alias_once_per_function appropriately.
10 * rtl.h (init_alias_once_per_function): Declare.
11 * caller-save (init_caller_save): Restructure slightly to
12 avoid lots of silly RTL generation.
13 * expr.c (init_expr_once): Likewise.
14 * reload1.c (reload_cse_regs_1): Allocate throw-away register
15 RTL object here. Pass it into children.
16 (reload_cse_simplify_operands): Use passed-in register RTL
17 object.
18 (reload_cse_simplify): Pass through throw-away register
19 RTL object.
20
8dc58484
DB
212002-06-10 Daniel Berlin <dberlin@dberlin.org>
22
23 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
24
ea16b5ee
RS
252002-06-10 Richard Sandiford <rsandifo@redhat.com>
26
27 * gcc.c (process_command): Avoid assignment to read-only location.
28 Fix sizeof calculation.
29
6618c5d4
NB
302002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
31
32 * cpphash.h (struct cpp_macro): Put comments on their own lines.
33 (_cpp_expansions_different_trad): New.
34 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
35 * cpptrad.c (canonicalize_text): New.
36 (scan_out_logical_line): Handle no arguments correctly.
37 (save_replacement_text): Commit memory when finished.
38 (_cpp_expansions_different_trad): New.
39
96e3ac4f
TJ
402002-06-10 Tim Josling <tej@melbpc.org.au>
41
42 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
43 TREELANG and COBOL.
44 (lang_names): Add treelang and cobol.
45 (get_file_basename): Add code to support treelang and cobol as
46 4th and 5th users of c-common.c.
47
37a4aa31
GK
482002-06-09 Geoffrey Keating <geoffk@redhat.com>
49
50 * Makefile.in (install-driver): Install driver as
51 $(target_alias)-gcc-$(version).
52 * gcc.c (spec_version): Make const.
53 (process_command): Handle -V and -b by using exec.
54 * doc/invoke.texi (Target Options): Restore -V option,
55 update docs for -b option.
56
02ef40d9
TJ
572002-06-10 Tim Josling <tej@melbpc.org.au>
58
59 * configure.in (remaining_languages_check):
60 Added check that all languages specified were found.
61 Exit if not found. Previous behaviour was silent failure.
62 * configure: Regenerated.
63
b38b97c4
TJ
642002-06-10 Tim Josling <tej@melbpc.org.au>
65
66 First steps to making treelang documentation compliant, based on
67 instructions in sourcebuild.texi. Also add to gcc.c list of
68 default languages.
69
70 * doc/contrib.texi: Add self as contributor of treelang.
71
72 * doc/frontends.texi: Add mention of treelang.
73
74 * doc/invoke.texi (Overall Options): Add mention of treelang.
75
76 * doc/standards.texi: Add mention of treelang.
77
ae9dbf1f
HPN
782002-06-09 Hans-Peter Nilsson <hp@axis.com>
79
80 * config/cris/cris.c: Include ggc.h
81
1ce676a0
NB
822002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
83
84 * cpphash.h (_cpp_push_text_context): Update.
85 (_cpp_arguments_ok): New.
86 * cppmacro.c (_cpp_arguments_ok): New, split out from...
87 (collect_args): ...here.
88 (_cpp_push_text_context): Change inputs.
89 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
90 replace_args_and_push): New.
91 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
92 Don't use IS macros directly.
93 (scan_out_logical_line): Handle function-like macro argument
94 collection.
95 (push_replacement_text): Update.
96 (replacement_length): Remove.
97 (_cpp_create_trad_definition): Don't skip whitespace before
98 checking for '('.
99
25f2e176
MM
1002002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
101
102 * config/avr/avr.c (avr_mcu_types): Update for new devices.
103 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
104 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
105 * config/avr/avr.md ("type" and "length" attributes): New type
106 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
107 output a single "call" or "rcall" insn depending on device size.
108 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
109
309323c2
DE
1102002-06-09 David Edelsohn <edelsohn@gnu.org>
111
112 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
113 synonym for 630. Add power4. Remove embedded processors. Use -m604
114 assembler option.
115 (CPP_CPU_SPEC): Add power3 and power4.
116 (PROCESSOR_DEFAULT): Change to 604e.
117 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
118 (CPP_CPU_SPEC): Similar additions.
119 (enum process_type): Add POWER4.
120 (RTX_COSTS): Add POWER4.
121 (CPP_CPU_SPEC): Similar additions.
122 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
6ef0903d 123 (PROCESSOR_DEFAULT64): Define.
309323c2
DE
124 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
125 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
126 branch adjustment.
127 (rs6000_issue_rate): Add Power4.
128 * config/rs6000/rs6000.md (cpu attr): Add power4.
129 (iu compare): Remove 604, 604e, 620, 630.
130 Add basic Power4 scheduling information.
131 (mfcr/mtcrf): Change type attribute to cr_logical.
132
1f8e4682
KG
1332002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
134
57d80297
KG
135 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
136 ATTRIBUTE_PRINTF_2.
137 * gengtype-lex.l: Fix format specifier warning.
138
1f8e4682
KG
139 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
140 not isspace.
141 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
142 lieu of isspace/IDchar.
143 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
144 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
145 ISSPACE.
146
5a9ee623
ZW
1472002-06-08 Zack Weinberg <zack@codesourcery.com>
148
149 * Makefile.in (LIBCPP_OBJS): Take out version.o.
150 * cpphash.h (cpp_reader): Take out print_version member.
151 * cppinit.c: (cpp_handle_option): Don't do anything with
152 -version. Just set help_only for --version, --target-help.
153 Just set verbose option for -v.
154 (cpp_post_options): Don't print a version string.
155
c16e5a35
MM
1562002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
157
158 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
159 (avr_section_type_flags): New, handle .noinit* sections.
160
79bc889e
JT
1612002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
162
163 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
164 and include netbsd_entry_point.
165 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
166 (NETBSD_ENTRY_POINT): Define.
167
6a79bb0a
JT
1682002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
169
170 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
5a9ee623 171 if not already defined.
6a79bb0a
JT
172 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
173
e52b6b63
MM
1742002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
175
176 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
177 in a noreturn function.
178 (avr_output_function_prologue, avr_output_function_epilogue):
179 Correct function size calculation. Do not crash on empty function.
180 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
181
1569d670
JT
1822002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
183
184 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
185 netbsd_link_spec and netbsd_entry_point.
186 (LINK_SPEC): Use %(netbsd_link_spec).
187 (NETBSD_ENTRY_POINT): Define.
188
cfb06024
JT
1892002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
190
191 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
192 linker emulation.
193 (LINK_ARCH64_SPEC): Likewise.
194 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
195 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
196
5a9ee623
ZW
1972002-06-08 Marc Espie <espie@openbsd.org>
198
199 * lists.c (free_list): Fix typo in comment.
e3623158 200
272cdf58
AJ
2012002-06-08 Andreas Jaeger <aj@suse.de>
202
203 * lcm.c (optimize_mode_switching): Add unused attribute for
204 variable.
205
206 * sched-deps.c (sched_analyze): Remove unused variable.
207
bf3f2a12
GDR
2082002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
209
210 * diagnostic.def: Don't capitalize diagnostict descriptors.
211
523a5f2f
JT
2122002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
213
214 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
215 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
216 (NETBSD_ENTRY_POINT): Define.
217
a3e944f9
JT
2182002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
219
220 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
221 NETBSD_LINK_SPEC_ELF.
222 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
223 (NETBSD_ENTRY_POINT): Define.
224 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
225 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
226 netbsd_entry_point.
227 (NETBSD_ENTRY_POINT): Define.
228
854928a0
JT
2292002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
230
231 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
232 netbsd_link_spec and netbsd_entry_point.
233 (LINK_SPEC): Use %(netbsd_link_spec).
234 (NETBSD_ENTRY_POINT): Define.
235
6bb5d2e7
JT
2362002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
237
238 * config/netbsd-elf.h (LINK_SPEC): Rename to...
239 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
240 to specify program entry point.
241
e50126e8
JL
2422002-06-07 Jeff Law <law@redhat.com
243
244 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
272cdf58 245 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
e50126e8
JL
246 than creating a new register.
247 (distribute_notes): Likewise.
248 * df.c (df_reg_use_gen): Likewise.
249 (df_reg_clobber_gen): Likewise.
250 (df_ref_record): Likewise.
251 * expr.c (use_regs): Likewise.
252 * flow.c (propagate_one_insn): Likewise.
253 (mark_set_1): Likewise.
254 (mark_used_reg): Likewise.
255 * reload.c (emit_reload_insns): Likewise.
256
bc9c18c3
RS
2572002-06-07 Roger Sayle <roger@eyesopen.com>
258
259 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
260 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
261 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
262 comparison code comp can be reversed.
263
437f1df1
RS
2642002-06-07 Roger Sayle <roger@eyesopen.com>
265
266 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
267 constants last in comparisons. Optimize (x+1.0)>0.0 into the
268 equivalent x > -1.0 when -ffast-math.
269
cd24b8a4
JT
2702002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
271
272 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
273 * config/mips/t-netbsd: New file.
274
09e77dee
ZW
2752002-06-07 Zack Weinberg <zack@codesourcery.com>
276
277 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
278 options their own entries.
279 (parse_option): Clarify comment.
280 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
281 special case. Replace if/strcmp chain for -W options with
282 use of new OPT_* entries for them.
283 (cpp_handle_options): Update to match.
284 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
285 * c-decl.c: Update call to cpp_handle_option.
286
942030dc
AD
2872002-06-07 Akim Demaille <akim@epita.fr>
288
289 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
290 Whitespace changes.
291
f2846820
JL
2922002-06-07 Jeffrey Law <law@redhat.com>
293
294 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
295 on empty lists.
296
4bafaa6f
L
2972002-06-07 H.J. Lu (hjl@gnu.org)
298
299 * configure.in: Add --enable-__cxa_atexit.
300 * configure: Regenerated.
301 * config.in: Likewise.
302
303 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
304 not defined.
305
caef5b46
GDR
3062002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
307
308 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
309
ac64a17c
JT
3102002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
311
312 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
313
97459791
JM
3142002-06-07 Jason Merrill <jason@redhat.com>
315
316 * cppexp.c (num_equality_op): Use a temporary variable to work
317 around gcc 3.0.4 bug.
318
4b1d52c7
GDR
3192002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
320
321 * diagnostic.c (diagnostic_build_prefix): Tidy.
322
c70f6ed3
NB
3232002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
324
325 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
326 scan_parameters, save_replacement_text, replacement_length): New.
327 (scan_out_logical_line): Take a macro and save parameters if
328 non-NULL.
329 (_cpp_logical_line_trad): Update.
330 (_cpp_create_trad_definition): Update to handle function-like
331 macros.
332 * cpplex.c (new_buff): Update.
333 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
334 * cpphash.h: ...here.
335 (CPP_ALIGN2, _cpp_save_parameter): New.
336 * cppmacro.c (save_parameter): Rename, export.
337 (parse_params): Update.
338
aec2ac46
AJ
3392002-06-07 Andreas Jaeger <aj@suse.de>
340
341 * config/mmix/mmix.c: Remove extra broken prototype for
342 mmix_init_machine_status.
343
9f313342
GK
3442002-06-06 Geoffrey Keating <geoffk@redhat.com>
345
346 * gengtype.c: Add comments before all the routines.
347
3fa1b448
JT
3482002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
349
350 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
351 from and add t-sh64 to ${tmake_file}.
352 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
353 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
354 * config/sh/t-netbsd-sh5-32: Remove.
355 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
356 MULTILIB_ENDIAN.
357 (MULTILIB_DIRNAMES): Define.
358
0d682900
JH
359Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
360
361 * i386.md (and promoting splitters): Disable QI to SImode promoting
362 when doing so changes immediate to be 32bit.
363
364 * rtl.h (emit_*_scope): Declare.
365 * emit-rtl.c (emit_*_scope): New global functions.
366 (try_split): Copy scope.
367 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
368 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
369 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
370 noce_process_if_block, find_cond_trap): Copy scopes.
371 * recog.c (peephole2_optimize): likewise.
372
c991649c
JL
3732002-06-06 Jeffrey Law <law@redhat.com>
374
375 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
376
8a5d66c4
R
377Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
378
379 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
380
d7f8491b
RO
3812002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
382
383 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
384 ($(docdir)/gccinstall.info): New target.
385 (info): Depend on it.
386 (gccinstall.dvi): New target.
387 (dvi): Depend on it.
388 * doc/.cvsignore: Ignore new info files.
389 * doc/install.texi (@setfilename): Reflect new info filename.
390
eaeb7de8
R
391Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
392
393 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
394 on an UNSPEC.
395
0c7aeb88
NP
396Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
397
398 PR objc/6834
399 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
400 c_common_get_alias_set.
aec2ac46 401 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
0c7aeb88 402
2a496e8b
JDA
4032002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
404
405 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
406 functions.
407 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
408 * avr/avr.c (avr_output_function_epilogue): Use above to determine
409 function size.
410 * pa/pa.c (pa_output_function_prologue): Likewise.
411
2ff581c3
DM
4122002-06-05 David S. Miller <davem@redhat.com>
413
414 * integrate.c (subst_constants): Handle 'B' RTL format.
415
b2e2d0cc
EC
4162002-06-05 Eric Christopher <echristo@redhat.com>
417
418 * varasm.c (make_decl_rtl): Fix comment for removed
419 halfpic.c.
420
0f81faf6
EC
4212002-06-05 Eric Christopher <echristo@redhat.com>
422
423 * Makefile.in: Remove missed halfpic bits.
424
33005162
EC
4252002-06-05 Eric Christopher <echristo@redhat.com>
426
427 * toplev.c: Remove half-pic.
428 * config/mips/mips.c: Ditto.
429 * config/mips/mips.h: Ditto. Remove unused defines.
430 * config/mips/openbsd.h: Update comment to reflect above.
431 * config/mips/mips.md: Remove half-pic constraints.
432 * halfpic.h: Delete.
433 * halfpic.c: Ditto.
434
80081028
JL
4352002-06-05 Jeffrey Law <law@redhat.com>
436
5a9ee623
ZW
437 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
438 rejects (mem (lo_sum (reg) (unspec))), but will allow
439 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
80081028 440
cbc69f84
NB
4412002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
442
443 * cpphash.h (_cpp_create_definition): Update prototype.
444 (_cpp_push_text_context, _cpp_create_trad_definition): New.
445 ( cpp_lex_identifier_trad): New.
446 (_cpp_set_trad_context): New.
447 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
448 * cpplib.c (SEEN_EOL): Update.
449 (lex_macro_node): Update for -traditional.
450 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
451 * cppmacro.c (_cpp_create_definition): Split into
452 create_iso_definition() and _cpp_create_trad_definition().
453 (warn_of_redefinition): Update prototype; handle traditional
454 macros.
455 (_cpp_push_text_context): New.
456 * cpptrad.c (skip_whitespace, push_replacement_text): New.
457 (lex_identifier): Call ht_lookup with correct start.
458 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
459 _cpp_set_trad_context): New.
460 (scan_out_logical_line): Update to handle changing contexts.
461
dbf87f32
R
462Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
463
464 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
465 (shl*-*-elf*): Add.
466 * config/sh/t-be (MULTILIB_ENDIAN): Set.
467 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
468 * t-sh (MULTILIB_ENDIAN): Set.
469 (MULTILIB_OPTIONS): Use it.
470 * t-sh64 (MULTILIB_OPTIONS): Likewise.
471 (MULTILIB_DIRNAMES): Likewise.
472
47b69537
GDR
4732002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
474
475 * toplev.h (report_error_function): Remove.
476
477 * diagnostic.h (location_t): New datatype.
478 (text_info): Likewise.
479 (diagnostic_info): Likewise.
480 (output_prefix): New macro.
481 (diagnostic_last_function_changed): Likewise.
482 (diagnostic_set_last_function): Likewise.
483 (diagnostic_last_module_changed): Likewise.
484 (diagnostic_set_last_module): Likewise.
485 (report_diagnostic): Now macro.
486 (diagnostic_set_info): Declare.
487
488 * diagnostic.c (report_problematic_module): Rename to
33005162 489 diagnostic_repor_current_module.
47b69537
GDR
490 (set_diagnostic_context): Remove.
491 (count_error): Rename to diagnostic_error_count.
492 (error_function_changed): Remove.
493 (record_last_error_function): Likewise.
494 (error_module_changed): Likewise.
495 (record_last_error_module): Likewise.
496 (context_as_prefix): Rename to diagnostic_build_prefix.
497 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
498 (diagnostic_set_info): New function.
499
500 * objc/objc-act.c: #include diagnostic.h
501 (error_with_ivar): Adjust call to count_error.
502 (warn_with_method): Likewise.
503 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
504
540eaea8
BW
5052002-06-05 Bob Wilson <bob.wilson@acm.org>
506
507 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
508 lang_hooks.types.make_type instead of make_node; set up
509 __va_list_tag type decl.
510 (xtensa_builtin_saveregs): Remove broken use of
511 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
512 for saved registers; add varargs alias set.
513
f23a084d
NB
5142002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
515
516config:
517 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
518 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
519 CPP_PREDEFINES and part of CPP_SPEC.
520 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
521 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
522
3fe3a596
JH
523Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
524
525 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
526
1fd9ba59
AM
5272002-06-05 Alan Modra <amodra@bigpond.net.au>
528
529 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
530
cea554e0
ZW
5312002-06-04 Zack Weinberg <zack@codesourcery.com>
532
533 * gengtype-yacc.y: Make sure all rules end with a semicolon.
534
07232638
BW
5352002-06-04 Bob Wilson <bob.wilson@acm.org>
536
537 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
538 typo in function prototype and include "ggc.h" header.
539
c4b50f1a
RH
5402002-06-04 Richard Henderson <rth@redhat.com>
541
542 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
543 (print_operand) ['U']: Likewise.
544 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
545 (alpha_expand_unaligned_store_words): Likewise.
546 (alpha_expand_builtin_vector_binop): Fix typo.
547 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
548 umulh, and cix insns.
549 (one_arg_builtins): Add cix builtins.
550 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
551 (alpha_expand_builtin): Fix typo in arity.
552 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
553 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
554 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
555 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
556 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
557 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
558 builtin_ctlz, builtin_ctpop): New.
559 * doc/extend.texi (Alpha Built-in Functions): Update.
560
aaab35ae
GK
5612002-06-04 Geoffrey Keating <geoffk@redhat.com>
562
afb0f770
GK
563 * gengtype.c (write_gc_root): Don't unnecessarily prevent
564 global variable-length arrays being roots.
565
aaab35ae
GK
566 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
567 * configure.in (config_gtfiles): New variable.
568 (all_gtfiles): Initialise from config_gtfiles.
569 * configure: Regenerate.
570
1ba7b414
NB
5712002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
572
573config/i386:
574 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
575 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
576 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
577 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
578 win32.h (CPP_SPEC): Remove cpp_cpu.
579 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
580 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
581
135ca7b2
JJ
5822002-06-04 Janis Johnson <janis187@us.ibm.com>
583
584 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
585
85d69216 5862002-06-04 Jeff Law <law@redhat.com.
5a9ee623
ZW
587 David Edelsohn <edelsohn@gnu.org>
588 Michael Matz <matz@kde.org>
85d69216
JL
589
590 * sched-int.h (struct deps): New field libcall_block_tail_insn.
591 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
592 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
593 is set, then mark the current insn as being part of a libcall
594 scheduling group.
595 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
596
597 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
598 insns against the issue rate.
599
63f4a88e
JH
600Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
601
602 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
603 * final.c (final_scan_insn): Likewise.
604 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
605 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
606 * haifa-sched.c (unlink_other_notes): Likeewise.
607 (reemit_notes): Likewise.
608 * print-rtl.c (print_rtx): Likewise.
609 * sched-deps (sched-analyze): Likewise.
610 * rtl.c (note_insn_name): Likewise.
611 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
612 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
613 (RANGE_*): Kill.
614
a5d1f75b
JT
6152002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
616
617 * varasm.c (mark_constants): Handle RTX format 'B'.
618
82eda77e
NB
6192002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
620
621 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
622 (struct cpp_context): Add traditional fields.
623 * cppmacro.c (paste_all_tokens, push_ptoken_context,
624 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
625 * cpptrad.c (skip_comment, lex_identifier,
626 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
627
589005ff
KH
6282002-06-04 Kazu Hirata <kazu@cs.umass.edu>
629
630 * gbl-ctors.h: Fix formatting.
631 * gcc.c: Likewise.
632 * gccspec.c: Likewise.
633 * gcov.c: Likewise.
634 * gcov-io.h: Likewise.
635 * gcse.c: Likewise.
636 * ggc-common.c: Likewise.
637 * ggc.h: Likewise.
638 * ggc-page.c: Likewise.
639 * ggc-simple.c: Likewise.
640 * global.c: Likewise.
641 * graph.h: Likewise.
642 * gthr-dce.h: Likewise.
643 * gthr.h: Likewise.
644 * gthr-posix.h: Likewise.
645 * gthr-rtems.h: Likewise.
646 * gthr-solaris.h: Likewise.
647 * gthr-win32.h: Likewise.
648
e2500fed
GK
6492002-06-03 Geoffrey Keating <geoffk@redhat.com>
650
651 Merge from pch-branch:
33005162 652
e2500fed
GK
653 * gengtype.h (UNION_OR_STRUCT_P): New macro.
654 * gengtype.c (write_gc_structure_fields): Use it.
655 (write_gc_root): Use it here too.
656
657 * gengtype.c (write_gc_structure_fields): Assume that lengths
658 of typenames fit into an 'int'; don't pass a size_t to "%d" in
659 printf.
660 (write_gc_marker_routine_for_structure): Likewise.
661 (write_gc_types): Likewise.
662 (write_gc_root): Likewise.
663
664 * varray.h (VARRAY_CLEAR): New.
665 (varray_clear): Prototype.
666 * varray.c (varray_clear): New.
667 * cselib.c (reg_values_old): New.
668 (used_regs_old): New.
669 (cselib_init): Use cached varrays if available to avoid
670 generating large amounts of garbage.
671 (cselib_finish): Don't throw away old varrays.
672
673 * final.c (insn_addresses_): Move out of ifdef.
674
675 * varray.c (uses_ggc): Make more varray kinds GCable.
676 * varray.h (union varray_data_tag): Let gengtype see
677 fields 'generic' and 'te'.
678 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
679 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
680 (reg_to_stack): Don't call VARRAY_FREE.
681 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
682 (insn_addresses_): Use gengtype to mark.
683 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
684 pointers; handle generic pointers in unused union fields.
685 (get_output_file_with_visibility): Include cselib.h,
686 insn-addr.h in gtype-desc.c.
687 * function.c (prologue): Use gengtype to mark.
688 (epilogue): Likewise.
689 (sibcall_epilogue): Likewise.
690 * dependence.c: Include gt-dependence.h, ggc.h.
691 (struct def_use): Use gengtype to mark.
692 (struct loop): Likewise.
693 (struct induction): Likewise.
694 (struct dependence): Likewise.
695 (def_use_chain): Likewise.
696 (dep_chain): Likewise.
697 (loop_chain): Likewise.
698 (induction_chain): Likewise.
699 (init_dependence_analysis): Don't free anything, just clear pointers.
700 (build_def_use): Use GGC to allocate def_use.
701 (add_loop): Use GGC to allocate loop.
702 (find_induction_variable): Use GGC to allocate induction.
703 (check_node_dependence): Use GGC to allocate induction, dependence.
704 (dump_node_dependence): Don't free varrays.
705 (end_dependence_analysis): Likewise.
706 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
707 (struct elt_loc_list): Likewise.
708 (struct elt_list): Likewise.
709 * cselib.c: Don't include obstack.h.
710 (hash_table): Use gengtype to mark.
711 (reg_values): Use gengtype to mark.
712 (used_regs): Use gengtype to mark.
713 (cselib_obstack): Delete.
714 (cselib_startobj): Delete.
715 (empty_vals): Mark as deletable.
716 (empty_elt_lists): Mark as deletable.
717 (empty_elt_loc_lists): Mark as deletable.
718 (new_elt_list): Use GGC to allocate struct elt_list.
719 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
720 (clear_table): Don't delete obstack; don't unnecessarily clear
721 deletable variables.
722 (new_cselib_val): Use GGC to allocate struct cselib_val.
723 (cselib_init): Don't set up obstacks. Use GGC to allocate
724 hash table.
725 (cselib_finish): Just clear variables, don't free anything.
726 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
727 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
728 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
729 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
730 (gt-reg-stack.h): New rule.
731 (gt-dependence.h): New rule.
732 (gtype-desc.o): Add cselib.h, insn-addr.h.
733
734 * varray.c: Use only necessary headers.
735 (element_size): New.
736 (uses_ggc): New.
737 (varray_init): Take type, not size. Use GGC if appropriate.
738 (varray_grow): Update for change to struct varray_head_tag.
739 Use GGC if appropriate.
740 * varray.h (struct const_equiv_data): Use gengtype.
741 (enum varray_data_enum): New.
742 (union varray_data_tag): Use gengtype.
743 (struct varray_head_tag): Use gengtype. Replace size field with
744 enum varray_data_enum.
745 (varray_init): Update prototype.
746 (VARRAY_SCHED_INIT): Delete.
747 (VARRAY_*_INIT): Update for change to varray_init.
748 (VARRAY_SCHED): Delete.
749 (VARRAY_PUSH_SCHED): Delete.
750 (VARRAY_TOP_SCHED): Delete.
751 * tree.h: Update for change to length specifier.
752 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
753 (clone_body): Likewise.
754 * ssa.h (ssa_definition): Use gengtype to mark.
755 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
756 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
757 * rtl.h (struct rtvec_def): Update for change to length specifier.
758 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
759 (struct initial_value_struct): Update for change to length specifier.
760 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
761 (ggc_add_tree_varray_root): Delete prototype.
762 (ggc_mark_rtx_varray): Delete prototype.
763 (ggc_mark_tree_varray): Delete prototype.
764 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
765 (ggc_add_tree_varray_root): Delete.
766 (ggc_mark_rtx_varray): Delete.
767 (ggc_mark_tree_varray): Delete.
768 (ggc_mark_rtx_varray_ptr): Delete.
769 (ggc_mark_tree_varray_ptr): Delete.
770 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
771 (create_varray): Delete prototype.
772 * gengtype.c (varrays): Delete.
773 (create_varray): Delete.
774 (adjust_field_type): Detect array of string pointers.
775 (process_gc_options): Remove code to handle varray_type option.
776 (set_gc_used_type): Remove TYPE_VARRAY case.
777 (output_escaped_param): New.
778 (write_gc_structure_fields): Use output_escaped_param on all
779 parameters. Handle 'skip' with 'use_param' option. Handle
780 arrays of strings. Remove TYPE_VARRAY handling.
781 (write_gc_roots): Use boolean to detect 'length' option.
782 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
783 (struct_fields): Call adjust_field_type on array fields.
784 (type): Remove VARRAY_TYPE case.
785 (type_option): Likewise.
786 * gengtype-lex.l: Don't consider varray_type a keyword.
787 * function.h: Update for change to length specifier.
788 (free_eh_status): Delete prototype.
789 * function.c (free_after_compilation): Don't call free_eh_status.
790 (reorder_blocks): Don't use VARRAY_FREE.
791 * except.c (struct eh_status): Update for change to length specifier.
792 remove varray_type specifier.
793 (free_eh_status): Delete.
794 * dwarf2out.c: Include gt-dwarf2out.h.
795 (used_rtx_varray): Use gengtype to mark, move
796 outside ifdefs.
797 (incomplete_types): Likewise.
798 (decl_scope_table): Likewise.
33005162 799 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
e2500fed
GK
800 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
801 * c-tree.h (struct lang_type): Update for change to length specifier.
802 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
803 * c-objc-common.c: Include gt-c-objc-common.h.
804 (deferred_fns): Mark for gengtype.
805 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
806 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
807 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
808 (gtype-desc.o): Update dependencies.
809 (dwarf2out.o): Add gt-dwarf2out.h.
810 (varray.o): Update dependencies.
811 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
812 (gt-c-objc-common.h): New rule.
813 (gt-dwarf2out.h): New rule.
814 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
815
816 * doc/gty.texi (GTY Options): Correct spelling.
817 (GGC Roots): Likewise.
818 * Makefile.in (TEXI_CPP_FILES): New.
819 (TEXI_GCC_FILES): New.
820 (TEXI_GCCINT_FILES): New.
821 (TEXI_CPPINT_FILES): New.
822 ($(docdir)/cpp.info): Use new macros.
823 ($(docdir)/gcc.info): Likewise.
824 ($(docdir)/gccint.info): Likewise.
825 ($(docdir)/cppinternals.info): Likewise.
826 (cpp.dvi): Likewise.
827 (gcc.dvi): Likewise.
828 (gccint.dvi): Likewise.
829 (cppinternals.dvi): Likewise.
830
831 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
832 * doc/gccint.texi (Top): Include gty.texi.
833 * doc/gty.texi: New file.
834
835 * bitmap.c: Include ggc.h, gt-bitmap.h.
836 (bitmap_ggc_free): New.
837 (bitmap_elem_to_freelist): New.
838 (bitmap_element_free): Use bitmap_elem_to_freelist.
839 (bitmap_element_allocate): Allow use of GGC.
840 (bitmap_clear): Use bitmap_elem_to_freelist.
841 (bitmap_copy): Update for change to bitmap_element_allocate.
842 (bitmap_set_bit): Likewise.
843 (bitmap_operation): Update for changes elsewhere.
844 (bitmap_initialize): Allow to create bitmaps that will use GGC.
845 * bitmap.h (struct bitmap_element_def): Use gengtype.
846 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
847 (bitmap_initialize): Add extra parameter.
848 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
849 (BITMAP_ALLOCA): Delete.
850 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
851 (BITMAP_GGC_ALLOC): New.
852 * Makefile.in (gtype-desc.o): Add bitmap.h.
853 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
854 (GTFILES): Add bitmap.c.
855 (gt-bitmap.h): New rule.
856 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
857 * basic-block.h: Update for changes to bitmap_initialize.
858 * except.c (exception_handler_label_map): Move into...
859 (struct eh_status): Here.
860 (struct eh_region): Make 'aka' GCable.
861 (free_eh_status): Don't need to specially handle
862 exception_handler_label_map.
863 (add_ehl_entry): Update for changes to exception_handler_label_map.
864 (find_exception_handler_labels): Likewise.
865 (remove_exception_handler_label): Likewise.
866 (maybe_remove_eh_handler): Likewise.
867 (for_each_eh_label): Likewise.
868 (remove_eh_handler): Allocate 'aka' using GGC.
869 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
870 to list of includes.
871
872 * gengtype.c (write_gc_marker_routine_for_structure): Name
33005162 873 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
e2500fed
GK
874 (write_gc_types): Arrange for the tests with NULL to be inlined.
875 (write_gc_roots): Update uses of procedure pointers.
876 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
877
878 * Makefile.in (explow.o): Add dependency on gt-explow.h.
879 (sdbout.o): Add dependency on gt-sdbout.h.
880
881 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
882 (mem_attrs_htab): Likewise.
883 (init_emit_once): Don't call ggc_add_deletable_htab.
884 * fold-const.c (size_htab): Use gengtype to clear unused entries.
885 (size_int_type_wide): Don't call ggc_add_deletable_htab.
886 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
887 parameters, use them, change callers.
888 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
889 (write_gc_roots): Handle 'if_marked' option.
890 (main): Don't need to call set_gc_used_type any more.
891 * ggc.h (ggc_htab_marked_p): Delete.
892 (ggc_htab_mark): Delete.
893 (struct ggc_cache_tab): New.
894 (gt_ggc_cache_rtab): New declaration.
895 * ggc-common.c (struct d_htab_root): Delete.
896 (d_htab_roots): Delete.
897 (ggc_add_deletable_htab): Delete.
898 (ggc_htab_delete): Handle new htab-deleting mechanism.
899 (ggc_mark_roots): Use new htab-deleting mechanism.
900 * tree.c (type_hash_table): Use gengtype to clear unused entries.
901 Make static.
902 (init_obstacks): Don't call ggc_add_deletable_htab.
903
904 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
905 (struct hashed_entry): Likewise.
906 (nst_method_hash_list): Likewise.
907 (cls_method_hash_list): Likewise.
908 (HASH_ALLOC_LIST_SIZE): Delete.
909 (ATTR_ALLOC_LIST_SIZE): Delete.
910 * objc/objc-act.c (hash_init): Use ggc to allocate
911 nst_method_hash_list, cls_method_hash_list.
912 (hash_enter): Use ggc to allocate; allocate one entry at a time.
913 (hash_add_attr): Likewise.
914 (ggc_mark_hash_table): Delete.
915 (objc_act_parse_init): Delete.
916 (objc_init): Delete reference to objc_act_parse_init.
917 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
918 obstack.h. Replace references to 'struct hash_table' with htab_t.
919 (struct symbol_hash_entry): Replace hash header with key field.
920 (struct file_hash_entry): Replace hash header with key field.
921 (struct demangled_hash_entry): Replace hash header with key field.
922 (hash_string_eq): New.
923 (hash_string_hash): New.
924 (symbol_hash_newfunc): Delete.
925 (symbol_hash_lookup): Modify to use htab_t.
926 (file_hash_newfunc): Delete.
927 (file_hash_lookup): Modify to use htab_t.
928 (demangled_hash_newfunc): Delete.
929 (demangled_hash_lookup): Modify to use htab_t.
930 (tlink_init): Modify to use htab_t.
931 * hash.h: Delete.
932 * hash.c: Delete.
933 * ggc.h: Delete forward structure declarations.
934 Delete prototypes for deleted functions.
935 * ggc-common.c: Don't include hash.h.
936 (ggc_add_tree_hash_table_root): Delete.
937 (ggc_mark_tree_hash_table_entry): Delete.
938 (ggc_mark_tree_hash_table): Delete.
939 (ggc_mark_tree_hash_table_ptr): Delete.
940 * gengtype.c (write_gc_structure_fields): Allow param_is option.
941 (write_gc_marker_routine_for_structure): Use visibility of
942 the parameter if there is one.
943 * function.c: Replace hash.h with hashtab.h. Replace references
944 to 'struct hash_table *' with htab_t.
945 (struct insns_for_mem_entry): Include a plain key.
946 (fixup_var_refs_insns_with_hash): Update to use htab_t.
947 (insns_for_mem_newfunc): Delete.
948 (insns_for_mem_hash): Update to use htab_t.
949 (insns_for_mem_comp): Likewise.
950 (insns_for_mem_walk): Likewise.
951 * c-lang.c: Include ggc.h.
952 * Makefile.in (OBJS): Remove hash.o.
953 (c-lang.o): Add GGC_H.
954 (COLLECT2_OBJS): Remove hash.o.
955 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
956 (ggc-common.o): Remove hash.h.
957 (function.o): Remove hash.h, add HASHTAB_H.
958 (genautomata.o): Remove hash.h, add HASHTAB_H.
959
960 * varasm.c (mark_const_str_htab_1): Delete.
961 (mark_const_str_htab): Delete.
962 (const_str_htab_del): Delete.
963 (const_str_htab): Use gengtype to mark.
964 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
965 allocate them.
966 * tree.c (mark_tree_hashtable_entry): Delete.
967 (mark_tree_hashtable): Delete.
968 * tree.h (mark_tree_hashtable): Delete prototype.
969 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
970 (ggc_mark): Likewise.
971 (ggc_calloc): New.
972 (htab_create_ggc): New.
973 * ggc-common.c (ggc_calloc): New.
974 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
975 (struct type): Add param_struct structure.
976 * gengtype.c (param_structs): New.
977 (adjust_field_type): Handle param_is option.
978 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
979 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
980 (write_gc_structure_fields): Add new PARAM parameter. Update
981 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
982 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
983 Use it to generate function name. Update callers.
984 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
985 Process them.
986 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
987 option.
988 (main): Define PTR as pointer-to-scalar. Don't specially
989 mark deferred_string or ehl_map_entry.
990 * gengtype-yacc.y (PARAM_IS): Add new token.
991 (externstatic): Use adjust_field_type.
992 (type_option): Add PARAM_IS.
993 * gengtype-lex.l: Add rule for typedef of function pointers.
994 Add rule for PARAM_IS.
995 (IWORD): Add size_t.
996 * except.c (exception_handler_label_map): Use gengtype to mark.
997 (type_to_runtime_map): Likewise.
998 (mark_ehl_map_entry): Delete.
999 (mark_ehl_map): Delete.
1000 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
1001 (t2r_mark_1): Delete.
1002 (t2r_mark): Delete.
1003 * Makefile.in (gtype-desc.o): Correct dependencies.
1004 (GTFILES): Add hashtab.h.
1005 (genautomata.o): Actually uses hashtab.h.
1006
1007 * Makefile.in (stringpool.o): Add $(GGC_H).
1008 (dwarf2asm.o): Likewise.
1009 (GTFILES): Add hashtable.h.
1010 * c-common.h (struct c_common_identifier): Use gengtype.
1011 * c-decl.h (c_mark_tree): Delete.
1012 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1013 * c-tree.h (struct lang_identifier): Use gengtype.
1014 (union lang_tree_node): New.
1015 (c_mark_tree): Delete prototype.
33005162 1016 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
e2500fed
GK
1017 dwarf2_debug_hooks.
1018 * gengtype-lex.l (IWORD): Allow 'bool'.
1019 (ptr_alias): Match.
1020 * gengtype-yacc.y (ALIAS): New token.
1021 (type_option): New rule.
1022 (option): Use type_option.
1023 * gengtype.c (process_gc_options): New.
1024 (set_gc_used_type): Use it.
1025 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
1026 Add new variable 't' to hold the type of the field being processed.
1027 Add more error checking. Use UNION_P when looking at 'desc' option.
1028 Handle language-specific structures containing other
1029 language-specific structures.
1030 (write_gc_types): Handle 'ptr_alias' option.
1031 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
1032 * ggc-common.c (ggc_pending_trees): Delete.
1033 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
1034 (ggc_mark_trees): Delete.
1035 (gt_ggc_m_tree_node): Delete.
1036 * ggc.h (ggc_pending_trees): Delete.
1037 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
1038 * hashtable.h (ht_identifier): Use gengtype.
1039 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
1040 * langhooks.h (struct lang_hooks): Delete mark_tree.
1041 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
1042 anyway.
1043 * system.h: Poison LANG_HOOKS_MARK_TREE.
1044 * tree.c (tree_node_structure): New.
1045 * tree.h (struct tree_common): Use gengtype.
1046 (struct tree_int_cst): Likewise.
1047 (struct tree_real_cst): Likewise.
1048 (struct tree_string): Likewise.
1049 (struct tree_complex): Likewise.
1050 (struct tree_vector): Likewise.
1051 (struct tree_identifier): Likewise.
1052 (struct tree_list): Likewise.
1053 (struct tree_vec): Likewise.
1054 (struct tree_exp): Likewise.
1055 (struct tree_block): Likewise.
1056 (struct tree_type): Likewise.
1057 (struct tree_decl): Likewise.
1058 (enum tree_structure_enum): New.
1059 (union tree_node): Use gengtype, with an alias.
1060 (tree_node_structure): Prototype.
1061 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1062
1063 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
1064 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
1065 to LANG_HOOKS_FUNCTION_FINAL.
1066 * Makefile.in (GTFILES): Add bitmap.h.
1067 * except.c (struct eh_region): Mark field 'aka' to be skipped.
1068
1069 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
1070 (alpha_init_machine_status): Give proper type.
1071 * Makefile.in (c-lang.o): Depend on gtype-c.h.
1072 (optabs.o): Depend on gt-optabs.h.
1073 (GTFILES): Add optabs.o.
1074 (gt-optabs.h): Add rule.
1075 * optabs.c: Include gt-optabs.h.
1076
1077 * gengtype.c (set_gc_used_type): Correct some errors in last change.
1078 (write_gc_structure_fields): If a field which should be NULL is
1079 not, abort.
1080 * c-pragma.c: Move struct align_stack and variable alignment_stack
1081 out from the ifdef.
1082
1083 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
1084 * config/xtensa/xtensa.c: Include gt-cris.h.
1085 (struct machine_function): Use gengtype to mark.
1086 * config/mmix/mmix.h (struct machine_function): Use gengtype
1087 to mark.
1088 * config/cris/t-cris: Add dependencies for gt-cris.h.
1089 * config/cris/cris.c: Include gt-cris.h.
1090 (struct machine_function): Use gengtype to mark.
1091 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
1092 to mark.
1093 * doc/tm.texi (Per-Function Data): Delete references to
1094 mark_machine_status.
1095 * config/ia64/ia64.c (ia64_override_options): Don't set
1096 mark_machine_status.
1097 * config/i386/i386.c (override_options): Likewise.
1098 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
1099 * config/arm/arm.c (arm_init_expanders): Likewise.
1100 * config/alpha/alpha.c (override_options): Likewise.
33005162 1101 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
e2500fed
GK
1102 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
1103 (write_gc_structure_fields): Don't handle 'really' option.
1104 Handle 'maybe_null' option.
1105 (write_gc_types): Handle 'maybe_null' option.
1106 * function.h (struct function): Don't use "really".
1107 (mark_machine_status): Delete declaration.
1108 (mark_lang_status): Delete declaration.
1109 (gt_ggc_mr_machine_function): Delete prototype.
1110 (gt_ggc_mr_language_function): Delete prototype.
1111 * function.c (mark_machine_status): Delete.
1112 (mark_lang_status): Delete.
1113 (gt_ggc_mr_machine_function): Delete.
1114 (gt_ggc_mr_language_function): Delete.
1115 * c-tree.h (mark_c_function_context): Delete prototype.
1116 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
1117 * c-decl.c (struct language_function): Rename from struct
1118 c_language_function. Update uses. Use gengtype to mark.
1119 (mark_c_function_context): Delete.
1120 * c-common.h (struct c_language_function): Rename from struct
1121 language_function.
1122 (mark_stmt_tree): Delete prototype.
1123 (c_mark_lang_decl): Delete prototype.
1124 (mark_c_language_function): Delete prototype.
1125 * c-common.c (mark_stmt_tree): Delete.
1126 (c_mark_lang_decl): Delete.
1127 (mark_c_language_function): Delete.
1128
1129 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
1130 (lang_bitmap): New typedef. Use where appropriate.
1131 (struct type): Add gc_used field, lang_struct field.
1132 (UNION_P): New macro.
1133 (new_structure): New prototype.
1134 (find_structure): Remove 'pos' parameter. Change all callers.
1135 * gengtype-lex.l: Update for changes to find_structure.
1136 * gengtype-yacc.y (typedef_struct): Use new_structure.
1137 (yacc_ids): Suppress warning.
1138 (type): Use new_structure.
1139 * gengtype.c (string_type): Update for changes to struct type.
1140 (find_structure): Just find a structure, don't worry about
1141 creating one.
1142 (new_structure): New.
1143 (note_yacc_type): Use new_structure.
1144 (set_gc_used_type): New.
1145 (set_gc_used): New.
1146 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
1147 (write_gc_types): Handle TYPE_LANG_STRUCT.
1148 (write_gc_marker_routine_for_structure): New.
1149 (main): Call set_gc_used. Add some calls to set_gc_used_type
1150 for places where GCC doesn't use gengtype properly yet.
1151 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
1152 (gt_ggc_m_tree_node): Likewise.
1153
1154 * varasm.c (copy_constant): Call expand_constant if we hit
1155 something we can't recognise.
1156
1157 * ggc-common.c (ggc_mark_rtvec_children): Delete.
1158 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
1159 (lang_mark_false_label_stack): Delete.
1160 * rtl.h (struct rtvec_def): Use gengtype to mark.
1161 * ggc.h (ggc_mark_rtvec): Delete.
1162 (gt_ggc_m_rtvec_def): Delete.
1163 (ggc_mark_nonnull_tree): Delete.
1164 (ggc_mark_rtvec_children): Delete prototype.
1165 (lang_mark_false_label_stack): Delete declaration.
1166
1167 * gengtype.h (note_yacc_type): Add prototype.
1168 * gengtype.c (note_yacc_type): New function.
1169 * gengtype-lex.l: Add lexer support for yacc files.
1170 * gengtype-yacc.y (start): Extract union from yacc files.
1171 (yacc_union): New rule.
1172 (yacc_typematch): New rule.
1173 (yacc_ids): New rule.
1174 (enum_items): Tweak for efficiency.
1175 (optionseq): Likewise.
1176
1177 * c-common.h (struct language_function): Use gengtype.
1178 (struct c_lang_decl): Likewise.
1179 * c-tree.h (struct lang_decl): Likewise.
1180 (struct lang_type): Likewise.
1181 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
1182 tree language substructures.
1183
1184 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
1185 ggc_mark_tree.
1186 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
1187
1188 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
1189
1190 * stmt.c (struct nesting): Add discriminator. Use gengtype to
1191 mark. Remove 'data.block.cleanup_ptr' field.
1192 (struct stmt_status): Use usual technique to mark struct nesting.
1193 (gt_ggc_mr_nesting_cond): Delete.
1194 (gt_ggc_mr_nesting_loop): Delete.
1195 (gt_ggc_mr_nesting_block): Delete.
1196 (gt_ggc_mr_nesting_case_stmt): Delete.
1197 (expand_start_cond): Set discriminator.
1198 (expand_start_loop): Likewise.
1199 (expand_start_null_loop): Likewise.
1200 (expand_start_bindings_and_block): Set discriminator. Don't set
1201 deleted fields.
1202 (expand_decl_cleanup): Replace 'cleanup_ptr' with
1203 &thisblock->data.block.cleanups.
1204 (expand_start_case): Set discriminator.
1205 (expand_start_case_dummy): Set discriminator.
1206
1207 * ggc-callbacks.c: Remove.
1208
1209 * gengtype.h (struct type): Add 'u.s.bitmap' field.
1210 (find_structure): Add 'pos' parameter.
1211 * gengtype-lex.l: Update callers to find_structure.
1212 * gengtype-yacc.y: Likewise.
1213 * gengtype.c (find_structure): Allow for structures to be defined
1214 in multiple language backends.
1215 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
1216 (counter): Rename to gc_counter.
1217 (write_gc_structure_fields): Fail when writing out fields for
1218 an incomplete structure. Ignore arrays of scalars. Handle
1219 'tree_vec' special.
1220 (write_gc_types): Reset counter for each procedure written.
1221
1222 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
1223 (free_case_nodes): Delete.
1224 (expand_end_case_type): Delete call to free_case_nodes.
1225
1226 * Makefile.in (cselib.o): Include gt-<filename>.h.
1227 (gcse.o): Likewise.
1228 (profile.o): Likewise.
1229 (alias.o): Likewise.
1230 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
1231 alphabetize backend files.
1232 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
1233 * alias.c: Use gengtype for roots.
1234 * c-common.h (struct stmt_tree_s): Use gengtype.
1235 * c-decl.c: Use gengtype for roots.
1236 * cselib.c: Use gengtype for roots.
1237 * expr.c: Use gengtype for roots.
1238 * fold-const.c: Use gengtype for roots.
1239 * gcse.c: Use gengtype for roots.
1240 * gengtype-lex.l: Handle typedefs of function types.
1241 Allow for empty array bounds.
1242 Allow processing to stop on initialisers.
1243 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
1244 (semiequal): New rule.
1245 * gengtype.c (create_file): Tidy output files.
1246 (get_output_file_with_visibility): Fix paren warning. Fix bug
1247 involving multiple input files mapping to one output file.
1248 (write_gc_structure_fields): Skip arrays of scalars.
1249 (write_gc_types): Tidy output files.
1250 (write_gc_root): New function.
1251 (write_gc_roots): Fix bugs, add support for roots that are
1252 structures.
1253 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
1254 (ggc_mark_tree_ptr): Delete.
1255 (ggc_add_rtx_root): Delete.
1256 (ggc_add_tree_root): Delete.
1257 (ggc_del_root): Delete.
1258 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
1259 allocate struct initial_value_struct.
1260 * profile.c: Use gengtype for roots.
1261 * sdbout.c: Use gengtype for roots.
1262 * varasm.c (mark_weak_decls): Delete unused prototype.
1263 (mark_const_hash_entry): Delete unused function.
1264 * config/darwin-protos.h: Use gengtype for roots.
1265 (machopic_add_gc_roots): Delete.
1266 * config/arm/arm.c: Use gengtype for roots.
1267 * config/arm/arm.h: Use gengtype for roots.
1268 * config/c4x/c4x-protos.h: Use gengtype for roots.
1269 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
1270 * config/d30v/d30v-protos.h: Use gengtype for roots.
1271 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
1272 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
1273 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
1274 * config/ia64/ia64-protos.h: Use gengtype for roots.
1275 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
1276 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
1277 * config/m68hc11/m68hc11.c (z_reg): Make global.
1278 (z_reg_qi): Make global.
1279 (m68hc11_add_gc_roots): Delete.
1280 * config/mcore/mcore-protos.h: Use gengtype for roots.
1281 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
1282 * config/mips/mips.c (mips_add_gc_roots): Delete.
1283 * config/mips/mips.h: Use gengtype for roots.
1284 * config/mmix/mmix.c (override_options): Use gengtype for roots.
1285 * config/mmix/mmix.h: Use gengtype for roots.
1286 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
1287 * config/mn10200/mn10200.h: Use gengtype for roots.
1288 * config/pa/pa.c: Use gengtype for roots, marking.
1289 (struct deferred_plabel): Use GGC, gengtype.
1290 (pa_add_gc_roots): Delete.
1291 (mark_deferred_plabels): Delete.
1292 * config/pj/pj-protos.h: Use gengtype for roots.
1293 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
1294 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
1295 machopic_add_gc_roots.
1296 * config/rs6000/rs6000.h: Use gengtype for roots.
1297 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
1298 (gt-darwin.h): Add rule.
1299 * config/sh/sh.c: Use gengtype for roots.
1300 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
1301 (gt-sh.h): Add rule.
1302 * config/sparc/sparc.c: Use gengtype for roots.
1303 (sparc_add_gc_roots): Delete.
1304 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
1305 (mark_ultrasparc_pipeline_state): Delete.
1306 * config/sparc/sparc.h: Use gengtype for roots.
1307
1308 * Makefile.in (c-parse.o): Update dependencies.
1309 (c-common.o): Likewise.
1310 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
1311 Add dependencies for the files they generate.
1312 * c-common.c: Replace ggc_add_* uses with GTY annotations.
1313 * c-common.h: Likewise.
1314 * c-decl.c: Likewise.
1315 (gt_ggc_mp_binding_level): Delete.
1316 * c-lang.c: Include gtype-c.h.
1317 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
1318 gt-c-parse.h.
1319 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
1320 (gt_ggc_mp_align_stack): Delete.
1321 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
1322 * function.c: Replace ggc_add_* uses with GTY annotations.
1323 (gt_ggc_mp_function): Delete.
1324 * function.h: Replace ggc_add_* uses with GTY annotations.
1325 * gengtype.c (lang_names): New.
1326 (NUM_BASE_FILES): New.
1327 (open_base_files): Create language base files.
1328 (startswith): New.
1329 (get_file_basename): New.
1330 (get_base_file_bitmap): New.
1331 (get_output_file_with_visibility): Rename from get_output_file.
1332 Add more mappings for various C/Objc filenames.
1333 (finish_root_table): New.
1334 (write_gc_roots): Handle dependencies and scoping properly.
1335 * gengtype.h: Add prototypes for new functions.
1336 * ggc-common.c (struct deletable_root): Delete.
1337 (deletables): Delete.
1338 (ggc_add_deletable_root): Delete.
1339 (ggc_mark_roots): No need to deal with deleted functionality.
1340 * ggc.h (ggc_add_deletable_root): Delete prototype.
1341 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
1342 (gtype-objc.h): Add rule to create.
1343 * objc/config-lang.in (gtfiles): New.
1344 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
1345 ggc_add_* with GTY markers. Include gtype-objc.h.
1346 (ggc_mark_imp_list): Delete.
1347 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
1348 * objc/objc-lang.c: Random Whitespace Change.
1349
1350 * except.h (exception_handler_labels): Delete.
1351 (get_exception_handler_labels): New.
1352 * except.c (exception_handler_labels): Delete.
1353 (struct eh_status): Add exception_handler_labels field.
1354 (doing_eh): Don't add exception_handler_labels as root.
1355 (free_eh_status): Don't need to free exception_handler_labels.
1356 (get_exception_handler_labels): New.
1357 (find_exception_handler_labels): Update for move of
1358 exception_handler_labels.
1359 (remove_exception_handler_label): Likewise.
1360 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
1361 * jump.c (rebuild_jump_labels): Likewise.
1362 * loop.c (find_and_verify_loops): Likewise.
1363 * sched-rgn.c (is_cfg_nonregular): Likewise.
1364
1365 * gengtype.c (write_gc_structure_fields): Handle variable-length
1366 TYPE_ARRAYs.
1367
1368 * varasm.c (struct weak_syms): Use GGC, gengtype.
1369 (mark_weak_decls): Delete.
1370 (weak_decls): Likewise.
1371 (add_weak): Likewise.
1372 (remove_from_pending_weak_list): Likewise.
1373 (init_varasm_once): Likewise.
1374
1375 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
1376 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
1377 stor-layout.c, regclass.c, and lists.c.
1378 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
1379 gt-regclass.h and gt-lists.h on s-gtype.
1380 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
1381 * except.c: Use gengtype for roots.
1382 * explow.c: Use gengtype for roots. Include gt-explow.h.
1383 * expr.h (init_stor_layout_once): Delete prototype.
1384 * function.c: Use gengtype for roots.
1385 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
1386 * gengtype-yacc.y (start): Can also be an externstatic.
1387 (externstatic): New production.
1388 (struct_fields): Correct array bounds inversion for 2-d arrays.
1389 * gengtype.c (variables): New variable.
1390 (note_variable): New function.
1391 (get_output_file): Include libfuncs.h into gtype-desc.c.
1392 (get_output_file_name): New function.
1393 (write_gc_structure_fields): Suppress warnings.
1394 (write_gc_types): Make static.
1395 (put_mangled_filename): New function.
1396 (write_gc_roots): New function.
1397 (main): Call write_gc_roots.
1398 * gengtype.h (note_variable): Prototype.
1399 (get_output_file_name): Prototype.
1400 (write_gc_types): Delete prototype.
1401 * ggc.h: Clean up unnecessary structure predefinitions.
1402 (struct ggc_root_tab): Define.
1403 (gt_ggc_m_rtx_def): Make function, not macro.
1404 (gt_ggc_m_tree_node): Likewise.
1405 * libfuncs.h: Use gengtype for roots.
1406 * lists.c: Use gengtype for roots. Include gt-lists.h.
1407 (init_EXPR_INSN_LIST_cache): Delete.
1408 * optabs.c: Use gengtype for roots.
1409 (gt_ggc_mp_optab): Delete.
1410 * optabs.h: Use gengtype for roots.
1411 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
1412 * rtl.h: Use gengtype for roots.
1413 (init_EXPR_INSN_LIST_cache): Delete prototype.
1414 * stor-layout.c: Use gengtype for roots.
1415 Include gt-stor-layout.h.
1416 (init_stor_layout_once): Delete.
1417 * toplev.c: Use gengtype for roots. Delete calls to deleted
1418 routines.
1419 * tree.c: Use gengtype for roots.
1420 * tree.h: Use gengtype for roots.
1421 * varasm.c: Use gengtype for roots.
33005162 1422
e2500fed
GK
1423 * Makefile.in (GTFILES): Add @all_gtfiles@.
1424 * configure: Regenerate.
1425 * configure.in: Construct all_gtfiles from the gtfiles definitions
1426 in config-lang.in.
1427 * gengtype-yacc.y (type): Warn about duplicate structure names.
1428 * gengtype.c (get_output_file): Handle .c files in language
1429 subdirectories.
1430
1431 * Makefile.in (GTFILES): Run gengtype on all the config files
1432 and on the target .c file.
1433 * except.c (mark_eh_region): Delete.
1434 (init_eh_for_function): Use GGC on struct eh_status.
1435 (mark_eh_status): Delete.
1436 (free_eh_status): Use GGC.
1437 (expand_eh_region_start): Use GGC to
1438 (collect_eh_region_array): Allocate last_region_number using GGC.
1439 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1440 (remove_eh_handler): Let GGC free struct eh_region.
1441 (add_call_site): Use GGC to reallocate call_site_record array.
1442 * function.c (init_machine_status): Update calling sequence.
1443 (mark_machine_status): Likewise.
1444 (mark_lang_status): Likewise.
1445 (prepare_function_start): Update init_machine_status call.
1446 (mark_function_status): Delete.
1447 (maybe_mark_struct_function): Delete.
1448 (ggc_mark_struct_function): Delete.
1449 (gt_ggc_mp_function): New.
1450 (gt_ggc_mr_machine_function): New.
1451 (gt_ggc_mr_language_function): New.
1452 (init_function_once): Use canonical names.
1453 * function.h (struct function): Use gengtype.
1454 (init_machine_status): Return the structure.
1455 (mark_machine_status): Take a 'void *'.
1456 (mark_lang_status): Likewise.
1457 * ggc-common.c (ggc_mark_trees): Use canonical name for
1458 ggc_mark_struct_function.
1459 * tree.h (ggc_mark_struct_function): Delete prototype.
1460 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
1461 (alpha_init_machine_status): Likewise.
1462 (override_options): Use canonical name for alpha_mark_machine_status.
1463 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
1464 * config/arm/arm.h (struct machine_function): Use gengtype.
1465 * config/arm/arm.c (arm_mark_machine_status): Delete.
1466 (arm_init_machine_status): Update calling sequence.
1467 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
33005162 1468 * config/cris/cris.c (cris_init_machine_status): Update
e2500fed
GK
1469 calling sequence.
1470 * config/d30v/d30v.h (struct machine_function): Use gengtype.
33005162 1471 * config/d30v/d30v.c (d30v_init_machine_status): Update
e2500fed
GK
1472 calling sequence.
1473 (d30v_mark_machine_status): Delete.
1474 * config/i386/i386.c: Include gt-i386.h.
1475 (struct machine_function): Use gengtype.
1476 (ix86_init_machine_status): Update calling sequence.
1477 (ix86_mark_machine_status): Delete.
1478 (override_options): Use canonical namke for ix86_mark_machine_status.
1479 * config/ia64/ia64.h (struct machine_function): Use gengtype.
33005162 1480 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
e2500fed
GK
1481 sequence.
1482 (ia64_mark_machine_status): Delete.
33005162 1483 (ia64_override_options): Use canonical name for
e2500fed 1484 ia64_mark_machine_status.
33005162 1485 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
e2500fed
GK
1486 sequence.
1487 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
1488 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1489 * gengtype.c (get_output_file): Fix warning.
1490 (main): Add prototype to suppress warning.
1491 * tree.c: Remove tree_hash_mark prototype.
1492
1493 * tree.h (init_stmt): Delete prototype.
1494 * toplev.c (lang_independent_init): Don't call init_stmt.
1495 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
1496 (stmt_obstack): Delete.
1497 (POPSTACK): No need to free 'struct nesting'.
1498 (gt_ggc_mr_nesting_cond): Use canonical names.
1499 (gt_ggc_mr_nesting_loop): Use canonical names.
1500 (gt_ggc_mr_nesting_block): Use canonical names.
1501 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
1502 (mark_stmt_status): Delete.
1503 (init_stmt): Delete.
1504 (clear_last_expr): Clear both last_expr_type and last_expr_value.
1505 Use it everywhere that last_expr_type was cleared.
1506 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
1507 (zap_lists): Delete.
1508 * ggc.h (ggc_add_deletable_root): Prototype.
1509 (mark_stmt_status): Remove prototype.
1510 * ggc-common.c (ggc_add_deletable_root): New.
1511 (ggc_mark_roots): Handle deletable roots.
1512 * function.c (ggc_mark_struct_function): Use canonical name
1513 for mark_stmt_status.
1514 * emit-rtl.c (free_sequence_stack): New.
1515 (start_sequence): Use a freelist for sequences.
1516 (end_sequence): Likewise.
1517 (init_emit_once): Add free_sequence_stack as a deleteable root.
1518 * c-pragma.c Include gt-c-pragma.h.
1519 (struct align_stack): Use gengtype.
1520 (push_alignment): Use GGC for struct align_stack.
1521 (mark_align_stack): Delete.
1522 (gt_ggc_mp_align_stack): New.
1523 (init_pragma): Use canonical name for mark_align_stack.
1524 * c-decl.c: Include gt-c-decl.h.
1525 (struct binding_level): Use gengtype.
1526 (make_binding_level): Use GGC; handle the freelist here.
1527 (pop_binding_level): New.
1528 (pushlevel): Move code into make_binding_level.
1529 (push_label_level): Likewise.
1530 (poplevel): Move code into pop_binding_level.
1531 (pop_label_level): Likewise.
1532 (mark_binding_level): Delete.
1533 (gt_ggc_mp_binding_level): New.
1534 (c_init_decl_processing): Use canonical name for mark_binding_level.
1535 Add free_binding_level as deletable root.
1536 (mark_c_function_context): Use canonical name for mark_binding_level.
1537 * Makefile.in (c-decl.o): Add gt-c-decl.h.
1538 (c-pragma.o): Add gt-c-pragma.h.
1539 (GTFILES): Add c-decl.c and c-pragma.c.
1540 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1541
1542 * tree.c (struct type_hash): Use gengtype.
1543 (init_obstacks): Use canonical name for type_hash_mark.
1544 (type_hash_mark): Delete.
1545 Include gt-tree.h.
1546 * rtl.h (struct mem_attrs): Use gengtype.
1547 * optabs.h (struct optab): Use gengtype.
1548 * optabs.c (expand_binop): Squish signed/unsigned warning.
1549 (mark_optab): Make local, use canonical name, use autogenerated
1550 marker procedure.
1551 (init_optabs): Use canonical name for mark_optab.
1552 (new_optab): Use GGC to allocate optabs.
1553 * ggc.h: Delete mark_optab prototype.
1554 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1555 mem_attrs marker procedure.
1556 * gengtype.c (get_output_file): Include headers in gtype-desc.c
1557 explicitly rather than deducing them from file names.
1558 (write_gc_structure_fields): Handle arrays of structures.
1559 (main): Return non-zero exit code if errors occur during output.
1560 * emit-rtl.c (mem_attrs_mark): Delete.
1561 (init_emit_once): Use canonical name for mem_attrs marker procedure.
1562 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1563 (tree.o): Depend on gt-tree.h.
1564 (GTFILES): Add rtl.h, optabs.h, tree.c.
1565 (gt-tree.h): Add it to s-gtype rule.
1566
1567 * .cvsignore: Ignore gengtype flex/bison generated files.
1568 * Makefile.in (GGC_H): Add gtype-desc.h.
1569 (OBJS): Add gtype-desc.o.
1570 (GEN): Add gengtype.
1571 (STAGESTUFF): Add gengtype.
1572 (varasm.o): Add gt-varasm.h.
1573 (stmt.o): Add gt-stmt.h.
1574 (except.o): Add gt-except.h.
1575 (integrate.o): Add gt-integrate.h.
1576 (GTFILES): New.
1577 Add new rules for new files.
1578 * configure: Regenerate.
1579 * configure.in: Correct defaults.h paths.
1580 * emit-rtl.c (mark_sequence_stack): Delete.
1581 (mark_emit_status): Delete.
1582 (start_sequence): Allocate sequence structures using GGC.
1583 (end_sequence): Allocate sequence structures using GGC.
1584 * except.c: Use gengtype for various structures. Include
1585 gt-except.h.
1586 * expr.c (mark_expr_status): Delete.
1587 * function.c: Use gengtype for various structures. Include
1588 gt-function.h.
1589 (mark_function_status): Use standard gt_ggc names for marker functions.
1590 (ggc_mark_struct_function): Likewise.
1591 * function.h: Use gengtype for various structures.
1592 * gengtype-lex.l: New file.
1593 * gengtype-yacc.y: New file.
1594 * gengtype.c: New file.
1595 * gengtype.h: New file.
1596 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
1597 the standard names. Remove some now-unnecessary prototypes.
1598 * integrate.c: Use gengtype for various structures. Include
1599 gt-integrate.h.
1600 (mark_hard_reg_initial_vals): Delete.
1601 * integrate.h (mark_hard_reg_initial_vals): Delete.
1602 * stmt.c: Use gengtype for various structures. Include
1603 gt-stmt.h.
1604 (mark_case_node): Delete.
1605 (mark_goto_fixup): Delete.
1606 (mark_stmt_status): Use standard gt_ggc names for marker functions.
1607 * system.h: Define GTY to empty. In flex/bison files,
1608 don't poison malloc or realloc, instead just define them to
1609 xmalloc and xrealloc.
1610 * varasm.c: Use gengtype for various structures. Include
1611 gt-varasm.h. Use standard gt_ggc names for marker functions.
1612 (mark_pool_constant): Delete.
1613 (mark_varasm_status): Delete.
1614 (decode_rtx_const): #if 0 out non-typesafe hack.
1615
1616 * function.h (free_lang_status): Mark as obsolete.
1617 * function.c (free_lang_status): Mark as obsolete.
1618 * c-decl.c (push_c_function_context): Use GC to allocate and free
1619 struct language_function.
1620 (pop_c_function_context): Likewise.
1621 * c-common.c (mark_c_language_function): Mark struct
1622 language_function.
1623
1624 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1625 Document that the machine_function structures must be allocated
1626 using GC. Update mark_machine_status documentation.
1627 * function.h: Don't declare free_machine_status.
33005162 1628 * function.c (free_machine_status): Don't define.
e2500fed
GK
1629 (free_after_compilation): Don't call free_machine_status.
1630 (ggc_mark_struct_function): Mark f->machine. Call
1631 mark_machine_status only on non-NULL pointers.
1632 * system.h: Poison free_machine_status.
1633 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1634 struct machine_function.
1635 (xtensa_free_machine_status): Delete.
1636 (override_options): Don't set free_machine_status.
1637 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1638 free_machine_status.
1639 (rs6000_init_machine_status): Use GC on struct machine_function.
1640 (rs6000_free_machine_status): Delete.
1641 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1642 machine_function.
1643 (ia64_mark_machine_status): Likewise.
1644 (ia64_free_machine_status): Delete.
1645 (ia64_override_options): Don't set free_machine_status.
1646 * config/i386/i386.c (override_options): Don't set
1647 free_machine_status.
1648 (ix86_init_machine_status): Use GC on struct machine_function.
1649 (ix86_mark_machine_status): Likewise.
1650 (ix86_free_machine_status): Delete.
1651 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1652 machine_function.
1653 (d30v_mark_machine_status): Likewise.
1654 (d30v_free_machine_status): Delete.
1655 (d30v_init_expanders): Don't set free_machine_status.
1656 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1657 machine_function.
1658 (arm_init_machine_status): Likewise.
1659 (arm_free_machine_status): Delete.
1660 (arm_init_expanders): Don't set free_machine_status.
1661 * config/alpha/alpha.c (override_options): Don't set
1662 free_machine_status.
1663 (alpha_init_machine_status): Use GC on struct machine_function.
1664 (alpha_mark_machine_status): Likewise.
1665 (alpha_free_machine_status): Delete.
1666
1667 * varasm.c (compare_constant): Fix typo.
1668
1669 * varasm.c: Don't include obstack.h.
1670 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1671 (struct rtx_const): Give substructures names, improve formatting.
1672 (struct constant_descriptor): Delete.
1673 (struct constant_descriptor_tree): New, based on constant_descriptor.
1674 (const_hash_table): Is a hash table of trees.
1675 (mark_const_hash_entry): Is used for hashes of trees. Mark
1676 constant_descriptor_tree structure.
1677 (mark_const_str_htab_1): Mark deferred_string structure.
1678 (compare_constant): Rewrite to compare trees.
1679 (compare_constant_1): Delete.
1680 (record_constant): Delete.
1681 (record_constant_1): Delete.
1682 (output_constant_def): Use struct constant_descriptor_tree.
1683 Don't duplicate trees twice.
1684 (struct constant_descriptor_rtx): New.
1685 (struct pool_constant): Used for rtx constants.
1686 (init_varasm_status): Update for change to struct varasm_status.
1687 (mark_varasm_status): Likewise.
1688 (free_varasm_status): Delete.
1689 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1690 (record_constant_rtx): Likewise.
1691 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1692 (force_const_mem): Likewise.
1693 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1694 * function.c (free_after_compilation): Don't use free_varasm_status.
1695 * function.h: Don't prototype free_varasm_status.
1696
1697 * ggc-common.c (ggc_realloc): Handle X being NULL.
1698
1699 * ggc-common.c (ggc_realloc): New function.
1700 * ggc.h: Prototype it.
1701 * emit-rtl.c (free_emit_status): Delete.
1702 (init_emit): Allocate emit subarrays using GC.
1703 (gen_reg_rtx): Reallocate subarrays using GC.
1704 (init_emit): Use GC to allocate 'struct emit_status' and its
1705 subarrays.
1706 (mark_emit_status): Mark structure and its subarrays.
1707 * stmt.c (free_stmt_status): Delete.
1708 * expr.c (free_expr_status): Delete.
1709 * function.h: Remove prototypes for deleted functions.
1710 * function.c (free_after_compilation): Don't use deleted functions.
1711 Don't call free() on x_parm_reg_stack_loc.
1712 (free_after_parsing): Don't use free_stmt_status.
1713 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1714 (mark_function_status): Mark x_parm_reg_stack_loc.
1715
1716 * varasm.c (init_varasm_status): Use GC to allocate
1717 'struct varasm_status' and its fields x_const_rtx_hash_table
1718 and x_const_rtx_sym_hash_table.
1719 (mark_varasm_status): Mark them.
1720 (free_varasm_status): Use GC to free them.
1721 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1722 (mark_expr_status): Mark the structure itself.
1723 (free_expr_status): Use GC to free the structure.
1724 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1725 (mark_stmt_status): Mark the 'struct stmt_status' itself.
1726 (init_stmt_for_function): Allocate the structure for GC.
1727
1728 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1729 (equate_type_number_to_die): Likewise.
1730 * tree.h (TYPE_SYMTAB_DIE): New macro.
1731 (struct die_struct): Predeclare.
1732 (struct tree_type): Add field symtab.die. Add a tag
1733 to the union type of field symtab.
1734
1735 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1736 'struct rtvec_def *', not 'struct rtvec_def'.
1737
1738 * function.h (original_arg_vector): Make a real rtvec.
1739 * function.c (ggc_mark_struct_function): Adjust.
1740 * integrate.c (expand_inline_function): Adjust.
1741
b655555e
JT
17422002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1743
1744 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1745 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1746 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1747 (TARGET_VERSION_CPU): Define according to the
1748 default target.
1749 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1750 TARGET_VERSION_CPU.
1751 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1752 if TARGET_SHMEDIA64.
1753 (LINK_DEFAULT_CPU_EMUL): Define according to the
1754 default target.
1755 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1756 (SUBTARGET_LINK_SPEC): Define.
1757 (LINK_SPEC): Use SH_LINK_SPEC.
1758 (ASM_SPEC): Remove.
1759 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1760 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1761 and TARGET_SHMEDIA64 which abort, for now.
1762 * config/sh/t-netbsd-sh5: New file.
1763 * config/sh/t-netbsd-sh5-32: New file.
1764 * config/sh/t-netbsd-sh5-64: New file.
1765
6d8fd7bb
RH
17662002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1767 Richard Henderson <rth@redhat.com>
1768
1769 * config/alpha/alpha.c (reg_or_const_int_operand): New.
1770 (some_operand, input_operand): Accept CONST_VECTOR.
1771 (alpha_extra_constraint): Add 'W'.
1772 (alpha_expand_zap_mask): New.
1773 (alpha_expand_builtin_vector_binop): New.
1774 (enum alpha_builtin): New.
1775 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1776 (alpha_init_builtins, alpha_expand_builtin): New.
1777 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1778 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1779 (PREDICATE_CODES): Update.
1780 * config/alpha/alpha-protos.h: Update.
1781 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1782 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1783 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1784 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1785 (movv2si, movv2si_fix, movv2si_nofix): New.
1786 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1787 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1788 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1789 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1790 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1791 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1792 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1793 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1794 builtin_unpkbw, unpkbw): New.
1795 * doc/extend.texi (Alpha Built-in Functions): New.
1796
618939de
RH
17972002-06-03 Richard Henderson <rth@redhat.com>
1798
1799 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1800 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1801
73db7137
RH
18022002-06-03 Richard Henderson <rth@redhat.com>
1803
6933647a
RH
1804 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1805
73db7137
RH
1806 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1807 (const0_operand): New.
1808 (reg_or_fp0_operand, fp0_operand): Remove.
1809 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1810 * config/alpha/alpha-protos.h: Update.
1811 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1812 and fp0_operand with reg_or_0_operand and const0_operand.
1813
a6f7c915
DN
18142002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1815
1816 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1817
b2f02503
RS
18182002-06-03 Roger Sayle <roger@eyesopen.com>
1819
1820 * gcse.c (cprop_jump): Use single_set to get the pattern
1821 from the setcc argument.
1822
4fcc2065
GDR
18232002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
1824
33005162 1825 * diagnostic.h (diagnostic_count): Move from output_buffer to
4fcc2065
GDR
1826 diagnostic_context.
1827 (diagnostic_kind_count): Adjust definition.
1828
5204d665
JH
1829Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
1830
1831 * except.c (except.c): Do not rebuild CFG.
1832 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1833 optimization.
1834
0478a14c
JH
1835Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1836
1837 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1838 * toplev.c: Include cfglahout.h
1839 * Makefile.in (toplev.c): Add dependnecy.
1840
30efe578
NB
18412002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
1842
1843 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1844 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1845 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1846
a782515b
JT
18472002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1848
1849 * config/ns32k/netbsd.h: Update copyright years.
1850 (TARGET_OS_CPP_BUILTINS): Define.
1851 (CPP_PREDEFINES): Remove.
1852 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1853 (TARGET_CPU_CPP_BUILTINS): Define.
1854
0fb7aeda
KH
18552002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1856
589005ff 1857 * emit-rtl.c: Fix formatting.
0fb7aeda
KH
1858 * errors.h: Likewise.
1859 * except.c: Likewise.
1860 * explow.c: Likewise.
1861 * expmed.c: Likewise.
1862 * expr.c: Likewise.
1863 * expr.h: Likewise.
1864
1c8ec18b
KH
18652002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1866
1867 * config/h8300/elf.h: Fix formatting.
1868 * config/h8300/rtems.h: Likewise.
1869
86cb04f6
JT
18702002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1871
1872 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1873
5d83269d
TT
18742002-06-02 Tom Tromey <tromey@redhat.com>
1875
1876 * fixinc/fixincl.x: Rebuilt.
1877 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1878
62f6a494
NB
18792002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1880
1881config/i370:
1882 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1883 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1884 * mvs.h: Similarly.
1885 * oe.h: Similarly.
1886
0acb0203
JH
1887Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1888
1889 * final.c (final): Allow notes to not have computed addresses;
1890 kill no longer needed STACK_REGS ifdef.
1891
ada8d98a
RH
18922002-06-02 Richard Henderson <rth@redhat.com>
1893
1894 * gcse.c (bypass_conditional_jumps): Fix typo last change.
1895
ba4f7968
JH
1896Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1897
ada8d98a
RH
1898 * loop.c (emit_prefetch_instructions): Properly place the address
1899 computation.
ba4f7968
JH
1900
1901Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1902
1903 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1904 (set_block_for_insn): Turn into macro.
1905 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1906 * cfglayout.c (insn_scopes): Kill.
1907 (scope_to_insns_initialize): Do not use insn_scopes.
1908 (scope_to_insns_finalize): Likewise.
1909 (duplicate_insn_chain): Likewise.
1910 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
1911 * cfgrtl.c (basic_block_for_insn): Kill.
1912 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
1913 (create_basic_block_structure): Use reorder_insns.
1914 (compute_bb_for_insn): Do not use basic_block_for_insn.
1915 (merge_blocks_nomove): Likewise.
1916 (update_bb_for_insn): Likewise.
1917 (verify_flow_info): Likewise.
1918 (set_block_for_insn): Kill.
1919 * combine.c (try_combine): Update gen_rtx_INSN call.
1920 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
1921 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
1922 scopes and BBs.
1923 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
1924 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
1925 Clear BB.
1926 (emit_insns_after): Simplify.
1927 (emit_copy_of_insn_after): Copy scope.
1928 * final.c (final_start_function): Lower scopes.
1929 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
1930 * integrate.c (copy_insn_list): Cope scopes.
1931 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
1932 * loop.c (loop_optimize): Do not care block notes.
1933 * print-rtl.c (print_rtx): Print BB.
1934 * recog.c (apply_change_group): Simplify.
1935 * rtl.c (copy_rtx): Handle 'B'.
1936 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
1937 * rtl.h (Field accessors): Update indexes.
1938 * sched-ebb.c (schedule_ebbs): Do not lower notes.
1939 * sched-rgn.c (schedule_insns): Likewise.
1940 * toplev.c (rest_of_compilation): Lower notes.
1941 * unroll.c (unroll_loop): Do not care scoping notes.
1942 (copy_loop_body): Copy scopes.
1943
537fc532
NB
19442002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1945
1946config/h8300:
1947 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1948 SUBTARGET_SPEC.
1949 * rtems.h: Similarly.
1950 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
1951 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1952 (TARGET_CPU_CPP_BUILTINS): Use.
1953
ab780373
RH
19542002-06-02 Richard Henderson <rth@redhat.com>
1955
1956 * alias.c: Include target.h.
1957 (mark_constant_function): Use targetm.binds_local_p instead
1958 of checking TREE_PUBLIC ourselves.
1959 * Makefile.in (alias.o): Add TARGET_H.
1960
b9305c66
NB
19612002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1962
1963 * c-lex.c: Update copyright and file description.
1964
0ac3e0c4
NB
19652002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1966
1967 * config/fr30/fr30.h: Update to new CPP macros.
1968
be3a1d46
NB
19692002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1970
1971 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
1972
ceeedfc1 19732002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
a8fd5963 1974 Zack Weinberg <zack@codesourcery.com>
ceeedfc1
NB
1975
1976 * c-common.c (c_common_init): Override cpplib's default
1977 warn_long_long setting.
1978 * c-lex.c (lex_number): Replace with interpret_integer,
1979 interpret_float, narrowest_unsigned_type and
1980 narrowest_signed_type, taking advantage of the new
1981 cpplib functionality.
1982 * cpperror.c (_cpp_begin_message): If a warning is turned
1983 into an error, avoid printing "warning:".
1984 * cppexp.c (cpp_num_sign_extend): New.
1985 * cppinit.c: Update comment.
1986 * cpplib.h (cpp_num_sign_extend): New.
1987 * tree.h: Update comment.
1988
27e511e0
GDR
19892002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1990
1991 * diagnostic.h (struct diagnostic_context): Add new member
33005162 1992 internal_error.
27e511e0
GDR
1993 (internal_error_function): Remove declaration.
1994 * diagnostic.c (internal_error_function): Remove definition..
1995 (internal_error): Adjust use.
1996
818b6b7f
RH
19972002-06-02 Richard Henderson <rth@redhat.com>
1998
1999 * rtl.h (CC0_P): New.
2000 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
2001 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
2002 (bypass_block): Save old dest block for dump text.
2003 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
2004 Allow only true SET insns, not single_set.
2005
167143a0
GDR
20062002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
2007
2008 * diagnostic.c (diagnostic_finish): Rename to output_flush.
2009 (clear_disgnostic_info): Rename to output_clear_data. Use false
2010 instead of 0 for boolean value.
2011 Adjust function call throughout.
2012
eae4bc56
JH
2013Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2014
2015 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
2016 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
2017
9eb404a0
NB
20182002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2019
2020 * d30v.h (CPP_PREDEFINES): Replace with
2021 (TARGET_CPU_CPP_BUILTINS): New.
2022
53e8b0b8
RS
20232002-06-02 Roger Sayle <roger@eyesopen.com>
2024
2025 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
2026
92e34b67
JH
2027Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
2028
2029 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
2030
e7e9d242
RH
20312002-06-02 Richard Henderson <rth@redhat.com>
2032
2033 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
2034
9af145ae
MM
20352002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2036
2037 Support for C++ constructors/destructors.
2038 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
2039 instead of looping if main() returns.
2040 (asm_file_start): Output global symbols that cause .data and .bss
2041 initialization code to be linked in, unconditionally for now.
2042 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
2043 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
2044 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2045 (LIBSTDCXX): New.
2046 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
2047 (__tablejump__): New.
2048 (__do_copy_data, __do_clear_bss): New.
2049 (__do_global_ctors, __do_global_dtors): New.
2050 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
2051 _ctors, _dtors.
2052
0d66ad57
NB
20532002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2054
2055 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
2056 (CPP_SPEC, CPP_PREDEFINES): Kill.
2057 * c4x/rtems.h (CPP_PREDEFINES): Kill.
2058 (TARGET_OS_CPP_BUILTINS): New.
2059
5c856b23
JH
2060Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
2061
2062 * Makefile.in (tracer.o): New.
2063 * params.def (TRACER_*): New options.
2064 * rtl.h (tracer): Declare.
2065 * timevar.def (TV_TRACER): New.
2066 * toplev.c (dump_file_index): Add DFI_tracer.
2067 (dump_file_info): Add tracer.
2068 (flag_tracer): New.
2069 (lang_indepdenent_options): Add tracer.
2070 (rest_of_compilation): Call tracer.
2071 * tracer.c: New file.
2072 * invoke.texi (-ftracer): Document.
2073 (--param tracer-*): Document.
2074
e2405951
DB
20752002-06-01 Daniel Berlin <dberlin@dberlin.org>
2076
2077 * tree-inline.c (expand_call_inline): Make the statement
33005162 2078 expression we generate have a COMPOUND_STMT.
e2405951 2079
0e3f0221
RS
20802002-06-01 Roger Sayle <roger@eyesopen.com>
2081
2082 * gcse.c (cprop_cc0_jump): Function deleted.
2083 (cprop_jump): Take an additional argument which is the possibly
2084 NULL cc setting insn immediately before the conditional jump.
2085 When a MODE_CC set is present, substitute it into the JUMP_INSN
2086 before attempting the constant propagation.
2087 (cprop_insn): Recognize cc setters followed by conditional jumps
2088 as a special case. Use cprop_jump instead of cprop_cc0_jump.
2089 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
2090 (find_bypass_set): New function based upon find_avail_set used by
2091 cprop, but finds constant expressions available at the end of
2092 basic blocks.
2093 (bypass_block): New function. Given a basic block that begins
2094 with a conditional jump and multiple incoming edges, perform
2095 the jump bypass optimization.
2096 (bypass_conditional_jumps): New function. Call bypass_block with
2097 each suitable basic block in the CFG using a simple single pass.
2098
378393da
RS
20992002-06-01 Roger Sayle <roger@eyesopen.com>
2100
2101 * tree.c (real_minus_onep): New function to test for -1.0.
2102 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
2103
01c58f26
RS
21042002-06-01 Roger Sayle <roger@eyesopen.com>
2105
2106 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
2107 and "!p && !q" into "(p|q) == 0" under suitable conditions.
2108
91b12472
AJ
21092002-06-01 Andreas Jaeger <aj@suse.de>
2110
2111 * cppexp.c (cpp_classify_number): Cast precission to int for
2112 correct printf format.
2113
01e9ae86
MM
21142002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
2115
2116 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
2117 expected, but don't really exist: atmega83, atmega85, attiny10.
2118 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
2119 emulations for all devices.
2120 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
2121 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
2122
be1e06df
KH
21232002-06-01 Kazu Hirata <kazu@cs.umass.edu>
2124
2125 * config/h8300/h8300-protos.h: Add a prototype for
2126 h8300_shift_needs_scratch_p.
2127 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
2128 * config/h8300/h8300.h (OK_FOR_R): New.
2129 (OK_FOR_S): Likewise.
2130 (OK_FOR_T): Likewise.
2131 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
2132 * config/h8300/h8300.md (anonymous shift patterns): Use
2133 constraints R, S, and T.
2134
2ecfd709
ZD
2135Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2136
2137 * basic-block.h (struct basic_block_def): New field loop_father.
2138 (BB_VISITED): New flag.
2139 (struct loop): New field pred, removed field shared.
2140 (struct loops): New field parray.
2141 (LOOP_EXITS_DOMS): Removed.
2142 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
2143 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
2144 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
2145 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
2146 verify_loop_structure): Declare.
2147 * cfg.c (entry_exit_blocks): Initialize loop_father field.
2148 * cfganal.c (dfs_enumerate_from): New function.
2149 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
2150 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2151 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
2152 flow_loop_dump, flow_loops_dump, flow_loops_free,
2153 flow_loop_tree_node_add, flow_loop_level_compute,
2154 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
2155 flow_loop_outside_edge_p): Modified for new infrastructure.
2156 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
2157 redirect_edge_with_latch_update, flow_loop_free): New static functions.
2158 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
2159 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
2160 find_common_loop, verify_loop_structure, loop_latch_edge,
2161 loop_preheader_edge): New functions.
2162 (flow_loops_cfg_dump): Do not show dominators, as this information
2163 does not remain up to date long.
2164 (flow_loops_find): Store results in new format.
2165 * predict.c (propagate_freq, estimate_probability,
2166 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
2167 infrastructure.
2168
d9763749 21692002-06-01 Alan Lehotsky <apl@alum.mit.edu>
91b12472 2170
d9763749
AL
2171 * except.c (nothrow_function_p): Walk epilogue delay list
2172 checking the insn, not the chain for potential throws.
91b12472 2173
1e730c5c
ZW
21742002-05-31 Zack Weinberg <zack@codesourcery.com>
2175
2176 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
2177 (install): Refer to install-cpp directly.
2178 (uninstall-cpp): Folded into uninstall rule.
2179 * configure.in: Delete all code relating to --disable-cpp.
2180 * configure: Regenerate.
2181 * config/t-install-cpp: Delete.
2182
6f9b006d
RH
21832002-05-31 Richard Henderson <rth@redhat.com>
2184
2185 * configure.in (HAVE_AS_TLS): Add alpha tests.
2186 * configure: Rebuild.
2187 * config/alpha/alpha.c (TARGET_AS_TLS): New.
2188 (alpha_tls_size, alpha_tls_size_string): New.
2189 (overide_options): Set it. Always install machine_status hooks.
2190 (input_operand): Accept got tls predicates.
2191 (local_symbol_p): Merge into ...
2192 (local_symbolic_operand): ... here. Reject tls symbols.
2193 (global_symbolic_operand): Likewise.
2194 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
2195 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
2196 (tp16_symbolic_operand, tp32_symbolic_operand): New.
2197 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
2198 (alpha_encode_section_info): Handle TLS symbols.
2199 (alpha_strip_name_encoding): Likewise.
2200 (alpha_legitimate_address_p): Likewise.
2201 (alpha_legitimize_address): Likewise.
2202 (alpha_expand_mov): Early exit to avoid nop moves.
2203 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
2204 (alpha_init_machine_status, alpha_mark_machine_status,
2205 alpha_free_machine_status): Always define.
2206 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
2207 (print_operand, print_operand_address): Add TLS relocs.
2208 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
2209 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
2210 (TARGET_SWITCHES): Add -mtls-kernel.
2211 (alpha_tls_size, alpha_tls_size_string): New.
2212 (TARGET_OPTIONS): Add -mtls-size=.
2213 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2214 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
2215 (ASM_OUTPUT_LABELREF): Skip %.
2216 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
2217 (PREDICATE_CODES): Update.
2218 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
2219 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
2220 UNSPEC_TP, UNSPECV_SET_TP): New.
2221 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
2222 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
2223 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
2224 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
2225 (call_value_osf_2_er): Accept anything as op4.
2226 * config/alpha/alpha-protos.h: Update.
2227 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
2228
39e5db1a
ZW
22292002-05-31 Zack Weinberg <zack@codesourcery.com>
2230
2231 * cppinit.c (append_include_chain): Always pay attention to
2232 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
2233 marker on argument.
2234
41077ce4
KH
22352002-05-31 Kazu Hirata <kazu@cs.umass.edu>
2236
2237 * target.h: Fix formatting.
2238 * timevar.h: Likewise.
2239 * tlink.c: Likewise.
2240 * toplev.c: Likewise.
2241 * toplev.h: Likewise.
2242 * tree.c: Likewise.
2243 * tree-dump.h: Likewise.
2244 * tree.h: Likewise.
2245 * tree-inline.h: Likewise.
2246 * unroll.c: Likewise.
2247 * unwind-dw2.c: Likewise.
2248 * unwind-dw2-fde.c: Likewise.
2249 * unwind-dw2-fde-glibc.c: Likewise.
2250 * unwind-dw2-fde.h: Likewise.
2251 * unwind.h: Likewise.
2252 * unwind-sjlj.c: Likewise.
2253 * varasm.c: Likewise.
2254 * varray.h: Likewise.
2255 * vmsdbg.h: Likewise.
2256 * vmsdbgout.c: Likewise.
2257 * xcoffout.h: Likewise.
2258
b2e426a0
IS
22592002-05-31 Igor Shevlyakov <igor@microunity.com>
2260
1e730c5c 2261 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
b2e426a0
IS
2262 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
2263
8b968bd1
MW
22642002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
2265
2266 * gcc.c (cpp_unique_options): Remove "-d" options.
2267 (cpp_debug_options): New spec string.
2268 (default_compilers): Use it.
2269 * objc/lang-specs.h: Likewise.
2270
5c35940c
NN
22712002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
2272
1e730c5c 2273 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
5c35940c
NN
2274 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
2275 * gcc/mklibgcc.in: Likewise.
2276 * gcc/config/arc/t-arc: Likewise.
2277 * gcc/configure.in: Likewise.
2278 * gcc/configure: Regenerate.
2279
8b496ceb
SS
22802002-05-31 Stan Shebs <shebs@apple.com>
2281 Turly O'Connor <turly@apple.com>
2282
2283 * c-decl.c (struct binding_level): Change int field n_incomplete
2284 to tree list incomplete_list.
2285 (clear_binding_level): Init field with NULL.
2286 (pushdecl): Add incomplete type to list.
2287 (mark_binding_level): Mark the incomplete list.
2288 (finish_struct): Scan the incomplete list for types instead
2289 of all decls in the current binding level.
2290
4722213d
JDA
22912002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2292
2293 * pa.c (output_millicode_call): Add missing '%' characters.
2294 (output_call): Likewise.
2295
1086fcb1
DE
22962002-05-31 David Edelsohn <edelsohn@gnu.org>
2297
2298 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
2299 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2300
afdfb380 23012002-05-31 Alan Lehotsky <apl@alum.mit.edu>
91b12472 2302
afdfb380
AL
2303 * varasm.c (mark_constant_pool): Walk epilogue delay list
2304 checking the insn, not the chain for potential constants.
1e730c5c 2305
f2df45f6
R
2306Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
2307
2308 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
2309
91ea38f9
JH
2310Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
2311
2312 * i386.c (classify_argument): Properly handle base types.
2313
2314 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
2315 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
2316 registers.
2317
10d1bb36
JH
2318Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2319
2320 * gcse.c (gcse_emit_move_after): New.
2321 (pre_delete, hoist_store): Use it.
2322
2323 * reload1.c (emit_input_reload_insns): Use constrain_operands
2324 instead of constraint_accepts_reg_p to verify optimization.
2325 (constraint_accepts_reg_p): Kill
2326
2327 * reload1.c (reload_cse_delete_noop_set): Kill.
2328 (reload_cse_simplify): use delte_insn_and_edges.
2329
8a72fb76
ZD
23302002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2331
2332 * cfgloop.c (flow_loops_find): Initialize first and last fields
2333 correctly.
2334
a9da2e5b
NB
23352002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
2336
2337 * c-common.c (builtin_define_std): Correct logic.
2338
6248c4dd
JDA
23392002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2340
2341 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
2342 (output_call): Likewise.
2343
d499455b
JDA
23442002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2345
2346 * pa.c: Move output.h include after tree.h include.
2347 (pa_asm_output_mi_thunk): Constify identifier lab.
2348
2eb2901a
JT
23492002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2350
2351 * config/ns32k/ns32k.h: Define named constants for the
2352 bits in target_flags and use them.
2353 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
2354
806bf413
JDA
23552002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2356
2357 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
2358 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
2359 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
2360 default scheduling model.
2361 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
2362 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
2363 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
2364 * doc/install.texi (hppa*-*-*): Document default scheduling.
2365
6d8d2bbc
JDA
23662002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2367
2368 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
2369
c8eb9785
JT
23702002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2371
2372 * config.gcc (ns32k-*-netbsd*): Set tm_file to
2373 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
2374 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
2375 netbsd.h, or netbsd-aout.h.
2376
6e2e5b6a
JT
23772002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2378
2379 * longlong.h (count_trailing_zeros): Add missing \, and clean up
2380 whitespace in __ns32000__ case.
2381
00182e1e
AH
23822002-05-31 Aldy Hernandez <aldyh@redhat.com>
2383
1e730c5c
ZW
2384 * expr.c (expand_expr): Output partially zeroed out vectors with
2385 output_constant_def.
00182e1e 2386
b4eb03fe
JT
23872002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2388
2389 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
2390 (sh-*-netbsdelf*)
2391 (shl*-*-netbsdelf*): New targets.
2392 * config/sh/netbsd-elf.h: New file.
8fd0df91 2393 * config/sh/t-netbsd: New file.
b4eb03fe 2394
261376e7
RH
23952002-05-30 Richard Henderson <rth@redhat.com>
2396 Eric Botcazou <ebotcazou@multimania.com>
2397
2398 PR optimization/6822
2399 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
2400 to unsigned int for op1 comparisons. Use gen_int_mode.
2401
ce60bf25
EB
24022002-05-30 Eric Botcazou <ebotcazou@multimania.com>
2403
2404 * expmed.c (const_mult_add_overflow_p): New.
2405 * expr.h: Declare it.
2406 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
2407 Don't eliminate the biv if the giv has a constant multiplier and
2408 the rhs argument of the comparison does satisfy the predicate.
2409 Use expand_mult_add to compute the replacement constant.
2410
d18b1ed8
OS
24112002-05-30 Osku Salerma <osku@iki.fi>
2412
2413 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
2414 (c_common_get_alias_set): Handle it.
2415 * doc/extend.texi: Document it.
2416
a7943381
RH
24172002-05-30 Richard Henderson <rth@redhat.com>
2418
2419 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2420 * toplev.c (process_options): Don't check it.
2421 * doc/tm.texi: Don't document it.
2422 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2423 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2424 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2425 frame pointer optimization if current_function_profile.
2426
e11e816e
KH
24272002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2428
2429 * langhooks.c: Fix formatting.
2430 * langhooks.h: Likewise.
2431 * lcm.c: Likewise.
2432 * libgcc2.c: Likewise.
2433 * lists.c: Likewise.
2434 * local-alloc.c: Likewise.
2435 * loop.c: Likewise.
2436 * loop.h: Likewise.
2437
24382002-05-30 Marc Espie <espie@openbsd.org>
2439
2440 * config.gcc (sparc64-*-openbsd*): New.
2441 * config/sparc/openbsd1-64.h: New.
2442 * config/sparc/openbsd64.h: New.
91f0fcee 2443
d35dfca9
JL
24442002-05-30 Jeff Law <law@redhat.com>
2445
2446 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
2447 a dead insn with a REG_RETVAL note when the entire libcall is not
2448 dead and remove the associated REG_LIBCALL note at the same time.
2449
81b40b72
R
2450Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2451
2452 * lcm.c (output.h): #include.
2453 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2454 as an ordinary block.
2455 (optimize_mode_switching): Don't pretend that the exit block is
2456 an ordinary block, or handle sucessors of entry block specially.
2457 Instead, split edges from entry block and to exit block, and
2458 put a computing definition on the thus gained post-entry-block,
2459 and a need on the pre-exit-block.
2460
c8ea9a0f
JH
2461Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2462
2463 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
2464 * rtl.texi: Document 'B'
2465
348f0869
JT
24662002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2467
2468 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
2469 at run-time.
2470 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
2471
9a171fcd
AH
24722002-05-30 Aldy Hernandez <aldyh@redhat.com>
2473
1e730c5c
ZW
2474 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2475 const0_rtx instead of NULL_RTX when in error.
2476 (altivec_expand_abs_builtin): Same.
2477 (rs6000_expand_binop_builtin): Same.
2478 (altivec_expand_predicate_builtin): Same.
2479 (altivec_expand_stv_builtin): Same.
2480 (rs6000_expand_ternop_builtin): Same.
2481 (altivec_expand_builtin): Same.
9a171fcd 2482
62a35e60
DM
24832002-05-29 David S. Miller <davem@redhat.com>
2484
2485 * rtl.h (clear_emit_caches): Delete.
2486 * integrate.c (output_inline_function): Don't call it.
2487 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
2488 (clear_emit_caches): Delete definition.
2489 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
2490
cbc39da8
HPN
24912002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
2492
2493 * config/mmix/mmix.c: Include real.h.
2494 (mmix_constant_address_p): Remove redundant test before switch.
2495
50efa737
JT
24962002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2497
2498 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
2499 only if not already defined.
2500
2e760b15
KH
25012002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2502
2503 * config/h8300/h8300-protos.h: Remove prototypes for
2504 ok_for_bclr and small_power_of_two.
2505 * config/h8300/h8300.c (small_power_of_two): Remove.
2506 (ok_for_blcr): Likewise.
2507 (fix_bit_operand): Make WHAT deal with an integer instead of a
2508 constraint character.
2509 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
2510 (CONST_OK_FOR_P): Likewise.
2511 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
2512 CONST_OK_FOR_P any more.
2513 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
2514 of fix_bit_operand.
2515 (iorqi3): Likewise.
2516 (xorqi3): Likewise.
2517
e1c293ae
JT
25182002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2519
2520 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2521 (CPP_PREDEFINES): Make sure this is undefined.
2522 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
2523 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
2524 or -U__MIPSEB__ before defining one or the other. Instead,
2525 use %(subtarget_endian_default) if neither -EB nor -EL are
2526 specified.
2527 (SUBTARGET_EXTRA_SPECS): Define.
2528 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
2529 %(netbsd_cpp_spec).
2530
fde6d81f
HPN
25312002-05-29 Hans-Peter Nilsson <hp@axis.com>
2532
2533 * doc/md.texi (Patterns): Note pattern condition pitfall
2534 for unnamed insn.
2535
92898235
AH
25362002-05-29 Aldy Hernandez <aldyh@redhat.com>
2537
1e730c5c
ZW
2538 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2539 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
2540 ternary operations from here...
2541 (rs6000_expand_builtin): ...to here.
2542 New argument expandedp.
2543 Change all instances of altivec_expand_binop_builtin to
2544 rs6000_expand_binop_builtin.
2545 (altivec_expand_unop_builtin): Rename to
2546 rs6000_expand_unop_builtin.
2547 (altivec_expand_binop_builtin): Rename to
2548 rs6000_expand_binop_builtin.
2549 (altivec_expand_ternop_builtin): Rename to
2550 rs6000_expand_ternop_builtin.
92898235 2551
67adf6a9
RH
25522002-05-29 Richard Henderson <rth@redhat.com>
2553
2554 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2555 (TARGET_BI_ARCH): Likewise.
2556 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2557 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2558 (TARGET_64BIT_DEFAULT): Default to 0.
2559 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2560
145aacc2
RH
25612002-05-29 Richard Henderson <rth@redhat.com>
2562
2563 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2564 (get_pc_thunk_name): New.
2565 (output_set_got): Use it.
2566 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2567 into linkonce sections.
2568
a5b49bbc
JT
25692002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2570
2571 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2572 (CPP_PREDEFINES): Make sure this is undefined.
2573 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2574 (CPP_SUBTARGET_SPEC): Don't provide different versions for
2575 default-32 and default-64. Just always use %(netbsd_cpp_spec).
2576 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2577 cpp_subtarget_spec64. Add netbsd_cpp_spec.
2578 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2579 (CPP_PREDEFINES): Make sure this is undefined.
2580 (SUBTARGET_EXTRA_SPECS): Define.
2581 (CPP_SPEC): Use %(netbsd_cpp_spec).
2582
54374491
JL
25832002-05-29 Jeff Law <law@redhat.com>
2584
ae02eae8
JL
2585 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2586
b862c2aa
JL
2587 * flow.c (propagate_one_insn): Do not remove a dead insn if it
2588 contains a REG_RETVAL note.
2589
d10791ba
JL
2590 * haifa-sched (sched_analyze): Remove another useless clearing
2591 of SCHED_GROUP_P I missed yesterday.
2592
54374491
JL
2593 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2594 * pa.c (pa_asm_output_mi_thunk): New function.
2595 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2596
92c392e6
NB
25972002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2598 Marek Michalkiewicz <marekm@amelek.gda.pl>
2599
2600 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2601 (avr_asm_only_p): Make non-static.
2602 (enum avr_arch): Remove.
2603 (avr_arch_types): New.
2604 (avr_mcu_types): Update.
2605 (avr_override_options): Use avr_arch_types table instead of switch.
2606 * avr.h (CPP_PREDEFINES): Die.
2607 (avr_base_arch_macro, avr_extra_arch_macro): New.
2608 (TARGET_CPU_CPP_BUILTINS): New.
2609 (CPP_SPEC, EXTRA_SPECS): Simplify.
2610 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2611 CPP_AVR5_SPEC): Die.
2612
4528173e
JT
26132002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2614
2615 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2616 NETBSD_OS_CPP_BUILTINS_AOUT.
2617 (SUBTARGET_EXTRA_SPECS): Define.
2618 (CPP_SPEC): Use %(netbsd_cpp_spec).
2619
bd09bdeb
RH
26202002-05-29 Richard Henderson <rth@redhat.com>
2621
2622 * config/i386/i386.c (ix86_output_function_epilogue): New.
2623 (TARGET_ASM_FUNCTION_EPILOGUE): New.
2624 (pic_label_name): Remove.
2625 (pic_labels_used): New.
2626 (ix86_asm_file_end): Emit one pc load stub for each register used.
2627 (output_set_got): Generate deep pc load to any register.
2628 (ix86_select_alt_pic_regnum): New.
2629 (ix86_save_reg): Don't save pic register if we can find a valid
2630 call-clobbered replacement.
2631 (ix86_expand_prologue): If we found a valid replacement, renumber
2632 pic_offset_table_rtx.
2633 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2634 pic_offset_table_rtx after reload.
2635 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2636 * config/i386/i386.md (set_got): Make insn, not expander.
2637 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2638
002ff5bc
RH
26392002-05-29 Richard Henderson <rth@redhat.com>
2640
2641 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2642 alignment for alloca.
2643
edfe8595
RH
26442002-05-29 Richard Henderson <rth@redhat.com>
2645
2646 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2647 (print_operand_address): Only add rip for symbolic addresses
2648 for which we do not have another relocation type.
2649
cd7714ee
JT
26502002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2651
2652 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2653 (EXTRA_SPECS): Add netbsd_cpp_spec.
2654 (CPP_SPEC): Use %(netbsd_cpp_spec).
2655 (CPP_PREDEFINES): Remove.
2656 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2657 (EXTRA_SPECS): Define.
2658 (CPP_SPEC): Use %(netbsd_cpp_spec).
2659 (CPP_PREDEFINES): Remove.
2660
8dc901de
NB
26612002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2662
2663 PR preprocessor/6844
2664 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2665 NUL.
2666
2274b31a
EC
26672002-05-29 Eric Christopher <echristo@redhat.com>
2668
2669 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2670 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2671
5c7666c1
NC
26722002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
2673
2674 * config/fr30/fr30.md: Remove previous restriction on splits.
2675 Enforce conformance through gen_lowpart and cont_int_operand.
1e730c5c 2676 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
5c7666c1
NC
2677 as the assembler does not support ".bss".
2678
45beef47
JT
26792002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2680
2681 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2682 (CPP_PREDEFINES): Remove.
2683 (SUBTARGET_EXTRA_SPECS): Define.
2684 (CPP_SPEC): Use %(netbsd_cpp_spec).
2685 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2686 (CPP_PREDEFINES): Remove.
2687 (SUBTARGET_EXTRA_SPECS): Define.
2688 (CPP_SPEC): Use %(netbsd_cpp_spec).
2689 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2690 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2691 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2692 Add netbsd_cpp_spec.
2693 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2694
cd7ab83f
NB
26952002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2696 Zack Weinberg <zack@codesourcery.com>
2697
2698 * cppexp.c (cpp_num): Move to cpplib.h.
2699 (CPP_ERROR): Remove.
2700 (interpret_float_suffix, interpret_int_suffix): New.
2701 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2702 (cpp_classify_number, cpp_interpret_integer): New.
2703 (interpret_number): Remove.
2704 (eval_token): Update to use new routines.
2705 * cpphash.h (cpp_num_part): Move to cpplib.h.
2706 * cppinit.c (cpp_post_options): Set warn_long_long.
2707 * cpplib.h (struct cpp_options): Add warn_long_long.
2708 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2709 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2710 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2711 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2712 cpp_interpret_integer): New.
2713
61a8515c
JS
27142002-05-29 Joel Sherrill <joel@OARcorp.com>
2715
2716 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2717
53a428b5
JT
27182002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2719
2720 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2274b31a
EC
2721 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2722 (CPP_SUBTARGET_SPEC): Define.
2723 (SUBTARGET_EXTRA_SPECS): Define.
53a428b5
JT
2724 (CPP_SPEC): Remove.
2725
45b1f7c7
CL
27262002-05-29 Chris Lattner <sabre@nondot.org>
2727
1e730c5c
ZW
2728 * ssa.c (rename_insn_1): Rename uses of undefined registers to
2729 prevent confusion if/when the register is defined.
45b1f7c7 2730
049746c2
HPN
27312002-05-29 Hans-Peter Nilsson <hp@axis.com>
2732
2733 PR target/6838
2734 * config/cris/cris.md: Fix typos and thinkos in comments.
2735 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2736 second alternative.
2737 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2738 ("*mov_sideqi_mem"): Similar, but for operand 3.
2739 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2740 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2741 Remove spurious mode specifier on operand 2.
2742
4d4d89e2
KH
27432002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2744
2745 * config/h8300/h8300-protos.h: Remove the prototype for
2746 o_operand.
2747 Add prototypes for single_one_operand and single_zero_operand.
2748 * config/h8300/h8300.c (o_operand): Remove.
2749 (single_one_operand): New.
2750 (single_zero_operand): Likewise.
2751 (print_operand): For 'V' operand, and the operand with 0xff.
2752 For 'V' and 'W' operands, do not and the bit position with 7.
2753 * config/h8300/h8300.md (various anonymous patterns): Replace
2754 use of exact_log2 with single_one_operand/single_zero_operand.
2755
abd6ddec
UW
27562002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2757
2758 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2759
da06d85a
UW
27602002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2761
2762 * config/s390/s390.c (legitimate_pic_operand_p): Do not
2763 accept symbolic LARL operands.
2274b31a 2764 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
da06d85a 2765 epilogue insns.
2274b31a 2766
f8766020
HP
27672002-05-29 Hartmut Penner <hpenner@de.ibm.com>
2768
2769 * config/s390/s390.md (cmpstr_64/31): Mark whole
2274b31a 2770 input registers as used.
f8766020 2771
66edd3b4
RH
27722002-05-28 Richard Henderson <rth@redhat.com>
2773
2774 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2775 not current_function_uses_pic_offset_table and
2776 current_function_uses_const_pool; examine current_function_profile.
2777 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
2778 input to blockage if needed.
2779 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2780 (legitimize_pic_address): Likewise. Set regs_ever_live for
2781 pic_offset_table_rtx when invoked during reload.
2782 * config/i386/i386.h (FINALIZE_PIC): Remove.
2783 * config/i386/i386.md (tablejump): Reformat. Do not set
2784 current_function_uses_pic_offset_table.
2785 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2786 (blockage): Accept anything as operand 0.
2787
52f4fff6
JT
27882002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2789
2790 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2791 common CPP built-ins for all NetBSD a.out targets.
2792 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2793 common CPP built-ins for all NetBSD ELF targets.
2794 * config/netbsd.h: Add missing notice.
2795 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2796 for all NetBSD targets.
2797 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2798 for all NetBSD targets using an LP64 code model.
2799 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2800 NetBSD targets.
2801
e0e577a2
RH
28022002-05-28 Richard Henderson <rth@redhat.com>
2803
2804 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2805 update if UPDATE_LIFE_LOCAL.
2806
28072002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
62526ec3
TM
2808
2809 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2810
f1a58d92 2811Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1e730c5c 2812 Jason R. Thorpe <thorpej@wasabisystems.com>
f1a58d92
R
2813
2814 config/sh reorganization to factor out endianness and coff:
2815
2816 * config/sh/little.h: New file.
1e730c5c
ZW
2817 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2818 defined, define to 0 to select big-endian.
f1a58d92 2819 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
1e730c5c
ZW
2820 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2821 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2822 * config/sh/t-be: New file.
2823 * config/sh/t-le: New file.
f1a58d92
R
2824
2825 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2826 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2827 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2828 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2829 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2830 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2831 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2832 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2833 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2834 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2835 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2836 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2837 (LINK_SPEC): Define to SH_LINK_SPEC.
2838 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2839 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2840 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2841 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2842 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2843 * config/sh/coff.h: New file.
2844 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2845 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2846 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2847 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2848 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2849 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2850 (PTRDIFF_TYPE): Likewise.
2851 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2852 (CPP_PREDEFINES): Don't define.
2853 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2854 (LINK_SPEC): Define to SH_LINK_SPEC.
2855 (LINK_EMUL_PREFIX): Redefine.
2856 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2857 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2858 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2859 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2860 (TARGET_OS_CPP_BUILTINS): Define.
2861 (TARGET_DEFAULT): Redefine.
2862 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2863 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2864 (LINK_SPEC): Don't redefine.
2865 (LINK_DEFAULT_CPU_EMUL): Redefine.
2866 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2867 * sh.c (sh_asm_named_section): Don't declare / define.
2868 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2869 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2870 (sh64-*-elf* tm_file): Likewise.
2871 (sh-*-rtemself* tm_file): Likewise.
2872 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
2873 (sh-*-linux* tmake_file): Add sh/t-le.
2874 (sh-*-rtems* tm_file): Add sh/coff.h
2875 (sh-*-* tm_file): Likewise.
2876
2877Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2878
2879 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2880 CONSTANT_POOL_ADDRESS_P.
2881
2882 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2883
d10791ba 28842002-05-28 David Edelsohn <edelsohn@gnu.org>
33a3dfc4
DE
2885 Jeff Law <law@redhat.com>
2886
64de6c0a
DE
2887 * optabs.c (expand_binop): Fix nwords sign warnings.
2888 generate pseudo for add_optab.
2889
33a3dfc4
DE
2890 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2891 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2892
972957ba 28932002-05-28 Marc Espie <espie@openbsd.org>
33a3dfc4 2894
2274b31a 2895 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
972957ba
ME
2896 inherited from gas.h.
2897 (ASM_QUAD): Undef. OpenBSD does not support it.
2898
cc92b8ab
DS
28992002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
2900
2901 * doc/install.texi (binaries): Change mingw binaries
2902 link to www.mingw.org.
2903
f8088d55
ZD
29042002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2905
2906 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
2907
0b7ae565
RH
29082002-05-28 Richard Henderson <rth@redhat.com>
2909
2910 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
2911 bottom alignment for leaf functions.
2912
16069d69
ZW
29132002-05-28 Zack Weinberg <zack@codesourcery.com>
2914
2915 * config/pa/milli32.S, config/pa/lib1funcs.asm,
2916 config/sparc/sol2-g1.asm: Delete unused files.
2917
04653686
RH
29182002-05-28 Richard Henderson <rth@redhat.com>
2919
2920 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
2921
f3ea5f6a
RH
2922 * flow.c (calculate_global_regs_live): Rename call_used to
2923 invalidated_by_call. Initialize from regs_invalidated_by_call
2924 instead of call_used_regs.
2925
923c7cdf
RH
2926 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
2927 DECL_EXTERNAL.
2928
11ad4784
ZW
29292002-05-28 Zack Weinberg <zack@codesourcery.com>
2930
8abbd76a
ZW
2931 * tree.h: Don't include real.h.
2932 Forward-declare struct realvaluetype.
11ad4784
ZW
2933 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
2934 contain it.
2935 (TREE_REAL_CST_PTR): New accessor.
2936 (TREE_REAL_CST): Update.
2937 * real.h: Include machmode.h.
2274b31a 2938 (realvaluetype): Make it struct realvaluetype, not a typedef.
11ad4784
ZW
2939 (build_real): Prototype here.
2940
2941 * tree.c: Include real.h.
2274b31a
EC
2942 (build_real): Allocate the REAL_VALUE_TYPE as a separate
2943 object in GC memory, set TREE_REAL_CST_PTR to point to it.
11ad4784
ZW
2944 (build_real_from_int_cst): Use build_real.
2945 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
2946 REAL_CST.
2947
2948 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
2949 fold-const.c, print-tree.c, real.c: Include real.h.
2950 * Makefile.in: Update dependency lists.
2951
bf77398c
ZD
29522002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2953
2954 * basic-block.h (last_basic_block): Declare.
2955 (expunge_block_nocompact): Declaration removed.
2956 (compact_blocks): Declare.
2957 * cfg.c (last_basic_block): New variable.
2958 (expunge_block_nocompact): Removed.
2959 (expunge_block): Do not compact basic blocks.
2960 (compact_blocks): New.
2961 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
2962 longer change.
2963 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
2964 last_basic_block.
2965 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
2966 real positions of blocks.
2967 (delete_unreachable_blocks): Simplified -- quadratic behavior now
2968 cannot occur.
2969 (cleanup_cfg): Compact blocks.
2970 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
2971 basic_block_info varray.
2972 (flow_delete_block): Comment update.
2973 (back_edge_of_syntactic_loop_p): Modify position check code.
2974 (verify_flow_info): Update checking.
2975 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
2976 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2977 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
2978 indices no longer change.
2979 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
2980 last_basic_block.
2981 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
2982 * profile.c (branch_prob): Compact blocks.
2983 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
2984 last_basic_block.
2985
ae12a094
KH
29862002-05-28 Kazu Hirata <kazu@cs.umass.edu>
2987
2988 * config/h8300/h8300.md (two anonymous patterns): New.
2989
c6172f14
DM
29902002-05-28 David S. Miller <davem@redhat.com>
2991
2992 * config/sparc/sparc.md (cpu): Tidy.
2993 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
2994 'trap'.
2995 (in_call_delay): Delete reference to 'return' type.
2996 (eligible_for_return_delay, in_return_delay, define_delay
2997 referencing those): Delete.
2998 (rest of file): Use new type attributes as appropriate.
2999 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
3000 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
3001 * config/sparc/ultra1_2.md (us1_single): New reservation.
3002 (us1_ialuX): Likewise.
3003 * config/sparc/ultra3.md (us3_single): Likewise.
3004 (us3_ialuX): Likewise.
3005 (us3_imul, us3_idiv): Tweak.
2274b31a 3006
34a6c2ec
RH
30072002-05-28 Richard Henderson <rth@redhat.com>
3008
3009 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
3010 STRING_CST.
3011
9c075570
RH
30122002-05-28 Richard Henderson <rth@redhat.com>
3013
3014 * config.gcc: Obsolete mn10200.
3015
359b0bec
NB
30162002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
3017
3018 * cppexp.c (interpret_number): Optimize for single-digit
3019 and less-than-half-precision cases.
3020 (num_trim, num_positive, num_div_op): Cast constants.
3021
4075db8f
BT
30222002-05-27 Bo Thorsen <bo@suse.de>
3023
3024 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
3025 3.1 branch. The file was made by Jakub Jelinek.
3026 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
3027 support so multilib doesn't break. And don't define this at all
3028 when -Dinhibit_libc is used.
3029 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
3030 * config/i386/t-linux64: Implement full multilib support. Patch
3031 originally done by Andreas Jaeger and Jakub Jelinek.
3032
39f2f3c8
RS
30332002-05-27 Roger Sayle <roger@eyesopen.com>
3034
3035 * c-common.c: Add support for __attribute__((nothrow)) to specify
3036 that a function cannot throw an exception (using TREE_NOTHROW).
3037 (handle_nothrow_attribute): New function to process this attribute.
3038
3039 * doc/extend.texi: Document the new nothrow function attribute.
3040
d51b0053
L
30412002-05-27 H.J. Lu (hjl@gnu.org)
3042
3043 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
3044 (num_positive): Likewise.
3045 (num_div_op): Likewise.
3046
630363b4
NB
30472002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3048
3049 * c-common.c (c_common_init): Always use intmax_t.
3050
d94cde01
NB
30512002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3052
3053 * c-common.c (c_common_init): Use intmax_t for now.
3054
57f851a3
AH
30552002-05-24 Andrew Haley <aph@redhat.com>
3056
3057 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
3058 if T is a boolean type.
3059
d55bc081
ZD
30602002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3061
3062 * basic-block.h (last_basic_block): Defined as synonym for
3063 n_basic_blocks.
3064 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
3065 flow_depth_first_order_compute, flow_preorder_transversal_compute,
3066 flow_dfs_compute_reverse_init): Replaced relevant occurences of
3067 n_basic_blocks with last_basic_block.
3068 * cfgbuild.c (make_edges): Likewise.
3069 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
3070 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
3071 * combine.c (combine_instructions): Likewise.
3072 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
3073 iterative_dataflow_bitmap): Likewise.
3074 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3075 calc_idoms, idoms_to_doms): Likewise.
3076 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
3077 Likewise.
3078 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
3079 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
3080 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
3081 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
3082 delete_null_pointer_checks, compute_code_hoist_vbeinout,
3083 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3084 compute_store_table, build_store_vectors): Likewise.
3085 * haifa-sched.c (sched_init): Likewise.
3086 * ifcvt.c (if_convert): Likewise.
3087 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3088 pre_edge_lcm, compute_available, compute_nearerout,
3089 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
3090 Likewise.
3091 * predict.c (estimate_probability, process_note_prediction,
3092 note_prediction_to_br_prob): Likewise.
3093 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
3094 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3095 * regrename.c (copyprop_hardreg_forward): Likewise.
3096 * resource.c (init_resource_info): Likewise.
3097 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
3098 init_regions, schedule_insns): Likewise.
3099 * ssa-ccp.c (ssa_const_prop): Likewise.
3100 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3101 * ssa.c (compute_dominance_frontiers,
3102 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
3103
3104 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
3105 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
3106 sizes consistently.
3107
71d2c5bd
JH
3108Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3109
3110 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
3111 new.
3112 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
3113 hoist_insn_after, hoist_insn_to_edge): New.
3114
5149f070
JH
3115Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
3116
3117 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
3118 (PROP_FINAL): Include.
3119 * flow.c (life_analysis, update_life_info,
3120 init_propagate_block_info, mark_set_1, mark_used_rgs):
3121 Support SCAN_DEAD_STORE.
3122
c9220e3a
NB
31232002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3124
3125 * c-common.c (c_common_init): Set CPP arithmetic precision.
3126 * cppexp.c (cpp_num_part): Move typedef ...
3127 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
3128 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
3129 (sanity_checks): Update.
3130
e34a3d31
GK
31312002-05-26 Geoffrey Keating <geoffk@redhat.com>
3132
3133 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
3134 (mkheaders): New rule.
3135 (install-mkheaders): New rule.
3136 * configure.in (all_outputs): Add mkheaders.
3137 * configure: Regenerate.
3138 * mkheaders.in: New file.
3139
9059e33c
JJ
31402002-05-26 Jakub Jelinek <jakub@redhat.com>
3141
3142 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
3143
291cc0fe
AJ
31442002-05-26 Andreas Jaeger <aj@suse.de>
3145
3146 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
3147
91318908
NB
31482002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
3149
3150 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
3151 right_shift): Remove.
3152 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
3153 HIGH_PART): New.
3154 (struct op): Use cpp_num.
3155 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
3156 num_part_mul, num_unary_op, num_binary_op, num_negate,
3157 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
3158 num_div_op, num_lshift, num_rshift, append_digit): New.
3159 (interpret_number, parse_defined, eval_token, reduce): Update
3160 for two-integer arithmetic.
3161 (binary_handler): New typedef.
3162 (optab): Update.
3163 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
3164 (_cpp_parse_expr, reduce): Update to handle two-integers.
3165 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
3166
331ca350
MM
31672002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
3168
3169 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
3170 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
3171 branch insn into account, do not assume 1.
3172 (avr_out_sbxx_branch): New function. Optimize cases of skipping
3173 over single word insn. Handle upper half of I/O space too.
3174 * config/avr/avr.md (*sbrx_branch): Use it.
3175 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
3176 (*sbix_branch, *sbix_branch_bit7): Likewise.
3177 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
3178 Use RTL peepholes to optimize register operand sign tests.
3179
bcb6a2be
MM
31802002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
3181
3182 * config/avr/avr.c (avr_asm_only_p): New variable.
3183 (avr_override_options): Set it here if AVR1.
3184 (asm_file_start): Test it here, report an error if set.
3185
ca7fd9cd
KH
31862002-05-26 Kazu Hirata <kazu@cs.umass.edu>
3187
3188 * alias.c: Fix formatting.
3189 * attribs.c: Likewise.
3190 * bb-reorder.c: Likewise.
3191 * bitmap.c: Likewise.
3192 * bitmap.h: Likewise.
3193 * builtins.c: Likewise.
3194
a65dc37d
JH
3195Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
3196
3197 * reload.c (find_valid_class): Accept new argument DEST,
3198 choose class accordingly.
3199 (push_reload): Update callers.
3200
9b89393b
AJ
32012002-05-26 Andreas Jaeger <aj@suse.de>
3202
3203 * combine.c (combine_instructions): Do not indent #if for
3204 traditional C.
3205
b53bb376
RH
32062002-05-25 Richard Henderson <rth@redhat.com>
3207
3208 * c-pragma.c (apply_pragma_weak): Convert value identifier to
3209 string for decl_attributes.
3210 (handle_pragma_weak): Call assemble_alias if we're modifying
3211 an existing decl.
3212
e133041b
RH
32132002-05-25 Richard Henderson <rth@redhat.com>
3214
3215 PR target/6788
3216 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
3217 using rtl instead of fprintf.
3218 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
3219 * config/sparc/sparc-protos.h: Update.
3220
81a75f0f
NB
32212002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
3222
3223 * Makefile.in (C_COMMON_H): Fix.
3224 Update other targets.
3225 * c-common.c: Don't include c-lex.h.
3226 (builtin_define_with_value): Make static and prototype.
3227 (builtin_define_std): Move from c-lex.h.
3228 * c-common.h (init_c_lex): Move from c-lex.h.
3229 * c-decl.c: Don't include c-lex.h.
3230 (make_pointer_declarator): Move from c-parse.in.
3231 * c-lex.c: Don't include c-lex.h.
3232 * c-lex.h: Remove.
3233 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
3234 (make_pointer_declarator): Move to c-decl.c.
3235 * c-pragma.c: Don't include c-lex.h.
3236 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
3237 * c-tree.h (make_pointer_declarator): New.
3238doc:
3239 * passes.texi, tm.texi: Update.
3240objc:
3241 * Make-lang.in: Update and correct.
3242 * objc-act.c: Don't include c-lex.h or cpplib.h.
3243treelang:
3244 * treetree.c: Don't include c-lex.h.
3245config:
3246 * darwin-c.c: Don't include c-lex.h.
3247 * c4x/c4x-c.c: Don't include c-lex.h.
3248 * c4x/t-c4x: Update.
3249 * i370/i370-c.c: Don't include c-lex.h.
3250 * i370/t-i370: Update.
3251 * i960/i960-c.c: Don't include c-lex.h.
3252 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
3253 * i960/t-960bare: Update.
3254 * i960/t-vxworks: Update.
3255 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
3256 * rs6000/t-darwin: Update.
3257 * rs6000/t-rs6000-c-rule: Update.
3258 * v850/v850-c.c: Don't include c-lex.h.
3259 * v850/v850.c: Don't include c-lex.h or cpplib.h.
3260
3261
04d2be8e
KH
32622002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3263
3264 * tree.def: Fix typos.
3265 * doc/install.texi: Likewise.
3266
7b6e506e
RH
32672002-05-25 Richard Henderson <rth@redhat.com>
3268
3269 * configure.in (HAVE_AS_TLS): Add ia64 test.
3270 * configure: Rebuild.
3271 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
3272 (override_options): Set it.
3273 (TARGET_HAVE_TLS): New.
3274 (sdata_symbolic_operand): Look for 's'.
3275 (tls_symbolic_operand): New.
3276 (ia64_expand_load_address): Abort for tls symbols.
3277 (gen_tls_get_addr): New.
3278 (gen_thread_pointer): New.
3279 (ia64_expand_move): Split out from movdi. Handle tls symbols.
3280 (rtx_needs_barrier): Add new unspecs.
3281 (ia64_encode_section_info): Handle tls symbols.
3282 (ia64_strip_name_encoding): Strip two encoding chars.
3283 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
3284 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
3285 (TARGET_OPTIONS): Add tls-size.
3286 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
3287 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
3288 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
3289 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
3290 (movsf, movdf): Likewise.
3291 (movdi_symbolic): Use match_scratch. Don't split if we won't
3292 have a scratch availiable.
3293 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
3294 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
3295 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
3296 * config/ia64/ia64-protos.h: Update.
3297 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3298 sdata_symbolic_operand.
3299 (ASM_OUTPUT_LABELREF): Strip two characters.
3300
8c1d52a3
KH
33012002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3302
3303 * combine.c (simplify_set): Remove an unnecessary subreg.
3304
b47cae3d
MM
33052002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
3306
3307 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
3308
3309 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
3310
ce9e3a6d
GDR
33112002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3312
3313 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
3314
fb2c6841
RS
33152002-05-25 Roger Sayle <roger@eyesopen.com>
3316
3317 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
3318 (cond (compare x y) 0) into the equivalent (cond x y).
3319
da7ac8f1
GDR
33202002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3321
3322 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
3323
c7bdf0a6
ZW
33242002-05-24 Zack Weinberg <zack@codesourcery.com>
3325
3326 * config.gcc: Remove all stanzas for previously obsoleted
3327 systems. Where necessary, add explicit error stanzas to
3328 prevent removed systems from being misidentified as something
3329 else. Begin a fresh obsoletions list, with the systems that
3330 were reprieved last round.
3331 * doc/install.texi: Remove all mention of dead targets.
3332 * fixinc/mkfixinc.sh: Likewise.
3333
3334 * config/arm/arm.h: Bit 31 of target_flags is no longer
3335 reserved.
3336
3337 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
3338 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
3339 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
3340 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
3341 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
3342 config/alpha/osf12.h, config/alpha/osf2or3.h,
3343 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
3344 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
3345 config/clipper/clipper-protos.h, config/clipper/clipper.c,
3346 config/clipper/clipper.h, config/clipper/clipper.md,
3347 config/clipper/clix.h, config/convex/convex-protos.h,
3348 config/convex/convex.c, config/convex/convex.h,
3349 config/convex/convex.md, config/convex/fixinc.convex,
3350 config/convex/proto.h, config/elxsi/elxsi-protos.h,
3351 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
3352 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
3353 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
3354 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
3355 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
3356 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
3357 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
3358 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
3359 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
3360 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
3361 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
3362 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
3363 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
3364 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
3365 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
3366 config/m68k/altos3068.h, config/m68k/apollo68.h,
3367 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
3368 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
3369 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
3370 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
3371 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
3372 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
3373 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
3374 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
3375 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
3376 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
3377 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
3378 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
3379 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
3380 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
3381 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
3382 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
3383 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
3384 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
3385 config/mips/dec-osf1.h, config/mips/elflorion.h,
3386 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
3387 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
3388 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
3389 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
3390 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
3391 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
3392 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
3393 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
3394 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
3395 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
3396 config/ns32k/sequent.h, config/ns32k/tek6000.h,
3397 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
3398 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
3399 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
3400 config/sparc/rtems.h, config/we32k/we32k-protos.h,
3401 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
3402 Delete file.
3403
755ac5d4
RH
34042002-05-24 Richard Henderson <rth@redhat.com>
3405
3406 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
3407 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
3408 * config/i386/i386.c (tls_model_chars): Add leading space.
3409 (tls_symbolic_operand): Don't bias by 1.
3410 (legitimize_address): Don't unbias by 1.
3411
c429f12e
TM
34122002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3413
3414 * lcm.c (optimize_mode_switching): Change bb used as indices
3415 to bb->index.
3416
8beda321
RH
34172002-05-24 Richard Henderson <rth@redhat.com>
3418
3419 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3420 of update_life_info_in_dirty_blocks.
3421
90442291
JJ
34222002-05-24 Jakub Jelinek <jakub@redhat.com>
3423
3424 PR other/6782
3425 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3426
3620711b
NB
34272002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
3428
3429 PR preprocessor/6780
3430 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3431
2f8d482e
JB
34322002-05-24 Jim Blandy <jimb@redhat.com>
3433
3434 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3435 entry with a type code of zero, marking the end of the compilation
3436 unit's macro info.
3437
95bfe95f
RH
34382002-05-24 Richard Henderson <rth@redhat.com>
3439
c7bdf0a6
ZW
3440 * varasm.c (asm_output_bss): Always output one byte.
3441 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
95bfe95f 3442
7efda054
BM
34432002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3444
3445 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3446 namespace.
3447
8a951190
AJ
34482002-05-24 Andreas Jaeger <aj@suse.de>
3449
3450 * ggc-page.c (alloc_page): Cast variables of type size_t to
3451 unsigned long, adjust printf format string.
3452 (ggc_alloc): Likewise.
3453 (ggc_print_statistics): Likewise.
3454 (ggc_print_statistics): Correct printf format string for SCALE to
3455 use unsigned long.
3456
f29e2ec0
DS
34572002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
3458
3459 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
3460
211a0cbe 34612002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
c7bdf0a6 3462 Zack Weinberg <zack@codesourcery.com>
211a0cbe
GDR
3463
3464 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
3465 quoted strings.
3466 * dwarf2out.c (lookup_filename): Properly quote filename in .file
8a951190 3467 directive in assembly file.
211a0cbe
GDR
3468 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3469 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3470 * config/pj/pj.h (ASM_FILE_START): Likewise.
3471 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
3472 * config/avr/avr.c (asm_file_end): Likewise.
3473 * toplev.c (output_quoted_string): Handle possibly signed plain
8a951190 3474 char.
211a0cbe
GDR
3475 * toplev.h (output_clean_symbol_name): Declare
3476 * toplev.c (output_clean_symbol_name): Define.
3477 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
3478 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
3479
2f0552b6
AM
34802002-05-24 Alan Modra <amodra@bigpond.net.au>
3481
3482 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
3483
b326b2c1
VM
34842002-05-23 Vladimir Makarov <vmakarov@redhat.com>
3485
3486 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
3487 of size of unsigned.
3488
f996902d
RH
34892002-05-23 Richard Henderson <rth@redhat.com>
3490
3491 * configure.in (HAVE_AS_TLS): New test.
3492 * config.in, configure: Rebuild.
3493 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
3494 (ix86_tls_dialect_string, ix86_tls_dialect): New.
3495 (override_options): Set it.
3496 (tls_model_chars, tls_symbolic_operand): New.
3497 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
3498 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
3499 (local_exec_symbolic_operand): New.
3500 (get_pic_label_name): Merge into output_set_got.
3501 (ix86_asm_file_end): Emit pic_label_name if defined.
3502 (legitimate_constant_p, constant_address_p): New.
3503 (legitimate_pic_operand_p): New.
3504 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
3505 (legitimate_address_p): Likewise.
3506 (ix86_encode_section_info): Rename from i386_; handle tls decls.
3507 (ix86_strip_name_encoding): New.
3508 (get_thread_pointer): New.
3509 (legitimize_address): Handle tls symbols.
3510 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
3511 Remove UNSPEC_PLT.
3512 (struct machine_function): Add some_ld_name.
3513 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
3514 (print_operand) [&]: Use it. Handle UNSPEC_TP.
3515 (output_addr_const_extra): New.
3516 (maybe_get_pool_constant): New.
3517 (ix86_split_to_parts): Use it.
3518 (ix86_expand_move): Handle tls symbols.
3519 (ix86_tls_get_addr): New.
3520 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
3521 (TARGET_OPTIONS): Add tls-dialect.
3522 (CONSTANT_ADDRESS_P): Use new out-of-line function.
3523 (LEGITIMATE_CONSTANT_P): Likewise.
3524 (LEGITIMATE_PIC_OPERAND_P): Likewise.
3525 (TARGET_STRIP_NAME_ENCODING): New.
3526 (ASM_OUTPUT_LABELREF): New.
3527 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3528 (OUTPUT_ADDR_CONST_EXTRA): New.
3529 (PREDICATE_CODES): Update.
3530 (ix86_tls_dialect, ix86_tls_dialect_string): New.
3531 * config/i386/i386.md: Regroup and renumber unspec constants.
3532 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
3533 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3534 (tls_global_dynamic, tls_local_dynamic_base): New.
3535 (tls_local_dynamic_once): New.
3536 * config/i386/i386-protos.h: Update.
3537
821e35ba
RH
35382002-05-23 Richard Henderson <rth@redhat.com>
3539
3540 * genemit.c (gen_insn): Print file:lineno comment before function.
3541 (main): likewise.
3542 * gensupport.c (struct queue_elem): Add filename member.
3543 (queue_pattern): Initialize it; update all callers.
3544 (process_include): Don't free filename.
3545 (read_md_rtx): Set read_rtx_filename.
3546
0f1ffa23 35472002-05-23 Hans Boehm <Hans_Boehm@hp.com>
821e35ba
RH
3548
3549 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
0f1ffa23 3550
8e9fadc3
RH
35512002-05-23 Richard Henderson <rth@redhat.com>
3552
3553 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3554
244c2241
RH
35552002-05-23 Richard Henderson <rth@redhat.com>
3556
3557 * doc/extend.texi (C++98 Thread-Local Edits): Update with
3558 commentary from Mark.
3559
e0082a72
ZD
35602002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3561
3562 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3563 Use FOR_EACH_BB macros to iterate over basic block chain.
3564 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3565 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3566 Likewise.
3567 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3568 find_unreachable_blocks, create_edge_list, verify_edge_list,
3569 remove_fake_edges, add_noreturn_fake_exit_edges,
3570 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3571 Likewise.
3572 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3573 find_sub_basic_blocks): Likewise.
3574 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3575 Likewise.
3576 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3577 Likewise.
3578 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3579 Likewise.
3580 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3581 commit_edge_insertions, commit_edge_insertions_watch_calls,
3582 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3583 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3584 * conflict.c (conflict_graph_compute): Likewise.
3585 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3586 df_modified_p, df_refs_unlink, df_dump): Likewise.
3587 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3588 * final.c (compute_alignments): Likewise.
3589 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3590 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3591 count_or_remove_death_notes): Likewise.
3592 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3593 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3594 classic_gcse, compute_transp, cprop, compute_pre_data,
3595 compute_transpout, invalidate_nonnull_info,
3596 delete_null_pointer_checks_1, delete_null_pointer_checks,
3597 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3598 compute_store_table, build_store_vectors, store_motion): Likewise.
3599 * global.c (global_conflicts, mark_elimination): Likewise.
3600 * graph.c (print_rtl_graph_with_bb): Likewise.
3601 * haifa-sched.c (sched_init): Likewise.
3602 * ifcvt.c (if_convert): Likewise.
3603 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3604 compute_available, compute_nearerout, compute_rev_insert_delete,
3605 optimize_mode_switching): Likewise.
3606 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3607 * predict.c (estimate_probability, note_prediction_to_br_prob,
3608 propagate_freq, counts_to_freqs, expensive_function_p,
3609 estimate_bb_frequencies): Likewise.
3610 * profile.c (instrument_edges, get_exec_counts,
3611 compute_branch_probabilities, compute_checksum, branch_prob,
3612 find_spanning_tree): Likewise.
3613 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3614 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3615 Likewise.
3616 * regclass.c (scan_one_insn, regclass): Likewise.
3617 * regmove.c (mark_flags_life_zones, regmove_optimize,
3618 record_stack_memrefs): Likewise.
3619 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3620 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3621 * resource.c (find_basic_block): Likewise.
3622 * sched-ebb.c (schedule_ebbs): Likewise.
3623 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3624 find_single_block_region, find_rgns, schedule_insns)
3625 * sibcall.c (optimize_sibling_and_tail_recursive_call)
3626 * ssa-ccp.c (optimize_unexecutable_edges,
3627 ssa_ccp_df_delete_unreachable_insns): Likewise.
3628 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3629 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3630 rename_block, convert_to_ssa, compute_conservative_reg_partition,
3631 compute_coalesced_reg_partition, rename_equivalent_regs,
3632 convert_from_ssa): Likewise.
3633 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3634 process_for_unwind_directive): Likewise.
3635
3636 * df.c (FOR_ALL_BBS): Removed.
3637 * gcse.c (struct null_pointer_info): Type of current_block field
3638 changed.
3639 (struct reg_avail_info): Type of last_bb field changed.
3640 * config/ia64/ia64.c (block_num): Removed.
3641 (need_copy_state): Type changed.
3642 (last_block): New.
3643
17645b15
NB
36442002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3645
3646 * cppinit.c (mark_named_operators): Split out from init_builtins.
3647 (cpp_finish_options): Call it from here instead.
3648
79ed7328
JT
36492002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3650
3651 * builtin-attrs.def: Update copyright years.
3652 (ATTR_NONNULL): New attribute identifier.
3653 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3654 attribute tree lists.
3655 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3656 format operand.
3657 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3658 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3659 attribute lists. Chain the appropriate nonnull attribute.
3660 * c-format.c (check_format_arg): Remove null format string
3661 warning.
3662 * testsuite/gcc.dg/format/null-1.c: New test.
3663
7d600178
RO
36642002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3665
3666 * Makefile.in (ADAC): Define.
3667 (SYSLIBS): Define.
3668 (.SUFFIXES): Move before language makefile fragments.
3669 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3670
5ff225fc
MM
36712002-05-23 Mark Mitchell <mark@codesourcery.com>
3672
3673 * varasm.c (make_decl_rtl): Don't allow weak variables to be
3674 placed in common.
3675
0f72964f
JH
3676Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3677
3678 * cfg.c (dump_flow_info): Print results of
3679 maybe_hot/probably_never_executed predicates.
3680 * toplev.c (open_dump_file): Print function frequency.
3681
c863f8c2
DM
36822002-05-23 David S. Miller <davem@redhat.com>
3683
3684 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3685 regsets.
3686
b34c7881
JT
36872002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3688
3689 * c-common.c (warn_nonnull): Declare.
3690 (c_common_attribute_table): Add "nonnull" attribute.
3691 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3692 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3693 check_function_arguments_recurse): New functions.
3694 * c-common.h (warn_nonnull): Declare extern.
3695 (check_function_arguments, check_function_arguments_recurse): New
3696 prototypes.
3697 * c-decl.c (c_decode_option): Add -Wnonnull option.
3698 * c-format.c (set_Wformat): Set warn_nonnull if enabling
3699 format checking.
3700 (format_check_context): New structure.
3701 (check_format_info_recurse): Remove recursion and rename to...
3702 (check_format_arg): ...this. Update comment.
3703 (check_format_info): Use check_function_arguments_recurse.
3704 * c-typeck.c (build_function_call): Call check_function_arguments
3705 instead of check_function_format.
3706 * doc/extend.texi: Document "nonnull" attribute.
3707 * doc/invoke.texi: Docuemnt -Wnonnull option.
3708 * testsuite/gcc.dg/nonnull-1.c: New test.
3709 * testsuite/gcc.dg/nonnull-2.c: New test.
3710
95479831
DM
37112002-05-23 David S. Miller <davem@redhat.com>
3712
3713 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3714 * cfgcleanup.c (cleanup_cfg): If it is set do not
3715 attempt to delete trivially dead insns.
3716 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3717 * toplev.c (rest_of_compilation): Document non-trivial aspect
3718 the RTL before optimize_save_area_alloca is run.
3719
a97d1398
NB
37202002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3721
3722 * c-lex.c (indent_level): Remove.
3723 (cb_file_change, c_lex): Remove indent level handling.
3724 * c-lex.h (indent_level): Remove.
3725 * input.h (struct file_stack): Remove indent_level.
3726 * toplev.c (push_srcloc): Remove indent_level handling.
3727
66b408f2
JJ
37282002-05-23 Jakub Jelinek <jakub@redhat.com>
3729
3730 PR target/6753
3731 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3732 of x in constraints for clarity.
3733 (sse_mov?fcc split): abort if op2 == op3.
3734 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3735 sse_movsfcc_const0_4): Add earlyclobber.
3736 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3737 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
3738 Use Y instead of x in constraints.
3739
5bf0ebab
RH
37402002-05-23 Richard Henderson <rth@redhat.com>
3741
9217ef40
RH
3742 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3743 (C++98 Thread-Local Edits): New subsection.
3744
5bf0ebab
RH
3745 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3746 (ix86_arch): Set type to enum processor_type.
3747
8a951190 3748 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5bf0ebab
RH
3749 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3750
4832c9e1
JJ
37512002-05-23 Jakub Jelinek <jakub@redhat.com>
3752
3753 * configure.in: Fix as version test for binutils 2.12.1 releases
3754 (without dates).
3755 * configure: Rebuilt.
3756
c8c03509
RH
37572002-05-23 Richard Henderson <rth@redhat.com>
3758
3759 * config/i386/i386.c (get_pic_label_name): New.
3760 (load_pic_register): Remove.
3761 (output_set_got): New.
3762 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3763 * config/i386/i386.md (UNSPEC_SET_GOT): New.
3764 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3765 (prologue_set_got, prologue_get_pc): Remove.
3766 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3767 (builtin_setjmp_receiver): Use gen_set_got.
3768 * config/i386/i386-protos.h: Update.
3769
d51f3632
JH
3770Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
3771
3772 * gcse.c (hash_expr): Do not use alias set for hashing.
3773
b0a93386
KB
37742002-05-22 Kevin Buettner <kevinb@redhat.com>
3775
3776 * dbxout.c (dbxout_class_name_qualifiers): New function.
3777 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3778
bdee42b1
NB
37792002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3780
3781 * cpperror.c (_cpp_begin_message): No special casing
3782 of CPP_FATAL_LIMIT.
3783 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3784 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3785 * cpplib.c (do_include_common): Use DL_ERROR.
3786 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3787 (DL_ICE): Renumber.
3788 * fix-header.c (read_scan_file): Update.
3789
0e07aff3
RH
37902002-05-22 Richard Henderson <rth@redhat.com>
3791
3792 * config/i386/i386.c (ix86_expand_call): New function, extracted
3793 from md call patterns. Add pic_offset_table_rtx to
3794 CALL_INSN_FUNCTION_USAGE when needed.
3795 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3796 (call_value_pop, call_value, untyped_call): Likewise.
3797 (call_exp, call_value_exp): Remove.
3798 * config/i386/i386-protos.h: Update.
3799
6f001fdf
RH
38002002-05-22 Richard Henderson <rth@redhat.com>
3801
3802 * varasm.c (default_section_type_flags): Check for VAR_DECL
3803 before using DECL_THREAD_LOCAL.
3804
cbaaba19
DE
38052002-05-22 David Edelsohn <edelsohn@gnu.org>
3806
3807 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3808 (STARTFILE_SPEC): Delete PE crt0.o.
3809 * config/rs6000/aix51.h: Same.
3810 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3811 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3812 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
3813 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3814 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3815
c711ba8e
RH
38162002-05-22 Richard Henderson <rth@redhat.com>
3817
3818 * varasm.c (default_section_type_flags): Handle tls data and
3819 default sections.
3820 (default_unique_section): Handle tls sections.
3821
343f59d9
AM
38222002-05-23 Alan Modra <amodra@bigpond.net.au>
3823
3824 * configure.in (CROSS): Define NATIVE_CROSS.
3825 * configure: Regenerate.
3826 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3827 (startfile_prefix_spec): New var.
3828 (static_specs): Add startfile_prefix_spec.
3829 (do_spec_2): Split out from..
3830 (do_spec): ..here.
3831 (main): Process startfile_prefix_spec.
3832 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3833 dynamic linker.
3834 (STARTFILE_PREFIX_SPEC): Define.
3835 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
c7bdf0a6 3836 absolute paths.
343f59d9 3837
df383483
KH
38382002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3839
3840 * cpperror.c: Fix formatting.
3841 * cppexp.c: Likewise.
3842 * cppfiles.c: Likewise.
3843 * cpphash.c: Likewise.
3844 * cpphash.h: Likewise.
3845 * cppinit.c: Likewise.
3846 * cpplex.c: Likewise.
3847 * cpplib.c: Likewise.
3848 * cppmacro.c: Likewise.
3849 * cppmain.c: Likewise.
3850 * cppspec.c: Likewise.
3851
2dd36f90
JJ
38522002-05-22 Jakub Jelinek <jakub@redhat.com>
3853
3854 * combine.c (force_to_mode): Use gen_int_mode.
3855 Don't clear CONST_INT bits outside of mode.
3856
8dc02d7f
RH
38572002-05-22 Richard Henderson <rth@redhat.com>
3858
3859 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3860 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3861
45f79783
JJ
38622002-05-22 Jakub Jelinek <jakub@redhat.com>
3863
3864 PR c/6643
3865 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3866 if DECL_SIZE_UNIT is INTEGER_CST.
3867
19f71cd7
RH
38682002-05-22 Richard Henderson <rth@redhat.com>
3869
3870 * flow.c (life_analysis): Delete broken reg_label check.
3871
d5bcfcce
RH
38722002-05-22 Richard Henderson <rth@redhat.com>
3873
3874 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3875 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3876
985d311b 3877Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5ff94354
R
3878
3879 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3880 (embed-bb.c): New rule.
985d311b 3881 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5ff94354
R
3882 * config/sh/embed_bb.c: Delete.
3883
985d311b
R
3884Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
3885
3886 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3887
f6d45746
KH
38882002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3889
3890 * config/h8300/h8300.md (*andorqi3): New.
3891
e5f3b786
NB
38922002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
3893
3894 PR preprocessor/6517
3895 * Makefile.in: Update.
3896 * c-common.c (c_common_post_options): Add preprocessor
3897 errors to the error count.
3898 * c-lang.c (c_post_options): Kill.
3899 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3900 * hooks.h: Add header guards.
3901 * langhooks-def.h: Include hooks.h.
3902 (LANG_HOOKS_POST_OPTIONS): Update.
3903 * langhooks.h (struct lang_hooks): Update post_options.
3904 * toplev.c (parse_options_and_default_flags): Update.
3905objc:
3906 * objc-lang.c (objc_post_options): Kill.
3907 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3908
4c526be3
BK
39092002-05-21 Bruce Korb <bkorb@gnu.org>
3910
3911 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
021c1f34
BK
3912 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
3913 * fixinc/fixincl.x: regen.
4c526be3 3914
f87c27b4
KH
39152002-05-21 Kazu Hirata <kazu@cs.umass.edu>
3916
3917 * cfgbuild.c: Fix formatting.
3918 * cfg.c: Likewise.
3919 * cfgcleanup.c: Likewise.
3920 * cfglayout.c: Likewise.
3921 * cfgloop.c: Likewise.
3922 * cfgrtl.c: Likewise.
3923
3d78f2e9
RH
39242002-05-21 Richard Henderson <rth@redhat.com>
3925
3926 * c-common.h (enum rid): Add RID_THREAD.
3927 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
3928 (grokdeclarator): Grok __thread.
3929 * c-parse.in (reswords): Add __thread.
3930 (rid_to_yy): Add RID_THREAD.
3931
3932 * tree.h (DECL_THREAD_LOCAL): New.
3933 (struct tree_decl): Add thread_local_flag.
3934 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
3935 * tree.c (staticp): TLS variables are not static.
3936
3937 * target-def.h (TARGET_HAVE_TLS): New.
3938 * target.h (have_tls): New.
3939 * output.h (SECTION_TLS): New.
3940 * varasm.c (assemble_variable): TLS variables can't be common for now.
3941 (default_section_type_flags): Handle .tdata and .tbss.
3942 (default_elf_asm_named_section): Handle SECTION_TLS.
3943 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
3944
3945 * flags.h (flag_tls_default): Declare.
3946 * toplev.c (flag_tls_default): Define.
3947 (display_help): Display help for it.
3948 (decode_f_option): Set it.
3949
3950 * doc/extend.texi (Thread-Local): New node describing language-level
3951 thread-local storage.
3952 * doc/invoke.texi (-ftls-model): Document.
3953
3954 * fixinc/inclhack.def (thread_keyword): New.
3955 * fixinc/fixincl.x: Rebuild.
3956
a151daf0
JL
39572002-05-21 Jeffrey A Law <law@redhat.com>
3958
8a951190 3959 * optabs.c (expand_binop): For double-word integer multiplies,
c7539aa0
JL
3960 do not compute intermediate results into something that is
3961 not a register (such as a SUBREG or MEM).
3962
a151daf0
JL
3963 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
3964 (ix86_sched_reorder): Make sure to initialize scheduling
3965 data even when there's only one insn in the ready queue.
3966
96b1f73b
VM
39672002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3968
3969 * genautomata.c (reserv_sets_hash_value): Fix a typo.
3970
dceb2b75
VM
39712002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3972
3973 * genautomata.c (reserv_sets_hash_value): Define hash_value as
3974 set_el_t. Transform the hash value into unsigned.
3975 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
3976 (transform_3): Add code to process `(A,B)+(D,E)'.
3977
159d5964
NY
39782002-05-21 NIIBE Yutaka <gniibe@m17n.org>
3979
3980 * reload1.c (do_output_reload): Run delete_output_reload
3981 only if optimizing.
3982
cf5124f6
RS
39832002-05-21 Roger Sayle <roger@eyesopen.com>
3984
3985 PR middle-end/6600
3986 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
3987 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
3988 (can_store_by_pieces): ... and here to limit the largest mode used.
3989 Add a comment to document this function.
3990
380e6ade
RH
39912002-05-21 Richard Henderson <rth@redhat.com>
3992
3993 * flow.c (life_analysis): Fix test for deleted label.
3994
1f95326c
NB
39952002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
3996
3997 * doc/tm.texi: Fix typo.
3998
2a1dc0d8
ZW
39992002-05-21 Zack Weinberg <zack@codesourcery.com>
4000
4001 * c-common.c (c_common_init): Set options->unsigned_char from
4002 flag_signed_char.
4003 (cb_register_builtins): Define __STRICT_ANSI__ and
4004 __CHAR_UNSIGNED__ here...
4005 * cppinit.c (init_builtins): Not here.
4006 (cpp_create_reader): unsigned_char option defaults to 0, not
4007 !DEFAULT_SIGNED_CHAR.
4008 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
4009 and -funsigned-char.
4010
4011 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
4012 * cpphash.c (_cpp_init_hashtable): Don't set it.
4013 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
4014 directly. Clarify comment.
4015
d29146f2 40162002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2a1dc0d8 4017
f5eb2fc8
ZD
4018 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
4019 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
4020 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
4021 BASIC_BLOCK (n_basic_blocks - 1).
d29146f2 4022 * cfganal.c (can_fallthru, flow_call_edges_add,
f5eb2fc8 4023 flow_preorder_transversal_compute): Too.
d29146f2 4024 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
f5eb2fc8
ZD
4025 find_sub_basic_blocks): Too.
4026 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
d29146f2 4027 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
f5eb2fc8
ZD
4028 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
4029 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
d29146f2
ZD
4030 * combine.c (this_basic_block): Type changed to basic_block.
4031 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
4032 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
f5eb2fc8
ZD
4033 get_last_value, distribute_notes, distribute_links): Too.
4034 * final.c (compute_alignments): Too.
4035 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
4036 * function.c (thread_prologue_and_epilogue_insns): Too.
4037 * gcse.c (compute_code_hoist_vbeinout): Too.
4038 * global.c (build_insn_chain): Too.
4039 * ifcvt.c (find_if_block, find_cond_trap): Too.
4040 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
4041 * regmove.c (regmove_optimize): Too.
4042 * resource.c (find_basic_block): Too.
4043 * sched-ebb.c (schedule_ebbs): Too.
4044 * ssa-dce.c (find_control_dependence, find_pdom): Too.
d29146f2 4045
68bd6dd6
AJ
40462002-05-21 Andreas Jaeger <aj@suse.de>
4047
4048 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
4049
35a76aac
RH
40502002-05-21 Richard Henderson <rth@redhat.com>
4051
4052 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
4053 unspec names, not numbers.
4054
2870428f
JM
40552002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
4056
4057 * doc/sourcebuild.texi: Mention snapshot-README and
4058 snapshot-index.html as needing updating for new front ends.
4059
b0ad77d5
KG
40602002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4061
4062 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
4063 disabling checking, and avoid multiple evaluation of RTX.
4064
279be7c8
RE
40652002-05-21 Richard Earnshaw <rearnsha@arm.com>
4066
4067 * bitmap.c (bitmap_find_bit): Return early if we have the correct
4068 element cached.
4069
193a563a
JH
4070Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4071
4072 * profile.c (gen_edge_profiler): Set alias set before the memory is
4073 used.
4074
31825e57
DM
40752002-05-20 David S. Miller <davem@redhat.com>
4076
4077 * cselib.c (max_value_regs): New.
4078 (cselib_lookup, cselib_invalidate_regno): Initialize it when
4079 adding new entries to the REG_VALUES table and we are dealing with
4080 a hard register.
4081 (clear_table): Initialize it.
4082 (cselib_invalidate_regno): Use it to determine which hard
4083 registers to scan when mode is not VOIDmode.
4084
68bd6dd6 40852002-05-20 Duraid Madina <duraid@fl.net.au>
29d83d60
DM
4086
4087 * tradcpp.c (fixup_newlines): Use old-style function header.
4088
e0a09fda
KW
40892002-05-20 Krister Walfridsson <cato@df.lth.se>
4090
4091 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
4092
e0c13c70
L
40932002-05-20 H.J. Lu (hjl@gnu.org)
4094
4095 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
4096
4097 * config/mips/mips.h (DFMODE_NAN): Defined.
4098 (SFMODE_NAN): Likewise.
4099
4c11675d 41002002-05-20 Dale Johannesen <dalej@apple.com>
e0c13c70 4101
2a1dc0d8
ZW
4102 * combine.c (cant_combine_insn_p): Back out my
4103 previous patch.
4c11675d 4104
6a4d6760
KH
41052002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4106
4107 * params.c: Fix formatting.
4108 * params.h: Likewise.
4109 * predict.c: Likewise.
4110 * prefix.c: Likewise.
4111 * print-rtl.c: Likewise.
4112 * print-tree.c: Likewise.
4113 * profile.c: Likewise.
4114
5715ca64
L
41152002-05-20 H.J. Lu (hjl@gnu.org)
4116
4117 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
4118
00b89f01
NC
41192002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
4120
4121 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
4122 switches straight on to the assembler, do not abbreviate them.
4123 * config/arm/elf.h (ASM_SPEC): As above.
4124 * config/arm/semi.h (ASM_SPEC): As above.
4125 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
4126 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
4127 -mcpu=xscale on to the assembler by default.
4128 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
4129
1441374b
RH
41302002-05-20 Richard Henderson <rth@redhat.com>
4131
4132 * cse.c (canon_hash): Reorder do_not_record test. Always
4133 allow pic_offset_table_rtx.
4134
c0fe508e
TM
41352002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
4136
4137 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
4138 (expand_binop): Ditto (3 times).
4139
f362c762
MM
41402002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
4141
4142 * Makefile.in (distclean): Remove QMTest stuff.
4143 (QMTEST_PATH): New variable.
4144 (QMTESTFLAGS): Likewise.
4145 (QMTESTRUNFLAGS): Likewise.
4146 (QMTEST): Likewise.
4147 (QMTEST_GPP_TESTS): Likewise.
4148 (QMTEST_DIR): Likewise.
4149 (QMTEST_DIR/context): New target.
4150 (qmtest-g++): Likeise.
4151 (qmtest-gui): Likewise.
4152 (QMTEST_DIR/gpp-expected.qmr): Likewise.
4153
16861f33
AH
41542002-05-19 Aldy Hernandez <aldyh@redhat.com>
4155
2a1dc0d8
ZW
4156 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
4157 an altivec register if TARGET_ALTIVEC.
16861f33 4158
2a1dc0d8
ZW
4159 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
4160 to ALTIVEC_VECTOR_MODE.
4161 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
4162 (rs6000_va_arg): Vectors may go in registers if they are not
4163 altivec vectors.
16861f33 4164
23459e15
KH
41652002-05-19 Kazu Hirata <kazu@cs.umass.edu>
4166
4167 * protoize.c: Fix formatting.
4168
174cc7d1
RH
41692002-05-19 Richard Henderson <rth@redhat.com>
4170
4171 * gensupport.c (init_include_reader): Merge into ...
4172 (process_include): ... here. Simplify composite path creation.
4173 Plug memory leaks. Fix file/line number tracking. Do not
4174 process_define_cond_exec. Return void.
4175 (process_rtx): Don't check process_include return value.
4176
918ed612
ZD
41772002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4178
4179 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
4180 fields.
4181 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4182 traversing basic block chain.
4183 (create_basic_block_structure, create_basic_block): Declaration changed.
4184 (link_block, unlink_block): Declare.
4185 * cfg.c (entry_exit_blocks): Initialize new fields.
4186 (link_block, unlink_block): New.
4187 (expunge_block_nocompact): Unlink basic block.
4188 (dump_flow_info): Print prev_bb/next_bb fields.
4189 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
4190 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
4191 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
4192 * cfgrtl.c (create_basic_block_structure, create_basic_block,
4193 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
4194 (verify_flow_info): Check that list agrees with numbering.
4195
e0322d5c
NB
41962002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
4197
4198 * c-common.c (preprocessing_asm): New macro.
4199 * c-lex.h (builtin_define, builtin_assert): Use pfile.
4200doc:
4201 * tm.texi: Update.
4202config/alpha:
4203 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
4204 (CPP_SPEC): Simplify.
4205 (TARGET_CPU_CPP_BUILTINS): Update.
4206 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
4207 (CPP_SPEC): Simplify.
4208 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
4209 (TARGET_OS_CPP_BUILTINS): Update.
4210 * osf.h (CPP_XFLOAT_SPEC): Kill.
4211 (TARGET_OS_CPP_BUILTINS): Update.
4212 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
4213 * osf5.h (CPP_XFLOAT_SPEC): Kill.
4214 * vms.h (CPP_SUBTARGET_SPEC): Kill.
4215 (TARGET_OS_CPP_BUILTINS): Update.
4216
121f5c2c
RH
42172002-05-19 Richard Henderson <rth@redhat.com>
4218
4219 * varasm.c (default_binds_local_p): Fix typo.
4220
651c5ed9
MM
42212002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
4222
4223 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
4224 CONST_INT operand to the correct mode after adding 1 to it.
4225
bce0deb2
MM
42262002-05-19 Mark Mitchell <mark@codesourcery.com>
4227
4228 * config.gcc (powerpc-wrs-windiss*): New target.
4229
4aa74a4f
FS
42302002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4231
4232 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
4233 (ashrdi3): Use it.
4234
a15135c9
MM
42352002-05-18 Mark Mitchell <mark@codesourcery.com>
4236
4237 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
4238 alphasort.
4239 * config.in: Regenerated.
4240 * configure: Regenerated.
4241
47754fd5
RH
42422002-05-19 Richard Henderson <rth@redhat.com>
4243
4244 * target-def.h (TARGET_BINDS_LOCAL_P): New.
4245 * target.h (struct gcc_target): Move boolean fields to the end.
4246 Add binds_local_p.
4247 * varasm.c (default_binds_local_p): New.
4248 * output.h: Declare it.
4249
4250 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
4251 * config/cris/cris.c (cris_encode_section_info): Likewise.
4252 * config/i386/i386.c (i386_encode_section_info): Likewise.
4253 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
4254 * config/sh/sh.c (sh_encode_section_info): Likewise.
4255
4256 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
4257 (TARGET_BINDS_LOCAL_P): New.
4258
fc881338
RH
42592002-05-19 Richard Henderson <rth@redhat.com>
4260
4261 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
4262 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
4263 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
4264
4265 * toplev.c (display_help): Kill -a -ax help.
4266
68bd6dd6 4267 * config/1750a/1750a.h, config/alpha/alpha.h,
fc881338
RH
4268 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
4269 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
4270 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
4271 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
4272
4273 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
4274 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
4275
4276 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
4277 (ix86_output_function_block_profiler): Kill.
4278 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
4279 (m68hc11_function_block_profiler): Kill.
4280 * config/m68hc11/m68hc11-protos.h: Update.
4281 * config/m88k/m88k.c (output_block_profiler): Kill.
4282 (output_function_block_profiler): Kill.
4283 * config/m88k/m88k-protos.h: Update.
4284
772c5265
RH
42852002-05-19 Richard Henderson <rth@redhat.com>
4286
4287 * system.h (STRIP_NAME_ENCODING): Poison it.
4288 * output.h (STRIP_NAME_ENCODING): Remove.
4289 (default_strip_name_encoding): Declare.
4290 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
4291 * target.h (strip_name_encoding): New.
4292 * varasm.c (default_strip_name_encoding): New.
4293
4294 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
4295 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
4296 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
4297 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
4298 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
4299 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
4300 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
4301 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
4302 config/v850/v850.h: Use the hook, not the macro.
4303
4304 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4305 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
4306 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
4307 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
4308 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
4309 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
68bd6dd6 4310 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
772c5265
RH
4311 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
4312 config/v850/v850.c, config/v850/v850.h:
4313 Move STRIP_NAME_ENCODING to out-of-line function and add
4314 TARGET_STRIP_NAME_ENCODING.
4315
4316 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
4317 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
4318 with TARGET_STRIP_NAME_ENCODING referencing existing function;
4319 make function static.
4320
4321 * xcoffout.c: Include target.h
4322 * Makefile.in (xcoffout.o): Update.
4323
4324 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
4325 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
4326 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
4327 reloc argument unused.
4328 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
4329
4330 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
4331 STRIP_NAME_ENCODING docs.
4332
8f9eb495
AJ
43332002-05-19 Andreas Jaeger <aj@suse.de>
4334
4335 * gengenrtl.c: Add prototype for excluded_rtx.
4336
4337 * real.h: Add prototype for exact_real_truncate.
4338
fb49053f
RH
43392002-05-18 Richard Henderson <rth@redhat.com>
4340
4341 * system.h (ENCODE_SECTION_INFO): Poison it.
4342 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
4343 * target.h (encode_section_info): New.
4344 * varasm.c (make_decl_rtl, output_constant_def): Use it.
4345 * hooks.c (hook_tree_int_void): New.
4346 * hooks.h: Declare it.
4347
4348 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4349 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
4350 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
4351 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
4352 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
4353 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
4354 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4355 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
4356 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4357 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4358 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
4359 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
4360 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
4361 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
4362 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
4363 referencing existing function. Make function static.
4364
4365 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8f9eb495 4366 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
fb49053f
RH
4367 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4368 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
4369 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8f9eb495 4370 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
fb49053f
RH
4371 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
4372 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
4373 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
4374 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8f9eb495 4375 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
fb49053f
RH
4376 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
4377 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
4378 Move ENCODE_SECTION_INFO to out-of-line function and add
4379 TARGET_ENCODE_SECTION_INFO.
4380
4381 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
4382 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4383
4384 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
4385 from SUBTARGET_*
4386 (switch_to_section): Replace in_rdata case with in_readonly_data.
4387
4388 * config/h8300/h8300.c (h8300_encode_label): Make static.
4389 * config/h8300/h8300-protos.h: Update.
4390
4391 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
4392 from rs6000_encode_section_info; make static.
4393 (rs6000_xcoff_encode_section_info): New.
4394
4395 * config/v850/v850.c (v850_encode_data_area): Make static.
4396 * config/v850/v850-protos.h: Update.
4397
4398 * config/vax/vax.c: Include flags.h.
4399 (vms_select_section): Fix typo.
4400
4401 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
4402 ENCODE_SECTION_INFO docs.
4403
9fe08fd0
RH
44042002-05-18 Richard Henderson <rth@redhat.com>
4405
4406 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
4407 REGISTER_TARGET_PRAGMAS.
4408 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
4409
410b770f
RH
4410 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
4411
b64a1b53
RH
44122002-05-18 Richard Henderson <rth@redhat.com>
4413
4414 * system.h (SELECT_RTX_SECTION): Poison.
4415 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4416 * target.h (select_rtx_section): New.
4417 * varasm.c (output_constant_pool): Use it.
4418 (default_select_rtx_section, default_elf_select_rtx_section): New.
4419 * output.h: Declare them.
4420
4421 * config/darwin.h (SELECT_RTX_SECTION): Move ...
4422 * config/darwin.c (machopic_select_rtx_section): ... here.
4423 * config/darwin-protos.h: Update.
4424
4425 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4426 * config/nextstep.c (machopic_select_rtx_section): ... here.
4427 (nextstep_select_section): Rename variable to avoid macro clash.
4428 * config/nextstep-protos.h: Update.
4429
4430 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4431 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4432 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8f9eb495 4433 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
b64a1b53
RH
4434 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4435 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8f9eb495 4436 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
b64a1b53
RH
4437 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4438 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4439 (SELECT_RTX_SECTION): Remove.
4440
4441 * config/darwin.h, config/elfos.h, config/nextstep.h,
4442 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4443 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4444 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4445 config/sparc/lynx.h, config/xtensa/xtensa.c
4446 (TARGET_ASM_SELECT_RTX_SECTION): New.
4447
4448 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4449 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4450 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4451 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4452 (ia64_aix_select_rtx_section): New.
4453 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4454 redefining.
4455 * config/mips/mips.c (mips_select_rtx_section): Make static.
8f9eb495 4456 Support ELF SHF_MERGE features.
b64a1b53
RH
4457 * config/mips/mips-protos.h: Update.
4458 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
4459 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
4460 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
4461 make static, fall back to default_elf_select_rtx_section.
4462 * config/rs6000/rs6000-protos.h: Update.
4463 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
4464 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
4465 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
4466 * config/romp/romp.c (romp_select_rtx_section): New.
4467 * config/s390/s390.c (s390_select_rtx_section): New.
4468 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
4469 declarations before target macro definition.
4470 (xtensa_emit_call): Use static buffer.
4471 (xtensa_select_rtx_section): New.
4472 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
4473 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
4474 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
4475
4476 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
4477 SELECT_RTX_SECTION docs.
4478
4479Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5f90a099
JH
4480
4481 * i386.md (movsi/movdi): Fix template.
4482 (sse2 patterns): Set attributes consistently.
4483
4484 * i386.md (pushqi2, ashrqi_*): Fix constraint.
4485
6835a09c
TM
44862002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
4487
4488 * optabs.c (complex_part_zero_p): New.
4489 * (expand_cmplxdiv_straight): Use it.
4490 * (expand_cmplxdiv_wide): Ditto.
4491 * (expand_binop): Ditto.
4492
d48bc59a
RH
44932002-05-18 Richard Henderson <rth@redhat.com>
4494
4495 * final.c (HAVE_READONLY_DATA_SECTION): New.
4496 (shorten_branches): Use it instead of ifdefs.
4497 * varasm.c (enum in_section): Add in_readonly_data.
4498 (text_section, data_section): Tidy.
4499 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
4500
4501 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
4502 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
4503 (READONLY_DATA_SECTION): Don't undef.
4504
4505 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
4506 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
4507 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
4508
4509 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
4510 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
4511 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
4512 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
4513
4514 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
4515 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
4516 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4517 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
4518 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
4519 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
4520 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
4521 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
4522 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
4523
4524 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
4525 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
4526 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
4527 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
4528 config/pa/pa64-hpux.h, config/sparc/litecoff.h
4529 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4530
4531 * config/elfos.h, config/netware.h, config/svr3.h,
4532 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4533 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4534 config/h8300/h8300.h, config/i386/i386-interix.h,
4535 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4536 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
4537
4538 * config/elfos.h, config/netware.h, config/svr3.h,
4539 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4540 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
4541 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4542 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
4543
4544 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
4545 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
4546 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
4547 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
4548 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
4549 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
4550 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
4551 config/rs6000/sysv4.h, config/v850/v850.h
4552 (EXTRA_SECTIONS): Remove in_const/in_rdata.
4553 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
4554
4555 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
4556 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
4557 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
4558 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
4559 * config/alpha/alpha.c (alpha_start_function): Likewise.
4560 (alpha_write_linkage): Likewise.
4561 * config/m32r/m32r.c (m32r_select_section): Likewise.
4562 * config/m88k/m88k.c (m88k_select_section): Likewise.
4563 * config/mips/mips.c (mips_select_rtx_section): Likewise.
4564 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
4565 (rs6000_elf_select_section): Likewise.
4566 * config/v850/v850.c (v850_select_section): Likewise.
4567
4568 * config/1750a/1750a.h, config/i860/sysv3.h
4569 (READONLY_DATA_SECTION_ASM_OP): New.
4570 READONLY_DATA_SECTION_ASM_OP.
4571 * config/i386/interix.c, config/i386/winnt.c
4572 (i386_pe_unique_section): Always use .rdata prefix.
4573 * config/pa/som.h (readonly_data): Always switch to read-only section.
4574 (READONLY_DATA_SECTION): Predicate on flag_pic.
4575 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
4576 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
4577 (READONLY_DATA_SECTION): Update.
4578
e964a556
JT
45792002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
4580
4581 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8f9eb495 4582 is used without -Wformat.
e964a556
JT
4583 * c-common.h (warn_format_zero_length): Declare extern.
4584 * c-decl.c (warn_options): Add "format-zero-length".
4585 * c-format.c (warn_format_zero_length): Declare.
4586 (set_Wformat): Set warn_format_zero_length for -Wformat.
4587 (check_format_info): Only warn about zero-length formats if
4588 warn_format_zero_length is true. Include the format type
4589 name in the warning message.
4590 * doc/invoke.texi: Document -Wformat-zero-length.
4591 * testsuite/gcc.dg/format/zero-length-1.c: New test.
4592
d92b4486
KH
45932002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4594
4595 * timevar.c: Fix formatting.
4596 * tlink.c: Likewise.
4597 * toplev.c: Likewise.
4598 * tree-dump.c: Likewise.
4599 * tree-inline.c: Likewise.
4600
43612ffb
NB
46012002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4602
4603 * cppinit.c (cpp_post_options): If preprocessed, turn off
4604 traditional. If traditional, turn off column numbers.
4605 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
4606 * cpptrad.c (handle_newline): Update line_base.
4607 (skip_comment): Handle -Wcomment.
4608
f24a153a
ZW
46092002-05-17 Zack Weinberg <zack@codesourcery.com>
4610
4611 * cppinit.c (struct builtin): Remove unused fields.
4612 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
4613 (operator_array): New - was second half of builtin_array.
4614 (init_builtins): Simplify loop over builtin_array/operator_array.
4615
12403335
NB
46162002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4617
4618 * defaults.h (UNIQUE_SECTION): Remove.
4619 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
4620
1f8c3c5b
RH
46212002-05-17 Richard Henderson <rth@redhat.com>
4622
4623 * expr.c (init_expr_once): Don't use start/end_sequence.
4624 Use rtx_alloc instead of emit_insn.
4625 * toplev.c (lang_dependent_init): Run init_expr_once here ...
4626 (lang_independent_init): ... not here.
4627
4664f4c4
JT
46282002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4629
4630 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
4631
93febe68
MM
46322002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
4633
4634 * config/avr/avr.c (avr_regs_to_save): New function. Also check
4635 for fixed registers, possibly used for global register variables.
4636 (initial_elimination_offset, avr_output_function_prologue,
4637 avr_output_function_epilogue): Move common code to avr_regs_to_save.
4638
004cb263
NB
46392002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4640
4641 * Makefile.in: Update for cpptrad.c.
4642 * cpphash.h (struct cpp_buffer): New members for buffer
4643 overlays.
4644 (struct cpp_reader): New members for traditional output.
4645 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
4646 * cppinit.c (cpp_create_reader): Set trad_line.
4647 (cpp_destroy): Free trad_out_base if used.
4648 (cpp_read_main_file): Overlay an empty buffer if traditional.
4649 (cpp_finish_options): Don't do builtins.
4650 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
4651 (cpp_handle_option): Handle it.
4652 * cpplex.c (continue_after_nul): New.
4653 (_cpp_lex_direct): Use handle_nul.
4654 * cpplib.h (struct cpp_options): New traditional option.
4655 * cpptrad.c: New file.
4656
bdcae02b
NB
46572002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4658
4659 * c-common.c (c_common_init_options): Use C89 for Objective-C,
4660 and set the options flag.
4661 * cppinit.c (lang_flags): Remove objc.
4662 (lang_defaults): Remove OBJC and OBJCXX.
4663 (set_lang): Update.
4664 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
4665 (cpp_handle_option): Remove -+ and -lang-objc++.
4666 For ObjC, just set a flag.
4667 (print_help): Update.
4668 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
4669
0fca60ab
RO
46702002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4671
4672 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
4673 bootstrap with -mips3.
4674
dd3f0101
KH
46752002-05-17 Kazu Hirata <kazu@cs.umass.edu>
4676
4677 * final.c: Fix formatting.
4678 * fix-header.c: Likewise.
4679 * flow.c: Likewise.
4680 * fold-const.c: Likewise.
4681 * function.c: Likewise.
4682
5ca9299f
DM
46832002-05-17 David S. Miller <davem@redhat.com>
4684
4685 PR c/6689, PR optimization/6615
4686 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
4687 and make it a pointer to rtx. Update comments.
4688 (update_equiv_regs): When scanning for equivalences, record
4689 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
4690 it while making the equiv replacements.
4691
508bc172
RO
46922002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4693
4694 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
4695
5cd983a6
KK
46962002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
4697
4698 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
4699 when encoding visibility into SYMBOL_REF_FLAG.
4700
ce0f3925
RS
47012002-05-17 Richard Sandiford <rsandifo@redhat.com>
4702
4703 * expr.c (force_operand): Fix reversed move.
4704
06809951
GP
47052002-05-17 Kurt Wall <kwall@kurtwerks.com>
4706
4707 * doc/install.texi (Testing): Mention two common DejaGnu warnings
4708 that can be ignored.
4709
47102002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4711
4712 * doc/install.texi (Final install): Recommend to install into a
4713 "clean" target directory.
4714
1d5d7a21
RH
47152002-05-17 Richard Henderson <rth@redhat.com>
4716
4717 * config/ia64/ia64.md: Use braced strings instead of quoted strings
4718 for code blocks. Tidy whitespace.
4719
ae46c4e0
RH
47202002-05-17 Richard Henderson <rth@redhat.com>
4721
4722 * hooks.c (hook_tree_bool_false): New.
4723 * hooks.h: Declare it.
4724 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
4725 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
4726 * target.h (select_section, unique_section): New.
4727 (in_small_data_p): New.
4728 * varasm.c (resolve_unique_section): Use hooks instead of macros.
4729 (variable_section, output_constant_def_contents): Likewise.
4730 (default_select_section, default_unique_section): New.
4731 (categorize_decl_for_section, default_elf_select_section): New.
4732 * output.h: Declare them.
4733
4734 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
4735 (TARGET_ASM_SELECT_SECTION): New.
4736 (SELECT_SECTION): Move ...
4737 * config/darwin.c (machopic_select_section): ... here.
4738 * config/darwin-protos.h: Update.
4739
4740 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
4741 (SELECT_SECTION): Move ...
4742 * config/nextstep.c (nextstep_select_section): ... here.
4743 * config/nextstep-protos.h: Update.
4744
4745 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
4746 (TARGET_ASM_SELECT_SECTION): New.
4747 * config/svr3.h (SELECT_SECTION): Remove.
4748
4749 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
4750 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
4751 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
4752 (alpha_encode_section_info): Use it.
4753 * config/alpha/alpha-protos.h: Update.
4754 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
4755 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4756 (TARGET_ASM_SELECT_SECTION): New.
4757 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
4758
4759 * config/arm/pe.h (UNIQUE_SECTION): Remove.
4760 (TARGET_ASM_UNIQUE_SECTION): New.
4761
4762 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
4763 (avr_unique_section): Rename from unique_section; make static.
4764 * config/avr/avr-protos.h: Update.
4765 * config/avr/avr.h (UNIQUE_SECTION): Remove.
4766
4767 * config/c4x/c4x.h (SELECT_SECTION): Remove.
4768
4769 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
4770 (TARGET_ASM_UNIQUE_SECTION): New.
4771 * config/i386/i386-interix.h: Likewise.
4772 * config/i386/win32.h: Likewise.
4773 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
4774 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
4775 * config/i386/sco5.h (SELECT_SECTION): Remove.
4776 (TARGET_ASM_SELECT_SECTION): New.
4777 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
4778
4779 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
4780 instead of SELECT_SECTION.
4781 * config/m68k/dpx2.h: Likewise.
4782 * config/rs6000/lynx.h: Likewise.
4783
4784 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4785 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4786 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
4787 (ia64_in_small_data_p): New.
4788 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
4789 (ia64_aix_select_section, ia64_aix_unique_section): New.
4790 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
4791 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4792
4793 * config/m32r/m32r.h (SELECT_SECTION): Remove.
4794 (TARGET_ASM_SELECT_SECTION): New.
4795 * config/m32r/m32r.c (m32r_select_section): Take align argument.
4796 * config/m32r/m32r-protos.h: Update.
4797
4798 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
4799 (SELECT_SECTION): Move ...
4800 * config/m88k/m88k.c (m88k_select_section): ... here.
4801
4802 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
4803 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
4804 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
4805 (mcore_unique_section): Make static.
4806 * config/mcore/mcore-protos.h: Update.
4807
4808 * config/mips/elf.h (UNIQUE_SECTION): Remove.
4809 (TARGET_ASM_UNIQUE_SECTION): New.
4810 * config/mips/elf64.h: Likewise.
4811 * config/mips/iris6gld.h: Likewise.
4812 * config/mips/linux.h: Likewise.
4813 * config/mips/mips-protos.h: Update.
4814 * config/mips/mips.c (mips_select_section): Add align argument.
4815 * config/mips/mips.h (SELECT_SECTION): Remove.
4816 (TARGET_ASM_SELECT_SECTION): New.
4817
4818 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4819 * config/mmix/mmix.c (mmix_select_section): Remove.
4820 (mmix_unique_section): Remove.
4821 * config/mmix/mmix-protos.h: Update.
4822
4823 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
4824 (SELECT_SECTION): Move ...
4825 * config/pa/pa.c (pa_select_section): ... here.
4826 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
4827
4828 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
4829 from rs6000_select_section and make static.
4830 (rs6000_elf_unique_section): Similarly.
4831 (rs6000_xcoff_select_section): From xcoff.h.
4832 (rs6000_xcoff_unique_section): Likewise.
4833 * config/rs6000/rs6000-protos.h: Update.
4834 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4835 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4836 * config/rs6000/xcoff.h: Likewise.
4837
4838 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
4839 (SELECT_SECTION): Move ...
4840 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
4841
4842 * config/v850/v850.h (SELECT_SECTION): Move ...
4843 * config/v850/v850.c (v850_select_section): ... here.
4844 (TARGET_ASM_SELECT_SECTION): New.
4845
4846 * config/vax/vms.h (SELECT_SECTION): Move ...
4847 * config/vax/vax.c (vms_select_section): ... here.
4848 (TARGET_ASM_SELECT_SECTION): New.
4849
4850 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
4851 for the target hooks.
4852
eaeb23a7
NC
48532002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
4854
4855 * config/arm/arm.c (emit_multi_reg_push): Do not set
4856 RTX_FRAME_RELATED_P on the SEQUENCE.
4857
a00fe19f
RH
48582002-05-16 Richard Henderson <rth@redhat.com>
4859
4860 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
4861 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
4862
5ccff482
RH
48632002-05-16 Richard Henderson <rth@redhat.com>
4864
4865 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4866
068d7739
RH
4867 * config/ia64/ia64.c (saveable_obstack): Do not declare.
4868
0b17ab2f
RH
48692002-05-16 Richard Henderson <rth@redhat.com>
4870
4871 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
4872 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
4873 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
4874 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
4875 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
4876 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
4877 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
4878 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
4879 Revert "Basic block renumbering removal", and two followup patches.
4880
8ae86b3c
JT
48812002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4882
4883 * lcm.c (optimize_mode_switching): Revert previous change.
4884
4e9f27af
ZD
48852002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4886
4887 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4888 with only extant block numbers.
4889
3cdc1dbc
JT
48902002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4891
4892 * lcm.c (optimize_mode_switching): Fix typo.
4893
fbfb3b09
ZD
48942002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4895
4896 * flow.c (calculate_global_regs_live): Queue blocks in program order.
4897
b4b0fb02
RO
48982002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4899
4900 * doc/install.texi (Configuration): Document PWDCMD.
4901
63b827c5
DJ
49022002-05-16 Dale Johannesen <dalej@apple.com>
4903
4904 * combine.c (cant_combine_insn_p): Reenable combinations
4905 involving hard regs unless CLASS_LIKELY_SPILLED_P.
4906
748d29c1
NB
49072002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4908
4909 * c-common.c (cb_register_builtins): Handle more built-ins
4910 here rather than in gcc.c specs.
4911 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
4912 (cpp_options): Pass -O flags even when only preprocessing.
4913 * toplev.c (set_fast_math_flags): New prototype.
4914 (fast_math_flags_set_p): New.
4915 (set_no_fast_math_flags): Remove.
4916 (decode_f_option): Update.
4917 * toplev.h (set_fast_math_flags): Update.
4918 (fast_math_flags_set_p): New.
4919 (set_no_fast_math_flags): Remove.
4920config:
4921 * c4x/c4x.c (c4x_override_options): Update.
4922
5279d739
ZW
49232002-05-16 Zack Weinberg <zack@codesourcery.com>
4924
4925 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
4926 Default-define here.
4927 (builtin_define_with_value): Can now wrap the expansion in
4928 quotation marks if such is wanted.
a00fe19f 4929 (cb_register_builtins): Update calls to builtin_define_with_value.
5279d739
ZW
4930 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
4931 here.
4932 (c_common_init): Set options->stdc_0_in_system_headers.
4933 * c-lex.h: Update prototype of builtin_define_with_value.
4934 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
4935 and REGISTER_PREFIX.
4936
4937 * cppinit.c (VERS, ULP, C, X): Kill.
4938 (builtin_array): Remove entries for __VERSION__,
4939 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
4940 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
4941 a constant.
4942 (init_builtins): Kill off a bunch of now-dead code.
4943 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
4944 -fno-leading-underscore.
4945 (cpp_handle_option): Remove code to set user_label_prefix.
4946 (cpp_post_options): Likewise.
4947
4948 * cpplib.h (struct cpp_options): Remove user_label_prefix.
4949 (stdc_0_in_system_headers): New.
4950 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
4951 stdc_0_in_system_headers) too to decide the value of __STDC__.
4952
4953 * tradcpp.c (user_label_prefix): Kill.
a00fe19f 4954 (main): Remove code handling -f(no-)leading-underscore.
5279d739
ZW
4955 (initialize_builtins): Don't define __REGISTER_PREFIX__
4956 or __USER_LABEL_PREFIX__.
4957 (install_value): Wrap compound statement in dummy loop so the
4958 macro works properly in an if statement.
4959
4960
62e6ca55
JJ
49612002-05-16 Janis Johnson <janis187@us.ibm.com>
4962
4963 * loop.h (struct loop_info): Add member has_prefetch.
4964 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
4965 (prescan_loop): Initialize has_prefetch.
4966 (struct prefetch_info): Change prefetch_in_loop and
4967 prefetch_before_loop from bit fields to ints.
4968 (emit_prefetch_instructions): Several small fixes.
4969 (check_dbra_loop): Don't reverse loop that uses prefetch.
4970
1e6347d8
RO
49712002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4972
4973 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
4974 * configure.in: Likewise.
4975 * fixinc/check.tpl: Likewise.
4976 * fixinc/fixinc.dgux: Likewise.
4977 * fixinc/fixinc.svr4: Likewise.
4978 * fixinc/fixinc.winnt: Likewise.
4979 * fixinc/fixincl.sh: Likewise.
4980 * fixproto: Likewise.
4981 * configure: Regenerate.
4982
355e4ec4
ZD
49832002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4984
4985 Basic block renumbering removal:
4986 * basic_block.h (struct basic_block_def): Renamed index to sindex,
4987 added prev_bb and next_bb fields.
4988 (n_basic_blocks): Renamed to num_basic_blocks.
4989 (last_basic_block): New, index of last basic block.
4990 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4991 traversing basic block chain.
4992 (BLOCK_NUM): index -> sindex.
4993 (create_basic_block_structure, create_basic_block): Declaration changed.
4994 (debug_num2bb): Declare.
4995 (expunge_block_nocompact): Declaration removed.
4996 (link_block, unlink_block, compact_blocks): Declare.
4997 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
4998 * cfg.c (entry_exit_blocks): Initialize new fields.
4999 (clear_edges, alloc_block, expunge_block, cached_make_edge,
5000 redirect_edge_pred, dump_flow_info, dump_edge_info,
5001 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
5002 free_aux_for_edges): Modified.
5003 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
5004 (expunge_block_nocompact): Removed.
5005 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
5006 find_unreachable_blocks, create_edge_list, print_edge_list,
5007 verify_edge_list, flow_edge_list_print, remove_fake_successors,
5008 remove_fake_edges, flow_reverse_top_sort_order_compute,
5009 flow_depth_first_order_compute, flow_preorder_transversal_compute,
5010 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
5011 flow_dfs_compute_reverse_execute): Modified.
5012 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
5013 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
5014 Modified.
5015 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5016 merge_blocks_move_predecessor_nojumps,
5017 merge_blocks_move_successor_nojumps, merge_blocks,
5018 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
5019 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
5020 * cfglayout.c (skip_insns_after_block, label_for_bb,
5021 record_effective_endpoints, scope_to_insns_finalize,
5022 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
5023 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
5024 cfg_layout_duplicate_bb): Modified.
5025 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
5026 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5027 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
5028 flow_loops_find, flow_loop_outside_edge_p): Modified.
5029 * cfgrtl.c (create_basic_block_structure, create_basic_block,
5030 flow_delete_block, compute_bb_for_insn, split_block,
5031 try_redirect_by_replacing_jump, redirect_edge_and_branch,
5032 force_nonfallthru_and_redirect, tidy_fallthru_edge,
5033 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
5034 commit_edge_insertions, commit_edge_insertions_watch_calls,
5035 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5036 purge_all_dead_edges): Modified.
5037 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
5038 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5039 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
5040 Modified.
5041 * conflict.c (conflict_graph_compute): Modified.
5042 * df.c (FOR_ALL_BBS): Removed.
5043 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5044 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
5045 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
5046 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
5047 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5048 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
5049 * final.c (compute_alignments, final_scan_insn): Modified.
5050 * flow.c (verify_local_live_at_start, update_life_info,
5051 update_life_info_in_dirty_blocks, free_basic_block_vars,
5052 delete_noop_moves, calculate_global_regs_live,
5053 initialize_uninitialized_subregs, allocate_bb_life_data,
5054 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
5055 mark_used_reg, count_or_remove_death_notes): Modified.
5056 * function.c (thread_prologue_and_epilogue_insns): Modified.
5057 * gcse.c (struct null_pointer_info): Change typo of current_block
5058 to basic_block.
5059 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
5060 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
5061 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
5062 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
5063 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
5064 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
5065 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
5066 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
5067 pre_delete, one_pre_gcse_pass, compute_transpout,
5068 invalidate_nonnull_info, delete_null_pointer_checks_1,
5069 free_code_hoist_mem, compute_code_hoist_vbeinout,
5070 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5071 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
5072 compute_store_table, build_store_vectors, insert_insn_start_bb,
5073 insert_store, replace_store_insn, free_store_memory, store_motion):
5074 Modified.
5075 * global.c (global_alloc, global_conflicts, mark_elimination,
5076 build_insn_chain): Modified.
5077 * graph.c (print_rtl_graph_with_bb): Modified.
5078 * haifa-sched.c (sched_init): Modified.
5079 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5080 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
5081 if_convert): Modified.
5082 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
5083 compute_insert_delete, pre_edge_lcm, compute_available,
5084 compute_farthest, compute_nearerout, compute_rev_insert_delete,
5085 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
5086 Modified.
5087 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
5088 * loop.c (loop_dump_aux): Modified.
5089 * predict.c (combine_predictions_for_insn, estimate_probability,
5090 last_basic_block_p, process_note_prediction, process_note_predictions,
5091 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
5092 expensive_function_p, estimate_bb_frequencies,
5093 compute_function_frequency): Modified.
5094 * print-rtl.c (print_rtx): Modified.
5095 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
5096 get_exec_counts, compute_branch_probabilities, compute_checksum,
5097 branch_prob, find_spanning_tree): Modified.
5098 * recog.c (split_all_insns, peephole2_optimize): Modified.
5099 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
5100 convert_regs_1, convert_regs_2, convert_regs): Modified.
5101 * regclass.c (scan_one_insn, regclass): Modified.
5102 * regmove.c (mark_flags_life_zones, regmove_optimize,
5103 combine_stack_adjustments): Modified.
5104 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
5105 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
5106 * reorg.c (dbr_schedule): Modified.
5107 * resource.c (find_basic_block, init_resource_info): Modified.
5108 * sbitmap.c (sbitmap_intersection_of_succs,
5109 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
5110 sbitmap_union_of_preds): Modified.
5111 * sched-deps.c (init_dependency_caches): Modified.
5112 * sched-ebb.c (schedule_ebbs): Modified.
5113 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
5114 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
5115 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
5116 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
5117 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
5118 ssa_const_prop): Modified.
5119 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
5120 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
5121 * ssa.c (remove_phi_alternative, find_evaluations,
5122 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
5123 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
5124 make_regs_equivalent_over_bad_edges,
5125 make_equivalent_phi_alternatives_equival,
5126 compute_conservative_reg_partition,
5127 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
5128 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
5129 Modified.
5130
5a566bed
MM
51312002-05-16 Mark Mitchell <mark@codesourcery.com>
5132
5133 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
5134
48f6efae
NC
51352002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
5136
5137 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
5138 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5139 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
5140 calling CONSTANT_POOL_ADDRESS_P.
5141 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
5142 to decide whether to define __arm__ or __thumb.
355e4ec4 5143 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
48f6efae
NC
5144 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5145
b166fadd
NB
51462002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5147
5148 * config/arc/arc.h (CPP_PREDEFINES): Remove.
5149 (CPP_SPEC): Update.
5150 (TARGET_CPU_CPP_BUILTINS): New.
5151
601328bb
NB
51522002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5153
5154 * cpphash.h (cpp_macro): Move here, and make expansion a union.
5155 * cppmacro.c (cpp_macro): Remove.
5156 (enter_macro_context, replace_args, warn_of_redefinition,
5157 _cpp_create_definition, cpp_macro_definition): Update.
5158
ff48be5c
JM
51592002-05-16 Jason Merrill <jason@redhat.com>
5160
5161 * config/mips/mips.c (mips_output_external): Don't do sdata
5162 optimization for a variable with DECL_COMDAT set.
5163
805c42ba
AH
51642002-05-15 Aldy Hernandez <aldyh@redhat.com>
5165
355e4ec4
ZD
5166 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
5167 Cleanups for accepting modifiers on pointers.
5168 Fix predicate typos.
5169 Allow long pointers as well as int pointers.
805c42ba 5170
34fb9ba5
RH
51712002-05-15 Richard Henderson <rth@redhat.com>
5172
5173 * varasm.c (merge_weak): Remove special case for extern and common.
5174
62e118f5
MH
51752002-05-15 Matt Hiller <hiller@redhat.com>
5176
5177 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
355e4ec4 5178 XFAILing.
62e118f5
MH
5179 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
5180 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
5181 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
5182 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
5183 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
5184 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
5185
fefac463
AH
51862002-05-15 Aldy Hernandez <aldyh@redhat.com>
5187
355e4ec4 5188 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
fefac463 5189
5f004351
AH
51902002-05-15 Aldy Hernandez <aldyh@redhat.com>
5191
355e4ec4
ZD
5192 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
5193 ("altivec_mfvscr"): Read from VSCR.
5194
5195 Add vscr sets for the following insns: altivec_vctuxs,
5196 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
5197 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
5198 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
5199 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
5200 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
5201 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
5202 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
5203 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
5204 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
5205 altivec_vsum2sws, altivec_vsumsws.
5206
5207 * config/rs6000/rs6000.h: Add VSCR fixed register.
5208 (CALL_REALLY_USED_REGISTERS): Add vscr.
5209 (CALL_USED_REGISTERS): Same.
5210 (FIXED_REGISTERS): Same.
5211 (REG_ALLOC_ORDER): Same.
5212 (reg_class): Add VSCR_REGS.
5213 (REG_CLASS_NAMES): Same.
5214 (REG_CLASS_CONTENTS): Same.
5215 (VSCR_REGNO): New.
5216 (REGISTER_NAMES): Add vscr.
5217 (DEBUG_REGISTER_NAMES): Same.
5218 (ADDITIONAL_REGISTER_NAMES): Same.
5219 (FIRST_PSEUDO_REGISTER): Increment.
5220 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5f004351 5221
033afd11
RH
52222002-05-15 Jakub Jelinek <jakub@redhat.com>
5223
5224 * fold-const.c (fold): Fix a typo.
5225
52262002-05-15 Eric Botcazou <ebotcazou@multimania.com>
5227
5228 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
5229 comparison against the highest or lowest integer value before
5230 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
5231 transformation and that of an unsigned comparison against 0
5232 right after.
5233
14285ace
RH
52342002-05-15 Richard Henderson <rth@redhat.com>
5235
5236 * varasm.c (merge_weak): Error for any weakening after definition.
5237 Adjust weakening after use warning to catch more cases.
5238 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
5239 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
5240
194734e9
JH
5241Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
5242
5243 * invoke.texi (-malign-double): Re-add lost warning.
5244
5245 * i386-protos.h (x86_output_mi_thunk): Declare.
5246 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
5247 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
5248
5249 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
5250 when flag_asynchronous_unwind_tables is set.
5251
5252 * flags.h (flag_reorder_functions): Declare.
5253 * function.c (prepare_function_start): Initialize frequnecy.
14285ace 5254 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
194734e9
JH
5255 * Makefile.in (predict.o): Add dependency on target.h and params.h
5256 * defaults.h (HOT_TEXT_SECTION_NAME,
5257 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
5258 * predict.c (choose_function_section): New function.
5259 (estimate_bb_frequencies): Use it.
5260 * toplev.c (flag_reorder_functions): New global variable.
5261 (lang_independent_options): New.
5262 (parse_options_and_default_flags): Set.
5263 * varasm.c (assemble_start_function): Bypass functdion alignment
5264 for never executed functions.
5265 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
5266 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
5267 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
5268 Document.
5269
5270 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
5271
5272 * predict.c: Inlude profile.h
5273 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
5274 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
5275 Use the information about maximal counter in the program.
5276
5277 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
5278
5279 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
5280 probably_never_executed_bb_p): New functions.
5281 * cfgcleanup.c (outgoing_edges_match): Use them.
5282 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
5283 (maybe_hot_bb_p, probably_cold_bb_p,
5284 probably_never_executed_bb_p): New functions.
5285
5286 * function.h (function): Add new field function_frequency.
5287 * predict.c (compute_function_frequency): New function.
5288 (estimate_probability): Call it.
5289
61ad9a34
JJ
52902002-03-09 Jakub Jelinek <jakub@redhat.com>
5291
5292 PR optimization/5172, optimization/5200
5293 * gcse.c (gcse_main): Disable store_motion.
5294
a11eba95
ZW
52952002-05-14 Zack Weinberg <zack@codesourcery.com>
5296
5297 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
5298 (c_common_nodes_and_builtins): Use it.
5299 (builtin_define_with_value): New function.
5300 (cb_register_builtins): Define __SIZE_TYPE__,
5301 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
5302 using builtin_define_with_value. Use consistent notation when
5303 defining __GXX_WEAK__.
5304 (WCHAR_TYPE_SIZE): Don't redefine.
5305 (combine_strings): Don't use WCHAR_TYPE_SIZE.
5306
5307 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
5308 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
5309 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
5310 * tradcpp.c (initialize_builtins): Likewise.
5311 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
5312
5313 * c-lex.h (builtin_define_with_value): Prototype.
5314 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
5315 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
5316 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
5317
5318 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5319 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
5320 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
5321 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
5322 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
5323 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
5324 config/sparc/sol2-bi.h, config/sparc/sparc.h:
5325 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
5326 to __SIZE_TYPE__ etc from all spec strings. When this makes
5327 extra specs empty, delete them.
5328
1c31ecf6
JDA
53292002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
5330
5331 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
5332 for PA8000 or generating dwarf2 call frame information.
5333 (output_call): Remove DO_FRAME_NOTES check from return pointer
5334 optimization.
5335 (following_call): Return 0 when scheduling for PA8000 or generating
5336 dwarf2 call frame information. Revise comment.
5337
ac9cfada
NB
53382002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5339
5340config/alpha:
5341 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
5342 and __IEEE_FP_INEXACT as appropriate.
5343 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
5344 (CPP_SPEC): Remove ieee defines.
5345 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
5346
9b690711
RH
53472002-05-14 Richard Henderson <rth@redhat.com>
5348
5349 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
5350 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5351
e6471be6
NB
53522002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5353
e6471be6
NB
5354 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
5355 (CPP_SPEC): Update.
5356 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
5357 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
5358 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
5359 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
5360 (EXTRA_SPECS): Update.
5361 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5362 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
5363 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
5364 define TARGET_OS_CPP_BUILTINS if necessary.
5365
e5f5feea
NB
53662002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5367
5368 * gcc.c (cpp_options): Must pass -m* and -f* options
5369 to the front end even when only preprocessing.
5370 (cc1_options): Remove redundant -lang-c.
5371 * tradcpp.c (main): Ignore -m options.
5372objc:
5373 * lang-specs.h: Similarly.
5374
317638a8
VM
53752002-05-14 Vladimir Makarov <vmakarov@redhat.com>
5376
5377 * genautomata.c (transform_3): Add code for transformation
5378 `(A,B,...)+C -> A+C,B,...'.
5379
4d604303
JH
5380Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
5381
5382 * final.c (end_final): Do not output profile_arcs constructor, when
5383 no functions are instrumented.
5384
b18b06ed
JH
5385Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
5386
5387 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
5388
a12f97f0
GP
53892002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5390
5391 * doc/install.texi: Remove special markup originally required for
5392 HTML generation with texi2html.
5393
c1ae3eb4
AS
53942002-05-14 Andreas Schwab <schwab@suse.de>
5395
5396 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
5397 SELECT_SECTION.
5398 (UNIQUE_SECTION): Define to get small data correctly.
1b18fc2c
AS
5399
5400 * varasm.c (resolve_unique_section): Add third parameter
5401 flag_function_or_data_sections and use it instead of
5402 flag_function_sections.
5403 (assemble_start_function): Pass flag_function_sections.
5404 (asm_emit_uninitialised): Pass flag_data_sections.
5405 (assemble_variable): Likewise.
5406
8ee41eaf
RH
54072002-05-14 Richard Henderson <rth@redhat.com>
5408
5409 * config/i386/i386.md: Use define_constants for unspec numbers.
5410 * config/i386/i386.c: Likewise.
5411
e6471be6
NB
54122002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5413
5414 * doc/contrib.texi: Update my entry.
5415
c297b764
MM
54162002-05-13 Mark Mitchell <mark@codesourcery.com>
5417
5418 * fixinc/inclhack.def (winidss_valist): Limit applicability.
5419 * fixinc/fixincl.x: Regenerated.
5420 * fixinc/tests/base/math.h: Update.
5421 * fixinc/tests/base/testing.h: Likewise.
5422
0b42c8f8
ZW
54232002-05-13 Zack Weinberg <zack@codesourcery.com>
5424
5425 * genattr.c (gen_attr): Don't emit a comma after the last
5426 enumerator.
5427
546c093e
RH
54282002-05-13 Richard Henderson <rth@redhat.com>
5429
5430 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5431 by non-local gotos.
5432 * recog.c (peephole2_optimize): Likewise.
5433
85be8c2d
AP
54342002-05-13 Andris Pavenis <pavenis@lanet.lv>
5435
5436 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5437 input to O_BINARY.
5438
765b8f90
JL
54392002-05-13 Jeffrey A Law (law@redhat.com)
5440
fe4b3c79
JL
5441 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5442 Update prototype and callers.
5443 (propagate_one_insn): Stack pointer adjustments kill MEMs on
5444 the mem_set_list which reference the stack pointer, as do
5445 calls to constant functions as they may clobber outgoing
5446 argument space.
5447
16133d00
JL
5448 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5449
765b8f90
JL
5450 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5451 (ia32_multipass_dfa_lookahead): New function.
5452
63826d5b
NB
54532002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5454
5455 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5456 (translate_options): Remove 'V'.
5457 (process_command): Similarly.
5458doc:
5459 * invoke.texi: Remove documentation of 'V'.
5460
dcb41ced
UW
54612002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5462
5463 * config/s390/linux.h: Revert 2002-04-22 changes.
5464
8dfea428
SM
54652002-05-13 Scott Marks <SMarks@mobile-mind.com>
5466
5467 * config/fr30/fr30.md: Only allow splits of immediate loads
5468 if the destination is a register.
5469
12a41c22
NB
54702002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5471
5472 * Makefile.in (c-common.o, cppinit.o): Update.
5473 * c-common.c: Include except.h.
5474 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
5475 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
5476 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
5477 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
5478 CPP_PREDEFINES): Handle here.
5479config:
5480 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
5481 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
5482 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
5483 TARGET_OS_CPP_BUILTINS.
5484 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
5485 (CPP_SPEC, EXTRA_SPECS): Update.
5486 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
5487 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
5488 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
5489 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
5490 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
5491doc:
5492 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
5493 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
5494
5692c7bc
ZW
54952002-05-12 Zack Weinberg <zack@codesourcery.com>
5496
5497 * emit-rtl.c (global_rtl): Update comment.
5498 (const_double_htab, const_double_htab_hash,
5499 const_double_htab_hash, lookup_const_double): New.
5500 (const_int_htab_hash, const_int_htab_eq): Remove const
5501 qualifiers, which cause tons of warnings with RTL checking on.
5502 (gen_rtx_CONST_DOUBLE): Deleted.
5503 (const_double_from_real_value): New function - bears some
5504 resemblance to the former immed_real_const_1.
5505 (immed_double_const): Moved here from varasm.c and
5506 simplified.
5507 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
5508 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
5509 (gen_rtx): Use immed_double_const.
5510 (init_emit_once): Initialize the const_double_htab. Use
5511 REAL_VALUE_FROM_INT where possible. Can now use
5512 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
5513 * varasm.c (struct varasm_status): Remove x_const_double_chain.
5514 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
5515 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
5516 (init_varasm_status, mark_varasm_status): Don't touch
5517 x_const_double_chain.
5518
5519 * output.h: Delete prototype for clear_const_double_mem.
5520 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
5521 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
5522 const_double_from_real_value, not immed_real_const_1, and use
5523 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
5524 CONST_DOUBLE_ATOF.
5525 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
5526 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
5527 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
5528 (gen_rtx_REG): Second arg is unsigned.
5529
5530 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
5531 (excluded_rtx): New, return true for CONST_DOUBLE.
5532 (genmacro): Write nothing for excluded codes.
5533 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
5534 * expr.c (expand_expr): Likewise.
5535 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
5536 CONST_DOUBLE_CHAIN.
5537 * toplev.c (rest_of_compilation): Don't call
5538 clear_const_double_mem.
5539
5540 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
5541 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
5542 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
5543 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
5544 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
5545 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
5546 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
5547 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
5548
31397a7b
KG
55492002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5550
5551 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
5552
1b70d38a
TT
55532002-05-12 Tom Tromey <tromey@redhat.com>
5554
5555 * tree.h (copy_node): Don't mention TREE_PERMANENT.
5556
9a5834ae
ZW
55572002-05-12 Zack Weinberg <zack@codesourcery.com>
5558
5559 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
5560 (scan_comma_elt): New function. Accepts whitespace in comma lists.
5561 * gensupport.h: Prototype new routines.
5562 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
5563 use of printf.
5564 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
5565 (next_comma_elt): Use scan_comma_elt.
5566
5567 * config/i386/i386.md: Use new attribute notation to break up
5568 long lines in define_attr forms.
5569
51286de6
RH
55702002-05-12 Richard Henderson <rth@redhat.com>
5571
5572 * expr.c (compress_float_constant): New.
5573 (emit_move_insn): Use it.
5574 (float_extend_from_mem): New.
5575 (init_expr_once): Initialize it.
5576 * real.c (exact_real_truncate): New.
5577
5578 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
5579 dropped into memory; penalize for size.
5580 (RTX_COSTS): FLOAT_EXTEND is free.
5581 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
5582 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
5583
6412341e
RH
55842002-05-12 Richard Henderson <rth@redhat.com>
5585
5586 * profile.h (profile_info): Add missing extern to declaration.
5587 * profile.c (profile_info): Define it.
5588
12877f09
JDA
55892002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5590
5591 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
5592 used for DImode and TImode.
5593
387f9e32
NB
55942002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
5595
5596 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
5597 fake a newline.
5598
e1a0f69c
ZW
55992002-05-11 Zack Weinberg <zack@codesourcery.com>
5600
5601 * config/rs6000/rs6000.c (rs6000_default_long_calls,
5602 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5603 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
5604 (rs6000_override_options): Handle -m(no-)longcall.
5605 (init_cumulative_args, output_mi_thunk): Check for both
5606 longcall and shortcall attributes on the function.
5607 (rs6000_attribute_table): Add "shortcall".
5608 (rs6000_handle_longcall_attribute): Update comment.
5609 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
5610 altivec_expand_ternop_builtin): Add default clauses to switches
5611 to silence warnings.
5612
5613 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
5614 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
5615 (TARGET_OPTIONS): Add longcall and no-longcall.
5616
5617 * config/rs6000/rs6000.md (call_nonlocal_sysv,
5618 call_value_nonlocal_sysv): Split by alternatives. One pair
5619 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
5620 the call cookie. The other pair accepts only LR/CTR and has
5621 no restriction.
5622
5623 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
5624 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
5625 tmake_file.
5626 * config/rs6000/rs6000-c.c: New file.
5627 * config/rs6000/t-rs6000-c-rule: New file.
5628 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
5629 Prototype rs6000_pragma_longcall.
5630
5631 * doc/extend.texi: Document shortcall attribute.
5632 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
5633
9c64026d
JDA
56342002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5635
5636 * reorg.c (dbr_schedule): Remove unnecessary test.
5637
6c81a490
JH
5638Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5639
5640 * i386.md (testsi to testqi spliters): New.
5641
5642 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
5643
5644 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
5645
5646 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
5647
5648 * basic-block.h: New flag EDGE_CAN_FALLTHRU
5649 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
5650 that can be made fallthru.
5651
5652 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
5653
5654 * cfglayout.c (cleanup_unconditional_jumps): New static function.
5655 (cfg_layout_initialize): Use it.
4c476cf3 5656
e4447d94
MM
56572002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
5658
5659 * config/avr/avr.c (avr_mcu_types): Update supported devices.
5660 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5661 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5662
3a538a66
KH
56632002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5664
5665 * dbxout.c: Fix formatting.
5666 * dependence.c: Likewise.
5667 * df.c: Likewise.
5668 * diagnostic.c: Likewise.
5669 * doloop.c: Likewise.
5670 * dominance.c: Likewise.
5671 * doschk.c: Likewise.
5672 * dwarf2asm.c: Likewise.
5673 * dwarf2out.c: Likewise.
5674 * dwarfout.c: Likewise.
5675
2292e8fc
RH
56762002-05-10 Richard Henderson <rth@redhat.com>
5677
5678 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
5679 Convert integers constants as needed. Replace "nwords" field with
5680 "sizeof_bb".
5681 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
5682 * function.h: Fix typo in comment.
5683 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
5684
dbfb1116
RS
56852002-05-10 Roger Sayle <roger@eyesopen.com>
5686
5687 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
5688 into the equivalent (signed char)c > 0.
5689
79a497cd
JJ
56902002-05-10 Janis Johnson <janis187@us.ibm.com>
5691
5692 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
5693 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
5694 (struct prefetch_info): Fix spelling of member bytes_accessed.
5695 (emit_prefetch_instructions): Make dump messages more regular;
5696 restructure code to add more dump messages; use new macros for
5697 heuristics. (There are no code generation changes in any of this).
5698
6c45cb0d
DM
56992002-05-10 David S. Miller <davem@redhat.com>
5700
7440af14
DM
5701 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
5702 (struct rtx_def): Update unchanging flag comment.
5703 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
5704 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
5705 to be handled to INSN too.
5706 (dbr_schedule): Likewise.
5707 * resource.c (next_insn_no_annul): Likewise.
5708
6c45cb0d
DM
5709 * cse.c (rtx_cost): Remove multiplication by power of 2 special
5710 casing.
5711
29f21e4f
GP
57122002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5713
5714 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
5715 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
5716 (possibly) work around broken /bin/sh.
5717
e4ba88da
RO
57182002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5719
5720 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
5721 . as N64/N32 libgcc_s.so subdirs.
5722
4f4778ee
DM
57232002-05-10 David S. Miller <davem@redhat.com>
5724
5725 * config/sparc/sparc.md: Use define_constants for unspec numbers.
cf40ea15
DM
5726
5727 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
5728 more accurately.
5729 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
5730 comment.
5731 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
5732 * doc/rtl.texi: Document these macros more accurately.
5733 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
5734 JUMP_INSNs and CALL_INSNs.
5735 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
5736 or INSN_FROM_TARGET_P if the code is appropriate.
5737
1a499b92
MM
57382002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
5739
5740 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
5741 before using SYMBOL_REF_FLAG (addr).
5742
5743 * config/avr/avr-protos.h (avr_io_address_p): Declare.
5744 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
5745 Make non-static. Update all callers.
5746 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
5747 New insns to clear/set/test a single bit in I/O address space.
5748
65212b66
KG
57492002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5750
5751 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
5752
3df89291
NB
57532002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5754
5755 * Makefile.in: Update.
5756 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
5757 builtin_define_std): New.
5758 (c_common_init): Register CPP builtins callback.
5759 * c-common.h (flag_iso, flag_undef): New.
5760 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
5761 * c-lex.c: Don't include target.h.
5762 (cb_register_builtins): Move to c-common.c.
5763 (init_c_lex): Don't register hook here.
5764 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
5765 (cpp_define, cpp_assert): Remove.
5766 * gcc.c (cc1_options): Pass -undef to front end.
5767 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
5768 (TARGET_INITIALIZER): Update.
5769 * target.h (struct cpp_reader): Don't predeclare.
5770 (struct gcc_target): Remove cpp builtin hook.
5771 * tree.c (default_register_cpp_builtins): Remove.
5772doc:
5773 * tm.texi: Update.
5774
32fa4565
NB
57752002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5776
5777 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
5778
23357c55
RO
57792002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5780
5781 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
5782 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
5783
5aa26af0
JJ
57842002-05-09 Jakub Jelinek <jakub@redhat.com>
5785
5786 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
5787 * config/sparc/libgcc-sparc-glibc.ver: New file.
5788 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5789 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
5790
2937267b
JJ
57912002-05-09 Jakub Jelinek <jakub@redhat.com>
5792
5793 PR target/6429
5794 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
5795 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
5796 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
5797 base multilibs.
5798 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
5799 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5800 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5801 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5802
086c0f96
RH
58032002-05-09 Richard Henderson <rth@redhat.com>
5804
5805 * config/ia64/ia64.md: Use define_constants for unspec numbers.
5806 * config/ia64/ia64.c: Likewise.
5807
a8b4881f
RS
58082002-05-09 Richard Sandiford <rsandifo@redhat.com>
5809
5810 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
5811 (save_restore_insns): Likewise.
5812 (mips_expand_prologue, mips_expand_epilogue): Update callers.
5813 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
5814
243e5500 5815Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
890d52e8 5816
af2728a4
JL
5817 * athlon.md, k6.md, pentium.md, ppro.md): New files.
5818 * i386.md: Move scheduling information into new files.
5819
890d52e8
JL
5820 * i386.md (type attribute): Add "rotate" for rotate insns.
5821 (rotate insns): Set type to "rotate".
5822 (various attributes and function units): Treat rotate like shift.
5823 (pent_pair attribute): Only rotates by one bit position are
5824 pairable.
5825 (sbb insns): Explicitly set pent_pair attribute on a couple
5826 that were missing it.
5827
f78ec36a
R
5828Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
5829
5830 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
5831 make sure that buffer starts on odd word address.
5832 (sh_va_arg): Skip odd fp registers when reading a double precision
5833 value.
5834
ff431459
NB
58352002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5836
5837 * tree.h (preserve_data, object_permanent_p, type_precision):
5838 Remove.
5839
c3bf3e6e
NB
58402002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5841
5842 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
5843 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
5844doc:
5845 * cpp.texi: Update for removal of obsolete features.
5846
02263a8a
JH
5847Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
5848 Jeffrey A Law (law@redhat.com)
5849
5850 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
5851 the DFA interface for Pentium processors.
5852 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
5853 (attr_pent_pair, ix86_pent_find_pair): Remove.
5854 (ix86_sched_reorder_pentium): Remove.
5855 (ix86_sched_reorder): Remove reordering for Pentium.
5856 * i386.md (Pentium scheduling): Rewrite using DFA description.
5857
3e638a90
JH
5858Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
5859
5860 * cfganal.c (can_fallthru): Fix fast path.
5861 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
5862 with edges to the next block.
5863
b7c9bf28
JH
5864Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
5865 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5866
5867 * final.c (end_final): Use C trees to output data structures for profiling.
5868
5869 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5692c7bc
ZW
5870 (profile.o): New dependency profile.h
5871 (final.o): New dependency profile.h
5872 * profile.h: New file. New global structure profile_info.
5873 * final.h (count_edges_instrumented_now): Declare.
5874 (current_function_cfg_checksum): Declare.
5875 (function_list): New structure.
5876 (functions_head, functions_tail): New static variables.
5877 (end_final): Emits more data, removed some -ax stuff.
5878 (final): Stores function names and chcksums.
5879 * gcov-io.h (__write_gcov_string): New function.
5880 (__read_gcov_string): New function.
5881 * gcov.c (read_profile): New function.
5882 (create_program_flow_graph): Uses read_profile instead of reading
b7c9bf28 5883 da_file.
5692c7bc
ZW
5884 (read_files): Removed da_file checking, it's done by read_profile now.
5885 * libgcc2.c (bb_function_info): New structure.
5886 (bb): New field in structure, removed some -ax stuff.
5887 (__bb_exit_func): Changed structure of da_file.
5888 * profile.c (count_edges_instrumented_now): New global variable.
5889 (current_function_cfg_checksum): New global variable.
5890 (max_counter_in_program): New global variable.
5891 (get_exec_counts): New function.
5892 (compute_checksum): New function.
5893 (instrument_edges): Sets count_edges_instrumented_now.
5894 (compute_branch_probabilities): Uses get_exec_counts instead of
b7c9bf28 5895 reading da_file.
5692c7bc
ZW
5896 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
5897 (init_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 5898 now.
5692c7bc 5899 (end_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 5900 now.
5692c7bc 5901 * gcov.texi: Updated information about gcov file format.
b7c9bf28 5902
786de7eb
KH
59032002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5904
5905 * sbitmap.c: Fix formatting.
5906 * scan.c: Likewise.
5907 * scan-decls.c: Likewise.
5908 * sched-deps.c: Likewise.
5909 * sched-ebb.c: Likewise.
5910 * sched-rgn.c: Likewise.
5911 * sched-vis.c: Likewise.
5912 * sdbout.c: Likewise.
5913 * sibcall.c: Likewise.
5914 * simplify-rtx.c: Likewise.
5915 * ssa.c: Likewise.
5916 * ssa-ccp.c: Likewise.
5917 * ssa-dce.c: Likewise.
5918 * stmt.c: Likewise.
5919 * stor-layout.c: Likewise.
5920 * stringpool.c: Likewise.
5921
b7764693
DM
59222002-05-09 David S. Miller <davem@redhat.com>
5923
5924 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
5925
4e7d5d27
DM
59262002-05-07 David S. Miller <davem@redhat.com>
5927
5928 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
5929 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
5930 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
5931 library implementation clobbers the output before the inputs
5932 are fully consumed, use stack temporary for the output.
5933
f979570e
JT
59342002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
5935
5936 * config/netbsd.h (CPP_SPEC): Remove.
5937 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
5938 * config/i386/netbsd.h (CPP_SPEC): Define.
5939 * config/ns32k/netbsd.h (CPP_SPEC): Define.
5940 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
5941 * config/sparc/netbsd.h (CPP_SPEC): Define.
5942 * config/vax/netbsd.h (CPP_SPEC): Define.
5943
a6a2274a
KH
59442002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5945
5946 * read-rtl.c: Fix formatting.
5947 * real.c: Likewise.
5948 * recog.c: Likewise.
5949 * regclass.c: Likewise.
5950 * regmove.c: Likewise.
5951 * reg-stack.c: Likewise.
5952 * reload1.c: Likewise.
5953 * reload.c: Likewise.
5954 * resource.c: Likewise.
5955 * rtlanal.c: Likewise.
5956 * rtl.c: Likewise.
5957 * rtl-error.c: Likewise.
5958
461b48d5
JDA
59592002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5960
5961 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
5962 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
5963
95d075ff
BS
59642002-05-08 Bernd Schmidt <bernds@redhat.com>
5965
5966 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
5967 use __SSE2__ macro instead.
5968 * config/i386/xmmintrin.h: Likewise.
5969
2d4cc6a7
JJ
59702002-05-08 Janis Johnson <janis187@us.ibm.com>
5971
5972 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
5973 and use it in all invocations of these macros. Clean up comments.
5974 * rtl.c (rtl_check_failed_flag): Add an argument for the name
5975 of the flag access macro whose check failed.
5976 * doc/rtl.texi (Flags): Document additional flag uses.
5977
3f8ffc7c
RS
59782002-05-08 Robert Spier <rspier@pobox.com>
5979 Neil Booth <neil@daikokuya.demon.co.uk>
5980
5981 PR preprocessor/6521
5982 * cppfiles.c (handle_missing_header): Don't do anything
5983 different for <> includes.
5984doc:
5985 * cppopts.texi: Update documentation for -MG.
5986
b9e2d17b
NB
59872002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
5988
5989 * cpplex.c (cpp_interpret_charconst): Truncate as well as
5990 sign-extend.
5991doc:
5992 * cpp.texi: Clarify multichar charconst valuation.
5993
8d8269fa
MM
59942002-05-08 Mark Mitchell <mark@codesourcery.com>
5995
5996 * doc/invoke.texi: Document -mwindiss option.
5997
29b91443
JM
59982002-05-08 Jason Merrill <jason@redhat.com>
5999
6000 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
6001
6002 * dwarf2out.c (gen_type_die): Abort on broken recursion.
6003
6004 PR c++/6381
6005 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
6006 REAL_CST.
6007
6c76b950
NC
60082002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
6009
6010 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
6011 little-endian multilibs to override arm/thumb multilibs.
a5c76ee6 6012 Do not build hardware floating point multilibs, nor apcs-26
6c76b950
NC
6013 multilibs for the Thumb.
6014
f90bf7ca
MM
60152002-05-08 Mark Mitchell <mark@codesourcery.com>
6016
6017 PR c/6569.
6018 * varasm.c (mark_weak): New function.
6019 (merge_weak): Use it. Do not call declare_weak.
6020 (declare_weak): Use merge_weak.
6021
1e150f2c
JH
6022Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6023
6024 * cse.c (dead_libcall_p): Update counts.
6025 (delete_trivially_dead_insns): Update call of dead_libcall_p.
6026
969d70ca
JH
6027Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
6028
6029 * cfglayout.c (function_tail_eff_head): Rename to ...
6030 (function_footer): ... this one.
6031 (unlink_insn_chain): New functions.
6032 (label_for_bb): Only call block_label and emit debug message.
6033 (record_effective_endpoints): Actually unlink the headers and footers.
6034 (fixup_reorder_cahin): Re-insert the unlinked sequences.
6035 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
6036 * cfglayout.h (struct reorder_block_def): New fields footer/header;
6037 remove eff_head/eff_end.
6038 * rtl.h (set_first_insn): Declare.
6039 * emit-rtl.c (set_first_insn): New function.
6040
6041 * cfglayout.c (fixup_reorder_chain): Dump duplicated
6042 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6043 cfg_layout_duplicate_bb): New global function.
6044 (duplicate_insn_chain): New static function.
6045 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6046 cfg_layout_duplicate_bb): Declare.
6047 (struct reorder_block_def): Add "original" field.
6048 * emit-rtl.c (emit_copy_of_insn_after): New function.
6049 * rtl.h (emit_copy_of_insn_after): Declare.
6050
6051 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
6052 (fixup_reorder_chain): properly handle edges to exit block.
6053
6054Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6055 Jan Hubicka <jh@suse.cz>
6056
6057 * basic-block.h (note_prediction_to_br_prob): declare.
6058 * c-semantics.c: Inlucde predit.h
6059 (expand_stmt): predict GOTO_STMT as not taken.
6060 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
6061 (cleanup_cfg): Do not free tail_recursion_list.
6062 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
6063 (flow_delete_block): Kill predictions past end of basic block.
6064 * output.h (delete_unreachable_blocks): Declare.
6065 * predict.c (predicted_by_p, process_note_predictions,
6066 process_note_prediction, last_block_p): New function.
6067 (estimate_probability): Bypass loop on PRED_CONTINUE;
6068 do not handle noreturn heuristics; kill PRED_RETURN; add
6069 PRED_EARLY_RETURN.
6070 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
6071 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
6072 * predict.h (IS_TAKEN): New constant.
6073 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
6074 * rtl.c (NOTE_INSN_PREDICTION): New.
6075 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
6076 New macro.
6077 (insn_note): add NOTE_INSN_PREDICTION.
6078 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
6079 CFG; free tail_recursion_label_list.
6080 * stmt.c: Include predict.h;
6081 (return_prediction): New.
6082 (expand_value_return): Use it.
6083 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
6084
41f8d041
RS
60852002-05-08 Richard Sandiford <rsandifo@redhat.com>
6086
6087 * config/mips/mips.md: Name the unspecs with define_constant.
6088 (*HILO_delay): Rename to 'hilo_delay' (no star).
6089 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
6090 (reload_outdi, reload_outsi): Likewise.
6091
9cabb1d8
KH
60922002-05-07 Kazu Hirata <kazu@cs.umass.edu>
6093
6094 * toplev.c: Fix formatting.
6095
4c76f856
JJ
60962002-05-07 Janis Johnson <janis187@us.ibm.com>
6097
6098 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
6099 * configure.in (ac_rtlflag_checking): New.
6100 * doc/install.texi (--enable-checking): Document RTL flag checking.
6101
44a147ad
NB
61022002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
6103
6104 * c-common.c (c_common_init): Set options->unsigned_wchar.
6105 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
6106 group target dependencies.
6107 (init_builtins, cpp_handle_option): Update.
6108 * cpplex.c (cpp_interpret_charconst): Update.
6109 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
6110 signed_char to unsigned_char, group target dependencies.
6111 * defaults.h (WCHAR_UNSIGNED): Remove.
6112 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
6113config:
6114 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
6115 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
6116 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
6117 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
6118 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
6119doc:
6120 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
6121
cace4f93
MM
61222002-05-07 Mark Mitchell <mark@codesourcery.com>
6123
6124 * fixinc/inclhack.def (windiss_math1): New fix.
6125 (windiss_math2): Likewise.
6126 (windiss_valist): Likewise.
6127 * fixinc/fixincl.x: Regenerated.
6128
e2ff6cee
AJ
61292002-05-07 Andreas Jaeger <aj@suse.de>
6130
6131 * genautomata.c (output_internal_min_issue_delay_func): Add
6132 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
6133 (output_internal_trans_func): Likewise.
6134
bdad4be5
JL
6135Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
6136
6137 * pa.c (hppa_profile_hook): Use force_reg to get the address
6138 of the profile hook into an appropriate pseudo register.
6139
a1ffecd9
MM
61402002-05-07 Mark Mitchell <mark@codesourcery.com>
6141
6142 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
6143 (LINK_START_SPEC): Handle it.
6144 (LINK_OS_SPEC): Likewise.
6145 (CPP_SPEC): Likewise.
6146 (STARTFILE_SPEC): Likewise.
6147 (LIB_SPEC): Likewise.
6148 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
6149 all platforms.
6150 (CRTSAVRES_DEFAULT_SPEC): New macro.
6151 (LIB_WINDISS_SPEC): New macro.
6152 (CPP_OS_WINDISS_SPEC): Likewise.
6153 (STARTFILE_WINDISS_SPEC): Likewise.
6154 (ENDFILE_WINDISS_SPEC): Likewise.
6155 (LINK_START_WINDISS_SPEC): Likewise.
6156 (LINK_OS_WINDISS_SPEC): Likewise.
6157 * config/rs6000/windiss.h: New file.
e2ff6cee 6158
df966bff
AH
61592002-05-07 Aldy Hernandez <aldyh@redhat.com>
6160
a5c76ee6 6161 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
df966bff 6162
db84f1bd
DM
61632002-05-06 David S. Miller <davem@redhat.com>
6164
6165 * config/sparc/sparc.md (shift insns): Do not mask off
6166 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
6167 take care of it.
6168
818c0c94
RH
61692002-05-06 Richard Henderson <rth@redhat.com>
6170
6171 PR c++/6212
6172 * expr.c (highest_pow2_factor_for_type): New.
6173 (expand_assignment): Use it.
6174
61e0b50f
AH
61752002-05-06 Aldy Hernandez <aldyh@redhat.com>
6176
818c0c94
RH
6177 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
6178 unspec_volatile.
6179 ("altivec_mfvscr"): Same.
61e0b50f 6180
5a63e069
JJ
61812002-05-06 Janis Johnson <janis187@us.ibm.com>
6182
6183 * rtl.h (struct rtx_def): Update comments.
6184 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
6185 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
6186 RTL_FLAG_CHECK macros with list of expected RTL codes.
6187 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
6188 (rtl_check_failed_flag): New.
6189 * reload1.c (reload): Use REG macro before changing rtx to MEM.
6190 (reload_cse_noop_set_p): Check rtx code before using access macro.
6191 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
6192 before using access macro.
6193
4afe3952
JJ
61942002-05-06 Janis Johnson <janis187@us.ibm.com>
6195
6196 * doc/rtl.texi (Flags): Update to reflect current usage.
6197
1f77b5da
RS
61982002-05-06 Roger Sayle <roger@eyesopen.com>
6199
6200 PR opt/3995
6201 * fold-const.c (sign_bit_p): New function.
6202 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
818c0c94 6203 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1f77b5da
RS
6204 Reapply fold when converting (A & C) == C into (A & C) != 0.
6205 (fold_binary_op_with_conditional_arg): Fix typo in comment.
6206
a5a49440
NB
62072002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
6208
6209 * c-common.c (warn_multichar): New.
6210 (c_common_init): Set CPP's warn_multichar.
6211 * c-common.h (warn_multichar): New.
6212 * c-decl.c (warn_multichar): Remove.
6213 * c-lex.c (lex_charconst): Update.
6214 * c-tree.h (warn_multichar): Remove.
6215 * cppexp.c (eval_token): Sign-extend charconst value.
6216 * cppinit.c (cpp_create_reader): Set warn_multichar.
6217 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
6218 each character. Update prototype. Sign-extend the result.
6219 * cpplib.h: Fix conditions.
6220 (struct cpp_options): Add new warning flag.
6221 (cpp_interpret_charconst): Update prototype.
6222doc:
6223 * cpp.texi: Update documentation.
6224
83e0be55
VM
62252002-05-06 Vladimir Makarov <vmakarov@redhat.com>
6226
6227 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6228 Fix typo in usage of allof instead of unit.
6229
688ec718
RH
62302002-05-06 Richard Henderson <rth@redhat.com>
6231
6232 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
6233 and any jump or call for IN.
6234
f6536266
BS
62352002-05-06 Bernd Schmidt <bernds@redhat.com>
6236
e2ff6cee 6237 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
f6536266
BS
6238 -msse2.
6239 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
e2ff6cee 6240
0316d49b
RS
62412002-05-06 Roger Sayle <roger@eyesopen.com>
6242
6243 * fold-const.c (lshift-double): Cast the high word to an unsigned
6244 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
6245 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
6246 avoid compiler warning. (fold): Remove redundant code from
6247 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
6248
5d50fab3
JL
62492002-05-06 Jeff Law <law@redhat.com>
6250
6251 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
6252 * pa.c (pa_adjust_cost): Remove all true dependency cost
6253 adjustments. Also remove support for non-DFA scheduling.
6254 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
6255 to adjust true dependency costs. Update various comments.
6256 (7100lc, 7200, 7300 scheduling): Simplify by combining the
6257 FP ALU & MPY units into a single unit.
6258
a17a104c
CM
62592002-05-06 Catherine Moore <clm@redhat.com>
6260
6261 * config/v850/v850.c (compute_register_save_size): Make sure
818c0c94 6262 to count all of the registers that will be saved.
a17a104c 6263
7799175f
JH
6264Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6265
6266 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
6267
0ac941a0
DM
62682002-05-06 David S. Miller <davem@redhat.com>
6269
6270 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
6271 allow result to overlap input operands in memory.
6272
95ff5d3f
NB
62732002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6274
6275doc:
6276 * cpp.texi: Update multichar charconst docs.
6277
639e8b0c
NB
62782002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6279
6280 * cpplex.c (cpp_interpret_charconst): Sign-extend each
6281 character. Don't ignore excess characters. Treat
6282 multicharacter character constants as signed.
6283 (cpp_parse_escape): Clarify diagnostic.
6284
84ea5bc1
JJ
62852002-05-05 Jakub Jelinek <jakub@redhat.com>
6286
6287 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
6288 use add instead of shift.
6289 (ashldi3_sp64): Likewise.
6290 (ashlsi3_const1, ashldi3_const1): Remove.
6291 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
6292 * config/sparc/sparc.c (const1_operand): New.
6293
40cd22f2
JT
62942002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
6295
6296 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
6297
cac01076
JJ
62982002-05-05 Jakub Jelinek <jakub@redhat.com>
6299
6300 PR target/6561
6301 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
6302
98791e3a
RH
63032002-05-05 Richard Henderson <rth@redhat.com>
6304
6305 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
6306 memory latency adjustments.
6307 (alpha_variable_issue): Remove.
6308 (alpha_use_dfa_pipeline_interface): New.
6309 (alpha_multipass_dfa_lookahead): New.
6310 * config/alpha/alpha.md: Remove define_function_unit scheduling;
6311 include new dfa scheduling.
6312 (attr type): Add none.
6313 (blockage): Use it.
6314 * config/alpha/ev4.md: New.
6315 * config/alpha/ev5.md: New.
6316 * config/alpha/ev6.md: New.
6317
309527ce
DM
63182002-05-05 David S. Miller <davem@redhat.com>
6319
6320 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
6321
68252e27
KH
63222002-05-05 Kazu Hirata <kazu@cs.umass.edu>
6323
6324 * cse.c: Fix formatting.
6325 * emit-rtl.c: Likewise.
6326
30cc9d00
VM
63272002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6328
6329 * genautomata.c (initiate_states): Add additional guard to
6330 initialize `units_array'.
6331
deb09eff
VM
63322002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6333
6334 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
6335 process_unit_to_form_the_same_automaton_unit_lists,
6336 form_the_same_automaton_unit_lists
6337 check_unit_distributions_to_automata): New prototypes and
6338 functions.
6339 (check_automata): Rename it into `check_automata_insn_issues'.
6340 (unit_decl): New fields `the_same_automaton_unit' and
6341 `the_same_automaton_message_reported_p'.
6342 (unit_decl_t): New typedef.
6343 (the_same_automaton_lists): New gloval variable.
6344 (unit_regexp, unit_set_el, units_array, units_cmp,
6345 output_get_cpu_unit_code_func): Use the typedef.
6346 (evaluate_max_reserv_cycles): Increment
6347 `description->max_insn_reserv_cycles'.
6348 (initiate_states): Don't increment `max_cycles_num'.
6349 (transform_insn_regexps): Move code around transformation of
6350 regexps from `generate'.
6351 (generate): Remove call of `transform_insn_regexps'.
6352 (expand_automata): Call `transform_insn_regexps' and
6353 `check_unit_distributions_to_automata'. Check errors before
6354 `generate'.
6355
6356 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
6357 automaton `ultrasparc3_1'.
e2ff6cee 6358
2443d4e1
NB
63592002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
6360
6361 * c-common.c (c_common_init): Set up CPP arithmetic.
6362 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
6363 something reasonable for the host.
6364 (sanity_checks): Add checks.
6365 (cpp_read_main_file): Call sanity_checks() from here...
6366 (cpp_post_options): ... not here.
6367 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
6368 * cpplib.h (struct cpp_options): New member int_precision.
6369
791a949f
FS
63702002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6371
6372 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
6373
091fb516
DM
63742002-05-04 David S. Miller <davem@redhat.com>
6375
f60ebeb7
DM
6376 * config/sparc/linux.h, config/sparc/linux64.h
6377 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
6378
214c6394
DM
6379 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
6380 more RTX codes.
6381 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
6382
091fb516
DM
6383 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
6384 of SETs.
6385
f2fdc802
TJ
63862002-05-05 Tim Josling <tej@melbpc.org.au>
6387
e2ff6cee 6388 * treelang; New directory for new sample language treelang.
f2fdc802 6389
3d90d290
NB
63902002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6391
6392 * Makefile.in (c-lex.o): Update.
6393 * c-lex.c: Include target.h.
6394 (cb_register_builtins): New.
6395 (init_c_lex): Set builtins callback.
6396 * c-lex.h (cpp_define, cpp_assert): New prototypes.
6397 * cppinit.c (init_builtins): Use callback, including for
6398 GXX_WEAK.
6399 * cpplib.h (struct cpp_callbacks): New member.
6400 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
6401 (TARGET_INITIALIZER): Update.
6402 * target.h (struct gcc_target): New hook.
6403 * tree.c (default_register_cpp_builtins): New.
6404 * tree.h (default_register_cpp_builtins): New.
6405doc:
6406 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
6407
625458d0
NB
64082002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6409
6410 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
6411 (cpp_post_options): Move sanity checks to...
6412 (sanity_checks): New.
6413 * cpplex.c (maybe_read_ucs): Fix prototype.
6414 (parse_string, cpp_parse_escape): Cast for %c format specifier.
6415 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6416 if necessary.
6417
916b60b7
BS
64182002-05-04 Bernd Schmidt <bernds@redhat.com>
6419
6420 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6421 builtins. Use V2DI patterns instead of TI for logical operations.
6422 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6423 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6424 (ix86_expand_builtins): Change the pattern used for movntdq.
6425 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6426 sse2_nandv2di3): New patterns.
6427 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6428 on operands.
6429 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6430 (cvtdq2pd): Correct mode on operand 1.
6431 (sse2_umulsidi3): Describe without unspec.
6432 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6433 machine modes.
6434 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6435 (ashlv2di3): Likewise, from sse2_ashlv2di3.
6436 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6437 ashlv4si3, ashlv2di3): Use SImode for shift count.
6438 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6439 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6440 New patterns.
6441 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6442 New typedefs.
6443 (__m128i, __m128d): New macros.
6444 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6445 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6446 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6447 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6448 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
e2ff6cee 6449 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
916b60b7
BS
6450 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6451 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
e2ff6cee 6452 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
916b60b7
BS
6453 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6454 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6455 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6456 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6457 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6458 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
6459 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
6460 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
6461 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
6462 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
6463 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
6464 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
6465 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6466 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
6467 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6468 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
6469 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
6470 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
6471 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
6472 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
6473 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6474 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
6475 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6476 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
6477 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
6478 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
6479 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
6480 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
6481 functions.
e2ff6cee 6482 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
916b60b7
BS
6483 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
6484
c26fbbca
KH
64852002-05-04 Kazu Hirata <kazu@cs.umass.edu>
6486
6487 * dwarf2out.c: Fix formatting.
6488 * varasm.c: Likewise.
6489
0387639b
DE
64902002-05-04 David Edelsohn <edelsohn@gnu.org>
6491
6492 PR c/6543
6493 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
6494 clobber and use result as temporary value.
6495
8a28dbcc
JH
6496Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6497
6498 * expr.c (force_operand): Use expand_simple_* to handle more
6499 cases.
6500
4268e8bb
NB
65012002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6502
6503 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
6504 and sign-extension.
6505 (lex_charconst): Update for change in prototype of
6506 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
6507 appropriately.
6508 * cpphash.h (BITS_PER_CPPCHAR_T): New.
6509 * cppinit.c (cpp_create_reader): Initialize them for no
6510 change in semantics.
6511 (cpp_post_options): Add sanity checks.
6512 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
6513 and truncation issues. Calculate in type cppchar_t.
6514 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
6515 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
6516 run-time dependent precision correctly. Return whether the
6517 result is signed or not.
6518 * cpplib.c (dequote_string): Use cppchar_t; update.
6519 * cpplib.h (cppchar_signed_t): New.
6520 struct cpp_options): New precision members.
6521 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
ae1a07e0 6522 * cppexp.c (eval_token): Update.
4268e8bb 6523
af54350e
DM
65242002-05-03 David S. Miller <davem@redhat.com>
6525
2ce04b6b
DM
6526 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
6527 * config/sparc/sparc.c (sparc_rtx_costs): New function
6528 implementing RTX_COSTS and CONST_COSTS.
6529 * config/sparc/sparc.h (CONST_COSTS): Delete.
6530 (RTX_COSTS_CASES): Define.
6531 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
6532 the work.
6533
a1d9bd0c
DM
6534 * config/sparc/sparc.md (DFA schedulers): Split out...
6535 * config/sparc/cypress.md, config/sparc/hypersparc.md,
6536 config/sparc/sparclet.md, config/sparc/supersparc.md,
6537 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
6538
e87bb82e
DM
6539 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
6540 checks on it, always defined for Sparc.
6541
af54350e
DM
6542 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
6543 Tweak, and add more detailed comments.
6544
935bfb44
ZW
65452002-05-03 Zack Weinberg <zack@codesourcery.com>
6546
6547 * Re-apply patch accidentally reverted with
6548 DFA scheduler merge: remove all rules and variables to slurp
6549 source files out of libiberty and rebuild them with HOST_CC.
6550 ($(HOST_PREFIX_1)varray.o): New rule.
6551 (genattrtab rule): Word wrap.
6552
fa7a0712
JT
65532002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6554
6555 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
6556 (CPP_SUBTARGET_SPEC): Define.
6557 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
6558 cpp_subtarget specs.
6559 (CPP_SPEC): Redefine to include %(cpp_subtarget).
6560
14c93978
DM
65612002-05-03 David S. Miller <davem@redhat.com>
6562
6563 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
6564 * target.h (struct gcc_target): Delete cycle_display member.
6565
14d118d6
DM
6566 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
6567 (rtx_needs_barrier): Delete reference to cycle_display unspec.
6568 (ia64_sched_reorder2): Mention need for cycle display handling
6569 once such notes exist.
935bfb44 6570
b3ae1ccd
RH
65712002-05-03 Richard Henderson <rth@redhat.com>
6572
6573 * real.c (etoasc): Strip most trailing zeros for clarity.
6574 * sched-vis.c: Include real.h.
6575 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
6576 * Makefile.in (sched-vis.o): Add real.h.
6577
8f39865a
DM
65782002-05-03 David S. Miller <davem@redhat.com>
6579
6580 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
6581 no longer needed.
6582
b44140e7
AH
65832002-05-03 Aldy Hernandez <aldyh@redhat.com>
6584
935bfb44
ZW
6585 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
6586 when we get an out of range literal.
6587 (altivec_expand_ternop_builtin): Same.
6588 (altivec_expand_unop_builtin): Same.
6589 (altivec_expand_builtin): Same, for dss.
6590 (altivec_expand_builtin): Use trees instead of rtl when
6591 determining literal argument validity.
b44140e7 6592
aaaed752
DM
65932002-05-03 David S. Miller <davem@redhat.com>
6594
6595 Delete cycle display scheduling hook.
6596 * config/ia64/ia64.c (ia64_cycle_display,
6597 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
6598 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
6599 and use emit_insn_before instead of ia64_emit_insn_before.
6600 * config/ia64/ia64.md (unspec usage): Delete cycle display.
6601 (cycle_display): Delete insn pattern.
6602 * config/sparc/sparc.md (unspec usage): Delete cycle display.
6603 (cycle_display): Delete insn pattern.
6604 * config/sparc/sparc.c (sparc_cycle_display,
6605 TARGET_SCHED_CYCLE_DISPLAY): Delete.
6606 * doc/md.texi (cycle_display): Don't mention.
6607 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
935bfb44 6608
b37c2614
RH
66092002-05-03 Richard Henderson <rth@redhat.com>
6610
6611 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
6612 * recog.h: Declare them.
6613
6614 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
6615 * config/sparc/sparc.md: Use store_data_bypass_p instead.
6616 * config/sparc/sparc-protos.h: Update.
935bfb44 6617
e1c1132e
JT
66182002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6619
6620 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
6621 -D__arch64__. Add -D_LP64.
6622 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6623 from sparc.h.
6624 (CPP_ARCH64_SPEC): Likewise.
6625 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
6626 (NO_BUILTIN_SIZE_TYPE): Undef.
6627
0b2fb0d7
VM
66282002-05-03 Vladimir Makarov <vmakarov@redhat.com>
6629
6630 * genautomata.c (min_issue_delay_pass_states): Change return type
6631 in the prototype.
6632 (min_issue_delay_pass_states): Change the algorithm.
6633 (min_issue_delay): Set up min_insn_issue_delay for the state.
6634 (output_min_issue_delay_table): Interchange the nested loops and
6635 and initiate min_insn_issue_delay for states.
935bfb44 6636
3d4ce12a
JH
6637Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
6638
6639 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
6640 jump is simplejump.
6641
6642Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
37ad04a5
JH
6643
6644 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
6645 sequence.
6646
b5482208
RH
66472002-05-03 Richard Henderson <rth@redhat.com>
6648
6649 PR opt/6534
6650 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6651 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6652 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
6653 code before JUMP, not EARLIEST.
6654
5a3085c5
JM
66552002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
6656
6657 * c-format.c (check_format_info_main): Don't check for presence of
6658 parameter for * width until after operand number has been read,
6659 and only check for it if format parameters are available.
6660 Fixes PR c/6547.
6661
40039424
JT
66622002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6663
6664 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
6665 (LINK_SPEC): Undef before defining.
6666
8157303b
JJ
66672002-05-03 Jakub Jelinek <jakub@redhat.com>
6668
6669 PR preprocessor/6489
6670 * tradcpp.c (fixup_newlines): New.
6671 (main, finclude): Use it.
6672
66319f5c
RS
66732002-05-03 Richard Sandiford <rsandifo@redhat.com>
6674
6675 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
6676 * config/mips/mips.c (mips_unique_section): Strip encoding from
6677 decl name.
6678
ce8076ad
JJ
66792002-05-03 Jakub Jelinek <jakub@redhat.com>
6680
6681 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
6682 mode.
6683
975c6e4e
RO
66842002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6685
6686 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
6687 (Specific): Removed buildstats references.
6688 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
6689 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
6690 Accomodate Solaris versions beyond 8.
6691 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
6692 (Specific, *-*-solaris2.8): Removed, obsolete.
6693
d70e94ec
JJ
66942002-05-03 Jakub Jelinek <jakub@redhat.com>
6695
6696 PR target/6542
6697 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
6698 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
6699 fill leaf_reg_remap with identity.
6700 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
6701
6b148bd9
KH
67022002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6703
6704 * config/h8300/crti.asm: Remove trailing spaces.
6705 * config/h8300/h8300.c: Likewise.
6706 * config/h8300/lib1funcs.asm: Likewise.
6707
609688f3
JM
67082002-05-02 Jason Merrill <jason@redhat.com>
6709
6710 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
6711 * c-decl.c (c_init_decl_processing): Use it.
6712 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
6713 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
6714 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
6715
3b03c671
KH
67162002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6717
6718 * regrename.c: Fix formatting.
6719 * tree.c: Likewise.
6720
3b4961bd
JH
6721Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
6722
6723 * i386.md (attribute memory): Handle compares properly.
6724
19cba4a0
JH
6725Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
6726
3b4961bd 6727 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
19cba4a0
JH
6728 to none.
6729
797a6ac1
KH
67302002-05-02 Kazu Hirata <kazu@cs.umass.edu>
6731
6732 * function.c: Fix formatting.
6733
6d0de005
JH
67342002-05-02 Jan Hubicka <jh@suse.cz>
6735
6736 * haifa-sched.c (schedule_insn): Print table of instructions and
6737 reservations.
6738 (sched_block): Do not print ready list at verbosity level 1.
6739 * sched-vis.c (print_insn): Make global.
6740 * sched-ebb.c (ebb_print_insn): Rename from...
6741 (print_insn): ... this one.
6742 * sched-int.h (print_insn): Declare
6743
0bfb9a69
RH
67442002-05-02 Richard Henderson <rth@redhat.com>
6745
6746 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
6747 emitted by cycle_display.
6748
6b976d99
LR
67492002-05-02 Loren J. Rittle <ljrittle@acm.org>
6750
6751 * doc/install.texi (*-*-freebsd*): Update to latest status.
6752
0a295052
JJ
67532002-05-02 Jakub Jelinek <jakub@redhat.com>
6754
6755 PR target/6540
6756 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
6757 * config/float-sparc.h: Assume 128-bit long double if
6758 __LONG_DOUBLE_128__ is defined.
6759
842d5d6c
VM
67602002-05-02 Vladimir Makarov <vmakarov@redhat.com>
6761
6762 * genattrtab.c (write_function_unit_info): Add a dummy element
6763 when num_units == 0.
6764
3d7a6309
HB
67652002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6766
6767 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
6768 TYPE_MODE (double_type_node) instead of DFmode.
6769
1b6763cf
JH
6770Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
6771
6772 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
6773 jumps post reload.
6774 * toplev.c (rest_of_compilation): Revert Richard's patch.
6775
b303008e
JDA
67762001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6777
6778 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
6779
6ed7412a
CM
67802002-05-02 Catherine Moore <clm@redhat.com>
6781
6782 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
6783
e0a2f705
KH
67842002-05-02 Kazu Hirata <kazu@hxi.com>
6785
b32d6163 6786 * combine.c: Fix comment typos.
e0a2f705
KH
6787 * expr.c: Likewise.
6788 * genautomata.c: Likewise.
6789 * stmt.c: Likewise.
6790 * tree.h: Likewise.
6791
38e23049
JM
67922002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
6793
6794 * doc/install.texi: State GNAT version requirements.
6795
40f4a97d
NC
67962002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
6797
6798 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
6799 of the frame pointer or arg pointer register which strict register
6800 checking is not enabled.
6801
0d6d6892
AH
68022002-05-02 Aldy Hernandez <aldyh@redhat.com>
6803
b5482208 6804 * gcc.dg/altivec-8.c: New.
0d6d6892 6805
b5482208
RH
6806 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
6807 PRE_INC and PRE_DEC for altivec modes.
0d6d6892 6808
abaa8559
BK
68092002-05-01 Bruce Korb <bkorb@gnu.org>
6810
6811 * fixinc/check.tpl(set-writable): make sure the function exists first
6812 * fixinc/inclhack.def(alpha_assert): fix test_text
6813 * fixinc/tests/base/assert.h: add in missing result
6814
ecab2143
JL
68152002-05-01 Jeff Law <law@redhat.com>
6816
6817 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
6818 'T' constraint.
6819
ea619b46
JB
68202002-05-01 Joel Brobecker <brobecker@gnat.com>
6821
6822 * dbxout.c (dbxout_type): Emit size information for range types,
6823 as well, but only when using GDB extensions.
6824
c72931a6
RH
68252002-05-01 Richard Henderson <rth@redhat.com>
6826
6827 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
6828 target-independent gnu binutils date test.
6829
2150ad33
RH
68302002-05-01 Richard Henderson <rth@redhat.com>
6831
6832 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
6833 info before expunging the block.
6834
1651cc96
JJ
68352002-05-01 Jakub Jelinek <jakub@redhat.com>
6836
6837 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
6838 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
6839 -M -or -MM is in effect.
6840
8998d5bf
ZW
68412002-05-01 Zack Weinberg <zack@codesourcery.com>
6842
6843 * config.gcc: Correct test of --enable-obsolete. Obsolete all
6844 A29k configurations.
6845 * doc/install.texi: Update to match.
6846
a81eed10
FS
68472002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6848
6849 PR bootstrap/6514
6850 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
6851 for duplicates. Always loop over whole list.
6852
8d53318f
RK
6853Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6854
6855 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
6856
4109b118
JS
68572002-05-01 Joel Sherrill <joel@OARcorp.com>
6858
6859 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
6860 support routines.
6861
c4a9c570
JS
68622002-05-01 Joel Sherrill <joel@OARcorp.com>
6863
6864 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
6865
ea112fc4
DE
68662002-05-01 David Edelsohn <edelsohn@gnu.org>
6867
6868 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
6869 (nabs_nopower): Same.
6870 (floatdisf2): New pattern.
6871 (absdi2): Convert to define_insn_and_split.
6872 (nabsdi2): Same.
6873 (trunctfsf2): Same.
6874 (floatditf2): Same.
6875 (floatsitf2): Same.
6876 (fix_trunctfdi2): Same.
6877 (fix_trunctfsi2): Same.
6878
dda78254
JM
68792002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
6880
6881 * doc/install.texi: Update Texinfo version requirement
6882 documentation.
6883
26aeede4
JJ
68842002-05-01 Jakub Jelinek <jakub@redhat.com>
6885
6886 PR target/6512, PR target/5628
6887 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
6888 when memory is not aligned.
6889 (movdf_insn_v9only_vis): Likewise.
6890 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
6891 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
6892 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
6893
9b7bc465
AH
68942002-05-01 Aldy Hernandez <aldyh@redhat.com>
6895
8998d5bf 6896 * gcc.dg/altivec-7.c: New.
9b7bc465 6897
8998d5bf 6898 * config/rs6000/altivec.h: Cleanup.
9b7bc465 6899
08b57fb3
AH
69002002-04-30 Aldy Hernandez <aldyh@redhat.com>
6901
8998d5bf
ZW
6902 * doc/invoke.texi (Option Summary): Add -mvrsave=.
6903 (RS/6000 and PowerPC Options): Document -mvrsave=.
08b57fb3 6904
8998d5bf
ZW
6905 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
6906 (rs6000_altivec_vrsave_string): Same.
6907 (rs6000_override_options): Call rs6000_parse_vrsave_option.
6908 (rs6000_parse_vrsave_option): New.
6909 (rs6000_stack_info): Only generate vrsave instructions when
6910 TARGET_ALTIVEC_VRSAVE.
08b57fb3 6911
8998d5bf
ZW
6912 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
6913 (rs6000_altivec_vrsave_string): Define extern.
6914 (rs6000_altivec_vrsave): Same.
6915 (TARGET_ALTIVEC_VRSAVE): New.
08b57fb3 6916
8e8c38cd
RH
69172002-04-30 Richard Henderson <rth@redhat.com>
6918
6919 PR opt/6516
6920 * toplev.c (rest_of_compilation): Don't run cross-jump before
6921 bb-reorder.
6922
4be9e9cb
TR
69232002-04-30 Tom Rix <trix@redhat.com>
6924
8998d5bf 6925 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4be9e9cb
TR
6926 check which_alternative.
6927
1eeeb6a4
KH
69282002-04-30 Kazu Hirata <kazu@hxi.com>
6929
6930 * cpplex.c: Fix comment formatting.
6931 * function.c: Likewise.
6932 * integrate.c: Likewise.
6933 * regrename.c: Likewise.
6934 * sibcall.c: Likewise.
6935 * simplify-rtx.c: Likewise.
6936 * tree-inline.c: Likewise.
6937
ed9d6ff9
JDA
69382002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6939
6940 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
6941 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
6942 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
6943 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
6944 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
6945 * pa/x-ada: New file. Define ADA_CFLAGS.
6946
1f2641b6
HPN
69472002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
6948
6949 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
6950 from MMIX_LAST_REGISTER_FILE_REGNUM.
6951 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
6952 (struct machine_function): New member highest_saved_stack_register
6953 previously static variable in mmix.c.
6954 (MACHINE_DEPENDENT_REORG): Define.
6955 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
6956 (MMIX_OUTPUT_REGNO): New.
6957 (mmix_target_asm_function_prologue): Move calculation of last used
6958 saved-stack-register into...
6959 (mmix_machine_dependent_reorg): New function. Update to also handle
6960 !TARGET_ABI_GNU.
6961 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
6962 register names, simplify somewhat by new variable regno.
6963 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
6964 register.
6965 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
6966 emitting register names.
6967 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
6968 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
6969 Remove fixed FIXME.
6970 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
6971 Declare.
6972
6973 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
6974
73985940
RH
69752002-04-30 Richard Henderson <rth@redhat.com>
6976
6977 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
6978 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
6979 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
6980 emit_tfmode_cvt): New.
6981 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
6982 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
6983 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
6984 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
6985 * config/sparc/sparc-protos.h: Update.
6986
2b46bc67
JJ
69872002-04-30 Janis Johnson <janis187@us.ibm.com>
6988
6989 * install.texi (Final install): Add to the list of info to include
6990 in a report of a successful bootstrap, and add link to 3.1 list.
6991
3d34cd91
JH
6992Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
6993
6994 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
6995 (mode): Add vector modes
6996 (i387): Kill attribute.
6997 (unit): New attribute.
6998 (length_immediate): Grok new types.
6999 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
7000 (modrm): Use "unit".
7001 (memory): Handle MMX/SSE properly.
7002 (scheduling descriptions): Kill uses of fop1.
7003 (sse, mmx, fp patterns): Set type and mode properly.
7004
243e5500 7005Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
3193c415 7006
30482eb0
JL
7007 * pa.c (override_options): Default to PA8000 scheduling.
7008 * doc/invoke.texi (HP-PA options): Mention newly added 7300
7009 scheduling parameter.
7010
3193c415
JL
7011 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
7012 handling of double precision multiplies.
7013
7014 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
7015 fpdiv and fpsqrt instructions.
7016 (7200 & 7300 scheduling): Fix typo in handling of
7017 store-load and store-store penalties.
7018
c0a34cb7
GP
70192002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7020
7021 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
7022 mips. Add two missing commas.
7023
8bce0628
PC
70242002-04-30 Paolo Carlini <pcarlini@unitus.it>
7025
7026 * doc/contrib.texi (Contributors): Update Paolo Carlini's
7027 and Benjamin Kosnik's entries.
7028
84643cbf
DM
70292002-04-29 David S. Miller <davem@redhat.com>
7030
7031 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
7032 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
7033 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
7034 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7035
da6886f6
FS
70362002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7037
7038 * combine.c (find_split_point): Use gen_int_mode.
7039
fae15c93
VM
70402002-04-29 Vladimir Makarov <vmakarov@redhat.com>
7041
7042 Merging code from dfa-branch:
8998d5bf 7043
fae15c93
VM
7044 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
7045
7046 * genautomata.c (output_reserv_sets): Fix typo.
7047
7048 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
7049
7050 * genautomata.c (output_reserv_sets): Remove
7051 next_cycle_output_flag.
7052
7053 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
7054
8998d5bf
ZW
7055 * sched-rgn.c (init_ready_list): Make the DFA code handle
7056 USE/CLOBBER insns in the same way as the traditional
7057 scheduler.
7058 (new_ready): Similarly..
fae15c93
VM
7059
7060 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
7061
7062 * haifa-sched.c (schedule_block): Change the DFA state only after
7063 issuing insn.
7064
7065 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
7066
7067 * pa.c (hppa_use_dfa_pipeline_interface): New function.
7068 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
7069 (override_options): Add PA7300 scheduling support.
7070 (pa_adjust_cost): Update various comments. Properly
7071 handle anti and output dependencies when using the
7072 DFA scheduler.
7073 (pa_issue_rate): Add PA7300 scheduling support.
7074 (pa_can_combine_p): Call extract_insn before calling
7075 constrain_operands (taken from mainline tree).
7076 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
7077 * pa.md (cpu attr): Add 7300. Rewrite pipeline
7078 descriptions using DFA descriptions. Add PA7300
7079 scheduling support.
7080
7081 2002-03-30 David S. Miller <davem@redhat.com>
7082
7083 Add UltraSPARC-III DFA scheduling support.
7084 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
7085 Update FP conditional move on register insn patterns to use it, as
7086 appropriate.
7087 (define_attr cpu): Add ultrasparc3.
7088 (define_attr us3load_type): New, update integer load patterns to
7089 set it, as appropriate.
7090 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
7091 (rest): Add UltraSPARC3 scheduling description.
7092 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
7093 (PROCESSOR_ULTRASPARC3): New.
7094 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
7095 ({ASM,CPP}_CPU_SPEC): Likewise.
7096 (REGISTER_MOVE_COST): Likewise.
7097 (RTX_COSTS): Likewise.
7098 * config/sparc/sparc.c (sparc_override_options,
7099 sparc_initialize_trampoline, sparc64_initialize_trampoline,
7100 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7101 sparc_issue_rate): Likewise.
7102 * config/sparc/sol2.h: Likewise.
7103 * config/sparc/sol2-sld-64.h: Likewise.
7104 * config/sparc/linux64.h: Likewise.
8998d5bf 7105
fae15c93
VM
7106 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
7107
7108 * doc/md.texi: Add comments about usage the latency time for the
7109 different dependencies and about case when two or more conditions
7110 in different define_insn_reservations returns TRUE for an insn.
7111
7112 * doc/md.texi: Add reference for automaton based pipeline
7113 description.
8998d5bf 7114
fae15c93
VM
7115 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
7116
7117 * doc/passes.texi: Add missed information about genattrtab.
7118
7119 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
7120
7121 * genautomata.c (output_automata_list_transition_code): Check
7122 automata_list on NULL.
7123
7124 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
7125
7126 * genautomata.c (output_insn_code_cases,
7127 output_automata_list_min_issue_delay_code,
7128 output_automata_list_transition_code,
7129 output_automata_list_state_alts_code): Comment the functions.
7130
7131 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
7132
7133 * genautomata.c (automata_list_el_t): New typedef.
7134 (get_free_automata_list_el,free_automata_list_el,
7135 free_automata_list, automata_list_hash, automata_list_eq_p,
7136 initiate_automata_lists, automata_list_start, automata_list_add,
7137 automata_list_finish, finish_automata_lists,
7138 output_insn_code_cases, output_automata_list_min_issue_delay_code,
7139 output_automata_list_transition_code,
7140 output_automata_list_state_alts_code, add_automaton_state,
7141 form_important_insn_automata_lists): New functions and prototypes.
7142 (insn_reserv_decl): Add members important_automata_list and
7143 processed_p.
7144 (ainsn): Add members important_p.
7145 (automata_list_el): New structure.
7146 (first_free_automata_list_el, current_automata_list,
7147 automata_list_table): New global variables.
7148 (create_ainsns): Initiate member important_p.
7149 (output_internal_min_issue_delay_func): Generate the switch and
7150 call output_insn_code_cases.
7151 (output_internal_trans_func, output_internal_state_alts_func):
7152 Ditto.
7153 (generate): Call initiate_automata_lists.
7154 (automaton_states): New global variable.
7155 (expand_automata): Call form_important_insn_automata_lists.
7156 (write_automata): Call finish_automata_lists.
8998d5bf 7157
fae15c93
VM
7158 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
7159
7160 * genautomata.c (add_excls, add_presence_absence): Check that
8998d5bf 7161 cpu units in the sets belong the same automaton.
fae15c93
VM
7162
7163 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
7164 about that cpu units in the sets belong the same automaton.
7165
7166 * doc/md.texi: Ditto.
8998d5bf 7167
2799d721
VM
7168 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
7169 Nitin Gupta <niting@noida.hcltech.com>
8998d5bf 7170
fae15c93
VM
7171 * config/sh/sh.c (sh_use_dfa_interface): New function.
7172
7173 (sh_issue_rate): New Function.
7174 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
7175 TARGET_SCHED_ISSUE_RATE: define.
7176
7177 * config/sh/sh.md: Add DFA based pipeline description for SH4.
7178
8998d5bf
ZW
7179 (define_attr insn_class): New attribute used for DFA
7180 scheduling.
fae15c93
VM
7181 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
7182 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
7183 cmpeqdi_t): Likewise.
7184
7185 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8998d5bf 7186 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
fae15c93
VM
7187 ex_group.
7188 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8998d5bf 7189
fae15c93
VM
7190 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
7191
7192 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
7193 break.
7194
7195 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
7196
7197 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
7198 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
7199 necessary.
7200 (output_dfa_start_func): Initiate new variable insn_codes_length,
7201 (write_automata): Output definition of the new variable.
8998d5bf 7202
fae15c93
VM
7203 2001-10-02 David S. Miller <davem@redhat.com>
7204
7205 * haifa-sched.c (advance_one_cycle): New function.
7206 (schedule_block): Use it.
7207 (queue_to_ready): Use it, and also make sure to advance the DFA
7208 state on all stall cycles, not just those where insn_queue links
7209 are found.
7210
7211 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
7212
7213 * haifa-sched.c (max_issue): Remove last_p argument. Only return
7214 non-zero if the highest-priority instruction could be scheduled.
7215 (choose_ready): Remove last argument from max_issue call.
7216
7217 2001-09-28 David S. Miller <davem@redhat.com>
7218
7219 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
7220 ultrasparc and 3 for other multi-issue sparcs.
7221
7222 2001-09-27 David S. Miller <davem@redhat.com>
7223
7224 * config/sparc/sparc.md (cycle_display): New pattern.
7225 * config/sparc/sparc.c (sparc_cycle_display): New.
7226 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
7227
7228 2001-09-25 David S. Miller <davem@redhat.com>
7229
7230 Convert all of Sparc scheduling to DFA
7231 * config/sparc/sparc.md: Kill all define_function_unit
7232 directives and replace with DFA equivalent.
7233 * config/sparc/sparc.c (ultrasparc_adjust_cost,
7234 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
7235 ultra_fpmode_conflict_exists, ultra_find_type,
7236 ultra_build_types_avail, ultra_flush_pipeline,
7237 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
7238 ultrasparc_variable_issue, ultrasparc_sched_init,
7239 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
7240 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
7241 ultra_cur_hist, ultra_cycles_elapsed): Kill.
7242 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7243 ultrasparc_store_bypass_p): New.
7244 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
7245 Declare.
7246
7247 2001-09-24 David S. Miller <davem@redhat.com>
7248
7249 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
7250 ready->vec[foo] not ready[foo].
7251
7252 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7253
7254 * doc/md.texi: Correct examples for define_insn_reservations
7255 `mult' and `div'.
7256
7257 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7258
7259 * genautomata.c (create_automata): Print message about creation of
7260 each automaton.
7261 (generate): Remove printing meease about creation of
7262 automata.
7263
7264 2001-09-05 David S. Miller <davem@redhat.com>
7265
7266 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7267 * config/sparc/linux64.h: Likewise.
7268
7269 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
7270
7271 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
7272 schedule_block, sched_init, sched_finish): Add missed calls of
7273 use_dfa_pipeline_interface.
7274
7275 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
7276 Ditto.
7277
7278 * sched-vis.c (get_visual_tbl_length): Ditto.
8998d5bf 7279
fae15c93
VM
7280 2001-08-27 Richard Henderson <rth@redhat.com>
7281
7282 * genattr.c (main): Emit state_t even when not doing scheduling.
7283
7284 2001-08-27 Richard Henderson <rth@redhat.com>
7285
7286 * genautomata.c (expand_automata): Always create a description.
7287
7288 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
7289
8998d5bf 7290 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
fae15c93
VM
7291 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
7292 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
7293 RTL constructions.
7294
7295 * genattr.c (main): New variable num_insn_reservations. Increase
7296 it if there is DEFINE_INSN_RESERVATION. Output automaton based
7297 pipeline hazard recognizer interface.
7298
7299 * genattrtab.h: New file.
7300
7301 * genattrtab.c: Include genattrtab.h.
7302 (attr_printf, check_attr_test, make_internal_attr,
7303 make_numeric_value): Move protypes into genattrtab.h. Define them
7304 as external.
7305 (num_dfa_decls): New global variable.
7306 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
7307 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
7308 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
7309 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
7310
7311 * genautomata.c: New file.
7312
7313 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
7314
8998d5bf 7315 * sched-int.h: (curr_state): Add the external definition for
fae15c93
VM
7316 automaton pipeline interface.
7317 (haifa_insn_data): Add comments for members blockage and units.
7318
7319 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7320 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7321 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7322 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7323 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7324 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7325 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
7326 macros.
7327 (TARGET_SCHED): Use the new macros.
7328
7329 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
7330 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
7331 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
7332 dfa_bubble): New members in gcc_target.sched.
7333
8998d5bf 7334 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
fae15c93
VM
7335 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
7336 (insn_queue): Redefine it as pointer to array.
7337 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
7338 INSN_QUEUE_SIZE.
7339 (max_insn_queue_index_macro_value): New variable.
7340 (curr_state, dfa_state_size, ready_try): New varaibles for
7341 automaton interface.
7342 (ready_element, ready_remove, max_issue): New function prototypes
7343 for automaton interface.
7344 (choose_ready): New function prototype.
7345 (insn_unit, blockage_range): Add comments.
7346 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7347 FUNCTION_UNITS_SIZE == 0.
7348 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7349 actual_hazard, potential_hazard): Add comments.
7350 (insn_cost): Use cost -1 as undefined value. Remove
7351 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
7352 pipeline interface.
7353 (ready_element, ready_remove): New functions for automaton
7354 interface.
7355 (schedule_insn): Add new code for automaton pipeline interface.
7356 (queue_to_ready): Add new code for automaton pipeline interface.
7357 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7358 (debug_ready_list): Print newline when the queue is empty.
7359 (max_issue): New function for automaton pipeline interface.
7360 (choose_ready): New function.
7361 (schedule_block): Add new code for automaton pipeline interface.
7362 Print ready list before scheduling each insn.
7363 (sched_init): Add new code for automaton pipeline interface.
7364 Initiate insn cost by -1.
7365 (sched_finish): Free the current automaton state and finalize
7366 automaton pipeline interface.
7367
7368 * sched-rgn.c: Include target.h.
7369 (init_ready_list, new_ready, debug_dependencies): Add new code for
7370 automaton pipeline interface.
7371
7372 * sched-vis.c: Include target.h.
7373 (get_visual_tbl_length): Add code for automaton interface.
7374 (target_units, print_block_visualization): Add comments.
7375
8998d5bf 7376 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
fae15c93
VM
7377 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7378 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7379 (getruntime.o, genautomata.o): New entries.
7380 (genattrtab.o): Add new dependency file genattrtab.h.
7381 (genattrtab): Add new dependencies. Link it with `libm.a'.
7382 (getruntime.o, hashtab.o): New entries for canadian cross.
7383
7384 * doc/md.texi: Description of automaton based model.
7385
7386 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7387 Add comments.
7388 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7389 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7390 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7391 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7392 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7393 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7394 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7395 hook descriptions.
7396 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7397 MAX_DFA_ISSUE_RATE): New macro descriptions.
7398
7399 * doc/contrib.texi: Add dfa based scheduler contribution.
7400
7401 * doc/gcc.texi: Add more information about genattrtab.
7402
a2ff290c
RK
7403Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7404
7405 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
7406 adjust_address_nv call.
7407
f97903cc
JJ
74082002-04-29 Janis Johnson <janis187@us.ibm.com>
7409
7410 * doc/install.texi (Testing): Provide additional information, and
7411 a stronger encouragement, for running the testsuites.
7412
f41a6bf1
DD
74132002-04-29 DJ Delorie <dj@redhat.com>
7414
7415 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7416 given in upper case.
7417
d8af0868
RO
74182002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7419
7420 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7421 Solaris 2 <widec.h> if missing.
7422 * fixinc/fixincl.x: Regenerate.
7423 * fixinc/tests/base/widec.h: New file.
7424
1034407f
NC
74252002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
7426
7427 * toplev.c (f_options): Add "profile" switch so that
7428 -fno-profile can be used to disable -p.
7429
fbe5eb6d
BS
74302002-04-29 Bernd Schmidt <bernds@redhat.com>
7431
7432 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7433 UV2DImode.
7434 * tree.c (build_common_tree_nodes_2): Likewise.
7435 * tree.h (enum tree_index): Likewise.
7436 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7437
7438 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7439 entries.
7440 (init_mmx_sse_builtins): Initialize SSE2 builtins.
7441 (ix86_expand_builtin): Add support for SSE2 builtins.
7442 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7443 (VALID_SSE_REG_MODE): Use it.
7444 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7445 (enum ix86_builtins): Add SSE2 builtins.
7446 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7447 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7448 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7449 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7450 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7451 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7452 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7453 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7454 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7455 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7456 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7457 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7458 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
7459 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7460 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
7461 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
7462 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
7463 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
7464 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
7465 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
7466 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
7467 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
7468 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
7469 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
7470 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
7471 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
7472 lfence_insn): New patterns.
7473 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
7474 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
7475
44aefada
JH
7476Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
7477
7478 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
7479
d5482cdc
GP
74802002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7481
7482 * doc/contrib.texi (Contributors): Add Paolo Carlini and
7483 Janis Johnson.
7484 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
7485 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
7486 and CPU instead of cpu.
7487
2c4b77f3
JH
7488Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7489
7490 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
7491 variables.
7492 (lang_independent_options): Add -fif-conversion, -fif-conversion2
7493 (rest_of_compilation): Do if conversion only when asked for.
7494 (parse_options_and_default_flags): Set new variables to 1 for -O1
7495 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
7496
3de72741
JH
7497Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7498
7499 * i386.c (dbx64_register_map): Fix typo.
7500
8aa18a7d
JH
7501Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7502
7503 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
7504 real_one_half, real_bb_freq_max): New static variables.
7505 (debug_profile_bbauxs): Kill.
7506 (process_note_predictions): Kill unused variable.
7507 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
7508 volatile double.
7509 (propagate_freq): Use REAL_ARITHMETICS.
7510 (estimate_bb_frequencies): Likevise; init new static variables.
7511 * Makefile.in (predict.o): Add dependency on real.h
7512
1bbad4c6
DM
75132002-04-28 David S. Miller <davem@redhat.com>
7514
7515 PR target/6500
7516 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
7517 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
7518 several {reads,writes} instead.
7519 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
7520 Define.
7521
3ef3f384
DM
75222002-04-27 David S. Miller <davem@redhat.com>
7523
7524 PR target/6494
7525 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
7526 of the stack bias.
7527
7528 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
7529 including signal.h and sys/ucontext.h, not needed.
7530
ec493bcb
HPN
75312002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
7532
7533 * varasm.c (output_constant_def): Correct test for not calling
7534 ENCODE_SECTION_INFO for INTEGER_CST.
7535
60284a59
NB
75362002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
7537
7538 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
7539 keep most cases as function eval_token.
7540 (eval_token): New function.
7541 (_cpp_parse_expr): Read token here for improved diagnostics.
7542 Don't use op_as_text. Detect bad ':' here.
7543 (reduce): Don't detect bad ':' here.
7544 (op_as_text): Remove.
7545 * cpphash.h (_cpp_test_assertion): Change prototype.
7546 * cpplib.c (_cpp_test_assertion): Change prototype.
7547
349a4b40
RH
75482002-04-28 Richard Henderson <rth@redhat.com>
7549
7550 PR c/5154
8998d5bf 7551 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
349a4b40
RH
7552 (ggc_mark_rtx_children): New.
7553
7a03f82f
JJ
75542002-04-28 Jakub Jelinek <jakub@redhat.com>
7555
7556 PR target/6496
7557 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
7558 after call peepholes for UltraSPARC.
7559 (call + jump 64-bit peepholes): Remove.
7560
80103f96
FS
75612002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7562
7563 PR c/6497
7564 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
7565 result as temporary value.
7566
06990986
JJ
75672002-04-28 Jakub Jelinek <jakub@redhat.com>
7568
7569 PR c++/6396
7570 * toplev.c (rest_of_compilation): Only run regrename and copy
7571 propagation if optimizing.
7572
a20fd5ac
JJ
75732002-04-28 Jakub Jelinek <jakub@redhat.com>
7574
7575 PR optimization/6475
7576 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
7577 register of REGNO_DECL (i).
7578 * Makefile.in (reload1.o): Add $(TREE_H).
7579
87ed109f
NB
75802002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
7581
7582 * cppexp.c (lex): Update to use state.skip_eval.
7583 (struct op): Remove prio and flags members.
7584 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
7585 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
7586 (LEFT_ASSOC): New macro.
7587 (optab): New table of operator priorities and flags.
7588 (SHIFT): Update.
7589 (_cpp_parse_expr): Clean up logic. Return bool. Use a
7590 malloc-ed parser stack.
7591 (reduce): New; reduce the operator stack.
7592 (_cpp_expand_op_stack): Expand the operator stack as necessary.
7593 * cpphash.h (struct op): Predeclare.
7594 (struct cpp_reader): New members op_stack, op_limit.
7595 (struct lexer_state): New member skip_eval.
7596 (_cpp_parse_expr): Update.
7597 (_cpp_expand_op_stack): New.
7598 * cpplib.c (do_if): Update.
7599 * cppinit.c (cpp_create_reader): Create op stack.
7600 (cpp_destroy): And destroy it.
7601 * cpplib.h (CPP_LAST_CPP_OP): Correct.
7602 (TTYPE_TABLE): Correct.
7603
45806a3f
FS
76042002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7605
7606 PR c/6343
7607 * c-decl.c (duplicate_decls): Call merge_weak.
7608 * c-pragma.c (apply_pragma_weak): Warn about misuse.
7609 * output.h (merge_weak): Prototype merge_weak.
7610 * varasm.c (merge_weak): New function.
7611 (declare_weak): Make sure we don't give an error on VAR_DECLs.
7612 Mark RTL with SYMBOL_REF_WEAK.
7613
a6227154
KG
76142002-04-27 Kurt Garloff <garloff@suse.de>
7615
7616 * tree-inline.c (inlinable_function_p): Improve heuristics
7617 by using a smoother function to cut down allowable inlinable size.
7618 * param.def: Add parameters max-inline-insns-single,
7619 max-inline-slope, min-inline-insns that determine the exact
7620 shape of the above function.
7621 * param.h: Likewise.
7622
94a50397
RH
76232002-04-26 Richard Henderson <rth@redhat.com>
7624
7625 * c-parse.in (malloced_yyss, malloced_yyvs): New.
7626 (yyoverflow): Re-add. Set them.
7627 (free_parser_stacks): New.
7628 * c-common.h: Declare it.
7629 * c-lex.c (c_common_parse_file): Call it.
7630
9c0a0632
RH
76312002-04-26 Richard Henderson <rth@redhat.com>
7632
7633 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
7634 for fallthru search.
7635
b875d2ee
EC
76362002-04-26 Eric Christopher <echristo@redhat.com>
7637
7638 PR optimization/3700
7639 * config/mips/mips.c (mips_issue_rate): Define. New function.
7640 (TARGET_SCHED_ISSUE_RATE): Use.
7641
1db828df
DM
76422002-04-25 David S. Miller <davem@redhat.com>
7643
7644 PR target/6422
7645 * reorg.c (optimize_skip): Do not allow exception causing
7646 instructions to be considered for delay slots.
7647 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
7648 (relax_delay_slots): Do not try to consider exception causing
7649 instructions as redundant.
7650
ae5d234e
RH
76512002-04-26 Richard Henderson <rth@redhat.com>
7652
7653 PR c/5225
7654 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
7655
7d793e9b
MM
76562002-04-26 Mark Mitchell <mark@codesourcery.com>
7657
7658 PR bootstrap/6445
7659 * config/i386/i386.md (untyped_call): Return the value in a float
7660 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
7661 TARGET_80387.
7662
b13ab42c
AO
76632002-04-26 Alexandre Oliva <aoliva@redhat.com>
7664
7665 * tree.c (tree_int_cst_lt): Compare constants whose types differ
7666 in unsigned-ness correctly.
7667
5e56f909
JDA
76682002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7669
7670 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
7671 portable runtime model.
7672
bde3c0c0
RH
76732002-04-26 Richard Henderson <rth@redhat.com>
7674
a6227154 7675 * c-parse.in (yyoverflow): Revert.
bde3c0c0 7676
5276df18
DE
76772002-04-26 David Edelsohn <edelsohn@gnu.org>
7678 Richard Henderson <rth@redhat.com>
7679
7680 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
7681 result as temporary value.
7682
b84a3874
RH
76832002-04-26 Richard Henderson <rth@redhat.com>
7684
7685 PR c/3581
7686 * c-common.c (fix_string_type): Split out of ...
7687 (combine_strings): ... here. Take a varray, not a tree list.
7688 (c_expand_builtin_printf): Use fix_string_type.
7689 * c-common.h: Update decls.
7690 * c-parse.in (string): Remove. Update all uses to use STRING
7691 instead, and not call combine_strings.
7692 (yylexstring): New.
7693 (_yylex): Use it.
7694 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
7695 (build_asm_stmt): Likewise.
7696 * objc/objc-act.c (my_build_string): Use fix_string_type.
7697 (build_objc_string_object): Build varray for combine_strings.
7698
d8ae8cd4
BT
76992002-04-26 Bo Thorsen <bo@suse.co.uk>
7700
7701 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
7702 x86-64.
7703
f8b954fc
NB
77042002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
7705
7706 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
7707 (HAVE_NO_R_OPERAND): Remove.
7708 (HAVE_VALUE): Remove.
7709 (op_to_prio): Update.
7710 (UNARY): Don't alter flags.
7711 (_cpp_parse_expr): want_value used to indicate whether
7712 a number or unary operator is expected next. Distinguish
7713 unary and binary +/-.
7714 (op_as_text): Update for unary operators.
7715
6052bef0
RH
77162002-04-25 Richard Henderson <rth@redhat.com>
7717
7718 PR c/2161
7719 * c-parse.in (yyoverflow): New.
7720
5c5b2283
RH
77212002-04-25 Richard Henderson <rth@redhat.com>
7722
7723 PR c/2098
7724 * c-common.c (shorten_compare): Simplfy conditions leading to
7725 the generation of a warning.
7726
28ce94d4
RH
77272002-04-25 Richard Henderson <rth@redhat.com>
7728
7729 PR c/2035
7730 * expmed.c (extract_bit_field): Fall through to generic code rather
7731 than aborting on subreg special case.
7732
6bfd0c63
DM
77332002-04-25 David S. Miller <davem@redhat.com>
7734
7735 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
7736 for DECL being NULL.
7737
7a430e3b
SC
77382002-04-25 Steve Christiansen <smc@us.ibm.com>
7739
7740 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
7741
45c42d7d
EB
77422002-04-25 Eric Botcazou <ebotcazou@multimania.com>
7743
7744 * c-decl.c (grokdeclarator): Remove outdated ??? note
7745 on invalid declaration of flexible array members.
7746
eb7715a4
RH
77472002-04-25 Richard Henderson <rth@redhat.com>
7748
7749 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
7750
cf5ee720
UW
77512002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7752
7753 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
7754 needed by the compiler, even if they are used as global regs.
7755
d604bca3
MH
77562002-04-25 Matt Hiller <hiller@redhat.com>
7757
7758 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
7759 functions.
7760 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
7761 of the corresponding functions.
7762 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
7763 New prototypes.
b875d2ee 7764
d604bca3
MH
77652002-04-25 Matt Hiller <hiller@redhat.com>
7766
7767 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
7768
7769 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
7770 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
7771 registers, adjust comment accordingly.
7772 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7773 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
7774 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
7775 for coprocessor registers.
7776 (ADDITIONAL_REGISTER_NAMES): Include
7777 ALL_COP_ADDITIONAL_REGISTER_NAMES.
b875d2ee 7778
d604bca3
MH
7779 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
7780 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
7781 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
7782 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
7783 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
7784
7785 (mips_char_to_class): Adjust comment to include coprocessor
7786 constraint letters.
7787
7788 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
7789 New functions.
7790 (mips_reg_names, mips_regno_to_class): Include coprocessor
7791 information.
7792 (mips_sw_reg_names): Ditto, make non-static.
7793 (mips_move_1word): Handle moves to and from coprocessor registers.
7794 (mips_move_2words): Handle moves to and from coprocessor
7795 registers.
7796 (mips_class_max_nregs, mips_register_move_cost): Handle
7797 coprocessor register classes.
7798 (override_options): Initialize mips_char_to_class and
7799 mips_hard_regno_mode_ok properly for coprocessor registers.
7800
7801 * config/mips/mips.md (movdi_internal, movdi_internal2,
7802 movsi_internal1, movsi_internal2): Add constraint-sets for
7803 coprocessor registers.
7804 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
7805 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
7806 isn't mips.
7807 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
7808 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
7809 isn't mips.
7810 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
7811 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
7812 isn't mips.
7813 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
7814 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
7815 isn't mips.
b875d2ee 7816
d604bca3
MH
7817 * doc/tm.texi: Document feature.
7818
b9a26d09
NB
78192002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7820
7821 * integrate.c (function_attribute_inlinable_p): Simplify.
7822 Check the table pointer is not NULL.
7823
ab5973b7
SB
78242002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
7825
7826 * doc/c-tree.texi: Fix typo in introduction.
7827
ff45c01e
NB
78282002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7829
7830 * c-common.h (c_common_parse_file): Update.
7831 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7832 * c-lex.c (YYDEBUG): Get from c-lex.h.
7833 (c_common_parse_file): Update.
7834 * c-lex.h (YYDEBUG, yydebug): New.
7835 * c-parse.in (YYDEBUG): Get from c-lex.h.
7836 (c_set_yydebug): Remove.
7837 * c-tree.h (c_set_yydebug): Remove.
7838 * langhooks-def.h (lhd_do_nothing_i): New.
7839 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
7840 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
7841 * langhooks.c (lhd_do_nothing_i): New.
7842 (lhd_set_yydebug): Remove.
7843 * langhooks.h (struct lang_hooks): Update.
7844 * toplev.c (set_yydebug): New.
7845 (compile_file): Update call to parse_file hook.
7846 (decode_d_option): Update.
7847objc:
7848 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7849
fcae219a
R
7850Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
7851
7852 * loop.c (load_mems): Don't change the interface of called functions.
7853
7854 * calls.c (expand_call): Take current_function_pretend_args_size
7855 into account when setting argblock for sibcalls.
7856
d0fea45a
MH
78572002-04-24 Matt Hiller <hiller@redhat.com>
7858
7859 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
7860 * c-lex.c: Ditto.
7861
7862 * cpplex.c (skip_line_comment): Process comment one multibyte
7863 character at a time rather than one char at a time, if
7864 appropriate.
7865 (parse_string): Process string one multibyte character at a time
7866 rather than one char at a time, if appropriate.
7867 * c-lex.c (lex_string): Lex and copy multibyte strings
7868 appropriately.
7869 * cpplib.h (cppchar_t): Change to unsigned.
7870
2d1b5436
RH
78712002-04-24 Richard Henderson <rth@redhat.com>
7872
7873 PR c/3467
7874 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7875 for c99.
7876
5e039e6b
R
7877Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
7878
7879 * sh.c (sh_va_arg): If argument was passed by reference,
7880 dereference the pointer.
309d8365
R
7881
7882 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
51214775
R
7883
7884 * sh.md (divsi3_i4_media): Use match_operand for input values
7885 rather than hard registers.
7886 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7887 unnecessarily through hard registers. Keep copies of pseudo
7888 registers outside of the libcall sequence.
7889
7890 * sh.md (casesi_shift_media): Add modes.
b700634a
R
7891
7892 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
7893 values in memory.
7894
349ae713
NB
78952002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
7896
7897 * attribs.c (c_common_attribute_table): Move table and handlers
7898 to c-common.c.
7899 (format_attribute_table, lang_attribute_table,
7900 lang_attribute_common): Remove.
7901 (init_attributes): Replace NULL pointers with pointers to the
7902 empty table.
7903 (handle_packed_attribute, handle_nocommon_attribute,
7904 handle_common_attribute, handle_noreturn_attribute,
7905 handle_noinline_attribute, handle_always_inline_attribute,
7906 handle_used_attribute, handle_unused_attribute,
7907 handle_const_attribute, handle_transparent_union_attribute,
7908 handle_constructor_attribute, handle_destructor_attribute,
7909 handle_mode_attribute, handle_section_attribute,
7910 handle_aligned_attribute, handle_weak_attribute,
7911 handle_alias_attribute, handle_visibility_attribute,
7912 handle_no_instrument_function_attribute, handle_malloc_attribute,
7913 handle_no_limit_stack_attribute, handle_pure_attribute,
7914 handle_deprecated_attribute, handle_vector_size_attribute,
7915 vector_size_helper): Move to c-common.c.
7916 * c-common.c (c_common_attribute_table,
7917 handle_packed_attribute, handle_nocommon_attribute,
7918 handle_common_attribute, handle_noreturn_attribute,
7919 handle_noinline_attribute, handle_always_inline_attribute,
7920 handle_used_attribute, handle_unused_attribute,
7921 handle_const_attribute, handle_transparent_union_attribute,
7922 handle_constructor_attribute, handle_destructor_attribute,
7923 handle_mode_attribute, handle_section_attribute,
7924 handle_aligned_attribute, handle_weak_attribute,
7925 handle_alias_attribute, handle_visibility_attribute,
7926 handle_no_instrument_function_attribute, handle_malloc_attribute,
7927 handle_no_limit_stack_attribute, handle_pure_attribute,
7928 handle_deprecated_attribute, handle_vector_size_attribute,
7929 vector_size_helper): Move from attribs.c.
7930 * c-common.h (c_common_attribute_table,
7931 c_common_format_attribute_table): New.
7932 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7933 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7934 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7935 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
7936 (LANG_HOOKS_INITIALIZER): Update.
7937 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
7938 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
7939 * target.h: Update comment.
7940 * tree.c (default_target_attribute_table): Remove.
7941 * tree.h (default_target_attribute_table, format_attribute_table,
7942 lang_attribute_table, lang_attribute_common): Remove.
7943objc:
7944 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7945 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7946
84f0ace0
JM
79472002-04-24 Jason Merrill <jason@redhat.com>
7948
7949 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
7950 * dwarf2out.c (dwarf_attr_name): Support it.
7951 (gen_array_type_die): Emit it.
7952 (lookup_type_die): No special handling for VECTOR_TYPE.
7953 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
7954
120eaf28
RH
79552002-04-24 Richard Henderson <rth@redhat.com>
7956
7957 * config/mips/mips.md (movdi_usd): Renumber.
7958
e732178c
DM
79592002-04-24 David S. Miller <davem@redhat.com>
7960
7961 PR target/6420
7962 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
7963 32-bit Sparc and current_function_returns_struct is true.
7964
e879eb2f
JH
7965Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7966
7967 * loop.c (canonicalize_condition): Use gen_int_mode.
7968
4287a893
AH
79692002-04-24 Aldy Hernandez <aldyh@redhat.com>
7970
7971 * config/rs6000/altivec.h: Cleanup file. Add non individual
7972 variants.
7973 (vec_vaddubm): New.
7974 (vec_vadduhm): New.
7975 (vec_vadduwm): New.
7976 (vec_vaddfp): New.
7977 (vec_vaddcuw): New.
7978 (vec_vaddubs): New.
7979 (vec_vaddsbs): New.
7980 (vec_vadduhs): New.
7981 (vec_vadduws): New.
7982 (vec_vaddsws): New.
7983 (vec_vand): New.
7984 (vec_vandc): New.
7985 (vec_vavgub): New.
7986 (vec_vavgsb): New.
7987 (vec_vavguh): New.
7988 (vec_vavgsh): New.
7989 (vec_vavguw): New.
7990 (vec_vavgsw): New.
7991 (vec_vrfip): New.
7992 (vec_vcmpbfp): New.
7993 (vec_vcmpequb): New.
7994 (vec_vcmpequh): New.
7995 (vec_vcmpequw): New.
7996 (vec_vcmpeqfp): New.
7997 (vec_vcmpgefp): New.
7998 (vec_vcmpgtub): New.
7999 (vec_vcmpgtsb): New.
8000 (vec_vcmpgtuh): New.
8001 (vec_vcmpgtsh): New.
8002 (vec_vcmpgtuw): New.
8003 (vec_vcmpgtsw): New.
8004 (vec_vcmpgtfp): New.
8005 (vec_vcmpgefp): New.
8006 (vec_vcfux): New.
8007 (vec_vcfsx): New.
8008 (vec_vctsxs): New.
8009 (vec_vctuxs): New.
8010 (vec_vexptefp): New.
8011 (vec_vrfim): New.
8012 (vec_lvx): New.
8013 (vec_lvebx): New.
8014 (vec_lvehx): New.
8015 (vec_lde): Add vector float variant.
8016 (vec_lvewx): New.
8017 (vec_lvxl): New.
8018 (vec_vlogefp): New.
8019 (vec_vmaddfp): New.
8020 (vec_vmhaddshs): New.
8021 (vec_vmaxub): New.
8022 (vec_vmaxsb): New.
8023 (vec_vmaxuh): New.
8024 (vec_vmaxsh): New.
8025 (vec_vmaxuw): New.
8026 (vec_vmaxsw): New.
8027 (vec_vmaxsw): New.
8028 (vec_vmaxfp): New.
8029 (vec_vmrghb): New.
8030 (vec_vmrghh): New.
8031 (vec_vmrghw): New.
8032 (vec_vmrglb): New.
8033 (vec_vmrglh): New.
8034 (vec_vmrglw): New.
8035 (vec_vminub): New.
8036 (vec_vminsb): New.
8037 (vec_vminuh): New.
8038 (vec_vminsh): New.
8039 (vec_vminuw): New.
8040 (vec_vminsw): New.
8041 (vec_vminfp): New.
8042 (vec_vmladduhm): New.
8043 (vec_vmhraddshs): New.
8044 (vec_msumubm): New.
8045 (vec_vmsummbm): New.
8046 (vec_vmsumuhm): New.
8047 (vec_vmsumshm): New.
8048 (vec_vmsumuhs): New.
8049 (vec_vmsumshs): New.
8050 (vec_vmuleub): New.
8051 (vec_vmulesb): New.
8052 (vec_vmuleuh): New.
8053 (vec_vmulesh): New.
8054 (vec_vmuloub): New.
8055 (vec_mulosb): New.
8056 (vec_vmulouh): New.
8057 (vec_vmulosh): New.
8058 (vec_vnmsubfp): New.
8059 (vec_vnor): New.
8060 (vec_vor): New.
8061 (vec_vpkuhum): New.
8062 (vec_vpkuwum): New.
8063 (vec_vpkpx): New.
8064 (vec_vpkuhus): New.
8065 (vec_vpkshss): New.
8066 (vec_vpkuwus): New.
8067 (vec_vpkswss): New.
8068 (vec_vpkshus): New.
8069 (vec_vpkswus): New.
8070 (vec_vperm): New.
8071 (vec_vrefp): New.
8072 (vec_vrlb): New.
8073 (vec_vrlh): New.
8074 (vec_vrlw): New.
8075 (vec_vrfin): New.
8076 (vec_vrsqrtefp): New.
8077 (vec_vsel): New.
8078 (vec_vslb): New.
8079 (vec_vslh): New.
8080 (vec_vslw): New.
8081 (vec_vsldoi): New.
8082 (vec_vsl): New.
8083 (vec_vslo): New.
8084 (vec_vspltb): New.
8085 (vec_vsplth): New.
8086 (vec_vspltw): New.
8087 (vec_vspltisb): New.
8088 (vec_vspltish): New.
8089 (vec_vspltisw): New.
8090 (vec_vsrb): New.
8091 (vec_vsrh): New.
8092 (vec_vsrw): New.
8093 (vec_vsrab): New.
8094 (vec_vsrah): New.
8095 (vec_vsraw): New.
8096 (vec_vsr): New.
8097 (vec_vsro): New.
8098 (vec_stvx): New.
8099 (vec_stvebx): New.
8100 (vec_stvehx): New.
8101 (vec_stvewx): New.
8102 (vec_stvxl): New.
8103 (vec_vsububm): New.
8104 (vec_vsubuhm): New.
8105 (vec_vsubuwm): New.
8106 (vec_vsubfp): New.
8107 (vec_vsubcuw): New.
8108 (vec_vsububs): New.
8109 (vec_vsubsbs): New.
8110 (vec_vsubuhs): New.
8111 (vec_vsubshs): New.
8112 (vec_vsubuws): New.
8113 (vec_vsubsws): New.
8114 (vec_vsum4ubs): New.
8115 (vec_vsum4sbs): New.
8116 (vec_vsum4shs): New.
8117 (vec_vsum2sws): New.
8118 (vec_vsumsws): New.
8119 (vec_vrfiz): New.
8120 (vec_vupkhsb): New.
8121 (vec_vupkhpx): New.
8122 (vec_vupkhsh): New.
8123 (vec_vupklsb): New.
8124 (vec_vupklpx): New.
8125 (vec_vupklsh): New.
8126 (vec_vxor): New.
8127
cff27795
EB
81282002-04-23 Eric Botcazou <ebotcazou@multimania.com>
8129
8130 PR c/5430
8131 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
8132 added literals from substracted literals.
8133 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
8134 (fold) [associate]: Preserve MINUS_EXPR if needed.
8135
952bca84
ZW
81362002-04-23 Zack Weinberg <zack@codesourcery.com>
8137
8138 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
8139 are obsoleted.
8140
50cb2154
TT
81412002-04-23 Tom Tromey <tromey@redhat.com>
8142
8143 * gcc.c: Added --resource. For PR java/6314.
8144
271f61fb
DB
81452002-04-23 David O'Brien <obrien@FreeBSD.org>
8146
9566d1e9 8147 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
271f61fb
DB
8148 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
8149 these libraries.
8150
bdabbc80
DB
81512002-04-23 David O'Brien <obrien@FreeBSD.org>
8152
8153 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
8154
74411039
JH
8155Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
8156
8157 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
8158 workaround.
8159 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
8160 (ix86_expand_clrstr): Fix typo.
8161 * loop.c (gen_load_of_final_value): New.
8162 (loop_givs_rescan, strength_reduce, check_dbra_loop):
8163 Use it.
8164
1a887f86
RS
81652002-04-23 Roger Sayle <roger@eyesopen.com>
8166
8167 * builtins.c (builtin_memset_gen_str): New function.
8168 (expand_builtin_memset): Optimize the case of constant length, but
8169 unknown value.
8170
8d3441e0
AH
81712002-04-23 Aldy Hernandez <aldyh@redhat.com>
8172
cff27795
EB
8173 * config/rs6000/altivec.h (vec_step): Remove extraneous
8174 parentheses.
8175 (vec_ctu): Cast return.
8d3441e0 8176
f6f315fe
AM
81772002-04-23 Alan Modra <amodra@bigpond.net.au>
8178
8179 PR target/6413
8180 * function.h: (struct function): Add profile_label_no field.
8181 (current_function_profile_label_no): Define.
8182 * function.c: (profile_label_no): New static var.
8183 (expand_function_start): Increment it, and copy to
8184 current_function_profile_label_no.
8185 * output.h (profile_label_no): Delete.
8186 * final.c (profile_label_no): Delete.
8187 (profile_function): Use current_function_profile_label_no.
8188 (final_end_function): Don't increment profile_label_no here.
8189 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
8190 profile_label_no with current_function_profile_label_no.
8191 * config/pa/pa.c (current_function_number): Delete.
8192 (pa_output_function_prologue): Don't output profile label here.
8193 (hppa_profile_hook): Use label_no param rather than
8194 current_function_number.
8195 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
8196 * config/pa/pa.h: .. here.
8197 (FUNCTION_PROFILER): Output profile label here.
8198
d239cdc0
EC
81992002-04-22 Eric Christopher <echristo@redhat.com>
8200
8201 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
8202 patch of 2002-04-09 due to binutils issues.
8203 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
8204
04428ad4
AH
82052002-04-22 Aldy Hernandez <aldyh@redhat.com>
8206
cff27795
EB
8207 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
8208 constraint to 'o' for m=r and r=m alternatives.
8209 ("*movv8hi_internal1"): Same.
8210 ("*movv16qi_internal1"): Same.
8211 ("*movv4sf_internal1"): Same.
04428ad4 8212
2adc7f12
JJ
82132002-04-22 Janis Johnson <janis187@us.ibm.com>
8214
8215 * rtl.h (RTX_FLAG): New macro.
8216 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
8217 * final.c (alter_subreg): Use macro to access rtx flag.
8218 * integrate.c (copy_rtx_and_substitute): Use new access macro.
8219 * print-rtl.c (print_rtx): Use new access macro.
8220
8221 * cse.c (insert): Check rtx code before accessing flag.
8222
8223 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
8224 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
8225 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
8226 convert_const_symbol_ref, make_canonical, make_alternative_compare,
8227 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
8228 simplify_test_exp, optimize_attrs, simplify_by_exploding,
8229 find_and_mark_used_attributes, unmark_used_attributes,
8230 add_values_to_cover, simplify_with_current_value,
8231 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
8232 copy_rtx_unchanging, main): Use new access macros.
8233
b7c89afe
TR
82342002-04-22 Tom Rix <trix@redhat.com>
8235
8236 * expmed.c (init_expmed): Generate shifted constant once.
8237
9340544b
ZW
82382002-04-22 Zack Weinberg <zack@codesourcery.com>
8239
8240 * c-lex.c (lex_charconst): Call convert to get constant in
8241 proper type; don't just smash the type field.
8242 Fixes PR c/6300.
8243
8244 * config.gcc: Add list of obsolete configurations. Disallow
8245 building these without --enable-obsolete.
8246 * doc/install.texi: Document --enable-obsolete and obsoletion
8247 policy. Mention obsoletion of individual targets in
8248 appropriate places.
8249
f942d7a5
RH
82502002-04-22 Richard Henderson <rth@redhat.com>
8251
8252 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
8253
82542002-04-22 Mark Mitchell <mark@codesourcery.com>
8ed8f731
MM
8255
8256 PR f/6138.
8257 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
8258 (walk_fixup_memory_subreg): Likewise.
8259 (fixup_var_refs_insn): Adjust accordingly.
8260 (fixup_var_refs_1): Likewise.
8261
232b0b45
UW
82622002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
8263
8264 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
8265 LIBPATH_ARCH64_SPEC): Define.
8266 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
8267 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
8268 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
8269 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
8270
1b61552b
JS
82712002-04-22 Joel Sherrill <joel@OARcorp.com>
8272
8273 * gthr-rtems.h: Correct prototypes to remove warnings.
8274
0fe854a7
RH
82752002-04-22 Richard Henderson <rth@redhat.com>
8276
8277 PR c/6344
8278 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
8279
8280 * gcse.c (free_insn_expr_list_list): New.
8281 (clear_modify_mem_tables): Use it. Fix bit set usage.
8282 (canon_list_insert): Use EXPR_LISTs for expressions.
8283 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
8284
af0d16cd
NB
82852002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
8286
8287 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
8288 file change and include code to _cpp_pop_buffer.
8289 * cpphash.h (struct pending_option): Predeclare.
8290 (struct cpp_reader): New member next_include_file.
8291 (_cpp_pop_file_buffer): Update.
8292 (_cpp_push_next_buffer): Update, rename.
8293 * cppinit.c (cpp_destroy): Free include chain and pending here.
8294 (cpp_finish_options): Simplify.
8295 (_cpp_push_next_buffer): Rename and clean up.
8296 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
8297 Clarify.
8298 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
8299
0d918572
AH
83002002-04-22 Aldy Hernandez <aldyh@redhat.com>
8301
0fe854a7
RH
8302 * config/rs6000/altivec.h (vec_xor): Add variant for both args
8303 being vector signed int.
8304 (vec_andc): Same.
8305 (vec_xor): Add variant for both args being vector signed char.
8306 Remove redundant variant.
8307 (vec_andc): Same.
0d918572 8308
77e2c290
DM
83092002-04-21 David S. Miller <davem@redhat.com>
8310
8311 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
8312 compare mode in output RTL.
8313
ee2ca2a2
DE
83142002-04-22 David Edelsohn <edelsohn@gnu.org>
8315
8316 * config/rs6000/rs6000.c (rs6000_override_options): Correct
8317 style and formatting of previous patch.
8318
894bdff6
AM
83192002-04-22 Alan Modra <amodra@bigpond.net.au>
8320
8321 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
8322 flag_pic for ABI_AIX.
8323
562a5c27
NB
83242002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8325
8326 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
8327 * cppfiles.c (read_include_file): Similarly.
8328 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
8329 uxstrdup ustrchr, ufputs): Similarly.
8330 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
8331 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
8332 cpp_ideq, parse_identifier, parse_number): Similarly.
8333 * cpplib.c (struct directive, dequote_string, D, run_directive,
8334 cpp_push_buffer): Similarly.
8335 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
8336 _cpp_create_definition, check_trad_stringification,
8337 cpp_macro_definition): Similarly.
8338
9ac3b1be
NB
83392002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8340
8341 * cppmacro.c (funlike_invocation_p): Don't step back
8342 over CPP_EOF.
8343
9dda4cc8
DE
83442002-04-21 David Edelsohn <edelsohn@gnu.org>
8345
8346 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
8347 labelno.
8348
20764052
JM
83492002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
8350
8351 * doc/invoke.texi: Remove Chill references.
8352 * doc/gcc.texi: Update last modified date.
8353
26b29884
KH
83542002-04-20 Kazu Hirata <kazu@hxi.com>
8355
8356 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
8357 push and pop. Replace add.l with add.w.
8358
59184677
TM
83592002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8360
8361 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
8362 multiply instructions for H8/300H case.
8363
b1113e0a
TM
83642002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8365
8366 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
8367 Bum three instructions from each routine.
8368
b03e38e1
NB
83692002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
8370
8371 * Makefile.in: Update.
8372 * decl.c (push_c_function_context, pop_c_function_context,
8373 mark_c_function_context): Rename for consistency.
8374 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
8375 * c-tree.h (push_c_function_context, pop_c_function_context,
8376 mark_c_function_context): Rename for consistency.
8377 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8378 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8379 * function.c (init_lang_status, save_lang_status,
8380 restore_lang_status, mark_lang_status, free_lang_status):
8381 Move to langhooks.h.
8382 (push_function_context_to, pop_function_context_from,
8383 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
8384 Update.
8385 * function.h (init_lang_status, save_lang_status,
8386 restore_lang_status, mark_lang_status, free_lang_status):
8387 Move to langhooks.h.
8388 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
8389 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8390 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
8391 LANG_HOOKS_FUNCTION_INITIALIZER): New.
8392 (LANG_HOOKS_INITIALIZER): Update.
8393 (lhd_do_nothing_f): New.
8394 * langhooks.h (struct lang_hooks_for_functions): New.
8395 (struct lang_hooks): New hooks.
8396 * langhooks.c (lhd_do_nothing_f): New.
8397objc:
8398 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8399 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8400
db430d26
DM
84012002-04-19 David S. Miller <davem@redhat.com>
8402
8403 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
8404 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
8405
0f2a3457
JJ
84062002-04-19 Jakub Jelinek <jakub@redhat.com>
8407
8408 PR optimization/3756
8409 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
8410 x = ((int) y < 0) ? cst1 : cst2.
8411
ce5e43d0
JJ
84122002-04-19 Jakub Jelinek <jakub@redhat.com>
8413
8414 PR c/6358
8415 * function.c: Reapply patch for c/6358.
8416 (expand_function_end): Copy decl_rtl's mode, not
8417 current_function_return_rtx mode.
8418
84192002-04-19 Joel Sherrill <joel@OARcorp.com>
9eb83f6c
JS
8420
8421 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8422 targets.
8423
40e7f8ea
TT
84242002-04-19 Tom Tromey <tromey@redhat.com>
8425
8426 * doc/install.texi (Specific): Update status of Solaris 2.8.
8427 For PR libgcj/6158.
8428
62a12b27
AS
84292002-04-19 Andreas Schwab <schwab@suse.de>
8430
8431 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8432 (PUT_REAL): Restore old definition.
8433
1405141b
DN
84342002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
8435 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8436
8437 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8438 binutils 2.11.2 and higher generate smaller binaries than Sun's
8439 native tools.
8440
303a3927
MM
84412002-04-19 Mark Mitchell <mark@codesourcery.com>
8442
8443 PR c++/6352
8444 * toplev.c (rest_of_compilation): Do not defer functions for which
8445 TREE_SYMBOL_REFERENCED has already been set.
8446
de80110b
JH
8447Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
8448
8449 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8450 alternative.
8451
ab393bf1
NB
84522002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
8453
8454 * builtins.c: Include langhooks.h.
8455 (lang_type_promotes_to): Remove.
8456 (expand_builtin_va_arg): Use new hook.
8457 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8458 (simple_type_promotes_to): Move to c-typeck.c.
8459 * c-common.h (simple_type_promotes_to): Remove.
8460 * c-decl.c (duplicate_decls, grokdeclarator): Update.
8461 * c-format.c: Include langhooks.h.
8462 (check_format_types): Update.
8463 * c-tree.h (c_type_promotes_to): New.
8464 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
8465 (type_lists_compatible_p): Update.
8466 * langhooks-def.h (lhd_type_promotes_to): New.
8467 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
8468 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8469 * langhooks.c (lhd_type_promotes_to): New.
8470 * langhooks.h (struct lang_hooks_for_types): New hook.
8471 * tree.h (lang_type_promotes_to): Remove.
8472objc:
8473 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
8474
0cd3301b
RH
84752002-04-18 Richard Henderson <rth@redhat.com>
8476
58533fa2 8477 * function.c: Revert patch for c/6358.
0cd3301b
RH
8478
84792002-04-18 Richard Henderson <rth@redhat.com>
8480
58533fa2
RH
8481 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
8482 blocks. Handle multiple references to the TRAP block. Handle
8483 non-adjacent THEN and OTHER blocks.
0cd3301b 8484
58533fa2
RH
84852002-04-18 Richard Henderson <rth@redhat.com>
8486
8487 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
8488 crash with no type for by-mode libcalls.
8489
8490 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
0cd3301b 8491
57174693
BW
84922002-04-18 Bob Wilson <bob.wilson@acm.org>
8493
8494 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
8495 __xtensa_nonlocal_goto): Use a syscall instructions to flush
8496 the register windows.
8497
46468cd9
ZW
84982002-04-18 Zack Weinberg <zack@codesourcery.com>
8499
8500 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
8501 appropriate. Document need for extended precision even when
8502 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
8503 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
8504 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
8505 instead of relying on later syntax error when REAL_WIDTH > 5.
8506 * real.c: Define NE based only on whether or not we have a
8507 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
8508 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
8509 define GET_REAL and PUT_REAL as simple memcpy operations; no
8510 need to byteswap or round.
8511 Use #error instead of #ifdef-ing out the entire file, for
8512 prompt error detection.
8513
8514 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
8515
2f82dbf8
DM
85162002-04-18 David S. Miller <davem@redhat.com>
8517
8518 * config/sparc/sparc.h (BRANCH_COST): Define.
8519
8520 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
8521 does it.
8522
566576e7
HPN
85232002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
8524
8525 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
8526 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
8527 propagate_block calls after relaxation loop using new variable
8528 stabilized_prop_flags.
8529
51dcde6f
RH
85302002-04-18 Richard Henderson <rth@redhat.com>
8531
8532 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
8533 (ia64_va_arg): Expect variable sized types by reference.
8534 * config/ia64/ia64-protos.h: Update.
46468cd9 8535 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
51dcde6f
RH
8536 ia64_function_arg_pass_by_reference.
8537
26406018
RH
85382002-04-18 Richard Henderson <rth@redhat.com>
8539
46468cd9
ZW
8540 * ifcvt.c: Include except.h.
8541 (block_has_only_trap): Break out from find_cond_trap.
8542 (find_cond_trap): Use it. Always delete the trap block.
8543 (merge_if_block): Allow then block null. Be less simplistic about
8544 what insns can end a block.
8545 * Makefile.in (ifcvt.o): Depend on except.h.
96b453dc 8546
26406018
RH
8547 * config/ia64/ia64.md (trap, conditional_trap): New.
8548
a3acf46d
JJ
85492002-04-18 Jakub Jelinek <jakub@redhat.com>
8550
8551 PR c/6358
8552 * function.c (assign_parms): Assign hard current_function_return_rtx
8553 register here...
8554 (expand_function_end): ...not here.
8555
7a228918
NB
85562002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
8557
8558 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8559 * c-tree.h (c_incomplete_type_error): New.
8560 * c-typeck.c (require_complete_type, build_component_ref): Update.
8561 (incomplete_type_error): Rename.
8562 * langhooks-def.h (lhd_incomplete_type_error): New.
8563 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
8564 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8565 * langhooks.c (lhd_incomplete_type_error): New.
8566 * langhooks.h (struct lang_hooks_for_types): New hook.
8567 * tree.c (size_in_bytes): Use new hook.
8568 * tree.h (incomplete_type_error): Remove.
8569objc:
8570 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8571
f18664c1
ZW
85722002-04-18 Zack Weinberg <zack@codesourcery.com>
8573
8574 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
8575 TARGET_FLOAT_FORMAT blocks.
8576
8ecab453
GP
85772002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8578
8579 * doc/install.texi (Downloading the source): Do not mention Chill
8580 any longer, but mention Ada.
8581 (Configuration): Do not mention Chill any longer.
8582
528d8489
HPN
85832002-04-18 Hans-Peter Nilsson <hp@axis.com>
8584
8585 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
8586
91da27c5
JH
8587Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
8588
8589 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8590 in last patch.
8591
a32db605
JJ
85922002-04-18 Jakub Jelinek <jakub@redhat.com>
8593
8594 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
8595 instead of unsigned_type.
8596
5a28d8cc
JH
8597Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
8598
8599 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
8600 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
8601 later.
8602
3d980b9f
BS
86032002-04-18 Bernd Schmidt <bernds@redhat.com>
8604
8605 * attribs.c (vector_type_node_list): New static variable.
8606 (handle_vector_size_attribute): Use it to avoid generating a
8607 new type node each time we are called.
8608
2e676d78
BS
8609 * combine.c (subst): Avoid trying to make a vector mode subreg of
8610 an integer constant.
8611 (gen_lowpart_for_combine): Likewise.
46468cd9 8612
58c2956c
RS
86132002-04-18 Roger Sayle <roger@eyesopen.com>
8614 Jakub Jelinek <jakub@redhat.com>
8615
8616 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
8617 for integer constant c (if x has unsigned type or sign bit is not
8618 set in c). This folds the zero/sign extension into the bit-wise and
8619 operation.
8620
692efa8e
JJ
86212002-04-18 Jakub Jelinek <jakub@redhat.com>
8622
8623 PR middle-end/6205
8624 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
8625 otherwise xorps.
8626
1372d4ce
NY
86272002-04-17 NIIBE Yutaka <gniibe@m17n.org>
8628
8629 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
8630
169ce44d
NC
86312002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
8632
8633 * gcc.c (read_specs): Detect and fail if an attempt is made to
8634 rename a spec string to an already existing string.
8635
b30d2115
UW
86362002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8637
8638 * config/s390/s390.c (legitimize_pic_address): Do not generate
8639 illegal address constant without CONST.
8640
d6964c30
KG
86412002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8642
8643 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
8644 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8645
7c82a1ed
UW
86462002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8647
8648 PR optimization/6305
8649 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
8650 to make sure previous reloads are taken into account. Generate
8651 better code if one operand is an in-range immediate constant.
8652
58db9d1a
AH
86532002-04-16 Andrew Haley <aph@cambridge.redhat.com>
8654
8655 * doc/install.texi (Building): libgcj requires GNU make.
8656
2a732575
JJ
86572002-04-17 Jakub Jelinek <jakub@redhat.com>
8658
8659 PR bootstrap/6315
8660 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
8661 even if hard quad and register is not floating.
8662 (movtf reg<-mem split): Disallow splitting if hard quad and
8663 register is floating.
8664 (movtf mem<-reg split): Likewise.
8665 * config/sparc/sparc.c (fp_register_operand): New predicate.
8666 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
8667
75a65e46
ZW
86682002-04-17 Zack Weinberg <zack@codesourcery.com>
8669
8670 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
8671 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
8672 (unprotoize.o): Ditto. Build from protoize.c. Define
8673 UNPROTOIZE on command line.
8674 * protoize.c: Include cppdefault.h. Delete include_defaults.
8675 (in_system_include_dir): Use cpp_include_defaults (defined in
8676 cppdefault.o).
8677 * unprotoize.c: Delete file.
8678
650f0e97
AH
86792002-04-17 Aldy Hernandez <aldyh@redhat.com>
8680
46468cd9
ZW
8681 * config/rs6000/altivec.h (vec_ld): Add array variants.
8682 (vec_lde): Same.
8683 (vec_ldl): Same.
650f0e97 8684
71a0ab0c 86852002-04-17 Alan Matsuoka <alanm@redhat.com>
46468cd9 8686 Aldy Hernandez <aldyh@redhat.com>
71a0ab0c 8687
46468cd9
ZW
8688 * config/rs6000/altivec.h: Define __ALTIVEC__.
8689 (bool): New.
8690 (__pixel): New.
8691 (pixel): New.
8692 (vec_cfux): New.
8693 (vec_vmaddfp): New.
8694 (vec_vsldoi): New.
8695 Add parentheses to all macro arguments.
71a0ab0c 8696
ff2c46ac
RH
86972002-04-16 Richard Henderson <rth@redhat.com>
8698
8699 PR c++/6320
8700 * except.c (remove_eh_handler): Insert inner regions at beginning
8701 of sibling chain. Refactor expressions.
8702
f1ba94dd
RH
87032002-04-16 Richard Henderson <rth@redhat.com>
8704
f0871dfe
RH
8705 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
8706 * config/sparc/sol2-gas-bi.h: New file.
8707 * config.gcc (sparc*-solaris): Add it as needed.
8708 * configure.in (AS_SPARC64_FLAG): Remove check.
8709 * config.in, configure: Regenerate.
8710
8711 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
8712
87132002-04-16 Richard Henderson <rth@redhat.com>
8714
8715 * config/mips/mips.c (override_options): Don't override N32 for
8716 a 64-bit ISA.
409d3c60 8717
f1ba94dd
RH
8718 PR 6202
8719 * config/mips/mips.md (can_delay): Split out of existing define_delays.
8720 (HILO_delay): Set can_delay false.
8721
178c3eff
DJ
87222002-04-16 Dale Johannesen <dalej@apple.com>
8723
8724 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
8725 instruction addresses.
8726 (rs6000_output_function_epilogue): Likewise.
8727
7d6f6369
PC
87282002-04-16 Paolo Carlini <pcarlini@unitus.it>
8729
8730 * c-parse.in (poplevel, compstmt_start,
8731 compstmt_primary_start): Add ending ';', in accordance
8732 with POSIX.
8733
8947df0c
RH
87342002-04-16 Richard Henderson <rth@redhat.com>
8735
8736 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
8737 Adjust tm_file order to get TARGET_DEFAULT set properly.
8738 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
8739 * doc/install.texi (sparc-solaris): Update.
8740
3148ad6d
DJ
87412002-04-16 Dale Johannesen <dalej@apple.com>
8742
8743 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
8744 comparison operands do not match each other or if modes of
8745 conditions do not match result.
8746
014cb9b6 87472002-04-16 Hartmut Penner <hpenner@de.ibm.com>
562a69be 8748
014cb9b6
HP
8749 PR target/6305
8750 * config/s390/s390.md (mulsidi3): Set both subregs of the
46468cd9 8751 multiword register.
562a69be 8752
014cb9b6 87532002-04-16 Aldy Hernandez <aldyh@redhat.com>
4c8c0dec 8754
8947df0c 8755 * config/rs6000/altivec.h (vec_addc): Type check.
4c8c0dec 8756
a9772b60
JJ
87572002-04-16 Jakub Jelinek <jakub@redhat.com>
8758
8759 PR middle-end/6279
8760 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
8761
8762 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
8763
861829ed
RH
87642002-04-15 Richard Henderson <rth@redhat.com>
8765
8766 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
8767 call_really_used_regs too.
8768
bcf2fe9c
RH
87692002-04-15 Richard Henderson <rth@redhat.com>
8770
8771 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
8772
629111c7
DM
87732002-04-15 David S. Miller <davem@redhat.com>
8774
8775 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
8776 as being CLOBBERed.
8777
98ef3137
JJ
87782002-04-16 Jakub Jelinek <jakub@redhat.com>
8779
8780 PR c/6290
8781 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
8782 CONST_VECTOR is { 0, ... 0 }.
8783
0aa911c5
LR
87842002-04-15 Loren J. Rittle <ljrittle@acm.org>
8785
8786 * doc/install.texi (Installing GCC: Configuration): Clarify
8787 the only supported ways to configure gcc.
8788
83248d49 87892002-04-15 Roland McGrath <roland@frob.com>
46468cd9 8790
83248d49
RM
8791 * config.gcc (alpha*-*-gnu*): New target configuration.
8792 * config/alpha/gnu.h: New file for it.
8793 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
8794
b2123dc0
MM
87952002-04-16 Mark Mitchell <mark@codesourcery.com>
8796
8797 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
8798 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
8799 * tree.h (expand_start_stmt_expr): Update prototype.
8800 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
8801 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
8802 on the STMT_EXPR created for the inline function.
46468cd9 8803
8fe2d853
RH
88042002-04-15 Richard Henderson <rth@redhat.com>
8805
8806 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
8807 config/i386/linux-aout.h, config/i386/linux-oldld.h,
8808 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
8809 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
8810 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8811 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
8812 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
8813 Define __gnu_linux__, not gnu_linux.
8814 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
8815
07cdae91
MM
88162002-04-15 Mark Mitchell <mark@codesourcery.com>
8817
8818 Remove Chill front end.
8819 * gcc.c (default_compilers): Remove Chill entries.
8820 * ch: Remove directory.
8821 * doc/frontends.texi: Remove information about Chill.
8822 * doc/sourcebuild.texi: Likewise.
8823 * doc/standards.texi: Likewise.
8824
41823c5e
DR
88252002-04-15 Douglas B Rupp <rupp@gnat.com>
8826
8827 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
8828 (LONGLONG_STANDALONE): Define.
8829
eb29ddb6
DM
88302002-04-15 David S. Miller <davem@redhat.com>
8831
8832 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
8833 Call emit_library_call with LCT_NORMAL.
8834 (sparc_initialize_trampoline): Use LCT_foo instead of
8835 magic constant in emit_library_call invocations.
8836 (sparc64_initialize_trampoline): Likewise.
8837 (sparc_profile_hook): Likewise.
8838 * config/sparc/sparc.md: Likewise.
8839
8840 * config/sparc/sparc.c (sparc_extra_constraint_check):
8841 Fix type of argument 'c'.
8842 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
8843 Likewise.
8844
bd6bec6b
GDR
88452002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
8846
8847 * diagnostic.h (output_buffer_state): Redefine.
8848 (output_format_decoder): New macro.
8849 (output_prefixing_rule): Likewise.
8850 (output_line_cutoff): Likewise.
8851 (diagnostic_format_decoder): Adjust.
8852 (diagnostic_prefixing_rule): Likewise.
8853 (diagnostic_line_cutoff): Likewise.
8854 (diagnostic_state): Likewise.
8855 (diagnostic_kind_count): Likewise.
8856 (diagnostic_buffer): Now a macro.
8857
8858 * diagnostic.c (diagnostic_buffer): Remove definition.
8859 (output_is_line_wrapping): Adjust.
8860 (set_real_maximum_length): Likewise.
8861 (output_set_maximum_length): Likewise.
8862 (init_output_buffer): Likewise.
8863 (lhd_print_error_function): Likewise.
8864 (output_do_verbatim): Likewise.
8865
ebef4e8c
NB
88662002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
8867
8868 * cpperror.c (print_location): Don't print include chain
8869 if line == 0.
8870 (cpp_begin_message): Update to use DL_ macros.
8871 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8872 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8873 cpp_notice, cpp_notice_from_errno): Remove.
8874 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8875 level.
8876 (cpp_errno): New.
8877 * cppexp.c (CPP_ICE): Remove.
8878 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
8879 lex, integer_overflow, _cpp_parse_expr): Update.
8880 * cppfiles.c (read_include_file, find_include_file,
8881 handle_missing_header, _cpp_read_file, remap_filename): Update.
8882 * cpphash.h (enum error_type): Remove.
8883 (_cpp_begin_message): Update.
8884 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
8885 cpp_handle_option, cpp_post_options): Update.
8886 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
8887 skip_whitespace, parse_identifier, parse_slow, parse_string,
8888 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
8889 cpp_interpret_charconst): Update.
8890 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
8891 lex_macro_node, do_undef, glue_header_name, parse_include,
8892 do_include_common, read_flag, do_line, do_linemarker, do_ident,
8893 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
8894 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
8895 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
8896 _cpp_pop_buffer, do_diagnostic): Update.
8897 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
8898 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
8899 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8900 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8901 cpp_notice, cpp_notice_from_errno): Remove.
8902 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8903 level.
8904 (cpp_errno): New.
8905 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
8906 collect_args, enter_macro_context, save_parameter, parse_params,
8907 _cpp_create_definition, check_trad_stringification,
8908 cpp_macro_definition): Update.
8909 * cppmain.c (cpp_preprocess_file): Update.
8910 * fix-header.c (read_scan_file): Update.
8911
c19a3859
AS
89122002-04-14 Andreas Schwab <schwab@suse.de>
8913
8914 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
8915
10fdbed6
JD
89162002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8917
8918 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
8919
77660a9a
MM
89202002-04-13 Mark Mitchell <mark@codesourcery.com>
8921
8922 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
8923 not gnu_hurd.
8924
e0ff1ded
HPN
89252002-04-13 Hans-Peter Nilsson <hp@axis.com>
8926
8927 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
8928
2341c7ea
JS
89292002-04-13 Joel Sherrill <joel@OARcorp.com>
8930
8931 * config/sparc/t-elf: Enable v8 multilibs. Impacts
8932 sparc-elf and sparc-rtems targets.
8933
d29350c0
MM
89342002-04-13 Mark Mitchell <mark@codesourcery.com>
8935
8936 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
8937 defined, and __gnu_hurd__ wherever __GNU__ is defined.
8938 * arm/linux-elf.h: Likewise.
8939 * cris/aout.h: Likewise.
8940 * cris/linux.h: Likewise.
8941 * i370/linux.h: Likewise.
8942 * i386/gnu.h: Likewise.
8943 * i386/linux-aout.h: Likewise.
8944 * i386/linux-oldld.h: Likewise.
8945 * i386/linux.h: Likewise.
8946 * i386/linux64.h: Likewise.
8947 * ia64/linux.h: Likewise.
8948 * m68k/linux-aout.h: Likewise.
8949 * m68k/linux.h: Likewise.
8950 * mips/linux.h: Likewise.
8951 * pa/pa-linux.h: Likewise.
8952 * pj/linux.h: Likewise.
8953 * rs6000/sysv4.h: Likewise.
8954 * s390/linux.h: Likewise.
8955 * sh/linux.h: Likewise.
8956 * sparc/linux-aout.h: Likewise.
8957 * sparc/linux.h: Likewise.
8958 * sparc/linux64.h: Likewise.
8959 * xtensa/linux.h: Likewise.
8960
fc552851
RS
89612002-04-13 Richard Sandiford <rsandifo@redhat.com>
8962
8963 * stmt.c (check_unique_operand_names): Expect operand names to
8964 be strings rather than identifiers. Use simple_cst_equal to
8965 compare them.
8966 (resolve_operand_name_1): Make same identifier to string change here.
8967 * c-parse.in (asm_operand): Convert a named operand into a string.
8968 * cp/parse.y (asm_operand): Likewise.
8969
1d405c5e
AS
89702002-04-13 Andreas Schwab <schwab@suse.de>
8971
8972 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
8973
c740732f
MM
89742002-04-12 Mark Mitchell <mark@codesourcery.com>
8975
8976 Revert these changes:
8977
8978 2002-04-06 Mark Mitchell <mark@codesourcery.com>
8979
8980 PR c++/5571
8981 * stor-layout.c (layout_decl): Reset the RTL for the decl.
8982
3fc602a0
RH
89832002-04-12 Richard Henderson <rth@redhat.com>
8984
8985 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
8986 (sparc*-*-solaris): Clean up header files.
8987 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
8988 and plan on generating 64-bit code.
8989 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
8990 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
8991 * config/sparc/sol2-sld-64.h: Rename ...
8992 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
8993 for AS_SPARC64_FLAG not defined.
8994 * config/sparc/sol2-gld-bi.h: New.
8995 * config/sparc/sol2-sld.h: Remove.
8996 * config/sparc/sol26-sld.h: New.
8997 * config/sparc/sol2.h: Tidy comments.
8998 * doc/install.texi: Document sparc-solaris configury changes.
8999
2f15e255
RH
90002002-04-12 Richard Henderson <rth@redhat.com>
9001
9002 * recog.c (offsettable_address_p): Match the logic in adjust_address.
9003
9004 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
9005 in 64-bit mode only. Use only for 32-bit or MEDLOW.
9006
cc8475cb
RO
90072002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9008
9009 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
9010
6f133a4a
JL
9011Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
9012
ef1b8858 9013 * pa.c (pa_can_combine_p): Call extract_insn before calling
6f133a4a
JL
9014 constrain_operands.
9015
1329e600
DR
90162002-04-12 Douglas B Rupp <rupp@gnat.com>
9017
9018 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
9019 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
9020 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2d424b9f 9021 (CPP_PREDEFINES): Handle __declspec.
1329e600
DR
9022 * config/i386/t-interix (USER_H): Remove.
9023
0339d239
DD
90242002-04-12 DJ Delorie <dj@redhat.com>
9025
9026 * integrate.c (compare_blocks): Make comparisons safe for when
9027 sizeof(int) < sizeof(char *).
9028 (find_block): Likewise.
9029
cc4d5fec
JH
90302002-04-12 Jan Hubicka <jh@suse.cz>
9031 David Edelsohn <edelsohn@gnu.org>
9032
9033 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
9034 registers.
9035 (symbol_ref_operand): New.
9036 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
9037 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
9038
93215a1b
AS
90392002-04-12 Andreas Schwab <schwab@suse.de>
9040
9041 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
9042 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
9043 overrides the definition in config/svr4.h.
46468cd9 9044
1d80248e
EN
90452002-04-12 Eric Norum <eric.norum@usask.ca>
9046
9047 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
9048 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
9049 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
9050 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
9051 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
9052 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
9053 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
9054 definitions to config/rtems.h and make the targets more similar.
9055
fa1591cb
RK
9056Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9057
fa06ab5c
RK
9058 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
9059 POINTERS_EXTEND_UNSIGNED.
9060 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
9061 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
9062
fa1591cb
RK
9063 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
9064 not specified.
9065
12e85a0e
R
9066Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
9067
9068 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
9069 depends on TARGET_SHMEDIA, not TARGET_SH5.
9070
1ab3e58a
HPN
90712002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
9072
9073 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
9074 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
9075
18778292
R
9076Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
9077
9078 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
9079 no r0 clobber.
9080
9002507c
AS
90812002-04-12 Andreas Schwab <schwab@suse.de>
9082
9083 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
9084
9be40833
RH
90852002-04-12 Richard Henderson <rth@redhat.com>
9086
9087 PR bootstrap/4191
9088 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
9089
9090 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
9091 modes spanning multiple hard regs.
46468cd9 9092
9be40833
RH
9093 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
9094
3d9268b6
JDA
90952002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9096
9097 * pa.c (pa_output_function_prologue): Don't accumulate the total
9098 number of code bytes when using TARGET_64BIT, or gas, SOM and not
9099 the portable runtime.
9100 (output_deferred_plabels): Handle 64bit plabels.
9101 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
9102 generating pic code using the GAS assembler for object formats that
9103 are not SOM (ie., ELF32 and ELF64).
9104 (output_millicode_call): Check attribute type if attribute length is 28.
9105 Likewise use $PIC_pcrel$0. Only call get_attr_length and
9106 dbr_sequence_length once.
9107 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
9108 dbr_sequence_length once.
9109 * pa.h (TARGET_SOM): Define if not defined.
9110 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
9111 with GAS and not SOM.
9112 (jump, call_internal_reg, call_value_internal_reg): Likewise.
9113 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
9114
d360fd18
DB
91152002-04-11 David O'Brien <obrien@FreeBSD.org>
9116
9117 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
9118 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
9119 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
9120 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
9121 elfos.h and dbxelf.h values are fine now.
9122 * config/i386/freebsd.h, config/alpha/freebsd.h
9123 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
9124
5b8fcab6
DB
91252002-04-11 David O'Brien <obrien@FreeBSD.org>
9126
9127 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
9128 or set Acpu or Amachine. Reformat.
9129 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9130 define.
9131 (LINK_SPEC): Do not need to undef.
9132 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
9133 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
9134 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9135 define.
9136 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
9137 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
9138 (LINK_SPEC): Do not need to undef.
9139 (DONT_USE_BUILTIN_SETJMP): Do not define.
9140 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
9141 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
9142 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
9143 Remove trailing spaces.
9144 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
9145 __ELF__, or set Acpu or Amachine. Reformat.
9146 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9147 define.
9148
fee42cc1
DB
91492002-04-11 David O'Brien <obrien@FreeBSD.org>
9150
9151 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
9152 all other *-*-freebsd* targets.
9153
77a403e4
RH
91542002-04-11 Richard Henderson <rth@redhat.com>
9155
9156 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
9157
cf0005c6
DB
91582002-04-11 David O'Brien <obrien@FreeBSD.org>
9159
9160 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
9161 Include {cpu}/{cpu}.h thru tm_file.
9162 (alpha*-*-linux*ecoff): Remove target.
9163 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
9164 (LINK_SPEC): Remove, is not OS independent.
9165 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
9166 (LINK_SPEC): Do not need to #undef any longer.
9167 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
9168 any longer.
9169 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
9170 __ELF__.
9171 (LINK_SPEC): Moved here from alpha/elf.h.
9172 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
9173 SUB_CPP_PREDEFINES.
9174 * config/alpha/linux-ecoff.h: Remove.
9175 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
9176 (CPP_SPEC): Define _POSIX_SOURCE as needed.
9177 (CPP_SUBTARGET_SPEC): Do not define.
9178 (LINK_SPEC): Do not need to #undef any longer.
9179 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
9180 * config/alpha/vms.h: Likewise.
9181
9be40833 91822002-04-11 Richard Sandiford <rsandifo@redhat.com>
7825d1cf
RS
9183
9184 * doc/extend.texi: Remove old claim that typedefs cannot have
9185 an alignment attribute.
9186
010f87c4
JJ
91872002-04-11 Jakub Jelinek <jakub@redhat.com>
9188
9189 PR optimization/6177
9190 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
9191 bitpos is 0 and bitsize CONCAT size.
9192
578fc63d
JJ
91932002-04-11 Jakub Jelinek <jakub@redhat.com>
9194
9195 PR c/6223
9196 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
9197
bf9b85ce
DB
91982002-04-10 David O'Brien <obrien@FreeBSD.org>
9199
9200 * config/alpha/freebsd.h: Minor reformatting.
9201 (CPP_SPEC): Define ELF and add cpp_subtarget.
9202 (ASM_SPEC): No longer needed.
9203
7425707d
RH
92042002-04-11 Richard Henderson <rth@redhat.com>
9205
9206 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
9207 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
9208 (dimode mem/zero splitter): New.
9209
1a05e874
HPN
92102002-04-11 Hans-Peter Nilsson <hp@axis.com>
9211
9212 * config/cris/cris.c (cris_override_options): Tweak error message
9213 for PIC not implemented.
9214
9215 * config/cris/cris.h: Tweak comments related to parameter-passing.
9216
9217 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
9218
6f3d0447
RH
92192002-04-10 Richard Henderson <rth@redhat.com>
9220
9221 * except.c (add_ehl_entry): Allow duplicates after landing pad
9222 creation.
9223
174bf2b1
DE
92242002-04-10 David Edelsohn <edelsohn@gnu.org>
9225
9226 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
9227
03f10472
TM
92282002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
9229
9230 * c-decl.c (c_init_decl_processing): Move generation of
9231 decls for g77_integer_type_node and friends from here ...
9232 * c-common.c (c_common_nodes_and_builtins): ... to here.
9233
2f460a0a
UW
92342002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
9235
9236 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
9237 is only used as frame pointer when frame_pointer_needed is true.
9238
0be5cf85
RE
92392002-04-10 Richard Earnshaw <rearnsha@arm.com>
9240
9241 PR target/817
9242 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
9243 for the fact that the pool entry uses two words.
9244 (movdf_hard_insn): Similarly. Also, ADR instruction can span
9245 1k bytes.
9246 (movdf_soft_insn): Similarly.
9247 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
9248 for the fact that the pool entry uses three words.
9249
bf6d4777
RS
92502002-04-10 Richard Sandiford <rsandifo@redhat.com>
9251
9252 * config/mips/mips.c (mips_va_arg): When using the struct version
9253 of the EABI va_list, allow arguments in the register save area to
9254 take up less room than a stack argument.
9255
c2e9dc85
RH
92562002-04-10 Richard Henderson <rth@redhat.com>
9257
9258 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
9259 if EXPAND_INITIALIZER.
9260
bc8e8e97
RH
92612002-04-09 Richard Henderson <rth@redhat.com>
9262
9263 * config/alpha/alpha.md (movdi_er_maybe_g): New.
9264 * config/alpha/alpha.c (alpha_expand_mov): Use it.
9265
a6a063b8
AM
92662002-04-10 Alan Modra <amodra@bigpond.net.au>
9267
9268 PR optimization/6233
9269 * rtlanal.c (pure_call_p): New function.
9270 * rtl.h (pure_call_p): Declare.
9271 * loop.c (prescan_loop): Use it to set has_nonconst_call.
9272 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
9273
7b2e1077
EC
92742002-04-09 Eric Christopher <echristo@redhat.com>
9275
9276 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
9277 information to .comm directive.
9278
d8a50944
RH
92792002-04-09 Richard Henderson <rth@redhat.com>
9280
9281 PR c/5078
9282 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
9283
6a58eee9
RH
92842002-04-09 Richard Henderson <rth@redhat.com>
9285
9286 * basic-block.h (flow_delete_block_noexpunge): Declare.
9287 (expunge_block_nocompact): Declare.
9288 * cfg.c (expunge_block_nocompact): Split out from ...
9289 (expunge_block): ... here.
9290 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
9291 (flow_delete_block_noexpunge): Split out from ...
9292 (flow_delete_block): ... here.
9293 * cfgcleanup.c (delete_unreachable_blocks): Compact while
9294 removing dead blocks.
9295 * except.c (exception_handler_labels): Remove.
9296 (exception_handler_label_map): New.
9297 (struct eh_region): Add aka member.
9298 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
9299 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
9300 (for_each_eh_label, for_each_eh_label_1): New.
9301 (init_eh): Register exception_handler_label_map.
9302 (free_eh_status): Use free_region.
9303 (find_exception_handler_labels): Use the map, not the list.
9304 (remove_exception_handler_label): Likewise.
9305 (maybe_remove_eh_handler): Likewise.
9306 (remove_eh_handler): Use the region aka bitmap.
9307 * except.h (exception_handler_labels): Remove.
9308 (for_each_eh_label): Declare.
9309 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
9310 * loop.c (invalidate_loops_containing_label): New.
9311 (find_and_verify_loops): Use it. Use for_each_eh_label.
9312 * sched-rgn.c (is_cfg_nonregular): Use
9313 current_function_has_exception_handlers.
9314
b47374fa
RH
93152002-04-09 Richard Henderson <rth@redhat.com>
9316
9317 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
9318 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
9319 Do not return changed status.
9320 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
9321 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
9322 New functions that do return changed status.
9323 * sbitmap.h: Update decls.
9324 * gcse.c, lcm.c: Use _cg functions as needed.
9325
1951818c
R
9326Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
9327
9328 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
9329 (sh64-*-elf*, sh-*-rtemself*): Likewise.
9330 * config/sh/embed_bb.c: New file.
9331 * config/sh/embed-elf.h: New file.
9332 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
9333 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
9334 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9335 __PTRDIFF_TYPE__ .
9336 (SUBTARGET_CPP_PTR_SPEC): Don't define.
9337 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
9338 Add subtarget_asm_endian_spec.
9339 (ASM_SPEC): Use subtarget_asm_endian_spec.
9340 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
9341 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
9342 (WCHAR_UNSIGNED): Define.
9343 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
9344 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9345 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
9346 Fix value.
9347 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
9348 (sh_adjust_cost): Likewise.
9349 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9350 __PTRDIFF_TYPE__ .
9351 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
9352 (WCHAR_TYPE_SIZE): Likewise.
9353 (ASM_SPEC): Use subtarget_asm_endian_spec.
9354 (SH_ELF_WCHAR_TYPE): #undef/ #define.
9355 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
9356 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
9357 (MAX_WCHAR_TYPE_SIZE): Don't #define .
9358 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
9359 (USER_LABEL_PREFIX): Don't #undef /#define .
9360 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9361 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
9362 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
9363 (ASM_SPEC): Likewise.
9364 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
9365 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
9366 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
9367 (LIB2FUNCS_EXTRA): Define.
9368 * t-sh64 (LIB2FUNCS_EXTRA): Define.
9369 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
9370 (LIB1ASMFUNCS_CACHE): Define.
9371 (LIB2FUNCS_EXTRA): Redefine empty.
9372
34295799
RH
93732002-04-08 Richard Henderson <rth@redhat.com>
9374
9375 * reorg.c (get_branch_condition): Use reversed_comparison_code.
9376
e8766a39
SC
93772002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9378
9379 * config/m68hc11/larith.asm (__map_data_section): Fix condition
9380 and optimize for size.
9381 (__do_global_ctors): Fix pointer comparison.
9382 (__do_global_dtors): Likewise.
9383
f451b552
DM
93842002-04-09 David S. Miller <davem@redhat.com>
9385
9386 * config/sparc/sparc.c (sparc_extra_constraint_check): New
9387 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
9388 allow reloading pseudos.
9389 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
9390 * config/sparc/sparc-protos.h: Declare it.
9391
9392 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
9393 unsigned comparison warning.
9394 (output_restore_regs): Mark leaf_function as unused.
9395
1ce7f3c2
RK
9396Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9397
9398 * expr.c (is_aligning_offset): New function.
9399 (expand_expr, case COMPONENT_EXPR): Call it.
9400
7a31a340
DM
94012002-04-08 David S. Miller <davem@redhat.com>
9402
9403 PR target/6082
9404 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
9405
9406 Make init_priority work on Sparc when using GNU ld.
9407 * config/sparc/linux.h, config/sparc/linux64.h,
9408 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
9409 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
9410 * config/sparc/sol2-gld.h: New file to do the same.
9411 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
9412 sparc/sol2-gld.h to tm_file.
9413
9414 PR optimization/4328
9415 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9416 * doc/md.texi: Document it.
9417 * config/sparc/sparc.md (movdi_insn_sp64_novis,
9418 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9419 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9420 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9421 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9422
11579f33
AJ
94232002-04-08 Andreas Jaeger <aj@suse.de>
9424
9425 * stmt.c (expand_asm_operands): Revert last patch from Richard
9426 Henderson.
9427
b57215d9
GP
94282002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9429
9430 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9431 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
9432
94332002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9434
9435 * doc/contrib.texi (Contributors): Add David O'Brien.
9436
534d0cc0
AM
94372002-04-08 Alan Modra <amodra@bigpond.net.au>
9438
9439 * configure.in (auto-build.h): Use target_alias and build_alias
9440 when running configure.
9441 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9442 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9443 * configure: Regenerate.
9444
19fe522a
DM
94452002-04-07 David S. Miller <davem@redhat.com>
9446
9447 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9448
bf2d0b8e
JDA
94492002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9450
9451 PR 5933
9452 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9453 generating 32-bit pic code.
9454
477cdac7
JT
94552002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
9456
9457 * cppinit.c (cpp_create_reader): Initialize
9458 discard_comments_in_macro_exp.
9459 (COMMAND_LINE_OPTIONS): Add "-CC" option.
9460 (cpp_handle_option): Handle "-CC" option.
9461 * cpplex.c (save_comment): If saving a C++ comment in
9462 a directive, convert it to a C comment.
9463 (_cpp_lex_direct): Pass second comment start character to
9464 save_comment to indicate comment type.
9465 * cpplib.c (_cpp_handle_directive): If processing
9466 a "#define" directive and discard_comments_in_macro_exp
9467 is false, re-enable saving of comments.
9468 (lex_macro_node): If discard_comments_in_macro_exp is false,
9469 discard any comments before the macro identifier.
9470 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
9471 member.
9472 * cppmacro.c (cpp_get_token): If expanding a macro while
9473 processing a directive, discard any comments we might encounter.
9474 (parse_params): If discard_comments_in_macro_exp is false,
9475 ignore comments in the macro parameter list.
9476 * gcc.c (cpp_unique_options): Add "-CC" option.
9477 (option_map): Map "--comments-in-macros" to "-CC".
9478 * doc/cppopts.texi: Document "-CC" option.
9479 * f/lang-specs.h: Add "-CC" option.
9480 * testsuite/gcc.dg/cpp/maccom1.c: New test.
9481 * testsuite/gcc.dg/cpp/maccom2.c: New test.
9482 * testsuite/gcc.dg/cpp/maccom3.c: New test.
9483 * testsuite/gcc.dg/cpp/maccom4.c: New test.
9484 * testsuite/gcc.dg/cpp/maccom5.c: New test.
9485 * testsuite/gcc.dg/cpp/maccom6.c: New test.
9486
f1526122
JDA
94872002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
9488
9489 PR middle-end/6180
9490 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
9491
b1896e61
MM
94922002-04-06 Mark Mitchell <mark@codesourcery.com>
9493
0154eaa8
MM
9494 PR c++/5571
9495 * stor-layout.c (layout_decl): Reset the RTL for the decl.
9496
b1896e61
MM
9497 PR opt/5120
9498 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
9499 RTX_UNCHANGING_P for the functions arguments when a tail call
9500 is made.
9501
b0148884
JM
95022002-04-06 Jason Merrill <jason@redhat.com>
9503
9504 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
9505 (parse_options_and_default_flags): Set them appropriately.
9506 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
9507
392fc5b0
HPN
95082002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
9509
9510 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
9511 here.
9512
9513 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
9514 semicolon.
9515
9516 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
9517 types come in by-reference. Fix typo in comment.
9518
2d69e3cb
DM
95192002-04-05 David S. Miller <davem@redhat.com>
9520
9521 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
9522 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
9523 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
9524 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
9525
95262002-04-05 David S. Miller <davem@redhat.com>
9527
9528 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
9529 are not going to emit return instructions, emit at least a nop
9530 for the sake of sane backtraces.
9531
5f9fb0e3
RH
95322002-04-05 Richard Henderson <rth@redhat.com>
9533
9534 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
9535
49f37a0d
JJ
95362002-04-05 Jakub Jeilnek <jakub@redhat.com>
9537
9538 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
9539
974a3101
AO
95402002-04-05 Alexandre Oliva <aoliva@redhat.com>
9541
9542 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
9543 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9544 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
9545
2e04a694
AS
95462002-04-05 Andreas Schwab <schwab@suse.de>
9547
a40179bd 9548 * c-convert.c: Include c-common.h.
2e04a694
AS
9549 * Makefile.in (c-convert.o): Updated.
9550
1f785b7c
JJ
95512002-04-05 Jakub Jelinek <jakub@redhat.com>
9552
9553 * mklibgcc.in: Use separate libgcc.map for each multilib.
9554 * Makefile.in (distclean): Don't remove libgcc.map here.
9555
4d2fb38b
JJ
95562002-04-05 Jakub Jelinek <jakub@redhat.com>
9557
9558 * Makefile.in (s-mlib): Handle --disable-multilib by separate
9559 genmultilib invocation.
9560
bb63e5a0
RS
95612002-04-04 Richard Sandiford <rsandifo@redhat.com>
9562
9563 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
9564 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
9565 to num_gprs for symmetry.
9566 * config/mips/mips.c: Adjust accordingly.
9567
8ab80eaa
NB
95682002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
9569
9570 * c-common.c (truthvalue_conversion): Rename, update.
9571 * c-common.h (c_common_truthvalue_conversion): New.
9572 * c-convert.c (convert): Update.
9573 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9574 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
9575 * c-typeck.c (build_binary_op, build_unary_op,
9576 build_conditional_expr): Update.
9577 * fold-const.c (constant_boolean_node, fold): Use langhook.
9578 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
9579 * langhooks.h (struct lang_hooks): New hook.
9580 * stmt.c (expand_decl_cleanup): Use langhook.
9581 * tree.h (truthvalue_conversion): Remove.
9582objc:
9583 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9584
a2e9374a
AM
95852002-04-05 Alan Modra <amodra@bigpond.net.au>
9586
9587 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
9588 Add rules to make null object file.
9589
64d08263
JB
95902002-04-04 Jim Blandy <jimb@redhat.com>
9591
9592 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
9593 macro formal parameter names.
9594
aa7634dd
DM
95952002-04-04 David S. Miller <davem@redhat.com>
9596
9597 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
9598
ecc114f7
RH
95992002-04-04 Richard Henderson <rth@redhat.com>
9600
9601 PR middle-end/5099
9602 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
9603 Support copies into and out of memory. Don't accept allows_reg
9604 and allows_mem as gospel.
9605
c4484b8f
RH
96062002-04-04 Richard Henderson <rth@redhat.com>
9607
9608 PR opt/6165
9609 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
9610 (write_dependence_p): Likewise.
9611
39002160
RH
96122002-04-04 Richard Henderson <rth@redhat.com>
9613
9614 * predict.c (estimate_bb_frequencies): Do frequency calculation
9615 with a volatile temporary.
9616
f53ebe71
UW
96172002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
9618
9619 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
9620
15e0ecab
JJ
96212002-04-04 Jakub Jelinek <jakub@redhat.com>
9622
9623 PR c++/6119
9624 * final.c (final_start_function): Don't bump profile_label_no here...
9625 (final_end_function): ...but here.
9626
ffd386b0
JJ
96272002-04-04 Jakub Jelinek <jakub@redhat.com>
9628
9629 * config/sparc/sparc.md (pic): New attribute.
9630 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
9631 into stack slots.
9632 (split after do_builtin_setjmp_setup): New.
9633
8b156b3e
JJ
96342002-04-04 Jakub Jelinek <jakub@redhat.com>
9635
9636 PR fortran/6106
9637 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
9638 change.
9639
014c0998
JJ
96402002-04-04 Jakub Jelinek <jakub@redhat.com>
9641
9642 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
9643 UNITS_PER_WORD for zero sized aggregates.
9644
4d8611d9
DM
96452002-04-03 David S. Miller <davem@redhat.com>
9646
9647 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
9648 one-character spec for this, just use %(link_gcc_c_sequence).
9649
b03ad99d
DM
96502002-04-03 David S. Miller <davem@redhat.com>
9651
9652 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
9653 handling.
9654
823fbbce
JDA
96552002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9656
9657 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
9658 (DWARF_FRAME_RETURN_COLUMN): Move.
9659 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9660 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
9661 * pa.c (except.h, predict.h): Include.
9662 (FRP): Delete.
9663 (store_reg_modify, set_reg_plus_d): Revise prototypes.
9664 (output_ascii): Add cast.
9665 (store_reg_modify): Revise to add frame notes.
9666 (set_reg_plus_d): Likewise.
9667 (compute_frame_size): Include space for eh data registers in frame if
9668 the current function calls eh_return.
9669 (hppa_expand_prologue): Ensure register %r2 is saved if the current
9670 function calls eh_return. Save eh data registers if the current
9671 function calls eh_return. Fix code to add frame notes. Emit
9672 blockage to prevent insns with frame notes being scheduled in the
9673 delay slot of calls.
9674 (hppa_expand_epilogue): Restore eh data registers and do final stack
9675 adjustment if the current function calls eh_return. Don't add frame
9676 notes.
9677 (output_call): Revise for change in length of call insn. Don't do
9678 return pointer adjustment for an unconditional jump in the delay slot
9679 of a call when using frame notes.
9680 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
9681 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
9682 (ARG_POINTER_CFA_OFFSET): Define.
9683 * pa.md (return_external_pic): New pattern.
9684 (prologue): Correct formatting. Use return_external_pic if current
9685 function calls eh_return.
9686 (call_internal_symref, call_value_internal_symref,
9687 sibcall_internal_symref, sibcall_value_internal_symref): Change default
9688 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
9689 respectively.
9690 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
9691
9692 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
9693 list of targets to check using "nop" insn.
9694 * configure: Rebuilt.
9695
4078e224
AM
96962002-04-04 Alan Modra <amodra@bigpond.net.au>
9697
9698 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
9699
bbd7687d
DM
97002002-04-03 David S. Miller <davem@redhat.com>
9701
9702 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
9703 library sequence passed to the linker.
9704 (LINK_COMMAND_SPEC): Use it.
9705 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
9706 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
9707 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9708
659e5a7a
JM
97092002-04-03 Jason Merrill <jason@redhat.com>
9710
9711 * except.c (struct eh_status): Remove protect_list.
9712 (begin_protect_partials, end_protect_partials): Remove.
9713 (add_partial_entry): Remove.
9714 * except.h: Remove prototypes.
9715
9716 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
9717 expand_decl_cleanup_eh.
9718
9719 PR c++/5636
9720 * tree.h (CLEANUP_EH_ONLY): New macro.
9721 * stmt.c (expand_decl_cleanup_eh): New fn.
9722 (expand_cleanups): Check CLEANUP_EH_ONLY.
9723 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
9724 Use expand_decl_cleanup_eh.
9725 (expand_stmt): Adjust.
9726 * c-common.h: Adjust prototype.
9727
053d3344
HPN
97282002-04-04 Hans-Peter Nilsson <hp@axis.com>
9729
9730 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
9731 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
9732 (cris_target_asm_function_epilogue): Ditto.
9733 (cris_initial_frame_pointer_offset): Ditto.
9734 (cris_simple_epilogue): Ditto.
9735 (cris_expand_builtin_va_arg): Variable-size types come in
9736 by-reference.
9737
61ab5260
DM
97382002-04-03 David S. Miller <davem@redhat.com>
9739
9740 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
9741 little-endian.
9742 (set_fast_math): Correct 'fsr' type.
9743
ef4f94ac
RH
97442002-04-03 Richard Henderson <rth@redhat.com>
9745
36c2272c 9746 PR opt/3569
ef4f94ac
RH
9747 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
9748 * toplev.c (check_global_declarations): Use it.
9749 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
9750 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9751 (LANG_HOOKS_DECLS): Add it.
9752 * langhooks.c (lhd_warn_unused_global_decl): New.
9753 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9754 * c-objc-common.c (c_warn_unused_global_decl): New.
9755 * c-tree.h (c_warn_unused_global_decl): Declare.
9756 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9757
599bba86
NB
97582002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
9759
9760 * langhooks-def.h (lhd_set_decl_assembler_name,
9761 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
9762 (LANG_HOOKS_INITIALIZER): Update.
9763 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
9764 * langhooks.h (struct lang_hooks): New hook.
9765 * tree.c (set_decl_assembler_name): Move to langhooks.c.
9766 (lang_set_decl_assembler_name): Remove.
9767 (init_obstacks): Don't set hook.
9768 (decl_assembler_name): New function.
9769 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
9770 (decl_assembler_name): New.
9771 (lang_set_decl_assembler_name): Remove.
9772
cf7b8b0d
JJ
97732002-04-03 Jakub Jelinek <jakub@redhat.com>
9774
9775 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
9776 works properly with .hidden symbols.
9777 * configure: Rebuilt.
9778 * config.in: Rebuilt.
9779 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9780 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
9781 properly with .hidden symbols.
9782
faf6db38
JJ
97832002-04-03 Jakub Jelinek <jakub@redhat.com>
9784
9785 PR middle-end/6102
9786 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
9787 USE argument.
9788
68c17f30
RH
97892002-04-03 Richard Henderson <rth@redhat.com>
9790
9791 PR opt/4120
9792 * sched-rgn.c (sets_likely_spilled): New.
9793 (sets_likely_spilled_1): New.
9794 (add_branch_dependences): Use it.
9795
6584b4aa
RH
97962002-04-02 Richard Henderson <rth@redhat.com>
9797
9798 PR opt/4311
9799 * loop.h (LOOP_FIRST_PASS): New.
9800 * loop.c (strength_reduce): Mind it when deciding to unroll.
9801 * toplev.c (rest_of_compilation): Set it.
9802
0acf409f
DM
98032002-04-02 David S. Miller <davem@redhat.com>
9804
9805 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
9806 mems_ok_for_ldd_peep when the order of the loads being examined
9807 is reversed.
9808 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
9809 existing comment to increase comprehension of this situation.
9810
85654444
ZW
98112002-04-02 Zack Weinberg <zack@codesourcery.com>
9812
9813 * config/sh/sh.md: Don't use union real_extract.
9814
543828ca
RH
98152002-04-02 Richard Henderson <rth@redhat.com>
9816
9817 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
9818
39ed301b
DB
98192002-04-02 David O'Brien <obrien@FreeBSD.org>
9820
9821 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
9822 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
9823 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
9824 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
9825 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
9826 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
9827 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
9828 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
9829 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
9830 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
9831 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
9832 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
9833 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
9834 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
9835 Include as many configury headers via tm_file as possible. This
9836 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
9837 * config/openbsd-oldgas.h: New file.
9838 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
9839 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
9840 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
9841 config/i386/i386-coff.h, config/i386/i386-interix.h,
9842 config/i386/iscdbx.h, config/i386/linux-aout.h,
9843 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
9844 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
9845 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
9846 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
9847 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
9848 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
9849 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
9850 config/i386/vxi386.h: Do not directly include configury headers.
9851 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
9852 Directly include configury headers that are no longer automatically
9853 included by the above headers.
9854 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
9855 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
9856 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
9857 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
9858 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
9859 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
9860 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
9861 (TARGET_VERSION): Define.
9862 * config/i386/beos-elf.h, config/i386/freebsd.h,
9863 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
9864 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
9865 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
9866 config/i386/sco5.h, config/i386/sysv4.h
9867 (TARGET_VERSION): Do not need to protect.
9868 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
9869 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
9870 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
9871 config/i386/i386-interix.h, config/i386/linux-aout.h,
9872 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
9873 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
9874 (YES_UNDERSCORES): Do not define - not needed.
9875 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
9876 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9877 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
9878 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
9879 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9880 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
9881 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
9882 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
9883
9432c136
EB
98842002-04-02 Eric Botcazou <ebotcazou@multimania.com>
9885 Richard Henderson <rth@redhat.com>
9886
9887 PR c/5484
9888 * function.c (assign_temp): Accept either type or decl argument.
9889 Detect variables whose size is too large to fit into an integer.
9890 * stmt.c (expand_decl): Pass the decl, not the type.
9891
058b1275
DB
98922002-04-02 David O'Brien <obrien@FreeBSD.org>
9893
9894 * protoize.c: Match include directory usage with cppdefault.c.
9895
5add6d1a 98962002-04-03 Jeffrey A Law (law@redhat.com)
9be40833 9897 Hans-Peter Nilsson <hp@bitrange.com>
5add6d1a
JL
9898
9899 * combine.c (simplify_comparison): Avoid narrowing a comparison
9900 with a paradoxical subreg when doing so would drop signficant bits.
9901
1e533e4b
SE
99022002-04-02 Steve Ellcey <sje@cup.hp.com>
9903
9904 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
9905 if POINTERS_EXTEND_UNSIGNED is defined.
9906
7a145e92
RH
99072002-04-02 Richard Henderson <rth@redhat.com>
9908
9909 PR opt/3967
9910 * local-alloc.c (contains_replace_regs): LO_SUM may contain
9911 replace regs.
9912
3a079822
RH
99132002-04-02 Richard Henderson <rth@redhat.com>
9914
9915 * doc/standards.texi: Document required freestanding libc entry points.
9916
c94ccb87
AM
99172002-04-02 Alan Modra <amodra@bigpond.net.au>
9918
9919 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
9920 associated splitter. Remove MQ constraint.
9921 (ctrdi_internal4): Correct CCmode clobber.
9922
fe660a1a
JDA
99232002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
9924
9925 * milli64.S ($$dyncall): New function.
9926 * t-linux (LIB1ASMFUNCS): Revise module list.
9927 (LIB1ASMSRC): Use pa/milli64.S.
9928
eadc0202
RH
99292002-04-02 Richard Henderson <rth@redhat.com>
9930
9931 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
9932 rename solaris_sys_varargs_h.
9933
a1471322
RK
9934Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9935
9936 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
9937 the same mode as its component.
9938
c8b94768
RH
99392002-04-02 Richard Henderson <rth@redhat.com>
9940
9941 PR opt/190
9942 * final.c (this_is_asm_operands): Export.
9943 * output.h (this_is_asm_operands): Declare.
9944 * config/i386/i386.c (print_operand): Error odd asm operands.
9945
161eb4fc
RH
99462002-04-02 Richard Henderson <rth@redhat.com>
9947
9948 PR opt/420
9949 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
9950
b88a94c6
RH
99512002-04-01 Richard Henderson <rth@redhat.com>
9952
9953 PR target/1538
9954 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
9955 * fixinc/fixincl.x: Rebuild.
9956
72e32876
RH
99572002-04-01 Richard Henderson <rth@redhat.com>
9958
9959 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
9960 (atomic_alloc, atomic_free): New.
9961 (SIZE, MASK_FOR, PTR_IN): New.
9962 (emergency_reg_state, emergency_reg_state_free): New.
9963 (emergency_labeled_state, emergency_labeled_state_free): New.
9964 (reg_state_alloced, labeled_state_alloced): New.
9965 (alloc_reg_state, free_reg_state): New.
9966 (alloc_label_state, free_label_state, free_label_states): New.
9967 (push, pop, dup_state_stack, free_state_stack): Use them.
9968 (desc_label_state): Likewise.
9969 (uw_frame_state_for): Free label states and state stack.
9970 (uw_update_reg_address): Eliminate warnings.
9971
84d76074
VM
99722002-04-01 Vladimir Makarov <vmakarov@redhat.com>
9973
9974 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9be40833 9975 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
84d76074 9976
dffd7eb6
NB
99772002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9978
9979 * c-decl.c (grokdeclarator): Update.
9980 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9981 * c-tree.h (c_mark_addressable): New.
9982 * c-typeck.c (default_function_array_conversion, build_unary_op,
9983 build_array_ref, convert_for_assignment): Update.
9984 (mark_addressable): Rename.
9985 * calls.c (try_to_integrate, expand_call): Use langhook.
9986 * expr.c (expand_expr): Use langhook.
9987 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
9988 * langhooks.h (struct lang_hooks): New hook.
9989 * stmt.c (expand_asm_operands): Use langhook.
9990 * tree.h (mark_addressable): Remove.
9991objc:
9992 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9993
544ef5b5
BW
99942002-04-01 Bob Wilson <bob.wilson@acm.org>
9995
9be40833
RH
9996 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
9997 in previous change.
544ef5b5 9998
bcf88f9b
BW
99992002-04-01 Bob Wilson <bob.wilson@acm.org>
10000
10001 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
10002 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
10003
ceef8ce4
NB
100042002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10005
10006 * c-common.c (unsigned_conversion_warning, convert_and_check,
10007 unsigned_type, signed_type, shorten_compare,
10008 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
10009 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
10010 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
10011 New.
10012 * c-decl.c (grokdeclarator): Update.
10013 * c-format.c (check_format_types): Update.
10014 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10015 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10016 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
10017 * convert.c (convert_to_integer): Use new hooks.
10018 * expmed.c (make_tree): Use new hooks.
10019 * expr.c (store_expr): Use new hooks.
10020 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
10021 all_ones_mask_p, unextend, fold): Use new hooks.
10022 * langhooks.h (struct lang_hooks_for_types): New hooks.
10023 * tree.h (signed_or_unsigned_type, signed_type,
10024 unsigned_type): Remove.
10025objc:
10026 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10027 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10028
1d9ad0e0
RH
100292002-03-31 Richard Henderson <rth@redhat.com>
10030
10031 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
10032 (desc_frgr_mem): Fix reference to f16-f31.
10033
d544bc39
KG
100342002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10035
10036 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
10037 RTVEC_ELT): Const-ify.
d8750784
KG
10038 * varray.h (VARRAY_CHECK): Const-ify.
10039 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
10040 ggc_mark_rtvec, ggc_mark): Const-ify.
d544bc39 10041
b18101c7
NB
100422002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10043
10044 * diagnostic.c: Include langhooks-def.h.
10045 * Makefile.in (diagnostic.o): Update.
10046
48a7a235
NB
100472002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10048
10049 * c-common.c (c_unsafe_for_reeval): Rename.
10050 * c-common.h (c_unsafe_for_reeval): Rename.
10051 * c-decl.c (finish_incomplete_decl): Rename.
10052 (c_init_decl_processing): Don't set langhook.
10053 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10054 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10055 * c-objc-common.c (c_objc_common_init): Don't set langhook.
10056 * c-tree.h (finish_incomplete_decl): Rename.
10057 * langhooks-def.h (lhd_unsafe_for_reeval): New.
10058 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
10059 (LANG_HOOKS_INITIALIZER): Update.
10060 * langhooks.c (lhd_unsafe_For_reeval): New.
10061 * langhooks.h (struct langhooks): New hooks.
10062 * toplev.c (incomplete_decl_finalize_hook): Remove.
10063 (wrapup_global_declarations): Update.
10064 * tree.c (lang_unsafe_for_reeval): Remove.
10065 (unsafe_for_reeval): Update.
10066 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
10067 Remove.
10068objc:
10069 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10070 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10071
7cb32822
NB
100722002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10073
10074 * diagnostic.c (print_error_function): Remove.
10075 (default_print_error_function): Rename.
10076 (report_error_function): Update.
10077 * diagnostic.h (print_error_function): Remove.
10078 (default_print_error_function): Remove.
10079 * langhooks-def.h (struct diagnostic_context): Predeclare.
10080 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
10081 (LANG_HOOKS_INITIALIZER): Update.
10082 * langhooks.h (struct diagnostic context): Predeclare.
10083 (struct lang_hooks): New hook.
10084
1db02437
FS
100852002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10086
10087 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
10088 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
10089 !flag_pic.
10090 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
10091 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
10092 of PIC_OFFSET_TABLE_REGNUM thruout.
10093 * config/rs6000/rs6000.md: Likewise.
10094 * config/rs6000/darwin.h: Likewise.
10095
3bf1e984
RK
10096Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10097
10098 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
10099 unsigned HOST_WIDE_INT, not unsigned int.
10100
0864c526
JJ
101012002-03-31 Jakub Jelinek <jakub@redhat.com>
10102
10103 PR middle-end/6096, middle-end/6098, middle-end/6099
10104 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
10105 CODE_LABELs.
10106 (fill_slots_from_thread): Likewise.
10107
105b2084
JJ
101082002-03-31 Jakub Jelinek <jakub@redhat.com>
10109
10110 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
10111 floating fields in float regs.
10112 (function_arg_record_value_2): Likewise.
10113
db08fddf
HPN
101142002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
10115
10116 * config/mmix/mmix.md (define_constants): Remove misleading
10117 FIXME. Add MMIX_fp_rO_OFFSET.
10118 ("nonlocal_goto_receiver"): Don't have stack-frame address of
10119 saved rO as part of the pattern. Remove FIXME.
10120 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
10121 here, at output-time.
10122
4f31cce8
JJ
101232002-03-31 Jakub Jelinek <jakub@redhat.com>
10124
10125 PR middle-end/6100
10126 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
10127 REG_BR_PRED.
10128 (output_v9branch): Likewise.
10129
ba2b7435
AO
101302002-03-31 Alexandre Oliva <aoliva@redhat.com>
10131
10132 * gcc.c: Revert previous patch for now.
10133 * config/i386/djgpp.h: Likewise.
10134
aa66aa5f 101352002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8f840f57
HPN
10136
10137 * config/mmix/crti.asm (_init): Register _fini with atexit.
10138 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
10139
41ba8a20
RH
101402002-03-31 Richard Henderson <rth@redhat.com>
10141
10142 PR target/3997
10143 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
10144 (ASM_OUTPUT_DEF_FROM_DECLS): New.
10145
adc186ef
RH
101462002-03-31 Richard Henderson <rth@redhat.com>
10147
10148 * libgcc2.c (__bb_exit_func): Make static.
10149
9be40833 10150 * config/alpha/alpha.md (trap): New.
a7648399 10151
9602f5a0
RH
101522002-03-31 Richard Henderson <rth@redhat.com>
10153
10154 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
10155 promoted argument types; build trap.
10156 (expand_builtin_trap): New.
10157 (expand_builtin): Use it.
10158 * stmt.c (expand_nl_goto_receivers): Likewise.
10159 * expr.h (expand_builtin_trap): Declare.
10160 * libfuncs.h (LTI_abort, abort_libfunc): New.
10161 * optabs.c (init_optabs): Init abort_libfunc.
10162
1a0a7539
AO
101632002-03-31 Alexandre Oliva <aoliva@redhat.com>
10164
10165 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
10166 (LINK_COMMAND_SPEC): ... from here.
7b2e1077 10167 (init_gcc_specs): Duplicate it here too, omitting
1a0a7539
AO
10168 shared_name in the second copy.
10169 (init_spec): Test for duplicate
10170 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
10171
b5de1a27
DM
101722002-03-30 David S. Miller <davem@redhat.com>
10173
10174 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10175 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
10176
78414d74 101772002-03-30 Roger Sayle <roger@eyesopen.com>
9be40833 10178 Richard Henderson <rth@redhat.com>
78414d74 10179
9be40833
RH
10180 * regmove.c (combine_stack_adjustments_for_block): Avoid
10181 emitting a stack adjustment of zero bytes. Let delete_insn
10182 update bb->head.
78414d74 10183
33074e5f
RH
101842002-03-30 Richard Henderson <rth@redhat.com>
10185
10186 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
10187 (sparc_emitting_epilogue): New.
10188 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
10189 * config/sparc/sparc-protos.h: Update.
10190 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
10191 (TARGET_SWITCHES): Update.
10192 * config/sparc/sparc.md (return): Remove.
10193 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
10194 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
10195 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
10196 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10197 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
10198 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
10199 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
10200 Remove MASK_EPILOGUE.
10201 * doc/invoke.texi: Update.
10202
606cc056
DB
102032002-03-30 Daniel Berlin <dan@dberlin.org>
10204
10205 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
10206 CPP will start the file for us.
7b2e1077 10207
bdbe5b8d
RH
102082002-03-30 Richard Henderson <rth@redhat.com>
10209
10210 PR target/5446
10211 * config/ia64/ia64.c (group_barrier_needed_p): Special case
10212 prologue_allocate_stack.
10213 (ia64_single_set): Use insn codes for recognition of special
10214 cases, not rtl matching.
10215 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
10216
4ab95d82
JH
10217Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
10218
10219 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
10220
89a8b315
RH
102212002-03-30 Richard Henderson <rth@redhat.com>
10222
10223 PR target/6032
10224 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
10225 or -fomit-frame-pointer with profiling.
10226 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10227 (FUNCTION_PROFILER): Do nothing.
10228 (PROFILE_HOOK): New.
10229 * config/sparc/sparc.c (sparc_override_options): Don't check
10230 code models for profiling.
10231 (sparc_function_profiler): Remove.
10232 (sparc_profile_hook): New.
10233 * config/sparc/sparc-protos.h: Update.
10234
30984c57
JJ
102352002-03-30 Jakub Jelinek <jakub@redhat.com>
10236
10237 PR optimization/6086
10238 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
10239 of SUBREG of volatile MEM or because the MEM was mode dependent,
10240 return CLOBBER instead of unmodified SUBREG.
10241
1540f9eb
JH
10242Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
10243
89a8b315
RH
10244 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
10245 when not optimizing.
1540f9eb
JH
10246
10247 * toplev.c (rest_of_compilation): Cann mark_constant_function
10248 only when optimizing.
10249
89a8b315
RH
10250 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
10251 are NULL.
1540f9eb
JH
10252
10253 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
10254 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
10255 (try_optimize_cfg): clear all AUX fields.
10256
10257 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10258 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10259 (ix86_address_cost): Be prepared for SUBREGed registers.
10260 (legitimate_address_p): Accept SUBREGed registers.
10261
70d95bac
RH
102622002-03-29 Richard Henderson <rth@redhat.com>
10263
10264 PR target/5672
10265 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
10266
d3294cd9
FS
102672002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10268
10269 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
10270 for aggregate and TFmode types.
10271
a106c875
HPN
102722002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10273
10274 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
10275
7d7a5d6f
RH
102762002-03-29 Richard Henderson <rth@redhat.com>
10277
6e2d670b 10278 PR target/5886
7d7a5d6f
RH
10279 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
10280 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
10281
30c99a84
RH
102822002-03-29 Richard Henderson <rth@redhat.com>
10283
6e2d670b 10284 PR target/6041
30c99a84
RH
10285 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
10286 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
10287 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
10288 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
10289 conditional.
10290 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
10291
02a566dc
DJ
102922002-03-29 Dale Johannesen <dalej@apple.com>
10293
10294 * loop.c (combine_movables): Do allow combination of pseudos.
10295
bc3a44db
LR
102962002-03-29 Loren J. Rittle <ljrittle@acm.org>
10297
10298 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
10299 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
10300 No functional change except ...
10301 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
10302 * doc/install.texi (*-*-freebsd*): Document port configuration.
10303
b0c48229
NB
103042002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10305
10306 * Makefile.in (convert.o, calls.o, expmed.o): Update.
10307 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
10308 Use new hooks.
10309 * builtin-types.def (BT_PTRMODE): Update.
10310 * c-common.c (type_for_size): Rename c_common_type_for_size.
10311 (type_for_mode): Similarly.
10312 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
10313 Use new hook.
10314 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
10315 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
10316 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
10317 Redefine.
10318 * c-typeck.c (common_type, comptypes, default_conversion):
10319 Use new hooks.
10320 * calls.c: Include langhooks.h.
10321 (emit_library_call_value_1): Use new hooks. Avoid redundant
10322 calls.
10323 * convert.c: Include langhooks.h
10324 (convert_to_pointer, convert_to_integer): Use new hooks.
10325 * except.c (init_eh): Similarly.
10326 * expmed.c: Include langhooks.h.
10327 (expand_mult_add): Use new hooks.
10328 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
10329 try_casesi): Similarly.
10330 * fold-const.c (optimize_bit_field_compare, make_range,
10331 decode_field_reference, fold_truthop, fold): Similarly.
10332 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
10333 put_var_into_stack): Similarly.
10334 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
10335 LANG_HOOKS_TYPE_FOR_SIZE): New.
10336 (LANG_HOOKS_TYPES_INITIALIZER): Update.
10337 * langhooks.h (lang_hooks_for_types): New hooks.
10338 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
10339 * tree.c (get_unwidened, get_narrower): Similarly.
10340 * tree.h (type_for_mode, type_for_size): Remove.
10341 * varasm.c (force_const_mem): Use new hooks.
10342 * utils2.c (nonbinary_modular_operation): Update.
10343objc:
10344 * objc-act.c (handle_impent): Update.
10345 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
10346 Redefine.
10347
e206a74f
SE
103482002-03-29 Steve Ellcey <sje@cup.hp.com>
10349
10350 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
10351 * config/ia64/ia64.c (basereg_operand): New.
10352 * config/ia64/ia64-protos.h (basereg_operand): Declare.
10353 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
10354
7d9b6378
HPN
103552002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10356
10357 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
10358 unwind information when frame_pointer_needed.
10359 (mmix_assemble_integer): Tweak wording in comment.
10360
f1e639b1
NB
103612002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10362
10363 * Makefile.in (except.o): Update.
10364 * except.c: Include langhooks.h.
10365 (init_eh): Use langhook.
10366 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
10367 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
10368 (LANG_HOOKS_INITIALIZER): Update.
10369 * langhooks.h (lang_hooks_for_types): New.
10370 (struct lang_hooks): Add it.
10371 * tree.c (make_lang_type_fn, make_lang_type): Remove.
10372 * tree.h (make_lang_type_fn, make_lang_type): Remove.
10373config:
10374 * alpha/alpha.c: Include langhooks.h.
10375 (alpha_build_va_list): Use langhook.
10376 * d30v/d30v.c: Include langhooks.h.
10377 (d30v_build_va_list): Use langhook.
10378 * i386/i386.c: Include langhooks.h.
10379 (ix86_build_va_list): Use langhook.
10380 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
10381 * s390/s390.c: Include langhooks.h.
10382 (s390_build_va_list): Use langhook.
10383 * stormy16/stormy16.c: Include langhooks.h.
10384 (stormy16_build_va_list): Use langhook.
10385
f17f9332
JJ
103862002-03-29 Jakub Jelinek <jakub@redhat.com>
10387
10388 PR c++/5964
10389 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
10390 attributes.
10391 (length): Compute variable length for branches/calls/jumps here.
10392 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
10393 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
10394 define branch_type attribute.
10395 (divsi3_sp32): Maximum length is 6 not 7.
10396 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
10397 call_address_untyped_struct_value_sp32,
10398 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
10399 * config/sparc/sparc.c (empty_delay_slot): New function.
10400 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
10401 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
10402
0a0440c9
JJ
104032002-03-29 Jakub Jelinek <jakub@redhat.com>
10404
10405 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
10406 nonzero_bits if not needed.
10407 (nonzero_bits) [XOR]: Likewise.
10408 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
10409 reg_last_set_mode and mode are both MODE_INT, but not equal.
10410 (record_value_for_reg): Compute reg_last_set_nonzero_bits
10411 in nonzero_bits_mode for MODE_INT modes.
10412
c9045f47
RH
104132002-03-28 Richard Henderson <rth@redhat.com>
10414
10415 PR target/5715
10416 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10417 to GAS. Correct drift between alternatives.
10418
f8ed1958
RH
104192002-03-28 Richard Henderson <rth@redhat.com>
10420
10421 PR target/6087
10422 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10423
54e20385
LR
104242002-03-28 Alexandre Oliva <aoliva@redhat.com>
10425
10426 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10427 emulation to the linker.
10428
104292002-03-28 Loren J. Rittle <ljrittle@acm.org>
10430
10431 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10432 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10433
8bc52806
JL
10434Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
10435
10436 * combine.c (simplify_and_const_int): Make sure to apply mask
10437 when force_to_mode returns a constant integer. PR3311.
10438
279dccc5
JDA
104392002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10440
10441 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10442
62aaa62c
GP
104432002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10444
10445 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10446 and Objective-C Dialect Options.
10447
b8de5050
RH
104482002-03-28 Richard Henderson <rth@redhat.com>
10449
10450 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10451 comparison should be done vs !=0 not >0 return code. Tidy cases.
10452
619708cc
RH
104532002-03-28 Richard Henderson <rth@redhat.com>
10454
10455 * c-decl.c (finish_function): New arg can_defer_p. Pass it
10456 on to c_expand_body.
10457 * c-tree.h (finish_function): Update decl.
10458 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
10459
b1d874d7
JH
10460Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
10461
10462 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
10463
f5eb5fd0
JH
10464Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
10465
10466 * rtlanal.c: Include flags.h
10467 (may_trap_p): Do not mark FP operations if trapping
10468 if !flag_trapping_math
10469 * Makefile.in (rtlanal.o): Add dependency on flag.h
10470 * ifcvt.c (noce_operand_ok): Avoid the lameness.
10471
81b4c798
ZW
104722002-03-27 Zack Weinberg <zack@codesourcery.com>
10473
10474 * mips.md: Use dconst1, not 1.0, as first argument of
10475 REAL_VALUE_LDEXP. Don't use union real_extract.
10476
55a2ea2a
AM
104772002-03-28 Alan Modra <amodra@bigpond.net.au>
10478
10479 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
10480 rather than $target. Heed program_prefix and
10481 program_transform_name. Search for gas in cross-compiler case too.
10482 "test -x" rather than "test -f".
10483 (gcc_cv_ld): Likewise.
10484 (gcc_cv_nm): Heed program_prefix and program_transform_name.
10485 (gcc_cv_objdump): Likewise.
10486 * configure: Regenerate.
10487
7ffb4fd2
NB
104882002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10489
10490 * Makefile.in (attribs.o): Update.
10491 * attribs.c: Include langhooks.h.
10492 (decl_attributes): Use langhook.
10493 * c-decl.c (insert_default_attributes): Rename.
10494 * c-tree.h (c_insert_default_attributes): New.
10495 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
10496 (LANG_HOOKS_INITIALIZER): Update.
10497 * langhooks.h (struct lang_hooks): New hook.
10498 * tree.h (insert_default_attributes): Remove.
10499objc:
10500 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
10501
e4dbaed5
AS
105022002-03-27 Andreas Schwab <schwab@suse.de>
10503
10504 * config/i386/i386.c (classify_argument): Also check for
10505 QUAL_UNION_TYPE.
10506
18b467f1
RO
105072002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10508
10509 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
10510 any more.
10511
d337d653
JH
10512Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
10513
10514 * i960.md (ret): Set PC.
10515 (nonlocal_goto): Fix expander.
10516 * builtins.c (epxand_builin_longjmp): Check that we've emitted
10517 some jump or call.
10518
218aa620
JH
10519Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
10520
10521 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
10522 of libcall regions.
10523
e27a4eaf
ZD
10524Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10525
10526 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
10527 assigning to BLOCK_FOR_INSN directly.
10528
8a12f34c
JH
10529Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
10530
10531 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
10532
c9d892a8
NB
105332002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10534
10535 * c-common.c (c_expand_expr): Fix prototype.
10536 * c-common.h (c_expand_expr): Always declare, update.
10537 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10538 * c-objc-common.c (c_objc_common_init): No global hook.
10539 * expr.c (expand_expr): Use langhook.
10540 * expr.h (enum expand_modifier): Conditionally declare.
10541 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
10542 (LANG_HOOKS_INITIALIZER): Update.
10543 * langhooks.c (lhd_expand_expr): New.
10544 * langhooks.h (struct lang_hooks): New hook.
10545 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
10546 (lang_independent_init): Don't default hook.
10547objc:
10548 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10549
6dad5a56
RH
105502002-03-27 Richard Henderson <rth@redhat.com>
10551
10552 PR target/6054
10553 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
10554 TARGET_CONST_GP. Simplify conditions.
10555
59f96879
RH
105562002-03-27 Richard Henderson <rth@redhat.com>
10557
10558 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10559 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
10560 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
10561
f3f1190d
DS
105622002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
10563
10564 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10565 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
10566 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
10567 Remove unnecessary masks.
10568 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
10569 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
10570 -mwindows, -mdll switches and their negations.
10571
31c816cf
NB
105722002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10573
10574 * gcc-common.c (lang_mark_false_label_stack): Remove.
10575 * ggc.h (lang_mark_false_label_stack): Similarly.
10576
7b2e1077 105772002-03-26 Vladimir Makarov <vmakarov@redhat.com>
aee8f532
VM
10578
10579 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
10580
10581 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
10582 or __rtems_ is defined.
10583
1ef9531b
RH
105842002-03-26 Richard Henderson <rth@redhat.com>
10585
10586 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
10587 if a non-trivial load was emitted.
10588 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
10589 in high+extra+low case.
10590
300d4093
RH
105912002-03-26 Richard Henderson <rth@redhat.com>
10592
10593 * config.gcc (sparc*-solaris): Use float_format=sparc.
10594
b3689904
RH
105952002-03-26 Richard Henderson <rth@redhat.com>
10596
10597 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10598 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
10599 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
10600 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
10601 (WINT_TYPE_SIZE): Fix at 32.
10602
1eefb6c1
RH
106032002-03-26 Richard Henderson <rth@redhat.com>
10604
10605 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
10606 until after eh landing pad generation.
10607 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
10608 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
10609
361ea006
RH
106102002-03-26 Richard Henderson <rth@redhat.com>
10611
10612 * expr.h (ADD_PARM_SIZE): One more convert for INC.
10613
1de38a88
PE
106142002-03-26 Phil Edwards <pme@gcc.gnu.org>
10615
10616 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
10617 and warning switches.
10618 (cc1_options): Likewise.
10619
d7e60e95 106202002-03-26 Hans Boehm <Hans_Boehm@hp.com>
361ea006 10621
d7e60e95
HB
10622 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
10623 Restore more of the signal context. Set no_reg_stack_frame.
10624 * config/ia64/unwind-ia64.c (unw_state_record):
10625 Add no_reg_stack_frame, comments.
10626 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
10627 (uw_update_context): Adjust bsp when unwinding from leaf,
10628 but not signal frame.
10629
7032923b
DE
106302002-03-26 David Edelsohn <edelsohn@gnu.org>
10631
10632 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
10633
8be56275
BW
106342002-03-26 Bob Wilson <bob.wilson@acm.org>
10635
10636 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
10637
56fbb855
RE
106382002-03-26 Richard Earnshaw <rearnsha@arm.com>
10639
10640 PR target/5621
10641 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
10642 "Add a pool_range attribute", which was lost during the ARM/Thumb
10643 merge.
10644
3437320b
BW
106452002-03-26 Bob Wilson <bob.wilson@acm.org>
10646
10647 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
10648 a register into the MAC16 accumulator.
10649
173028e5
AC
106502002-03-26 Andrew Cagney <ac131313@redhat.com>
10651
10652 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
10653 (Warning Options): Document -Wswitch-enum.
10654 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
10655 -Wswitch.
10656 (warn_switch_enum): Define variables.
10657 * flags.h (warn_switch_enum): Declare variables.
10658 * stmt.c (expand_end_case_type): When warn_switch_enum /
10659 -Wswitch-enum, perform switch checks.
10660 Fix PR c/5044.
7b2e1077 10661
e14365a7
RE
106622002-03-26 Richard Earnshaw <rearnsha@arm.com>
10663
10664 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
10665 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
10666 (reload_muladdsi_compare0_scratch): Delete.
10667
46fc709d
LR
106682002-03-26 Loren J. Rittle <ljrittle@acm.org>
10669
10670 * doc/install.texi (*-*-freebsd*): Update.
10671
f36dea3c
RH
106722002-03-26 Richard Henderson <rth@redhat.com>
10673
8e5fe23f
RH
10674 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
10675 (SUB_PARM_SIZE): Cast DEC to ssizetype.
10676
10677 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
10678 types from the normal argument frame.
10679
f36dea3c
RH
10680 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
10681 variable sized objects by reference.
10682 (sparc_va_arg): Receive them by reference too.
10683
1447dc69
HP
106842002-03-26 Hartmut Penner <hpenner@de.ibm.com>
10685
10686 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7b2e1077 10687 code to not restoring global registers.
1447dc69 10688
4f0ade92
NB
106892002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
10690
10691 * Makefile.in (ggc-common.o): Update.
10692 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
10693 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10694 * c-tree.h (c_mark_tree): New.
10695 * ggc-common.c: Include langhooks.h.
10696 (gcc_mark_trees): Use new langhook.
10697 * ggc-callbacks.c: Delete file.
10698 * ggc.h (lang_mark_tree): Remove.
10699 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
10700 (LANG_HOOKS_INITIALIZER): Update.
10701 * langhooks.h (struct lang_hooks): New hook.
10702objc:
10703 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10704
caba570b
ZW
107052002-03-25 Zack Weinberg <zack@codesourcery.com>
10706
10707 * doc/cpp.texi: Exclude entire Top node from printed manual.
10708 Move option index after directive index. Insert page breaks
10709 before GFDL and concept index. Index environment variables
10710 with command line options.
10711 * doc/cppenv.texi: Use @vtable for environment variable list.
10712 Add paragraph explaining semantics of empty elements in path
10713 variables. Exclude a cross-reference to Fishkill from the
10714 manpage. Remove an unnecessary cross-reference of the entry
10715 right above the referer. Don't use @anchor in text that goes
10716 into manpage.
10717 * doc/cppopts.texi: Cross-reference the environment variables
10718 section, not the specific environment variable, for consistency.
10719
6b2e80b7
RH
107202002-03-25 Richard Henderson <rth@redhat.com>
10721
10722 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
10723 anywhere in the block. Don't refer to insns that have been
10724 removed from the chain. Iterate backward through the new insns.
10725 Don't refer to edges that have been removed.
10726
67e469d7
AM
107272002-03-26 Alan Modra <amodra@bigpond.net.au>
10728
10729 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
10730 test for overflow of constant.
10731
f2356393
RE
107322002-03-25 Richard Earnshaw <rearnsha@arm.com>
10733
10734 PR target/2623
10735 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
10736 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
10737 these patterns on arm_archv4.
10738
355426ab
DS
107392002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
10740
10741 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
10742 int".
10743
15e5ad76
ZW
107442002-03-25 Zack Weinberg <zack@codesourcery.com>
10745
10746 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
10747 float_handled, float_handler, float_signal, set_float_handler,
10748 and do_float_handler. Set handler for SIGFPE to crash_signal.
10749 * toplev.h: Don't prototype do_float_handler.
10750
10751 * c-lex.c: Fold parse_float into lex_number. Make warning
10752 about portability of hex float constants more informative, and
10753 don't issue it on top of a syntax error.
10754 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
10755 their callers.
10756 * real.h: Define REAL_VALUE_ABS here...
10757 * simplify-rtx.c: ... not here. Fold check_fold_consts,
10758 simplify_unary_real, simplify_binary_real, and
10759 simplify_binary_is2orm1 into their callers.
10760 * tree.c: Fold build_real_from_int_cst_1 into caller.
10761
10762 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
10763
10764 * tsystem.h: Include float.h here...
10765 * libgcc2.c: ... not here.
10766
56ae9405
NC
107672002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
10768
10769 Fixes for: PR bootstrap/3591, target/5676
10770 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
10771 defined. Do not disable exceptions or rtti.
10772 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
10773 mcore.h. Disable exceptions and rtti, since they are not
10774 supported by EPOC.
10775
c88770e9
NB
107762002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
10777
10778 * c-decl.c (maybe_build_cleanup): Remove.
10779 * expr.c (expand_expr): Use langhook.
10780 * langhooks-def.h (lhd_return_null_tree,
10781 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
10782 (LANGHOOKS_INITIALIZER): Update.
10783 * langhooks.c (lhd_return_null_tree): New.
10784 * langhooks.h (struct lang_hooks): New hook.
10785 * tree-inline.c (initialize_inlined_parameters): Use langhook.
10786 * tree.h (maybe_build_cleanup): Remove.
10787
2ed1f154
JJ
107882002-03-25 Jakub Jelinek <jakub@redhat.com>
10789
10790 * regrename.c (build_def_use): Move recog_memoized
10791 before extract_insn.
10792
6ddae612
JJ
107932002-03-25 Jakub Jelinek <jakub@redhat.com>
10794
10795 PR target/6043
10796 * expr.c (emit_group_store): Handle storing into CONCAT.
10797
ea475b23
JJ
107982002-03-25 Jakub Jelinek <jakub@redhat.com>
10799
10800 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
10801 corresponding MATCH_DUP.
10802
e7d482b9
RH
108032002-03-24 Richard Henderson <rth@redhat.com>
10804
cd39fc13
RH
10805 * unroll.c (unroll_loop): Zero label_map.
10806
e7d482b9
RH
10807 * gcse.c: Include except.h.
10808 * Makefile.in (gcse.o): Update.
10809
1bd6476f
RH
108102002-03-24 Richard Henderson <rth@redhat.com>
10811
10812 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
10813 Do resolve_unique_section before shared data clause.
10814
2e6c150a
RH
108152002-03-24 Richard Henderson <rth@redhat.com>
10816
10817 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
10818
b29afcf8
RH
108192002-03-24 Richard Henderson <rth@redhat.com>
10820
15e5ad76 10821 * recog.c (peephole2_optimize): Split blocks when EH insns are
b29afcf8
RH
10822 generated in the middle of a block. Do global life update if
10823 zapped EH edges.
10824
05ed1296
RH
108252002-03-24 Richard Henderson <rth@redhat.com>
10826
10827 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
10828
3ddbb8a9
NB
108292002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10830
10831 preprocessor/3951
15e5ad76 10832 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3ddbb8a9
NB
10833 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
10834 (init_dependency_output): Don't make no_output decision here.
10835
740b77b6
AC
108362002-03-24 Andrew Cagney <ac131313@redhat.com>
10837
10838 * stmt.c (check_for_full_enumeration_handling): Remove tests of
10839 warn_switch. Update description.
10840 (expand_end_case_type): Call check_for_full_enumeration_handling
10841 when warn_switch.
10842
7590cfd0
SC
108432002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10844
10845 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
10846 (m68hc11_split_move): Call it to see if the source and destination
10847 operands use the same direction auto inc/dec mode, otherwise make the
c61f581f 10848 source an offsetable memory operand and generate an add.
7590cfd0 10849
2e3d3481
SC
108502002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10851
10852 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
10853 register for operand 2.
10854 ("*subsi3_zero_extendqi"): Likewise.
10855 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
10856 bits so that it is compatible with a pop.
10857 ("*andhi3_gen"): Likewise.
10858 ("xorhi3"): Likewise.
10859
2784528c
NB
108602002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10861
10862 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
10863 -pedantic here...
10864 (cpp_post_options): ... not here.
10865
aaf93206
NB
108662002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10867 Aldy Hernandez <aldyh@redhat.com>
10868
10869 Removal of separate preprocessor cpp0.
10870
10871 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
10872 cpp0, install-common): Update.
10873 * c-common.c (flag_preprocess_only): New.
10874 (c_common_init): Preprocess for -E.
10875 * c-common.h (flag_preprocess_only): New.
10876 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
10877 * c-objc-common.c (c_init_decl_processing): Exit quickly
10878 for NULL return from c_common_init.
10879 * cpplib.h (cpp_preprocess_file): New.
10880 * cppmain.c (main, general_init, pfile, progname): Remove.
10881 (do_preprocessing): Rename cpp_preprocess_file, don't call
10882 cpp_finish. Don't close stdout here.
10883 (setup_callbacks): Update prototype.
10884 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
10885 Update.
10886 * tradcpp.c (main): Ignore -quiet.
10887objc:
10888 * lang-specs.h (default_compilers): Preprocess with cc1obj.
10889
c6e6f5c1
RH
108902002-03-24 Richard Henderson <rth@redhat.com>
10891
10892 PR optimization/5742
10893 * machmode.def: Add inner mode field to complex modes.
10894 * config/mips/mips.c (mips_function_value): Always define. Add
10895 new argument to handle libcalls.
10896 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
10897 (FUNCTION_VALUE): Likewise.
10898 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
10899 * config/mips/mips-protos.h: Update.
10900
d88e57d1
RH
109012002-03-23 Richard Henderson <rth@redhat.com>
10902
10903 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
10904 * config/sparc/sparc-protos.h: Update.
10905 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
10906
6dfaf9ba
RH
109072002-03-23 Richard Henderson <rth@redhat.com>
10908
10909 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
10910 _start or _init begins the text segment.
10911
0c769cf8
DE
109122002-03-23 David Edelsohn <edelsohn@gnu.org>
10913
10914 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
10915 not HOST_WIDEST_INT.
10916 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
10917
64e92a26
RE
109182002-03-23 Richard Earnshaw <rearnsha@arm.com>
10919
10920 PR java/5489
10921 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
10922 operand argument to output_return_instruction.
15e5ad76 10923 * arm.c (arm_print_operand, case 'd'): If the operand is
64e92a26
RE
10924 const_true_rtx then just return.
10925 (arm_print_operand, case 'D'): If the operand is const_true_rtx
10926 then abort.
10927
d6961341
AC
109282002-03-23 Andrew Cagney <ac131313@redhat.com>
10929
10930 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
10931 (Warning Options): Document -Wswitch-default.
10932 * toplev.c (W_options): Add -Wswitch-default. Update comment on
10933 -Wswitch.
10934 (warn_switch_default): Define variable.
10935 (warn_switch): Update comment.
10936 * flags.h (warn_switch_default): Declare variable.
10937 (warn_switch): Update comment.
10938 * stmt.c (expand_end_case): Check for and, when
10939 warn_switch_no_default, warn of a missing default case.
15e5ad76 10940
d4c5ac1f
AM
109412002-03-23 Alan Modra <amodra@bigpond.net.au>
10942
bbaa9790
AM
10943 * real.h (N): Special case 128 bit doubles.
10944
d4c5ac1f
AM
10945 * combine.c (simplify_comparison): When widening modes, ignore
10946 sign extension on CONST_INTs.
10947
84bf8c2c
BW
109482002-03-22 Bob Wilson <bob.wilson@acm.org>
10949
10950 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
10951 passed to adjust_address. Fix comment formatting.
10952
10953
b216cd4a
ZW
109542002-03-22 Zack Weinberg <zack@codesourcery.com>
10955
10956 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
10957 Always make REAL_VALUE_TYPE a struct containing an array of
10958 HOST_WIDE_INT, not a double. Tidy up the code deciding how
10959 big it is. Don't declare or use union real_extract.
10960
10961 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
10962 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
10963 (print_operand), config/arm/arm.c (output_move_double),
10964 config/arm/arm.md (consttable_4, consttable_8),
10965 config/romp/romp.c (output_fpops), config/s390/s390.h
10966 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
10967 (xtensa_output_literal): Don't use union real_extract.
10968
10969 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
10970 (sfmode_constant_to_ulong), config/ns32k/merlin.h
10971 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
10972 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
10973 (PRINT_OPERAND): Don't use local version of union
10974 real_extract.
10975
10976 * config/convex/convex.c (check_float_value), config/vax/vax.c
10977 (vax_float_literal), config/m88k/m88k.md (divdf3),
10978 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
10979 config/pdp11/pdp11.c (output_move_quad): Don't do host
10980 arithmetic on target floating point quantities.
10981
10982 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
10983 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
10984
10985 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
10986 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
10987
10988 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
10989 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
10990 INFINITY.
10991 * print-rtl.c (print_rtx): Disable code which needs
10992 floating-point emulator.
10993 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
10994 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
10995 depending on HOST_FLOAT_FORMAT to be defined properly.
10996
10997 * config/1750a/1750a.c (get_double, float_label): Delete.
10998 (print_operand): Delete huge commented-out chunk. Use
10999 REAL_VALUE_TO_DECIMAL.
11000 * config/1750a/1750a-protos.h: Delete prototypes of deleted
11001 functions.
11002 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
11003 IEEE_FLOAT_FORMAT.
11004 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
11005 Use REAL_VALUE_TO_DECIMAL as ELF version does.
11006 * config/m88k/m88k.c (real_power_of_2_operand,
11007 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
11008 real_extract out of the union; run the input through
11009 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
11010 from that into the union.
11011 * config/pdp11/pdp11.c (output_move_double): Rearrange
11012 parentheses to make automatic indenter happy.
11013
11014 * doc/tm.texi (Cross-compilation): Rename node to "Floating
11015 Point" and rewrite to describe current situation. Also adjust
11016 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
11017 match code.
11018 * doc/rtl.texi: Adjust cross reference.
11019
a8cacfd2
BW
110202002-03-22 Bob Wilson <bob.wilson@acm.org>
11021
11022 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
11023 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
11024 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
11025 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
11026 prevent use of sp as a reload register.
11027 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
11028 non_acc_reg_operand.
11029 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
11030 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
11031 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
11032 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
11033
d4e6133f
NB
110342002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
11035
b216cd4a
ZW
11036 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
11037 * cpplex.c (unterminated): Delete.
11038 (parse_string): No string literal may extend over multiple
11039 lines. Suppress the error when preprocessing assembly.
d4e6133f
NB
11040 * cppmain.c (scan_translation_unit): Strings are single-line.
11041
b216cd4a 11042 * doc/cpp.texi: Update to match.
d4e6133f 11043
65e6c005
JJ
110442002-03-22 Jakub Jelinek <jakub@redhat.com>
11045
11046 PR optimization/5854
11047 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
11048 Shut up warnings.
11049 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
11050 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
11051 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
11052 const0 if scratch register was not allocated.
11053 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
11054 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
11055 with GEN_INT (...).
11056 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
11057 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
11058 with GEN_INT (...) everywhere. Remove constraints in define_split
11059 patterns.
11060 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
11061 require scratch register for setting 0 into regs/non-pushable memory.
11062
7f48c9e1
AO
110632002-03-22 Alexandre Oliva <aoliva@redhat.com>
11064
11065 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
11066 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
11067
909de5da
PE
110682002-03-22 Phil Edwards <pme@gcc.gnu.org>
11069
11070 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
11071 * cppinit.c (cpp_create_reader): On by default.
11072 (cpp_handle_option): Handle -W[no-]endif-labels.
11073 (cpp_post_options): Also enable if -pedantic.
11074 * cpplib.c (do_else): Use it.
11075 (do_endif): Likewise.
11076 * doc/cppopts.texi: Document new option.
11077 * doc/invoke.texi: Document new option.
11078
d8bf17f9
LB
110792002-03-22 Lars Brinkhoff <lars@nocrew.org>
11080
11081 * config/i386/i386.c, config/i386/i386.md: Change all occurences
11082 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
11083
70e0ccd0
AO
110842002-03-22 Alexandre Oliva <aoliva@redhat.com>
11085
11086 * flow.c (calculate_global_regs_live): Clear aux fields of
11087 ENTRY and EXIT.
11088
68882f0f
JJ
110892002-03-22 Jakub Jelinek <jakub@redhat.com>
11090
11091 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
11092 REG or MEM subregs, pass rtx * instead of rtx to it.
11093 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
11094 rtx * instead of rtx to alter_subreg.
11095 * config/m32r/m32r.c (gen_split_move_double): Likewise.
11096 * config/pj/pj.c (pj_output_rval): Likewise.
11097
648fe28b
RH
110982002-03-22 Richard Henderson <rth@redhat.com>
11099
11100 PR target/3177
11101 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
11102 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
11103 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
11104 (ia64_expand_prologue): Look at int_regs, not words, for number
11105 of incomming int regs.
11106
e8dcd824
AM
111072002-03-22 Andrew MacLeod <amacleod@redhat.com>
11108
11109 * expr.c (expand_expr): A RESULT_DECL is part of a call.
11110
96327cdc
JH
11111Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
11112
11113 * toplev.c (flag_loop_optimize, flag_crossjumping):
11114 New static variables.
11115 (rest_of_compilation): Conditionalize crossjumping and
11116 loop optimizer.
11117 (parse_options_and_default_flags): Default loop_optimize and
11118 crossjumping.
11119 (lang_independent_options): Add -fcrossjumping and -floop-optimize
11120 * invoke.texi (crossjumping, loop-optimize): Document.
11121
bc185257
RS
111222002-03-22 Richard Sandiford <rsandifo@redhat.com>
11123
11124 * real.c (eiisneg): Move outside #ifdef NANS.
11125
0a2ed1f1
JH
11126Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
11127
11128 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
11129 frequencies match; avoid match on different loop depths.
11130 (try_crossjump_to_bb): Kill tests that no longer brings time
11131 savings.
11132 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
11133 updating code.
11134 (split_edge): Likewise.
11135
11136 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
11137 variable.
11138
11139 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
11140 * cfgrtl.c: Include insn-config.h
11141 (split_block) Dirtify block in presence of conditional execution
11142
4d72536e
RS
111432002-03-22 Richard Sandiford <rsandifo@redhat.com>
11144
11145 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
11146 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
11147 (function_arg): Constify CUMULATIVE_ARGS.
11148 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
11149 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
11150 (UNITS_PER_DOUBLE): New macro.
11151 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
11152 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
11153 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
11154 fp_regs and stack_words.
11155 (EABI_FLOAT_VARARGS_P): New macro.
11156 * config/mips/mips.c (struct mips_arg_info): New.
11157 (mips_arg_info): New function.
11158 (function_arg_advance): Use it. Add adjustment instructions here
11159 rather than in function_arg.
11160 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
11161 for VOIDmode at the beginning of the function.
11162 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
11163 (function_arg_pass_by_reference): Likewise.
11164 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
11165 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
11166 (mips_va_start): Likewise. Use the new stack_words field of
11167 CUMULATIVE_ARGS to set up overflow area. Reformat.
11168 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
11169 doubles and other types, aligning the overflow pointer for non-doubles
11170 too. Remove some code duplication. Replace hard-coded constants.
11171
e6f884cd
RS
111722002-03-22 Richard Sandiford <rsandifo@redhat.com>
11173
11174 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
11175 (CLASS_UNITS): Undefine.
11176 (CLASS_MAX_NREGS): Use FP_INC.
11177 * config/mips/mips.c (compute_frame_size): Likewise.
11178 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
11179
10cf9bde
NB
111802002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
11181
11182 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
11183 prototype, and handle lexing numbers and identifiers.
11184 (parse_identifier): Update to new form of parse_slow.
11185 (parse_number): Fast path only, use parse_slow otherwise.
11186 (_cpp_lex_direct): Update calls to parse_number.
11187
fbc2782e
DD
111882002-03-21 DJ Delorie <dj@redhat.com>
11189
11190 * bb-reorder.c (make_reorder_chain_1): Protect against
11191 when redundant edges are omitted.
11192 * predict.c (dump_prediction): Likewise.
11193
fba39eaf
RH
111942002-03-21 Richard Henderson <rth@redhat.com>
11195
11196 PR target/5996
11197 * fixinc/inclhack.def (solaris_stdio_tag): New.
11198 * fixinc/fixincl.x: Regenerate.
11199
eba80994
EB
112002002-03-21 Eric Botcazou <ebotcazou@multimania.com>
11201
11202 PR c/5597
11203 * c-typeck.c (process_init_element): Flag non-static
11204 initialization of a flexible array member as illegal.
11205
2a78758b
AM
112062002-03-22 Alan Modra <amodra@bigpond.net.au>
11207
11208 * config/rs6000/t-linux64: New.
11209 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
11210 t-ppccomm. Use t-rs6000 and t-linux64.
11211 (powerpc64-*-gnu* <tmake_file>): Likewise.
bac015e7
AM
11212 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
11213 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
11214 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2a78758b 11215
2cb921f4
AH
112162002-03-21 Aldy Hernandez <aldyh@redhat.com>
11217
eba80994
EB
11218 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
11219 flag_really_no_inline instead of optimize == 0.
2cb921f4 11220
eba80994 11221 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2cb921f4 11222
eba80994 11223 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2cb921f4 11224
eba80994 11225 * flags.h (flag_really_no_inline): New.
2cb921f4 11226
659e5a7a 11227 * c-common.c (c_common_post_options): Initialize
eba80994 11228 flag_really_no_inline.
2cb921f4 11229
eba80994 11230 * toplev.c (flag_really_no_inline): New.
2cb921f4 11231
239b8b9d
JJ
112322002-03-21 Jakub Jelinek <jakub@redhat.com>
11233
11234 * config/avr/avr.md (length): Fix length computation for
11235 conditional branches.
11236
43577e6b
NB
112372002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
11238
11239 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
11240 sdbout.o, profile.o): Update.
11241 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
11242 langhook.
11243 * c-common.h (gettags): Move here from tree.h.
11244 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
11245 insert_block, getdecls, kept_level_p, global_bindings_p): New.
11246 * dbxout.c (dbxout_init): Use getdecls langhook.
11247 * expr.c (expand_expr): Use insert_block langhook.
11248 * fold-const.c: Include langhooks.h.
11249 (fold_range_test, fold_binary_op_with_conditional_arg,
11250 fold): Use global_bindings_p langhook.
11251 * integrate.c (expand_inline_function): Use insert_block langhook.
11252 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
11253 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
11254 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
11255 LANG_HOOKS_GETDECLS): New.
11256 (LANG_HOOKS_INITIALIZER): Update.
11257 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
11258 langhook.
11259 * langhooks.h (struct lang_hooks_for_decls): New.
11260 (struct lang_hooks): Update.
11261 * profile.c: Include langhooks.h.
11262 (output_func_start_profiler): Use new langhooks.
11263 * sdbout.c: Include langhooks.h.
11264 (sdbout_init, sdbout_finish): Use getdecls langhook.
11265 * stmt.c: Include langhooks.h.
11266 (expand_fixup, fixup_gotos): Use new langhooks.
11267 * stor-layout.c: Include langhooks.h.
11268 (variable_size): Use global_bindings_p langhook.
11269 * toplev.c (compile_file): Use getdecls langhook.
11270 * tree-inline.c (remap_block): Use insert_block langhook.
11271 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
11272 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
11273
5b19b10c
RH
112742002-03-21 Richard Henderson <rth@redhat.com>
11275
11276 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
11277 constants in .data when -fpic.
11278
e05af335
GP
112792002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11280
11281 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
11282 where appropriate.
11283
60ffc997
TT
112842002-03-21 Tom Tromey <tromey@redhat.com>
11285
11286 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
11287
75897075
RK
11288Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11289
a73afd69 11290 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
46399021 11291
75897075
RK
11292 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
11293
312687cf
EB
112942002-03-21 Eric Botcazou <ebotcazou@multimania.com>
11295 Richard Henderson <rth@redhat.com>
11296
11297 PR c/5354
11298 * c-common.c (c_expand_expr): Preserve result of a statement
11299 expression if needed.
11300
f0e1f482
JJ
113012002-03-21 Jakub Jelinek <jakub@redhat.com>
11302
11303 PR bootstrap/4195
11304 * genrecog.c (maybe_both_true_mode): Remove.
11305 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
11306 * machmode.def (Pmode): Likewise.
11307
c14b9960
JW
11308Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
11309
11310 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
11311 (nonlocal_mentioned_p_1): New function.
11312 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
11313 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
11314 (mark_constant_function): Recognize pure functions.
11315 * rtl.h (global_reg_mentioned_p): New prototype.
11316 * rtlanal.c (global_reg_mentioned_p,
11317 global_reg_mentioned_p_1): New function.
11318
aaa4d130
RO
113192002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11320
11321 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
11322 UNIX assert.h.
11323 * fixinc/fixincl.x: Regenerate.
11324
e5c4bd1b
JM
113252002-03-20 Jason Merrill <jason@redhat.com>
11326
11327 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
11328
852b81bb
MM
113292002-03-20 Michael Meissner <meissner@redhat.com>
11330
11331 * doc/invoke.texi (Optimize Options): Document that -O2 sets
11332 -fstrict-aliasing.
11333
86d8c251
BW
113342002-03-20 Bob Wilson <bob.wilson@acm.org>
11335
11336 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
11337 ".literal_position" directive before the constant pool.
11338
0a39c350
GP
113392002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11340
11341 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
11342 Add Craig Rodrigues.
11343 Add Brad Lucier to testers.
11344
71a83373
JJ
113452002-03-20 Jakub Jelinek <jakub@redhat.com>
11346
11347 PR target/4792
11348 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
11349 to if_then_else.
11350 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
11351 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
11352 instead of insn_extract.
11353
a29b099d
JJ
113542002-03-20 Jakub Jelinek <jakub@redhat.com>
11355
11356 PR bootstrap/4192
71a83373 11357 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
a29b099d
JJ
11358
11359 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
11360 stmt if some case has been output.
11361
048b1c95
JJ
113622002-03-20 Jakub Jelinek <jakub@redhat.com>
11363
11364 PR c/5972
11365 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
11366 movsfcc_1, movdfcc_1): Add %O2.
11367 * config/i386/i386.c (print_operand): Handle %ON.
11368 Print . before float condition codes in Sun as cmov syntax.
11369 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
11370 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
11371 no longer true.
11372
f4864588
PB
113732002-03-20 Philip Blundell <pb@nexus.co.uk>
11374
11375 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
11376 return instruction if PC was popped.
11377
3a307de4
BW
113782002-03-20 Bob Wilson <bob.wilson@acm.org>
11379
11380 * config/xtensa/xtensa.md: Remove unused type attributes.
11381 (adddi_carry, subddi_carry): Change type attribute to "multi".
11382
048b1c95 113832002-03-19 Dale Johannesen <dalej@apple.com>
ed7d44bc
DJ
11384
11385 PR optimization/5999, middle-end/5731
11386 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
11387 multiplications by reciprocals.
11388
7afff7cf
NB
113892002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11390
11391 * Makefile.in: Update.
11392 * c-common.c: Include langhooks.h.
11393 (inline_forbidden_p): Use new hook.
11394 * diagnostic.c: Include langhooks.h.
11395 (format_with_decl, announce_function,
11396 default_print_error_function): Use new hook.
11397 * dwarf2out.c (dwarf2_name): Use new hook.
11398 * function.c: Include langhooks.h.
11399 (init_function_start): Use new hook.
11400 * langhooks-def.h (lhd_decl_printable_name): New.
11401 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
11402 (LANGHOOKS_INITIALIZER): Update.
11403 * langhooks.c (lhd_decl_printable_name): New.
11404 * langhooks.h (struct lang_hooks): New hook.
11405 * toplev.c (decl_name, decl_printable_name): Remove.
11406 (open_dump_file): Use new hook.
11407 (process_options): Remove old hook.
11408 * tree.h (decl_printable_name): Remove.
11409objc:
11410 * objc-act.c (objc_init): Remove old hook.
11411 (objc_printable_name): Export.
11412 * objc-act.h (objc_printable_name): New.
11413 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11414
f78ce0b7
JB
114152002-03-19 Jim Blandy <jimb@redhat.com>
11416
11417 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11418 the start_source_file debug hook, not the current line number.
11419
15b5aef3
RH
114202002-03-19 Richard Henderson <rth@redhat.com>
11421
11422 * flow.c (EH_USES): Provide default.
11423 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11424 * doc/tm.texi (EH_USES): New.
11425
11426 * config/ia64/ia64.c (ia64_eh_uses): New.
11427 * config/ia64/ia64-protos.h: Update.
11428 * config/ia64/ia64.h (EH_USES): New.
11429
02a7a3fd
RH
114302002-03-19 Richard Henderson <rth@redhat.com>
11431
11432 * varasm.c (output_constant_def): Fix stupid typo.
11433
93f82d60
RH
114342002-03-19 Richard Henderson <rth@redhat.com>
11435
2842be05 11436 PR 5879
93f82d60
RH
11437 * except.c (current_function_has_exception_handlers): New.
11438 * except.h: Declare it.
11439 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11440 Combine tests that disable all sibcalls for the function.
11441
ed4fbfa0
OH
114422002-03-19 Olivier Hainque <hainque@act-europe.fr>
11443
11444 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11445 for INTEGER_CST.
11446
ebf0e888
RH
114472002-03-19 Richard Henderson <rth@redhat.com>
11448
1e82682b 11449 PR 5977, 5991
ebf0e888
RH
11450 * config/ia64/ia64.c: Revert 2002-03-01 patch.
11451 * config/ia64/ia64.h (INIT_EXPANDERS): New.
11452
e37b38d7
JB
114532002-03-19 Jim Blandy <jimb@redhat.com>
11454
11455 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11456 name, even if the replacement list contains no tokens, as required
11457 by Dwarf.
11458
2a4ea326
JM
114592002-03-19 Jason Merrill <jason@redhat.com>
11460
f9d09ae5
JM
11461 * varasm.c (globalize_decl): Get the name from the RTL, not
11462 DECL_ASSEMBLER_NAME.
11463
2a4ea326
JM
11464 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
11465
99b96edb
BW
114662002-03-19 Bob Wilson <bob.wilson@acm.org>
11467
11468 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
11469 subdi_carry): Define.
11470
3774b567
DE
114712002-03-19 David Edelsohn <edelsohn@gnu.org>
11472
11473 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
11474 about -fpic/-fPIC if extra_warnings set.
11475
21ef78aa
DE
114762002-03-19 David Edelsohn <edelsohn@gnu.org>
11477
11478 * expr.c (expand_expr): Sign-extend CONST_INT generated from
11479 TREE_STRING_POINTER.
0c2fdcdf 11480 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21ef78aa 11481
91d4b3fd
RK
11482Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11483
11484 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
11485 in favor of SP if FRAME_POINTER_REQUIRED is false.
11486
2496c7bd
LB
114872002-03-19 Lars Brinkhoff <lars@nocrew.org>
11488
11489 * emit-rtl.c (gen_int_mode): New function.
11490 * rtl.h: Prototype for it.
11491 * combine.c (make_extraction, simplify_comparison), expmed.c
11492 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
11493 (convert_modes, store_field), optabs.c (expand_fix),
11494 simplify-rtx.c (neg_const_int, simplify_unary_real),
11495
11496 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
11497 Use it instead of GEN_INT (trunc_int_for_mode (...)).
11498
f735a153
JJ
114992002-03-19 Jakub Jelinek <jakub@redhat.com>
11500
11501 PR c/5656
11502 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11503 convert_parm_for_inlining.
11504 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11505 Define.
11506 * langhooks-def.h: Likewise.
11507 * objc/objc-lang.c: Likewise.
11508 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
11509 function.
11510 * tree-inline.c (initialize_inlined_parameters):
11511 Call convert_parm_for_inlining lang hook if needed.
11512 * c-typeck.c (c_convert_parm_for_inlining): New function.
11513 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
11514
1929c971
MM
115152002-03-18 Mark Mitchell <mark@codesourcery.com>
11516
b216cd4a 11517 * calls.c (precompute_arguments): Do not assume that temporaries
1929c971
MM
11518 can be destroyed after expanding the argument.
11519 (expand_call): Likewise.
11520
c79ca0ac
EC
115212002-03-15 Eric Christopher <echristo@redhat.com>
11522
11523 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
11524 Fix register preference on last change.
11525 * config/mips/mips.c (mips_return_in_memory): New function.
11526 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
11527 * config/mips/mips-protos.h: Declare.
11528 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
11529 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
11530
07e2e444
AO
115312002-03-18 Alexandre Oliva <aoliva@redhat.com>
11532
1bfbbbcf
AO
11533 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
11534 a register too.
11535 (anddi3, iorsi3): Likewise.
11536
c066429e
AO
11537 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
11538 use %gprel for symbols that are going to be placed in linkonce
11539 sections.
11540
07e2e444
AO
11541 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
11542 RETURN_ADDRESS_POINTER_REGNUM to $ra.
11543 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
11544 not needed. Disregard leaf_function_p().
11545 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
11546 mips16 frame pointer.
11547 * config/mips/mips.md (store ra): Only to small SP offsets.
11548 2001-08-22 Graham Stott <grahams@redhat.com>
11549 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
11550 return a REG rtx for the return address register.
11551
eb8e00ea
BW
115522002-03-18 Bob Wilson <bob.wilson@acm.org>
11553
11554 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
11555 constant-pool addresses as "mode-dependent".
11556 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
11557
cbb92744
JJ
115582002-03-18 Jakub Jelinek <jakub@redhat.com>
11559
11560 PR target/5740
11561 * expr.c (emit_group_load): Use extract_bit_field if
11562 needed for CONCAT arguments.
11563
657d9449
RE
115642002-03-18 Richard Earnshaw <rearnsha@arm.com>
11565
91f3a802 11566 PR target/4863
657d9449
RE
11567 * arm.md (tablejump): Make this a define_expand. For PIC add the
11568 offset to the base of the table.
11569 (thumb_tablejump): Matcher for Thumb tablejump insn.
11570 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
11571 as the difference of two labels.
11572 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11573 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
11574 tables in the code.
11575 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11576 * arm.c (get_jump_table_size): If the table is not in the text
11577 section, return zero.
c79ca0ac 11578
5d5603e2
BS
115792002-03-18 Bernd Schmidt <bernds@redhat.com>
11580
11581 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
11582 of gen_rtx_SUBREG.
11583 (arm_reload_out_hi): Use gen_lowpart instead of
11584 gen_rtx_SUBREG to access QImode components.
11585 * config/arm/arm.md: Disable zero_extend split for QImode
11586 subregs in BIG_ENDIAN mode.
11587 (storehi_bigend): Match use of least significant byte.
11588 (storeinthi): Remove extraneous SUBREG.
66c17b64 11589 Add missing construction of operands[2].
5d5603e2
BS
11590 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
11591 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
11592 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
11593
df15fbc7
AH
115942002-03-18 Aldy Hernandez <aldyh@redhat.com>
11595
2496c7bd
LB
11596 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
11597 any_operand.
df15fbc7 11598
b83b7fa3
RH
115992002-03-17 Richard Henderson <rth@redhat.com>
11600
11601 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
11602 explicitly.
11603
6f7c00fe
HPN
116042002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11605
11606 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
11607 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
11608
155038f2
KG
116092002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11610
720d42fa
KG
11611 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
11612
155038f2
KG
11613 * predict.c (estimate_bb_frequencies): Delete unused variables.
11614
e6542f4e
RH
116152002-03-17 Richard Henderson <rth@redhat.com>
11616
11617 * config/ia64/ia64.c (ia64_attribute_table): Move before
11618 targetm definition. Make static.
11619
52dabb6c
NB
116202002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11621
11622 * c-common.h (yyparse, c_common_parse_file): New.
11623 * c-lang.c: Include c-common.h.
11624 (LANG_HOOKS_PARSE_FILE): Redefine.
11625 * c-lex.c: Include c-common.h.
11626 (yyparse): Rename c_common_parse_file. Call yyparse.
11627 * c-parse.in (yyparse): Remove macro.
11628 * c-tree.h (yyparse_1): Remove.
11629 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
11630 (LANG_HOOKS_INITIALIZER): Update.
11631 * langhooks.h (struct lang_hoooks): New hook parse_file.
11632 * toplev.c (compile_file): Use parse_file hook.
11633 * tree.h (yyparse): Remove.
e6542f4e 11634 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
52dabb6c 11635
b5ffe606
HPN
116362002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11637
ba82f58b
HPN
11638 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
11639 float_truncate, not fix.
11640 ("*truncdfsf2_real"): Ditto.
11641 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
11642
b5ffe606
HPN
11643 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
11644
c8d1b2b7
AO
116452002-03-16 Alexandre Oliva <aoliva@redhat.com>
11646
cfb773f9
AO
11647 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
11648 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
11649 where appropriate. Make the second reference to
11650 leaf_function_p a function call, as intended. Reindented.
11651
4dffef52
AO
11652 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
11653 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
11654
4f5bd6d7
AO
11655 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
11656 add register to non-constant into sp.
11657
c8d1b2b7
AO
11658 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
11659 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
11660 (mips16_gp_pseudo_rtx): Lose.
11661 (INIT_EXPANDERS): Deleted.
11662 * config/mips/mips.c (mips_init_machine_status): New.
11663 (mips_free_machine_status): New.
11664 (mips_mark_machine_status): New.
11665 (override_options): Set them.
11666 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
11667 (struct machine_function): ... new. Replaced all references.
11668 (mips_add_gc_roots): Don't mark them.
11669 (embedded_pic_fnaddr_reg): New, extracted from...
11670 (embedded_pic_offset): ... here.
11671 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
11672 (movsi): Likewise.
11673
b3124fac
NB
116742002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11675
11676 * cppinit.c: Revert -MD removal.
11677
121449b6
SC
116782002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11679
11680 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
11681 soft registers by default for 68HC12.
11682 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
11683 when compiling with -fomit-frame-pointer.
11684 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
11685 (expand_epilogue): Likewise.
11686 (m68hc11_gen_rotate): Use exg when rotating by 8.
11687
840e2ff1
SC
116882002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11689
11690 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
11691 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
11692 (splits): Remove unused add splits.
11693 ("*addhi3_68hc12"): Tune constraints.
11694 ("addhi_sp"): Try to use X instead of Y in all cases and if the
11695 constant fits in 8-bits and D is dead use abx/aby instructions.
11696 ("*addhi3"): Remove extern declaration of ix_reg.
11697 ("*subsi3"): Optimize and provide new split.
11698 ("subhi3"): Cleanup.
11699 ("*subhi3_sp"): Avoid saving X if we know it is dead.
11700 (arith splits): For 68hc12 save the address register on the stack
11701 and do the arithmetic operation with a pop.
11702
3c9a5efe
SC
117032002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11704
11705 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
11706 allocating QImode in address registers.
11707 ("*movqi_m68hc11"): Likewise.
11708
e41f3392
JH
11709Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
11710
11711 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
11712
576786b0
NB
117132002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11714
11715 * cppinit.c (print_help): Display -MD and -MMD.
11716 Don't display usage string. Update assertion syntax and
11717 typo.
11718 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
11719 (cpp_handle_option): Update.
11720
1ac458d4
CD
117212002-03-15 Chris Demetriou <cgd@broadcom.com>
11722
11723 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
11724 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
11725 and define it so that regardless of target CPU size,
11726 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
11727 of "int" rather than "long."
11728
1fcd592b
RH
117292002-03-15 Richard Henderson <rth@redhat.com>
11730
11731 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
11732 size as a tree.
11733
a0df6910
SC
117342002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11735
11736 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
11737 ("tstqi" split): Avoid using memory for tstqi on address register.
11738 (splits): Remove constraints.
11739 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
11740 ("cmpdf", "cmpsf"): Remove since not used.
11741 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
11742 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
11743
015a2e59
SC
117442002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11745
11746 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
11747 ("neghi2"): Tighten constraints.
11748 ("one_cmplsi2"): Optimize and simplify split.
11749 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
11750
cd28557c
SC
117512002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11752
11753 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
11754 and split of AND operation to clear the upper bits.
11755 ("*logicalsi3_zextqi"): Likewise.
11756 ("*logicallhi3_zexthi_ashift8"): Likewise.
11757 ("*logicalsi3_silshr16"): Likewise.
11758 ("logicalsi3_silshl16"): Likewise.
11759 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
11760
932657df
SC
117612002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11762
11763 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
11764 (m68hc11_indirect_p): New function.
11765 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
11766 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
11767 TARGET_M6812.
11768 (asm_print_register): Likewise.
11769 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
11770 (m68hc11_indirect_p): Declare.
11771 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
11772 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
11773 (TARGET_SWITCHES): New option -mrelax.
11774 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
11775 destination.
11776 ("iorsi3", "xorsi3"): Likewise.
11777 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
11778 ("*andhi3_mem"): New to handle destination in memory with bclr
11779 and a scratch register.
11780 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
11781 ("*andhi3_const"): New when operand2 is constant.
11782 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
11783 ("*andhi3_gen"): Cleanup of the old "andhi3".
11784 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
11785 ("xorqi3"): Update constraints.
11786
fdffea1a
SC
117872002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11788
11789 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
11790 for reg_equiv_memory_loc when the operand is a register that does
11791 not get a hard register (stack location).
11792 (tst_operand): After reload, accept all memory operand.
11793 (symbolic_memory_operand): Fix detection of symbolic references.
11794 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
11795 accept symbols and any constant.
11796
6272bc68
SC
117972002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11798
11799 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
11800 note on the insn that sets the soft frame register.
11801 (must_parenthesize): ix and iy are also reserved names.
11802 (print_operand_address): One more place where parenthesis are required
11803 to avoid confusion with register names.
11804 (m68hc11_gen_movhi): Allow push of stack pointer.
11805 (m68hc11_check_z_replacement): Fix handling of parallel with a
11806 clobber.
11807 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
11808 the replacement register is.
11809 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
11810 and D8_REGS classes.
11811 (MODES_TIEABLE_P): All modes are tieable except QImode.
11812
1d2d9def
SC
118132002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11814
11815 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
11816 (___subdi3): Likewise.
11817 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
11818 (__map_data_section): Optimize 68hc11 case.
11819
a0ccf503
SC
118202002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11821
11822 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
11823 than a shift to avoid adding a register with itself.
11824 (m68hc11_memory_move_cost): Take into account NO_REGS.
11825 (m68hc11_register_move_cost): Update and use memory move cost
11826 for soft registers.
11827 (m68hc11_address_cost): Make cost of valid offset not 0 so that
11828 it gives more opportunities to cse to optimize.
11829 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
11830 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
11831
6e4ae815
MM
118322002-03-15 Mark Mitchell <mark@codesourcery.com>
11833
11834 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
11835 * c-common.def (CLEANUP_STMT): New tree node.
11836 * c-common.h (CLEANUP_DECL): New macro.
11837 (CLEANUP_EXPR): Likewise.
11838 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
11839 * expr.c (expand_expr): Tidy.
11840 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
11841 * tree-inline.c (initialize_inlined_parameters): Clean up
11842 new local variables.
11843
a42519be
JJ
118442002-03-15 Jakub Jelinek <jakub@redhat.com>
11845
11846 PR bootstrap/4128
11847 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
11848 before movrXX only, use reg_overlap_mentioned_p.
11849 Only special case NE if just one insn can be generated.
11850
15409448
JM
118512002-03-15 Jason Merrill <jason@redhat.com>
11852
11853 * varasm.c (assemble_variable): Call resolve_unique_section before
11854 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
11855 of error_mark_node.
11856
3a4edb44
RE
118572002-03-15 Richard Earnshaw <rearnsha@arm.com>
11858
11859 PR target/5170
11860 * arm.md (split pattern for thumb shiftable immediates): Add comment
11861 explaining non-obvious test.
11862
32defa36
RE
118632002-03-15 Richard Earnshaw <rearnsha@arm.com>
11864
11865 PR target/5712
11866 * arm.md (movaddr, movaddr_insn): Delete.
11867
5cc90635
JM
118682002-03-15 Jason Merrill <jason@redhat.com>
11869
11870 * toplev.c (wrapup_global_declarations): Clarify variable handling.
11871 -fkeep-static-consts doesn't apply to comdats.
11872
ecb0eece
RH
118732002-03-14 Richard Henderson <rth@redhat.com>
11874
11875 * c-decl.c: Include c-pragma.h.
11876 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
11877 (finish_function): Tidy.
11878 * c-pragma.c: Include c-common.h.
11879 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
11880 (handle_pragma_weak): Use them.
11881 (init_pragma): Register pending_weaks.
11882 * c-pragma.h (maybe_apply_pragma_weak): Declare.
11883 * print-tree.c (print_node): Print DECL_WEAK.
11884 * varasm.c (mark_weak_decls): Remove.
11885 (remove_from_pending_weak_list): Remove.
11886 (add_weak): Remove.
11887 (asm_emit_uninitialised): Call globalize_decl for weak commons.
11888 (weak_decls): Make a tree_list.
11889 (declare_weak): Cons weak_decls directly.
11890 (globalize_decl): Remove weak_decls elements directly.
11891 (weak_finish): Simplify weak_decls walk. Don't weaken unused
11892 symbols. Don't pretend to handle aliases.
11893 (init_varasm_once): Update weak_decls registry.
11894 * Makefile.in: Update dependencies.
11895
98d2b17e
RH
118962002-03-14 Richard Henderson <rth@redhat.com>
11897
11898 PR target/5312
11899 * config/ia64/ia64.c: Include tm_p.h last.
11900 (gen_nop_type): Remove duplicate definition.
11901 (cycle_end_fill_slots): Set sched_data for second L slot.
11902 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
11903 (nop_cycles_until): Fix typos.
11904
f2f4927e
JJ
119052002-03-15 Jakub Jelinek <jakub@redhat.com>
11906
11907 PR optimization/5891
11908 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
11909
5025a549
DM
119102002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
11911
11912 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
11913 descriptors correctly.
11914
03e9dbc9
MM
119152002-03-14 Michael Meissner <meissner@redhat.com>
11916
11917 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
11918 100, allowing MAX_UNROLLED_INSNS to be overridden.
11919
11920 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
11921 --param.
11922
11923 * unroll.c (params.h): Include.
11924 (MAX_UNROLLED_INSNS): Delete, now in params.h.
11925
11926 * doc/invoke.texi (--param max-unroll-insns): Document.
11927
11928 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
11929
12249385
RE
119302002-03-14 Richard Earnshaw <rearnsha@arm.com>
11931
11932 * arm.md: Fix warnings about constraints in peepholes and splits.
11933
f0cce04a
ZW
119342002-03-14 Zack Weinberg <zack@codesourcery.com>
11935
11936 * cpphash.h (struct lexer_state): Remove line_extension member.
11937 * cpplib.c (dequote_string, do_linemarker): New functions.
11938 (linemarker_dir): New data object.
11939 (DIRECTIVE_TABLE): No longer need to interpret #line in
11940 preprocessed source. Delete obsolete comment about return
11941 values of handlers.
11942 (end_directive, directive_diagnostics, _cpp_handle_directive):
11943 Don't muck with line_extension.
11944 (directive_diagnostics): No need to issue warnings for
11945 linemarkers here.
11946 (_cpp_handle_directive): Issue warnings for linemarkers here,
11947 when appropriate. Dispatch linemarkers to do_linemarker, not
11948 do_line.
11949 (do_line): Code to handle linemarkers split out to do_linemarker.
11950 Convert escape sequences in filename argument, both places.
11951
11952 * cppmacro.c (quote_string): Rename cpp_quote_string and
11953 export. All callers changed.
11954 * cpplib.h (cpp_quote_string): Prototype.
11955 * cppmain.c (print_line): Call cpp_quote_string on to_file
11956 before printing it.
11957
11958 * doc/cpp.texi: Document that escapes are now interpreted in
11959 #line and in linemarkers, and that non-printing characters are
11960 converted to octal escapes when linemarkers are generated.
11961
11962Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
83a49407
JH
11963
11964 * emit-rtl.c (try_split): Use delete_insns.
11965 * recog.c (split_all_insns): Fix terminating condition.
11966
c882c7ac
RE
119672002-03-14 Richard Earnshaw <rearnsha@arm.com>
11968 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
11969
11970 PR target/5828
11971 * arm.c (arm_output_epilogue): Fix floating-point register save
11972 adjustment when using a frame pointer.
11973
3f26edaa
RS
119742002-03-14 Richard Sandiford <rsandifo@redhat.com>
11975
11976 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
11977 * config/mips/mips.c (compute_frame_size): Retrofit them here.
11978 (save_restore_insns, mips_expand_epilogue): And here.
11979 (build_mips16_call_stub): And here.
11980 (mips_function_value): Use the new macros to decide whether a single
11981 or complex float can be returned in floating-point registers. Return
11982 a parallel rtx in the complex case.
11983
1e3881c2
JH
11984Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
11985
11986 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
11987 call after liveness analysis.
11988
11989 * recog.c (split_insn): Use delete_insn_and_edges.
11990
11991 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
11992 instructions to have branch prediction notes.
11993 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
11994
200ef634
GK
119952002-03-14 Geoffrey Keating <geoffk@redhat.com>
11996
11997 * configure.in: Don't pass -Wno-long-long to a ADA compiler
11998 that doesn't support it.
11999 * configure: Regenerate.
12000
0b82d204
JJ
120012002-03-13 Jakub Jelinek <jakub@redhat.com>
12002
12003 PR target/5626
12004 * config/sparc/sparc.md (normal_branch, inverted_branch,
12005 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
12006 inverted_fp_branch): Adjust calls to output_cbranch.
12007 Set length attribute.
12008 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
12009 output_v9branch. Set length attribute.
12010 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
12011 predicates.
12012 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
12013 (output_cbranch): Likewise. Handle far branches.
12014 (output_v9branch): Handle far branches.
12015 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
12016 Adjust prototypes.
12017 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
12018 noov_compare64_op predicates.
12019
7a8de19b
JM
120202002-03-13 Jason Merrill <jason@redhat.com>
12021
12022 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
12023 into the function and constify it.
12024 * gthr-dce.h, gthr-solaris.h: Likewise.
12025
2a55fd42
DE
120262002-03-13 David Edelsohn <edelsohn@gnu.org>
12027
12028 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
12029 * config/rs6000/rs6000.c (rs6000_va_arg): Use
12030 std_expand_builtin_va_arg if not ABI_V4.
12031
19c5b1cf
JM
120322002-03-13 Jason Merrill <jason@redhat.com>
12033
12034 * varasm.c (globalize_decl): New fn.
12035 (assemble_start_function): Use it.
12036 (asm_emit_uninitialized): Use it.
12037 (assemble_alias): Use it.
12038 (assemble_variable): Use it.
12039
2a15f5e1
HPN
120402002-03-13 Hans-Peter Nilsson <hp@axis.com>
12041
12042 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
f0cce04a 12043 2002-03-12 internal visibility change.
2a15f5e1
HPN
12044 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
12045 visibility into SYMBOL_REF_FLAG.
12046
c0a3eeac
UW
120472002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
12048
12049 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
12050 VOIDmode operand. Add compile-time optimization for constant results.
12051
a1652cee
JM
120522002-03-12 Jason Merrill <jason@redhat.com>
12053
12054 * c-typeck.c (convert_for_assignment): Don't allow conversions
12055 between pointers and references. Only allow lvalues to convert to
12056 reference.
12057
c52a375d
HP
120582002-03-13 Hartmut Penner <hpenner@de.ibm.com>
12059
f0cce04a
ZW
12060 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
12061 before prologue, to avoid scheduling problems.
c52a375d 12062
e387e99b
JJ
120632002-03-13 Jakub Jelinek <jakub@redhat.com>
12064
12065 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12066 (ELIMINABLE_REGS): Add sfp->sp.
12067 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
12068
120692002-03-13 Jakub Jelinek <jakub@redhat.com>
09948ece
JJ
12070
12071 PR optimization/5892
12072 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
12073
4061c1a3
JJ
120742002-03-13 Jakub Jelinek <jakub@redhat.com>
12075
12076 * loop.c (basic_induction_var): Don't call convert_modes if mode
12077 classes are different.
12078
5b43fed1
RH
120792002-03-12 Richard Henderson <rth@redhat.com>
12080
9f53e965
RH
12081 PR optimization/5901
12082 * function.c (reposition_prologue_and_epilogue_notes): Position
12083 the markers after/before the last/first insn not deleted.
12084
120852002-03-12 Richard Henderson <rth@redhat.com>
12086
12087 PR optimization/5878
5b43fed1
RH
12088 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
12089 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
12090 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12091
12092 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
12093 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
12094 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
12095
12096 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
12097 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
12098 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
12099 also. Don't set it if not flag_pic.
12100 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
12101 to be INVALID_REGNUM when not used.
12102
4e9bb42b
AH
121032002-03-13 Aldy Hernandez <aldyh@redhat.com>
12104
5b43fed1
RH
12105 * expmed.c (store_bit_field): Reset alias set for memory.
12106 (extract_bit_field): Same.
4e9bb42b 12107
2f9834e8
KG
121082002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12109
12110 * c-common.c (c_tree_code_type, c_tree_code_length,
12111 c_tree_code_name, add_c_tree_codes): Delete.
12112 * c-common.h (add_c_tree_codes): Delete.
12113 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
12114 Define.
12115 * c-objc-common.c (c_objc_common_init): Don't call
12116 add_c_tree_codes, instead set lang_unsafe_for_reeval.
12117 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
12118 objc_tree_code_name, add_objc_tree_codes): Delete.
12119 (objc_init): Don't call add_objc_tree_codes.
12120 * objc/objc-lang.c (tree_code_type, tree_code_length,
12121 tree_code_name): Define.
12122 * toplev.c (lang_independent_init): Don't set
12123 tree_code_length[IDENTIFIER_NODE].
12124 * tree.c (tree_code_type, tree_code_length, tree_code_name):
12125 Delete definitions, moved to language front-ends.
12126 * tree.def (IDENTIFIER_NODE): Hardwire the length.
12127 * tree.h (tree_code_type, tree_code_length, tree_code_name):
12128 Const-ify.
12129 (tree_code_length): Change type to unsigned char.
12130
36ad2436
RH
121312002-03-12 Richard Henderson <rth@redhat.com>
12132
12133 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
12134 internal visibility change.
12135
0ae02efa
BW
121362002-03-12 Bob Wilson <bob.wilson@acm.org>
12137
12138 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
12139 validize_mem() instead of change_address to avoid clobbering
12140 memory attributes.
12141
35bb2bee
NB
121422002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
12143
12144 * c-lex.h (position_after_whitespace): Remove.
12145
62ae2529
JJ
121462002-03-12 Jakub Jelinek <jakub@redhat.com>
12147
12148 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
12149 (lex_string): Use unsigned char pointers.
12150
6a45951f
UW
121512002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
12152
12153 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
12154 is not a valid memory_operand.
12155
e2fb85da
BW
121562002-03-12 Bob Wilson <bob.wilson@acm.org>
12157
12158 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
12159 * config/xtensa/lib1funcs.asm: Fix copyright to include
12160 special case for libgcc files.
12161 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
12162 (__divsi3): Likewise.
12163 (__umodsi3): Likewise.
12164 (__modsi3): Likewise.
12165 * config/xtensa/lib2funcs.S: Fix copyright to include
12166 special case for libgcc files.
12167
5b8619f8
TR
121682002-03-12 Tom Rix <trix@redhat.com>
12169
12170 * collect2.c (resolve_lib_name): Move outside of
f0cce04a 12171 OBJECT_FORMAT_COFF ifdef.
5b8619f8
TR
12172 (ignore_library): Same.
12173
089c8f97
BW
121742002-03-12 Bob Wilson <bob.wilson@acm.org>
12175
12176 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
12177
958c70ff
BW
121782002-03-12 Bob Wilson <bob.wilson@acm.org>
12179
12180 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
12181 to function_section before writing out the constant pool.
12182
a65c591c
DE
121832002-03-12 David Edelsohn <edelsohn@gnu.org>
12184
12185 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
12186 zero_constant.
12187 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
12188
121892002-03-12 Alan Modra <amodra@bigpond.net.au>
12190
12191 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
12192 (adddi3): Likewise.
12193 (movdf): Likewise.
12194 (movdi): Likewise.
12195 (cmpsi splitter): Likewise.
12196 (modsi3): Fail if <= 0.
12197 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
12198 redundant test when HOST_BITS_PER_WIDE_INT != 32.
12199 (reg_or_sub_cint64_operand): Likewise.
12200 (num_insns_constant_wide): Optimize sign extension.
12201 (rs6000_legitimize_address): Likewise.
12202
17720332
AM
122032002-03-12 Andrew MacLeod <amacleod@redhat.com>
12204
12205 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12206 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12207
cd49f073
AM
122082002-03-12 Andrew MacLeod <amacleod@redhat.com>
12209
12210 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
12211 address calculation.
12212
6a4e49c1
UW
122132002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
12214
12215 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
12216 scratch register to DImode / TImode.
12217 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
12218 register used does not overlap the target.
12219
54b6670a
KG
122202002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12221
12222 * Makefile.in (debug.o): Depend on debug.h.
12223 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
12224 * debug.c (do_nothing_debug_hooks): Likewise.
12225 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
12226 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
12227 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
12228 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
12229 * dwarfout.c (dwarf_debug_hooks): Likewise.
12230 * integrate.c (output_inline_function): Likewise.
12231 * objc/objc-act.c (synth_module_prologue): Likewise.
12232 * sdbout.c (sdb_debug_hooks): Likewise.
12233 * toplev.c (debug_hooks): Likewise.
12234 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12235
2465bf76
KG
122362002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12237
12238 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
12239 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
12240 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
12241 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
12242 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
12243 * defaults.h (POINTER_SIZE): Define.
12244 * doc/tm.texi (POINTER_SIZE): Document default.
12245
53f3e9ca
KG
122462002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12247
12248 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
12249
44d3eb5b
RH
122502002-03-11 Richard Henderson <rth@redhat.com>
12251
12252 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
12253 if rebuild_label_notes_after_reload.
12254
4a085d2e
HPN
122552002-03-12 Hans-Peter Nilsson <hp@axis.com>
12256
12257 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
12258 emit pic register load if "internal" visibility.
12259 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
12260 (cris_expand_builtin_va_arg): Do all computations on trees.
12261
bc204393
RH
122622002-03-11 Richard Henderson <rth@redhat.com>
12263
12264 * rtlanal.c: Include recog.h.
12265 (keep_with_call_p): Fix thinko.
12266 * Makefile.in (rtlanal.o): Update dependencies.
12267
6b8b9d7b
CM
122682002-03-11 Chris Meyer <cmeyer@gatan.com>
12269
12270 * genflags.c (gen_insn): Use IS_VSPACE.
12271 * genoutput.c (output_insn_data): Likewise.
12272 (process_template): Likewise.
12273
6c40858f
RH
122742002-03-11 Richard Henderson <rth@redhat.com>
12275
12276 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
12277
40adaa27
NB
122782002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
12279
12280 * Makefile.in: Update.
6c40858f 12281 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
40adaa27 12282 Update documentation.
6c40858f
RH
12283 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
12284 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
40adaa27 12285
049b03f4
ZW
122862002-03-11 Zack Weinberg <zack@codesourcery.com>
12287
12288 * Makefile.in: Give texi2pod its input file as a command line
12289 argument, not on stdin.
12290
61eece67
DN
122912002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
12292 Daniel Berlin <dan@dberlin.org>
12293
12294 C++ alias analysis improvement.
f0cce04a 12295 * alias.c (record_component_aliases): Record aliases for base
61eece67
DN
12296 classes too.
12297
a65c591c
DE
122982002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
12299
ff080aba
UW
12300 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
12301
1682dbb1
DR
123022002-03-11 Douglas B Rupp <rupp@gnat.com>
12303
fa2d765a
DR
12304 * toplev.c (vms_fopen): Remove, not needed.
12305
6f1fd286
DR
12306 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
12307
b230e057
DR
12308 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
12309
cb9a8e97
DR
12310 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
12311 for FP, already done later.
12312
1682dbb1
DR
12313 * toplev.c (debug_args): Add entry for VMS_DEBUG.
12314 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
12315
3fcaac1d
RS
123162002-03-11 Richard Sandiford <rsandifo@redhat.com>
12317
12318 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
12319 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
12320 LARGEST_EXPONENT_IS_NORMAL for the given mode.
12321 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
12322 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
12323 (ediv, emul, eldexp, esqrt): Likewise.
12324 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
12325 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
12326 (saturate): New function.
12327 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
12328 (make_nan): Use a saturation value instead of a NaN if
12329 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
12330 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
12331 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
12332 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
12333 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
12334 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
12335 !ROUND_TOWARDS_ZERO.
12336 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
12337 (ROUND_TOWARDS_ZERO): Document.
12338
d25558be
AJ
123392002-03-11 Andreas Jaeger <aj@suse.de>
12340
12341 * cfg.c (dump_flow_info): Remove unused variable.
12342
c71f9ae7
HPN
123432002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
12344
12345 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
12346 computations on trees.
12347
561c9153
RH
123482002-03-10 Richard Henderson <rth@redhat.com>
12349
932b4e3e 12350 PR 5693:
561c9153
RH
12351 * reload.c (copy_replacements_1): New.
12352 (copy_replacements): Use it to recurse through the rtx.
12353
26b738be
RH
123542002-03-10 Richard Henderson <rth@redhat.com>
12355
12356 * loop.c (strength_reduce): Compute number of iterations as
12357 unsigned HOST_WIDE_INT.
12358
8d8a083e
RH
123592002-03-10 Richard Henderson <rth@redhat.com>
12360
12361 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
12362 to move away from the end of the block.
12363
32810ba3
NB
123642002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
12365
12366 PR preprocessor/5899
12367 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
d25558be 12368
2b03d201
KG
123692002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12370
f90c544c
KG
12371 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
12372
2b03d201
KG
12373 * attribs.c (decl_attributes): Fix signed/unsigned warning.
12374
3ec1b4cb
HPN
123752002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
12376
12377 * config/mmix/mmix.c: Improve comments.
12378 (mmix_target_asm_function_prologue): Drop variable
12379 empty_stack_frame. Don't allocate unused slot above fp.
12380 (mmix_target_asm_function_epilogue): Mirror prologue changes.
12381 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
12382 brace in first column.
12383 (enum reg_class): Ditto.
12384 (FIRST_PARM_OFFSET): Now 0.
12385 (USER_LABEL_PREFIX): Remove #if 0:d definition.
12386
27e486c5
KG
123872002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12388
12389 * combine.c (make_extraction): Fix error in last change.
12390
0139adca
KG
123912002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12392
12393 * c4x.c (c4x_fp_reglist): Const-ify.
12394 * cris.c (cris_print_operand): Likewise.
12395 * i386.c (ix86_va_arg): Likewise.
12396 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
12397 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
12398 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
12399 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
12400 * mcore.h (regno_reg_class): Likewise.
12401 * mips.c (gen_int_relational): Likewise.
12402 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
12403 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
a4334c36 12404 * pdp11.c (move_costs): Likewise.
0139adca
KG
12405 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
12406 * s390.c (s390_branch_condition_mnemonic, regclass_map):
12407 Likewise.
12408 * s390.h (regclass_map): Likewise.
12409 * sh.c (shift_amounts): Likewise.
a4334c36 12410 * sh.md (rotlsi3): Likewise.
0139adca 12411
889b90a1
GK
124122002-03-09 Geoffrey Keating <geoffk@redhat.com>
12413
12414 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12415 (ne0+5): Use new clobber to generate proper shift pattern.
12416 Patch by Michael Matz <matz@kde.org>.
12417
2877e0ae
AS
124182002-03-09 Andreas Schwab <schwab@suse.de>
12419
12420 * gcc.c (validate_all_switches): Also handle `%W{...}'.
12421
79b51cd7
GK
124222002-03-09 Geoffrey Keating <geoffk@redhat.com>
12423
12424 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12425
e0f1be5c
JJ
124262002-03-09 Jakub Jelinek <jakub@redhat.com>
12427
12428 PR middle-end/5877
12429 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12430 even for non-representable constants.
12431
0a7ec763
RK
12432Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12433
93fe8e92
RK
12434 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12435 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12436 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12437 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12438 (pop_function_context): Compute MAY_SHARE parameter for
12439 fixup_var_refs.
12440 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12441 (gen_mem_addressof): Call fixup_var_refs with new parm.
12442
0a7ec763
RK
12443 * combine.c (make_extraction): Don't make extension of CONST_INT.
12444
a85cd407
AO
124452002-03-09 Alexandre Oliva <aoliva@redhat.com>
12446
9445b814
AO
12447 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12448 in o32 and o64 ABIs.
12449 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12450 but getting fixed-size structs passed in registers regardless of
12451 padding in o32 and o64 ABIs.
12452
a85cd407
AO
12453 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12454 offset before loading address of argument passed by transparent
12455 reference.
12456
c51fbe40
JDA
124572002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
12458
12459 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
12460
918e70dd
AO
124612002-03-09 Alexandre Oliva <aoliva@redhat.com>
12462
12463 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
12464 marker such that registers after it are saved.
12465
3070dd00
KG
124662002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12467
12468 * sparc.c (arith_4096_operand): Fix error in last change.
12469
e25d11b0
AO
124702002-03-08 Alexandre Oliva <aoliva@redhat.com>
12471
12472 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
12473 defaults for MEABI.
12474
41daaf0e
AH
124752002-03-08 Aldy Hernandez <aldyh@redhat.com>
12476
5b43fed1
RH
12477 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
12478 vectors.
41daaf0e 12479
fa139b00
AH
124802002-03-08 Aldy Hernandez <aldyh@redhat.com>
12481
5b43fed1 12482 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
fa139b00 12483
c51d95ec
JH
12484Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
12485
12486 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
12487 removed; fix return value.
12488 * combine.c (combine_instructions): Dirtify blocks where we failed to
12489 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
12490 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
12491
3b25fbfe
KG
124922002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12493
12494 * gcse.c (insert_insn_end_bb): Fix typo in last change.
12495
189ae0f4
JH
12496Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
12497
12498 * recog.c (peephole2_optimize): Re-distribute EH edges.
12499
24965e7a
NB
125002002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
12501
12502 * expr.c (expand_expr): Use unsave lang hook.
12503 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
12504 (LANG_HOOKS_INITIALIZER): Update.
12505 * langhooks.h (struct lang_hooks): New hook unsave.
12506 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
12507 (unsave_expr_1): Remove unused lang_unsave_expr_now.
12508 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
12509 (unsave_expr_now): Remove.
12510 * tree.h (unsave_expr_now, lang_unsave,
12511 lang_unsave_expr_now): Remove.
12512 (lhd_unsave): New.
12513
1e4e95d6
AJ
125142002-03-08 Andreas Jaeger <aj@suse.de>
12515
12516 * flow.c (propagate_block_delete_insn): Remove unused variable.
12517
054ef905
KH
125182002-03-08 Kazu Hirata <kazu@hxi.com>
12519
12520 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
12521 insn length for memory load/store.
12522
5304400d 125232002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1e4e95d6 12524
5304400d
CR
12525 * doc/install.texi (--with-libiconv-prefix): Document.
12526
81034129
MB
125272002-03-08 Michael Y. Brukman <myb2@cornell.edu>
12528
12529 * doc/sourcebuild.texi: Fix typo.
12530
71db7d03
JJ
125312002-03-08 Jakub Jelinek <jakub@redhat.com>
12532
12533 PR c/3711
12534 * builtins.c (std_expand_builtin_va_arg): Do all computations on
12535 trees.
12536
127c1ba5
RK
12537Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12538
12539 * rtl.c (copy_most_rtx): Move from here ...
12540 * emit-rtl.c (copy_most_rtx): ... to here.
12541
8a13c092
AO
125422002-03-08 Alexandre Oliva <aoliva@redhat.com>
12543
5faae4f7
AO
12544 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
12545 SUBTARGET_CPP_SIZE_SPEC.
12546 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
12547
8a13c092
AO
12548 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
12549
4ec59de2
MH
125502002-03-07 Matt Hiller <hiller@redhat.com>
12551
12552 * gensupport.c (first_dir_md_include): Renamed from include;
12553 change all references.
12554 (last_dir_md_include): Renamed from last_include; change all
12555 references.
12556 (init_md_reader): Unconditionally initialize base_dir whether or
12557 not filename is a relative path.
12558
12f61e77
AO
125592002-03-07 Alexandre Oliva <aoliva@redhat.com>
12560
95356058
AO
12561 * config/fp-bit.c (_unord_f2): Compile it in even if
12562 US_SOFTWARE_GOFAST is enabled.
12563
12f61e77
AO
12564 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
12565 NULL_RTX. Set all HFmode operations as NULL_RTX.
12566 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
12567 NULL_RTX, try reversing the comparison and the operands.
12568
6d7a1c4c
UW
125692002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12570
12571 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
12572 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
12573 and MATCH_OP_DUP.
12574
66d54344
JH
12575Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
12576
12577 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
12578
068473ec
JH
12579Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12580
12581 * basic-block.h (fixup_abnormal_edges): Declare.
12582 * reload1.c (fixup_abnormal_edges): New function.
12583 * reg-stack.c (convert_regs): Use it.
12584
12585 * gcse.c (insert_insn_end_bb): Handle trapping insns.
12586
12587 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
12588
71925bc0
RS
125892002-03-07 Richard Sandiford <rsandifo@redhat.com>
12590
12591 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
12592 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
12593 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
12594 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
12595 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
12596 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
12597 unless x and y could be infinite.
12598 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
12599 Check that the common type of both arguments is a real, even for
12600 targets without unordered comparisons. Allow an integer argument
12601 to be compared against a real.
12602 (expand_tree_builtin): Use expand_unordered_cmp.
12603 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
12604 * cse.c (fold_rtx): Likewise. Fix indentation.
12605 * fold-const.c (fold_real_zero_addition_p): New.
12606 (fold): Use it, and the new HONOR_... macros.
12607 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
12608 * jump.c (reversed_comparison_code_parts): After searching for
12609 the true comparison mode, use HONOR_NANS to decide whether it
12610 can be safely reversed.
12611 (reverse_condition_maybe_unordered): Remove IEEE check.
12612 * simplify-rtx.c (simplify_binary_operation): Use the new macros
12613 to decide which simplifications are valid. Allow the following
12614 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
12615 and (a - -b) to (a + b).
12616 (simplify_relational_operation): Use HONOR_NANS.
12617 * doc/tm.texi: Document the MODE_HAS_... macros.
12618
145d3bf2
RE
126192002-03-07 Richard Earnshaw <rearnsha@arm.com>
12620
12621 * combine.c (simplify_comparison): If simplifying a logical shift
12622 right and compare with constant, force the comparison to unsigned.
12623
76a773f3
AH
126242002-03-07 Aldy Hernandez <aldyh@redhat.com>
12625
5b43fed1 12626 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
76a773f3 12627
5b43fed1
RH
12628 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
12629 -mabi=no-altivec
12630 (alt_reg_names): Remove % for vrsave.
76a773f3 12631
ab55f58c
RH
126322002-03-06 Richard Henderson <rth@redhat.com>
12633
5ddec02e 12634 PR optimization/5844
ab55f58c
RH
12635 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
12636 if used indicates we've already emitted one copy of an operand.
12637 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
12638 (gen_split): Supply a non-null used.
12639
e16e3291
UW
126402002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12641
5b43fed1 12642 * reload1.c (reload): Unshare all rtl after reload is done.
e16e3291 12643
1e4e95d6 12644 * simplify-rtx.c (simplify_plus_minus): Do not abort,
e16e3291
UW
12645 but simply fail if the expression is too complex to simplify.
12646 (simplify_gen_binary): Handle simplify_plus_minus failures.
12647
2ca6672b
JH
12648Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
12649
12650 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
12651 consistently call delete_trivially_dead_insns after CSE and GCSE;
12652 fix DFI_life dumping; do jump threading after liveness; do crossjumping
12653 after liveness2; update comment in last crossjumping.
12654 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
12655
31d0dd4f
JL
12656Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
12657
d094b0b3
JL
12658 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
12659 after completing fast dead code elimination.
12660
31d0dd4f
JL
12661 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
12662 COMPARE operator.
1e4e95d6 12663
f2b958b1
PE
126642002-03-06 Phil Edwards <pme@gcc.gnu.org>
12665
12666 * version.c: Fix misplaced leading blanks on first line.
12667
a2877a09
JH
12668Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
12669
12670 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
12671
fe477d8b
JH
12672Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
12673
12674 * cfgcleanup.c (mentions_nonequal_regs): New function.
12675 (thread_jump): Use it.
12676 * toplev.c (rest_of_compilation): Run jump threading after
12677 liveness.
12678
2041cde4
JJ
126792002-03-06 Jakub Jelinek <jakub@redhat.com>
12680
12681 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
12682 patch.
12683
82d68d46
JH
12684Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
12685
12686 * predict.c (estimate_bb_frequencies): Do not reload the
12687 frequencies from notes.
12688
3dec4024
JH
12689Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
12690
12691 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
12692 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
12693
12694 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
12695 delete_noop_moves): Return indeger.
12696 * flow.c (ndead): New variable.
12697 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
12698 BB argument; update callers.
12699 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
12700 (life_analysis): Do not call purge_all_dead_edges.
12701 (update_life_info): Return number of deleted insns; print statistics.
12702 (update_life_info_in_dirty_blocks): likewise.
12703 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
12704 return number of insns deleted.
12705
12706 * cse.c: Include timevar.h
12707 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
12708 iterate until stabilizes; print statistics; return number of killed
12709 insns.
12710 * Makefile.in: (cse.o): Add timevar.h dependency
12711 * rtl.h (delete_trivially_dead_insns): New.
12712 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
12713 * toplev.c (rest_of_compilation): Update callers.
12714
12715 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
12716 (try_optimize_cfg): Do not update liveness.
12717 (cleanup-cfg): Loop until try_optimize_cfg and dead code
12718 removal stabilizes; use delete_trivially_dead_insns.
12719
12720 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
12721
c7544dd8
ZW
127222002-03-05 Zack Weinberg <zack@codesourcery.com>
12723
12724 * cppmain.c (setup_callbacks): Disable #pragma and #ident
12725 callbacks when processing assembly language.
12726
50b424a9
JDA
127272002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
12728
12729 * pa.h (ASM_FILE_END): Define.
12730 * som.h (ASM_FILE_END): Delete.
12731
12732 * pa.c (function_arg): Don't pass floats in general registers in
12733 indirect calls if TARGET_ELF32.
12734
6185f217
RH
127352002-03-05 Richard Henderson <rth@redhat.com>
12736
12737 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
12738
3020a4b2
DS
127392002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
12740
12741 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
12742
65649daa
JJ
127432002-03-05 Jakub Jelinek <jakub@redhat.com>
12744
12745 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12746 -r command line. Don't hide any symbols if not building
12747 shared libgcc.
12748
5a1a3e5e
JH
12749Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
12750
12751 * cfg.c (dump_flow_info): Warn about profile mismatches.
12752 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
12753 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
12754
170c56da
JJ
127552002-03-05 Jakub Jelinek <jakub@redhat.com>
12756
12757 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
12758 wide volatile memory by parts.
12759
6d051694
JJ
127602002-03-05 Jakub Jelinek <jakub@redhat.com>
12761
12762 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
12763 is NULL.
12764
28bcfd4d
RH
127652002-03-05 Richard Henderson <rth@redhat.com>
12766
5b43fed1 12767 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
28bcfd4d 12768
75227a33
GK
127692002-03-04 Geoffrey Keating <geoffk@redhat.com>
12770
12771 * toplev.c (documented_lang_options): Document more
12772 language-specific options.
12773 * doc/invoke.texi (Warning Options): Correct documentation for
12774 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
12775 * c-decl.c (c_decode_option): Use a table to handle warning options.
12776
4f1aac42
HPN
127772002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
12778
12779 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
12780 parameter to mmix_encode_section_info.
12781 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
12782 relocatably. Always produce ELF, not mmo if linking relocatably.
12783 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
12784 first is non-zero, don't add symbol prefix.
12785 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
12786 prototype accordingly.
12787
12345543
KW
127882002-03-04 Krister Walfridsson <cato@df.lth.se>
12789
12790 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
12791
8e97db8f
JM
127922002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
12793
12794 * configure.in: Increase required makeinfo version to 4.1.
12795 * configure: Regenerate.
12796
06487868
GK
127972002-03-04 Geoffrey Keating <geoffk@redhat.com>
12798
12799 * .cvsignore: Remove *.info* and genrtl*; these files are generated
12800 elsewhere now.
12801
cff42170
JM
128022002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
12803
12804 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
12805 * doc/invoke.texi: Fix @math uses.
12806
974a7f56
JH
12807Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12808
12809 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
12810 removal
12811
3b7d0e98
AH
128122002-03-03 Aldy Hernandez <aldyh@redhat.com>
12813
5b43fed1
RH
12814 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
12815 (powerpc-*-eabisimaltivec*): Same.
3b7d0e98 12816
5b43fed1 12817 * config/rs6000/t-ppcendian: New.
3b7d0e98 12818
65f2f288
HB
128192002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12820
12821 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
12822 nonimmediate_src_operand and nonimmediate_lsrc_operand to
12823 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
12824
8ce0a8a5
RH
128252002-03-03 Richard Henderson <rth@redhat.com>
12826
12827 * toplev.c (rest_of_decl_compilation): Revert last two changes.
12828
ba31d94e
ZW
128292002-03-03 Zack Weinberg <zack@codesourcery.com>
12830
12831 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
12832 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
12833 tree.c, config/m68k/m68k.c:
12834 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
12835 REAL_ARITHMETIC blocks unconditional. Delete some further
12836 #ifdef blocks predicated on REAL_ARITHMETIC.
12837 * flags.h, toplev.c: Delete remaining references to
12838 flag_pretend_float.
12839
12840 * doc/invoke.texi: Remove documentation of -fpretend-float.
12841 * doc/tm.texi: Describe the various REAL_* macros as provided by
12842 real.h, not by the target configuration files.
12843
12844 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
12845 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
12846 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12847 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
12848 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
12849 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
12850 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
12851 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
12852 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12853 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
12854 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12855 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12856 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
12857 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
12858 config/xtensa/xtensa.h:
12859 Do not define, undefine, or mention in comments any of
12860 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
12861 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
12862 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
12863 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
12864 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
12865 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
12866 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
12867 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
12868 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
12869
9a571cfd
KG
128702002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12871
e81dd381
KG
12872 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
12873 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
12874 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
12875 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
12876 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
12877 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
12878 Delete.
12879 * defaults.h (BITS_PER_WORD): Define.
ba31d94e 12880 * doc/tm.texi (BITS_PER_WORD): Document default value.
e81dd381 12881
9a571cfd
KG
12882 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
12883 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
12884 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
12885
ca7558fc
KG
128862002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12887
12888 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
12889 lieu of explicit sizeof/sizeof.
12890 * i386.c (override_options, ix86_init_mmx_sse_builtins,
12891 ix86_expand_builtin): Likewise.
12892 * mips.c (mips_add_gc_roots): Likewise.
12893 * mmix.c (mmix_output_condition): Likewise.
12894 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
12895 altivec_init_builtins): Likewise.
12896 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
12897 * cppexp.c (Nsuff, parse_number): Likewise.
12898 * cppinit.c (builtin_array_end): Likewise.
12899 * gcc.c (n_default_compilers, process_command): Likewise.
12900 * genpreds.c (output_predicate_decls): Likewise.
12901 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
12902 * lcm.c (N_ENTITIES): Likewise.
12903 * stor-layout.c (set_sizetype): Likewise.
ba31d94e 12904
41c78c88
RH
129052002-03-03 Richard Henderson <rth@redhat.com>
12906
12907 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
12908 for types or labels.
12909
9e9b71e6
RH
129102002-03-03 Richard Henderson <rth@redhat.com>
12911
12912 * c-decl.c (start_decl): Initialized variables are not common.
12913
c26a6db8
PB
129142002-03-02 Per Bothner <per@bothner.com>
12915
12916 * gcc.c (option_map): Suport new --bootclasspath option.
12917 --CLASSPATH is now just an alias for --classpath.
12918
9e8aab55
RH
129192002-03-02 Richard Henderson <rth@redhat.com>
12920
12921 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
12922 load if "internal" visibility.
12923 * doc/extend.texi: Document visibility meanings.
12924
b3bbd220
RH
129252002-03-02 Richard Henderson <rth@redhat.com>
12926
12927 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
12928 to functions as well.
12929
b14707c3
RH
129302002-03-02 Richard Henderson <rth@redhat.com>
12931
12932 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
12933 (handle_visibility_attribute): Don't call assemble_visibility.
12934 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
12935 without asmspec. Invoke assemble_alias when needed.
12936 * varasm.c (maybe_assemble_visibility): New.
12937 (assemble_start_function, assemble_variable, assemble_alias): Use it.
12938
b2003250
RH
129392002-03-02 Richard Henderson <rth@redhat.com>
12940
12941 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
12942 invoke ENCODE_SECTION_INFO with first call flag.
12943
12944 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12945 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
ba31d94e 12946 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
b2003250
RH
12947 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
12948 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12949 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12950 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12951 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
12952 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
12953 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
12954 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12955 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
ba31d94e
ZW
12956 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12957 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
b2003250
RH
12958 config/mcore/mcore-protos.h, config/mcore/mcore.c,
12959 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
12960 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
ba31d94e 12961 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
b2003250
RH
12962 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
12963 config/sh/sh.h, config/sparc/sparc.h,
12964 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
12965 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
12966 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
12967 FIRST argument. As needed, examine it and do nothing.
12968
ba31d94e 12969 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
b2003250
RH
12970 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12971 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
12972
12973 * config/arm/t-pe (pe.o): Add dependencies.
12974
5c60f03d
KG
129752002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12976
12977 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
12978 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
12979 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
12980 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
12981 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
12982 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
12983 * defaults.h (BITS_PER_UNIT): Define.
12984 * doc/tm.texi (BITS_PER_UNIT): Document default value.
12985
86855e8c
KH
129862002-03-02 Kazu Hirata <kazu@hxi.com>
12987
12988 * config/h8300/h8300-protos.h: Add a prototype for
12989 compute_a_shift_length.
12990 * config/h8300/h8300.c (h8300_asm_insn_count): New.
12991 (compute_a_shift_length): Likewise.
12992 (h8300_adjust_insn_length): Do not adjust insn length of shift
12993 insns.
12994 * config/h8300/h8300.md (anonymous shift patterns): Use
12995 compute_a_shift_length.
12996
f6041ed8
RK
12997Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12998
35aa3c1c
RK
12999 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
13000 trunc_int_for_mode.
13001
f6041ed8
RK
13002 * emit-rtl.c (offset_address): Call update_temp_slot_address.
13003
27b41650
KG
130042002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13005
13006 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
13007 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
13008 * flags.h (flag_zero_initialized_in_bss): Declare.
13009 * toplev.c (flag_zero_initialized_in_bss): New flag.
13010 (lang_independent_options): Add flag_zero_initialized_in_bss.
13011 * tree.c (initializer_zerop): New function.
13012 * tree.h (initializer_zerop): Declare.
13013 * varasm.c (assemble_variable): If we can emit bss, put zero
13014 initializers in the bss section.
13015
ca734b39
AM
130162002-03-02 Alan Modra <amodra@bigpond.net.au>
13017
13018 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
13019 like more than one symbol per .weak directive.
13020
49b72306
RH
130212002-03-01 Richard Henderson <rth@redhat.com>
13022
13023 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
13024 adjust argument_pointer by pretend_args_size.
13025 (ia64_va_start): Adjust va_start address by -pretend_args_size.
13026
fbf0fe41
KH
130272002-03-01 Kazu Hirata <kazu@hxi.com>
13028
13029 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
13030
0010687d
JH
13031Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
13032
13033 * toplev.c (rest_of_compilation): Delete dead jumptables before
13034 loop.
13035 * flow.c (delete_dead_jumptables): Make global.
13036 * rtl.h (delete_dead_jumptables): Declare.
13037
9429c84c
DE
130382002-03-01 David Edelsohn <edelsohn@gnu.org>
13039
13040 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
13041 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
0c2fdcdf 13042 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9429c84c 13043
f0b6f9a6
KH
130442002-03-01 Kazu Hirata <kazu@hxi.com>
13045
13046 * config/h8300/h8300-protos.h: Fix formatting.
13047 * config/h8300/h8300.c: Likewise.
13048 * config/h8300/h8300.h: Likewise.
13049
bc8db8a1
KH
130502002-03-01 Kazu Hirata <kazu@hxi.com>
13051
13052 * config/h8300/h8300.c (print_operand): Support 16-bit
13053 constant addresses.
13054 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
13055
32b069d3
RH
130562002-02-28 Richard Henderson <rth@redhat.com>
13057
13058 * expmed.c (store_bit_field): Prevent generation of CONCATs;
13059 pun complex values as integers; use gen_lowpart instead of
13060 gen_rtx_SUBREG.
13061 (extract_bit_field): Likewise.
13062
79c4e63f
AM
130632002-03-01 Alan Modra <amodra@bigpond.net.au>
13064 David Edelsohn <edelsohn@gnu.org>
13065
13066 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
13067 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
13068 (SUPPORTS_WEAK): Likewise.
13069 * output.h (add_weak): Add tree param.
13070 * varasm.c (add_weak): Likewise. Save decl.
13071 (struct weak_syms): Add decl field.
13072 (mark_weak_decls): New function.
13073 (init_varasm_once): ggc_add_root mark_weak_decls.
13074 (assemble_start_function): Use ASM_WEAKEN_DECL.
13075 (assemble_variable): Likewise.
13076 (assemble_alias): Likewise.
13077 (declare_weak): Pass decl to add_weak.
13078 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
13079 (remove_from_pending_weak_list): Declare and define for
13080 ASM_WEAKEN_DECL.
13081 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
13082 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
13083 * defaults.h (SUPPORTS_WEAK): Likewise.
13084 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13085 .weak for code sym. Do emit .size for descriptor sym.
13086 (ASM_DECLARE_FUNCTION_SIZE): Define.
13087 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
13088 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
13089 .lglobl unless TARGET_XCOFF. Formatting fixes.
13090 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13091 .weak for code sym.
13092 (HANDLE_PRAGMA_WEAK): Remove.
13093 (ASM_WEAKEN_LABEL): Remove.
13094 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
13095
6f30f1f1
JM
130962002-03-01 Jason Merrill <jason@redhat.com>
13097
13098 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
13099 (TARGET_EXPR_CLEANUP): New macro.
13100
7879b81e
SE
131012002-02-28 Steve Ellcey <sje@cup.hp.com>
13102
13103 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
13104 to take ptr_extend into account as third type of extension.
13105 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
13106 fields used by SUBREG_PROMOTED_UNSIGNED_P.
13107 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
13108 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
13109 * calls.c (precompute_arguments): Use new macro.
13110 (expand_call): Ditto.
13111 * combine.c (nonzero_bits): Ditto.
13112 (record_promoted_value): Ditto.
13113 * expr.c (store_expr): Ditto.
13114 (expand_expr): Ditto.
13115 * function.c (assign_parms): Ditto.
13116
42d579d8
AO
131172002-02-28 Alexandre Oliva <aoliva@redhat.com>
13118
13119 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
13120 override -shared and -shared-libgcc.
13121
e0054185
DB
131222002-02-28 David O'Brien <obrien@FreeBSD.org>
13123
13124 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
13125 of "ultrasparc".
13126 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
13127 to be broken.
13128
abda4f1c
RH
131292002-02-28 Richard Henderson <rth@redhat.com>
13130
13131 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
13132 4 cycle latency from MM producers.
13133 (ia64_internal_sched_reorder): Likewise with pipeline flush.
13134
c0f08649
JJ
131352002-02-28 Jakub Jelinek <jakub@redhat.com>
13136
13137 * mklibgcc.in: Don't use GNU make extension.
13138
f79f2651
NB
131392002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13140
13141 * c-parse.in (STATIC): New terminal.
13142 (scspec): New non-terminal. Update productions accordingly.
13143 (program): Remove bogus ifc / end ifc.
13144 (array_declarator): Simplify production using STATIC.
13145
001e3fee
JM
131462002-02-28 Jim Meyering <meyering@lucent.com>
13147
13148 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
13149 \a still means TARGET_BELL.
13150
89076bb3
RH
131512002-02-28 Richard Henderson <rth@redhat.com>
13152
13153 * haifa-sched.c (sched_emit_insn): New.
13154 (schedule_block): Use last_scheduled_insn to track last insn.
13155 * sched-int.h (sched_emit_insn): Prototype.
13156 * config/ia64/ia64.c (last_issued): Remove.
13157 (ia64_variable_issue): Don't set it.
13158 (nop_cycles_until): Use sched_emit_insn.
13159
e3aaacf4
AM
131602002-02-28 Andrew MacLeod <amacleod@redhat.com>
13161
13162 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
13163 extended constants.
13164
7f473594
KH
131652002-02-28 Kazu Hirata <kazu@hxi.com>
13166
13167 * config/h8300/h8300.c: Fix formatting.
13168 * config/h8300/h8300.h: Likewise.
13169
b96c434c
MM
131702002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
13171
13172 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
13173 which may overwrite the high byte of the frame pointer.
13174
9b420a6a
BT
131752002-02-28 Bo Thorsen <bo@suse.de>
13176
13177 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
13178 (STARTFILE_SPEC): Add 64 bit files.
13179 (ENDFILE_SPEC): Likewise.
13180
6f30f1f1 131812002-02-28 Jason Merrill <jason@redhat.com>
46cfb101
JM
13182
13183 * c-decl.c (finish_function): Only warn about missing return
13184 statement with -Wreturn-type.
13185
70da1d03
JH
13186Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
13187
13188 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
13189
13190 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
13191 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
13192
38c1593d
JH
13193Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
13194
13195 * basic-block.h (BB_REACHABLE): Renumber.
13196 (BB_DIRTY, BB_NEW): New flags.
13197 (clear_bb_flags): Declare.
13198 (update_life_info_in_dirty_blocks): Declare.
13199 * cfg.c (clear_bb_flags): New function.
13200 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
13201 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
13202 reorder_insns, emit_insn_after): Mark block as dirty.
13203 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
13204 (update_life_info_in_dirty_blocks): New function.
13205 * recog.c (apply_change_group): Dirtify block.
13206
13207 * cse.c (cse_insn): Reorder emitting of jump insn to keep
13208 cfg consistent.
13209 * gcse.c (delete_null_pointer_checks): Likewise.
13210
13211 * toplev.c (dump_file_index): Move cse2 after bp,
13212 add DFI_null
13213 (dump_file_info): Similary.
13214 (rest_of_compilation): Avoid most of CFG rebuilds;
13215 do first if converision after null pointer checks, do cse2
13216 after branch prediction; avoid full liveness rebuild after
13217 initializing subregs.
13218 * invoke.texi (-d options): Document -du, renumber.
13219
13220 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
13221 (notice_new_block): Do not set BB_UPDATE_LIFE.
13222 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
13223 merge_blocks_move_successor_nojumps, merge_blocks,
13224 try_crossjump_to_edge): Likewise.
13225 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
13226 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
13227 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
13228 (merge_of_block): Do not use life_data_ok.
13229 (find_if_case_1): Do not use SET_UPDATE_LIFE.
13230 (if_convert): Use BB_DIRTY mechanizm to update life.
13231 * lcm.c (optimize_mode_switching): Update
13232 update_life_info_in_dirty_blocks
13233
63e1b1c4
NB
132342002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13235
13236 * Makefile.in (integrate.o): Update.
13237 * c-decl.c (copy_lang_decl): Rename.
13238 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13239 * integrate.c: Include langhooks.h.
13240 (copy_decl_for_inlining): Update to use langhook.
13241 * langhooks-def.h (lhd_do_nothing_t,
13242 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
13243 (LANG_HOOKS_INITIALIZER): Update.
13244 * langhooks.c (lhd_do_nothing_t): New.
13245 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
13246 * tree.h (copy_lang_decl): Remove.
13247objc:
13248 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13249
f472fa29
AM
132502002-02-27 Andrew MacLeod <amacleod@redhat.com>
13251
ba31d94e 13252 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
f472fa29
AM
13253 POST_DEC, and POST_MODIFY.
13254
273cf2e4
ZW
132552002-02-27 Zack Weinberg <zack@codesourcery.com>
13256
13257 * c-typeck.c (digest_init): Remove unused parameter; all
13258 callers changed.
13259
4e07d762
GK
132602002-02-27 Geoffrey Keating <geoffk@redhat.com>
13261
13262 * expmed.c (expand_shift): Correctly test for low part of a
13263 subreg.
13264
6bc627b3
UW
132652002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
13266
13267 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
13268 insn UIDs with insn addresses.
13269
f458d1d5
ZW
132702002-02-27 Zack Weinberg <zack@codesourcery.com>
13271
13272 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
13273 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
13274 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
13275 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
13276 gcc.c, toplev.c: Delete code implementing -traditional mode.
13277
13278 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
13279 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
13280 Document removal of -traditional mode for compilation, and
13281 remove documentation only relevant to that mode.
13282
13283 * config/nextstep.h, config/ptx4.h, config/svr4.h,
13284 config/convex/convex.h, config/d30v/d30v.h,
13285 config/i386/dgux.h, config/i386/osf1elf.h,
13286 config/i386/osfelf.h, config/i386/osfrose.h,
13287 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
13288 config/m68k/hp310.h, config/m88k/dgux.h,
13289 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
13290 config/m88k/m88k.h, config/m88k/openbsd.h,
13291 config/mips/abi64.h, config/mips/osfrose.h,
13292 config/mips/svr4-5.h, config/mips/svr4-t.h,
13293 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13294 config/stormy16/stormy16.h: Remove all references to
13295 -traditional from target specs. Delete all mention of the
13296 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
13297 delete a couple of commented-out definitions of
13298 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
13299 to -traditional.
13300
13301 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
13302 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
13303
e0b3a8ff
ZW
133042002-02-27 Zack Weinberg <zack@codesourcery.com>
13305
13306 * mklibgcc.in: Don't use \n in a line subject to
13307 interpretation by echo.
13308
5c6a85b7
GS
133092002-02-27 Graham Stott <grahams@redhat.com>
13310
72b05af1
GS
13311 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
13312 Constify NAME.
13313
7d104885
GS
13314 * loop.c (prescan_loop): Handle PARALLEL.
13315
8ed805d2
GS
13316 * unroll.c (loop_iterations): Return 0 if the add_val for
13317 a BIV is REG.
13318
fd478a0a
GS
13319 * final.c (output_operand_lossage): Constify PFX_STR.
13320
5c6a85b7
GS
13321 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
13322
cd98ad03
JH
13323Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
13324
13325 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
13326 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
13327
639ae55b
JH
13328Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
13329
13330 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13331
e808ec9c
NB
133322002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
13333
13334 * cpplex.c (_cpp_lex_token): Handle directives in macro
13335 arguments.
13336 * cpplib.c (_cpp_handle_directive): Save and restore state
13337 if parsing macro args when entering a directive.
13338 * cppmacro.c (collect_args): No need to handle directives
13339 in macro arguments.
13340 (enter_macro_context, replace_args): Use the original macro
13341 definition in case it was redefined whilst collecting arguments.
13342doc:
13343 * cpp.texi: Update.
13344
f585a356
DE
133452002-02-26 David Edelsohn <edelsohn@gnu.org>
13346
13347 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
13348 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
13349 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
13350 method on AIX.
13351 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
13352 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
13353 (load_toc_v4_PIC_2): Same.
13354
133552002-02-26 Alan Modra <amodra@bigpond.net.au>
13356
13357 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
13358
d699058e
RH
133592002-02-26 Richard Henderson <rth@redhat.com>
13360
13361 * config/alpha/alpha.md (ashldi_se): Re-enable.
13362
eadccfbb
RH
133632002-02-26 Richard Henderson <rth@redhat.com>
13364
13365 * config/alpha/alpha.c (alpha_encode_section_info): Examine
13366 MODULE_LOCAL_P; improve commentary.
13367
7080ada1
ZW
133682002-02-26 Zack Weinberg <zack@codesourcery.com>
13369
13370 * doc/cpp.texi: Clarify documentation of relationship between
13371 #line and #include.
13372
b42cff6b
KH
133732002-02-26 Kazu Hirata <kazu@hxi.com>
13374
13375 * config/h8300/h8300-protos.h: Update the prototype for
13376 compute_logical_op_length. Add the prototype for
13377 compute_logical_op_cc.
13378 * config/h8300/h8300.c (compute_logical_op_length): Figure out
13379 code from operands.
13380 (compute_logical_op_cc): New.
13381 * config/h8300/h8300.md: Combine all the logical op patterns
13382 in HImode and SImode. Use compute_logical_op_cc.
13383
831c4e87
KC
133842002-02-26 Kelley Cook <kelleycook@comcast.net>
13385
13386 * config/i386/i386.c (print_operand): Don't append ATT-style
13387 length suffixs to x87 opcodes when in Intel mode.
13388
ff88fe10
RS
133892002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
13390
13391 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
13392 (init_emit_once): Update calls.
13393 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
13394 (init_syntax_once): Prototype.
13395
d4108589
JDA
133962002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
13397
13398 * pa-linux.h (LIB_SPEC): Update definition.
13399 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
13400
e013f3c7
RH
134012002-02-26 Richard Henderson <rth@redhat.com>
13402
13403 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
13404 if we emitted a stop bit.
13405
9e944a16
JJ
134062002-02-26 Jakub Jelinek <jakub@redhat.com>
13407
13408 * configure.in (libgcc_visibility): Substitute.
13409 * configure: Rebuilt.
13410 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
13411 defined symbols .hidden.
13412
47bd70b5
JJ
134132002-02-26 Jakub Jelinek <jakub@redhat.com>
13414
13415 * attribs.c (c_common_attribute_table): Add visibility.
13416 (handle_visibility_attribute): New function.
13417 * varasm.c (assemble_visibility): New function.
13418 * output.h (assemble_visibility): Add prototype.
13419 * tree.h (MODULE_LOCAL_P): Define.
13420 * crtstuff.c (__dso_handle): Use visibility attribute.
13421 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13422 for MODULE_LOCAL_P symbols too.
13423 * config/ia64/ia64.c (ia64_encode_section_info): Handle
13424 MODULE_LOCAL_P symbols the same way as local symbols.
13425 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13426 into .sdata/.sbss by the user.
13427 * doc/extend.texi (Function Attributes): Document visibility
13428 attribute.
13429
6d73371a
JJ
134302002-02-26 Jakub Jelinek <jakub@redhat.com>
13431
13432 PR debug/5770
13433 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13434 STRING_CST initializer spanning the whole variable without
13435 embedded zeros.
13436 If expand_expr returned MEM, don't use it.
13437
06e224f7
AO
134382002-02-26 Alexandre Oliva <aoliva@redhat.com>
13439
13440 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13441 generate a die for the lexical block.
13442
40367e2d
KH
134432002-02-26 Kazu Hirata <kazu@hxi.com>
13444
13445 * config/h8300/h8300-protos.h: Add a prototype for
13446 compute_logical_op_length.
13447 * config/h8300/h8300.c (compute_logical_op_length): New.
13448 * config/h8300/h8300.md (anonymous logical patterns): Use
13449 compute_logical_op_length for length.
13450
0e98f924
AH
134512002-02-26 Aldy Hernandez <aldyh@redhat.com>
13452
831c4e87
KC
13453 * dwarf2out.c (modified_type_die): Do not call type_main_variant
13454 for vectors.
13455 (gen_type_die): Same.
0e98f924 13456
831c4e87 13457 * attribs.c (handle_vector_size_attribute): Set debug information.
0e98f924 13458
a50cfd52
DE
134592002-02-26 Daniel Egger <degger@fhm.edu>
13460
831c4e87
KC
13461 * config/rs6000/rs6000.md: Swap define_insn attributes to
13462 fix incorrect generation of merge high instructions instead
13463 of merge low.
a50cfd52 13464
b7997284
AH
134652002-02-26 Aldy Hernandez <aldyh@redhat.com>
13466
831c4e87
KC
13467 * c-typeck.c (really_start_incremental_init): Use
13468 bitsize_zero_node for vectors.
b7997284 13469
376aec5d
AH
134702002-02-26 Aldy Hernandez <aldyh@redhat.com>
13471
831c4e87
KC
13472 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
13473 ("*set_vrsave_internal"): Same.
376aec5d 13474
3b40e71b
RH
134752002-02-25 Richard Henderson <rth@redhat.com>
13476
13477 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
13478 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
13479
232b8f52
JJ
134802002-02-25 Jakub Jelinek <jakub@redhat.com>
13481
13482 PR target/5755
13483 * config/i386/i386.c (ix86_return_pops_args): Only pop
13484 fake structure return argument if it was passed on the stack.
13485
67282790
JM
134862002-02-25 Jason Merrill <jason@redhat.com>
13487
13488 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
13489 RESULT_DECL.
13490
5c181756
AO
134912002-02-25 Alexandre Oliva <aoliva@redhat.com>
13492
13493 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
13494 link with shared_name only.
13495 * doc/invoke.texi (Link Options): Document new behavior.
13496
6786d201
AH
134972002-02-25 Aldy Hernandez <aldyh@redhat.com>
13498
831c4e87 13499 * c-typeck.c (push_init_level): Handle vectors.
6786d201 13500
7d6040e8
AO
135012002-02-25 Alexandre Oliva <aoliva@redhat.com>
13502
13503 * config/sparc/sparc.c (const64_high_operand): Zero-extend
13504 operands of SPARC_SETHI_P.
13505 (input_operand): Likewise.
13506 (sparc_emit_set_const32): Likewise.
13507 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
13508 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
13509 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
13510 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
13511 (movdi_insn_sp64_vis): Likewise.
13512 (movdi split, movdf split): Use SETHI32.
13513 * doc/md.texi: Document SPARC constraints L, M and N.
13514
b188f760
AH
135152002-02-25 Aldy Hernandez <aldyh@redhat.com>
13516
831c4e87
KC
13517 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
13518 ("*set_vrsave_internal"): use mfspr for Darwin.
b188f760 13519
831c4e87
KC
13520 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
13521 gen_get_vrsave_internal.
b188f760 13522
8041889f
RK
13523Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13524
13525 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
13526
a47ed310
NB
135272002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
13528
13529 * cpplex.c (cpp_interpret_charconst): Get signedness or
13530 otherwise of wide character constants correct.
13531 * cppexp.c (lex): Get signedness of wide charconsts correct.
13532
cb8f73be
RK
13533Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13534
13535 * optabs.c (widen_operand): Only call convert_modes for
13536 promoted SUBREG if signedness matches.
13537 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
13538
2450e0b8
NB
135392002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13540
13541 * cpplib.c (glue_header_name): Use local buffer to build up
13542 header name.
13543
70b6aaed
NB
135442002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13545
13546 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
13547
6be580c7
KH
135482002-02-23 Kazu Hirata <kazu@hxi.com>
13549
13550 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13551 H8/300[HS] separately.
13552 * config/h8300/h8300.md: Remove the early clobber constraint
13553 from bit field patterns.
13554
35dad9f1
KH
135552002-02-23 Kazu Hirata <kazu@hxi.com>
13556
13557 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
13558 register_operand.
13559 (mulhisi3): Likewise.
13560 (umulqisi3): Likewise.
13561 (umulhisi3): Likewise.
13562
ab8e2228
NB
135632002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13564
13565 * cppinit.c (output_deps): Correct test for stdout output.
13566 (init_dependency_output): Cure warning.
13567
ac6f8a15
RK
13568Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13569
13570 * expr.c (store_expr): When converting expression to promoted
13571 equivalent type, allow using SUBREG_REG of TARGET as the target
13572 of the expansion of EXP.
13573 * loop.c (basic_induction_var, case SUBREG): Always look inside.
13574 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
13575 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
13576 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
13577 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
13578
f282ffb3
JM
135792002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
13580
13581 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
13582 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
13583 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
13584
44c5edc0
JJ
135852002-02-23 Jakub Jelinek <jakub@redhat.com>
13586
13587 PR optimization/5747
13588 * loop.c (scan_loop): Update reg info if move_movables created new
13589 pseudos.
13590
f98e43c0
DE
135912002-02-23 David Edelsohn <edelsohn@gnu.org>
13592
13593 * gcc.c (init_gcc_spec): Revert last change.
13594
e72247f4
DE
135952002-02-23 David Edelsohn <edelsohn@gnu.org>
13596
13597 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
13598 gpc_reg_operand constraint.
13599
136002002-02-23 Alan Modra <amodra@bigpond.net.au>
13601
13602 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
13603 Simplify comparison of `low'.
13604 (add_operand): Fix formatting.
13605 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
57deb3a1 13606 (mask_operand): Disallow mask to wrap in 64-bit mode.
e72247f4
DE
13607 (rs6000_stack_info): Remove redundant test setting push_p.
13608 (output_toc): Fix formatting.
13609 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
13610 cc_reg_not_cr0_operand constraint.
13611 (booldi3, boolcdi3 splitters): Same.
13612
a5c30531
AH
136132002-02-23 Aldy Hernandez <aldyh@redhat.com>
13614
831c4e87 13615 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
a5c30531 13616
43710f9f
DE
136172002-02-22 David Edelsohn <edelsohn@gnu.org>
13618
13619 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
13620 gcc invoked with -shared-libgcc.
13621
3256b817
JJ
136222002-02-22 Jakub Jelinek <jakub@redhat.com>
13623
13624 PR c++/5748
13625 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
13626 decl if any of elements was TREE_USED.
13627
9e0625a3
AO
136282002-02-22 Alexandre Oliva <aoliva@redhat.com>
13629
13630 * config/sparc/sol2.h: Don't include sys/mman.h.
13631 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
13632 (arith_4096_operand): Don't throw high bits away.
13633 (const64_operand): Take sign extension of CONST_INTs into account.
13634 (const64_high_operand, sparc_emit_set_const32): Likewise.
13635 (GEN_HIGHINT64): Likewise.
13636 (sparc_emit_set_const64_quick1): Likewise.
13637 (const64_is_2insns): Likewise.
13638 (print_operand): Use trunc_int_for_mode for sign extension.
13639 * config/sparc/sparc.h (SMALL_INT32): Likewise.
13640 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
13641 chars. Assume CONST_INT is already properly sign-extended.
13642 (movdi split): Sign-extend each SImode part.
13643 (andsi3 split): Don't mask high bits off, so that result
13644 remains properly sign-extend.
13645 (iorsi3 split): Likewise.
13646 (xorsi3 split): Likewise.
13647
54fec3d5
RS
136482002-02-22 Richard Sandiford <rsandifo@redhat.com>
13649
13650 * fold-const.c (fold): Fix typo in comments.
13651
667ada9b
DN
136522002-02-21 Diego Novillo <dnovillo@redhat.com>
13653
13654 * Makefile.in (langhooks.o): Update dependencies.
13655
29ac78d5
DN
136562002-02-21 Diego Novillo <dnovillo@redhat.com>
13657
13658 * langhooks.c: Include flags.h.
13659
6aa77e6c
AH
136602002-02-21 Aldy Hernandez <aldyh@redhat.com>
13661
13662 * testsuite/gcc.dg/attr-alwaysinline.c: New.
13663
13664 * c-common.c (c_common_post_options): Set inline trees by
13665 default.
13666
13667 * doc/extend.texi (Function Attributes): Document always_inline
13668 attribute.
13669 Update documentation about inlining when not optimizing.
13670
13671 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
13672
13673 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
13674 unless DECL_ALWAYS_INLINE.
13675
13676 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
13677 unless DECL_ALWAYS_INLINE.
13678 (c_disregard_inline_limits): Disregard if always_inline set.
13679
13680 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
13681 Disregard if always_inline set.
13682 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
13683 unless DECL_ALWAYS_INLINE.
13684
13685 * attribs.c (handle_always_inline_attribute): New.
13686 (c_common_attribute_table): Add always_inline.
13687
13688 * config/rs6000/altivec.h: Add prototypes for builtins
13689 requiring the always_inline attribute.
13690
c410d49e
EC
136912002-02-21 Eric Christopher <echristo@redhat.com>
13692
13693 * expmed.c (store_bit_field): Try to simplify the subreg
13694 before generating a new one when when the mode size of
13695 value is less than maxmode.
13696
e3c8ea67
RH
136972002-02-21 Richard Henderson <rth@redhat.com>
13698
13699 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
13700 than gen_rtx_PLUS to form the sum.
13701 * explow.c (force_reg): Rearrange to not allocate new pseudo
13702 when force_operand returns a register.
13703 * expr.c (expand_assignment): Allow offset_rtx expansion to
13704 return a sum. Do not force addresses into registers.
13705 (expand_expr): Likewise.
13706 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
13707 to canonicalize arithmetic that didn't simpify.
13708 (simplify_plus_minus): New argument force; update
13709 all callers. Don't split CONST unless we can do something with it,
13710 and wouldn't lose the constness of the operands.
13711
13712 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
13713 that we generated earlier.
13714
c1a046e5
TT
137152002-02-21 Tom Tromey <tromey@redhat.com>
13716
13717 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13718 (output_line_info): Use constant `1', with a long explanatory
13719 comment.
13720 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
13721
31fbaad4
R
13722Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
13723
13724 * jump.c (redirect_jump): If old label has no UID, don't try to
13725 delete it.
13726
a7f52356
R
13727Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
13728
13729 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
13730 If input is constant, do shifts at compile time.
13731
924fcc4e
JM
137322002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
13733
13734 * doc/extend.texi: Fix some more overfull hboxes.
13735
e5a20888
JJ
137362002-02-21 Jakub Jelinek <jakub@redhat.com>
13737
13738 PR optimization/4994
13739 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
13740 register moves.
13741
137422002-02-21 Jakub Jelinek <jakub@redhat.com>
22273300
JJ
13743
13744 PR c++/4574
13745 * expr.h (expand_and): Add mode argument.
13746 * expmed.c (expand_and): Add mode argument.
13747 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
13748 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
13749 * except.c (expand_builtin_extract_return_addr): Likewise.
13750 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13751 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
13752 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
13753 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
13754 * config/c4x/c4x.md: Use GEN_INT (x) instead of
13755 gen_rtx (CONST_INT, VOIDmode, x).
13756
7133e992
JJ
137572002-02-21 Jakub Jelinek <jakub@redhat.com>
13758
13759 PR c/4697:
13760 * stmt.c (warn_if_unused_value): Move side effects test once more.
13761
e2ec05a6
TG
137622002-02-20 Torbjorn Granlund <tege@swox.com>
13763
13764 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
831c4e87 13765 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
e2ec05a6 13766
9dd791c8
AO
13767Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
13768
13769 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
13770 SUBREG or ZERO_EXTEND.
13771
7ab56274
R
13772Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
13773
13774 * sh.h (current_function_anonymous_args): Remove.
13775 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
13776 of current_function_varargs and current_function_stdarg is set.
13777 * sh.c (sh_expand_prologue): Check current_function_varargs /
13778 current_function_stdarg / TARGET_SH5 instead of
13779 current_function_anonymous_args.
13780
13781 * sh64.h (TARGET_VERSION): Define.
13782
b1765bde
DE
137832002-02-20 David Edelsohn <edelsohn@gnu.org>
13784
13785 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
13786 VRSAVE_REGNO on TARGET_ALTIVEC.
13787
137882002-02-20 Alan Modra <amodra@bigpond.net.au>
13789
13790 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
13791 bits of SImode const_int.
13792 (includes_rshift_p): Likewise.
13793 (print_operand): Call mask_operand and mask64_operand with correct
c410d49e 13794 mode.
b1765bde
DE
13795 (rs6000_output_function_epilogue): Pad traceback table to word.
13796 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
13797 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
13798 mask64_operand with correct mode.
b1765bde
DE
13799 (FUNCTION_ARG_REGNO_P): Correct parentheses.
13800
149d6f9e
JJ
138012002-02-20 Jakub Jelinek <jakub@redhat.com>
13802
13803 PR debug/4461
13804 * varasm.c (get_pool_constant_mark): New.
13805 * rtl.h (get_pool_constant_mark): Add prototype.
13806 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
13807 be represented if it has not been output.
13808
4161da12
AO
138092002-02-20 Alexandre Oliva <aoliva@redhat.com>
13810
13811 * combine.c (do_SUBST): Sanity check substitutions of
13812 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13813 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
13814 CONST_INT into its operand.
13815 (known_cond): Likewise, for ZERO_EXTEND.
13816 * simplify-rtx.c (simplify_unary_operation): Fix condition to
13817 allow for simplification of wide modes. Reject CONST_INTs in
13818 ZERO_EXTEND when their actual mode is not given.
13819
3704ef74
AO
138202002-02-20 Alexandre Oliva <aoliva@redhat.com>
13821
13822 * c-decl.c (pushdecl): If no global declaration is found for an
13823 extern declaration in block scope, try a limbo one.
13824
7552da58
JJ
138252002-02-20 Jakub Jelinek <jakub@redhat.com>
13826
13827 PR c++/4401
13828 * c-common.c (pointer_int_sum): Moved from...
13829 * c-typeck.c (pointer_int_sum): ...here.
13830 * c-common.h (pointer_int_sum): Add prototype.
13831
00fae85d
JJ
138322002-02-20 Jakub Jelinek <jakub@redhat.com>
13833
13834 PR c++/5713
13835 * c-decl.c (duplicate_decls): Return 0 if issued error about
13836 redeclaration.
13837
4636c87e
JJ
138382002-02-20 Roger Sayle <roger@eyesopen.com>
13839 Jakub Jelinek <jakub@redhat.com>
13840
13841 PR c/4389
13842 * tree.c (host_integerp): Ensure that the constant integer is
13843 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
13844 when pos is zero or non-zero respectively. Clarify comment.
13845 * c-format.c (check_format_info_recurse): Fix host_integerp
13846 usage; the pos argument should be zero when assigning to a
13847 signed HOST_WIDE_INT.
13848
59bef189
RH
138492002-02-20 Richard Henderson <rth@redhat.com>
13850
13851 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
13852 of the operand, rather than assuming TImode.
13853 (ix86_expand_binop_builtin): Cope with commutative patterns
13854 using nonimmediate_operand for both operands.
13855 (ix86_expand_timode_binop_builtin): Likewise.
13856 (ix86_expand_store_builtin): Validate operand 1.
13857 (ix86_expand_unop1_builtin): Likewise.
13858
9338ffe6 138592002-02-20 Philip Blundell <philb@gnu.org>
c410d49e 13860
9338ffe6
PB
13861 PR 5705
13862 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
13863
f322b423
RH
138642002-02-20 Richard Henderson <rth@redhat.com>
13865
13866 PR c/5615
13867 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
13868
d94084f7
TT
138692002-02-20 Tom Tromey <tromey@redhat.com>
13870
13871 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13872 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13873 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13874 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13875 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
13876 unconditionally.
13877
37fa124a
AM
13878Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
13879
13880 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
13881 for (const_int 0) in X not just INTVAL.
13882
6e5bb5ad
JM
138832002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
13884
13885 * doc/extend.texi: Avoid or reduce overfull hboxes.
13886
420e7dfa
DN
138872002-02-20 Diego Novillo <dnovillo@redhat.com>
13888
13889 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13890 operations if the field does not start at a mode boundary.
13891
1b7a2af6
JS
138922001-02-20 Joel Sherrill <joel@OARcorp.com>
13893
13894 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
13895 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
13896 Also done for -Acpu and -Amachine.
13897
56cd5b95
NB
138982002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
13899
13900 * cppinit.c (init_dependency_output): Take deps output file
13901 from -o if none given with -MF. Suppress normal output.
c410d49e 13902 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
56cd5b95
NB
13903 * doc/cpp.texi, doc/invoke.texi: Update.
13904
042cdf71
ZW
139052002-02-19 Zack Weinberg <zack@codesourcery.com>
13906
13907 * toplev.c (output_quoted_string): Write unprintable
13908 characters with octal escapes.
13909
c1f11548
DE
139102002-02-19 David Edelsohn <edelsohn@gnu.org>
13911
13912 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
13913 really_call_used[VRSAVE_REGNO] if not Altivec.
13914
139152002-02-19 Alan Modra <amodra@bigpond.net.au>
c410d49e 13916
c1f11548
DE
13917 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
13918 MODE_MASK.
13919 (constant_pool_expr_1): Fix formatting.
13920 (rs6000_legitimize_reload_address): Likewise.
13921
c964d90e
RK
13922Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13923
13924 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
13925 now that we have one.
13926
ae34ac46
ZW
139272002-02-19 Zack Weinberg <zack@codesourcery.com>
13928
13929 * tree.h (struct tree_common): Remove aux. Add unused_0 at
13930 end of first block of bitfields (which was only seven bits);
13931 rename dummy to unused_1; remove comment which is no longer true.
13932
293c28ee
GS
139332002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13934
13935 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
13936
7b8781c8
PB
139372002-02-19 Philip Blundell <pb@nexus.co.uk>
13938
0cb6c58d 13939 PR 5399
7b8781c8
PB
13940 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
13941 if generating PIC.
13942
13943 PR 5054
13944 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
13945 arm_is_longcall_p rather than inspecting call-type cookie
13946 directly.
13947 (call_value_insn) [TARGET_THUMB]: Likewise.
13948
5c464583
GS
139492002-02-19 Graham Stott <grahams@redhat.com>
13950
13951 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
13952
71c061e6
DE
139532002-02-19 David Edelsohn <edelsohn@gnu.org>
13954
13955 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
13956 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6d1def5c 13957 (FP_SAVE_INLINE): Delete.
71c061e6
DE
13958
13959 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
13960 * config/rs6000/eabi.asm: Remove ABI save restore routines.
13961 * config/rs6000/t-ppccomm: Build crtsavres.o.
13962 * config/rs6000/crtsavres.asm: New file.
13963
3a7731fd
PB
139642002-02-19 Philip Blundell <philb@gnu.org>
13965
13966 * config/arm/arm.c (use_return_insn): Don't reject interrupt
13967 functions.
13968 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
13969 (output_return_instruction): Allow interrupt functions to return with
13970 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
13971 (arm_expand_prologue): Subtract 4 before stacking LR in an
13972 interrupt function.
13973
14f583b8
PB
139742002-02-19 Philip Blundell <pb@nexus.co.uk>
13975
13976 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
13977 decl, not just FUNCTION_DECL.
13978 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
13979 (arm_assemble_integer): Likewise.
13980 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
13981 marked local.
c410d49e 13982
4cb7482c
MG
139832002-02-19 matthew green <mrg@eterna.com.au>
13984
13985 * config.gcc (sparc-*-netbsdelf*): Enable target.
13986 (sparc64-*-netbsd*): New target.
13987 * config/sparc/netbsd-elf.h: New file.
13988 * config/sparc/t-netbsd64: New file.
13989
2df3a718
GS
139902002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13991
13992 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
13993
77f6c1eb
RS
139942002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
13995
13996 * doc/invoke.texi: explicitly list the style guidelines that
13997 -Weffc++ checks for.
13998
fd973d56
JH
13999Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
14000
14001 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
14002
30518e45
NB
140032002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
14004
14005 PR other/5718
14006 * gcc.c (cpp_unique_options): Treat -o as indicating object file
14007 only if not -E. If -E, pass -o through to the preprocessor.
14008
39ea5704
KH
140092002-02-19 Kazu Hirata <kazu@hxi.com>
14010
14011 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
14012 register number with an appropriate macro.
14013
7355dba7
BM
140142002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14015
14016 * doc/rtl.texi (Constants): Close @code tag.
14017
91c8aa9e
AH
140182002-02-19 Aldy Hernandez <aldyh@redhat.com>
14019
14020 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
14021 ("mmx_uavgv4hi3"): Same.
14022 ("pmulhrwv4hi3"): Same.
14023
14024 * tree-inline.c (walk_tree): Handle vectors.
14025
14026 * c-common.c (constant_expression_warning): Handle vectors.
14027 (overflow_warning): Same.
14028
14029 * sched-deps.c (sched_analyze_2): Handle vectors.
14030
14031 * rtlanal.c (rtx_unstable_p): Handle vectors.
14032 (rtx_varies_p): Same.
14033 (count_occurrences): Same.
14034 (regs_set_between_p): Same.
14035 (modified_between_p): Same.
14036 (modified_in_p): Same.
14037 (volatile_insn_p): Same.
14038 (volatile_refs_p): Same.
14039 (side_effects_p): Same.
14040 (may_trap_p): Same.
14041 (inequality_comparisons_p): Same.
14042 (replace_regs): Same.
14043 (computed_jump_p_1): Same.
14044
14045 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
14046 argument.
14047 (inner_mode_array): New.
14048 (copy_rtx): Handle vectors.
14049 (copy_most_rtx): Same.
14050 (rtx_equal_p): Same.
14051 (get_mode_alignment): Adjust for vectors.
14052
14053 * resource.c (mark_referenced_resources): Handle vectors.
14054 (mark_set_resources): Same.
14055
14056 * reload1.c (eliminate_regs): Handle vectors.
14057 (elimination_effects): Same.
14058 (scan_paradoxical_subregs): Same.
14059
14060 * reload.c (subst_reg_equivs): Handle vectors.
14061
14062 * regrename.c (scan_rtx): Handle vectors.
14063
14064 * regclass.c (reg_scan_mark_refs): Handle vectors.
14065
14066 * recog.c (find_single_use_1): Handle vectors.
14067
14068 * local-alloc.c (equiv_init_varies_p): Handle vectors.
14069 (contains_replace_regs): Same.
14070 (memref_referenced_p): Same.
14071
14072 * integrate.c (copy_rtx_and_substitute): Handle vectors.
14073 (subst_constants): Same.
14074
14075 * genattrtab.c (attr_copy_rtx): Handle vectors.
14076 (encode_units_mask): Same.
14077 (clear_struct_flag): Same.
14078 (count_sub_rtxs): Same.
14079
14080 * gcse.c (want_to_gcse_p): Handle vectors.
14081 (oprs_unchanged_p): Same.
14082 (hash_expr_1): Same.
14083 (oprs_not_set_p): Same.
14084 (expr_killed_p): Same.
14085 (compute_transp): Same.
14086 (store_ops_ok): Same.
14087
14088 * function.c (purge_addressof_1): Do not allow paradoxical subregs
14089 of vectors.
14090 (fixup_var_refs_1): Same.
14091 (instantiate_virtual_regs_1): Same.
14092
14093 * fold-const.c (operand_equal_p): Handle vectors.
14094 (fold): Same.
14095 (rtl_expr_nonnegative_p): Same.
14096
14097 * flow.c (mark_used_regs): Handle vectors.
14098
14099 * df.c (df_uses_record): Handle vectors.
14100
14101 * cselib.c (cselib_subst_to_values): Handle vectors.
14102 (cselib_mem_conflict_p): Same.
14103 (hash_rtx): Same.
14104
14105 * cse.c (canon_reg): Handle vectors.
14106 (fold_rt): Same.
14107 (cse_process_notes): Same.
14108 (count_reg_usage): Same.
14109 (canon_hash): Same.
14110
14111 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
14112
14113 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
14114
14115 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
14116 (gen_rtx): Handle CONST_VECTOR.
14117 (gen_const_vector_0): New.
14118 (copy_rtx_if_shared): CONST_VECTORs can be shared.
14119 (reset_used_flags): Same.
14120 (copy_insn_1): Same.
14121 (initializer_constant_valid_p): Handle VECTOR_CST.
14122
14123 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
14124
14125 * doc/rtl.texi (Constants): Document const_vector.
14126 (CONST0_RTX): Update for vectors.
14127 (RTL sharing): Same.
14128
14129 * print-tree.c (print_node): Add case for VECTOR_CST.
14130
14131 * tree.h (TREE_VECTOR_CST_ELTS): New.
14132 (struct tree_vector): New.
14133 (union tree_node): Add vector node.
14134 (build_vector): Add prototype.
14135
14136 * tree.def (VECTOR_CST): New.
14137
14138 * tree.c (build_vector): New.
14139
14140 * expmed.c (make_tree): Handle CONST_VECTOR.
14141
14142 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
14143 (CONST_VECTOR_ELT): New.
14144 (CONST_VECTOR_NUNITS): New.
14145
14146 * machmode.h (GET_MODE_INNER): New.
14147 (DEF_MACHMODE): Accept 8th arg.
14148
14149 * machmode.def: Add 8th argument for vector inner mode.
14150 Add inner vector modes for vectors.
14151
14152 * rtl.def (VEC_CONST): Remove.
14153 (CONST_VECTOR): New.
14154
14155 * expr.c (clear_storage): Allow vectors.
14156 (is_zeros_p): Handle VECTOR_CST.
14157
14158 * varasm.c (output_constant_pool): Handle vectors.
14159 (rtx_const): Add veclo and vechi fields.
14160 (kind): Add RTX_VECTOR.
14161 (decode_rtx_const): Add case for vector.
14162
14163 * config/rs6000/rs6000-protos.h: Add zero_constant.
c410d49e 14164
91c8aa9e
AH
14165 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
14166 constants. Force easy vector constants into memory.
14167 (easy_vector_constant): New.
14168 (emit_easy_vector_constant): New.
14169 (rs6000_legitimize_reload_address): Do not generate bad reloads on
14170 darwin.
14171
14172 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
14173 instruction does.
14174 ("altivec_lvxl"): Same.
14175 (altivec_lvebx): Same.
14176 (altivec_lvehx): Same.
14177 (altivec_lvewx): Same.
14178 ("*movv4si_const0"): New.
14179 ("*movv4sf_const0"): New.
14180 ("*movv8hi_const0"): New.
14181 ("*movv16qi_const0"): New.
14182
d4d6d0ce
KH
141832002-02-18 Kazu Hirata <kazu@hxi.com>
14184
14185 * config/h8300/h8300.c (notice_update_cc): Use
14186 cc_status.value2.
14187
4915d3aa
KH
141882002-02-18 Kazu Hirata <kazu@hxi.com>
14189
14190 * config/h8300/h8300.md (divmod patterns): Change the
14191 constraints for operands[1] to register_operand.
14192
82be00ee
KH
141932002-02-18 Kazu Hirata <kazu@hxi.com>
14194
14195 * config/h8300/h8300-protos.h: Remove the prototype for
14196 p_operand.
14197 * config/h8300/h8300.c (p_operand): Remove.
14198 * config/h8300/h8300.md: Replace p_operand with
14199 const_int_operand.
14200
1768c26f
PB
142012002-02-18 Philip Blundell <pb@nexus.co.uk>
14202
14203 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
14204 comment.
14205 (output_return_instruction): Allow use of LDR to unstack
14206 return addresss even for interrupt handlers or when
14207 interworking. If compiling for ARMv5, use interworking-safe
14208 return instructions by default. Remove duplicated code and
14209 lengthy "strcat" sequences.
14210
ccd84f51
FS
142112002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14212
14213 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
14214 (LINK_EH_SPEC): Define.
14215 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
14216
2c153108
UW
142172002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
14218
14219 * config/s390/s390.c (s390_emit_prologue): Do not set the
14220 frame_related flag for call-clobbered registers.
14221
e95d6b23
JH
14222Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
14223
14224 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
14225 (construct_container): Fix handling of SSE operands.
14226 (ix86_expand_builtin): Fix handling of 64bit pointers.
14227 (mmx_maskmovq_rex): New pattern.
14228
c43a12b5
JH
14229Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
14230
14231 * regrename.c (kill_set_value): Handle subregs properly.
14232
aeb85a15
DB
142332002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
14234
14235 * objc/objc-act.c (handle_impent): Remove leading '*'
c410d49e 14236 from objc_class_name.
aeb85a15 14237
a615ca3e
RH
142382002-02-17 Richard Henderson <rth@redhat.com>
14239
14240 * config/alpha/alpha.c (some_small_symbolic_operand,
14241 some_small_symbolic_operand_1, split_small_symbolic_operand,
14242 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
14243 Handle small SYMBOL_REFs anywhere, not just inside memories.
14244 * config/alpha/alpha-protos.h: Update.
14245 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14246 * config/alpha/alpha.md (small symbolic operand splitter): Update.
14247
ddb28441
RM
142482002-02-17 Roland McGrath <roland@frob.com>
14249
14250 * config.gcc (powerpc-*-gnu-gnualtivec*,
14251 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
14252 * config/rs6000/gnu.h: New file.
14253 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
14254 Grok "gnu" in rs6000_abi_name.
14255 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
14256 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
14257 Grok -mcall-gnu analogous to -mcall-linux et al.
14258 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14259 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
14260 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
14261
f6f8ada3
JJ
142622002-02-17 Jakub Jelinek <jakub@redhat.com>
14263
14264 PR c/3444:
14265 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
14266 shortening.
14267
e16b32fc
PT
142682002-02-17 Philipp Thomas <pthomas@suse.de>
14269
14270 * config/cris/cris.h: Undefine STARTFILE_SPEC and
14271 ENDFILE_SPEC before (re)defining them.
14272
f9477efd
KH
142732002-02-17 Kazu Hirata <kazu@hxi.com>
14274
14275 * config/h8300/h8300.c: Fix formatting.
14276 * config/h8300/h8300.h: Likewise.
14277
404ae494
PT
142782002-02-17 Philipp Thomas <pthomas@suse.de>
14279
14280 * doc/tm.texi: Explain why empty strings should not be
14281 marked for translation.
14282
a52453cc
PT
142832002-02-17 Philipp Thomas <pthomas@suse.de>
14284
14285 * final.c (output_operand_lossage): Changed to accept
14286 printf style arguments. Change calls where necessary.
14287 * output.h (output_operand_lossage): Change declaration
14288 accordingly. Update copyright.
14289 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
14290 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
14291 Update copyright date where necessary.
c410d49e 14292
a52453cc
PT
14293 * config/i386/i386.c (print_operand): Likewise. Remove use of
14294 sprintf.
14295
14296 * config/cris/cris.c (cris_operand_lossage): Likewise.
14297 Rename parameter so that exgettext recognizes it as
14298 translatable message.
14299 (LOSE_AND_RETURN): Rename parameter to msgid.
14300
1c11abc4
KH
143012002-02-17 Kazu Hirata <kazu@hxi.com>
14302
14303 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
14304 hard coded register number with an appropriate macro.
14305 (HARD_REGNO_MODE_OK): Likewise.
14306 (ARG_POINTER_REGNUM): Likewise.
14307 (STATIC_CHAIN_REGNUM): Likewise.
14308 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
14309 * config/h8300/h8300.md (define_constants): Define more
14310 register numbers.
14311
a5d17ff3
PT
143122002-02-17 Philipp Thomas <pthomas@suse.de>
14313
14314 * config/i386/i386.h: Don't mark empty strings for translation.
14315
1a7289c4
L
143162002-02-16 H.J. Lu <hjl@gnu.org>
14317
14318 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
14319
afb58288
ZW
143202002-02-16 Zack Weinberg <zack@codesourcery.com>
14321
14322 * cppinit.c (merge_include_chains): Check for brack being
14323 NULL before attempting to merge it with qtail.
14324
d2af4dbd
AC
143252002-02-16 Andrew Cagney <ac131313@redhat.com>
14326
14327 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
14328 DBX_DEBUG.
14329
2e1ed1e3
JDA
143302002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14331
14332 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
14333
604c75b2
JDA
143342002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14335
14336 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
14337 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
14338 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
14339
1a42b072
RK
14340Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14341
7303604f 14342 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1a42b072
RK
14343 now only if !TARGET_FIX.
14344 (*movsi_nt_vms_fix): New pattern.
14345
c2ea1ac6
DR
143462002-02-16 Douglas B Rupp <rupp@gnat.com>
14347
14348 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
14349 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
14350 (alpha_sa_mask, alpha_sa_size): Reflect above change.
14351 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
14352 (alpha_start_function, alpha_expand_epilogue): Likewise.
14353 (unicosmk_gen_dsib): Likewise.
14354
725e58b1
RK
14355Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14356
14357 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
14358
13e58269
UW
143592002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
14360
c410d49e 14361 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
13e58269
UW
14362 check_and_change_labels, s390_final_chunkify): Delete.
14363 (s390_split_branches, s390_chunkify_pool): New functions.
14364 (s390_function_prologue): Call them.
c410d49e 14365
13e58269
UW
14366 * config/s390/s390.h (S390_REL_MAX): Delete.
14367 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
14368
c410d49e 14369 * config/s390/s390.md (cjump, icjump, jump): Fix length
13e58269
UW
14370 attribute calculation.
14371
14372
34d1b01d
DE
143732002-02-15 David Edelsohn <edelsohn@gnu.org>
14374
14375 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
14376 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
14377
be5cc51a
JDA
143782002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14379
14380 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
14381 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
14382 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
14383
ee96ce90
RS
143842002-02-15 Richard Sandiford <rsandifo@redhat.com>
14385
14386 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
14387
05fa709d
RS
143882002-02-15 Richard Sandiford <rsandifo@redhat.com>
14389
14390 * reload.c (find_dummy_reload): Check that an output register
14391 is valid for its mode.
14392
4606272b
AO
143932002-02-14 Alexandre Oliva <aoliva@redhat.com>
14394
9a360704
AO
14395 * combine.c (known_cond): After replacing the REG of a SUBREG, try
14396 to simplify it.
14397
4606272b
AO
14398 * function.c (assign_parms): Demote promoted argument passed by
14399 transparent reference.
14400
e62d89a1
JS
144012001-02-14 Joel Sherrill <joel@OARcorp.com>
14402
14403 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
14404 -Acpu() and -Amachine() to eliminate warnings.
14405
6c4cf695
UW
144062002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
14407
14408 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
14409
037f11ef
KH
144102002-02-14 Kazu Hirata <kazu@hxi.com>
14411
14412 * config/h8300/h8300-protos.h: Update the prototype for
14413 const_costs.
14414 * config/h8300/h8300.c (const_costs): Treat SET as a little
14415 more expensive operation.
14416 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14417 reference to const_costs.
14418
fdc76b09
HPN
144192002-02-14 Hans-Peter Nilsson <hp@axis.com>
14420
14421 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14422
d76e6800
JJ
144232002-02-14 Jakub Jelinek <jakub@redhat.com>
14424
14425 PR c/5503:
14426 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14427 use arguments from newtype.
14428
5ae590d7
EC
144292002-02-13 Eric Christopher <echristo@redhat.com>
14430
14431 * config/mips/mips.c (override_options): Add check for march/mipsX
14432 on the same command line. Fix error message in cpu processing.
14433 Remove architecture and ISA checks.
14434
b8513691
AH
144352002-02-14 Aldy Hernandez <aldyh@redhat.com>
14436
831c4e87 14437 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
b8513691 14438
831c4e87 14439 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
b8513691 14440
78c875e8
AH
144412002-02-14 Aldy Hernandez <aldyh@redhat.com>
14442
831c4e87
KC
14443 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14444 alternatives.
14445 ("*movv8hi_internal1"): Same.
14446 ("*movv16qi_internal1"): Same.
14447 ("*movv4sf_internal1"): Same.
78c875e8 14448
831c4e87
KC
14449 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14450 not push_reload for altivec modes.
78c875e8 14451
d76e6800 144522002-02-13 Joel Sherrill <joel@OARcorp.com>
f22b4bc4
JS
14453
14454 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14455 all RTEMS targets including removal of #includes from config/*/rtems*.h
14456 file and adding them to tm_file setting. Added xm_defines=POSIX to
14457 many targets.
14458 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
14459 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
14460 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
14461 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
14462 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
14463 config/m68k/rtemself.h: Ditto.
14464 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
14465 config/mips/rtems64.h: Ditto.
14466 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
14467 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
14468 Ditto.
14469 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
14470 config/sparc/rtemself.h: Ditto.
14471 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
14472 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
14473 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
14474 more like arm-elf.
14475 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
14476 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
14477 target made more similar to i386-elf.
14478 * config/i386/t-rtems-i386: Added soft float support and multilibs.
14479 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
14480 be similar to config/m68k/t-m68kelf.
14481 * gthr-rtems.h: Encapsulate with extern "C" for C++.
14482
8686336f
JH
14483Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
14484
14485 * regmove.c (kill_value): Handle subregs.
14486
558740bf
JH
14487Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
14488
14489 * i386.md (mul patterns): Allow memory operand to be first;
14490 add expanders where needed; fix constraints.
14491 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
14492 Allow memory operand to be the first.
14493
14494 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
14495 operands.
14496
21117a17
JJ
144972002-02-13 Jakub Jelinek <jakub@redhat.com>
14498
14499 PR c/5681:
14500 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
14501 GET_MODE (x).
14502
ec65b2e3
JJ
145032002-02-13 Jakub Jelinek <jakub@redhat.com>
14504
14505 PR optimization/5547:
14506 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
14507 all valid IA-32 address modes involving non-scaled %ebx and
14508 GOT/GOTOFF as displacement.
14509
ce50cae8
UW
145102002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
14511
14512 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
14513 after emitting ltorg insns.
14514
14515 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
14516 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
14517 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
14518 *abssf2): Fix "op_type" attribute.
14519
09eb789b
DR
145202002-02-13 Douglas B Rupp <rupp@gnat.com>
14521
2dbe67bb
DR
14522 * mkconfig.sh: Avoid using a subshell redirect.
14523 ($output.T): Change to $(output)T.
14524 (ENABLE_NLS): Remove unneeded undef.
14525
ea5b9a1f
DR
14526 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
14527 * config/alpha/x-vms (libsubdir): Define.
14528
3deb00ce
DR
14529 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
14530 register frame procedures. Optimize retrieving context.
14531
09eb789b
DR
14532 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
14533 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
14534 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
14535
1abade85
RK
14536Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14537
14538 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
14539 Make same change as for find_base_value.
14540
c283e63f
KH
145412002-02-13 Kazu Hirata <kazu@hxi.com>
14542
14543 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
14544 of QImode and SImode.
14545
86039100
KH
145462002-02-13 Kazu Hirata <kazu@hxi.com>
14547
14548 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
14549 length computation of movsi.
14550 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
14551
e1429da0
KH
145522002-02-13 Kazu Hirata <kazu@hxi.com>
14553
14554 * config/h8300/h8300.md (subqi3): Tighten the predicate for
14555 operands[2] to register_operand.
14556
aebfea10
JH
14557Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
14558
14559 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
14560
0ec4e2a8
AH
145612002-02-12 Aldy Hernandez <aldyh@redhat.com>
14562
831c4e87
KC
14563 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
14564 for altivec_lvx* and altivec_stvx*.
14565 ("*movv4si_internal"): Add constraint for loading from GPRs.
14566 ("*movv8hi_internal1"): Same.
14567 ("*movv16qi_internal1"): Same.
14568 ("*movv4sf_internal1"): Same.
0ec4e2a8 14569
831c4e87 14570 * config/rs6000/rs6000.c (altivec_register_operand): New.
0ec4e2a8 14571
831c4e87
KC
14572 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14573 altivec_register_operand.
0ec4e2a8 14574
b007569d
HPN
145752002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
14576
14577 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
14578 handle SYMBOL_REF.
14579
e6834654
SS
145802002-02-13 Stan Shebs <shebs@apple.com>
14581
831c4e87
KC
14582 * c-typeck.c (digest_init): Handle vectors.
14583 (really_start_incremental_init): Same.
14584 (pop_init_level): Same.
14585 (process_init_element): Same.
e6834654 14586
831c4e87 14587 * varasm.c (output_constant): Same.
e6834654 14588
831c4e87
KC
14589 * expr.c (clear_storage): Same.
14590 (store_constructor): Same.
e6834654 14591
d9b3eb63
EC
145922002-02-12 Eric Christopher <echristo@redhat.com>
14593
14594 * explow.c (hard_function_value): Add comment explaining
14595 signed/unsigned comparison.
14596
56d44285
JJ
145972002-02-12 Jakub Jelinek <jakub@redhat.com>
14598
14599 * jump.c (never_reached_warning): Add finish argument.
14600 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
14601 real insn after end.
14602 * rtl.h (never_reached_warning): Adjust prototype.
14603 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
14604 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
14605 never_reached_warning.
14606
fc209487
GS
146072002-02-12 Graham Stott <grahams@redhat.com>
14608
14609 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
14610
1e41e866
KH
146112002-02-12 Kazu Hirata <kazu@hxi.com>
14612
14613 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
14614 logical shifts on H8/300.
14615 (shift_alg_si): Improve several shifts on H8/300.
14616 (get_shift_alg): Likewise.
14617
a36a47ad
GS
146182002-02-12 Graham Stott <grahams@redhat.com>
14619
14620 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
14621
0aacc8ed
RK
14622Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14623
14624 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
14625 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
14626
a02ac966
HPN
146272002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
14628
14629 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
14630 non-CONST_INT through default_assemble_integer.
14631 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
14632 <case 8>: Abort for CONST_DOUBLE.
14633
d6e06ddc
JDA
146342002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14635
14636 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
14637 is specified.
14638 * config/pa/pa-linux.h (LIB_SPEC): Delete.
14639 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14640
515342a8
AH
146412002-02-11 Andrew Haley <aph@cambridge.redhat.com>
14642
14643 * config/stormy16/stormy16.md (zero_extendqihi2): New.
14644
cddd8b72
AO
146452002-02-11 Alexandre Oliva <aoliva@redhat.com>
14646
66df7a98
AO
14647 * regrename.c (regrename_optimize): Don't accept a
14648 part-clobbered register if the replaced register is not part
14649 clobbered.
14650
841404cd
AO
14651 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
14652 take padding into account when computing the argument value.
14653
1d1ade42
AO
14654 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
14655
cddd8b72
AO
14656 * combine.c (try_combine): Apply substitutions in
14657 CALL_INSN_FUNCTION_USAGE too.
14658
5c665b88
AH
146592002-02-11 Aldy Hernandez <aldyh@redhat.com>
14660
77f6c1eb
RS
14661 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
14662 __builtin_altivec_abs*.
14663 (bdesc_abs): New.
5c665b88 14664
77f6c1eb
RS
14665 * config/rs6000/rs6000.h (rs6000_builtins): Add
14666 ALTIVEC_BUILTIN_ABS*.
5c665b88 14667
77f6c1eb
RS
14668 * config/rs6000/altivec.h: Use const char for builtins expecting
14669 literals.
14670 (vec_abs): New versions for C and C++.
14671 (vec_abss): Same.
5c665b88 14672
3494f1b4
KH
146732002-02-10 Kazu Hirata <kazu@hxi.com>
14674
14675 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
14676 using Pmode.
14677
72431aef
KH
146782002-02-10 Kazu Hirata <kazu@hxi.com>
14679
14680 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
14681 constant definition from h8300.md.
14682 (FRAME_POINTER_REGNUM): Likewise.
14683 * config/h8300/h8300.md (define_constants): Add FP_REG.
14684
87e4ee91
KH
146852002-02-10 Kazu Hirata <kazu@hxi.com>
14686
14687 * config/h8300/h8300.c (print_operand): Remove redundant code.
14688
9c188705
KH
146892002-02-10 Kazu Hirata <kazu@hxi.com>
14690
14691 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
14692 * config/h8300/h8300.c (byte_reg): Make it static.
14693
fba78abb
RH
146942002-02-10 Richard Henderson <rth@redhat.com>
14695
14696 PR c/5623
14697 * c-typeck.c (incomplete_type_error): Handle flexible array members.
14698
65739e62
RH
146992002-02-10 Richard Henderson <rth@redhat.com>
14700
14701 PR c++/5624
14702 * tree.c (append_random_chars): Don't abort if main_input_filename
14703 does not exist.
14704
247cb9df
HPN
147052002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
14706
14707 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
14708
232bd029
KH
147092002-02-10 Kazu Hirata <kazu@hxi.com>
14710
65739e62 14711 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
232bd029
KH
14712 (pushhi1): Likewise.
14713
276ef573
JDA
147142002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
14715
14716 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
14717 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
14718
617e9ee5
DB
147192002-02-09 David O'Brien <obrien@FreeBSD.org>
14720
14721 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
14722 remove MASK_VIS.
14723 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
14724
6dfa4005
KH
147252002-02-09 Kazu Hirata <kazu@hxi.com>
14726
14727 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
14728 a half of an SImode register on H8/300.
14729
749e7b80
JH
14730Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
14731
14732 * i386.md (movdi_2): Add missing '!'.
14733
ca77d87c
KH
147342002-02-09 Kazu Hirata <kazu@hxi.com>
14735
14736 * config/h8300/h8300.h: Fix formatting. Remove commented-out
14737 definitions.
14738
16c96304
KH
147392002-02-09 Kazu Hirata <kazu@hxi.com>
14740
14741 * config/h8300/h8300.md (length): Correct the distance valid
14742 for the short branch.
14743
a364bc90
KH
147442002-02-09 Kazu Hirata <kazu@hxi.com>
14745
14746 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
14747
e4ec2cac
AO
147482002-02-09 Alexandre Oliva <aoliva@redhat.com>
14749
a138247b
AO
14750 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
14751 registers in SImode.
14752 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
14753 part-clobbered.
14754
2b1fd83f
AO
14755 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
14756 patch.
d9b3eb63 14757
fa5322fa
AO
14758 Contribute sh64-elf.
14759 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14760 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
14761 (sh_cannot_modify_jumps_p): New function.
14762 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14763 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
14764 (sh_ms_bitfield_layout_p): New function.
14765 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
14766 Zack Weinberg <zack@codesourcery.com>
14767 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
14768 expand_simple_binop instead of expand_binop.
14769 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
14770 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
14771 use of .quad and .uaquad.
14772 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
14773 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
14774 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14775 * config/sh/sh.md (movdi_const, movdi_const_32bit,
14776 movdi_const_16bit): Make sure all CONSTs have modes.
14777 (sym2PIC): Ditto, but by adjusting all callers.
14778 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
14779 if the prologue calls the SHmedia argument decoder or register
14780 saver.
14781 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14782 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
14783 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
14784 (sh_expand_epilogue): Don't emit USE of return target register.
14785 (prepare_move_operands): Legitimize DImode PIC addresses.
14786 (sh_media_register_for_return): Skip tr0, used to initialize the
14787 PIC register.
14788 (sh_expand_prologue): Remove explicit USE of return register.
14789 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
14790 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
14791 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
14792 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
14793 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
14794 EXTRA_CONSTRAINT_T.
14795 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
14796 (MOVI_SHORI_BASE_OPERAND_P): New.
14797 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
14798 (EXTRA_CONSTRAINT_T): Define in terms of them.
14799 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
14800 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
14801 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
14802 alternatives supporting TARGET_REGS.
14803 (UNSPEC_GOTPLT): New constant.
14804 (movdi split): Move incrementing of LABEL_NUSES...
14805 (movdi_const, movdi_const_32bit): Here. Use
14806 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
14807 (movdi_const_16bit): New.
14808 (call, call_value) [flag_pic]: Use GOTPLT.
14809 (call_pop, call_value_pop): New expands.
14810 (call_pop_compact, call_pop_rettramp): New insns.
14811 (call_value_pop_compact, call_value_pop_rettramp): New insns.
14812 (sibcall) [flag_pic]: Use GOT.
14813 (builtint_setjmp_receiver): Remove bogus, unused expand.
14814 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
14815 (*pt, *ptb, ptrel): New insns.
14816 (sym2GOT): Handle DImode GOT.
14817 (sym2GOTPLT, symGOTPLT2reg): New expands.
14818 (sym2PIC): New expand.
14819 (shcompact_return_tramp): Use GOTPLT to return trampoline.
14820 (shcompact_return_tramp_i): Use return register explicitly.
14821 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
14822 disable flag_reorder_blocks.
14823 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14824 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
14825 clobbers, for clarity.
14826 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
14827 restoring of r0 in macl as MAYBE_DEAD.
14828 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
14829 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
14830 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
14831 alter_subreg all over.
14832 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
14833 reload, instead of emitting instructions that would require
14834 reloading.
14835 (casesi_load_media): Add missing modes.
14836 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
14837 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
14838 as used if the argument decoder is called.
14839 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14840 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
14841 Pmode, then extend it to DImode if necessary.
14842 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14843 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
14844 constants in FPU-enabled SHmedia, let them be loaded from memory.
14845 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14846 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
14847 Adjust whitespace in assembly output templates.
14848 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14849 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
14850 mode of if_then_else.
14851 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
14852 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
14853 sh.h.
14854 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
14855 Joern Rennecke <amylaar@redhat.com>
14856 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
14857 (SUBTARGET_CPP_PTR_SPEC): New.
14858 (SUBTARGET_CPP_SPEC): Remove.
14859 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14860 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14861 Fix typo in previous checkin.
14862 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
14863 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
14864 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
14865 Alexandre Oliva <aoliva@redhat.com>
14866 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
14867 what single FP register can hold for SHmedia target.
14868 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14869 Alexandre Oliva <aoliva@redhat.com>
14870 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14871 Do not split into SUBREG.
14872 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
14873 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
14874 and added new functions as specified in SH5 ABI r9.
14875 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
14876 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
14877 8-byte boundary.
14878 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
14879 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
14880 gen_consttable_4 and gen_consttable_8. Emit multiple labels
14881 and consttable_window_ends.
14882 2001-06-03 Graham Stott <grahams@redhat,com>
14883 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
14884 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
14885 * config/sh/sh.c (print_operand): Handle floating-point pair,
14886 vector and matrix registers.
14887 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
14888 vector modes into account.
14889 * config/sh/sh.md (movv2sf): Split move between registers into
14890 movdf.
14891 (movv4sf, movv16sf): Introduce insns that get split only after
14892 reload.
14893 * config/sh/shmedia.h: Fix Copyright dates.
14894 * config/sh/ushmedia.h: Likewise. Move loop counter
14895 declarations into conditionals that uses them.
14896 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
14897 loop boundary.
14898 * config/sh/sshmedia.h: Fix Copyright dates.
14899 (sh_media_PUTCFG): Fix constraints.
14900 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
14901 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
14902 ptrmemfunc_vbit_in_delta for SH5.
14903 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
14904 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
14905 * invoke.texi: Likewise.
14906 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14907 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
14908 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
14909 GCC_pop_shmedia_regs_nofpu): New global symbols.
14910 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
14911 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
14912 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
14913 compact function with nonlocal labels.
14914 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
14915 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
14916 (initial_elimination_offset): Account for their stack space.
14917 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
14918 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
14919 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
14920 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
14921 least one of the operands to be a register.
14922 (movv2sf): Likewise. Renamed to movv2sf_i.
14923 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
14924 prepare_move_operands() before emitting SHmedia insns.
14925 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
14926 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
14927 Don't save nor initialize r12. Don't mis-align the stack.
14928 Pad the code with a nop.
14929 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
14930 stack.
14931 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
14932 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
14933 [__SHMEDIA__]: Implement.
14934 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
14935 * config/sh/sh.md: Set latency of `pt' closer to reality.
14936 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
14937 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
14938 Set move, load and store type attributes.
14939 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
14940 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
14941 profiling.
14942 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
14943 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
14944 * config/sh/sh.c (sh_media_register_for_return): New function.
14945 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
14946 branch-target register.
14947 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
14948 * config/sh/sh.md (return_media_i): Use any call-clobbered
14949 branch-target register.
14950 (return_media): If r18 wasn't copied in the prologue, copy it
14951 here.
14952 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
14953 Clear class FP0_REGS.
14954 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
14955 from elf.h.
14956 2001-03-08 DJ Delorie <dj@redhat.com>
14957 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
14958 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
14959 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
14960 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
14961 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
14962 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
14963 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
14964 return value correctly for call_cookie.
14965 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
14966 * config/sh/crt1.asm (start): Modified so as to call
14967 ___setup_argv_and_call_main.
14968 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
14969 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
14970 SHmedia mode.
14971 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
14972 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
14973 (STRIP_NAME_ENCODING): Use it.
14974 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
14975 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
14976 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
14977 prepare_scc_operands().
14978 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
14979 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
14980 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
14981 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
14982 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
14983 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
14984 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
14985 used in shcompact_incoming_args.
14986 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
14987 change.
14988 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
14989 mode.
14990 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
14991 Adjust accordingly.
14992 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
14993 Simplify. Adjust. Add sanity check.
14994 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
14995 FPU_SINGLE_BIT.
14996 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
14997 TARGET_SHCOMPACT.
14998 (udivsi3, divsi3): Use them.
14999 (force_mode_for_call): New insn.
15000 (call, call_value, sibcall_value): Emit it before SHcompact
15001 calls.
15002 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
15003 * config/sh/sh.md (call, call_value, sibcall): Make sure the
15004 call cookie is non-NULL before taking its value.
15005 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
15006 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
15007 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
15008 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
15009 block.
15010 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
15011 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
15012 temporary for stack adjusts. Use MACL and MACH to pass
15013 arguments to shcompact_incoming_args.
15014 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
15015 clobber r1.
15016 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
15017 (nested_trampoline): Load static chain address into r1.
15018 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
15019 2001-01-07 Alexandre Oliva <aoliva@redhat.com
15020 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
15021 fp_arith_reg_operand().
15022 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
15023 * config/sh/sh.md (casesi): Sign-extend the first two operands,
15024 and use signed compares for them.
15025 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
15026 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
15027 ones properly aligned.
15028 (find_barrier): Account for extra alignment needed for 8-byte wide
15029 constants.
15030 (machine_dependent_reorg): Require a label for the second 4-byte
15031 constant after an 8-byte one.
15032 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
15033 change.
15034 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
15035 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
15036 last_float when switching float modes.
15037 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
15038 auto-increment for general-purpose registers.
15039 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
15040 result.
15041 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
15042 for stack adjust.
15043 * config/sh/sh.c (sh_builtin_saveregs): Support using all
15044 registers for varargs.
15045 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
15046 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
15047 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
15048 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
15049 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
15050 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
15051 call_cookie accordingly.
15052 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
15053 (SHCOMPACT_BYREF): Likewise.
15054 (SHCOMPACT_FORCE_ON_STACK): New macro.
15055 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
15056 (sh_builtin_saveregs): Likewise.
15057 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15058 shcompact_incoming_args): Use new shift values. Support
15059 sequences of consecutive and non-consecutive pushes/pops.
15060 * config/sh/sh.md (return): Don't explicitly use PR_REG.
15061 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
15062 * config/sh/sh.h (TEXT_SECTION): Define.
15063 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
15064 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
15065 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
15066 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
15067 return values on FPU-enabled SHmedia.
15068 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
15069 FPU-enabled SHmedia.
15070 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
15071 value is returned in a non-FP reg and is not returned by
15072 reference.
15073 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
15074 jump_ind.
15075 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
15076 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
15077 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
15078 quad-aligned to be passed by callee-copy reference.
15079 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
15080 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
15081 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
15082 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
15083 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
15084 copying low-numbered FP regs to r7 and r8.
15085 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
15086 FP regs to general-purpose regs only if the copy was passed on the
15087 stack.
15088 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
15089 copying FP reg to r9.
15090 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
15091 copy FP regs to general-purpose regs only in outgoing calls.
15092 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1e4e95d6 15093 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
fa5322fa
AO
15094 HOST_WIDE_INT.
15095 * config/sh/sh.h (struct sh_args): Document all fields.
15096 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
15097 passed partially on the stack should not consider making
15098 sibcalls.
15099 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
15100 stack_regs only for incoming calls. When passing FP args,
15101 make sure there are FP regs available before modifying
15102 call_cookie.
15103 (SHCOMPACT_BYREF): Pass double args in general-purpose
15104 registers by reference.
15105 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
15106 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
15107 attempt to generate sibcalls if the caller got any arguments
15108 by reference.
15109 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
15110 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
15111 to 8-byte boundaries.
15112 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
15113 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
15114 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
15115 stored in the stack.
15116 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
15117 for the offsets to have the ISA bit set.
15118 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
15119 invocation. Use beq instead of bgt to mark end of sequence of
15120 loads.
15121 (shcompact_incoming_args): Fix store of r2. Use beq instead of
15122 bgt to mark end of sequence of stores.
15123 * config/sh/sh.c (arith_operand): Don't check whether
15124 CONST_OK_FOR_J for now.
15125 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
15126 instead of long for conversion.
15127 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
15128 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
15129 before passing it to fprintf.
15130 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
15131 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
15132 Call set_fpscr before reading/writing SR.
15133 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
15134 Call set_fpscr.
15135 * config/sh/lib1funcs.asm: Add `.align 2' directives before
15136 SHmedia code.
15137 (FMOVD_WORKS): Define on SH5 with FPU.
15138 (set_fpscr): Define on SH5. Remove separate _fpscr_values
15139 setting.
15140 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
15141 _fpscr_values.
15142 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
15143 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
15144 address.
15145 (ia_main_table): Ditto.
15146 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
15147 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15148 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
15149 the definitions from sh.h.
15150 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
15151 TARGET_SH5.
15152 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
15153 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
15154 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15155 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
15156 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
15157 Increment LABEL_NUSES.
d9b3eb63 15158
fa5322fa
AO
15159 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
15160 TARGET_SH5.
15161 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
15162 defined.
15163 * config/sh/elf.h (SIZE_TYPE): Likewise.
15164 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15165 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15166 shcompact_incoming_args): Load switch table addresses using
15167 datalabel.
15168 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15169 (NO_BUILTIN_SIZE_TYPE): Define.
15170 (SIZE_TYPE): Don't define.
15171 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15172 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
15173 definition of __SH5__=32 for -m5-compact-nofpu.
15174 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
15175 ADDR_DIFF_VEC.
15176 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
15177 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
15178 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
15179 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
15180 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
15181 (INSN_LENGTH_ALIGNMENT): Likewise.
15182 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15183 * config/sh/sh.md (call, call_value, sibcall): Simplify
15184 copying of non-branch-target register.
15185 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1e4e95d6 15186 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
fa5322fa
AO
15187 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
15188 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15189 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
15190 floating-point values as structs.
15191 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
15192 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
15193 general-purpose register.
15194 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
15195 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
15196 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
15197 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
15198 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
15199 (ENCODE_SECTION_INFO): Enclose variables and constants in
15200 DATALABEL unspecs.
15201 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
15202 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
15203 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
15204 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
15205 only for LABEL_REFs. For SYMBOL_REFs, prepend
15206 SH_DATALABEL_ENCODING to the symbol name.
15207 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
15208 convert_mode().
15209 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
15210 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
15211 UNSPEC_DATALABEL.
15212 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
15213 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
15214 (DATALABEL_REF_P): Don't require CONST.
15215 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
15216 REL label.
15217 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
15218 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
15219 right.
15220 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
15221 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
15222 Use shallow_copy_rtx and PUT_MODE to change the mode of
15223 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
15224 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
15225 on SHmedia using GENERAL_REGs.
15226 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15227 bltu_media_i): Fix reversion of conditions.
15228 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
15229 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
15230 * config/sh/sh.c (output_far_jump): Save r13 in macl.
15231 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
15232 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
15233 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
15234 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
15235 (GCC_nested_trampoline): Likewise.
15236 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
15237 * config/sh/sh.c (gen_datalabel_ref): Define.
15238 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
15239 (INITIALIZE_TRAMPOLINE): Likewise.
15240 (TRAMPOLINE_ADJUST_ADDRESS): Define.
15241 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
15242 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
15243 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
15244 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
15245 (ic_invalidate): Adjust for SH5.
15246 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
15247 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
15248 _nested_trampoline.
15249 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
15250 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
15251 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
15252 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15253 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
15254 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
15255 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15256 * config/sh/sh.c (target_reg_operand): Match only target-branch
15257 registers and pseudos that aren't virtual registers.
15258 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15259 Copy operands that don't match target_reg_operand to pseudos.
15260 (call_media, call_value_media, sibcall_media): Use
15261 target_reg_operand instead of target_operand.
15262 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
d9b3eb63 15263 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
fa5322fa
AO
15264 * config/sh/sh.c (target_reg_operand): Match hardware registers
15265 other than branch-target registers.
15266 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
15267 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
15268 (fpscr_values) [SH5 == 32]: Define.
15269 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
15270 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15271 Handle function addresses coming in SUBREGs.
15272 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
15273 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15274 shcompact_return_trampoline): Use datalabel where appropriate.
15275 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
15276 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
15277 general-purpose register to copy one branch-target register to
15278 another.
15279 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15280 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
15281 SYMBOL_REFs with VOIDmode.
15282 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15283 bltu_media_i): New insns.
15284 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15285 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
15286 (INIT_CUMULATIVE_ARGS): Likewise.
15287 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
15288 * machmode.def (V16SFmode): New mode.
15289 * c-common.c (type_for_mode): Support V2SF and V16SF.
15290 * tree.c (build_common_tree_nodes_2): Likewise.
15291 * tree.h (tree_index): Likewise.
15292 * calls.c (emit_call_1): Take args_so_far. Adjust all
15293 callers. Introduce CALL_POPS_ARGS.
15294 * tm.texi (CALL_POPS_ARGS): Document.
15295 * config/sh/crt1.asm: Implement in SHmedia mode.
15296 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
15297 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
15298 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
15299 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
15300 Implement divsi and udivsi in SHmedia mode. Introduce
15301 SHcompact trampolines.
15302 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
15303 only in SHmedia64.
15304 (regno_reg_class): Rewrite.
15305 (fp_reg_names): Remove.
15306 (sh_register_names, sh_additional_register_names): New.
15307 (print_operand): Added `u'. Support SUBREGs in addresses.
15308 Add parentheses around shifted CONSTs.
15309 (output_file_start): Output .mode and .abi directives.
15310 (shiftcosts, addsubcosts, multcosts): Adjust.
15311 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
15312 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
15313 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
15314 bytes, not registers. Take into account the need for the
15315 SHcompact incoming args trampoline. Adjust all callers.
15316 (sh_expand_prologue): Take stack_regs into account. Call
15317 incoming args trampoline. Keep stack aligned as per SH5 ABI.
15318 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
15319 stack aligned as per SH5 ABI.
15320 (sh_builtin_saveregs): Support SH5 ABI.
15321 (sh_build_va_list, sh_va_start): Likewise.
15322 (initial_elimination_offset): Take alignment into account.
15323 Compute location of PR according to the SH5 stack frame.
15324 (arith_reg_operand): Reject branch-target registers.
15325 (shmedia_6bit_operand): New.
15326 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
15327 (target_reg_operand): Match DImode only. Accept SUBREGs.
15328 (target_operand): New.
15329 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
15330 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
15331 SIBCALL_REGS for SHmedia.
15332 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
15333 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
15334 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
15335 (TARGET_SWITCHES): New SH5 flags.
15336 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
15337 VALID_REGISTER_P to disable unsupported registers.
15338 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
15339 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
15340 (FUNCTION_ARG_PADDING): Define.
15341 (FASTEST_ALIGNMENT): Adjust.
15342 (SH_REGISTER_NAMES_INITIALIZER): New.
15343 (sh_register_names): Declare.
15344 (DEBUG_REGISTER_NAMES): Define.
15345 (REGISTER_NAMES): Define based on sh_register_names.
15346 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
15347 (sh_additional_register_names): Declare.
15348 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
15349 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
15350 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
15351 (REGISTER_NATURAL_MODE): Define.
15352 (FIRST_PSEUDO_REGISTER): Adjust.
15353 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
15354 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
15355 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
15356 (VECTOR_MODE_SUPPORTED_P): Define.
15357 (REG_CLASS_CONTENTS): Adjust.
15358 (SMALL_REGISTER_CLASSES): Adjust.
15359 (REG_ALLOC_ORDER): Adjust.
15360 (INDEX_REG_CLASS): Adjust.
15361 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
15362 (CONST_OK_FOR_LETTER_P): Adjust.
15363 (PREFERRED_RELOAD_CLASS): Adjust.
15364 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
15365 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
15366 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
15367 (FIRST_FP_PARM_REG): Adjust.
15368 (CALL_POPS_ARGS): Define.
15369 (FUNCTION_ARG_REGNO_P): Adjust.
15370 (struct sh_args): New fields.
15371 (GET_SH_ARG_CLASS): Adjust.
15372 (INIT_CUMULATIVE_ARGS): Adjust.
15373 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
15374 (FUNCTION_ARG_ADVANCE): Adjust.
15375 (FUNCTION_ARG): Adjust.
15376 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
15377 (FUNCTION_ARG_CALLEE_COPIES): Define.
15378 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
15379 (STRICT_ARGUMENT_NAMING): Define.
15380 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
15381 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
15382 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
15383 (SETUP_INCOMING_VARARGS): Adjust.
15384 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
15385 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
15386 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
15387 (SUBREG_OK_FOR_INDEX_P): Adjust.
15388 (EXTRA_CONSTRAINT_S): Update.
15389 (EXTRA_CONSTRAINT_T): New.
15390 (EXTRA_CONSTRAINT): Adjust.
15391 (GO_IF_LEGITIMATE_INDEX): Adjust.
15392 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
15393 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
15394 (MOVE_MAX): Adjust.
15395 (MAX_MOVE_MAX): Define.
15396 (Pmode): Adjust.
15397 (CONST_COSTS): Adjust.
15398 (REGISTER_MOVE_COST): Adjust.
15399 (BRANCH_COST): Adjust.
15400 (TEXT_SECTION_ASM_OP): Adjust.
15401 (DBX_REGISTER_NUMBER): Adjust.
15402 (ASM_OUTPUT_DOUBLE_INT): New.
15403 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
15404 (PREDICATE_CODES): Adjust.
15405 (PROMOTE_MODE): Adjust.
15406 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
15407 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
15408 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
15409 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
15410 (DR0_REG, DR2_REG, DR4_REG): Renumber.
15411 (TR0_REG, TR1_REG, TR2_REG): New.
15412 (XD0_REG): Renumber.
15413 (UNSPEC_COMPACT_ARGS): New.
15414 (type): Added pt and ptabs.
15415 (length): Default to 4 on SHmedia. Default pt length to 12
1e4e95d6 15416 and 20 on SHmedia32 and SHmedia64, respectively.
fa5322fa
AO
15417 (pt): New function unit.
15418 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
15419 Add whitespace between operands of SHmedia instructions.
15420 (movdicc): Fix.
15421 (adddi3_media, addsi3_media): Adjust constraints.
15422 (subsi3) [SHmedia]: Force operand 1 into a register.
15423 (udivsi3_i1_media, udivsi3_i4_media): New.
15424 (udivsi3): Support SHmedia.
15425 (divsi3_i1_media, divsi3_i4_media): New.
15426 (divsi3): Support SHmedia.
15427 (anddi3, iordi3, xordi3): Adjust constraints.
15428 (zero_extendhidi2, zero_extendqidi2): New.
15429 (extendsidi2, extendhidi2, extendqidi2): New.
15430 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15431 (pop_e, pop_fpul, pop_4): Likewise.
15432 (movsi_media): Support FP and BT registers.
15433 (movsi_media_nofpu): New. Adjust splits to DImode.
15434 (lduw, ldub): Renamed to zero_extend* above.
15435 (movqi_media): Fix typo.
15436 (movdi_media): Support FP and BT registers.
15437 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
15438 (movdi_const_32bit): New.
15439 (shori_media): Require immediate operand. Use `u' for output.
15440 (movdf_media, movsf_media): Simplified.
15441 (movdf_media_nofpu, movsf_media_nofpu): New.
15442 (movdf, movsf): Adjust
15443 (movv2sf, movv2sf, movv16sf): New.
15444 (beq_media, beq_media_i): Adjust constraints. Don't use
15445 scratch BT register.
15446 (bne_media, bne_media_i): Likewise.
15447 (bgt_media, bgt_media_i): Likewise.
15448 (bge_media, bge_media_i): Likewise.
15449 (bgtu_media, bgtu_media_i): Likewise.
15450 (bgeu_media, bgeu_media_i): Likewise.
15451 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15452 bunordered): Emit jump insn. Force operands to registers when
15453 needed.
15454 (jump_media, jump): Simplify.
15455 (call_compact, call_compact_rettramp): New.
15456 (call_value_compact, call_value_compact_rettramp): New.
15457 (call_media, call_value_media): Simplify.
15458 (sibcall_compact, sibcall_media): New.
15459 (call, call_value): Adjust for SHmedia and SHcompact.
15460 (sibcall, sibcall_value, untyped_call): Likewise.
15461 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
15462 (indirect_jump): Adjust for SHmedia.
15463 (casesi_jump_media): New.
15464 (nop): Re-enable for SHmedia.
15465 (call_site): Restrict to SH1.
15466 (casesi): Adjust for SHmedia.
15467 (casesi_shift_media, casesi_load_media): New.
15468 (return): Explicitly use PR register. Call return trampoline
15469 on SHcompact.
15470 (return_i): Explicitly use PR register.
15471 (shcompact_return_tramp, shcompact_return_tramp_i): New.
15472 (return_media): Adjust.
15473 (shcompact_incoming_args): New.
15474 (epilogue): Adjust.
15475 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15476 (movstrsi): Disable on SH5.
15477 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
15478 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
15479 (subsf3, subsf3_media): Likewise.
15480 (mulsf3, mulsf3_media, mac_media): Likewise.
15481 (divsf3, divsf3_media): Likewise.
15482 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
15483 (floatsisf2, fux_truncsfsi2): Likewise.
15484 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
15485 constraints.
15486 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
15487 (cmpunsf_media, cmpsf): Likewise.
15488 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
15489 (abssf2, abssf2_media): Likewise.
15490 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
15491 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
15492 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
15493 (floatsidf2, fix_truncdfsi2): Likewise.
15494 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
15495 constraints.
15496 (cmpeqdf_media, cmpgtdf_media): Likewise.
15497 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
15498 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
15499 (absdf2, absdf2_media): Likewise.
15500 (extendsfdf2, extendsfdf2_media): Likewise.
15501 (truncsfdf2, truncsfdf2_media): Likewise.
15502 * config/sh/sh64.h: New file.
15503 * config/sh/t-sh64: New file.
15504 * config/sh/shmedia.h: New file.
15505 * config/sh/ushmedia.h: New file.
15506 * config/sh/sshmedia.h: New file.
15507 * configure.in: Added sh64-*-elf.
15508 * configure: Rebuilt.
15509 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
15510 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
15511 (reg_class_from_letter): Use `b' for TARGET_REGS.
15512 (print_operand): Support `%M', `%m', `AND' and
15513 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
15514 (andcosts): Adjust for SHmedia.
15515 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
15516 Likewise.
15517 (target_reg_operand): New function.
15518 * config/sh/sh-protos.h (target_reg_operand): Declare.
15519 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
15520 FP registers on SH5.
15521 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
15522 on SH4.
15523 (TARGET_REGISTER_P): New macro.
15524 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
15525 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
15526 (EXTRA_CONSTRAINT_S): New macro.
15527 (EXTRA_CONSTRAINT): Adjust.
15528 (FLOAT_TYPE_SIZE): Define to 32.
15529 (Pmode): DImode on SHmedia.
15530 (CONST_COSTS): Adjust for SHmedia literals.
15531 (PREDICATE_CODES): Added target_reg_operand.
15532 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
15533 * config/sh/sh.md: Remove all attrs from SHmedia insns.
15534 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
15535 (cmpdi): Accept SHmedia.
15536 (movdicc_false, movdicc_true): New insns.
15537 (movdicc): New expand.
15538 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
15539 no_new_pseudos.
15540 (addsi3_media): Match `S' constraint.
15541 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
15542 (negdi2): Expand for SHmedia.
15543 (one_cmpldi2): New expand.
15544 (zero_extendsidi2): Change from expand to insn.
15545 (extendsidi2): Add constraints.
15546 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
15547 LD/ST address. Fix SI immediate loading split.
15548 (movhi_media, movqi_media, lduw, ldub): New insns.
15549 (movhi, movqi): Accept SHmedia.
15550 (shori_media, movdi_media): Relax input constraints. Split
15551 symbolic constants.
15552 (movdf_media, movsf_media): New insn. New split to movdi.
15553 (movdf, movsf): Match on SHmedia.
15554 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
15555 bgeu_media): New insns and splits. New insns with `_i' suffix.
15556 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
15557 (bunordered): New expand.
15558 (jump_compact): Renamed from `jump'.
15559 (jump_media): New insn.
15560 (jump): New expand.
15561 (call_media, call_value_media): New insns.
15562 (call, call_value): Adjust.
15563 (indirect_jump_compact): Renamed from `indirect_jump'.
15564 (indirect_jump_media): New insn.
15565 (indirect_jump): New expand.
15566 (untyped_call, return): Accept SHmedia.
15567 (return_media): New insn.
15568 (prologue, epilogue, blockage): Accept SHmedia.
15569 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15570 (sunordered): New expand.
15571 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
15572 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
15573 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
15574 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
15575 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
15576 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
15577 abssf2_media): New insns.
15578 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
15579 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
15580 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
15581 floatdidf2, floatsidf2_media, fix_truncdfdi2,
15582 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
15583 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
15584 absdf2_media): New insns.
15585 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
15586 (extendsfdf2_media, truncdfsf2_media): New insns.
15587 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
15588 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
15589 * config/sh/sh.h (CONST_OK_FOR_J): Document.
15590 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
15591 * config/sh/sh.md (adddi3): New expand.
15592 (adddi3_media, adddi3z_media): New insns.
15593 (adddi3_compact): Renamed from adddi3.
15594 (addsi3_media): Use add.l r63 to add constant zero.
15595 (subdi3): New expand.
15596 (subdi3_media): New insn.
15597 (subdi3_compact): Renamed from subdi3.
15598 (mulsidi3): New expand.
15599 (mulsidi3_media): New insn.
15600 (mulsidi3_compact): Renamed from mulsidi3.
15601 (umulsidi3): New expand.
15602 (umulsidi3_media): New insn.
15603 (umulsidi3_compact): Renamed from umulsidi3.
15604 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
15605 (ashlsi3, ashrsi3, lshrsi3): Use them.
15606 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
15607 (ashldi3, ashrdi3, lshrdi3): Use them.
15608 (zero_extendsidi2): New expand.
15609 (extendsidi2): New insn.
15610 (movsi_media): New insn. Split to movdi to load constants.
15611 (movsi): Enable for shmedia.
15612 (movdi_media): New insn. Use shori_media to load wide constants.
15613 (short_media): New insn.
15614 (movdi): Enable for shmedia.
15615 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
15616 * config/sh/sh.h (CPP_SPEC): Added `m5'.
15617 (SUBTARGET_CPP_SPEC): Added `!m5'.
15618 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
15619 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
15620 to all other SH variants.
15621 (TARGET_DEFAULT): Set to SH1_BIT.
15622 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
15623 (BITS_PER_WORD): Raise to 64 on shmedia.
15624 (MAX_BITS_PER_WORD): Change to 64.
15625 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
15626 (INT_TYPE_SIZE): Keep as 32.
15627 (UNITS_PER_WORD): Raise to 8 on shmedia.
15628 (MIN_UNITS_PER_WORD): Keep as 4.
15629 (POINTER_SIZE): Raise to 64 on shmedia.
15630 (CONST_OK_FOR_J): New macro.
15631 (CONST_OK_FOR_LETTER_P): Use it.
15632 (processor_type): Add PROCESSOR_SH5.
15633 * config/sh/sh.md: Conditionalize all expands, insns and
15634 splits to TARGET_SH1.
15635 (cpu): Added sh5.
15636 (addsi3_compact): Renamed from...
15637 (addsi3): Now an expand.
15638 (addsi3_media, subsi3_media): New insns.
15639 (subsi3): Don't negate constants with SHmedia.
15640
e4ec2cac
AO
15641 * hooks.c: New file.
15642 * hooks.h: New file.
15643 * Makefile.in (HOOKS_H): New.
15644 (TARGET_DEF_H): Added $(HOOKS_H).
15645 (OBJS): Added hooks.o.
15646 (cfgcleanup.o, bb-reorder.o): Added target.h.
15647 (hooks.o): Added dependencies.
15648 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
15649 (TARGET_INITIALIZER): this.
15650 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
15651 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
15652 * bb-reorder.c: Include target.h.
15653 (reorder_basic_blocks): Skip if cannot modify jumps.
15654 * cfgcleanup.c: Include target.h.
15655 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
15656
246a46e0
CD
156572002-02-08 Chris Demetriou <cgd@broadcom.com>
15658
831c4e87
KC
15659 * config/mips/mips.md (casesi_internal, casesi_internal_di):
15660 Protect jump delay slot instructions with .set noreorder and
15661 .set nomacro.
246a46e0
CD
15662
156632002-02-08 Chris Demetriou <cgd@broadcom.com>
6a5ea3f4
CD
15664
15665 * config/mips/mips.md (casesi_internal_di): Calculate
15666 the index into the target offset table correctly.
15667
fdf473ae
RH
156682002-02-08 Richard Henderson <rth@redhat.com>
15669
15670 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
15671 * final.c (output_addr_const): Accept and discard SUBREG.
15672 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
15673 mark them unknown instead.
15674 (simplify_subtraction): Handle RTX_UNKNOWN.
15675 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
15676
c50503ac
DE
156772002-02-08 David Edelsohn <edelsohn@gnu.org>
15678
15679 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
15680
3660d217
RH
156812002-02-08 Richard Henderson <rth@redhat.com>
15682
15683 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
15684
56547299
AJ
156852002-02-08 Andreas Jaeger <aj@suse.de>
15686
15687 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
15688 * config/i386/t-linux64: New file.
15689
1cf537c5
JJ
156902002-02-08 Jakub Jelinek <jakub@redhat.com>
15691
15692 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
15693 * c-parse.in (compstmt): Clear last_expr_type.
15694
5c7f5a5f
RH
156952002-02-07 Richard Henderson <rth@redhat.com>
15696
15697 * loop.c (strength_reduce): Sink final_value when not
15698 eliminating a biv.
15699
b1138bf3
DB
157002002-02-07 David O'Brien <obrien@FreeBSD.org>
15701
15702 * config/sparc/freebsd.h: Fix mismatched spec {.
15703
b6878a45
RH
157042002-02-07 Richard Henderson <rth@redhat.com>
15705
15706 * cfgrtl.c: Include recog.h and insn-config.h.
15707 (keep_with_call_p): Fix general_operand invocation.
15708 * Makefile.in (cfgrtl.o): Update dependencies.
15709
ae19f5ef
KH
157102002-02-07 Kazu Hirata <kazu@hxi.com>
15711
15712 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
15713 comment. Accept HImode only if TARGET_H8300.
15714
b137f9fc
EC
157152002-02-07 Eric Christopher <echristo@redhat.com>
15716
15717 * config/mips/crtn.asm: Cleanup #ifdefs.
15718
157192002-02-07 Eric Christopher <echristo@redhat.com>
15720
15721 * config/mips/crti.asm: Add changes for mips16. mips16 uses
15722 register 7 as RA instead of $31.
15723 * config/mips/crtn.asm: Ditto.
15724 * config/mips/mips.c (mips_move_2words): Add case for
15725 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
15726 (compute_frame_size): Fix typo.
15727 (save_restore_insns): Ditto. Make documentation about using
15728 register $7 as return register more precise.
15729 (mips_expand_epilogue): Fix comment. Add code to work around not
15730 being able to add to the stack pointer directly.
15731 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
15732 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
15733 epilogue.
15734
768070a0
TR
157352002-02-07 Tom Rix <trix@redhat.com>
15736
b137f9fc 15737 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
768070a0
TR
15738 immediates in ldu and stdu DS opcode field.
15739 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
15740 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
15741 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
15742
225909c3
JS
157432002-02-07 Jeff Sturm <jsturm@one-point.com>
15744
15745 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
15746 offset for stack bias.
15747
15fae023
L
157482002-02-07 H.J. Lu <hjl@gnu.org>
15749
15750 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
15751
fde5badd
UW
157522002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
15753
15754 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
15755
162f023b
JH
15756Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
15757
15758 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
15759 * i386.c (x86_order_regs_for_local_alloc): New global function.
15760 * i386.h (REG_ALLOC_ORDER): CLeanup.
15761 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
15762
9b462c42
RH
157632002-02-07 Richard Henderson <rth@redhat.com>
15764
85aa876c 15765 PR optimization/2463
9b462c42
RH
15766 * alias.c (find_base_value): Recall base values for fixed hard regs.
15767 * loop.c (loop_regs_update): Don't use single_set on non-insns.
15768
06e455a9
AO
157692002-02-07 Alexandre Oliva <aoliva@redhat.com>
15770
15771 * config/mips/mips.md (define_delay) [mips16]: Adjust required
15772 length.
15773
edd1967d
RH
157742002-02-06 Richard Henderson <rth@redhat.com>
15775
15776 PR c/5609
15777 * stmt.c (resolve_operand_name_1): Take more care with mixed
15778 named and unnamed operands.
15779
a2cd028f
JJ
157802002-02-06 Janis Johnson <janis187@us.ibm.com>
15781 Jan Hubicka <jh@suse.cz>
15782
15783 * loop.c (remove_constant_addition): Avoid clobbering a shared
15784 CONST expression.
15785
e8487c04
UW
157862002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15787
15788 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
15789 * config/s390/t-linux64: New file.
15790 * config/s390/libgcc-glibc.ver: New file.
15791
58d10f89
UW
157922002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15793
15794 * config/s390/linux64.h: Delete file.
15795 * config/s390/s390x.h: New file.
15796 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
15797 as target header file.
15798 * config/s390/linux.h (TARGET_VERSION): Define depending on
15799 DEFAULT_TARGET_64BIT.
15800 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
15801 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
15802 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
15803 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
15804 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
15805 (EXTRA_SPEC): New define.
15806 * config/s390/s390.h (TARGET_VERSION): Define depending on
15807 DEFAULT_TARGET_64BIT.
15808 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
15809
5ce89b2e
JM
158102002-02-06 Jason Merrill <jason@redhat.com>
15811
15812 * c-decl.c (finish_function): Warn about a non-void function with
15813 no return statement and no abnormal exit.
15814 (current_function_returns_abnormally): New variable.
15815 (start_function): Clear it.
15816 (struct c_language_function): Add returns_abnormally.
15817 (push_c_function_context): Save it.
15818 (pop_c_function_context): Restore it.
15819 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
15820 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
15821 an explicit return type.
15822 * c-tree.h: Declare current_function_returns_abnormally.
15823 (C_FUNCTION_IMPLICIT_INT): New macro.
15824 * c-typeck.c (build_function_call): Set it.
15825 (c_expand_return): Set current_function_returns_value even if the
15826 value is erroneous.
15827
caaf2272
JJ
158282002-02-06 Jakub Jelinek <jakub@redhat.com>
15829
15830 PR c/5420:
15831 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
15832 unsafe for reevaluation.
15833
d5129288
JJ
158342002-02-06 Jakub Jelinek <jakub@redhat.com>
15835
15836 PR c/5482:
15837 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
15838 EXPR_STMT, but COMPOUND_STMT, recurse into it.
15839
7fb75099
RH
158402002-02-06 Richard Henderson <rth@redhat.com>
15841
15842 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
15843 be a general_operand. Dest for function value must be a pseudo.
15844
d3a8b6a6
NC
158452002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
15846
15847 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
15848 as SYMBOL_REFs from the constant pool.
15849
3c1299c5
AO
158502002-02-06 Alexandre Oliva <aoliva@redhat.com>
15851
15852 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
15853 passed by invisible reference.
15854
c2c9f6c9
RH
158552002-02-05 Richard Henderson <rth@redhat.com>
15856
15857 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
15858
a824924d
HPN
158592002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
15860
15861 Implement using "base addresses" in insn operands as default.
15862 * config/mmix/mmix.c (mmix_conditional_register_usage): if
15863 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
15864 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
15865 used to read the rtx value.
15866 (mmix_target_asm_function_epilogue): Fix spacing.
15867 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
15868 (mmix_legitimate_address): Ditto.
15869 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
15870 should be loaded with a GETA insn. Don't allocate needless extra
15871 char for nul termination and fix misleading comment.
15872 (mmix_print_operand_address): Handle constants if
15873 TARGET_BASE_ADDRESSES.
15874 (mmix_output_register_setting): Use base addressing if
15875 TARGET_BASE_ADDRESSES and the number of insns is 3.
15876 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
15877 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
15878 to use R as constraint, add LDA to match s.
15879 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
15880 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
15881 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
15882 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
15883 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
15884 order with other fixed registers.
15885 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
15886 other parameter/call-clobbered registers.
15887 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
15888 -mbase-addresses, -mno-base-addresses.
15889 (MMIX Options): Ditto.
15890
73c342b9
JDA
158912002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
15892
15893 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
15894
ef238c58
AH
158952002-02-06 Aldy Hernandez <aldyh@redhat.com>
15896
831c4e87 15897 * config/rs6000/altivec.h: Change elem to _S_elem.
ef238c58 15898
ad08e60e
JT
158992002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15900
15901 * config/netbsd.h (WCHAR_TYPE): Define.
15902 (WCHAR_TYPE_SIZE): Ditto.
15903 (WINT_TYPE): Ditto.
15904 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
15905 (WCHAR_UNSIGNED): Ditto.
15906 (WCHAR_TYPE_SIZE): Ditto.
15907 (WINT_TYPE): Ditto.
15908 * config/arm/netbsd.h: Likewise.
15909 * config/i386/netbsd-elf.h: Likewise.
15910 * config/i386/netbsd.h: Likewise.
15911 * config/m68k/netbsd-elf.h: Likewise.
15912 * config/m68k/netbsd.h: Likewise.
15913 * config/ns32k/netbsd.h: Likewise.
15914 * config/sparc/netbsd.h: Likewise.
15915 * config/vax/netbsd.: Likewise.
15916
f913c102
AO
159172002-02-05 Alexandre Oliva <aoliva@redhat.com>
15918
15919 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
15920 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
15921 (TARGET_INITIALIZER): this.
15922 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
15923 (BITFIELD_NBYTES_LIMITED): Markup fix.
15924 * tree.h (default_ms_bitfield_layout_p): Declare.
15925 (record_layout_info): Added prev_field.
15926 * tree.c (default_ms_bitfield_layout_p): New fn.
15927 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
15928 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
15929 * stor-layout.c: Include target.h.
15930 (start_record_layout): Initialize prev_field.
15931 (place_field): Handle MS bit-field layout, and disregard
15932 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
15933 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
15934 * Makefile.in (stor-layout.o): Adjust dependencies.
15935
c13db5d1
JM
159362002-02-05 Jason Merrill <jason@redhat.com>
15937
c13db5d1
JM
15938 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
15939
4505024e
AJ
159402002-02-05 Andreas Jaeger <aj@suse.de>
15941
15942 * crtstuff.c: Fix comments.
15943
794ad79d
RH
159442002-02-05 Richard Henderson <rth@redhat.com>
15945
2e279a9b
RH
15946 PR fortran/3393
15947 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
15948 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
15949
794ad79d
RH
15950 PR fortran/3392
15951 * config/mips/mips.c (function_arg): Handle TImode.
15952 (function_arg_advance): Likewise.
15953
8f909017
AH
159542002-02-05 Aldy Hernandez <aldyh@redhat.com>
15955
c13db5d1
JM
15956 * config/rs6000/altivec.h (vec_step_help): Rename to
15957 __vec_step_help.
8f909017 15958
66daa9e3
AH
159592002-02-05 Aldy Hernandez <aldyh@redhat.com>
15960
c13db5d1 15961 * config/rs6000/altivec.h: Fix typos.
66daa9e3 15962
2696e97b
JT
159632002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15964
15965 * config/arm/netbsd.h: Correct a comment.
15966
3deb2758
AH
159672002-02-05 Aldy Hernandez <aldyh@redhat.com>
15968
c13db5d1
JM
15969 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
15970 building void typed builtins.
3deb2758 15971
c13db5d1
JM
15972 * config/rs6000/altivec.h (vec_ld*): Fix typos.
15973 (vec_step): Implement for C++.
3deb2758 15974
c13db5d1 15975Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2c79137a
RK
15976
15977 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
15978
ebbb0a63
RH
159792002-02-04 Richard Henderson <rth@redhat.com>
15980
15981 * combine.c (nonzero_bits): Re-introduce special case for
15982 sp/fp/ap wrt REGNO_POINTER_ALIGN.
15983
ae4b4a02
AH
159842002-02-05 Aldy Hernandez <aldyh@redhat.com>
15985
c13db5d1
JM
15986 * doc/extend.texi: Warn about unsupported usage of altivec
15987 builtins.
ae4b4a02 15988
c13db5d1
JM
15989 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
15990 (altivec_predicate_*): New.
ae4b4a02 15991
c13db5d1
JM
15992 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
15993 Add C++ version of vec_*() functions.
ae4b4a02 15994
c13db5d1
JM
15995 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
15996 (bdesc_2arg): Remove altivec predicates.
15997 (altivec_expand_builtin): Handle predicates.
15998 (altivec_init_builtins): Handle predicates.
15999 (altivec_expand_predicate_builtin): New.
ae4b4a02 16000
f6bcf44c
JDA
160012002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16002
16003 * pa.c (DO_FRAME_NOTES): Move forward.
16004 (store_reg): Revise handling of frame notes.
16005 (load_reg): Likewise.
16006 (set_reg_plus_d): Likewise.
16007 (hppa_expand_prologue): Likewise.
16008 (hppa_expand_epilogue): Likewise.
b137f9fc 16009
703b0080
JDA
160102002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16011
16012 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
16013
6f9fdf4d
JJ
160142002-02-04 Jakub Jelinek <jakub@redhat.com>
16015
16016 PR c/4475, c++/3780:
16017 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
16018 * c-common.h (SWITCH_TYPE): Define.
16019 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
16020 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
16021 Rename spareness variable to sparseness.
16022 (expand_end_case_type): Renamed from expand_end_case, use orig_type
16023 if non-NULL instead of TREE_TYPE (orig_index).
16024 * tree.h (expand_end_case_type): Renamed from expand_end_case.
16025 (expand_end_case): Define using expand_end_case_type.
16026 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
16027 to expand_end_case_type.
16028 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
16029
79109502
JDA
160302002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16031
16032 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
16033 (BIGGEST_ALIGNMENT): Change to 128.
16034
e62a5987
JDA
160352002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16036
16037 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
16038
219f24a4
JDA
160392002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16040
16041 * pa.md (call_internal_reg_64bit): Remove unused variable.
16042
3cb66fd7
NC
160432002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
16044
16045 * config/arm/arm.h (machine_function): Add uses_anonymous_args
16046 field.
831c4e87 16047 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3cb66fd7 16048 * config/arm/arm.c (current_function_anonymous_args): Delete,
831c4e87
KC
16049 replace uses with cfun->machine->uses_anonymous_args.
16050 (arm_reorg): Do not reset uses_anonymous_args.
3cb66fd7
NC
16051
16052 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
16053 any geenral register.
b137f9fc 16054
5d5603e2 160552001-02-04 Bernd Schmidt <bernds@redhat.com>s
24c545ff
BS
16056
16057 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
16058 the entry block.
16059
563c12b0
RH
160602002-02-04 Richard Henderson <rth@redhat.com>
16061
16062 * combine.c (force_to_mode): Remove STACK_BIAS code.
16063 (nonzero_bits): Likewise. Replace sp/fp special case with
16064 REGNO_POINTER_ALIGN.
16065
16066 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
16067 (HARD_FRAME_POINTER_REGNUM): New.
16068 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
16069 (FIXED_REGS, CALL_USED_REGS): Update.
16070 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
16071 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
16072 (HARD_REGNO_NREGS): Update for SFP.
16073 (STACK_POINTER_OFFSET): Include bias here ...
16074 (FIRST_PARM_OFFSET): ... not here.
16075 (STACK_BIAS): Remove.
16076 (INIT_EXPANDERS): New.
16077 (STARTING_FRAME_OFFSET): Do not include bias.
16078 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
16079 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
16080 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
16081 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
16082 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
16083 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
16084 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
16085 (MUST_SAVE_REGISTER): Likewise.
16086 (sparc_flat_function_prologue): Likewise.
16087 (sparc_flat_function_epilogue): Likewise.
16088 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
16089 (sparc_init_modes): SFP is GENERAL_REGS.
16090 (sparc_builtin_saveregs): SFP does not have bias applied.
16091
14691f8d
RH
160922002-02-04 Richard Henderson <rth@redhat.com>
16093
16094 * config/alpha/alpha.c (current_function_is_thunk): Don't check
16095 current_function_is_thunk.
16096 (alpha_sa_mask): Distinguish between current_function_is_thunk
16097 called from ASM_OUTPUT_MI_THUNK and not.
16098 (alpha_does_function_need_gp): Thunks always need gp.
16099 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16100 (alpha_output_mi_thunk_osf): New.
16101 * config/alpha/alpha-protos.h: Update.
16102 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
16103
af702de8
RS
161042002-02-04 Richard Sandiford <rsandifo@redhat.com>
16105
16106 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
16107 function types, not when they're taken away.
16108
5b1cacd8
JL
16109Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
16110
16111 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
16112 CODE_LABEL and jump table when replacing a table jump with a
16113 simple jump.
16114
f3e9edff
UW
161152002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16116
16117 * config/s390/s390-protos.h (legitimize_la_operand,
16118 s390_secondary_input_reload_class, s390_plus_operand,
16119 s390_expand_plus_operand): Add prototypes.
16120
16121 config/s390/s390.c (s390_secondary_input_reload_class,
16122 s390_plus_operand, s390_expand_plus_operand): New functions.
16123
16124 (struct s390_address): New member 'pointer'.
16125 (s390_decompose_address): Compute it.
16126 (legitimate_la_operand_p): Use it.
16127 (legitimize_la_operand): New function.
16128 (movti, movdi, movdf splitters): Call it.
16129
16130 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
16131 (PREDICATE_CODES): Add s390_plus_operand.
16132
16133 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
16134 (la_ccclobber): Allow GENERAL_REGS as output operand.
16135
16136 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
16137 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
16138 (*la_64, *la_31, reload_indi, reload_insi): ... these.
16139
3c9a08ec
UW
161402002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16141
16142 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
16143 register names for regular asm () construct.
16144
ac300a45
JJ
161452002-02-04 Jakub Jelinek <jakub@redhat.com>
16146
16147 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
16148 registers.
16149
fa852403
JJ
161502002-02-04 Jakub Jelinek <jakub@redhat.com>
16151
16152 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
16153 pat for recog.
16154
fecaac37
HP
161552002-02-04 Hartmut Penner <hpenner@de.ibm.com>
16156
831c4e87
KC
16157 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
16158 constant pool to be identical by string address and index.
fecaac37 16159
10c45943
AG
161602002-02-04 Anthony Green <green@redhat.com>
16161
16162 * output.h (SECTION_OVERRIDE): Define.
16163 * varasm.c (named_section): Obey SECTION_OVERRIDE.
16164
69474c3c
JT
161652002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
16166
16167 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
16168 by existing arm*-*-netbsd* (a.out) target.
16169 (ns32k-*-netbsdelf*): Likewise.
16170 (sparc-*-netbsdelf*): Likewise.
16171 (vax-*-netbsdelf*): Likewise.
16172
939a46f6 161732002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3b56934f
CF
16174
16175 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
16176 headers and libobjc headers.
16177
161782002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
16179
16180 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
16181 (_mingw.h): Remove duplicate include.
16182
2fd95d71
JT
161832002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
16184
16185 * config.gcc: Set cpu_type to m68k for 68010, as well.
16186 (m68010-*-netbsdelf*): New...
16187 (m68k*-*-netbsdelf*): ...targets.
16188 * config/m68k/netbsd-elf.h: New file.
16189
0ea6f6a0
KH
161902002-02-02 Kazu Hirata <kazu@hxi.com>
16191
16192 * config/h8300/h8300.c (hand_list): Move inside function_arg.
16193
cbf1b2da
KH
161942002-02-02 Kazu Hirata <kazu@hxi.com>
16195
16196 * config/h8300/h8300.c (h8_push_ops): Move inside
16197 h8300_init_once.
16198 (h8_pop_ops): Likewise.
16199 (h8_move_ops): Likewise.
16200
0869f126
KH
162012002-02-02 Kazu Hirata <kazu@hxi.com>
16202
16203 * config/h8300/h8300.c (os_task): Make it static.
16204 (monitor): Likewise.
16205 (pragma_saveall): Likewise.
16206
90e65b70
AO
162072002-02-02 Alexandre Oliva <aoliva@redhat.com>
16208
16209 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
16210 constant is a valid sign-extension for Pmode.
16211
9cbcd983
KH
162122002-02-02 Kazu Hirata <kazu@hxi.com>
16213
16214 * config/h8300/h8300.c: Fix formatting.
16215
7a27efc4
KH
162162002-02-02 Kazu Hirata <kazu@hxi.com>
16217
16218 * config/h8300/h8300.md: Fix formatting.
16219
54175a44
KH
162202002-02-02 Kazu Hirata <kazu@hxi.com>
16221
16222 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
16223 predicates of operands[1]. Split the patterns for each
16224 processor variant.
16225
eceb1755
KH
162262002-02-02 Kazu Hirata <kazu@hxi.com>
16227
16228 * config/h8300/h8300.md (xor patterns): Tighten the predicates
16229 of operands[1] to register_operand.
16230
0fef3fd0
NB
162312002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
16232
16233 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
16234 * cpphash.c (_cpp_init_hashtable): Similarly.
16235 * cppinit.c (cpp_create_reader): Default the signed_char flag.
16236 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
16237 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
16238 (cpp_handle_option): Handle the new options.
16239 * cpplex.c (cpp_interpret_charconst): Use new flag.
16240 * cpplib.h (struct cpp_options): New member signed_char.
16241 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
16242 (cpp_options): Handle -fsigned-char and -funsigned-char.
16243 (static_specs): Remove signed_char_spec.
16244 (do_spec1): Don't handle %c.
16245 * system.h: Poison SIGNED_CHAR_SPEC.
16246 * tradcif.y (yylex): Use flag_signed_char.
16247 * tradcpp.h (flag_signed_char): New.
16248 * tradcpp.c (flag_signed_char): New.
16249 (main): Handle new command-line options.
16250 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
16251config:
16252 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
16253 * avr/avr.h: Remove old comments.
16254 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
16255 (CC1_SPEC): Pass -fsigned-char if -mic*.
16256 (SIGNED_CHAR_SPEC): Remove.
16257doc:
16258 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
16259
0617ed52
EC
162602002-02-01 Eric Christopher <echristo@redhat.com>
16261
16262 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
16263 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
16264 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
16265 (ASM_OUTPUT_REG_POP): Ditto.
16266
dfd48d76
NB
162672002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
16268
16269 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
16270 patch.
16271
4a23409e
JJ
162722002-02-02 Jakub Jelinek <jakub@redhat.com>
16273
16274 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
16275
d3c52658
JJ
162762002-02-02 Jakub Jelinek <jakub@redhat.com>
16277
16278 PR c/5304:
16279 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
16280 unconditionally.
16281
02c5a3bd
JJ
162822002-02-01 Janis Johnson <janis187@us.ibm.com>
16283
16284 * cfganal.c: Include tm_p.h.
16285 (keep_with_call_p): Fix the test that determines if a register holds
16286 the return value of a call.
16287
3968de80
DD
162882002-02-01 DJ Delorie <dj@redhat.com>
16289
16290 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
16291 we are given conflicting registers, switch to the other one we
16292 had allocated for us.
16293 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
16294 as TImode so we know when the "other" register is available.
16295
1338ea6c
DB
162962002-02-01 David O'Brien <obrien@FreeBSD.org>
16297
16298 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
16299 sparc/sparc_bi.h.
16300
f015be23
JJ
163012002-02-01 Janis Johnson <janis187@us.ibm.com>
16302
16303 * cfganal.c (keep_with_call_p): New function.
16304 (flow_call_edges_add): Prevent splitting a block between a call and
16305 a single-set instruction that should be kept in the same block.
16306
63708ffc
CR
163072002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
16308
16309 * doc/install.texi (avr): Update outdated URL.
16310
5ee4950e
AH
163112002-01-30 Andrew Haley <aph@cambridge.redhat.com>
16312
831c4e87
KC
16313 * config/stormy16/stormy16.md (pushqi): New.
16314 (popqi): New.
16315 (pushhi): New.
16316 (pophi): New.
16317 (movhi): Remove stack operands.
16318 (movqi): Likewise.
16319 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
16320 nonimmediate_nonstack_operand.
16321 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
16322 New.
16323 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
16324 New.
5ee4950e 16325
b88c0704
JM
163262002-01-31 Jason Merrill <jason@redhat.com>
16327
16328 * Makefile.in (c-parse.c): Handle .output file.
16329 * objc/Make-lang.in (objc-parse.c): Likewise.
16330
ac282977
AO
163312002-02-01 Alexandre Oliva <aoliva@redhat.com>
16332
16333 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
16334 the -me[lb] option is given. Don't output the default flag
16335 twice.
16336
bebc7e8b
ZW
163372002-01-31 Zack Weinberg <zack@codesourcery.com>
16338
16339 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
16340 the primary source file; this has not been done yet.
16341 * c-decl.c (c_expand_body): Reset input_filename from
16342 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
16343
5809eb5f
KH
163442002-01-31 Kazu Hirata <kazu@hxi.com>
16345
16346 * rtlanal.c (subreg_regno_offset): Do not use
16347 SUBREG_REGNO_OFFSET.
16348 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
16349 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
16350
8512bbd7
JM
163512002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16352
16353 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
16354 version rather than GNATS version in --version output.
16355
74cb3cc8
RS
163562002-01-31 Richard Sandiford <rsandifo@redhat.com>
16357
16358 * ifcvt.c (noce_process_if_block): Make a copy of the destination
16359 when copying back from a temporary.
16360
874b5b14
RH
163612002-01-30 Richard Henderson <rth@redhat.com>
16362
16363 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
16364 and new_dest are the same.
16365
e803a64b
RH
163662002-01-30 Richard Henderson <rth@redhat.com>
16367
89cf7be5 16368 PR opt/5076
e803a64b
RH
16369 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
16370 * rtl.c (note_insn_name): Update.
16371 * emit-rtl.c (remove_unnecessary_notes): Kill it.
16372 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
16373 to perform loop rotation.
16374 (expand_exit_loop_top_cond): New.
16375 * tree.h (expand_exit_loop_top_cond): Declare it.
16376 * c-semantics.c (genrtl_while_stmt): Use it.
16377 (genrtl_for_stmt): Likewise.
16378
0b51254d
AO
163792002-01-30 Alexandre Oliva <aoliva@redhat.com>
16380
16381 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
16382 arguments to 64-bit boundaries on 64-bit ABIs.
16383
71cef493
SE
163842002-01-30 Steve Ellcey <sje@cup.hp.com>
16385
16386 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
16387
6169e5fd
JM
163882002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16389
16390 * c-decl.c (grokdeclarator): Handle type being a typedef for an
16391 invalid type.
16392
86f808dc
DB
163932002-01-30 David O'Brien <obrien@FreeBSD.org>
16394
16395 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
16396 * config/sparc/sparc_bi.h: Remove file.
16397 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
16398
5748ebeb
RH
163992002-01-30 Richard Henderson <rth@redhat.com>
16400
16401 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
16402
20d32cc2
ZW
164032002-01-30 Zack Weinberg <zack@codesourcery.com>
16404
16405 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
16406
b88c0704 164072002-01-30 Jason Merrill <jason@redhat.com>
6bb28965
JM
16408
16409 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
16410 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
16411 (reg_save): Use DW_CFA_offset_extended_sf instead.
16412
16413 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
16414
37060e78
JJ
164152002-01-29 Jakub Jelinek <jakub@redhat.com>
16416
16417 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16418 in cselib_lookup.
16419
d18dba68
AH
164202002-01-29 Aldy Hernandez <aldyh@redhat.com>
16421
bebc7e8b
ZW
16422 * rs6000.md ("*call_value_local32"): Remove constraints.
16423 ("*call_value_local64"): Same.
16424 ("*call_value_indirect_nonlocal_aix32"): Same.
16425 ("*call_value_nonlocal_aix32"): Same.
16426 ("*call_value_indirect_nonlocal_aix64"): Same.
16427 ("*call_value_nonlocal_aix64"): Same.
16428 ("*call_value_nonlocal_sysv"): Same.
d18dba68 16429
80a8aac6
RH
164302002-01-29 Richard Henderson <rth@redhat.com>
16431
16432 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16433
12beba6f
RH
164342002-01-29 Richard Henderson <rth@redhat.com>
16435
16436 * expr.c (force_operand): Ignore flag_pic for detecting pic
16437 address loads.
16438 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16439 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16440 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16441 instead of open-coded loop.
16442 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16443 be fixed when in use.
16444
2583081e
RH
164452002-01-29 Richard Henderson <rth@redhat.com>
16446
16447 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16448 * sched-rgn.c (propagate_deps): Update them.
16449 * sched-deps.c (sched_analyze_insn): Update them. Flush the
16450 clobbers list when either gets too long.
16451
3b8d200e
JJ
164522002-01-29 Jakub Jelinek <jakub@redhat.com>
16453
16454 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16455 and INDEX_REGS the same as GENERAL_REGS.
16456 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16457
2d3115eb
NB
164582002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16459
bebc7e8b 16460 * tree.c (build_nonstandard_integer_type): Correct prototype.
2d3115eb 16461
ecbe845e
UW
164622002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
16463
bebc7e8b 16464 * config/s390/s390.md (movstrsico, movstrdix_64,
ecbe845e 16465 movstrsix_31): Remove, replace by ...
bebc7e8b 16466 (movstrdi_short, movstrsi_short, movstrdi_long,
ecbe845e
UW
16467 movstrsi_long): ... these. New.
16468 (movstrdi, movstrsi): Adapt.
16469
16470 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
bebc7e8b 16471 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
ecbe845e
UW
16472 Remove unnecessary CC clobber.
16473 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
16474 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
16475
16476 (divmoddi4): Don't partially initialize TImode register.
16477
0b32fca5
GK
164782002-01-29 Geoffrey Keating <geoffk@redhat.com>
16479
16480 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
16481
08ef5437
RH
164822002-01-29 Richard Henderson <rth@redhat.com>
16483
16484 * flow.c (print_rtl_and_abort): Remove.
16485 (print_rtl_and_abort_fcn): Remove.
16486 (verify_local_live_at_start): Use dump_bb instead.
16487 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
16488 (verify_wide_reg_1): Return 2 on mode test failure.
16489
8469e54e
NB
164902002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16491
16492 PR c/3325, c/3326, c/2511, c/3347
16493 * c-decl.c (enum_decl_context): Remove BITFIELD.
16494 (grokdeclarator): Take bitfield width as an input.
16495 Ensure bitfields are given the correct type. Perform
16496 bitfield width validation with build_bitfield_integer_type
16497 rather than waiting for finish_struct.
16498 (grok_typename, grok_typename_in_parm_context, start_decl,
16499 push_parmdecl, grokfield, start_function): Update calls to
16500 grokdeclarator.
16501 (build_bitfield_integer_type): New function.
16502 (finish_struct): Move bitfield validation to grokdeclarator
bebc7e8b 16503 and build_bitfield_integer_type.
8469e54e
NB
16504 * tree.c (build_nonstandard_integer_type): New function.
16505 * tree.h (build_nonstandard_integer_type): New prototype.
16506objc:
16507 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
16508
ffdeea47
JJ
165092002-01-29 Jakub Jelinek <jakub@redhat.com>
16510
16511 PR other/1502:
16512 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
16513 don't ignore unrecognized -W* options.
16514 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
16515 * cpplib.h (cpp_handle_option): Adjust prototype.
16516 * c-decl.c (c_decode_options): Pass 0 as last argument to
16517 cpp_handle_option.
16518
16519 PR c/2896:
16520 * gcc.c (cpp_unique_options): Split from cpp_options.
16521 (cpp_options): Source cpp_unique_options.
16522 (default_compilers): Use cpp_unique_options instead of cpp_options
16523 when used together with cc1_options.
16524 (static_specs): Add cpp_unique_options.
16525 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
16526 when used together with cc1_options.
16527
1a275226
KH
165282002-01-29 Kazu Hirata <kazu@hxi.com>
16529
16530 * config/h8300/h8300-protos.h: Update the prototype of
16531 output_a_shift.
16532 * config/h8300/h8300.c (output_a_shift): Remove an unused
16533 argument 'insn'. Remove redundant code.
16534 * config/h8300/h8300.md: Adust to the new prototype of
16535 output_a_shift.
16536
a11d9dfc
KH
165372002-01-29 Kazu Hirata <kazu@hxi.com>
16538
16539 * config/h8300/h8300-protos.h: Update the prototypes of
16540 emit_a_rotate and expand_a_rotate.
16541 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
16542 first argument to 'enum rtx_code'.
16543 (expand_a_rotate): Likewise.
16544
871f73e3
KH
165452002-01-28 Kazu Hirata <kazu@hxi.com>
16546
16547 * config/h8300/h8300-protos.h: Update the prototype of
16548 output_simode_bld.
16549 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
16550 'log2'.
16551 * config/h8300/h8300.md: Adjust to the new prototype.
16552
5fc4b751
KH
165532002-01-28 Kazu Hirata <kazu@hxi.com>
16554
16555 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
16556 redundant code.
16557
2d67bd7b
JDA
165582002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
16559
16560 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
16561 is a fixed register before returning pic_offset_table_rtx.
16562 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
16563 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
16564
5a852b3e
JM
165652002-01-28 Jason Merrill <jason@redhat.com>
16566
6bb28965 16567 * dwarf2.h: Sync with src version.
5a852b3e 16568
3bca17dd
PK
165692002-01-28 Paul Koning <pkoning@equallogic.com>
16570
16571 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
16572 BT_FN_VOID_PTR_VAR.
16573 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
16574 * doc/extend.texi (__builtin_prefetch): Update documentation:
16575 first argument is now const void ptr.
16576
7dc3f8c0
KH
165772002-01-28 Kazu Hirata <kazu@hxi.com>
16578
16579 * config/h8300/h8300-protos.h: Remove an unused prototype.
16580
e83cb5f0
RZ
165812002-01-28 Roman Zippel <zippel@linux-m68k.org>
16582
16583 * toplev.c (lang_independent_init): Round up identifier size.
16584
5721cd84
RE
165852002-01-28 Richard Earnshaw <rearnsha@arm.com>
16586
16587 * config.gcc: Revert previous change.
16588
d534119e
AP
165892002-01-28 Andris Pavenis <pavenis@latnet.lv>
16590
16591 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
16592
5a721dab
RE
165932002-01-28 Richard Earnshaw <rearnsha@arm.com>
16594
16595 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
16596 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
16597 other non-elf netbsd config frags.
16598 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
16599 collect2 will does that.
16600 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
16601 shared-lib frobbing will work.
16602
da1775d6
KH
166032002-01-28 Kazu Hirata <kazu@hxi.com>
16604
16605 * config/h8300/h8300.h: Fix formatting.
16606 * config/h8300/h8300.md: Likewise.
16607
8f2e963b
LR
166082002-01-28 Loren J. Rittle <ljrittle@acm.org>
16609
16610 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
16611 the old, removed AAA_standards fix.
16612 * fixinc/fixincl.x: Rebuilt.
16613
fdae5767
HPN
166142002-01-28 Hans-Peter Nilsson <hp@axis.com>
16615
16616 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
16617 atexit call in crtbegin, hooked in after call to frame_dummy;
16618 register EH before registering __fini__start.
16619
2a2ecb63
AH
166202002-01-28 Aldy Hernandez <aldyh@redhat.com>
16621
16622 * config/rs6000/altivec.h: Remove spurious semicolons.
16623
8ed43adf
KH
166242002-01-27 Kazu Hirata <kazu@hxi.com>
16625
16626 * config/h8300/h8300.md: Replace dead bit extraction patterns
16627 with ones that work.
16628
917afb0c
RK
16629Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16630
16631 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
16632 if not STRICT_ALIGNMENT.
16633 * rtl.h (MEM_ALIGN): Likewise.
16634
f70a54cb
CR
166352002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
16636
16637 * doc/invoke.texi (-fdump-translation-unit): Revert this
16638 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
16639
d8fd4914
KH
166402002-01-27 Kazu Hirata <kazu@hxi.com>
16641
16642 * config/h8300/h8300.md (define_constants): New.
16643 (anonymous patterns) Use defined constants appropriately.
16644
15e0e275
KH
166452002-01-27 Kazu Hirata <kazu@hxi.com>
16646
16647 * config/h8300/h8300.c (function_arg): Remove redundant code.
16648
37a0f8a5
RH
166492002-01-26 Richard Henderson <rth@redhat.com>
16650
16651 * sched-deps.c (reg_pending_uses_head): New.
16652 (reg_pending_barrier): Rename from reg_pending_sets_all.
16653 (find_insn_list): Don't mark inline.
16654 (find_insn_mem_list): Remove.
16655 (add_dependence_list, add_dependence_list_and_free): New.
16656 (flush_pending_lists): Replace only_write param with separate
16657 for_read and for_write parameters. Update all callers. Use
16658 add_dependence_list_and_free.
16659 (sched_analyze_1): Do not add reg dependencies here; just set
16660 the pending bits. Use add_dependence_list.
16661 (sched_analyze_2): Likewise.
16662 (sched_analyze_insn): Replace schedule_barrier_found with
16663 reg_pending_barrier. Add all dependencies for pending reg
16664 uses, sets, and clobbers.
16665 (sched_analyze): Don't add reg dependencies for calls, just
16666 set pending bits. Use regs_invalidated_by_call. Treat
16667 sched_before_next_call as a normal list, not a fake insn.
16668 (init_deps): No funny init for sched_before_next_call.
16669 (free_deps): Free pending mems lists. Don't zero reg_last.
16670 (init_deps_global): Init reg_pending_uses.
16671 (finish_deps_global): Free it.
16672 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
16673 (find_insn_mem_list): Remove.
16674 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
16675 (propagate_deps): Use them. Zero temp mem lists.
16676
cea3bd3e
RH
166772002-01-26 Richard Henderson <rth@redhat.com>
16678
16679 * Makefile.in (CRTSTUFF_CFLAGS): New.
16680 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
16681 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
16682 crtstuff.c instead of alpha assembly version.
16683 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
16684 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
16685 not FORCE_{INIT,FINI}_SECTION_ALIGN.
16686 (__do_global_dtors_aux): Mark used.
16687 (frame_dummy, __do_global_ctors_aux): Mark used.
16688 (fini_dummy, init_dummy): Remove.
16689
16690 * config/alpha/crtbegin.asm: Remove file.
16691 * config/alpha/crtend.asm: Remove file.
16692 * config/alpha/t-crtbe: Remove file.
16693 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
16694 (LINK_EH_SPEC): New.
16695
16696 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
16697 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
16698 calling constructors.
16699 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
16700
16701 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
16702 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
16703 CRT_END_INIT_DUMMY hack.
16704 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
16705 FORCE_{INIT,FINI}_SECTION_ALIGN.
16706
16707 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
16708 FORCE_{INIT,FINI}_SECTION_ALIGN.
16709
16710 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
16711 invocation sequence.
16712 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
16713
16714 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
16715 (FORCE_CODE_SECTION_ALIGN): New.
16716
60ffa0e5
RH
167172002-01-26 Richard Henderson <rth@redhat.com>
16718
16719 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
16720
61334ebe
RH
167212002-01-26 Richard Henderson <rth@redhat.com>
16722
16723 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
16724 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
16725
1d788fb6
KH
167262002-01-26 Kazu Hirata <kazu@hxi.com>
16727
16728 * config/h8300/h8300.md: Remove bit extraction patterns that
16729 cannot be triggered.
16730 Restrict each bit extraction pattern to a variant on which the
16731 pattern is tested.
16732
87611f88
JM
167332002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
16734
16735 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
16736
cd74ec59
KH
167372002-01-26 Kazu Hirata <kazu@hxi.com>
16738
16739 * config/h8300/h8300.md: Remove bit test patterns that cannot
16740 be triggered.
16741 Restrict each bit test pattern to a variant on which the
16742 pattern is tested.
16743
93051e0f
KG
167442002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16745
16746 * builtins.c (expand_builtin_strncat): Remove redundant check for
16747 INTEGER_CST.
16748
216c995f
DB
167492002-01-25 David O'Brien <obrien@FreeBSD.org>
16750
16751 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
16752 default setting.
16753 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
16754 existing setting.
16755
33c7f925
GK
167562002-01-25 Geoffrey Keating <geoffk@redhat.com>
16757
16758 * dbxout.c (dbxout_init): Use assemble_name rather than just
16759 stripping off the first character.
16760 (dbxout_source_file): Likewise.
16761
6cd444b4
DD
167622002-01-25 DJ Delorie <dj@redhat.com>
16763
16764 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
16765 using rtx_equal_p, not by comparing pointers.
16766
751551d5
SE
167672002-01-25 Steve Ellcey <sje@cup.hp.com>
16768
16769 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
16770 for PIC_OFFSET_TABLE_REGNUM.
16771 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
16772
e564e618
DB
167732002-01-25 David O'Brien <obrien@FreeBSD.org>
16774
16775 * config.gcc (x86_64-*-freebsd*): New target.
16776 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
16777 value.
16778 (i[34567]86-*-freebsd*): Don't include svr4.h.
16779 * config/i386/freebsd64.h: New file.
16780
ff3aaf17
DR
167812002-01-25 Douglas B Rupp <rupp@gnat.com>
16782
4857d29d
DR
16783 * config/alpha/x-vms (version): Make static.
16784
16785 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
16786 in previous checkin.
16787
ff3aaf17
DR
16788 * Makefile.in (install-headers-cp): New target.
16789 * config.gcc (alpha-dec-*vms*): Install headers with
16790 install-headers-cp
16791
48d79c43
JH
16792Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
16793
16794 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
16795 avoid it's copies.
16796
995b5904
RK
16797Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16798
16799 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
16800 of compare_tree_int.
16801 (expand_builtin_strncat): Likewise.
16802 * c-decl.c (finish_struct): Use tree_low_cst.
16803 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
16804 * tree.c (compare_tree_int): Likewise.
16805
75eefe3f
UW
168062002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
16807
16808 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
16809 adjustments even if they are implemented by more than two insns.
16810
5a133afd
JH
16811Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
16812
995b5904 16813 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5a133afd
JH
16814 * df.h (struct ref): Kill B.
16815 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
16816
16817 * basic-block.h (PROP_EQUAL_NOTES): New flag.
16818 * flow.c (propagate_one_insn): Use it.
16819 (mark_used_regs): Handle NIL.
16820
ead39bdf 168212002-01-25 Geoffrey Keating <geoffk@redhat.com>
3d8dd3c0
GK
16822
16823 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
16824 to help folding.
16825
01a2ccd0
DE
168262002-01-25 David Edelsohn <edelsohn@gnu.org>
16827
16828 * rs6000.md (prefetch): Make address V4SI mode so that the address
16829 is restricted to legitimate form for instruction.
16830
fd29f6ea
BW
168312002-01-25 Bob Wilson <bob.wilson@acm.org>
16832
16833 * doc/install.texi (xtensa-*-elf): New target.
16834 (xtensa-*-linux*): New target.
16835 * doc/contrib.texi: Add myself.
16836
55492b32
NC
168372002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
16838
16839 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
16840 purpose register to hold an SImode (or smaller) value.
16841
72c7c913
JJ
168422002-01-25 Jakub Jelinek <jakub@redhat.com>
16843
16844 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
16845 registry only.
16846 * crtstuff.c: Likewise.
16847
c4df4ceb
KH
168482002-01-25 Kazu Hirata <kazu@hxi.com>
16849
16850 * config/h8300/h8300.md (negation patterns): Tighten
16851 predicates to register_operand.
16852
70e531f5
AH
168532002-01-24 Aldy Hernandez <aldyh@redhat.com>
16854
3bca17dd
PK
16855 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
16856 mode, not Pmode.
70e531f5 16857
3bca17dd 16858 * builtins.c (expand_builtin_prefetch): Same.
70e531f5 16859
a4f76ef9
AO
168602002-01-24 Alexandre Oliva <aoliva@redhat.com>
16861
16862 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
16863 modes.
16864
9bf25b09
KH
168652002-01-24 Kazu Hirata <kazu@hxi.com>
16866
16867 * config/h8300/h8300.c (print_operand): Remove support for
16868 operand character 'A'.
16869 * config/h8300/h8300.md (three anonymous patterns): Replace
16870 operand character 'A' with either 'T' or 'S'.
16871
974af6a5
KH
168722002-01-24 Kazu Hirata <kazu@hxi.com>
16873
16874 * config/h8300/h8300.c (print_operand): Remove support for
16875 operand character 'U'.
16876
7a5bb7b8
AP
168772002-01-24 Andris Pavenis <pavenis@latnet.lv>
16878
3bca17dd 16879 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7a5bb7b8 16880
92a4639e
NC
168812002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
16882
16883 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
16884 values to be assigned to the stack pointer.
16885
467cb2da
HP
168862002-01-14 Hartmut Penner <hpenner@de.ibm.com>
16887
bebc7e8b 16888 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
467cb2da
HP
16889 to const_double needs to be done right for big-endian systems.
16890
3b6cb920
JM
168912002-01-24 Jason Merrill <jason@redhat.com>
16892
b08dd119 16893 PR c++/2432
3b6cb920
JM
16894 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
16895 to can_throw_internal.
16896
f3077311
RH
168972002-01-23 Richard Henderson <rth@redhat.com>
16898
16899 * fold-const.c (fold): Change UINT_MAX test to check vs precision
16900 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
16901
e1d71275
AO
169022002-01-24 Alexandre Oliva <aoliva@redhat.com>
16903
16904 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
16905 (symGOT2reg): Use them, then set as GOT value as unchanging.
16906 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
16907 as a temporary, if possible.
16908 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
16909 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
16910
dc271dbe
KH
169112002-01-23 Kazu Hirata <kazu@hxi.com>
16912
16913 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
16914 accept to accept 0x80 as operands[2].
16915
1a9017f9
AO
169162002-01-24 Alexandre Oliva <aoliva@redhat.com>
16917
16918 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
16919
6932f033
RH
169202002-01-23 Richard Henderson <rth@redhat.com>
16921
16922 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
16923
709619d9
AH
169242002-01-23 Aldy Hernandez <aldyh@redhat.com>
16925
3bca17dd
PK
16926 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
16927 (parmlist_or_identifiers_1): Verify that only a parmlist follows
16928 an attribute.
709619d9 16929
3d709fd3
RH
169302002-01-23 Richard Henderson <rth@redhat.com>
16931
16932 * expr.c (move_by_pieces_1): Extend size before negation.
16933
88a446c0
RH
16934 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
16935 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
16936 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
16937 * config/m68k/t-m68kelf: Likewise.
16938
03984308
BW
169392002-01-23 Bob Wilson <bob.wilson@acm.org>
16940
16941 * config/xtensa/elf.h: New file.
16942 * config/xtensa/lib1funcs.asm: New file.
16943 * config/xtensa/lib2funcs.S: New file.
16944 * config/xtensa/linux.h: New file.
16945 * config/xtensa/t-xtensa: New file.
16946 * config/xtensa/xtensa-config.h: New file.
16947 * config/xtensa/xtensa-protos.h: New file.
16948 * config/xtensa/xtensa.c: New file.
16949 * config/xtensa/xtensa.h: New file.
16950 * config/xtensa/xtensa.md: New file.
16951 * config.gcc (xtensa-*-elf*): New target.
16952 (xtensa-*-linux*): New target.
16953 * cse.c (canon_hash): Compare rtx pointers instead of register
16954 numbers. This is required for the Xtensa port.
16955 * integrate.c (copy_insn_list): Handle case where the static
16956 chain is in memory and the memory address has to be copied to
16957 a register.
16958 * doc/invoke.texi (Option Summary): Add Xtensa options.
16959 (Xtensa Options): New node.
16960 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
16961
c3d5c3fa
ZW
169622002-01-23 Zack Weinberg <zack@codesourcery.com>
16963
a63bea75
ZW
16964 * diagnostic.c (internal_error): Do ICE suppression only
16965 when ENABLE_CHECKING is not defined.
16966
c3d5c3fa
ZW
16967 * c-typeck.c (require_complete_type): Return error_mark_node
16968 if type is error_mark_node.
16969
1398974c
JJ
169702002-01-23 Janis Johnson <janis187@us.ibm.com>
16971
16972 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
16973 -Os and issue a warning.
16974
807633e5
ZW
169752002-01-23 Zack Weinberg <zack@codesourcery.com>
16976
16977 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
16978 current (lack of) need for host configuration by hand.
16979
16980 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
16981 references. Documentation of some target macros moved from
16982 hostconfig.texi to tm.texi.
16983
cf8002d0
WC
169842002-01-23 Will Cohen <wcohen@redhat.com>
16985
16986 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
16987 defined.
16988
d1e76310
KH
169892002-01-23 Kazu Hirata <kazu@hxi.com>
16990
16991 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
16992 operand[3].
16993
b2115575
JM
169942002-01-23 Jason Merrill <jason@redhat.com>
16995
f893c16e
JM
16996 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
16997
b2115575
JM
16998 * function.c (assign_parms): Don't put args of inline functions
16999 into registers when not optimizing.
17000
6bacc7b0
NC
170012002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
17002
17003 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
17004 (prologue_use): New pattern.
17005 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
17006 preference to gen_rtx_USE.
17007 (thumb_expand_prologue): Use gen_prologue_use in preference to
17008 gen_rtx_USE.
17009 (thumb_expand_epilogue): Use gen_prologue_use in preference to
17010 gen_rtx_USE.
17011
a415f7bc
HPN
170122002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
17013
17014 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
17015
5372b3fb
NB
170162002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
17017
17018 PR c/3504
17019 * doc/extend.texi: Correct documentation of __alignof__.
17020
bd571ffc
ZW
170212002-01-22 Zack Weinberg <zack@codesourcery.com>
17022
17023 * params.h: Rename arguments of DEFPARAM so that it will be
17024 recognized as a translation keyword.
17025
333c8841
AH
170262002-01-22 Aldy Hernandez <aldyh@redhat.com>
17027
bd571ffc
ZW
17028 * extend.texi: Document altivec functions.
17029 Fix N-bit adjectives in X86 builtin documentation.
333c8841 17030
38979c65
AO
170312002-01-22 Alexandre Oliva <aoliva@redhat.com>
17032
17033 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
17034 auto_inc_dec values.
17035
7458a9f0
RE
170362002-01-22 Richard Earnshaw <rearnsha@arm.com>
17037
17038 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
17039 after backslash.
17040 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
17041
129bd0c4
AO
170422002-01-22 Alexandre Oliva <aoliva@redhat.com>
17043
17044 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
17045
8b9b74a9
RH
170462002-01-22 Richard Henderson <rth@redhat.com>
17047
17048 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
17049 copy_insn not copy_rtx.
17050
d0c9db30
AM
170512002-01-23 Alan Modra <amodra@bigpond.net.au>
17052
17053 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
17054 "nonzero" as that might add "1" bits. Ensure "constop" is
17055 properly sign extened.
17056 (force_to_mode): Tweak for sign extended constop.
17057
1e7e480e
RH
170582002-01-22 Richard Henderson <rth@redhat.com>
17059
17060 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
17061 for_each_rtx instead of assuming we're already looking at the MEM.
17062 (split_small_symbolic_mem_operand): Likewise.
17063 * config/alpha/alpha.h (PREDICATE_CODES): Update.
17064 * config/alpha/alpha.md (small symbolic memory splitters): Update.
17065
170662002-01-22 Richard Henderson <rth@redhat.com>
2e271932
RH
17067
17068 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
17069 sequence number for the literal.
17070 (divmoddi_internal_er): Likewise.
17071
b7f2fb96
CR
170722002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
17073
17074 PR java/4972
17075 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
17076 in LIBICONV variable.
17077 * configure: Regenerated.
17078
f66a0046
KW
170792002-01-22 Krister Walfridsson <cato@df.lth.se>
17080
17081 * dependence.c (build_def_use): Remove array_idx.
17082
e3b0efd1
KW
17083 * dwarfout.c (last_filename): Remove.
17084 (output_compile_unit_die): Remove last_filename.
17085
d8086cbb
RS
170862002-01-22 Roger Sayle <roger@eyesopen.com>
17087 Richard Henderson <rth@redhat.com>
17088
17089 PR opt/3640
17090 * fold-const.c (fold): Optimize unsigned comparisons against
17091 UINT_MAX (and similar unsigned constants).
17092
e8d52ba0
JJ
170932002-01-22 Janis Johnson <janis187@us.ibm.com>
17094
d8086cbb 17095 * Makefile.in (loop.o): Depend on OPTABS_H.
1398974c 17096 * loop.c (emit_prefetch_instructions): Check the prefetch operand
d8086cbb 17097 against the predicate.
11303d15 17098
e8d52ba0
JJ
17099 PR target/5379
17100 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
17101 for the address operand.
17102
cc7b420e
RH
171032002-01-22 Richard Henderson <rth@redhat.com>
17104
17105 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
17106
816e265a
CR
171072002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
17108
17109 PR other/5450
cc7b420e
RH
17110 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
17111 preprocessor flags.
816e265a 17112
7c884404
JT
171132002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
17114
17115 * config.gcc (x86_64-*-netbsd*): New target.
17116 * config/i386/netbsd64.h: New file.
17117
2b672c08
AH
171182002-01-22 Aldy Hernandez <aldyh@redhat.com>
17119
d8086cbb 17120 * regrename.c (kill_value): Fix typo.
2b672c08
AH
17121
171222002-01-22 Aldy Hernandez <aldyh@redhat.com>
17123
d8086cbb 17124 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2b672c08 17125
d8086cbb 17126 * config/rs6000/rs6000.h: Same.
2b672c08 17127
d8086cbb
RS
17128 * function.c (instantiate_virtual_regs): Remove
17129 STARTING_FRAME_PHASE.
17130 (assign_stack_local_1): Same.
17131 Calculate frame phase.
2b672c08 17132
4b02997f
NC
171332002-01-22 Nick Clifton <nickc@redhat.com>
17134
17135 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
17136 variable declaration to outer scope in order to simplify
17137 future extensions.
17138 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
17139 arm_hard_regno_mode_ok.
17140 * config/arm/arm-protos.h: Add a prototype for
17141 arm_hard_regno_mode_ok.
17142 * config/arm/arm.c (soft_df_operand): Remove now redundant
17143 check for DImode values using IP_REGNUM.
17144 (nonimmediate_soft_df_operand): Remove now redundant check for
17145 DImode values using IP_REGNUM.
17146 (arm_hard_regno_mode_ok): New function. New check: make sure
17147 that DImode values are not stored in IP_REGNUM.
c14a3a45
NC
17148
17149 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
17150 note with a USE.
17151 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
17152
8a827ab2
JM
171532002-01-22 Jason Merrill <jason@redhat.com>
17154
17155 * c-semantics.c (genrtl_compound_stmt): Only check nesting
17156 consistency if this COMPOUND_STMT is scoped.
17157
cf403648
KH
171582002-01-22 Kazu Hirata <kazu@hxi.com>
17159
17160 * predict.c: Fix formatting.
17161 * print-tree.c: Likewise.
17162 * protoize.c: Likewise.
17163 * real.h: Likewise.
17164 * rtl.h: Likewise.
17165 * sbitmap.h: Likewise.
17166 * scan.c: Likewise.
17167 * sched-deps.c: Likewise.
17168 * sched-vis.c: Likewise.
17169 * sdbout.c: Likewise.
17170 * sibcall.c: Likewise.
17171 * ssa.c: Likewise.
17172 * ssa-ccp.c: Likewise.
17173 * ssa-dce.c: Likewise.
17174 * stmt.c: Likewise.
17175 * stor-layout.c: Likewise.
17176 * system.h: Likewise.
17177
aea9695c
RK
17178Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17179
a8765ae7
RK
17180 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
17181 if fits in bounds of base type.
17182
aea9695c
RK
17183 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
17184 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
17185 (add_bound_info, default): If can't find a context, make a
17186 SAVE_EXPR.
17187 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
17188
58bf601b
HPN
171892002-01-22 Hans-Peter Nilsson <hp@axis.com>
17190
17191 * c-typeck.c (parser_build_binary_op): If result from
17192 build_binary_op is ERROR_MARK just return error_mark_node without
17193 further processing.
17194
f982f805
JT
171952002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
17196
17197 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
17198 Split a.out-specific bits into...
17199 * config/netbsd-aout.h: ...this.
17200 * config/netbsd-elf.h: New file.
17201 * config/alpha/netbsd-elf.h: Remove.
17202 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
17203 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
bd571ffc 17204 (STARTFILE_SPEC): Remove redundant definition.
f982f805
JT
17205 (ENDFILE_SPEC): Likewise.
17206 (LINK_SPEC): Likewise.
17207 (CPP_SPEC): Likewise.
17208 (ASM_SPEC): Likewise.
17209 (LIB_SPEC): Likewise.
17210 (SWITCH_TAKES_ARG): Likewise.
17211 (TARGET_MEM_FUNCTIONS): Likewise.
17212 (CPP_PREDEFINES): Redefine.
17213 (ASM_FINAL_SPEC): Remove redefinition.
17214 (ASM_COMMENT_START): Redefine.
17215 (FUNCTION_PROFILER): Define.
17216 (TARGET_VERSION): Redefine.
17217 Comment and formatting cleanup.
17218 * config/i386/netbsd.h: Include <netbsd-aout.h>.
17219 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
17220 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
17221 big- or little-endian.
17222 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
17223 * config.gcc (*-*-netbsd*): Add definitions common to all
17224 NetBSD configs.
17225 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
17226 gnu_ld definitions. Add netbsd-elf.h to and remove
17227 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
17228 tmake_file, and don't lose previous tmake_file contents.
17229 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
17230 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
17231 gnu_ld definitions. Add netbsd-elf.h to tm_file.
17232 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
17233 (mipsel-*-netbsd*): Rename this to...
17234 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
17235 mips/little.h to tm_file for mips*el-*.
17236 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
17237 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
17238 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
17239
2e396476
JDA
172402002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17241
17242 * pa-protos.h (reg_before_reload_operand): New function prototype.
17243 * pa.c (reg_before_reload_operand): New function implementation.
17244 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
17245 contraints to "*m".
17246
3b5708e7
FS
172472002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17248
17249 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
17250
85e79f96
JDA
172512002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17252
17253 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
17254 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
17255 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
17256 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
17257 (ENDFILE_SPEC): Undefine.
17258 (STARTFILE_SPEC): Redefine for PA.
17259
38abadee
FS
172602002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17261
17262 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
17263
94f1d97c
DJ
172642002-01-21 Daniel Jacobowitz <drow@mvista.com>
17265
17266 * config.gcc: Add entries to supported PowerPC --with-cpu
17267 types.
17268
0333394e
JJ
172692002-01-21 Jakub Jelinek <jakub@redhat.com>
17270
17271 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
17272 true for 64-bit mode only SSE registers in 32-bit mode.
17273
e9d1b155
KH
172742002-01-21 Kazu Hirata <kazu@hxi.com>
17275
17276 * unwind-dw2.c: Fix formatting.
17277 * unwind-dw2-fde.c: Likewise.
17278 * unwind-dw2-fde.h: Likewise.
17279 * unwind-pe.h: Likewise.
17280 * varasm.c: Likewise.
17281 * varray.h: Likewise.
17282
07338cf8
HPN
172832002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
17284
17285 Remove workaround for register stack overwrite bug in mmix.
17286 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
17287 support for TARGET_REG_STACK_FILL_BUG.
17288 * config/mmix/mmix.h: Remove member has_call_without_parameters.
17289 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
17290 Delete.
17291 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
17292 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
17293 -mno-reg-stack-fill-bug-workaround.
17294 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
17295 machine member has_call_without_parameters.
17296 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
17297 -mreg-stack-fill-bug-workaround and
17298 -mno-reg-stack-fill-bug-workaround.
17299 (MMIX Options): Ditto.
17300
7192cbf1
KH
173012002-01-21 Kazu Hirata <kazu@hxi.com>
17302
17303 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
17304 as appropriate.
17305 Remove redundant code.
17306
d1552d7b
JM
173072002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
17308
17309 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
17310 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17311 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17312 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
17313 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
17314 out target macro definitions and non-target-specific comments
17315 mostly taken from old versions of the manual.
17316
ed168e45
KH
173172002-01-20 Kazu Hirata <kazu@hxi.com>
17318
17319 * config/h8300/h8300.h: Fix comment formatting.
17320 * config/ia64/aix.h: Likewise.
17321 * config/ia64/ia64-protos.h: Likewise.
17322 * config/ia64/ia64.c: Likewise.
17323 * config/ia64/ia64.h: Likewise.
17324 * config/ia64/ia64intrin.h: Likewise.
17325 * config/ia64/linux.h: Likewise.
17326 * config/ia64/unwind-aix.c: Likewise.
17327 * config/ia64/unwind-ia64.c: Likewise.
17328
005e3e05
KH
173292002-01-20 Kazu Hirata <kazu@hxi.com>
17330
17331 * config/h8300/h8300.c: Revise comments about shift code.
17332
64bead4c
KH
173332002-01-20 Kazu Hirata <kazu@hxi.com>
17334
17335 * config/h8300/h8300.c (function_arg): Update a comment.
17336
ed863595
KH
173372002-01-20 Kazu Hirata <kazu@hxi.com>
17338
17339 * config/h8300/h8300.md: Update the comments at the beginning
17340 of the file.
17341
5904dc87
KH
173422002-01-20 Kazu Hirata <kazu@hxi.com>
17343
17344 * config/i370/i370.c: Fix comment formatting.
17345 * config/i370/i370.h: Likewise.
17346 * config/i370/i370.md: Likewise.
17347 * config/i370/linux.h: Likewise.
17348
9702143f
RK
17349Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17350
cbafacd1
RK
17351 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
17352
9702143f
RK
17353 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
17354 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
17355 in incomplete case.
17356
6b6996b8
GS
173572002-01-20 Graham Stott <grahams@redhat.com>
17358
17359 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
17360
eab854f6
JDA
173612002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
17362
17363 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
17364
5b029315
TR
173652002-01-19 Tom Rix <trix@redhat.com>
17366
17367 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
17368
1d690052
AH
173692002-01-18 Aldy Hernandez <aldyh@redhat.com>
17370
d8086cbb 17371 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
1d690052 17372
d8086cbb
RS
17373 * function.c (assign_stack_local_1): Adjust x_frame_offset with
17374 STARTING_FRAME_PHASE.
17375 (STARTING_FRAME_PHASE): New.
17376 (instantiate_virtual_regs): Check saneness of
17377 STARTING_FRAME_PHASE.
1d690052 17378
d8086cbb 17379 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
1d690052 17380
4dd8c093
AO
173812002-01-19 Alexandre Oliva <aoliva@redhat.com>
17382
17383 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
17384
6f2a28d7
CR
173852002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
17386
17387 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
17388 be used for bootstrapping GCC 3.0.
17389
8763a465
KH
173902002-01-18 Kazu Hirata <kazu@hxi.com>
17391
17392 * config/h8300/h8300.md: Fix an insn length.
17393
3ef42a0c
KH
173942002-01-18 Kazu Hirata <kazu@hxi.com>
17395
17396 * bitmap.h: Fix comment formatting.
17397 * combine.c: Likewise.
17398 * cppfiles.c: Likewise.
17399 * c-pragma.h: Likewise.
17400 * c-typeck.c: Likewise.
17401 * df.c: Likewise.
17402 * dwarf2out.c: Likewise.
17403 * function.c: Likewise.
17404 * gcc.c: Likewise.
17405 * genattrtab.c: Likewise.
17406 * gthr-win32.h: Likewise.
17407 * haifa-sched.c: Likewise.
17408 * predict.c: Likewise.
17409 * rtlanal.c: Likewise.
17410 * rtl.h: Likewise.
17411 * unwind-dw2-fde.h: Likewise.
17412 * unwind-pe.h: Likewise.
17413 * vmsdbgout.c: Likewise.
17414
dd4dc3cd
RK
17415Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17416
17417 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17418 if type_required and passed decl.
17419
5fb4cf24
AH
174202002-01-17 Aldy Hernandez <aldyh@redhat.com>
17421
d8086cbb
RS
17422 * config.gcc (cpu_type): Include altivec.h in powerpc
17423 extra_headers.
17424 Same for darwin.
5fb4cf24 17425
d8086cbb 17426 * config/rs6000/altivec.h: New.
5fb4cf24 17427
2705baf5
DE
174282002-01-17 David Edelsohn <edelsohn@gnu.org>
17429
17430 * doc/install.texi (*-ibm-aix*): Update assembler and exception
17431 handling information.
17432 * doc/trouble.texi (Interoperation): Add libstdc++ information
17433 for AIX.
17434 (Misunderstandings): Add template instantiation and static template
17435 member information for AIX.
17436
dbd680e1
JM
174372002-01-17 Jason Merrill <jason@redhat.com>
17438
821adc5e
JM
17439 * dbxout.c (dbxout_type): Support const and volatile.
17440
dbd680e1
JM
17441 * except.c (add_partial_entry): Remove backwards compatibility code.
17442 (end_protect_partials): Likewise.
17443
d0e82870
JJ
174442002-01-17 Jakub Jelinek <jakub@redhat.com>
17445
17446 * config/ia64/ia64.md (prologue_use): New.
17447 * config/ia64/ia64.c (ia64_expand_prologue): Use
17448 gen_prologue_use instead of gen_rtx_USE.
17449 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17450 as CODE_FOR_pred_rel_mutex.
17451 (ia64_sched_reorder2): Likewise.
17452
f9f45c65
EC
174532002-01-16 Eric Christopher <echristo@redhat.com>
17454
17455 * config/mips/r3900.h: Reformat.
17456 (SUBTARGET_CPP_SIZE_SPEC): Remove.
17457 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17458 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
17459 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
17460 * config/mips/t-elf: Remove mips3 multilib.
17461
c66c8b0e
L
174622002-01-16 H.J. Lu <hjl@gnu.org>
17463
17464 * config/mips/linux.h: Include "mips/abi64.h".
17465
5f083b72
L
174662002-01-16 H.J. Lu <hjl@gnu.org>
17467
17468 * config/mips/t-linux: New.
17469
17470 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
17471
17472 * config/mips/linux.h: Don't include "gofast.h".
17473 (INIT_SUBTARGET_OPTABS): Removed.
17474
af3c90a6
KH
174752002-01-16 Kazu Hirata <kazu@hxi.com>
17476
17477 * config/h8300/h8300-protos.h: Replace emit_a_shift with
17478 output_a_shift.
17479 * config/h8300/h8300.c: Likewise.
17480 * config/h8300/h8300.md: Likewise.
17481
a1bf0a16
KH
174822002-01-16 Kazu Hirata <kazu@hxi.com>
17483
17484 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
17485 spaces after an opcode name.
17486 (pushqi1_h8300hs): Likewise.
17487 (pushhi1_h8300hs): Likewise.
17488
88ab0d1c
KH
174892002-01-16 Kazu Hirata <kazu@hxi.com>
17490
17491 * doc/extend.texi: Replace "option" with "attribute"
17492 appropriately.
17493
51c561e3
JJ
174942002-01-16 Jakub Jelinek <jakub@redhat.com>
17495
17496 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
17497 (and:DI () (const_int -8)).
17498 (split_small_symbolic_mem_operand): Split
17499 (mem (and:DI () (const_int -8)).
17500
b8c1a6b8
JJ
175012002-01-16 Jakub Jelinek <jakub@redhat.com>
17502
17503 PR target/5309:
d8086cbb 17504 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
b8c1a6b8
JJ
17505 same way as TYPE_IMUL.
17506 (ultrasparc_sched_reorder): Likewise.
17507 * config/sparc/sparc.md (type): Add comment to update
17508 ultrasparc_sched_reorder when making changes.
17509
1e4e4df2
KH
175102002-01-16 Kazu Hirata <kazu@hxi.com>
17511
17512 * doc/invoke.texi: Change the dump file name of block
17513 reordering pass from 28.bbro to 29.bbro.
17514 Mention -dk option.
17515
14d920c0
JH
17516Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
17517
17518 * i386.md (minsf splitter): Fix pasto.
17519
2e99323f
NC
175202002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17521
17522 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
17523 to frame pointer initialisation instruction.
17524 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
17525 initialisation instruction.
ab8081c1
NC
17526 (soft_df_operand): Do not accept the IP register.
17527 (nonimmediate_soft_df_operand): Do not accept the IP register.
2e99323f 17528
c4031a04
JJ
175292002-01-16 Jakub Jelinek <jakub@redhat.com>
17530
17531 PR target/5357:
17532 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
17533 MASK_V8 being both set.
17534
44b8152b
UW
175352002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
17536
17537 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
17538 insn for GOT register; add REG_MAYBE_DEAD notes instead.
17539 config/s390/s390.md (call, call_value): Add GOT register to
17540 CALL_INSN_FUNCTION_USAGE where needed.
17541 (call_exp, call_value_exp): New.
17542
1d6e90ac
NC
175432002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17544
17545 * config/arm/arm.c: General formatting tidy up.
17546
175472002-01-16 Graham Stott <grahams@redhat.com>
60e8b9f0
GS
17548
17549 * calls.c (try_to_integrate): Use "(size_t)" intermediate
17550 cast and when casting an integer literal to "rtx" pointer.
17551 (expand_call): Likewise.
17552 * flow.c (try_pre_increment): Likewise.
17553 (find_use_as_address): Likewise.
17554 * integrate.c (expand_iline_function): Likewise.
17555 * regmove.c (try_auto_increment): Likewise.
17556
1d6e90ac 175572002-01-16 Graham Stott <grahams@redhat.com>
7b25b076
GS
17558
17559 * sched-rgn.c (passed): Use sbitmap_free.
17560 (header): Likewise.
17561 (inner): Likewise.
17562 (in_queue): Likewise.
17563 (in_stack): Likewise.
17564
31fce3c4
EC
175652002-01-15 Eric Christopher <echristo@redhat.com>
17566
17567 * flow.c (propagate_one_insn): Change to use fatal_insn.
17568
c99d986a
KH
175692002-01-15 Kazu Hirata <kazu@hxi.com>
17570
17571 * expmed.c (extract_fixed_bit_field): Remove unused code.
17572 * system.h: Poison SLOW_ZERO_EXTEND.
17573 * doc/tm.texi: Remove.
17574 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
17575 * config/arm/arm.h: Likewise.
17576 * config/avr/avr.h: Likewise.
17577 * config/clipper/clipper.h: Likewise.
17578 * config/convex/convex.h: Likewise.
17579 * config/d30v/d30v.h: Likewise.
17580 * config/dsp16xx/dsp16xx.h: Likewise.
17581 * config/elxsi/elxsi.h: Likewise.
17582 * config/fr30/fr30.h: Likewise.
17583 * config/h8300/h8300.h: Likewise.
17584 * config/i370/i370.h: Likewise.
17585 * config/i386/i386.h: Likewise.
17586 * config/m68k/m68k.h: Likewise.
17587 * config/mips/mips.h: Likewise.
17588 * config/ns32k/ns32k.h: Likewise.
17589 * config/pdp11/pdp11.h: Likewise.
17590 * config/pj/pj.h: Likewise.
17591 * config/s390/s390.h: Likewise.
17592 * config/sh/sh.h: Likewise.
17593 * config/stormy16/stormy16.h: Likewise.
17594 * config/v850/v850.h: Likewise.
17595 * config/vax/vax.h: Likewise.
17596 * config/we32k/we32k.h: Likewise.
17597
acfab996
AH
175982002-01-15 Aldy Hernandez <aldyh@redhat.com>
17599
d8086cbb
RS
17600 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
17601 (altivec_lvsl): Change constraint to b.
17602 (altivec_lvsr): Same.
17603 (altivec_lvebx): Same.
17604 (altivec_lvehx): Same.
17605 (altivec_lvewx): Same.
17606 (altivec_lvxl): Same.
17607 (altivec_lvx): Same.
17608 (altivec_stvx): Add parallel.
17609 (altivec_stvxl): Same.
17610 (altivec_stvehx): Same.
17611 (altivec_stvebx): Same.
17612 (altivec_stvebx): Same.
acfab996 17613
5e505bc9
AH
176142002-01-15 Aldy Hernandez <aldyh@redhat.com>
17615
d8086cbb 17616 * config.gcc: Change altivec.h to altivec-defs.h.
5e505bc9 17617
d8086cbb 17618 * config/rs6000/altivec.h: Delete.
5e505bc9 17619
d8086cbb 17620 * config/rs6000/altivec-defs.h: Add.
5e505bc9 17621
5c41fdfb
JDA
176222002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
17623
17624 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
17625 and UMOD modes.
17626
17627 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
17628 less than or equal to eight bytes.
17629
17630 * vax.md (andsi3): Remove constraints and change SET destination
17631 operand type to nonimmediate_operand.
17632 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
17633 when it is a CONST_INT.
17634
de097a2d
JM
176352002-01-15 Jason Merrill <jason@redhat.com>
17636
17637 * c-common.def (FILE_STMT): New code.
17638 * c-common.c (statement_code_p): It's a statement.
17639 * c-common.h (stmt_tree_s): Add x_last_filename.
17640 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
17641 (last_expr_filename): New macro.
17642 * c-semantics.c (begin_stmt_tree): Initialize it.
17643 (add_stmt): If the filename changed, also insert a
17644 FILE_STMT.
17645 (expand_stmt): Handle seeing one.
17646
4a913dd6
EC
176472002-01-15 Eric Christopher <echristo@redhat.com>
17648
17649 * flow.c (propagate_one_insn): Add error message and print out
17650 insn for debugging.
17651
006946e4
JM
176522002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17653
17654 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
17655 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
17656 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
17657 TRAMPOLINE_ALIGNMENT.
17658 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
17659 to be in bits.
17660 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
17661 PCC_BITFIELD_TYPE_MATTERS.
17662 * config/interix.h (STDC_VALUE): Remove. Use
17663 STDC_0_IN_SYSTEM_HEADERS.
17664 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
17665 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
17666 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
17667
751a1458
CR
176682002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
17669
17670 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
17671 not work on this platform currently.
17672
57771fe8
JM
176732002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17674
17675 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
17676 readonly_warning in _().
17677
0e83ceb1 176782002-01-15 Douglas B Rupp <rupp@gnat.com>
9a52433e 17679
0e83ceb1 17680 * gcc.c (delete_if_ordinary): Backout previous change.
9a52433e 17681
8e2e89f7
KH
176822002-01-15 Kazu Hirata <kazu@hxi.com>
17683
0e83ceb1
DR
17684 * config/h8300/h8300.c (print_operand): Remove support for
17685 unused operand characters.
17686
8e2e89f7
KH
17687 * read-rtl.c: Fix formatting.
17688 * real.c: Likewise.
17689 * recog.c: Likewise.
17690 * regclass.c: Likewise.
17691 * regmove.c: Likewise.
17692 * reg-stack.c: Likewise.
17693 * reload1.c: Likewise.
17694 * rtlanal.c: Likewise.
17695
b531087a
KH
176962002-01-15 Kazu Hirata <kazu@hxi.com>
17697
17698 * config/i386/i386.c: Fix formatting.
17699
7c94ce7f
JJ
177002002-01-15 Jakub Jelinek <jakub@redhat.com>
17701
17702 * c-typeck.c (process_init_element): Don't save_expr
17703 COMPOUND_LITERAL_EXPR if just its initializer will be used.
17704
6041bf2f
DE
177052002-01-15 David Edelsohn <edelsohn@gnu.org>
17706
17707 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
17708 emit optional traceback table if optimize_size or TARGET_ELF.
17709 * config/rs6000/rs6000.md (prefetch): New.
17710
8559c8c0
AJ
177112002-01-15 Andreas Jaeger <aj@suse.de>
17712
17713 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
17714
70f122f2
KH
177152002-01-15 Kazu Hirata <kazu@hxi.com>
17716
17717 * mips-tfile.c: Fix formatting.
17718
6a7b4ca6
JH
17719Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
17720
17721 * unroll.c (final_reg_note_copy): Fix previous commit.
17722
e7afe229
KH
177232002-01-14 Kazu Hirata <kazu@hxi.com>
17724
17725 * config/h8300/h8300-protos.h: Remove the prototype for
17726 eq_operator.
17727 * config/h8300/h8300.c (eq_operator): Remove.
17728
7d378549
RH
177292002-01-14 Richard Henderson <rth@redhat.com>
17730
17731 * config/i386/i386.md (prefetch): Tidy.
17732 (prefetch_3dnow): Fix locality operand.
17733
ab093b81
RH
177342002-01-14 Richard Henderson <rth@redhat.com>
17735
17736 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
17737 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
17738
d300f51f
HPN
177392002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
17740
17741 * reload1.c (reload_combine): Pass reg_sum replacement through
17742 copy_rtx in loop performing multiple changes.
17743
655dd289
JJ
177442002-01-14 Jakub Jelinek <jakub@redhat.com>
17745
17746 * except.c (remove_unreachable_regions): New.
17747 (free_eh_status): Clear exception_handler_labels.
17748 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
17749 (find_exception_handler_labels): Don't add the same label more than
17750 once.
17751 (remove_exception_handler_label): Don't die if
17752 find_exception_handler_labels hasn't been called for the current
17753 function yet.
17754
1fba46a7
JH
17755Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
17756
17757 * toplev.c (rest_of_compilation): Rebuild jump labels after
17758 gcse.
17759
0975678f
JM
177602002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
17761
17762 * doc/extend.texi: Move documentation of X86 built-in functions
17763 here.
17764 * doc/invoke.texi: From here.
17765 * doc/sourcebuild.texi: Document location of documentation for
17766 machine built-in functions.
17767
969815c7
CF
177682002-01-13 Christopher Faylor <cgf@redhat.com>
17769
17770 * cppfiles.c (TEST_THRESHOLD): New macro.
17771 (SHOULD_MMAP): Ditto.
17772 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
17773 be used.
17774
494c950b
JH
17775Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
17776
17777 * unroll.c (final_reg_note_copy): Properly handle
17778 REG_LABEL
17779 (unroll_loops): Fix LOOP_CONDITION heuristics.
17780
69a0611f
GK
177812002-01-14 Geoffrey Keating <geoffk@redhat.com>
17782
17783 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
17784 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
17785
b90e45ae
JH
17786Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
17787
17788 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
17789 threaded loop.
17790
8377288b
TR
177912002-01-14 Tom Rix <trix@redhat.com>
17792
17793 * config/rs6000/rs6000.md: Fix typo with sradi.
17794
9f37ccb1
UW
177952002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
17796
17797 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
17798 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
17799 (clrstrdi, clrstrsi): Adapt callers.
17800
17801 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
17802
8559c8c0 17803 (movti splitter): Never use register 0 as base register.
9f37ccb1 17804
6c2d03d0
HP
178052002-01-14 Hartmut Penner <hpenner@de.ibm.com>
17806
8559c8c0
AJ
17807 * combine.c (simplify_shift_const): Always generate new rtx
17808 for shift expression instead of reusing given expression.
6c2d03d0 17809
d3e98208
RK
17810Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17811
17812 * config/alpha/alpha.c (alpha_expand_mov): Don't call
17813 alpha_legitimize_address unless mode is Pmode.
17814
9f339dde
GK
178152002-01-13 Geoffrey Keating <geoffk@redhat.com>
17816
17817 * doc/md.texi (Modifiers): Document the '*' constraint for the
17818 user.
17819
17820 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
17821 * doc/extend.texi (Function Attributes): 'interrupt' is valid
17822 for xstormy16 too.
17823
02a10130
RH
178242002-01-13 Richard Henderson <rth@redhat.com>
17825
17826 * reload.c (find_reloads): Use a hard reg destination as reload reg
17827 for an input reload of the source.
17828
61d47787
GP
178292002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17830
17831 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
17832 more generic.
17833
f0df8029
DR
17834Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
17835
17836 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17837 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17838
d2a37256
DR
17839 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
17840
a9e8a5ee
RK
17841Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17842
17843 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
17844
bc06712d
TR
178452002-01-12 Tom Rix <trix@redhat.com>
17846
8559c8c0 17847 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
bc06712d
TR
17848 TARGET_POWERPC64.
17849
7cbe9bb7
RH
178502002-01-12 Richard Henderson <rth@redhat.com>
17851
38b29e64
RH
17852 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
17853
58605ba0
RH
17854 * doc/invoke.texi: Update Alpha options.
17855
7cbe9bb7
RH
17856 * doc/invoke.texi: Update i386 built-in function lists.
17857
9d560860
JH
17858Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
17859
17860 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
17861 referencing outside.
17862
bb93b973
RK
17863Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17864
17865 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
17866 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
17867 offsets, and change line folding.
17868 * optabs.c (expand_binop): Remove warnings.
17869 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8559c8c0 17870
f9f6b7df
GS
178712002-01-12 Graham Stott <grahams@redhat.com>
17872
17873 * attribs.c (handle_deprecated_attribute): constify WHAT.
17874 * diagnostic.c (warn_deprecated_use): Add braces, fixes
17875 dangling else warning and constify WHAT.
17876 * except.h (struct function, struct inline_remap): Move
17877 struct tag forward defs before all prototypes.
17878 (duplicate_eh_regions): Whitespace.
17879
4a692617
NC
178802002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
17881
17882 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17883 MODE_BASE_REG_CLASS.
17884 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
17885
e37af218
RH
178862002-01-12 Richard Henderson <rth@redhat.com>
17887
17888 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
17889 (ix86_expand_vector_move): New.
17890 (bdesc_2arg): Remove andps, andnps, orps, xorps.
17891 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
17892 Remove old prefetch builtins. Special case the logicals removed above.
17893 (ix86_expand_builtin): Likewise.
17894 (safe_vector_operand): Use V4SFmode, not TImode.
17895 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
17896 (ix86_expand_timode_binop_builtin): New.
17897 * config/i386/i386-protos.h: Update.
17898 * config/i386/i386.h (enum ix86_builtins): Update.
17899 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
17900 Use ix86_expand_vector_move in vector move expanders.
17901 (movti_internal, movti_rex64): Add xorps alternative.
17902 (sse_clrv4sf): Rename and adjust from sse_clrti.
17903 (prefetch): Don't work so hard.
17904 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
17905 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
17906 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
17907
6f1a6c5b
RH
179082002-01-11 Richard Henderson <rth@redhat.com>
17909
17910 * config/i386/mmintrin.h: New file.
17911 * config/i386/xmmintrin.h: New file.
17912 * config.gcc (i?86-*-*): Add extra_headers.
17913 * simplify-rtx.c (simplify_unary_operation): Handle saturating
17914 truncation codes.
17915 (simplify_binary_operation): Handle saturating arithmetic codes.
17916 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
17917 not the lowpart subreg.
17918 (ix86_expand_builtin): Return a TImode dummy register instead of 0
17919 on error.
17920 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
17921
cdb574d3
MH
179222002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17923
17924 * conflict.c (conflict_graph_compute): Free regsets when finished.
17925 * ssa.c (compute_coalesced_reg_partition): Likewise.
8559c8c0 17926
cf11ac55
HB
179272002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17928
17929 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
17930 every where we allocate a register.
17931
76ac938b
MH
179322002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17933
17934 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
17935 * lcm.c (compute_earliest, compute_farthest): Likewise.
17936
a84b4898
JJ
179372002-01-11 Janis Johnson <janis187@us.ibm.com>
17938
17939 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
17940
aaef1c12
JJ
179412002-01-11 Janis Johnson <janis187@us.ibm.com>
17942
17943 * doc/rtl.texi (Insns): Fix 2 typos.
17944
5d22c1a5
JM
179452002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
17946
17947 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
17948 options. Use @table @gcctabopt for MMIX options. Add index
17949 entries for MMIX options. Start new paragraph with first
17950 heading of the machine-dependent options.
17951
3e92902c
CR
179522002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
17953
17954 PR other/5299
17955 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
17956 * combine.c (force_to_mode): Same.
17957 * reload1.c (clear_reload_reg_in_use): Same.
17958
96ae8197
NC
179592002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
17960
17961 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
17962 and 'subtargets'.
17963
9b780582
AJ
179642002-01-11 Andreas Jaeger <aj@suse.de>,
17965 Brad Lucier <lucier@math.purdue.edu>
17966
17967 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
17968 mcpu.
17969
12300dad
DR
17970Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
17971
17972 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
17973 Protect with IN_LIBGCC.
17974 (LINK_EH_SPEC): Add required trailing space.
17975
27511a9a
NP
17976Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
17977
9b780582 17978 * c-tree.h: Move function declarations so that they are listed
27511a9a
NP
17979 under the filename which contains them.
17980 (check_identifier, finish_decl_top_level,
17981 lookup_name_current_level_global, shadow_record_fields): Remove.
17982
4daeab16
AJ
179832002-01-11 Andreas Jaeger <aj@suse.de>
17984
17985 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
17986 march.
17987
40571d67
RH
179882002-01-10 Richard Henderson <rth@redhat.com>
17989
17990 * config/alpha/alpha.c (print_operand): Add 'J'.
17991 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
17992 new operand with the sequence number for the lituse. When splitting
17993 the insns, use gen_movdi_er_high_g and generate a sequence number.
17994 (gen_movdi_er_high_g): Print the sequence number if non-zero.
17995
6525c0e7
AH
179962002-01-10 Aldy Hernandez <aldyh@redhat.com>
17997
d8086cbb
RS
17998 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
17999 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
18000 stvxl.
18001 (altivec_expand_builtin): Same.
18002 (altivec_expand_stv_builtin): New.
18003
18004 * config/rs6000/rs6000.h (rs6000_builtins): Same.
18005
18006 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
18007 ("altivec_lvehx"): New.
18008 ("altivec_lvewx"): New.
18009 ("altivec_lvxl"): New.
18010 ("altivec_lvx"): New.
18011 ("altivec_stvx"): New.
18012 ("altivec_stvebx"): New.
18013 ("altivec_stvehx"): New.
18014 ("altivec_stvewx"): New.
18015 ("altivec_stvxl"): New.
6525c0e7 18016
cda94cbb
RH
180172002-01-10 Richard Henderson <rth@redhat.com>
18018
18019 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
18020 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
18021 care not to delete instructions twice.
18022
df2c9a44
ZW
180232002-01-10 Zack Weinberg <zack@codesourcery.com>
18024
18025 * toplev.c: Don't declare environ (it's not used anywhere).
18026 * configure.in: Don't check for declaration of environ.
18027 * config/i386/xm-mingw32.h: Don't #define environ.
18028 * config.in, configure: Regenerate.
18029
5dd8a9b1
ZW
180302002-01-10 Zack Weinberg <zack@codesourcery.com>
18031
18032 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
18033 * configure: Regenerate.
18034
18035 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
18036 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
18037 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
18038 alpha/xm-vms.h.
18039 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
18040 LIMITS_H_TEST here, not in m68k/x-next.
18041 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
18042 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
18043
18044 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
18045 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
18046 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
18047
18048 * config/i386/x-djgpp: Renamed i386/t-djgpp.
18049 * config/m88k/x-dolph: Renamed m88k/t-dolph.
18050 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
18051 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
18052 replacement of quadlib.asm with quadlib.c.
18053
18054 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
18055 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
18056 config/rs6000/xm-beos.h: Delete file.
18057
18058 * config.gcc: Update to match above changes.
18059
d10dd44c
KH
180602002-01-10 Kazu Hirata <kazu@hxi.com>
18061
18062 * config/h8300/h8300.h: Fix comment typos.
18063 * config/h8300/h8300.md: Likewise.
18064 * config/h8300/lib1funcs.asm: Likewise.
18065
04894c5a
DJ
180662002-01-10 Dale Johannesen <dalej@apple.com>
18067
18068 PR optimization/5269
18069 * unroll.c (precondition_loop_p): Make *increment be the correct
18070 sign when n_iterations known, to avoid confusing caller.
18071
adc9fe67
KH
180722002-01-10 Kazu Hirata <kazu@hxi.com>
18073
18074 * doc/extend.texi (deprecated): Fix a typo.
18075
b446e5a2
JH
18076Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
18077
18078 * basic-block.h (update_br_prob_note): Declare.
18079 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
18080 (try_forward_edges): Care negative frequencies and update note.
18081 (outgoing_edges_match): Tweek conditional merging heuristics.
18082 (try_crossjump_to_edge): use update_br_prob_note.
18083 * cfglayout.c (fixup_reorder_chain): Likewise.
18084 * cfrtl.c (update_br_prob_note): New.
18085 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
18086
18087 * i386.c (ix86_decompose_address): Return -1 if address contains
18088 shift.
18089 (legitimate_address_p): Require ix86_decompose_address to return 1.
18090
18091 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
18092 (cprop_insn): Likewise.
18093
a01da83b
KH
180942002-01-10 Kazu Hirata <kazu@hxi.com>
18095
18096 * toplev.c: Fix formatting.
18097 * tree.c: Likewise.
18098 * tree-dump.c: Likewise.
18099 * unroll.c: Likewise.
18100 * unwind-dw2.c: Likewise.
18101 * unwind-dw2-fde.c: Likewise.
18102 * unwind-dw2-fde-glibc.c: Likewise.
18103 * unwind-sjlj.c: Likewise.
18104
9f85bca7
JM
181052002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
18106
18107 * doc/invoke.texi: Document PDP-11 options.
18108
f48f56b1
KH
181092002-01-10 Kazu Hirata <kazu@hxi.com>
18110
18111 * config/h8300/h8300.h: Fix formatting.
18112
ead39bdf 181132002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
18114
18115 Add __attribute__ ((deprecated)).
18116 * extend.texi: Document __attribute__ ((deprecated)).
18117 * invoke.texi: Document -Wno-deprecated-declarations.
18118 * testsuite/g++.dg/other/deprecated.C: New C++ test.
18119 * testsuite/gcc.dg/deprecated.c: New C test.
18120 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
18121 (c_common_attribute_table): Add "deprecated" entry.
18122 (handle_deprecated_attribute): New function.
18123 * c-decl.c (deprecated_states): New enum.
18124 deprecated_state: State of "deprecated" handling.
18125 (start_decl): Set deprecated_state based on attributes.
18126 (grokdeclarator): Test for deprecated uses, propagate attribute.
18127 * c-typeck.c (build_component_ref): Test for deprecated fields.
18128 (build_external_ref): Test for deprecated primaries.
18129 * diagnostic.c (warn_deprecated_use) New function to issue
18130 warnings about __attribute__ ((depricated)) references.
18131 * flags.h (warn_deprecated_decl): Extern declared for
18132 -W[no-]deprecated-declarations option.
18133 * print-tree.c (print_node): Show deprecated flag status.
18134 * toplev.c (warn_deprecated_decl): Defined.
18135 (W_options): Added "deprecated-declaration".
18136 * toplev.h (warn_deprecated_use): Extern declared.
18137 * tree.h (struct tree_common): Define deprecated_flag.
18138 (TREE_DEPRECATED): New macro to access flag.
18139 * cp/call.c (build_call): Test for deprecated calls.
18140 * cp/class.c (add_implicitly_declared_members): Set global
18141 flag to tell grokdeclarator to not issue deprecated warnings.
18142 * cp/cp-tree.h: Add extern for adding_implicit_members.
18143 * cp/decl.c (deprecated_states): New enum.
18144 (start_decl): Set deprecated_state based on attributes.
18145 (grokdeclarator): Test for deprecated uses, propagate attribute.
18146 * cp/lex.c (do_identifier): Test for deprecated primaries.
18147 * cp/typeck.c (build_component_ref): Test for deprecated fields.
18148
ead39bdf 181492002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
18150
18151 Fix to assign attributes to inline member functions.
18152 * cp/decl.c (start_method): Handle attrlist.
18153
47073a38
KH
181542002-01-10 Kazu Hirata <kazu@hxi.com>
18155
18156 * combine.c (expand_field_assignment): Use subreg_lsb().
18157
d288e53d
DE
181582002-01-10 David Edelsohn <edelsohn@gnu.org>
18159
18160 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
18161 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
18162 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
18163 Recurse for any operand of AND as long as constant is non-zero.
18164
08a02ffa
KH
181652002-01-10 Kazu Hirata <kazu@hxi.com>
18166
18167 * config/h8300/h8300.md: Remove constraints from expanders.
18168
c203e7fe
KH
181692002-01-10 Kazu Hirata <kazu@hxi.com>
18170
18171 * varasm.c: Fix formatting.
18172 * varray.c: Likewise.
18173 * vmsdbgout.c: Likewise.
18174 * xcoffout.c: Likewise.
18175
bcb3bc6d
JH
18176Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
18177
18178 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
cda94cbb 18179 update edge probabilities to match.
bcb3bc6d 18180
0a553c7e
JM
181812002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
18182
18183 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
18184 dependencies.
18185 * doc/languages.texi, doc/sourcebuild.texi: New files.
18186 * doc/configfiles.texi: Make a subsubsection. Update.
18187 * doc/configterms.texi: Add @node. Remove warning that this isn't
18188 instructions for building GCC.
18189 * doc/makefile.texi: Make a subsection.
18190 * doc/gccint.texi: Update.
18191
adc7fcb8
JH
18192Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
18193
18194 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
18195
5a4dd0b3
NP
18196Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
18197
18198 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
18199
3987b9db
JH
18200Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
18201
18202 * optabs.c (expand_fix): Look for wider integer modes first.
18203
18204 * i386.md (mov?f): Avoid the fake const double trick for medium
18205 memory model.
18206 (min?f*/max?f*): Prohibit memory operands for i387 variant.
18207 (fop_df_4): Disable for SSE compilation.
18208
ceb15948 182092002-01-10 Graham Stott <grahams@redhat.com>
117f9d28
GS
18210
18211 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
cda94cbb 18212 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
117f9d28 18213
e1623399
RH
182142002-01-10 Richard Henderson <rth@redhat.com>
18215
18216 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
18217
c4abb293
RH
182182002-01-10 Richard Henderson <rth@redhat.com>
18219
18220 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
18221 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
18222
d2604ae9
KH
182232002-01-10 Kazu Hirata <kazu@hxi.com>
18224
18225 * combine.c (can_combine_p): Fix a comment typo.
18226
766c7ad1
ZW
182272002-01-09 Zack Weinberg <zack@codesourcery.com>
18228
18229 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
18230 empty list correctly. Change loop index $t to $f for
18231 consistency with rest of Makefile.
18232
95385cbb
AH
182332002-01-08 Aldy Hernandez <aldyh@redhat.com>
18234
18235 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
18236 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18237
18238 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
18239 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
18240 (altivec_init_builtins): Same.
18241 (altivec_expand_unop_builtin): Return NULL_RTX on error.
18242 (altivec_expand_binop_builtin): Same.
18243 (altivec_expand_ternop_builtin): Same.
18244 (bdesc_dst): New.
18245
18246 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
18247 ("altivec_vctuxs"): Fix typo.
18248 ("altivec_vnmsubfp"): Same.
18249 ("altivec_dssall"): New.
18250 ("altivec_mfvscr"): New.
18251 ("altivec_dss"): New.
18252 ("altivec_lvsl"): New.
18253 ("altivec_lvsr"): New.
18254 ("altivec_dstt"): New.
18255 ("altivec_dstst"): New.
18256 ("altivec_dststt"): New.
18257 ("altivec_dst"): New.
18258
18259 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
18260 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18261
e4ac76b4
RH
182622002-01-09 Richard Henderson <rth@redhat.com>
18263
18264 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
18265
c893e4a4
HPN
182662002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
18267
18268 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
18269 function.
18270 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
18271 prototype.
7387c700 18272 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
c893e4a4 18273
f4f4d0f8
KH
182742002-01-09 Kazu Hirata <kazu@hxi.com>
18275
18276 * read-rtl.c: Fix formatting.
18277 * real.c: Likewise.
18278 * regclass.c: Likewise.
18279 * regrename.c: Likewise.
18280 * reg-stack.c: Likewise.
18281 * reload1.c: Likewise.
18282 * reload.c: Likewise.
18283 * rtl.c: Likewise.
18284
cc863bea
KH
182852002-01-09 Kazu Hirata <kazu@hxi.com>
18286
18287 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
18288 to extract items in the expr_list chain.
18289
7b4dfe3d
RH
182902002-01-09 Richard Henderson <rth@redhat.com>
18291
18292 * config/vax/vax.c (vax_rtx_cost): Never abort.
18293
1d969638
RH
18294 * config/vax/vax.h (REAL_ARITHMETIC): Define.
18295
7d5ab30e
JH
182962002-01-09 Jan Hubicka <jh@suse.cz>
18297
18298 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
18299
9503f3d1
RH
183002002-01-09 Richard Henderson <rth@redhat.com>
18301
18302 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
18303 Unify code from various alternatives.
18304
42bd17b7
RH
183052002-01-09 Richard Henderson <rth@redhat.com>
18306
18307 * regrename.c (copy_value): Ignore the copy if the source register
18308 is present in the value chain with a narrower mode.
18309
bdca3c33
HB
183102002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18311
cda94cbb
RH
18312 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
18313 for the c4x target. Also improve layout.
bdca3c33 18314
c73a5e94
RH
183152002-01-09 Richard Henderson <rth@redhat.com>
18316
18317 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
18318 * config/m32r/m32r.md (and ior xor splitters): Swap operands
18319 to match insn patterns.
18320
dd0a18c0
RH
183212002-01-09 Richard Henderson <rth@redhat.com>
18322
18323 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
18324 (copyprop_hardreg_forward_1): Likewise.
18325
1fd9ac1e
JDA
183262002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
18327
18328 * pa.md (decrement_and_branch_until_zero): Change predicate for
18329 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
18330
5cb265ec
BM
183312002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18332
18333 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
18334 gets undefined. For Darwin.
18335
fcd8fa8b
HB
183362002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18337
18338 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
18339
bd3ab23a
MH
183402002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18341
18342 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
18343
21e16bd6
RH
183442002-01-08 Richard Henderson <rth@redhat.com>
18345
18346 * regrename.c (copy_value): Ignore overlapping copies.
18347
a5376276
RH
183482002-01-08 Richard Henderson <rth@redhat.com>
18349
18350 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
18351 as needed to avoid shared structure.
18352
18cf8dda
KH
183532002-01-08 Kazu Hirata <kazu@hxi.com>
18354
18355 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
18356 H8/300H and H8/S.
18357
16c484c7
JM
183582002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18359
18360 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
18361 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
18362 documentation of obsolete macros.
18363 * system.h: Poison these macros.
18364 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
18365 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
18366 config/c4x/c4x.h, config/clipper/clipper.h,
18367 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
18368 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
18369 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
18370 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
18371 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
18372 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
18373 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18374 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
18375 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
18376 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18377 config/sparc/sparc.h, config/stormy16/stormy16.h,
18378 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
18379 definitions and commented out definitions of obsolete macros.
18380 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
18381 of MAX_INT_TYPE_SIZE.
18382
14b3e8ef
UW
183832002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18384
18385 * config/s390/s390.c (s390_preferred_reload_class): Never
18386 return ADDR_REGS if it isn't a subset of the given class.
18387 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
18388 FP_REGS, but all superclasses as well.
18389
18390 * config/s390/s390.c (s390_function_profiler): Fix thinko.
18391
18392 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
18393 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
18394 must not be a const_int.
18395
a693284d
RH
183962002-01-08 Richard Henderson <rth@redhat.com>
18397
18398 * Makefile.in (toplev.o): Depend on options.h.
18399 (gcc.o): Depend on specs.h.
18400
b3ca30df
JJ
184012002-01-08 Jakub Jelinek <jakub@redhat.com>
18402
18403 * expr.c (store_expr): Convert VOIDmode constants back to target's
18404 mode.
18405
24dbb440
GP
184062002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18407
18408 * doc/invoke.texi: Markup gcc as @command. Refer to
18409 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
18410 of http://gcc.gnu.org/thanks.html.
18411
234e114c
DJ
184122002-01-08 Dale Johannesen <dalej@apple.com>
18413
18414 * config/rs6000/rs6000.md: Add missing int register
18415 target case to movdf_low.
18416
0d24f4d1
ZW
184172002-01-08 Zack Weinberg <zack@codesourcery.com>
18418
18419 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18420 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
18421 (cppinit.o): Depend on except.h.
18422 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18423 s-specs): New rules.
18424
18425 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18426 Don't create specs.h/options.h/gencheck.h here. Remove
18427 unnecessary variable settings from last argument of AC_OUTPUT.
18428 * config.in, configure: Regenerate.
18429 * intl.c: Hardcode package name as "gcc".
18430
18431 * cppinit.c: Include except.h.
18432 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18433 appropriate.
18434 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18435 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18436 (!)USING_SJLJ_EXCEPTIONS.
18437 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18438
ed722f66
JM
184392002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18440
18441 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18442 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18443 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18444 documentation of obsolete macros.
18445 * system.h: Poison these macros.
18446 * config/d30v/d30v.h, config/ns32k/encore.h,
18447 config/stormy16/stormy16.h: Remove definitions and commented out
18448 definitions of obsolete macros.
18449
31e5e29a
NP
18450Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
18451
18452 * objc/objc-act.c (handle_class_ref): Mark the declaration of
18453 %sobjc_class_ref_%s as used - to prevent unwanted compiler
18454 warnings.
18455
bc1fa59c
UW
184562002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18457
18458 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
18459 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
18460 to insn adjusting stack/frame pointer.
0d24f4d1 18461 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
bc1fa59c
UW
18462 accept operands that cause the insn to be non-splittable.
18463
a8086abf
GS
184642002-01-08 Graham Stott <grahams@redhat.com>
18465
18466 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
18467 (C_TYPE_FIELDS_VOLATILE): Likewise.
18468 (C_TYPE_BEING_DEFINED): Likewise.
18469 (C_IS_RESERVED_WORD): Likewise.
18470 (C_TYPE_VARIABLE_SIZE): Likewise.
18471 (C_DECL_VARIABLE_SIZE): Likewise.
18472 (C_MISSING_PROTOTYPE_WARNED): Likewise.
18473 (C_SET_EXP_ORIGINAL_CODE): Likewise.
18474 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
18475 parenthesis.
18476 (C_DECL_ANTICIPATED): Likewise.
18477 (c_build_type_variant): Add parenthesis.
18478
3f595aa1
JM
184792002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18480
18481 * gcc.c (option_map): Remove --version.
18482 (process_command): Handle -fversion following the GNU Coding
18483 Standards. Partially addresses PR other/704.
18484
5bc5a8f9
GS
184852002-01-08 Graham Stott <grahams@redhat.com>
18486
18487 * combine.c (combine_instructions): Fix typo.
18488
16ec4ebf
GS
184892002-01-08 Graham Stott <grahams@redhat.com>
18490
18491 * debug.h: Use "tree" and "rtx" throughout.
18492
18493 * debug.c: Likewise.
18494
4b69f385
NC
184952002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
18496
18497 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
18498 constant pool, use the pool's version of the symbol instead.
18499
57d1019b
RH
185002002-01-07 Richard Henderson <rth@redhat.com>
18501
18502 * regrename.c (find_oldest_value_reg): Ignore the value chain if
18503 the original register was copied in a mode with a fewer number of
18504 hard registers than the desired mode.
18505 (copyprop_hardreg_forward_1): Likewise.
18506 (debug_value_data): Fix loop test.
18507 * toplev.c (parse_options_and_default_flags): Reenable
18508 -fcprop-registers at -O1.
18509
185102002-01-07 Aldy Hernandez <aldyh@redhat.com>
fa066a23 18511
0d24f4d1
ZW
18512 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
18513 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
fa066a23 18514
0d24f4d1
ZW
18515 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
18516 predicates.
fa066a23 18517
0d24f4d1 18518 * config/rs6000/rs6000.md: Add altivec predicate patterns.
fa066a23 18519
8f949e7e
JDA
185202002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18521
18522 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
18523 (pa_output_function_prologue): Output local label at the beginning of
18524 the prologue when profiling.
18525 (hppa_profile_hook): Use the local label rather than the function label.
18526 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
18527
c62f2db5
AH
185282002-01-07 Aldy Hernandez <aldyh@redhat.com>
18529
0d24f4d1
ZW
18530 * config/rs6000/rs6000.c (print_operand): Remove extra space.
18531 (altivec_expand_unop_builtin): Fix thinko.
18532 (altivec_expand_binop_builtin): Same.
18533 (altivec_expand_ternop_builtin): Same.
18534 (altivec_expand_builtin): Same.
c62f2db5 18535
b5235ba7
RH
185362002-01-07 Richard Henderson <rth@redhat.com>
18537
18538 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
18539
7d8ac293
JM
185402002-01-07 Jason Merrill <jason@redhat.com>
18541
18542 * unwind-dw2.c (execute_cfa_program): Use < again.
18543
571a03b8
JJ
185442002-01-07 Jakub Jelinek <jakub@redhat.com>
18545
18546 * predict.c (combine_predictions_for_insn): Avoid division by zero.
18547
2e951384
JJ
185482002-01-07 Jakub Jelinek <jakub@redhat.com>
18549
18550 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
18551 Don't allow -1 - x -> ~x simplifications in the first pass.
18552
20e26713
AH
185532002-01-07 Aldy Hernandez <aldyh@redhat.com>
18554
0d24f4d1
ZW
18555 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
18556 arguments.
18557 (altivec_expand_binop_builtin): Same.
18558 (altivec_expand_unop_builtin): Same.
18559 (print_operand): Fix typo.
18560 (bdesc_1arg): Add vupk* variants.
20e26713 18561
0d24f4d1 18562 * rs6000.h (rs6000_builtins): Add vupk* enums.
20e26713 18563
0d24f4d1 18564 * rs6000.md: Add altivec_vupk* variants.
20e26713 18565
4dd57c18
JM
185662002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
18567
18568 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
18569 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
18570 and last update dates.
18571
0341c5d2
JJ
185722002-01-07 Janis Johnson <janis187@us.ibm.com>
18573
18574 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
18575
c7f3e0b0
MM
185762002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
18577
18578 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
18579 * config/avr/avr.h (CPP_SPEC): Likewise.
18580 (LINK_SPEC): Likewise.
18581 (CRT_BINUTILS_SPECS): Likewise.
18582 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
18583 * doc/invoke.texi (AVR Options): Document them.
18584
6ba4d630
JH
18585Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
18586
18587 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
18588 LABEL_NUSES.
18589
6253d571
GS
185902002-01-07 Graham Stott <grahams@redhat.com>
18591
0d24f4d1
ZW
18592 * config/i386/i386.h: Update copyright date.
18593 (HALF_PIC_PTR): Add parenthesis.
18594 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
18595 (CONSTANT_ALIGNMENT): Add parenthesis.
18596 (DATA_ALIGNMENT): Likewise.
18597 (LOCAL_ALIGNMENT): Likewise.
18598 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
18599 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
18600 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
18601 (HARD_REGNO_NREGS): Add paranethesis.
18602 (VALID_SSE_REG_MODE): Whitespace.
18603 (VALID_MMX_REG_MODE): Whitespace.
18604 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
18605 (ix86_hard_regno_mode_ok): Add parenthesis.
18606 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
18607 (RETURN_IN_MEMORY): Whitespace.
18608 (N_REG_CLASSES): Add parenthesis.
18609 (INTEGER_CLASS_P): Add parenthesis and wrap.
18610 (FLOAT_CLASS_P): Likewise.
18611 (SSE_CLASS_P): Likewise.
18612 (MMX_CLASS_P): Likewise.
18613 (MAYBE_INTEGER_CLASS_P): Likewise.
18614 (MAYBE_FLOAT_CLASS_P): Likewise.
18615 (MAYBE_SSE_CLASS_P): Likewise.
18616 (MAYBE_MMX_CLASS_P): Likewise.
18617 (Q_CLASS_P): Likewise.
18618 (GENERAL_REGNO_P): Uppercase macro parameter.
18619 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
18620 (FP_REGNO_P): Likewise.
18621 (ANY_FP_REGNO_P): Uppercase macro parameter.
18622 (SSE_REGNO_P): Likewise.
18623 (SSE_REGNO): Likewise.
18624 (SSE_REG_P): Likewise.
18625 (SSE_FLOAT_MODE_P): Likewise.
18626 (MMX_REGNO_P): Likewise.
18627 (MMX_REG_P):Likewise.
18628 (STACK_REG_P): Likewise.
18629 (NON_STACK_REG_P): Likewise.
18630 (STACK_TOP_P): Likewise.
18631 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
18632 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
18633 (SECONDARY_MEMORY_NEEDED): Likewise.
18634 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
18635 (MD_ASM_CLOBBERS): Whitespace and wrap.
18636 (MUST_PASS_IN_STACK): Whitespace and wrap.
18637 (RETURN_POPS_ARGS): Add parenthesis.
18638 (INIT_CUMULATIVE_ARGS): Likewise.
18639 (FUNCTION_ARG): Likewise.
18640 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
18641 (SETUP_INCOMING_VARARGS): Likewise.
18642 (BUILD_VA_LIST_TYPE): Add parenthesis.
18643 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
18644 parenthsis.
18645 (EXPAND_BUILTIN_VA_ARG): Likewise.
18646 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
18647 (INITIALIZE_TRAMPOLINE): Add parenthesis.
18648 (INITIAL_ELIMINATION_OFFSET): Likewise.
18649 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
18650 (REGNO_OK_FOR_BASE_P): Likewise.
18651 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
18652 (REGNO_OK_FOR_DIREG_P): Likewise.
18653 (REG_OK_FOR_INDEX_P): Whitespace.
18654 (REG_OK_FOR_BASE_P): Whitespace.
18655 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
18656 parenthesis.
18657 (FIND_BASE_TERM): Fix typo.
18658 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
18659 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
18660 (SYMBOLIC_CONST; Whitespace.
18661 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
18662 (ENCODE_SECTION_INFO): Whitespace.
18663 (FINALIZE_PIC): Remove do { ... } while (0).
18664 (PROMOTE_MODE): Wrap in do { ... } while (0).
18665 (CONST_COSTS): Whitespace.
18666 (RTX_COSTS): Add paramethesis, whitespace and wrap.
18667 (REGISTER_MOVE_COST): Add parenthesis.
18668 (MEMORY_MOVE_COST): Likewise.
18669 (EXTRA_CC_MODES): Whitespace.
18670 (SELECT_CC_MODE): Add parenthesis and whitespace.
18671 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
18672 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
18673 (ASM_OUTPUT_LABEL): Add paramethesis.
18674 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
18675 (ASM_OUTPUT_REG_POP): Likewise.
18676 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
18677 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
d9a5f180 18678
07933f72
GS
18679 * config/i386/i386.c: Update copyright.
18680 (CHECK_STACK_LIMIT): Add parenthesis.
18681 (AT_BP): Uppercase macro parameter.
18682 (x86_64_int_parameter_registers): Constify.
18683 (x86_64_int_return_registers): Likewise.
18684 (ix86_compare_op0): Use rtx.
18685 (construct_container): Constify INTREG parameter.
18686 (function_arg): Use rtx.
18687
0b4d32c9
GS
18688 * diagnostic.h: Update copyright date.
18689 (output_buffer_state): Add parenthesis.
18690 (output_buffer_format_args): Likewise.
18691
6253d571
GS
18692 * combine.c (combine_instructions): Replace XEXP (links, 0)
18693 with link.
18694
68f3f6f1
L
186952002-01-06 H.J. Lu <hjl@gnu.org>
18696
18697 * cfgcleanup.c (thread_jump): Fix 2 typos.
18698
186992002-01-06 Aldy Hernandez <aldyh@redhat.com>
480f7f3a 18700
0d24f4d1 18701 * config.gcc: Add support for --enable-altivec.
480f7f3a 18702
13b8c631
CR
187032002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18704
18705 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
18706
58ad89b1
JJ
187072002-01-06 Jakub Jelinek <jakub@redhat.com>
18708
18709 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
18710 __objc_class_name_*.
18711
e403b4bc
CR
187122002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18713
18714 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
18715
e41c7831
RH
187162002-01-06 Richard Henderson <rth@redhat.com>
18717
18718 * reorg.c (emit_delay_sequence): Remove death notes, not merely
18719 nop them out. Increment label reference count for REG_LABEL.
18720 (fill_slots_from_thread): Frob label reference count around
18721 delete_related_insns.
18722
3b3b1e32
RH
187232002-01-05 Richard Henderson <rth@redhat.com>
18724
18725 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
18726 jump threading.
18727
c28abdf0
RH
187282002-01-05 Richard Henderson <rth@redhat.com>
18729
18730 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
18731 * integrate.c (output_inline_function): Likewise.
18732 * toplev.c (rest_of_compilation): Do it here instead. Move call
18733 to remove_unnecessary_notes after emitting abstract instance.
18734 Force an emitted nested function to have its parent emited as well.
18735 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
18736 for null.
18737 (rtl_for_decl_location): Do not look at reload data structures
18738 before reload has run.
18739
c4f2c499
KH
187402002-01-05 Kazu Hirata <kazu@hxi.com>
18741
18742 * cse.c: Fix formatting.
18743 * dwarf2asm.c: Likewise.
18744 * dwarf2out.c: Likewise.
18745 * explow.c: Likewise.
18746 * expmed.c: Likewise.
18747 * function.c: Likewise.
18748 * gcov.c: Likewise.
18749 * gencheck.c: Likewise.
18750 * genrecog.c: Likewise.
18751 * ggc-common.c: Likewise.
18752 * ggc-page.c: Likewise.
18753 * global.c: Likewise.
18754
cf0d9408
KH
187552002-01-05 Kazu Hirata <kazu@hxi.com>
18756
18757 * combine.c: Fix formatting.
18758
bedca03a
CR
187592002-01-05 Craig Rodrigues <crodrigu@bbn.com>
18760
18761 PR middle-end/1557
18762 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
18763
0134bf2d
DE
187642002-01-05 David Edelsohn <edelsohn@gnu.org>
18765
18766 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
18767 as 1 for __powerpc64__ as well.
18768
18769 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
18770
18771 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
18772 return it.
18773
9ca88d5a
DB
187742002-01-05 Daniel Berlin <dan@dberlin.org>
18775
18776 * lcm.c: Revert change, due to performance regression it causes on
18777 SPEC because it's slightly more conservative (sigh, I hate
18778 edge-based LCM).
0d24f4d1 18779
1c570418
JH
18780Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
18781
18782 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
18783
d83bb9f7
NB
187842002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
18785
18786 * doc/cppinternals.texi: Update.
18787
3e0f61ac
HPN
187882002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
18789
18790 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
18791 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
18792 negatives.
18793 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
18794 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
18795 kludge for pre-october-14th mmix versions to handle new-found bug
18796 with PUSHJ/PUSHGO and the register stack.
18797 * config/mmix/mmix.h (struct machine_function): Rename member
18798 has_call_value_without_parameters to has_call_without_parameters.
18799 All referers changed.
18800 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
18801 TARGET_MASK_BRANCH_PREDICT): New macros.
18802 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
18803 -mno-reg-stack-fill-bug-workaround.
18804 * config/mmix/mmix.md ("call"): Set struct machine member
18805 has_call_without_parameters.
18806
4deaa2f8
JH
18807Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
18808
18809 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
18810
9f16e871
JH
18811Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
18812
18813 * cfgcleanup.c: Include tm_p.h
18814 (mark_effect): Fix handling of hard register; fix handling of SET
18815
96eb1157
KH
188162002-01-04 Kazu Hirata <kazu@hxi.com>
18817
18818 * config/h8300/h8300.md (anonymous patterns): Check that
18819 operands are registers before using REGNO on them.
18820
48180d68
RM
188212002-01-03 Roland McGrath <roland@frob.com>
18822
18823 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
18824
b0832fe1
JJ
188252002-01-04 Jakub Jelinek <jakub@redhat.com>
18826
18827 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
18828 * c-common.h (genrtl_expr_stmt_value): Likewise.
18829 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
18830 (expand_expr_stmt_value): Add maybe_last argument.
18831 Don't warn about statement with no effect if it is the last statement
18832 in expression statement.
18833 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
18834 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
18835 expand_expr_stmt_value.
18836 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
18837 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
18838 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
18839 as maybe_last to expand_expr_stmt_value.
18840
c1e14513
JL
18841Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
18842
0d24f4d1
ZW
18843 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
18844 be passed in, do not build it.
18845 (c_begin_if_stmt): New function.
18846 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18847 * c-common.h (c_expand_start_cond): Update prototype.
18848 (c_begin_if_stmt): Prototype new function.
18849 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18850 * c-parse.in (if_prefix): Use c_begin_if_stmt,
18851 c_begin_while_stmt and c_finish_while_stmt_cond.
c1e14513 18852
b6ec437a
WC
188532002-01-04 William Cohen <wcohen@redhat.com>
18854
18855 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
18856 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18857 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18858 * config/pa/som.h (ASM_FILE_START): Likewise.
18859
ead39bdf 188602002-01-04 Daniel Berlin <dan@cgsoftware.com>
517b711f
DB
18861
18862 * lcm.c: Include df.h.
18863 Add available_transfer_function prototype.
18864 (compute_available): Rework to use iterative dataflow framework.
18865 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
18866 with bb_info in df.h
18867 (available_transfer_function): New function.
18868
18869 * Makefile.in (lcm.o): add df.h to dependencies.
18870
551cc6fd
RH
188712002-01-04 Richard Henderson <rth@redhat.com>
18872
18873 * config/alpha/alpha.c (some_operand): Accept HIGH.
18874 (input_operand): Likewise; accept simple references to globals.
18875 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
18876 (alpha_const_double_ok_for_letter_p): Likewise.
18877 (alpha_extra_constraint): Likewise.
18878 (alpha_preferred_reload_class): Likewise. Do not force
18879 symbolic constants to memory.
18880 (alpha_legitimate_address_p): Accept simple references
18881 to small_symbolic_operand.
18882 (alpha_legitimize_address): New arg scratch. Be prepared to be
18883 called when no_new_pseudos. Emit simple symbolic references.
18884 Split integers into low, high, and rest.
18885 (alpha_expand_mov): Use alpha_legitimize_address.
18886 (some_small_symbolic_mem_operand): New.
18887 (split_small_symbolic_mem_operand): New.
18888 * config/alpha/alpha-protos.h: Update.
18889 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
18890 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
18891 (EXTRA_CONSTRAINT): Likewise.
18892 (PREFERRED_RELOAD_CLASS): Likewise.
18893 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
18894 (PREDICATE_CODES): Update.
18895 * config/alpha/alpha.md: New post-reload splitters to convert
18896 simplfied symbolic operands to the form that references $29.
18897 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
18898 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
18899
1eaea054
RH
189002002-01-03 Richard Henderson <rth@redhat.com>
18901
18902 * local-alloc.c (function_invariant_p): Update commentary.
18903
c4cc12b7
L
189042002-01-04 H.J. Lu <hjl@gnu.org>
18905
18906 * toplev.c (rest_of_compilation): Fix a typo when calling
18907 cleanup_cfg.
18908
173bf5be
KH
189092002-01-03 Kazu Hirata <kazu@hxi.com>
18910
18911 * c-common.c: Fix formatting.
18912 * diagnostic.c: Likewise.
18913 * doloop.c: Likewise.
18914 * dwarf2out.c: Likewise.
18915
187462ac
KH
189162002-01-03 Kazu Hirata <kazu@hxi.com>
18917
18918 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
18919 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
18920
5d8ebbd8
NB
189212002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18922
18923 * cpperror.c: Update comments and copyright.
18924 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
18925 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
18926
518c1311
JDA
189272002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
18928
18929 * collect2.c (main): Use strcmp when testing for "-shared".
18930
d15a58c0
NB
189312002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18932
18933 * cppmacro.c: Don't include intl.h. Update comments.
18934 (new_number_token): Allocate enough buffer for 64-bit unsigned
18935 integers; update prototype.
18936 * cppmain.c: Update comments.
18937
70f4f91c
WC
189382002-01-03 William Cohen <wcohen@redhat.com>
18939
18940 * function.h (struct function): Add profile.
18941 (current_function_profile): New.
18942 doc/extend.texi: Update documentation.
18943 * final.c (final_start_function): Use current_function_profile
18944 instead of profile_flag.
18945 (profile_after_prologue): Likewise.
18946 * function.c (expand_function_start): Likewise.
18947 (expand_function_start): Likewise.
c4cc12b7 18948 * config/alpha/alpha.c (direct_call_operand):
70f4f91c
WC
18949 (alpha_does_function_need_gp): Likewise.
18950 (alpha_expand_prologue): Likewise.
18951 * config/arm/arm.c (arm_expand_prologue): Likewise.
18952 thumb_expand_prologue: Likewise.
18953 * config/d30v/d30v.c (d30v_stack_info): Likewise.
18954 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
18955 (fr30_expand_prologue): Likewise.
18956 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
18957 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
18958 * config/i386/i386.h (FINALIZE_PIC): Likewise.
18959 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
18960 * config/i960/i960.c (i960_output_function_prologue): Likewise.
18961 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
18962 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
18963 (m32r_expand_prologue): Likewise.
18964 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
18965 (m88k_expand_prologue): Likewise.
18966 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
18967 * config/mips/mips.c (compute_frame_size): Likewise.
18968 (mips_expand_prologue): Likewise.
18969 (mips_can_use_return_insn): Likewise.
18970 * config/pa/elf.h (ASM_FILE_START): Likewise.
18971 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18972 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18973 * config/pa/som.h (ASM_FILE_START): Likewise.
18974 * config/romp/romp.c (romp_using_r14): Likewise.
18975 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
18976 (rs6000_stack_info): Likewise.
18977 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2fd17409 18978 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
70f4f91c
WC
18979 * config/v850/v850.c (compute_register_save_size): Likewise.
18980
cb1ac742
JJ
189812002-01-03 Jakub Jelinek <jakub@redhat.com>
18982
18983 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
18984 gen_lowpart_common fails, use gen_lowpart_SUBREG.
18985
61d951df 189862002-01-03 Turly O'Connor <turly@apple.com>
cb1ac742 18987
61d951df
TC
18988 * darwin.c (machopic_output_possible_stub_label): Don't generate
18989 stub routines for pseudo-stubs which we've just defined.
18990
505ddab6
KH
189912002-01-03 Kazu Hirata <kazu@hxi.com>
18992
18993 * builtins.c: Fix formatting.
18994 * c-typeck.c: Likewise.
18995 * combine.c: Likewise.
18996 * expr.c: Likewise.
18997 * loop.c: Likewise.
18998
b7e30d8a
AS
189992002-01-03 Andreas Schwab <schwab@suse.de>
19000
19001 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
19002 and return true if _cpp_push_next_buffer pushed a new include
19003 file.
19004 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
19005 _cpp_pop_file_buffer did not push a new file.
19006 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
19007
ff81832f
EC
190082002-01-02 Eric Christopher <echristo@redhat.com>
19009
19010 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
19011 FIND_REG_INC_NOTE call. Update copyright.
19012 * loop.c (canonicalize_condition): Ditto.
19013 * reorg.c (delete_scheduled_jump): Ditto.
19014
8e42ace1
KH
190152002-01-03 Kazu Hirata <kazu@hxi.com>
19016
19017 * gcse.c: Fix formatting.
19018
fb2bf631
GS
190192002-01-03 Graham Stott <grahams@redhat.com>
19020
19021 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
19022 forward defs for struct tags rtx_def, union_tree, rtvec_def
6253d571 19023 also output corresponding typedefs for rtx, tree, and rtvec.
fb2bf631
GS
19024
19025 * system.h: Move forward defs for struct tags rtx_def, union_tree,
19026 rtvec_def along with corresponding typedefs for rtx, tree, and
6253d571 19027 rtvec to config.h, hconfig.h, tconfig.h.
fb2bf631
GS
19028
190292002-01-03 Graham Stott <grahams@redhat.com>
b9daac31
GS
19030
19031 * tree.h: Update copyright date.
19032 (IS_EXPR_CODE_CLASS): Add parenthesis.
19033 (TREE_SET_CODE): Add whitespace.
19034 (TREE_CHECK): Add parenthesis.
19035 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
19036 (CST_OR_CONSTRUCTOR_CHECK):
19037 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
19038 (TREE_SYMBOL_REFERENCED): Whitespace.
19039 (INT_CST_LT): Likewise.
19040 (INT_CST_LT_UNSIGNED): Likewise.
19041 (tree_real_cst): Unwrap comment.
19042 (tree_string): Likewise.
19043 (tree_complex): Likewise.
19044 (IDENTIFIER_POINTER): correct cast.
19045 (SAVE_EXPR_CONTEXT): Whitespace.
19046 (EXPR_WFL_FILENAME_NODE): Likewise.
19047 (EXPR_WFL_FILENAME): Remove parenthesis.
19048 (DECL_ORIGIN): Add parenthesis.
19049 (DECL_FROM_INLINE): Use NULL_TREE.
19050 (build_int_2): Whitespace.
19051 (build_type_variant): Add parenthesis.
19052
19053 * gcc/jcf-parse.c: Update copyright date.
19054 (yyparse): Constify resource_filename.
19055
f52eda29
GS
190562002-01-03 Graham Stott <grahams@redhat.com>
19057
19058 * rtl.h: Update copyright date.
19059 (RTL_CHECK1): Wrap long line.
19060 (RTL_CHECK2): Likewise.
19061 (RTL_CHECKC1): Wrap long line and whitespace.
19062 (RTL_CHECKC2): Likewise.
19063 (XWINT): Whitespace.
19064 (XINT): Likewise.
19065 (XSTR): Likewise.
19066 (XEXP): Likewise.
19067 (XVEC): Likewise.
19068 (XMODE): Likewise.
19069 (XBITMAP): Likewise.
19070 (XTREE): Likewise.
19071 (XBBDEF): Likewise.
19072 (XTMPL): Likewise.
19073 (X0WINT): Likewise.
19074 (X0INT):Likewise.
19075 (X0UINT): Likewise.
19076 (X0STR): Likewise.
19077 (X0EXP): Likewise.
19078 (X0VEC): Likewise.
19079 (X0MODE): Likewise.
19080 (X0BITMAP): Likewise.
19081 (X0TREE): Likewise.
19082 (X0BBDEF): Likewise.
19083 (X0ADVFLAGS): Likewise.
19084 (X0CSELIB): Likewise.
19085 (X0MEMATTR): Likewise.
19086 (XCWINT): Likewise.
19087 (XCINT): Likewise.
19088 (XCUINT): Likewise.
19089 (XCSTR): Likewise.
19090 (XCEXP): Likewise.
19091 (XCVEC): Likewise.
19092 (XCMODE): Likewise.
19093 (XCBITMAP): Likewise.
19094 (XCTREE): Likewise.
19095 (XCBBDEF): Likewise.
19096 (XCADVFLAGS): Likewise.
19097 (XCCSELIB): Likewise.
19098 (XC2EXP): Likewise.
19099 (INSN_UID): Likewise.
19100 (PREV_INSN): Likewise.
19101 (PATTERN): Likewise.
19102 (INSN_CODE): Likewise.
19103 (PUT_REG_NOTE_KIND): Likewise.
19104 (CODE_LABEL_NUMBER): Likewise.
19105 (NOTE_SOURCE_FILE): Likewise.
19106 (NOTE_BLOCK): Likewise.
19107 (NOTE_EH_HANDLER): Likewise.
19108 (NOTE_RANGE_INFO): Likewise.
19109 (NOTE_LIVE_INFO): Likewise.
19110 (NOTE_BASIC_BLOCK): Likewise.
19111 (NOTE_EXPECTED_VALUE): Likewise.
19112 (NOTE_LINE_NUMBER): Likewise.
19113 (LABEL_NAME): Likewise.
19114 (LABEL_NUSES): Likewise.
19115 (LABEL_ALTERNATE_NAME): Likewise.
19116 (ADDRESSOF_DECL): Likewise.
19117 (JUMP_LABEL): Likewise.
19118 (LABEL_NEXTREF): Likewise.
19119 (REGNO): Likewise.
19120 (ORIGINAL_REGNO: Likewise.
19121 (HARD_REGISTER_NUM_P): Add parenthesis.
19122 (SUBREG_REG): Whitespace.
19123 (SUBREG_BYTE): Likewise.
19124 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
19125 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
19126 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
19127 (ASM_OPERANDS_INPUT_VEC): Likewise.
19128 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
19129 (ASM_OPERANDS_INPUT): Likewise.
19130 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
19131 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
19132 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
19133 (ASM_OPERANDS_INPUT_MODE): Likewise.
19134 (ASM_OPERANDS_SOURCE_FILE): Likewise.
19135 (ASM_OPERANDS_SOURCE_LINE): Likewise.
19136 (MEM_SET_IN_STRUCT_P): Minor reformat.
19137 (TRAP_CONDITION): Whitespace.
19138 (TRAP_CODE): Likewise.
19139 (COND_EXEC_TEST): Likewise.
19140 (COND_EXEC_CODE): Likewise.
19141 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
19142 (PHI_NODE_P): Add parenthesis.
19143 (plus_constant): Whitespace and add parenthesis.
19144
e03f5d43
KH
191452002-01-03 Kazu Hirata <kazu@hxi.com>
19146
19147 * config/avr/avr.c: Fix comment typos.
19148 * config/c4x/c4x.md: Likewise.
19149 * config/dsp16xx/dsp16xx.h: Likewise.
19150 * config/dsp16xx/dsp16xx.md: Likewise.
19151 * config/i386/i386.md: Likewise.
19152 * config/ia64/ia64.c: Likewise.
19153 * config/m32r/m32r.h: Likewise.
19154 * config/m68hc11/m68hc11.md: Likewise.
19155 * config/mmix/mmix.c: Likewise.
19156 * config/mn10200/mn10200.c: Likewise.
19157 * config/romp/romp.c: Likewise.
19158 * config/sh/sh.c: Likewise.
19159 * config/stormy16/stormy16.c: Likewise.
19160 * config/stormy16/stormy16.h: Likewise.
19161 * config/stormy16/stormy16.md: Likewise.
19162
97e300e9
GS
191632002-01-03 Graham Stott <grahams@redhat.com>
19164
19165 * loop.h: Update copyright date.
0d24f4d1
ZW
19166 (LOOP_MOVABLES): Fix typo.
19167 (LOOP_REGS): Likewise.
19168 (LOOP_IVS): Likewise.
ff81832f 19169
745b26b3
GS
191702002-01-03 Graham Stott <grahams@redhat.com>
19171
19172 * cppinit.c: Update copyright date.
19173 Don't include output.h
19174 * Makefile.in: Update copyright date.
19175 Update dependency.
19176
0a379b7a
CR
191772002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
19178
19179 PR c/5226
19180 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
19181 (-pthread) Add to RS/6000 options.
19182
a8154559
KH
191832002-01-02 Kazu Hirata <kazu@hxi.com>
19184
19185 * except.c: Fix comment typos.
19186 * loop.c: Likewise.
19187 * varasm.c: Likewise.
19188 * doc/tm.texi: Fix a typo.
19189
e6ecc89b
JJ
191902002-01-02 Jakub Jelinek <jakub@redhat.com>
19191
19192 * c-typeck.c (output_init_element): Allow initializing static storage
19193 duration objects with compound literals.
19194
d1094b40
RH
191952002-01-02 Richard Henderson <rth@redhat.com>
19196
19197 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
19198 after abusing it.
19199
0c5d8c82
KG
192002002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19201
5e65297b
KG
19202 * gcc.c (default_compilers): Const-ify.
19203 * mips-tdump.c (stab_names): Likewise.
19204 * mips-tfile.c (map_coff_types, map_coff_storage,
19205 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
19206 pseudo_ops_t, pseudo_ops): Likewise.
19207 * protoize.c (default_include): Likewise
19208
0c5d8c82
KG
19209 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
19210 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
19211 Add array size in declaration.
19212 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
19213 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
19214 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
19215 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
19216 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
19217 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
19218 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
19219 emtens, make_nan): Const-ify.
19220 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
19221 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
19222
817e13c4
JM
192232002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
19224
19225 * config.gcc (ia64-*-*): Set extra_headers.
19226 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
19227 * config/alpha/t-osf: Remove.
19228 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
19229
98095e2b
DE
192302002-01-02 David Edelsohn <edelsohn@gnu.org>
19231
19232 * config/rs6000/t-aix43: Revert previous change.
19233
a4200657
JM
192342002-01-02 Jason Merrill <jason@redhat.com>
19235
19236 * c-decl.c (c_expand_body): Call outlining_inline_function when
19237 emitting an inline function out of line.
19238
54ba1f0d
RH
192392002-01-02 Richard Henderson <rth@redhat.com>
19240
19241 * dwarf2out.c (limbo_die_node): Add created_for member.
19242 (new_die): New argument created_for. Update all callers.
19243 (mark_limbo_die_list): New.
19244 (dwarf2out_init): Register limbo_die_list as a root.
19245 (dwarf2out_finish): Force insert limbo dies into their function
19246 context.
19247
323728aa
NS
192482002-01-02 Nathan Sidwell <nathan@codesourcery.com>
19249
19250 PR c++/5089
19251 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
19252
aefc5826
KH
192532002-01-02 Kazu Hirata <kazu@hxi.com>
19254
19255 * config/h8300/fixunssfsi.c: Update copyright.
19256 Fix comment typos.
19257 Fix formatting.
19258 * config/h8300/h8300.c: Update copyright.
19259 Eliminate warnings.
19260
b1c9bc51
KH
192612002-01-02 Kazu Hirata <kazu@hxi.com>
19262
19263 * config/romp/romp.c: Fix comment formatting.
19264 * config/romp/romp.h: Likewise.
19265 * config/romp/romp.md: Likewise.
19266 * config/s390/s390.c: Likewise.
19267 * config/stormy16/stormy16.c: Likewise.
19268 * config/stormy16/stormy16.h: Likewise.
19269
1574ef13
AO
192702002-01-02 Alexandre Oliva <aoliva@redhat.com>
19271
19272 * c-common.h (genrtl_expr_stmt_value): Declare.
19273 * c-semantics.c (genrtl_goto_stmt): Redirect to...
19274 (genrtl_goto_stmt_value): ... this new function. Pass new
19275 argument down to expand_expr_stmt_value, taking
19276 TREE_ADDRESSABLE into account.
19277 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
19278 STMT_EXPR as addressable, i.e., one whose result we want.
19279 * expr.c (expand_expr): Don't save expression statement value
19280 of labeled_blocks or loop_exprs.
19281 * stmt.c (expand_expr_stmt): Redirect to...
19282 (expand_expr_stmt_value): ... this new function. Use new
19283 argument to tell whether to save expression value.
19284 (expand_end_stmt_expr): Reset last_expr_type and
19285 last_expr_value if we don't have either.
19286 * tree-inline.c (declare_return_variable): Mark its use
19287 statement as addressable.
19288 * tree.h: Document new use of TREE_ADDRESSABLE.
19289 (expand_expr_stmt_value): Declare.
19290
252b88f7
TR
192912002-01-01 Tom Rix <trix@redhat.com>
19292
19293 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
19294 rs6000_emit_allocate_stack.
19295
29f7a208
JM
192962002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
19297
19298 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
19299 ${srcdir}/ginclude/ to every entry in extra_headers.
19300 * configure: Regenerate.
19301 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
19302 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
19303 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
19304 * ginclude/proto.h: Rename to config/convex/proto.h.
19305
2cc2d4bb
RK
19306Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19307
19308 * attribs.c (handle_vector_size_attribute): Use host_integerp
19309 and tree_int_cst; remove warnings.
19310 * caller-save.c (insert_restore): Add cast to get rid of warning.
19311 (insert_save): Likewise.
19312 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
19313 * regmove.c (find_matches): Add temporary var to kill a warning.
19314
f01c9bcd
DR
193152002-01-01 Douglas B Rupp <rupp@gnat.com>
19316
16b61764
DR
19317 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
19318 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
19319 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
19320 (vms-dwarf2eh.o): Add Makefile rule.
19321 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
19322 * config/alpha/vms-dwarf2eh.asm: New file.
19323
f01c9bcd
DR
19324 * gcc.c (delete_if_ordinary): Delete all versions.
19325
91312b81
HPN
193262002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
19327
19328 * config/mmix/mmix.md: Update FIXME to not mention
19329 define_constants.
19330 (MMIX_rJ_REGNUM): New define_constants constant.
19331 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
19332 "*movdicc_real"): Adjust contraints formatting.
19333 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
19334 for branch prediction.
19335 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
19336 output template.
19337 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
19338 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
19339 number. Delete related FIXMEs.
19340 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
19341 from number to MMIX_rJ_REGNUM.
19342 (TARGET_MASK_BRANCH_PREDICT): New.
19343 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
19344 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
19345 value. Add -mbranch-predict and -mno-branch-predict.
19346 (TARGET_VERSION): Drop date.
19347 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
19348 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
19349 for finding out global symbols.
19350 (mmix_asm_output_labelref): Revert condition for global symbol.
19351 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
19352 (mmix_print_operand_punct_valid_p): A '+' is valid.
19353
619acae7 19354See ChangeLog.6 for earlier changes.
This page took 2.454846 seconds and 5 git commands to generate.