]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
news.texi: Deprecate frontend version number; update list of fixed bugs.
[gcc.git] / gcc / ChangeLog
CommitLineData
d29350c0
MM
12002-04-13 Mark Mitchell <mark@codesourcery.com>
2
3 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4 defined, and __gnu_hurd__ wherever __GNU__ is defined.
5 * arm/linux-elf.h: Likewise.
6 * cris/aout.h: Likewise.
7 * cris/linux.h: Likewise.
8 * i370/linux.h: Likewise.
9 * i386/gnu.h: Likewise.
10 * i386/linux-aout.h: Likewise.
11 * i386/linux-oldld.h: Likewise.
12 * i386/linux.h: Likewise.
13 * i386/linux64.h: Likewise.
14 * ia64/linux.h: Likewise.
15 * m68k/linux-aout.h: Likewise.
16 * m68k/linux.h: Likewise.
17 * mips/linux.h: Likewise.
18 * pa/pa-linux.h: Likewise.
19 * pj/linux.h: Likewise.
20 * rs6000/sysv4.h: Likewise.
21 * s390/linux.h: Likewise.
22 * sh/linux.h: Likewise.
23 * sparc/linux-aout.h: Likewise.
24 * sparc/linux.h: Likewise.
25 * sparc/linux64.h: Likewise.
26 * xtensa/linux.h: Likewise.
27
fc552851
RS
282002-04-13 Richard Sandiford <rsandifo@redhat.com>
29
30 * stmt.c (check_unique_operand_names): Expect operand names to
31 be strings rather than identifiers. Use simple_cst_equal to
32 compare them.
33 (resolve_operand_name_1): Make same identifier to string change here.
34 * c-parse.in (asm_operand): Convert a named operand into a string.
35 * cp/parse.y (asm_operand): Likewise.
36
1d405c5e
AS
372002-04-13 Andreas Schwab <schwab@suse.de>
38
39 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
40
c740732f
MM
412002-04-12 Mark Mitchell <mark@codesourcery.com>
42
43 Revert these changes:
44
45 2002-04-06 Mark Mitchell <mark@codesourcery.com>
46
47 PR c++/5571
48 * stor-layout.c (layout_decl): Reset the RTL for the decl.
49
3fc602a0
RH
502002-04-12 Richard Henderson <rth@redhat.com>
51
52 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
53 (sparc*-*-solaris): Clean up header files.
54 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
55 and plan on generating 64-bit code.
56 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
57 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
58 * config/sparc/sol2-sld-64.h: Rename ...
59 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
60 for AS_SPARC64_FLAG not defined.
61 * config/sparc/sol2-gld-bi.h: New.
62 * config/sparc/sol2-sld.h: Remove.
63 * config/sparc/sol26-sld.h: New.
64 * config/sparc/sol2.h: Tidy comments.
65 * doc/install.texi: Document sparc-solaris configury changes.
66
2f15e255
RH
672002-04-12 Richard Henderson <rth@redhat.com>
68
69 * recog.c (offsettable_address_p): Match the logic in adjust_address.
70
71 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
72 in 64-bit mode only. Use only for 32-bit or MEDLOW.
73
cc8475cb
RO
742002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
75
76 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
77
6f133a4a
JL
78Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
79
ef1b8858 80 * pa.c (pa_can_combine_p): Call extract_insn before calling
6f133a4a
JL
81 constrain_operands.
82
1329e600
DR
832002-04-12 Douglas B Rupp <rupp@gnat.com>
84
85 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
86 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
87 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2d424b9f 88 (CPP_PREDEFINES): Handle __declspec.
1329e600
DR
89 * config/i386/t-interix (USER_H): Remove.
90
0339d239
DD
912002-04-12 DJ Delorie <dj@redhat.com>
92
93 * integrate.c (compare_blocks): Make comparisons safe for when
94 sizeof(int) < sizeof(char *).
95 (find_block): Likewise.
96
cc4d5fec
JH
972002-04-12 Jan Hubicka <jh@suse.cz>
98 David Edelsohn <edelsohn@gnu.org>
99
100 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
101 registers.
102 (symbol_ref_operand): New.
103 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
104 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
105
93215a1b
AS
1062002-04-12 Andreas Schwab <schwab@suse.de>
107
108 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
109 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
110 overrides the definition in config/svr4.h.
111
1d80248e
EN
1122002-04-12 Eric Norum <eric.norum@usask.ca>
113
114 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
115 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
116 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
117 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
118 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
119 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
120 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
121 definitions to config/rtems.h and make the targets more similar.
122
fa1591cb
RK
123Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
124
fa06ab5c
RK
125 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
126 POINTERS_EXTEND_UNSIGNED.
127 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
128 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
129
fa1591cb
RK
130 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
131 not specified.
132
12e85a0e
R
133Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
134
135 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
136 depends on TARGET_SHMEDIA, not TARGET_SH5.
137
1ab3e58a
HPN
1382002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
139
140 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
141 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
142
18778292
R
143Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
144
145 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
146 no r0 clobber.
147
9002507c
AS
1482002-04-12 Andreas Schwab <schwab@suse.de>
149
150 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
151
9be40833
RH
1522002-04-12 Richard Henderson <rth@redhat.com>
153
154 PR bootstrap/4191
155 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
156
157 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
158 modes spanning multiple hard regs.
159
160 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
161
3d9268b6
JDA
1622002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
163
164 * pa.c (pa_output_function_prologue): Don't accumulate the total
165 number of code bytes when using TARGET_64BIT, or gas, SOM and not
166 the portable runtime.
167 (output_deferred_plabels): Handle 64bit plabels.
168 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
169 generating pic code using the GAS assembler for object formats that
170 are not SOM (ie., ELF32 and ELF64).
171 (output_millicode_call): Check attribute type if attribute length is 28.
172 Likewise use $PIC_pcrel$0. Only call get_attr_length and
173 dbr_sequence_length once.
174 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
175 dbr_sequence_length once.
176 * pa.h (TARGET_SOM): Define if not defined.
177 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
178 with GAS and not SOM.
179 (jump, call_internal_reg, call_value_internal_reg): Likewise.
180 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
181
d360fd18
DB
1822002-04-11 David O'Brien <obrien@FreeBSD.org>
183
184 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
185 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
186 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
187 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
188 elfos.h and dbxelf.h values are fine now.
189 * config/i386/freebsd.h, config/alpha/freebsd.h
190 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
191
5b8fcab6
DB
1922002-04-11 David O'Brien <obrien@FreeBSD.org>
193
194 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
195 or set Acpu or Amachine. Reformat.
196 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
197 define.
198 (LINK_SPEC): Do not need to undef.
199 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
200 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
201 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
202 define.
203 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
204 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
205 (LINK_SPEC): Do not need to undef.
206 (DONT_USE_BUILTIN_SETJMP): Do not define.
207 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
208 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
209 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
210 Remove trailing spaces.
211 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
212 __ELF__, or set Acpu or Amachine. Reformat.
213 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
214 define.
215
fee42cc1
DB
2162002-04-11 David O'Brien <obrien@FreeBSD.org>
217
218 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
219 all other *-*-freebsd* targets.
220
77a403e4
RH
2212002-04-11 Richard Henderson <rth@redhat.com>
222
223 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
224
cf0005c6
DB
2252002-04-11 David O'Brien <obrien@FreeBSD.org>
226
227 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
228 Include {cpu}/{cpu}.h thru tm_file.
229 (alpha*-*-linux*ecoff): Remove target.
230 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
231 (LINK_SPEC): Remove, is not OS independent.
232 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
233 (LINK_SPEC): Do not need to #undef any longer.
234 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
235 any longer.
236 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
237 __ELF__.
238 (LINK_SPEC): Moved here from alpha/elf.h.
239 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
240 SUB_CPP_PREDEFINES.
241 * config/alpha/linux-ecoff.h: Remove.
242 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
243 (CPP_SPEC): Define _POSIX_SOURCE as needed.
244 (CPP_SUBTARGET_SPEC): Do not define.
245 (LINK_SPEC): Do not need to #undef any longer.
246 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
247 * config/alpha/vms.h: Likewise.
248
9be40833 2492002-04-11 Richard Sandiford <rsandifo@redhat.com>
7825d1cf
RS
250
251 * doc/extend.texi: Remove old claim that typedefs cannot have
252 an alignment attribute.
253
010f87c4
JJ
2542002-04-11 Jakub Jelinek <jakub@redhat.com>
255
256 PR optimization/6177
257 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
258 bitpos is 0 and bitsize CONCAT size.
259
578fc63d
JJ
2602002-04-11 Jakub Jelinek <jakub@redhat.com>
261
262 PR c/6223
263 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
264
bf9b85ce
DB
2652002-04-10 David O'Brien <obrien@FreeBSD.org>
266
267 * config/alpha/freebsd.h: Minor reformatting.
268 (CPP_SPEC): Define ELF and add cpp_subtarget.
269 (ASM_SPEC): No longer needed.
270
7425707d
RH
2712002-04-11 Richard Henderson <rth@redhat.com>
272
273 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
274 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
275 (dimode mem/zero splitter): New.
276
1a05e874
HPN
2772002-04-11 Hans-Peter Nilsson <hp@axis.com>
278
279 * config/cris/cris.c (cris_override_options): Tweak error message
280 for PIC not implemented.
281
282 * config/cris/cris.h: Tweak comments related to parameter-passing.
283
284 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
285
6f3d0447
RH
2862002-04-10 Richard Henderson <rth@redhat.com>
287
288 * except.c (add_ehl_entry): Allow duplicates after landing pad
289 creation.
290
174bf2b1
DE
2912002-04-10 David Edelsohn <edelsohn@gnu.org>
292
293 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
294
03f10472
TM
2952002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
296
297 * c-decl.c (c_init_decl_processing): Move generation of
298 decls for g77_integer_type_node and friends from here ...
299 * c-common.c (c_common_nodes_and_builtins): ... to here.
300
2f460a0a
UW
3012002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
302
303 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
304 is only used as frame pointer when frame_pointer_needed is true.
305
0be5cf85
RE
3062002-04-10 Richard Earnshaw <rearnsha@arm.com>
307
308 PR target/817
309 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
310 for the fact that the pool entry uses two words.
311 (movdf_hard_insn): Similarly. Also, ADR instruction can span
312 1k bytes.
313 (movdf_soft_insn): Similarly.
314 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
315 for the fact that the pool entry uses three words.
316
bf6d4777
RS
3172002-04-10 Richard Sandiford <rsandifo@redhat.com>
318
319 * config/mips/mips.c (mips_va_arg): When using the struct version
320 of the EABI va_list, allow arguments in the register save area to
321 take up less room than a stack argument.
322
c2e9dc85
RH
3232002-04-10 Richard Henderson <rth@redhat.com>
324
325 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
326 if EXPAND_INITIALIZER.
327
bc8e8e97
RH
3282002-04-09 Richard Henderson <rth@redhat.com>
329
330 * config/alpha/alpha.md (movdi_er_maybe_g): New.
331 * config/alpha/alpha.c (alpha_expand_mov): Use it.
332
a6a063b8
AM
3332002-04-10 Alan Modra <amodra@bigpond.net.au>
334
335 PR optimization/6233
336 * rtlanal.c (pure_call_p): New function.
337 * rtl.h (pure_call_p): Declare.
338 * loop.c (prescan_loop): Use it to set has_nonconst_call.
339 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
340
7b2e1077
EC
3412002-04-09 Eric Christopher <echristo@redhat.com>
342
343 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
344 information to .comm directive.
345
d8a50944
RH
3462002-04-09 Richard Henderson <rth@redhat.com>
347
348 PR c/5078
349 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
350
6a58eee9
RH
3512002-04-09 Richard Henderson <rth@redhat.com>
352
353 * basic-block.h (flow_delete_block_noexpunge): Declare.
354 (expunge_block_nocompact): Declare.
355 * cfg.c (expunge_block_nocompact): Split out from ...
356 (expunge_block): ... here.
357 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
358 (flow_delete_block_noexpunge): Split out from ...
359 (flow_delete_block): ... here.
360 * cfgcleanup.c (delete_unreachable_blocks): Compact while
361 removing dead blocks.
362 * except.c (exception_handler_labels): Remove.
363 (exception_handler_label_map): New.
364 (struct eh_region): Add aka member.
365 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
366 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
367 (for_each_eh_label, for_each_eh_label_1): New.
368 (init_eh): Register exception_handler_label_map.
369 (free_eh_status): Use free_region.
370 (find_exception_handler_labels): Use the map, not the list.
371 (remove_exception_handler_label): Likewise.
372 (maybe_remove_eh_handler): Likewise.
373 (remove_eh_handler): Use the region aka bitmap.
374 * except.h (exception_handler_labels): Remove.
375 (for_each_eh_label): Declare.
376 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
377 * loop.c (invalidate_loops_containing_label): New.
378 (find_and_verify_loops): Use it. Use for_each_eh_label.
379 * sched-rgn.c (is_cfg_nonregular): Use
380 current_function_has_exception_handlers.
381
b47374fa
RH
3822002-04-09 Richard Henderson <rth@redhat.com>
383
384 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
385 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
386 Do not return changed status.
387 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
388 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
389 New functions that do return changed status.
390 * sbitmap.h: Update decls.
391 * gcse.c, lcm.c: Use _cg functions as needed.
392
1951818c
R
393Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
394
395 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
396 (sh64-*-elf*, sh-*-rtemself*): Likewise.
397 * config/sh/embed_bb.c: New file.
398 * config/sh/embed-elf.h: New file.
399 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
400 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
401 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
402 __PTRDIFF_TYPE__ .
403 (SUBTARGET_CPP_PTR_SPEC): Don't define.
404 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
405 Add subtarget_asm_endian_spec.
406 (ASM_SPEC): Use subtarget_asm_endian_spec.
407 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
408 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
409 (WCHAR_UNSIGNED): Define.
410 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
411 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
412 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
413 Fix value.
414 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
415 (sh_adjust_cost): Likewise.
416 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
417 __PTRDIFF_TYPE__ .
418 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
419 (WCHAR_TYPE_SIZE): Likewise.
420 (ASM_SPEC): Use subtarget_asm_endian_spec.
421 (SH_ELF_WCHAR_TYPE): #undef/ #define.
422 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
423 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
424 (MAX_WCHAR_TYPE_SIZE): Don't #define .
425 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
426 (USER_LABEL_PREFIX): Don't #undef /#define .
427 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
428 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
429 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
430 (ASM_SPEC): Likewise.
431 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
432 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
433 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
434 (LIB2FUNCS_EXTRA): Define.
435 * t-sh64 (LIB2FUNCS_EXTRA): Define.
436 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
437 (LIB1ASMFUNCS_CACHE): Define.
438 (LIB2FUNCS_EXTRA): Redefine empty.
439
34295799
RH
4402002-04-08 Richard Henderson <rth@redhat.com>
441
442 * reorg.c (get_branch_condition): Use reversed_comparison_code.
443
e8766a39
SC
4442002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
445
446 * config/m68hc11/larith.asm (__map_data_section): Fix condition
447 and optimize for size.
448 (__do_global_ctors): Fix pointer comparison.
449 (__do_global_dtors): Likewise.
450
f451b552
DM
4512002-04-09 David S. Miller <davem@redhat.com>
452
453 * config/sparc/sparc.c (sparc_extra_constraint_check): New
454 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
455 allow reloading pseudos.
456 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
457 * config/sparc/sparc-protos.h: Declare it.
458
459 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
460 unsigned comparison warning.
461 (output_restore_regs): Mark leaf_function as unused.
462
1ce7f3c2
RK
463Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
464
465 * expr.c (is_aligning_offset): New function.
466 (expand_expr, case COMPONENT_EXPR): Call it.
467
7a31a340
DM
4682002-04-08 David S. Miller <davem@redhat.com>
469
470 PR target/6082
471 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
472
473 Make init_priority work on Sparc when using GNU ld.
474 * config/sparc/linux.h, config/sparc/linux64.h,
475 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
476 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
477 * config/sparc/sol2-gld.h: New file to do the same.
478 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
479 sparc/sol2-gld.h to tm_file.
480
481 PR optimization/4328
482 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
483 * doc/md.texi: Document it.
484 * config/sparc/sparc.md (movdi_insn_sp64_novis,
485 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
486 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
487 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
488 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
489
11579f33
AJ
4902002-04-08 Andreas Jaeger <aj@suse.de>
491
492 * stmt.c (expand_asm_operands): Revert last patch from Richard
493 Henderson.
494
b57215d9
GP
4952002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
496
497 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
498 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
499
5002002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
501
502 * doc/contrib.texi (Contributors): Add David O'Brien.
503
534d0cc0
AM
5042002-04-08 Alan Modra <amodra@bigpond.net.au>
505
506 * configure.in (auto-build.h): Use target_alias and build_alias
507 when running configure.
508 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
509 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
510 * configure: Regenerate.
511
19fe522a
DM
5122002-04-07 David S. Miller <davem@redhat.com>
513
514 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
515
bf2d0b8e
JDA
5162002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
517
518 PR 5933
519 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
520 generating 32-bit pic code.
521
477cdac7
JT
5222002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
523
524 * cppinit.c (cpp_create_reader): Initialize
525 discard_comments_in_macro_exp.
526 (COMMAND_LINE_OPTIONS): Add "-CC" option.
527 (cpp_handle_option): Handle "-CC" option.
528 * cpplex.c (save_comment): If saving a C++ comment in
529 a directive, convert it to a C comment.
530 (_cpp_lex_direct): Pass second comment start character to
531 save_comment to indicate comment type.
532 * cpplib.c (_cpp_handle_directive): If processing
533 a "#define" directive and discard_comments_in_macro_exp
534 is false, re-enable saving of comments.
535 (lex_macro_node): If discard_comments_in_macro_exp is false,
536 discard any comments before the macro identifier.
537 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
538 member.
539 * cppmacro.c (cpp_get_token): If expanding a macro while
540 processing a directive, discard any comments we might encounter.
541 (parse_params): If discard_comments_in_macro_exp is false,
542 ignore comments in the macro parameter list.
543 * gcc.c (cpp_unique_options): Add "-CC" option.
544 (option_map): Map "--comments-in-macros" to "-CC".
545 * doc/cppopts.texi: Document "-CC" option.
546 * f/lang-specs.h: Add "-CC" option.
547 * testsuite/gcc.dg/cpp/maccom1.c: New test.
548 * testsuite/gcc.dg/cpp/maccom2.c: New test.
549 * testsuite/gcc.dg/cpp/maccom3.c: New test.
550 * testsuite/gcc.dg/cpp/maccom4.c: New test.
551 * testsuite/gcc.dg/cpp/maccom5.c: New test.
552 * testsuite/gcc.dg/cpp/maccom6.c: New test.
553
f1526122
JDA
5542002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
555
556 PR middle-end/6180
557 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
558
b1896e61
MM
5592002-04-06 Mark Mitchell <mark@codesourcery.com>
560
0154eaa8
MM
561 PR c++/5571
562 * stor-layout.c (layout_decl): Reset the RTL for the decl.
563
b1896e61
MM
564 PR opt/5120
565 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
566 RTX_UNCHANGING_P for the functions arguments when a tail call
567 is made.
568
b0148884
JM
5692002-04-06 Jason Merrill <jason@redhat.com>
570
571 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
572 (parse_options_and_default_flags): Set them appropriately.
573 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
574
392fc5b0
HPN
5752002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
576
577 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
578 here.
579
580 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
581 semicolon.
582
583 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
584 types come in by-reference. Fix typo in comment.
585
2d69e3cb
DM
5862002-04-05 David S. Miller <davem@redhat.com>
587
588 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
589 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
590 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
591 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
592
5932002-04-05 David S. Miller <davem@redhat.com>
594
595 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
596 are not going to emit return instructions, emit at least a nop
597 for the sake of sane backtraces.
598
5f9fb0e3
RH
5992002-04-05 Richard Henderson <rth@redhat.com>
600
601 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
602
49f37a0d
JJ
6032002-04-05 Jakub Jeilnek <jakub@redhat.com>
604
605 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
606
974a3101
AO
6072002-04-05 Alexandre Oliva <aoliva@redhat.com>
608
609 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
610 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
611 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
612
2e04a694
AS
6132002-04-05 Andreas Schwab <schwab@suse.de>
614
a40179bd 615 * c-convert.c: Include c-common.h.
2e04a694
AS
616 * Makefile.in (c-convert.o): Updated.
617
1f785b7c
JJ
6182002-04-05 Jakub Jelinek <jakub@redhat.com>
619
620 * mklibgcc.in: Use separate libgcc.map for each multilib.
621 * Makefile.in (distclean): Don't remove libgcc.map here.
622
4d2fb38b
JJ
6232002-04-05 Jakub Jelinek <jakub@redhat.com>
624
625 * Makefile.in (s-mlib): Handle --disable-multilib by separate
626 genmultilib invocation.
627
bb63e5a0
RS
6282002-04-04 Richard Sandiford <rsandifo@redhat.com>
629
630 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
631 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
632 to num_gprs for symmetry.
633 * config/mips/mips.c: Adjust accordingly.
634
8ab80eaa
NB
6352002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
636
637 * c-common.c (truthvalue_conversion): Rename, update.
638 * c-common.h (c_common_truthvalue_conversion): New.
639 * c-convert.c (convert): Update.
640 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
641 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
642 * c-typeck.c (build_binary_op, build_unary_op,
643 build_conditional_expr): Update.
644 * fold-const.c (constant_boolean_node, fold): Use langhook.
645 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
646 * langhooks.h (struct lang_hooks): New hook.
647 * stmt.c (expand_decl_cleanup): Use langhook.
648 * tree.h (truthvalue_conversion): Remove.
649objc:
650 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
651
a2e9374a
AM
6522002-04-05 Alan Modra <amodra@bigpond.net.au>
653
654 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
655 Add rules to make null object file.
656
64d08263
JB
6572002-04-04 Jim Blandy <jimb@redhat.com>
658
659 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
660 macro formal parameter names.
661
aa7634dd
DM
6622002-04-04 David S. Miller <davem@redhat.com>
663
664 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
665
ecc114f7
RH
6662002-04-04 Richard Henderson <rth@redhat.com>
667
668 PR middle-end/5099
669 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
670 Support copies into and out of memory. Don't accept allows_reg
671 and allows_mem as gospel.
672
c4484b8f
RH
6732002-04-04 Richard Henderson <rth@redhat.com>
674
675 PR opt/6165
676 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
677 (write_dependence_p): Likewise.
678
39002160
RH
6792002-04-04 Richard Henderson <rth@redhat.com>
680
681 * predict.c (estimate_bb_frequencies): Do frequency calculation
682 with a volatile temporary.
683
f53ebe71
UW
6842002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
685
686 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
687
15e0ecab
JJ
6882002-04-04 Jakub Jelinek <jakub@redhat.com>
689
690 PR c++/6119
691 * final.c (final_start_function): Don't bump profile_label_no here...
692 (final_end_function): ...but here.
693
ffd386b0
JJ
6942002-04-04 Jakub Jelinek <jakub@redhat.com>
695
696 * config/sparc/sparc.md (pic): New attribute.
697 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
698 into stack slots.
699 (split after do_builtin_setjmp_setup): New.
700
8b156b3e
JJ
7012002-04-04 Jakub Jelinek <jakub@redhat.com>
702
703 PR fortran/6106
704 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
705 change.
706
014c0998
JJ
7072002-04-04 Jakub Jelinek <jakub@redhat.com>
708
709 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
710 UNITS_PER_WORD for zero sized aggregates.
711
4d8611d9
DM
7122002-04-03 David S. Miller <davem@redhat.com>
713
714 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
715 one-character spec for this, just use %(link_gcc_c_sequence).
716
b03ad99d
DM
7172002-04-03 David S. Miller <davem@redhat.com>
718
719 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
720 handling.
721
823fbbce
JDA
7222002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
723
724 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
725 (DWARF_FRAME_RETURN_COLUMN): Move.
726 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
727 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
728 * pa.c (except.h, predict.h): Include.
729 (FRP): Delete.
730 (store_reg_modify, set_reg_plus_d): Revise prototypes.
731 (output_ascii): Add cast.
732 (store_reg_modify): Revise to add frame notes.
733 (set_reg_plus_d): Likewise.
734 (compute_frame_size): Include space for eh data registers in frame if
735 the current function calls eh_return.
736 (hppa_expand_prologue): Ensure register %r2 is saved if the current
737 function calls eh_return. Save eh data registers if the current
738 function calls eh_return. Fix code to add frame notes. Emit
739 blockage to prevent insns with frame notes being scheduled in the
740 delay slot of calls.
741 (hppa_expand_epilogue): Restore eh data registers and do final stack
742 adjustment if the current function calls eh_return. Don't add frame
743 notes.
744 (output_call): Revise for change in length of call insn. Don't do
745 return pointer adjustment for an unconditional jump in the delay slot
746 of a call when using frame notes.
747 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
748 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
749 (ARG_POINTER_CFA_OFFSET): Define.
750 * pa.md (return_external_pic): New pattern.
751 (prologue): Correct formatting. Use return_external_pic if current
752 function calls eh_return.
753 (call_internal_symref, call_value_internal_symref,
754 sibcall_internal_symref, sibcall_value_internal_symref): Change default
755 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
756 respectively.
757 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
758
759 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
760 list of targets to check using "nop" insn.
761 * configure: Rebuilt.
762
4078e224
AM
7632002-04-04 Alan Modra <amodra@bigpond.net.au>
764
765 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
766
bbd7687d
DM
7672002-04-03 David S. Miller <davem@redhat.com>
768
769 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
770 library sequence passed to the linker.
771 (LINK_COMMAND_SPEC): Use it.
772 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
773 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
774 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
775
659e5a7a
JM
7762002-04-03 Jason Merrill <jason@redhat.com>
777
778 * except.c (struct eh_status): Remove protect_list.
779 (begin_protect_partials, end_protect_partials): Remove.
780 (add_partial_entry): Remove.
781 * except.h: Remove prototypes.
782
783 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
784 expand_decl_cleanup_eh.
785
786 PR c++/5636
787 * tree.h (CLEANUP_EH_ONLY): New macro.
788 * stmt.c (expand_decl_cleanup_eh): New fn.
789 (expand_cleanups): Check CLEANUP_EH_ONLY.
790 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
791 Use expand_decl_cleanup_eh.
792 (expand_stmt): Adjust.
793 * c-common.h: Adjust prototype.
794
053d3344
HPN
7952002-04-04 Hans-Peter Nilsson <hp@axis.com>
796
797 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
798 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
799 (cris_target_asm_function_epilogue): Ditto.
800 (cris_initial_frame_pointer_offset): Ditto.
801 (cris_simple_epilogue): Ditto.
802 (cris_expand_builtin_va_arg): Variable-size types come in
803 by-reference.
804
61ab5260
DM
8052002-04-03 David S. Miller <davem@redhat.com>
806
807 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
808 little-endian.
809 (set_fast_math): Correct 'fsr' type.
810
ef4f94ac
RH
8112002-04-03 Richard Henderson <rth@redhat.com>
812
36c2272c 813 PR opt/3569
ef4f94ac
RH
814 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
815 * toplev.c (check_global_declarations): Use it.
816 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
817 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
818 (LANG_HOOKS_DECLS): Add it.
819 * langhooks.c (lhd_warn_unused_global_decl): New.
820 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
821 * c-objc-common.c (c_warn_unused_global_decl): New.
822 * c-tree.h (c_warn_unused_global_decl): Declare.
823 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
824
599bba86
NB
8252002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
826
827 * langhooks-def.h (lhd_set_decl_assembler_name,
828 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
829 (LANG_HOOKS_INITIALIZER): Update.
830 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
831 * langhooks.h (struct lang_hooks): New hook.
832 * tree.c (set_decl_assembler_name): Move to langhooks.c.
833 (lang_set_decl_assembler_name): Remove.
834 (init_obstacks): Don't set hook.
835 (decl_assembler_name): New function.
836 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
837 (decl_assembler_name): New.
838 (lang_set_decl_assembler_name): Remove.
839
cf7b8b0d
JJ
8402002-04-03 Jakub Jelinek <jakub@redhat.com>
841
842 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
843 works properly with .hidden symbols.
844 * configure: Rebuilt.
845 * config.in: Rebuilt.
846 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
847 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
848 properly with .hidden symbols.
849
faf6db38
JJ
8502002-04-03 Jakub Jelinek <jakub@redhat.com>
851
852 PR middle-end/6102
853 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
854 USE argument.
855
68c17f30
RH
8562002-04-03 Richard Henderson <rth@redhat.com>
857
858 PR opt/4120
859 * sched-rgn.c (sets_likely_spilled): New.
860 (sets_likely_spilled_1): New.
861 (add_branch_dependences): Use it.
862
6584b4aa
RH
8632002-04-02 Richard Henderson <rth@redhat.com>
864
865 PR opt/4311
866 * loop.h (LOOP_FIRST_PASS): New.
867 * loop.c (strength_reduce): Mind it when deciding to unroll.
868 * toplev.c (rest_of_compilation): Set it.
869
0acf409f
DM
8702002-04-02 David S. Miller <davem@redhat.com>
871
872 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
873 mems_ok_for_ldd_peep when the order of the loads being examined
874 is reversed.
875 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
876 existing comment to increase comprehension of this situation.
877
85654444
ZW
8782002-04-02 Zack Weinberg <zack@codesourcery.com>
879
880 * config/sh/sh.md: Don't use union real_extract.
881
543828ca
RH
8822002-04-02 Richard Henderson <rth@redhat.com>
883
884 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
885
39ed301b
DB
8862002-04-02 David O'Brien <obrien@FreeBSD.org>
887
888 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
889 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
890 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
891 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
892 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
893 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
894 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
895 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
896 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
897 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
898 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
899 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
900 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
901 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
902 Include as many configury headers via tm_file as possible. This
903 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
904 * config/openbsd-oldgas.h: New file.
905 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
906 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
907 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
908 config/i386/i386-coff.h, config/i386/i386-interix.h,
909 config/i386/iscdbx.h, config/i386/linux-aout.h,
910 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
911 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
912 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
913 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
914 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
915 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
916 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
917 config/i386/vxi386.h: Do not directly include configury headers.
918 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
919 Directly include configury headers that are no longer automatically
920 included by the above headers.
921 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
922 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
923 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
924 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
925 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
926 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
927 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
928 (TARGET_VERSION): Define.
929 * config/i386/beos-elf.h, config/i386/freebsd.h,
930 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
931 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
932 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
933 config/i386/sco5.h, config/i386/sysv4.h
934 (TARGET_VERSION): Do not need to protect.
935 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
936 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
937 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
938 config/i386/i386-interix.h, config/i386/linux-aout.h,
939 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
940 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
941 (YES_UNDERSCORES): Do not define - not needed.
942 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
943 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
944 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
945 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
946 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
947 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
948 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
949 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
950
9432c136
EB
9512002-04-02 Eric Botcazou <ebotcazou@multimania.com>
952 Richard Henderson <rth@redhat.com>
953
954 PR c/5484
955 * function.c (assign_temp): Accept either type or decl argument.
956 Detect variables whose size is too large to fit into an integer.
957 * stmt.c (expand_decl): Pass the decl, not the type.
958
058b1275
DB
9592002-04-02 David O'Brien <obrien@FreeBSD.org>
960
961 * protoize.c: Match include directory usage with cppdefault.c.
962
5add6d1a 9632002-04-03 Jeffrey A Law (law@redhat.com)
9be40833 964 Hans-Peter Nilsson <hp@bitrange.com>
5add6d1a
JL
965
966 * combine.c (simplify_comparison): Avoid narrowing a comparison
967 with a paradoxical subreg when doing so would drop signficant bits.
968
1e533e4b
SE
9692002-04-02 Steve Ellcey <sje@cup.hp.com>
970
971 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
972 if POINTERS_EXTEND_UNSIGNED is defined.
973
7a145e92
RH
9742002-04-02 Richard Henderson <rth@redhat.com>
975
976 PR opt/3967
977 * local-alloc.c (contains_replace_regs): LO_SUM may contain
978 replace regs.
979
3a079822
RH
9802002-04-02 Richard Henderson <rth@redhat.com>
981
982 * doc/standards.texi: Document required freestanding libc entry points.
983
c94ccb87
AM
9842002-04-02 Alan Modra <amodra@bigpond.net.au>
985
986 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
987 associated splitter. Remove MQ constraint.
988 (ctrdi_internal4): Correct CCmode clobber.
989
fe660a1a
JDA
9902002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
991
992 * milli64.S ($$dyncall): New function.
993 * t-linux (LIB1ASMFUNCS): Revise module list.
994 (LIB1ASMSRC): Use pa/milli64.S.
995
eadc0202
RH
9962002-04-02 Richard Henderson <rth@redhat.com>
997
998 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
999 rename solaris_sys_varargs_h.
1000
a1471322
RK
1001Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1002
1003 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1004 the same mode as its component.
1005
c8b94768
RH
10062002-04-02 Richard Henderson <rth@redhat.com>
1007
1008 PR opt/190
1009 * final.c (this_is_asm_operands): Export.
1010 * output.h (this_is_asm_operands): Declare.
1011 * config/i386/i386.c (print_operand): Error odd asm operands.
1012
161eb4fc
RH
10132002-04-02 Richard Henderson <rth@redhat.com>
1014
1015 PR opt/420
1016 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1017
b88a94c6
RH
10182002-04-01 Richard Henderson <rth@redhat.com>
1019
1020 PR target/1538
1021 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1022 * fixinc/fixincl.x: Rebuild.
1023
72e32876
RH
10242002-04-01 Richard Henderson <rth@redhat.com>
1025
1026 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1027 (atomic_alloc, atomic_free): New.
1028 (SIZE, MASK_FOR, PTR_IN): New.
1029 (emergency_reg_state, emergency_reg_state_free): New.
1030 (emergency_labeled_state, emergency_labeled_state_free): New.
1031 (reg_state_alloced, labeled_state_alloced): New.
1032 (alloc_reg_state, free_reg_state): New.
1033 (alloc_label_state, free_label_state, free_label_states): New.
1034 (push, pop, dup_state_stack, free_state_stack): Use them.
1035 (desc_label_state): Likewise.
1036 (uw_frame_state_for): Free label states and state stack.
1037 (uw_update_reg_address): Eliminate warnings.
1038
84d76074
VM
10392002-04-01 Vladimir Makarov <vmakarov@redhat.com>
1040
1041 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9be40833 1042 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
84d76074 1043
dffd7eb6
NB
10442002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1045
1046 * c-decl.c (grokdeclarator): Update.
1047 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1048 * c-tree.h (c_mark_addressable): New.
1049 * c-typeck.c (default_function_array_conversion, build_unary_op,
1050 build_array_ref, convert_for_assignment): Update.
1051 (mark_addressable): Rename.
1052 * calls.c (try_to_integrate, expand_call): Use langhook.
1053 * expr.c (expand_expr): Use langhook.
1054 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1055 * langhooks.h (struct lang_hooks): New hook.
1056 * stmt.c (expand_asm_operands): Use langhook.
1057 * tree.h (mark_addressable): Remove.
1058objc:
1059 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1060
544ef5b5
BW
10612002-04-01 Bob Wilson <bob.wilson@acm.org>
1062
9be40833
RH
1063 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1064 in previous change.
544ef5b5 1065
bcf88f9b
BW
10662002-04-01 Bob Wilson <bob.wilson@acm.org>
1067
1068 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1069 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1070
ceef8ce4
NB
10712002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1072
1073 * c-common.c (unsigned_conversion_warning, convert_and_check,
1074 unsigned_type, signed_type, shorten_compare,
1075 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1076 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1077 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1078 New.
1079 * c-decl.c (grokdeclarator): Update.
1080 * c-format.c (check_format_types): Update.
1081 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1082 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1083 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1084 * convert.c (convert_to_integer): Use new hooks.
1085 * expmed.c (make_tree): Use new hooks.
1086 * expr.c (store_expr): Use new hooks.
1087 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1088 all_ones_mask_p, unextend, fold): Use new hooks.
1089 * langhooks.h (struct lang_hooks_for_types): New hooks.
1090 * tree.h (signed_or_unsigned_type, signed_type,
1091 unsigned_type): Remove.
1092objc:
1093 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1094 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1095
1d9ad0e0
RH
10962002-03-31 Richard Henderson <rth@redhat.com>
1097
1098 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1099 (desc_frgr_mem): Fix reference to f16-f31.
1100
d544bc39
KG
11012002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1102
1103 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1104 RTVEC_ELT): Const-ify.
d8750784
KG
1105 * varray.h (VARRAY_CHECK): Const-ify.
1106 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1107 ggc_mark_rtvec, ggc_mark): Const-ify.
d544bc39 1108
b18101c7
NB
11092002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1110
1111 * diagnostic.c: Include langhooks-def.h.
1112 * Makefile.in (diagnostic.o): Update.
1113
48a7a235
NB
11142002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
1115
1116 * c-common.c (c_unsafe_for_reeval): Rename.
1117 * c-common.h (c_unsafe_for_reeval): Rename.
1118 * c-decl.c (finish_incomplete_decl): Rename.
1119 (c_init_decl_processing): Don't set langhook.
1120 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1121 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1122 * c-objc-common.c (c_objc_common_init): Don't set langhook.
1123 * c-tree.h (finish_incomplete_decl): Rename.
1124 * langhooks-def.h (lhd_unsafe_for_reeval): New.
1125 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1126 (LANG_HOOKS_INITIALIZER): Update.
1127 * langhooks.c (lhd_unsafe_For_reeval): New.
1128 * langhooks.h (struct langhooks): New hooks.
1129 * toplev.c (incomplete_decl_finalize_hook): Remove.
1130 (wrapup_global_declarations): Update.
1131 * tree.c (lang_unsafe_for_reeval): Remove.
1132 (unsafe_for_reeval): Update.
1133 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1134 Remove.
1135objc:
1136 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1137 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1138
7cb32822
NB
11392002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
1140
1141 * diagnostic.c (print_error_function): Remove.
1142 (default_print_error_function): Rename.
1143 (report_error_function): Update.
1144 * diagnostic.h (print_error_function): Remove.
1145 (default_print_error_function): Remove.
1146 * langhooks-def.h (struct diagnostic_context): Predeclare.
1147 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1148 (LANG_HOOKS_INITIALIZER): Update.
1149 * langhooks.h (struct diagnostic context): Predeclare.
1150 (struct lang_hooks): New hook.
1151
1db02437
FS
11522002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1153
1154 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1155 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1156 !flag_pic.
1157 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1158 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1159 of PIC_OFFSET_TABLE_REGNUM thruout.
1160 * config/rs6000/rs6000.md: Likewise.
1161 * config/rs6000/darwin.h: Likewise.
1162
3bf1e984
RK
1163Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1164
1165 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1166 unsigned HOST_WIDE_INT, not unsigned int.
1167
0864c526
JJ
11682002-03-31 Jakub Jelinek <jakub@redhat.com>
1169
1170 PR middle-end/6096, middle-end/6098, middle-end/6099
1171 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1172 CODE_LABELs.
1173 (fill_slots_from_thread): Likewise.
1174
105b2084
JJ
11752002-03-31 Jakub Jelinek <jakub@redhat.com>
1176
1177 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1178 floating fields in float regs.
1179 (function_arg_record_value_2): Likewise.
1180
db08fddf
HPN
11812002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
1182
1183 * config/mmix/mmix.md (define_constants): Remove misleading
1184 FIXME. Add MMIX_fp_rO_OFFSET.
1185 ("nonlocal_goto_receiver"): Don't have stack-frame address of
1186 saved rO as part of the pattern. Remove FIXME.
1187 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
1188 here, at output-time.
1189
4f31cce8
JJ
11902002-03-31 Jakub Jelinek <jakub@redhat.com>
1191
1192 PR middle-end/6100
1193 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1194 REG_BR_PRED.
1195 (output_v9branch): Likewise.
1196
ba2b7435
AO
11972002-03-31 Alexandre Oliva <aoliva@redhat.com>
1198
1199 * gcc.c: Revert previous patch for now.
1200 * config/i386/djgpp.h: Likewise.
1201
aa66aa5f 12022002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8f840f57
HPN
1203
1204 * config/mmix/crti.asm (_init): Register _fini with atexit.
1205 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1206
41ba8a20
RH
12072002-03-31 Richard Henderson <rth@redhat.com>
1208
1209 PR target/3997
1210 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1211 (ASM_OUTPUT_DEF_FROM_DECLS): New.
1212
adc186ef
RH
12132002-03-31 Richard Henderson <rth@redhat.com>
1214
1215 * libgcc2.c (__bb_exit_func): Make static.
1216
9be40833 1217 * config/alpha/alpha.md (trap): New.
a7648399 1218
9602f5a0
RH
12192002-03-31 Richard Henderson <rth@redhat.com>
1220
1221 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1222 promoted argument types; build trap.
1223 (expand_builtin_trap): New.
1224 (expand_builtin): Use it.
1225 * stmt.c (expand_nl_goto_receivers): Likewise.
1226 * expr.h (expand_builtin_trap): Declare.
1227 * libfuncs.h (LTI_abort, abort_libfunc): New.
1228 * optabs.c (init_optabs): Init abort_libfunc.
1229
1a0a7539
AO
12302002-03-31 Alexandre Oliva <aoliva@redhat.com>
1231
1232 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1233 (LINK_COMMAND_SPEC): ... from here.
7b2e1077 1234 (init_gcc_specs): Duplicate it here too, omitting
1a0a7539
AO
1235 shared_name in the second copy.
1236 (init_spec): Test for duplicate
1237 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1238
b5de1a27
DM
12392002-03-30 David S. Miller <davem@redhat.com>
1240
1241 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1242 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1243
78414d74 12442002-03-30 Roger Sayle <roger@eyesopen.com>
9be40833 1245 Richard Henderson <rth@redhat.com>
78414d74 1246
9be40833
RH
1247 * regmove.c (combine_stack_adjustments_for_block): Avoid
1248 emitting a stack adjustment of zero bytes. Let delete_insn
1249 update bb->head.
78414d74 1250
33074e5f
RH
12512002-03-30 Richard Henderson <rth@redhat.com>
1252
1253 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1254 (sparc_emitting_epilogue): New.
1255 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1256 * config/sparc/sparc-protos.h: Update.
1257 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1258 (TARGET_SWITCHES): Update.
1259 * config/sparc/sparc.md (return): Remove.
1260 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1261 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1262 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1263 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1264 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1265 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1266 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1267 Remove MASK_EPILOGUE.
1268 * doc/invoke.texi: Update.
1269
606cc056
DB
12702002-03-30 Daniel Berlin <dan@dberlin.org>
1271
1272 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1273 CPP will start the file for us.
7b2e1077 1274
bdbe5b8d
RH
12752002-03-30 Richard Henderson <rth@redhat.com>
1276
1277 PR target/5446
1278 * config/ia64/ia64.c (group_barrier_needed_p): Special case
1279 prologue_allocate_stack.
1280 (ia64_single_set): Use insn codes for recognition of special
1281 cases, not rtl matching.
1282 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1283
4ab95d82
JH
1284Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
1285
1286 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1287
89a8b315
RH
12882002-03-30 Richard Henderson <rth@redhat.com>
1289
1290 PR target/6032
1291 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1292 or -fomit-frame-pointer with profiling.
1293 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1294 (FUNCTION_PROFILER): Do nothing.
1295 (PROFILE_HOOK): New.
1296 * config/sparc/sparc.c (sparc_override_options): Don't check
1297 code models for profiling.
1298 (sparc_function_profiler): Remove.
1299 (sparc_profile_hook): New.
1300 * config/sparc/sparc-protos.h: Update.
1301
30984c57
JJ
13022002-03-30 Jakub Jelinek <jakub@redhat.com>
1303
1304 PR optimization/6086
1305 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1306 of SUBREG of volatile MEM or because the MEM was mode dependent,
1307 return CLOBBER instead of unmodified SUBREG.
1308
1540f9eb
JH
1309Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
1310
89a8b315
RH
1311 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1312 when not optimizing.
1540f9eb
JH
1313
1314 * toplev.c (rest_of_compilation): Cann mark_constant_function
1315 only when optimizing.
1316
89a8b315
RH
1317 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1318 are NULL.
1540f9eb
JH
1319
1320 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1321 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1322 (try_optimize_cfg): clear all AUX fields.
1323
1324 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1325 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1326 (ix86_address_cost): Be prepared for SUBREGed registers.
1327 (legitimate_address_p): Accept SUBREGed registers.
1328
70d95bac
RH
13292002-03-29 Richard Henderson <rth@redhat.com>
1330
1331 PR target/5672
1332 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1333
d3294cd9
FS
13342002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1335
1336 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1337 for aggregate and TFmode types.
1338
a106c875
HPN
13392002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
1340
1341 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1342
7d7a5d6f
RH
13432002-03-29 Richard Henderson <rth@redhat.com>
1344
6e2d670b 1345 PR target/5886
7d7a5d6f
RH
1346 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1347 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1348
30c99a84
RH
13492002-03-29 Richard Henderson <rth@redhat.com>
1350
6e2d670b 1351 PR target/6041
30c99a84
RH
1352 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1353 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1354 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1355 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1356 conditional.
1357 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1358
02a566dc
DJ
13592002-03-29 Dale Johannesen <dalej@apple.com>
1360
1361 * loop.c (combine_movables): Do allow combination of pseudos.
1362
bc3a44db
LR
13632002-03-29 Loren J. Rittle <ljrittle@acm.org>
1364
1365 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1366 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1367 No functional change except ...
1368 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
1369 * doc/install.texi (*-*-freebsd*): Document port configuration.
1370
b0c48229
NB
13712002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1372
1373 * Makefile.in (convert.o, calls.o, expmed.o): Update.
1374 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1375 Use new hooks.
1376 * builtin-types.def (BT_PTRMODE): Update.
1377 * c-common.c (type_for_size): Rename c_common_type_for_size.
1378 (type_for_mode): Similarly.
1379 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1380 Use new hook.
1381 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1382 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1383 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1384 Redefine.
1385 * c-typeck.c (common_type, comptypes, default_conversion):
1386 Use new hooks.
1387 * calls.c: Include langhooks.h.
1388 (emit_library_call_value_1): Use new hooks. Avoid redundant
1389 calls.
1390 * convert.c: Include langhooks.h
1391 (convert_to_pointer, convert_to_integer): Use new hooks.
1392 * except.c (init_eh): Similarly.
1393 * expmed.c: Include langhooks.h.
1394 (expand_mult_add): Use new hooks.
1395 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1396 try_casesi): Similarly.
1397 * fold-const.c (optimize_bit_field_compare, make_range,
1398 decode_field_reference, fold_truthop, fold): Similarly.
1399 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1400 put_var_into_stack): Similarly.
1401 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1402 LANG_HOOKS_TYPE_FOR_SIZE): New.
1403 (LANG_HOOKS_TYPES_INITIALIZER): Update.
1404 * langhooks.h (lang_hooks_for_types): New hooks.
1405 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1406 * tree.c (get_unwidened, get_narrower): Similarly.
1407 * tree.h (type_for_mode, type_for_size): Remove.
1408 * varasm.c (force_const_mem): Use new hooks.
1409 * utils2.c (nonbinary_modular_operation): Update.
1410objc:
1411 * objc-act.c (handle_impent): Update.
1412 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1413 Redefine.
1414
e206a74f
SE
14152002-03-29 Steve Ellcey <sje@cup.hp.com>
1416
1417 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1418 * config/ia64/ia64.c (basereg_operand): New.
1419 * config/ia64/ia64-protos.h (basereg_operand): Declare.
1420 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1421
7d9b6378
HPN
14222002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
1423
1424 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1425 unwind information when frame_pointer_needed.
1426 (mmix_assemble_integer): Tweak wording in comment.
1427
f1e639b1
NB
14282002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1429
1430 * Makefile.in (except.o): Update.
1431 * except.c: Include langhooks.h.
1432 (init_eh): Use langhook.
1433 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1434 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
1435 (LANG_HOOKS_INITIALIZER): Update.
1436 * langhooks.h (lang_hooks_for_types): New.
1437 (struct lang_hooks): Add it.
1438 * tree.c (make_lang_type_fn, make_lang_type): Remove.
1439 * tree.h (make_lang_type_fn, make_lang_type): Remove.
1440config:
1441 * alpha/alpha.c: Include langhooks.h.
1442 (alpha_build_va_list): Use langhook.
1443 * d30v/d30v.c: Include langhooks.h.
1444 (d30v_build_va_list): Use langhook.
1445 * i386/i386.c: Include langhooks.h.
1446 (ix86_build_va_list): Use langhook.
1447 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1448 * s390/s390.c: Include langhooks.h.
1449 (s390_build_va_list): Use langhook.
1450 * stormy16/stormy16.c: Include langhooks.h.
1451 (stormy16_build_va_list): Use langhook.
1452
f17f9332
JJ
14532002-03-29 Jakub Jelinek <jakub@redhat.com>
1454
1455 PR c++/5964
1456 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1457 attributes.
1458 (length): Compute variable length for branches/calls/jumps here.
1459 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1460 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1461 define branch_type attribute.
1462 (divsi3_sp32): Maximum length is 6 not 7.
1463 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1464 call_address_untyped_struct_value_sp32,
1465 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1466 * config/sparc/sparc.c (empty_delay_slot): New function.
1467 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1468 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1469
0a0440c9
JJ
14702002-03-29 Jakub Jelinek <jakub@redhat.com>
1471
1472 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1473 nonzero_bits if not needed.
1474 (nonzero_bits) [XOR]: Likewise.
1475 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1476 reg_last_set_mode and mode are both MODE_INT, but not equal.
1477 (record_value_for_reg): Compute reg_last_set_nonzero_bits
1478 in nonzero_bits_mode for MODE_INT modes.
1479
c9045f47
RH
14802002-03-28 Richard Henderson <rth@redhat.com>
1481
1482 PR target/5715
1483 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
1484 to GAS. Correct drift between alternatives.
1485
f8ed1958
RH
14862002-03-28 Richard Henderson <rth@redhat.com>
1487
1488 PR target/6087
1489 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
1490
54e20385
LR
14912002-03-28 Alexandre Oliva <aoliva@redhat.com>
1492
1493 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
1494 emulation to the linker.
1495
14962002-03-28 Loren J. Rittle <ljrittle@acm.org>
1497
1498 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
1499 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1500
8bc52806
JL
1501Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
1502
1503 * combine.c (simplify_and_const_int): Make sure to apply mask
1504 when force_to_mode returns a constant integer. PR3311.
1505
279dccc5
JDA
15062002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1507
1508 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
1509
62aaa62c
GP
15102002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1511
1512 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
1513 and Objective-C Dialect Options.
1514
b8de5050
RH
15152002-03-28 Richard Henderson <rth@redhat.com>
1516
1517 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
1518 comparison should be done vs !=0 not >0 return code. Tidy cases.
1519
619708cc
RH
15202002-03-28 Richard Henderson <rth@redhat.com>
1521
1522 * c-decl.c (finish_function): New arg can_defer_p. Pass it
1523 on to c_expand_body.
1524 * c-tree.h (finish_function): Update decl.
1525 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
1526
b1d874d7
JH
1527Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
1528
1529 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
1530
f5eb5fd0
JH
1531Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
1532
1533 * rtlanal.c: Include flags.h
1534 (may_trap_p): Do not mark FP operations if trapping
1535 if !flag_trapping_math
1536 * Makefile.in (rtlanal.o): Add dependency on flag.h
1537 * ifcvt.c (noce_operand_ok): Avoid the lameness.
1538
81b4c798
ZW
15392002-03-27 Zack Weinberg <zack@codesourcery.com>
1540
1541 * mips.md: Use dconst1, not 1.0, as first argument of
1542 REAL_VALUE_LDEXP. Don't use union real_extract.
1543
55a2ea2a
AM
15442002-03-28 Alan Modra <amodra@bigpond.net.au>
1545
1546 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
1547 rather than $target. Heed program_prefix and
1548 program_transform_name. Search for gas in cross-compiler case too.
1549 "test -x" rather than "test -f".
1550 (gcc_cv_ld): Likewise.
1551 (gcc_cv_nm): Heed program_prefix and program_transform_name.
1552 (gcc_cv_objdump): Likewise.
1553 * configure: Regenerate.
1554
7ffb4fd2
NB
15552002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1556
1557 * Makefile.in (attribs.o): Update.
1558 * attribs.c: Include langhooks.h.
1559 (decl_attributes): Use langhook.
1560 * c-decl.c (insert_default_attributes): Rename.
1561 * c-tree.h (c_insert_default_attributes): New.
1562 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
1563 (LANG_HOOKS_INITIALIZER): Update.
1564 * langhooks.h (struct lang_hooks): New hook.
1565 * tree.h (insert_default_attributes): Remove.
1566objc:
1567 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
1568
e4dbaed5
AS
15692002-03-27 Andreas Schwab <schwab@suse.de>
1570
1571 * config/i386/i386.c (classify_argument): Also check for
1572 QUAL_UNION_TYPE.
1573
18b467f1
RO
15742002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1575
1576 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
1577 any more.
1578
d337d653
JH
1579Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
1580
1581 * i960.md (ret): Set PC.
1582 (nonlocal_goto): Fix expander.
1583 * builtins.c (epxand_builin_longjmp): Check that we've emitted
1584 some jump or call.
1585
218aa620
JH
1586Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
1587
1588 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
1589 of libcall regions.
1590
e27a4eaf
ZD
1591Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1592
1593 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
1594 assigning to BLOCK_FOR_INSN directly.
1595
8a12f34c
JH
1596Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
1597
1598 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
1599
c9d892a8
NB
16002002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1601
1602 * c-common.c (c_expand_expr): Fix prototype.
1603 * c-common.h (c_expand_expr): Always declare, update.
1604 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1605 * c-objc-common.c (c_objc_common_init): No global hook.
1606 * expr.c (expand_expr): Use langhook.
1607 * expr.h (enum expand_modifier): Conditionally declare.
1608 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
1609 (LANG_HOOKS_INITIALIZER): Update.
1610 * langhooks.c (lhd_expand_expr): New.
1611 * langhooks.h (struct lang_hooks): New hook.
1612 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
1613 (lang_independent_init): Don't default hook.
1614objc:
1615 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1616
6dad5a56
RH
16172002-03-27 Richard Henderson <rth@redhat.com>
1618
1619 PR target/6054
1620 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
1621 TARGET_CONST_GP. Simplify conditions.
1622
59f96879
RH
16232002-03-27 Richard Henderson <rth@redhat.com>
1624
1625 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1626 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
1627 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
1628
f3f1190d
DS
16292002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
1630
1631 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
1632 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
1633 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
1634 Remove unnecessary masks.
1635 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
1636 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
1637 -mwindows, -mdll switches and their negations.
1638
31c816cf
NB
16392002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1640
1641 * gcc-common.c (lang_mark_false_label_stack): Remove.
1642 * ggc.h (lang_mark_false_label_stack): Similarly.
1643
7b2e1077 16442002-03-26 Vladimir Makarov <vmakarov@redhat.com>
aee8f532
VM
1645
1646 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
1647
1648 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
1649 or __rtems_ is defined.
1650
1ef9531b
RH
16512002-03-26 Richard Henderson <rth@redhat.com>
1652
1653 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
1654 if a non-trivial load was emitted.
1655 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
1656 in high+extra+low case.
1657
300d4093
RH
16582002-03-26 Richard Henderson <rth@redhat.com>
1659
1660 * config.gcc (sparc*-solaris): Use float_format=sparc.
1661
b3689904
RH
16622002-03-26 Richard Henderson <rth@redhat.com>
1663
1664 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1665 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
1666 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
1667 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
1668 (WINT_TYPE_SIZE): Fix at 32.
1669
1eefb6c1
RH
16702002-03-26 Richard Henderson <rth@redhat.com>
1671
1672 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
1673 until after eh landing pad generation.
1674 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
1675 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
1676
361ea006
RH
16772002-03-26 Richard Henderson <rth@redhat.com>
1678
1679 * expr.h (ADD_PARM_SIZE): One more convert for INC.
1680
1de38a88
PE
16812002-03-26 Phil Edwards <pme@gcc.gnu.org>
1682
1683 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
1684 and warning switches.
1685 (cc1_options): Likewise.
1686
d7e60e95 16872002-03-26 Hans Boehm <Hans_Boehm@hp.com>
361ea006 1688
d7e60e95
HB
1689 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
1690 Restore more of the signal context. Set no_reg_stack_frame.
1691 * config/ia64/unwind-ia64.c (unw_state_record):
1692 Add no_reg_stack_frame, comments.
1693 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
1694 (uw_update_context): Adjust bsp when unwinding from leaf,
1695 but not signal frame.
1696
7032923b
DE
16972002-03-26 David Edelsohn <edelsohn@gnu.org>
1698
1699 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
1700
8be56275
BW
17012002-03-26 Bob Wilson <bob.wilson@acm.org>
1702
1703 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
1704
56fbb855
RE
17052002-03-26 Richard Earnshaw <rearnsha@arm.com>
1706
1707 PR target/5621
1708 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
1709 "Add a pool_range attribute", which was lost during the ARM/Thumb
1710 merge.
1711
3437320b
BW
17122002-03-26 Bob Wilson <bob.wilson@acm.org>
1713
1714 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
1715 a register into the MAC16 accumulator.
1716
173028e5
AC
17172002-03-26 Andrew Cagney <ac131313@redhat.com>
1718
1719 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
1720 (Warning Options): Document -Wswitch-enum.
1721 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
1722 -Wswitch.
1723 (warn_switch_enum): Define variables.
1724 * flags.h (warn_switch_enum): Declare variables.
1725 * stmt.c (expand_end_case_type): When warn_switch_enum /
1726 -Wswitch-enum, perform switch checks.
1727 Fix PR c/5044.
7b2e1077 1728
e14365a7
RE
17292002-03-26 Richard Earnshaw <rearnsha@arm.com>
1730
1731 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
1732 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
1733 (reload_muladdsi_compare0_scratch): Delete.
1734
46fc709d
LR
17352002-03-26 Loren J. Rittle <ljrittle@acm.org>
1736
1737 * doc/install.texi (*-*-freebsd*): Update.
1738
f36dea3c
RH
17392002-03-26 Richard Henderson <rth@redhat.com>
1740
8e5fe23f
RH
1741 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
1742 (SUB_PARM_SIZE): Cast DEC to ssizetype.
1743
1744 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
1745 types from the normal argument frame.
1746
f36dea3c
RH
1747 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
1748 variable sized objects by reference.
1749 (sparc_va_arg): Receive them by reference too.
1750
1447dc69
HP
17512002-03-26 Hartmut Penner <hpenner@de.ibm.com>
1752
1753 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7b2e1077 1754 code to not restoring global registers.
1447dc69 1755
4f0ade92
NB
17562002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
1757
1758 * Makefile.in (ggc-common.o): Update.
1759 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
1760 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1761 * c-tree.h (c_mark_tree): New.
1762 * ggc-common.c: Include langhooks.h.
1763 (gcc_mark_trees): Use new langhook.
1764 * ggc-callbacks.c: Delete file.
1765 * ggc.h (lang_mark_tree): Remove.
1766 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
1767 (LANG_HOOKS_INITIALIZER): Update.
1768 * langhooks.h (struct lang_hooks): New hook.
1769objc:
1770 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1771
caba570b
ZW
17722002-03-25 Zack Weinberg <zack@codesourcery.com>
1773
1774 * doc/cpp.texi: Exclude entire Top node from printed manual.
1775 Move option index after directive index. Insert page breaks
1776 before GFDL and concept index. Index environment variables
1777 with command line options.
1778 * doc/cppenv.texi: Use @vtable for environment variable list.
1779 Add paragraph explaining semantics of empty elements in path
1780 variables. Exclude a cross-reference to Fishkill from the
1781 manpage. Remove an unnecessary cross-reference of the entry
1782 right above the referer. Don't use @anchor in text that goes
1783 into manpage.
1784 * doc/cppopts.texi: Cross-reference the environment variables
1785 section, not the specific environment variable, for consistency.
1786
6b2e80b7
RH
17872002-03-25 Richard Henderson <rth@redhat.com>
1788
1789 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
1790 anywhere in the block. Don't refer to insns that have been
1791 removed from the chain. Iterate backward through the new insns.
1792 Don't refer to edges that have been removed.
1793
67e469d7
AM
17942002-03-26 Alan Modra <amodra@bigpond.net.au>
1795
1796 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
1797 test for overflow of constant.
1798
f2356393
RE
17992002-03-25 Richard Earnshaw <rearnsha@arm.com>
1800
1801 PR target/2623
1802 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
1803 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
1804 these patterns on arm_archv4.
1805
355426ab
DS
18062002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
1807
1808 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
1809 int".
1810
15e5ad76
ZW
18112002-03-25 Zack Weinberg <zack@codesourcery.com>
1812
1813 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
1814 float_handled, float_handler, float_signal, set_float_handler,
1815 and do_float_handler. Set handler for SIGFPE to crash_signal.
1816 * toplev.h: Don't prototype do_float_handler.
1817
1818 * c-lex.c: Fold parse_float into lex_number. Make warning
1819 about portability of hex float constants more informative, and
1820 don't issue it on top of a syntax error.
1821 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
1822 their callers.
1823 * real.h: Define REAL_VALUE_ABS here...
1824 * simplify-rtx.c: ... not here. Fold check_fold_consts,
1825 simplify_unary_real, simplify_binary_real, and
1826 simplify_binary_is2orm1 into their callers.
1827 * tree.c: Fold build_real_from_int_cst_1 into caller.
1828
1829 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
1830
1831 * tsystem.h: Include float.h here...
1832 * libgcc2.c: ... not here.
1833
56ae9405
NC
18342002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
1835
1836 Fixes for: PR bootstrap/3591, target/5676
1837 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
1838 defined. Do not disable exceptions or rtti.
1839 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
1840 mcore.h. Disable exceptions and rtti, since they are not
1841 supported by EPOC.
1842
c88770e9
NB
18432002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
1844
1845 * c-decl.c (maybe_build_cleanup): Remove.
1846 * expr.c (expand_expr): Use langhook.
1847 * langhooks-def.h (lhd_return_null_tree,
1848 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
1849 (LANGHOOKS_INITIALIZER): Update.
1850 * langhooks.c (lhd_return_null_tree): New.
1851 * langhooks.h (struct lang_hooks): New hook.
1852 * tree-inline.c (initialize_inlined_parameters): Use langhook.
1853 * tree.h (maybe_build_cleanup): Remove.
1854
2ed1f154
JJ
18552002-03-25 Jakub Jelinek <jakub@redhat.com>
1856
1857 * regrename.c (build_def_use): Move recog_memoized
1858 before extract_insn.
1859
6ddae612
JJ
18602002-03-25 Jakub Jelinek <jakub@redhat.com>
1861
1862 PR target/6043
1863 * expr.c (emit_group_store): Handle storing into CONCAT.
1864
ea475b23
JJ
18652002-03-25 Jakub Jelinek <jakub@redhat.com>
1866
1867 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
1868 corresponding MATCH_DUP.
1869
e7d482b9
RH
18702002-03-24 Richard Henderson <rth@redhat.com>
1871
cd39fc13
RH
1872 * unroll.c (unroll_loop): Zero label_map.
1873
e7d482b9
RH
1874 * gcse.c: Include except.h.
1875 * Makefile.in (gcse.o): Update.
1876
1bd6476f
RH
18772002-03-24 Richard Henderson <rth@redhat.com>
1878
1879 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
1880 Do resolve_unique_section before shared data clause.
1881
2e6c150a
RH
18822002-03-24 Richard Henderson <rth@redhat.com>
1883
1884 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
1885
b29afcf8
RH
18862002-03-24 Richard Henderson <rth@redhat.com>
1887
15e5ad76 1888 * recog.c (peephole2_optimize): Split blocks when EH insns are
b29afcf8
RH
1889 generated in the middle of a block. Do global life update if
1890 zapped EH edges.
1891
05ed1296
RH
18922002-03-24 Richard Henderson <rth@redhat.com>
1893
1894 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
1895
3ddbb8a9
NB
18962002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1897
1898 preprocessor/3951
15e5ad76 1899 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3ddbb8a9
NB
1900 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
1901 (init_dependency_output): Don't make no_output decision here.
1902
740b77b6
AC
19032002-03-24 Andrew Cagney <ac131313@redhat.com>
1904
1905 * stmt.c (check_for_full_enumeration_handling): Remove tests of
1906 warn_switch. Update description.
1907 (expand_end_case_type): Call check_for_full_enumeration_handling
1908 when warn_switch.
1909
7590cfd0
SC
19102002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1911
1912 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
1913 (m68hc11_split_move): Call it to see if the source and destination
1914 operands use the same direction auto inc/dec mode, otherwise make the
c61f581f 1915 source an offsetable memory operand and generate an add.
7590cfd0 1916
2e3d3481
SC
19172002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1918
1919 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
1920 register for operand 2.
1921 ("*subsi3_zero_extendqi"): Likewise.
1922 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
1923 bits so that it is compatible with a pop.
1924 ("*andhi3_gen"): Likewise.
1925 ("xorhi3"): Likewise.
1926
2784528c
NB
19272002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1928
1929 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
1930 -pedantic here...
1931 (cpp_post_options): ... not here.
1932
aaf93206
NB
19332002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
1934 Aldy Hernandez <aldyh@redhat.com>
1935
1936 Removal of separate preprocessor cpp0.
1937
1938 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
1939 cpp0, install-common): Update.
1940 * c-common.c (flag_preprocess_only): New.
1941 (c_common_init): Preprocess for -E.
1942 * c-common.h (flag_preprocess_only): New.
1943 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
1944 * c-objc-common.c (c_init_decl_processing): Exit quickly
1945 for NULL return from c_common_init.
1946 * cpplib.h (cpp_preprocess_file): New.
1947 * cppmain.c (main, general_init, pfile, progname): Remove.
1948 (do_preprocessing): Rename cpp_preprocess_file, don't call
1949 cpp_finish. Don't close stdout here.
1950 (setup_callbacks): Update prototype.
1951 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
1952 Update.
1953 * tradcpp.c (main): Ignore -quiet.
1954objc:
1955 * lang-specs.h (default_compilers): Preprocess with cc1obj.
1956
c6e6f5c1
RH
19572002-03-24 Richard Henderson <rth@redhat.com>
1958
1959 PR optimization/5742
1960 * machmode.def: Add inner mode field to complex modes.
1961 * config/mips/mips.c (mips_function_value): Always define. Add
1962 new argument to handle libcalls.
1963 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
1964 (FUNCTION_VALUE): Likewise.
1965 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
1966 * config/mips/mips-protos.h: Update.
1967
d88e57d1
RH
19682002-03-23 Richard Henderson <rth@redhat.com>
1969
1970 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
1971 * config/sparc/sparc-protos.h: Update.
1972 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
1973
6dfaf9ba
RH
19742002-03-23 Richard Henderson <rth@redhat.com>
1975
1976 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
1977 _start or _init begins the text segment.
1978
0c769cf8
DE
19792002-03-23 David Edelsohn <edelsohn@gnu.org>
1980
1981 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
1982 not HOST_WIDEST_INT.
1983 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
1984
64e92a26
RE
19852002-03-23 Richard Earnshaw <rearnsha@arm.com>
1986
1987 PR java/5489
1988 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
1989 operand argument to output_return_instruction.
15e5ad76 1990 * arm.c (arm_print_operand, case 'd'): If the operand is
64e92a26
RE
1991 const_true_rtx then just return.
1992 (arm_print_operand, case 'D'): If the operand is const_true_rtx
1993 then abort.
1994
d6961341
AC
19952002-03-23 Andrew Cagney <ac131313@redhat.com>
1996
1997 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
1998 (Warning Options): Document -Wswitch-default.
1999 * toplev.c (W_options): Add -Wswitch-default. Update comment on
2000 -Wswitch.
2001 (warn_switch_default): Define variable.
2002 (warn_switch): Update comment.
2003 * flags.h (warn_switch_default): Declare variable.
2004 (warn_switch): Update comment.
2005 * stmt.c (expand_end_case): Check for and, when
2006 warn_switch_no_default, warn of a missing default case.
15e5ad76 2007
d4c5ac1f
AM
20082002-03-23 Alan Modra <amodra@bigpond.net.au>
2009
bbaa9790
AM
2010 * real.h (N): Special case 128 bit doubles.
2011
d4c5ac1f
AM
2012 * combine.c (simplify_comparison): When widening modes, ignore
2013 sign extension on CONST_INTs.
2014
84bf8c2c
BW
20152002-03-22 Bob Wilson <bob.wilson@acm.org>
2016
2017 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2018 passed to adjust_address. Fix comment formatting.
2019
2020
b216cd4a
ZW
20212002-03-22 Zack Weinberg <zack@codesourcery.com>
2022
2023 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2024 Always make REAL_VALUE_TYPE a struct containing an array of
2025 HOST_WIDE_INT, not a double. Tidy up the code deciding how
2026 big it is. Don't declare or use union real_extract.
2027
2028 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2029 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2030 (print_operand), config/arm/arm.c (output_move_double),
2031 config/arm/arm.md (consttable_4, consttable_8),
2032 config/romp/romp.c (output_fpops), config/s390/s390.h
2033 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2034 (xtensa_output_literal): Don't use union real_extract.
2035
2036 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2037 (sfmode_constant_to_ulong), config/ns32k/merlin.h
2038 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2039 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2040 (PRINT_OPERAND): Don't use local version of union
2041 real_extract.
2042
2043 * config/convex/convex.c (check_float_value), config/vax/vax.c
2044 (vax_float_literal), config/m88k/m88k.md (divdf3),
2045 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2046 config/pdp11/pdp11.c (output_move_quad): Don't do host
2047 arithmetic on target floating point quantities.
2048
2049 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2050 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2051
2052 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2053 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2054
2055 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2056 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2057 INFINITY.
2058 * print-rtl.c (print_rtx): Disable code which needs
2059 floating-point emulator.
2060 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2061 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2062 depending on HOST_FLOAT_FORMAT to be defined properly.
2063
2064 * config/1750a/1750a.c (get_double, float_label): Delete.
2065 (print_operand): Delete huge commented-out chunk. Use
2066 REAL_VALUE_TO_DECIMAL.
2067 * config/1750a/1750a-protos.h: Delete prototypes of deleted
2068 functions.
2069 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2070 IEEE_FLOAT_FORMAT.
2071 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2072 Use REAL_VALUE_TO_DECIMAL as ELF version does.
2073 * config/m88k/m88k.c (real_power_of_2_operand,
2074 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2075 real_extract out of the union; run the input through
2076 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2077 from that into the union.
2078 * config/pdp11/pdp11.c (output_move_double): Rearrange
2079 parentheses to make automatic indenter happy.
2080
2081 * doc/tm.texi (Cross-compilation): Rename node to "Floating
2082 Point" and rewrite to describe current situation. Also adjust
2083 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2084 match code.
2085 * doc/rtl.texi: Adjust cross reference.
2086
a8cacfd2
BW
20872002-03-22 Bob Wilson <bob.wilson@acm.org>
2088
2089 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2090 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2091 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2092 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2093 prevent use of sp as a reload register.
2094 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2095 non_acc_reg_operand.
2096 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2097 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2098 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2099 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2100
d4e6133f
NB
21012002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
2102
b216cd4a
ZW
2103 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2104 * cpplex.c (unterminated): Delete.
2105 (parse_string): No string literal may extend over multiple
2106 lines. Suppress the error when preprocessing assembly.
d4e6133f
NB
2107 * cppmain.c (scan_translation_unit): Strings are single-line.
2108
b216cd4a 2109 * doc/cpp.texi: Update to match.
d4e6133f 2110
65e6c005
JJ
21112002-03-22 Jakub Jelinek <jakub@redhat.com>
2112
2113 PR optimization/5854
2114 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2115 Shut up warnings.
2116 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2117 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2118 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2119 const0 if scratch register was not allocated.
2120 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2121 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2122 with GEN_INT (...).
2123 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2124 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2125 with GEN_INT (...) everywhere. Remove constraints in define_split
2126 patterns.
2127 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2128 require scratch register for setting 0 into regs/non-pushable memory.
2129
7f48c9e1
AO
21302002-03-22 Alexandre Oliva <aoliva@redhat.com>
2131
2132 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2133 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2134
909de5da
PE
21352002-03-22 Phil Edwards <pme@gcc.gnu.org>
2136
2137 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
2138 * cppinit.c (cpp_create_reader): On by default.
2139 (cpp_handle_option): Handle -W[no-]endif-labels.
2140 (cpp_post_options): Also enable if -pedantic.
2141 * cpplib.c (do_else): Use it.
2142 (do_endif): Likewise.
2143 * doc/cppopts.texi: Document new option.
2144 * doc/invoke.texi: Document new option.
2145
d8bf17f9
LB
21462002-03-22 Lars Brinkhoff <lars@nocrew.org>
2147
2148 * config/i386/i386.c, config/i386/i386.md: Change all occurences
2149 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2150
70e0ccd0
AO
21512002-03-22 Alexandre Oliva <aoliva@redhat.com>
2152
2153 * flow.c (calculate_global_regs_live): Clear aux fields of
2154 ENTRY and EXIT.
2155
68882f0f
JJ
21562002-03-22 Jakub Jelinek <jakub@redhat.com>
2157
2158 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2159 REG or MEM subregs, pass rtx * instead of rtx to it.
2160 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2161 rtx * instead of rtx to alter_subreg.
2162 * config/m32r/m32r.c (gen_split_move_double): Likewise.
2163 * config/pj/pj.c (pj_output_rval): Likewise.
2164
648fe28b
RH
21652002-03-22 Richard Henderson <rth@redhat.com>
2166
2167 PR target/3177
2168 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2169 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2170 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2171 (ia64_expand_prologue): Look at int_regs, not words, for number
2172 of incomming int regs.
2173
e8dcd824
AM
21742002-03-22 Andrew MacLeod <amacleod@redhat.com>
2175
2176 * expr.c (expand_expr): A RESULT_DECL is part of a call.
2177
96327cdc
JH
2178Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
2179
2180 * toplev.c (flag_loop_optimize, flag_crossjumping):
2181 New static variables.
2182 (rest_of_compilation): Conditionalize crossjumping and
2183 loop optimizer.
2184 (parse_options_and_default_flags): Default loop_optimize and
2185 crossjumping.
2186 (lang_independent_options): Add -fcrossjumping and -floop-optimize
2187 * invoke.texi (crossjumping, loop-optimize): Document.
2188
bc185257
RS
21892002-03-22 Richard Sandiford <rsandifo@redhat.com>
2190
2191 * real.c (eiisneg): Move outside #ifdef NANS.
2192
0a2ed1f1
JH
2193Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
2194
2195 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2196 frequencies match; avoid match on different loop depths.
2197 (try_crossjump_to_bb): Kill tests that no longer brings time
2198 savings.
2199 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2200 updating code.
2201 (split_edge): Likewise.
2202
2203 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2204 variable.
2205
2206 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2207 * cfgrtl.c: Include insn-config.h
2208 (split_block) Dirtify block in presence of conditional execution
2209
4d72536e
RS
22102002-03-22 Richard Sandiford <rsandifo@redhat.com>
2211
2212 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2213 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2214 (function_arg): Constify CUMULATIVE_ARGS.
2215 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2216 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2217 (UNITS_PER_DOUBLE): New macro.
2218 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
2219 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
2220 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
2221 fp_regs and stack_words.
2222 (EABI_FLOAT_VARARGS_P): New macro.
2223 * config/mips/mips.c (struct mips_arg_info): New.
2224 (mips_arg_info): New function.
2225 (function_arg_advance): Use it. Add adjustment instructions here
2226 rather than in function_arg.
2227 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
2228 for VOIDmode at the beginning of the function.
2229 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
2230 (function_arg_pass_by_reference): Likewise.
2231 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2232 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2233 (mips_va_start): Likewise. Use the new stack_words field of
2234 CUMULATIVE_ARGS to set up overflow area. Reformat.
2235 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
2236 doubles and other types, aligning the overflow pointer for non-doubles
2237 too. Remove some code duplication. Replace hard-coded constants.
2238
e6f884cd
RS
22392002-03-22 Richard Sandiford <rsandifo@redhat.com>
2240
2241 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2242 (CLASS_UNITS): Undefine.
2243 (CLASS_MAX_NREGS): Use FP_INC.
2244 * config/mips/mips.c (compute_frame_size): Likewise.
2245 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2246
10cf9bde
NB
22472002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
2248
2249 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2250 prototype, and handle lexing numbers and identifiers.
2251 (parse_identifier): Update to new form of parse_slow.
2252 (parse_number): Fast path only, use parse_slow otherwise.
2253 (_cpp_lex_direct): Update calls to parse_number.
2254
fbc2782e
DD
22552002-03-21 DJ Delorie <dj@redhat.com>
2256
2257 * bb-reorder.c (make_reorder_chain_1): Protect against
2258 when redundant edges are omitted.
2259 * predict.c (dump_prediction): Likewise.
2260
fba39eaf
RH
22612002-03-21 Richard Henderson <rth@redhat.com>
2262
2263 PR target/5996
2264 * fixinc/inclhack.def (solaris_stdio_tag): New.
2265 * fixinc/fixincl.x: Regenerate.
2266
eba80994
EB
22672002-03-21 Eric Botcazou <ebotcazou@multimania.com>
2268
2269 PR c/5597
2270 * c-typeck.c (process_init_element): Flag non-static
2271 initialization of a flexible array member as illegal.
2272
2a78758b
AM
22732002-03-22 Alan Modra <amodra@bigpond.net.au>
2274
2275 * config/rs6000/t-linux64: New.
2276 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2277 t-ppccomm. Use t-rs6000 and t-linux64.
2278 (powerpc64-*-gnu* <tmake_file>): Likewise.
bac015e7
AM
2279 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2280 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2281 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2a78758b 2282
2cb921f4
AH
22832002-03-21 Aldy Hernandez <aldyh@redhat.com>
2284
eba80994
EB
2285 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2286 flag_really_no_inline instead of optimize == 0.
2cb921f4 2287
eba80994 2288 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2cb921f4 2289
eba80994 2290 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2cb921f4 2291
eba80994 2292 * flags.h (flag_really_no_inline): New.
2cb921f4 2293
659e5a7a 2294 * c-common.c (c_common_post_options): Initialize
eba80994 2295 flag_really_no_inline.
2cb921f4 2296
eba80994 2297 * toplev.c (flag_really_no_inline): New.
2cb921f4 2298
239b8b9d
JJ
22992002-03-21 Jakub Jelinek <jakub@redhat.com>
2300
2301 * config/avr/avr.md (length): Fix length computation for
2302 conditional branches.
2303
43577e6b
NB
23042002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
2305
2306 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2307 sdbout.o, profile.o): Update.
2308 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2309 langhook.
2310 * c-common.h (gettags): Move here from tree.h.
2311 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2312 insert_block, getdecls, kept_level_p, global_bindings_p): New.
2313 * dbxout.c (dbxout_init): Use getdecls langhook.
2314 * expr.c (expand_expr): Use insert_block langhook.
2315 * fold-const.c: Include langhooks.h.
2316 (fold_range_test, fold_binary_op_with_conditional_arg,
2317 fold): Use global_bindings_p langhook.
2318 * integrate.c (expand_inline_function): Use insert_block langhook.
2319 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2320 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2321 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2322 LANG_HOOKS_GETDECLS): New.
2323 (LANG_HOOKS_INITIALIZER): Update.
2324 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2325 langhook.
2326 * langhooks.h (struct lang_hooks_for_decls): New.
2327 (struct lang_hooks): Update.
2328 * profile.c: Include langhooks.h.
2329 (output_func_start_profiler): Use new langhooks.
2330 * sdbout.c: Include langhooks.h.
2331 (sdbout_init, sdbout_finish): Use getdecls langhook.
2332 * stmt.c: Include langhooks.h.
2333 (expand_fixup, fixup_gotos): Use new langhooks.
2334 * stor-layout.c: Include langhooks.h.
2335 (variable_size): Use global_bindings_p langhook.
2336 * toplev.c (compile_file): Use getdecls langhook.
2337 * tree-inline.c (remap_block): Use insert_block langhook.
2338 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2339 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2340
5b19b10c
RH
23412002-03-21 Richard Henderson <rth@redhat.com>
2342
2343 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2344 constants in .data when -fpic.
2345
e05af335
GP
23462002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2347
2348 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2349 where appropriate.
2350
60ffc997
TT
23512002-03-21 Tom Tromey <tromey@redhat.com>
2352
2353 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
2354
75897075
RK
2355Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2356
a73afd69 2357 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
46399021 2358
75897075
RK
2359 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2360
312687cf
EB
23612002-03-21 Eric Botcazou <ebotcazou@multimania.com>
2362 Richard Henderson <rth@redhat.com>
2363
2364 PR c/5354
2365 * c-common.c (c_expand_expr): Preserve result of a statement
2366 expression if needed.
2367
f0e1f482
JJ
23682002-03-21 Jakub Jelinek <jakub@redhat.com>
2369
2370 PR bootstrap/4195
2371 * genrecog.c (maybe_both_true_mode): Remove.
2372 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2373 * machmode.def (Pmode): Likewise.
2374
c14b9960
JW
2375Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
2376
2377 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2378 (nonlocal_mentioned_p_1): New function.
2379 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2380 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2381 (mark_constant_function): Recognize pure functions.
2382 * rtl.h (global_reg_mentioned_p): New prototype.
2383 * rtlanal.c (global_reg_mentioned_p,
2384 global_reg_mentioned_p_1): New function.
2385
aaa4d130
RO
23862002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2387
2388 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2389 UNIX assert.h.
2390 * fixinc/fixincl.x: Regenerate.
2391
e5c4bd1b
JM
23922002-03-20 Jason Merrill <jason@redhat.com>
2393
2394 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2395
852b81bb
MM
23962002-03-20 Michael Meissner <meissner@redhat.com>
2397
2398 * doc/invoke.texi (Optimize Options): Document that -O2 sets
2399 -fstrict-aliasing.
2400
86d8c251
BW
24012002-03-20 Bob Wilson <bob.wilson@acm.org>
2402
2403 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2404 ".literal_position" directive before the constant pool.
2405
0a39c350
GP
24062002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2407
2408 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2409 Add Craig Rodrigues.
2410 Add Brad Lucier to testers.
2411
71a83373
JJ
24122002-03-20 Jakub Jelinek <jakub@redhat.com>
2413
2414 PR target/4792
2415 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2416 to if_then_else.
2417 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2418 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2419 instead of insn_extract.
2420
a29b099d
JJ
24212002-03-20 Jakub Jelinek <jakub@redhat.com>
2422
2423 PR bootstrap/4192
71a83373 2424 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
a29b099d
JJ
2425
2426 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2427 stmt if some case has been output.
2428
048b1c95
JJ
24292002-03-20 Jakub Jelinek <jakub@redhat.com>
2430
2431 PR c/5972
2432 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2433 movsfcc_1, movdfcc_1): Add %O2.
2434 * config/i386/i386.c (print_operand): Handle %ON.
2435 Print . before float condition codes in Sun as cmov syntax.
2436 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
2437 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
2438 no longer true.
2439
f4864588
PB
24402002-03-20 Philip Blundell <pb@nexus.co.uk>
2441
2442 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2443 return instruction if PC was popped.
2444
3a307de4
BW
24452002-03-20 Bob Wilson <bob.wilson@acm.org>
2446
2447 * config/xtensa/xtensa.md: Remove unused type attributes.
2448 (adddi_carry, subddi_carry): Change type attribute to "multi".
2449
048b1c95 24502002-03-19 Dale Johannesen <dalej@apple.com>
ed7d44bc
DJ
2451
2452 PR optimization/5999, middle-end/5731
2453 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2454 multiplications by reciprocals.
2455
7afff7cf
NB
24562002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
2457
2458 * Makefile.in: Update.
2459 * c-common.c: Include langhooks.h.
2460 (inline_forbidden_p): Use new hook.
2461 * diagnostic.c: Include langhooks.h.
2462 (format_with_decl, announce_function,
2463 default_print_error_function): Use new hook.
2464 * dwarf2out.c (dwarf2_name): Use new hook.
2465 * function.c: Include langhooks.h.
2466 (init_function_start): Use new hook.
2467 * langhooks-def.h (lhd_decl_printable_name): New.
2468 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2469 (LANGHOOKS_INITIALIZER): Update.
2470 * langhooks.c (lhd_decl_printable_name): New.
2471 * langhooks.h (struct lang_hooks): New hook.
2472 * toplev.c (decl_name, decl_printable_name): Remove.
2473 (open_dump_file): Use new hook.
2474 (process_options): Remove old hook.
2475 * tree.h (decl_printable_name): Remove.
2476objc:
2477 * objc-act.c (objc_init): Remove old hook.
2478 (objc_printable_name): Export.
2479 * objc-act.h (objc_printable_name): New.
2480 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
2481
f78ce0b7
JB
24822002-03-19 Jim Blandy <jimb@redhat.com>
2483
2484 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
2485 the start_source_file debug hook, not the current line number.
2486
15b5aef3
RH
24872002-03-19 Richard Henderson <rth@redhat.com>
2488
2489 * flow.c (EH_USES): Provide default.
2490 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
2491 * doc/tm.texi (EH_USES): New.
2492
2493 * config/ia64/ia64.c (ia64_eh_uses): New.
2494 * config/ia64/ia64-protos.h: Update.
2495 * config/ia64/ia64.h (EH_USES): New.
2496
02a7a3fd
RH
24972002-03-19 Richard Henderson <rth@redhat.com>
2498
2499 * varasm.c (output_constant_def): Fix stupid typo.
2500
93f82d60
RH
25012002-03-19 Richard Henderson <rth@redhat.com>
2502
2842be05 2503 PR 5879
93f82d60
RH
2504 * except.c (current_function_has_exception_handlers): New.
2505 * except.h: Declare it.
2506 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
2507 Combine tests that disable all sibcalls for the function.
2508
ed4fbfa0
OH
25092002-03-19 Olivier Hainque <hainque@act-europe.fr>
2510
2511 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
2512 for INTEGER_CST.
2513
ebf0e888
RH
25142002-03-19 Richard Henderson <rth@redhat.com>
2515
1e82682b 2516 PR 5977, 5991
ebf0e888
RH
2517 * config/ia64/ia64.c: Revert 2002-03-01 patch.
2518 * config/ia64/ia64.h (INIT_EXPANDERS): New.
2519
e37b38d7
JB
25202002-03-19 Jim Blandy <jimb@redhat.com>
2521
2522 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
2523 name, even if the replacement list contains no tokens, as required
2524 by Dwarf.
2525
2a4ea326
JM
25262002-03-19 Jason Merrill <jason@redhat.com>
2527
f9d09ae5
JM
2528 * varasm.c (globalize_decl): Get the name from the RTL, not
2529 DECL_ASSEMBLER_NAME.
2530
2a4ea326
JM
2531 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
2532
99b96edb
BW
25332002-03-19 Bob Wilson <bob.wilson@acm.org>
2534
2535 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
2536 subdi_carry): Define.
2537
3774b567
DE
25382002-03-19 David Edelsohn <edelsohn@gnu.org>
2539
2540 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
2541 about -fpic/-fPIC if extra_warnings set.
2542
21ef78aa
DE
25432002-03-19 David Edelsohn <edelsohn@gnu.org>
2544
2545 * expr.c (expand_expr): Sign-extend CONST_INT generated from
2546 TREE_STRING_POINTER.
0c2fdcdf 2547 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21ef78aa 2548
91d4b3fd
RK
2549Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2550
2551 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
2552 in favor of SP if FRAME_POINTER_REQUIRED is false.
2553
2496c7bd
LB
25542002-03-19 Lars Brinkhoff <lars@nocrew.org>
2555
2556 * emit-rtl.c (gen_int_mode): New function.
2557 * rtl.h: Prototype for it.
2558 * combine.c (make_extraction, simplify_comparison), expmed.c
2559 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
2560 (convert_modes, store_field), optabs.c (expand_fix),
2561 simplify-rtx.c (neg_const_int, simplify_unary_real),
2562
2563 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
2564 Use it instead of GEN_INT (trunc_int_for_mode (...)).
2565
f735a153
JJ
25662002-03-19 Jakub Jelinek <jakub@redhat.com>
2567
2568 PR c/5656
2569 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2570 convert_parm_for_inlining.
2571 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2572 Define.
2573 * langhooks-def.h: Likewise.
2574 * objc/objc-lang.c: Likewise.
2575 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
2576 function.
2577 * tree-inline.c (initialize_inlined_parameters):
2578 Call convert_parm_for_inlining lang hook if needed.
2579 * c-typeck.c (c_convert_parm_for_inlining): New function.
2580 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
2581
1929c971
MM
25822002-03-18 Mark Mitchell <mark@codesourcery.com>
2583
b216cd4a 2584 * calls.c (precompute_arguments): Do not assume that temporaries
1929c971
MM
2585 can be destroyed after expanding the argument.
2586 (expand_call): Likewise.
2587
c79ca0ac
EC
25882002-03-15 Eric Christopher <echristo@redhat.com>
2589
2590 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
2591 Fix register preference on last change.
2592 * config/mips/mips.c (mips_return_in_memory): New function.
2593 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
2594 * config/mips/mips-protos.h: Declare.
2595 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
2596 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
2597
07e2e444
AO
25982002-03-18 Alexandre Oliva <aoliva@redhat.com>
2599
1bfbbbcf
AO
2600 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
2601 a register too.
2602 (anddi3, iorsi3): Likewise.
2603
c066429e
AO
2604 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
2605 use %gprel for symbols that are going to be placed in linkonce
2606 sections.
2607
07e2e444
AO
2608 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
2609 RETURN_ADDRESS_POINTER_REGNUM to $ra.
2610 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
2611 not needed. Disregard leaf_function_p().
2612 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
2613 mips16 frame pointer.
2614 * config/mips/mips.md (store ra): Only to small SP offsets.
2615 2001-08-22 Graham Stott <grahams@redhat.com>
2616 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
2617 return a REG rtx for the return address register.
2618
eb8e00ea
BW
26192002-03-18 Bob Wilson <bob.wilson@acm.org>
2620
2621 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
2622 constant-pool addresses as "mode-dependent".
2623 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
2624
cbb92744
JJ
26252002-03-18 Jakub Jelinek <jakub@redhat.com>
2626
2627 PR target/5740
2628 * expr.c (emit_group_load): Use extract_bit_field if
2629 needed for CONCAT arguments.
2630
657d9449
RE
26312002-03-18 Richard Earnshaw <rearnsha@arm.com>
2632
91f3a802 2633 PR target/4863
657d9449
RE
2634 * arm.md (tablejump): Make this a define_expand. For PIC add the
2635 offset to the base of the table.
2636 (thumb_tablejump): Matcher for Thumb tablejump insn.
2637 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
2638 as the difference of two labels.
2639 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2640 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
2641 tables in the code.
2642 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2643 * arm.c (get_jump_table_size): If the table is not in the text
2644 section, return zero.
c79ca0ac 2645
5d5603e2
BS
26462002-03-18 Bernd Schmidt <bernds@redhat.com>
2647
2648 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
2649 of gen_rtx_SUBREG.
2650 (arm_reload_out_hi): Use gen_lowpart instead of
2651 gen_rtx_SUBREG to access QImode components.
2652 * config/arm/arm.md: Disable zero_extend split for QImode
2653 subregs in BIG_ENDIAN mode.
2654 (storehi_bigend): Match use of least significant byte.
2655 (storeinthi): Remove extraneous SUBREG.
66c17b64 2656 Add missing construction of operands[2].
5d5603e2
BS
2657 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
2658 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
2659 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
2660
df15fbc7
AH
26612002-03-18 Aldy Hernandez <aldyh@redhat.com>
2662
2496c7bd
LB
2663 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
2664 any_operand.
df15fbc7 2665
b83b7fa3
RH
26662002-03-17 Richard Henderson <rth@redhat.com>
2667
2668 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
2669 explicitly.
2670
6f7c00fe
HPN
26712002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
2672
2673 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
2674 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
2675
155038f2
KG
26762002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2677
720d42fa
KG
2678 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
2679
155038f2
KG
2680 * predict.c (estimate_bb_frequencies): Delete unused variables.
2681
e6542f4e
RH
26822002-03-17 Richard Henderson <rth@redhat.com>
2683
2684 * config/ia64/ia64.c (ia64_attribute_table): Move before
2685 targetm definition. Make static.
2686
52dabb6c
NB
26872002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
2688
2689 * c-common.h (yyparse, c_common_parse_file): New.
2690 * c-lang.c: Include c-common.h.
2691 (LANG_HOOKS_PARSE_FILE): Redefine.
2692 * c-lex.c: Include c-common.h.
2693 (yyparse): Rename c_common_parse_file. Call yyparse.
2694 * c-parse.in (yyparse): Remove macro.
2695 * c-tree.h (yyparse_1): Remove.
2696 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
2697 (LANG_HOOKS_INITIALIZER): Update.
2698 * langhooks.h (struct lang_hoooks): New hook parse_file.
2699 * toplev.c (compile_file): Use parse_file hook.
2700 * tree.h (yyparse): Remove.
e6542f4e 2701 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
52dabb6c 2702
b5ffe606
HPN
27032002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
2704
ba82f58b
HPN
2705 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
2706 float_truncate, not fix.
2707 ("*truncdfsf2_real"): Ditto.
2708 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
2709
b5ffe606
HPN
2710 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
2711
c8d1b2b7
AO
27122002-03-16 Alexandre Oliva <aoliva@redhat.com>
2713
cfb773f9
AO
2714 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
2715 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
2716 where appropriate. Make the second reference to
2717 leaf_function_p a function call, as intended. Reindented.
2718
4dffef52
AO
2719 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
2720 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
2721
4f5bd6d7
AO
2722 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
2723 add register to non-constant into sp.
2724
c8d1b2b7
AO
2725 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
2726 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
2727 (mips16_gp_pseudo_rtx): Lose.
2728 (INIT_EXPANDERS): Deleted.
2729 * config/mips/mips.c (mips_init_machine_status): New.
2730 (mips_free_machine_status): New.
2731 (mips_mark_machine_status): New.
2732 (override_options): Set them.
2733 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
2734 (struct machine_function): ... new. Replaced all references.
2735 (mips_add_gc_roots): Don't mark them.
2736 (embedded_pic_fnaddr_reg): New, extracted from...
2737 (embedded_pic_offset): ... here.
2738 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
2739 (movsi): Likewise.
2740
b3124fac
NB
27412002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2742
2743 * cppinit.c: Revert -MD removal.
2744
121449b6
SC
27452002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2746
2747 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
2748 soft registers by default for 68HC12.
2749 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
2750 when compiling with -fomit-frame-pointer.
2751 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
2752 (expand_epilogue): Likewise.
2753 (m68hc11_gen_rotate): Use exg when rotating by 8.
2754
840e2ff1
SC
27552002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2756
2757 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
2758 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
2759 (splits): Remove unused add splits.
2760 ("*addhi3_68hc12"): Tune constraints.
2761 ("addhi_sp"): Try to use X instead of Y in all cases and if the
2762 constant fits in 8-bits and D is dead use abx/aby instructions.
2763 ("*addhi3"): Remove extern declaration of ix_reg.
2764 ("*subsi3"): Optimize and provide new split.
2765 ("subhi3"): Cleanup.
2766 ("*subhi3_sp"): Avoid saving X if we know it is dead.
2767 (arith splits): For 68hc12 save the address register on the stack
2768 and do the arithmetic operation with a pop.
2769
3c9a5efe
SC
27702002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2771
2772 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
2773 allocating QImode in address registers.
2774 ("*movqi_m68hc11"): Likewise.
2775
e41f3392
JH
2776Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
2777
2778 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
2779
576786b0
NB
27802002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
2781
2782 * cppinit.c (print_help): Display -MD and -MMD.
2783 Don't display usage string. Update assertion syntax and
2784 typo.
2785 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
2786 (cpp_handle_option): Update.
2787
1ac458d4
CD
27882002-03-15 Chris Demetriou <cgd@broadcom.com>
2789
2790 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
2791 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
2792 and define it so that regardless of target CPU size,
2793 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
2794 of "int" rather than "long."
2795
1fcd592b
RH
27962002-03-15 Richard Henderson <rth@redhat.com>
2797
2798 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
2799 size as a tree.
2800
a0df6910
SC
28012002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2802
2803 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
2804 ("tstqi" split): Avoid using memory for tstqi on address register.
2805 (splits): Remove constraints.
2806 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
2807 ("cmpdf", "cmpsf"): Remove since not used.
2808 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
2809 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
2810
015a2e59
SC
28112002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2812
2813 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
2814 ("neghi2"): Tighten constraints.
2815 ("one_cmplsi2"): Optimize and simplify split.
2816 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
2817
cd28557c
SC
28182002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2819
2820 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
2821 and split of AND operation to clear the upper bits.
2822 ("*logicalsi3_zextqi"): Likewise.
2823 ("*logicallhi3_zexthi_ashift8"): Likewise.
2824 ("*logicalsi3_silshr16"): Likewise.
2825 ("logicalsi3_silshl16"): Likewise.
2826 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
2827
932657df
SC
28282002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2829
2830 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
2831 (m68hc11_indirect_p): New function.
2832 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
2833 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
2834 TARGET_M6812.
2835 (asm_print_register): Likewise.
2836 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
2837 (m68hc11_indirect_p): Declare.
2838 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
2839 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
2840 (TARGET_SWITCHES): New option -mrelax.
2841 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
2842 destination.
2843 ("iorsi3", "xorsi3"): Likewise.
2844 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
2845 ("*andhi3_mem"): New to handle destination in memory with bclr
2846 and a scratch register.
2847 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
2848 ("*andhi3_const"): New when operand2 is constant.
2849 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
2850 ("*andhi3_gen"): Cleanup of the old "andhi3".
2851 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
2852 ("xorqi3"): Update constraints.
2853
fdffea1a
SC
28542002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2855
2856 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
2857 for reg_equiv_memory_loc when the operand is a register that does
2858 not get a hard register (stack location).
2859 (tst_operand): After reload, accept all memory operand.
2860 (symbolic_memory_operand): Fix detection of symbolic references.
2861 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
2862 accept symbols and any constant.
2863
6272bc68
SC
28642002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2865
2866 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
2867 note on the insn that sets the soft frame register.
2868 (must_parenthesize): ix and iy are also reserved names.
2869 (print_operand_address): One more place where parenthesis are required
2870 to avoid confusion with register names.
2871 (m68hc11_gen_movhi): Allow push of stack pointer.
2872 (m68hc11_check_z_replacement): Fix handling of parallel with a
2873 clobber.
2874 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
2875 the replacement register is.
2876 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
2877 and D8_REGS classes.
2878 (MODES_TIEABLE_P): All modes are tieable except QImode.
2879
1d2d9def
SC
28802002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2881
2882 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
2883 (___subdi3): Likewise.
2884 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
2885 (__map_data_section): Optimize 68hc11 case.
2886
a0ccf503
SC
28872002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2888
2889 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
2890 than a shift to avoid adding a register with itself.
2891 (m68hc11_memory_move_cost): Take into account NO_REGS.
2892 (m68hc11_register_move_cost): Update and use memory move cost
2893 for soft registers.
2894 (m68hc11_address_cost): Make cost of valid offset not 0 so that
2895 it gives more opportunities to cse to optimize.
2896 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
2897 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
2898
6e4ae815
MM
28992002-03-15 Mark Mitchell <mark@codesourcery.com>
2900
2901 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
2902 * c-common.def (CLEANUP_STMT): New tree node.
2903 * c-common.h (CLEANUP_DECL): New macro.
2904 (CLEANUP_EXPR): Likewise.
2905 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
2906 * expr.c (expand_expr): Tidy.
2907 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
2908 * tree-inline.c (initialize_inlined_parameters): Clean up
2909 new local variables.
2910
a42519be
JJ
29112002-03-15 Jakub Jelinek <jakub@redhat.com>
2912
2913 PR bootstrap/4128
2914 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
2915 before movrXX only, use reg_overlap_mentioned_p.
2916 Only special case NE if just one insn can be generated.
2917
15409448
JM
29182002-03-15 Jason Merrill <jason@redhat.com>
2919
2920 * varasm.c (assemble_variable): Call resolve_unique_section before
2921 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
2922 of error_mark_node.
2923
3a4edb44
RE
29242002-03-15 Richard Earnshaw <rearnsha@arm.com>
2925
2926 PR target/5170
2927 * arm.md (split pattern for thumb shiftable immediates): Add comment
2928 explaining non-obvious test.
2929
32defa36
RE
29302002-03-15 Richard Earnshaw <rearnsha@arm.com>
2931
2932 PR target/5712
2933 * arm.md (movaddr, movaddr_insn): Delete.
2934
5cc90635
JM
29352002-03-15 Jason Merrill <jason@redhat.com>
2936
2937 * toplev.c (wrapup_global_declarations): Clarify variable handling.
2938 -fkeep-static-consts doesn't apply to comdats.
2939
ecb0eece
RH
29402002-03-14 Richard Henderson <rth@redhat.com>
2941
2942 * c-decl.c: Include c-pragma.h.
2943 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
2944 (finish_function): Tidy.
2945 * c-pragma.c: Include c-common.h.
2946 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
2947 (handle_pragma_weak): Use them.
2948 (init_pragma): Register pending_weaks.
2949 * c-pragma.h (maybe_apply_pragma_weak): Declare.
2950 * print-tree.c (print_node): Print DECL_WEAK.
2951 * varasm.c (mark_weak_decls): Remove.
2952 (remove_from_pending_weak_list): Remove.
2953 (add_weak): Remove.
2954 (asm_emit_uninitialised): Call globalize_decl for weak commons.
2955 (weak_decls): Make a tree_list.
2956 (declare_weak): Cons weak_decls directly.
2957 (globalize_decl): Remove weak_decls elements directly.
2958 (weak_finish): Simplify weak_decls walk. Don't weaken unused
2959 symbols. Don't pretend to handle aliases.
2960 (init_varasm_once): Update weak_decls registry.
2961 * Makefile.in: Update dependencies.
2962
98d2b17e
RH
29632002-03-14 Richard Henderson <rth@redhat.com>
2964
2965 PR target/5312
2966 * config/ia64/ia64.c: Include tm_p.h last.
2967 (gen_nop_type): Remove duplicate definition.
2968 (cycle_end_fill_slots): Set sched_data for second L slot.
2969 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
2970 (nop_cycles_until): Fix typos.
2971
f2f4927e
JJ
29722002-03-15 Jakub Jelinek <jakub@redhat.com>
2973
2974 PR optimization/5891
2975 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
2976
5025a549
DM
29772002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
2978
2979 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
2980 descriptors correctly.
2981
03e9dbc9
MM
29822002-03-14 Michael Meissner <meissner@redhat.com>
2983
2984 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
2985 100, allowing MAX_UNROLLED_INSNS to be overridden.
2986
2987 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
2988 --param.
2989
2990 * unroll.c (params.h): Include.
2991 (MAX_UNROLLED_INSNS): Delete, now in params.h.
2992
2993 * doc/invoke.texi (--param max-unroll-insns): Document.
2994
2995 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
2996
12249385
RE
29972002-03-14 Richard Earnshaw <rearnsha@arm.com>
2998
2999 * arm.md: Fix warnings about constraints in peepholes and splits.
3000
f0cce04a
ZW
30012002-03-14 Zack Weinberg <zack@codesourcery.com>
3002
3003 * cpphash.h (struct lexer_state): Remove line_extension member.
3004 * cpplib.c (dequote_string, do_linemarker): New functions.
3005 (linemarker_dir): New data object.
3006 (DIRECTIVE_TABLE): No longer need to interpret #line in
3007 preprocessed source. Delete obsolete comment about return
3008 values of handlers.
3009 (end_directive, directive_diagnostics, _cpp_handle_directive):
3010 Don't muck with line_extension.
3011 (directive_diagnostics): No need to issue warnings for
3012 linemarkers here.
3013 (_cpp_handle_directive): Issue warnings for linemarkers here,
3014 when appropriate. Dispatch linemarkers to do_linemarker, not
3015 do_line.
3016 (do_line): Code to handle linemarkers split out to do_linemarker.
3017 Convert escape sequences in filename argument, both places.
3018
3019 * cppmacro.c (quote_string): Rename cpp_quote_string and
3020 export. All callers changed.
3021 * cpplib.h (cpp_quote_string): Prototype.
3022 * cppmain.c (print_line): Call cpp_quote_string on to_file
3023 before printing it.
3024
3025 * doc/cpp.texi: Document that escapes are now interpreted in
3026 #line and in linemarkers, and that non-printing characters are
3027 converted to octal escapes when linemarkers are generated.
3028
3029Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
83a49407
JH
3030
3031 * emit-rtl.c (try_split): Use delete_insns.
3032 * recog.c (split_all_insns): Fix terminating condition.
3033
c882c7ac
RE
30342002-03-14 Richard Earnshaw <rearnsha@arm.com>
3035 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3036
3037 PR target/5828
3038 * arm.c (arm_output_epilogue): Fix floating-point register save
3039 adjustment when using a frame pointer.
3040
3f26edaa
RS
30412002-03-14 Richard Sandiford <rsandifo@redhat.com>
3042
3043 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3044 * config/mips/mips.c (compute_frame_size): Retrofit them here.
3045 (save_restore_insns, mips_expand_epilogue): And here.
3046 (build_mips16_call_stub): And here.
3047 (mips_function_value): Use the new macros to decide whether a single
3048 or complex float can be returned in floating-point registers. Return
3049 a parallel rtx in the complex case.
3050
1e3881c2
JH
3051Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
3052
3053 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3054 call after liveness analysis.
3055
3056 * recog.c (split_insn): Use delete_insn_and_edges.
3057
3058 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3059 instructions to have branch prediction notes.
3060 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3061
200ef634
GK
30622002-03-14 Geoffrey Keating <geoffk@redhat.com>
3063
3064 * configure.in: Don't pass -Wno-long-long to a ADA compiler
3065 that doesn't support it.
3066 * configure: Regenerate.
3067
0b82d204
JJ
30682002-03-13 Jakub Jelinek <jakub@redhat.com>
3069
3070 PR target/5626
3071 * config/sparc/sparc.md (normal_branch, inverted_branch,
3072 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3073 inverted_fp_branch): Adjust calls to output_cbranch.
3074 Set length attribute.
3075 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3076 output_v9branch. Set length attribute.
3077 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3078 predicates.
3079 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3080 (output_cbranch): Likewise. Handle far branches.
3081 (output_v9branch): Handle far branches.
3082 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3083 Adjust prototypes.
3084 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3085 noov_compare64_op predicates.
3086
7a8de19b
JM
30872002-03-13 Jason Merrill <jason@redhat.com>
3088
3089 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3090 into the function and constify it.
3091 * gthr-dce.h, gthr-solaris.h: Likewise.
3092
2a55fd42
DE
30932002-03-13 David Edelsohn <edelsohn@gnu.org>
3094
3095 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3096 * config/rs6000/rs6000.c (rs6000_va_arg): Use
3097 std_expand_builtin_va_arg if not ABI_V4.
3098
19c5b1cf
JM
30992002-03-13 Jason Merrill <jason@redhat.com>
3100
3101 * varasm.c (globalize_decl): New fn.
3102 (assemble_start_function): Use it.
3103 (asm_emit_uninitialized): Use it.
3104 (assemble_alias): Use it.
3105 (assemble_variable): Use it.
3106
2a15f5e1
HPN
31072002-03-13 Hans-Peter Nilsson <hp@axis.com>
3108
3109 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
f0cce04a 3110 2002-03-12 internal visibility change.
2a15f5e1
HPN
3111 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3112 visibility into SYMBOL_REF_FLAG.
3113
c0a3eeac
UW
31142002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
3115
3116 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3117 VOIDmode operand. Add compile-time optimization for constant results.
3118
a1652cee
JM
31192002-03-12 Jason Merrill <jason@redhat.com>
3120
3121 * c-typeck.c (convert_for_assignment): Don't allow conversions
3122 between pointers and references. Only allow lvalues to convert to
3123 reference.
3124
c52a375d
HP
31252002-03-13 Hartmut Penner <hpenner@de.ibm.com>
3126
f0cce04a
ZW
3127 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3128 before prologue, to avoid scheduling problems.
c52a375d 3129
e387e99b
JJ
31302002-03-13 Jakub Jelinek <jakub@redhat.com>
3131
3132 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3133 (ELIMINABLE_REGS): Add sfp->sp.
3134 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3135
31362002-03-13 Jakub Jelinek <jakub@redhat.com>
09948ece
JJ
3137
3138 PR optimization/5892
3139 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3140
4061c1a3
JJ
31412002-03-13 Jakub Jelinek <jakub@redhat.com>
3142
3143 * loop.c (basic_induction_var): Don't call convert_modes if mode
3144 classes are different.
3145
5b43fed1
RH
31462002-03-12 Richard Henderson <rth@redhat.com>
3147
9f53e965
RH
3148 PR optimization/5901
3149 * function.c (reposition_prologue_and_epilogue_notes): Position
3150 the markers after/before the last/first insn not deleted.
3151
31522002-03-12 Richard Henderson <rth@redhat.com>
3153
3154 PR optimization/5878
5b43fed1
RH
3155 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3156 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3157 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3158
3159 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3160 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3161 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3162
3163 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3164 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3165 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3166 also. Don't set it if not flag_pic.
3167 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3168 to be INVALID_REGNUM when not used.
3169
4e9bb42b
AH
31702002-03-13 Aldy Hernandez <aldyh@redhat.com>
3171
5b43fed1
RH
3172 * expmed.c (store_bit_field): Reset alias set for memory.
3173 (extract_bit_field): Same.
4e9bb42b 3174
2f9834e8
KG
31752002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3176
3177 * c-common.c (c_tree_code_type, c_tree_code_length,
3178 c_tree_code_name, add_c_tree_codes): Delete.
3179 * c-common.h (add_c_tree_codes): Delete.
3180 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3181 Define.
3182 * c-objc-common.c (c_objc_common_init): Don't call
3183 add_c_tree_codes, instead set lang_unsafe_for_reeval.
3184 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3185 objc_tree_code_name, add_objc_tree_codes): Delete.
3186 (objc_init): Don't call add_objc_tree_codes.
3187 * objc/objc-lang.c (tree_code_type, tree_code_length,
3188 tree_code_name): Define.
3189 * toplev.c (lang_independent_init): Don't set
3190 tree_code_length[IDENTIFIER_NODE].
3191 * tree.c (tree_code_type, tree_code_length, tree_code_name):
3192 Delete definitions, moved to language front-ends.
3193 * tree.def (IDENTIFIER_NODE): Hardwire the length.
3194 * tree.h (tree_code_type, tree_code_length, tree_code_name):
3195 Const-ify.
3196 (tree_code_length): Change type to unsigned char.
3197
36ad2436
RH
31982002-03-12 Richard Henderson <rth@redhat.com>
3199
3200 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3201 internal visibility change.
3202
0ae02efa
BW
32032002-03-12 Bob Wilson <bob.wilson@acm.org>
3204
3205 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3206 validize_mem() instead of change_address to avoid clobbering
3207 memory attributes.
3208
35bb2bee
NB
32092002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
3210
3211 * c-lex.h (position_after_whitespace): Remove.
3212
62ae2529
JJ
32132002-03-12 Jakub Jelinek <jakub@redhat.com>
3214
3215 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3216 (lex_string): Use unsigned char pointers.
3217
6a45951f
UW
32182002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
3219
3220 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3221 is not a valid memory_operand.
3222
e2fb85da
BW
32232002-03-12 Bob Wilson <bob.wilson@acm.org>
3224
3225 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3226 * config/xtensa/lib1funcs.asm: Fix copyright to include
3227 special case for libgcc files.
3228 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3229 (__divsi3): Likewise.
3230 (__umodsi3): Likewise.
3231 (__modsi3): Likewise.
3232 * config/xtensa/lib2funcs.S: Fix copyright to include
3233 special case for libgcc files.
3234
5b8619f8
TR
32352002-03-12 Tom Rix <trix@redhat.com>
3236
3237 * collect2.c (resolve_lib_name): Move outside of
f0cce04a 3238 OBJECT_FORMAT_COFF ifdef.
5b8619f8
TR
3239 (ignore_library): Same.
3240
089c8f97
BW
32412002-03-12 Bob Wilson <bob.wilson@acm.org>
3242
3243 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3244
958c70ff
BW
32452002-03-12 Bob Wilson <bob.wilson@acm.org>
3246
3247 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3248 to function_section before writing out the constant pool.
3249
a65c591c
DE
32502002-03-12 David Edelsohn <edelsohn@gnu.org>
3251
3252 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3253 zero_constant.
3254 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3255
32562002-03-12 Alan Modra <amodra@bigpond.net.au>
3257
3258 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3259 (adddi3): Likewise.
3260 (movdf): Likewise.
3261 (movdi): Likewise.
3262 (cmpsi splitter): Likewise.
3263 (modsi3): Fail if <= 0.
3264 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3265 redundant test when HOST_BITS_PER_WIDE_INT != 32.
3266 (reg_or_sub_cint64_operand): Likewise.
3267 (num_insns_constant_wide): Optimize sign extension.
3268 (rs6000_legitimize_address): Likewise.
3269
17720332
AM
32702002-03-12 Andrew MacLeod <amacleod@redhat.com>
3271
3272 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3273 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3274
cd49f073
AM
32752002-03-12 Andrew MacLeod <amacleod@redhat.com>
3276
3277 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3278 address calculation.
3279
6a4e49c1
UW
32802002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
3281
3282 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3283 scratch register to DImode / TImode.
3284 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3285 register used does not overlap the target.
3286
54b6670a
KG
32872002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3288
3289 * Makefile.in (debug.o): Depend on debug.h.
3290 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3291 * debug.c (do_nothing_debug_hooks): Likewise.
3292 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3293 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3294 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3295 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3296 * dwarfout.c (dwarf_debug_hooks): Likewise.
3297 * integrate.c (output_inline_function): Likewise.
3298 * objc/objc-act.c (synth_module_prologue): Likewise.
3299 * sdbout.c (sdb_debug_hooks): Likewise.
3300 * toplev.c (debug_hooks): Likewise.
3301 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3302
2465bf76
KG
33032002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3304
3305 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3306 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3307 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3308 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3309 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3310 * defaults.h (POINTER_SIZE): Define.
3311 * doc/tm.texi (POINTER_SIZE): Document default.
3312
53f3e9ca
KG
33132002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3314
3315 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3316
44d3eb5b
RH
33172002-03-11 Richard Henderson <rth@redhat.com>
3318
3319 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3320 if rebuild_label_notes_after_reload.
3321
4a085d2e
HPN
33222002-03-12 Hans-Peter Nilsson <hp@axis.com>
3323
3324 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
3325 emit pic register load if "internal" visibility.
3326 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3327 (cris_expand_builtin_va_arg): Do all computations on trees.
3328
bc204393
RH
33292002-03-11 Richard Henderson <rth@redhat.com>
3330
3331 * rtlanal.c: Include recog.h.
3332 (keep_with_call_p): Fix thinko.
3333 * Makefile.in (rtlanal.o): Update dependencies.
3334
6b8b9d7b
CM
33352002-03-11 Chris Meyer <cmeyer@gatan.com>
3336
3337 * genflags.c (gen_insn): Use IS_VSPACE.
3338 * genoutput.c (output_insn_data): Likewise.
3339 (process_template): Likewise.
3340
6c40858f
RH
33412002-03-11 Richard Henderson <rth@redhat.com>
3342
3343 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3344
40adaa27
NB
33452002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
3346
3347 * Makefile.in: Update.
6c40858f 3348 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
40adaa27 3349 Update documentation.
6c40858f
RH
3350 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3351 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
40adaa27 3352
049b03f4
ZW
33532002-03-11 Zack Weinberg <zack@codesourcery.com>
3354
3355 * Makefile.in: Give texi2pod its input file as a command line
3356 argument, not on stdin.
3357
61eece67
DN
33582002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
3359 Daniel Berlin <dan@dberlin.org>
3360
3361 C++ alias analysis improvement.
f0cce04a 3362 * alias.c (record_component_aliases): Record aliases for base
61eece67
DN
3363 classes too.
3364
a65c591c
DE
33652002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
3366
ff080aba
UW
3367 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3368
1682dbb1
DR
33692002-03-11 Douglas B Rupp <rupp@gnat.com>
3370
fa2d765a
DR
3371 * toplev.c (vms_fopen): Remove, not needed.
3372
6f1fd286
DR
3373 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3374
b230e057
DR
3375 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3376
cb9a8e97
DR
3377 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3378 for FP, already done later.
3379
1682dbb1
DR
3380 * toplev.c (debug_args): Add entry for VMS_DEBUG.
3381 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3382
3fcaac1d
RS
33832002-03-11 Richard Sandiford <rsandifo@redhat.com>
3384
3385 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3386 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3387 LARGEST_EXPONENT_IS_NORMAL for the given mode.
3388 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3389 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3390 (ediv, emul, eldexp, esqrt): Likewise.
3391 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3392 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3393 (saturate): New function.
3394 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3395 (make_nan): Use a saturation value instead of a NaN if
3396 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
3397 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3398 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
3399 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
3400 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3401 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3402 !ROUND_TOWARDS_ZERO.
3403 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3404 (ROUND_TOWARDS_ZERO): Document.
3405
d25558be
AJ
34062002-03-11 Andreas Jaeger <aj@suse.de>
3407
3408 * cfg.c (dump_flow_info): Remove unused variable.
3409
c71f9ae7
HPN
34102002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
3411
3412 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3413 computations on trees.
3414
561c9153
RH
34152002-03-10 Richard Henderson <rth@redhat.com>
3416
932b4e3e 3417 PR 5693:
561c9153
RH
3418 * reload.c (copy_replacements_1): New.
3419 (copy_replacements): Use it to recurse through the rtx.
3420
26b738be
RH
34212002-03-10 Richard Henderson <rth@redhat.com>
3422
3423 * loop.c (strength_reduce): Compute number of iterations as
3424 unsigned HOST_WIDE_INT.
3425
8d8a083e
RH
34262002-03-10 Richard Henderson <rth@redhat.com>
3427
3428 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3429 to move away from the end of the block.
3430
32810ba3
NB
34312002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
3432
3433 PR preprocessor/5899
3434 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
d25558be 3435
2b03d201
KG
34362002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3437
f90c544c
KG
3438 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
3439
2b03d201
KG
3440 * attribs.c (decl_attributes): Fix signed/unsigned warning.
3441
3ec1b4cb
HPN
34422002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
3443
3444 * config/mmix/mmix.c: Improve comments.
3445 (mmix_target_asm_function_prologue): Drop variable
3446 empty_stack_frame. Don't allocate unused slot above fp.
3447 (mmix_target_asm_function_epilogue): Mirror prologue changes.
3448 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3449 brace in first column.
3450 (enum reg_class): Ditto.
3451 (FIRST_PARM_OFFSET): Now 0.
3452 (USER_LABEL_PREFIX): Remove #if 0:d definition.
3453
27e486c5
KG
34542002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3455
3456 * combine.c (make_extraction): Fix error in last change.
3457
0139adca
KG
34582002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3459
3460 * c4x.c (c4x_fp_reglist): Const-ify.
3461 * cris.c (cris_print_operand): Likewise.
3462 * i386.c (ix86_va_arg): Likewise.
3463 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3464 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3465 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3466 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3467 * mcore.h (regno_reg_class): Likewise.
3468 * mips.c (gen_int_relational): Likewise.
3469 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3470 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
a4334c36 3471 * pdp11.c (move_costs): Likewise.
0139adca
KG
3472 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3473 * s390.c (s390_branch_condition_mnemonic, regclass_map):
3474 Likewise.
3475 * s390.h (regclass_map): Likewise.
3476 * sh.c (shift_amounts): Likewise.
a4334c36 3477 * sh.md (rotlsi3): Likewise.
0139adca 3478
889b90a1
GK
34792002-03-09 Geoffrey Keating <geoffk@redhat.com>
3480
3481 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
3482 (ne0+5): Use new clobber to generate proper shift pattern.
3483 Patch by Michael Matz <matz@kde.org>.
3484
2877e0ae
AS
34852002-03-09 Andreas Schwab <schwab@suse.de>
3486
3487 * gcc.c (validate_all_switches): Also handle `%W{...}'.
3488
79b51cd7
GK
34892002-03-09 Geoffrey Keating <geoffk@redhat.com>
3490
3491 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
3492
e0f1be5c
JJ
34932002-03-09 Jakub Jelinek <jakub@redhat.com>
3494
3495 PR middle-end/5877
3496 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
3497 even for non-representable constants.
3498
0a7ec763
RK
3499Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3500
93fe8e92
RK
3501 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
3502 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
3503 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
3504 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
3505 (pop_function_context): Compute MAY_SHARE parameter for
3506 fixup_var_refs.
3507 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
3508 (gen_mem_addressof): Call fixup_var_refs with new parm.
3509
0a7ec763
RK
3510 * combine.c (make_extraction): Don't make extension of CONST_INT.
3511
a85cd407
AO
35122002-03-09 Alexandre Oliva <aoliva@redhat.com>
3513
9445b814
AO
3514 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3515 in o32 and o64 ABIs.
3516 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3517 but getting fixed-size structs passed in registers regardless of
3518 padding in o32 and o64 ABIs.
3519
a85cd407
AO
3520 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3521 offset before loading address of argument passed by transparent
3522 reference.
3523
c51fbe40
JDA
35242002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3525
3526 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
3527
918e70dd
AO
35282002-03-09 Alexandre Oliva <aoliva@redhat.com>
3529
3530 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
3531 marker such that registers after it are saved.
3532
3070dd00
KG
35332002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3534
3535 * sparc.c (arith_4096_operand): Fix error in last change.
3536
e25d11b0
AO
35372002-03-08 Alexandre Oliva <aoliva@redhat.com>
3538
3539 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
3540 defaults for MEABI.
3541
41daaf0e
AH
35422002-03-08 Aldy Hernandez <aldyh@redhat.com>
3543
5b43fed1
RH
3544 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
3545 vectors.
41daaf0e 3546
fa139b00
AH
35472002-03-08 Aldy Hernandez <aldyh@redhat.com>
3548
5b43fed1 3549 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
fa139b00 3550
c51d95ec
JH
3551Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
3552
3553 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
3554 removed; fix return value.
3555 * combine.c (combine_instructions): Dirtify blocks where we failed to
3556 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
3557 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
3558
3b25fbfe
KG
35592002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3560
3561 * gcse.c (insert_insn_end_bb): Fix typo in last change.
3562
189ae0f4
JH
3563Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
3564
3565 * recog.c (peephole2_optimize): Re-distribute EH edges.
3566
24965e7a
NB
35672002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
3568
3569 * expr.c (expand_expr): Use unsave lang hook.
3570 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
3571 (LANG_HOOKS_INITIALIZER): Update.
3572 * langhooks.h (struct lang_hooks): New hook unsave.
3573 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
3574 (unsave_expr_1): Remove unused lang_unsave_expr_now.
3575 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
3576 (unsave_expr_now): Remove.
3577 * tree.h (unsave_expr_now, lang_unsave,
3578 lang_unsave_expr_now): Remove.
3579 (lhd_unsave): New.
3580
1e4e95d6
AJ
35812002-03-08 Andreas Jaeger <aj@suse.de>
3582
3583 * flow.c (propagate_block_delete_insn): Remove unused variable.
3584
054ef905
KH
35852002-03-08 Kazu Hirata <kazu@hxi.com>
3586
3587 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
3588 insn length for memory load/store.
3589
5304400d 35902002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1e4e95d6 3591
5304400d
CR
3592 * doc/install.texi (--with-libiconv-prefix): Document.
3593
81034129
MB
35942002-03-08 Michael Y. Brukman <myb2@cornell.edu>
3595
3596 * doc/sourcebuild.texi: Fix typo.
3597
71db7d03
JJ
35982002-03-08 Jakub Jelinek <jakub@redhat.com>
3599
3600 PR c/3711
3601 * builtins.c (std_expand_builtin_va_arg): Do all computations on
3602 trees.
3603
127c1ba5
RK
3604Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3605
3606 * rtl.c (copy_most_rtx): Move from here ...
3607 * emit-rtl.c (copy_most_rtx): ... to here.
3608
8a13c092
AO
36092002-03-08 Alexandre Oliva <aoliva@redhat.com>
3610
5faae4f7
AO
3611 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
3612 SUBTARGET_CPP_SIZE_SPEC.
3613 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
3614
8a13c092
AO
3615 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
3616
4ec59de2
MH
36172002-03-07 Matt Hiller <hiller@redhat.com>
3618
3619 * gensupport.c (first_dir_md_include): Renamed from include;
3620 change all references.
3621 (last_dir_md_include): Renamed from last_include; change all
3622 references.
3623 (init_md_reader): Unconditionally initialize base_dir whether or
3624 not filename is a relative path.
3625
12f61e77
AO
36262002-03-07 Alexandre Oliva <aoliva@redhat.com>
3627
95356058
AO
3628 * config/fp-bit.c (_unord_f2): Compile it in even if
3629 US_SOFTWARE_GOFAST is enabled.
3630
12f61e77
AO
3631 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
3632 NULL_RTX. Set all HFmode operations as NULL_RTX.
3633 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
3634 NULL_RTX, try reversing the comparison and the operands.
3635
6d7a1c4c
UW
36362002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3637
3638 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
3639 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
3640 and MATCH_OP_DUP.
3641
66d54344
JH
3642Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
3643
3644 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
3645
068473ec
JH
3646Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
3647
3648 * basic-block.h (fixup_abnormal_edges): Declare.
3649 * reload1.c (fixup_abnormal_edges): New function.
3650 * reg-stack.c (convert_regs): Use it.
3651
3652 * gcse.c (insert_insn_end_bb): Handle trapping insns.
3653
3654 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
3655
71925bc0
RS
36562002-03-07 Richard Sandiford <rsandifo@redhat.com>
3657
3658 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
3659 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
3660 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
3661 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
3662 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
3663 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
3664 unless x and y could be infinite.
3665 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
3666 Check that the common type of both arguments is a real, even for
3667 targets without unordered comparisons. Allow an integer argument
3668 to be compared against a real.
3669 (expand_tree_builtin): Use expand_unordered_cmp.
3670 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
3671 * cse.c (fold_rtx): Likewise. Fix indentation.
3672 * fold-const.c (fold_real_zero_addition_p): New.
3673 (fold): Use it, and the new HONOR_... macros.
3674 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
3675 * jump.c (reversed_comparison_code_parts): After searching for
3676 the true comparison mode, use HONOR_NANS to decide whether it
3677 can be safely reversed.
3678 (reverse_condition_maybe_unordered): Remove IEEE check.
3679 * simplify-rtx.c (simplify_binary_operation): Use the new macros
3680 to decide which simplifications are valid. Allow the following
3681 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
3682 and (a - -b) to (a + b).
3683 (simplify_relational_operation): Use HONOR_NANS.
3684 * doc/tm.texi: Document the MODE_HAS_... macros.
3685
145d3bf2
RE
36862002-03-07 Richard Earnshaw <rearnsha@arm.com>
3687
3688 * combine.c (simplify_comparison): If simplifying a logical shift
3689 right and compare with constant, force the comparison to unsigned.
3690
76a773f3
AH
36912002-03-07 Aldy Hernandez <aldyh@redhat.com>
3692
5b43fed1 3693 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
76a773f3 3694
5b43fed1
RH
3695 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
3696 -mabi=no-altivec
3697 (alt_reg_names): Remove % for vrsave.
76a773f3 3698
ab55f58c
RH
36992002-03-06 Richard Henderson <rth@redhat.com>
3700
5ddec02e 3701 PR optimization/5844
ab55f58c
RH
3702 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
3703 if used indicates we've already emitted one copy of an operand.
3704 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
3705 (gen_split): Supply a non-null used.
3706
e16e3291
UW
37072002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3708
5b43fed1 3709 * reload1.c (reload): Unshare all rtl after reload is done.
e16e3291 3710
1e4e95d6 3711 * simplify-rtx.c (simplify_plus_minus): Do not abort,
e16e3291
UW
3712 but simply fail if the expression is too complex to simplify.
3713 (simplify_gen_binary): Handle simplify_plus_minus failures.
3714
2ca6672b
JH
3715Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
3716
3717 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
3718 consistently call delete_trivially_dead_insns after CSE and GCSE;
3719 fix DFI_life dumping; do jump threading after liveness; do crossjumping
3720 after liveness2; update comment in last crossjumping.
3721 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
3722
31d0dd4f
JL
3723Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
3724
d094b0b3
JL
3725 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
3726 after completing fast dead code elimination.
3727
31d0dd4f
JL
3728 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
3729 COMPARE operator.
1e4e95d6 3730
f2b958b1
PE
37312002-03-06 Phil Edwards <pme@gcc.gnu.org>
3732
3733 * version.c: Fix misplaced leading blanks on first line.
3734
a2877a09
JH
3735Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
3736
3737 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
3738
fe477d8b
JH
3739Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
3740
3741 * cfgcleanup.c (mentions_nonequal_regs): New function.
3742 (thread_jump): Use it.
3743 * toplev.c (rest_of_compilation): Run jump threading after
3744 liveness.
3745
2041cde4
JJ
37462002-03-06 Jakub Jelinek <jakub@redhat.com>
3747
3748 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
3749 patch.
3750
82d68d46
JH
3751Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
3752
3753 * predict.c (estimate_bb_frequencies): Do not reload the
3754 frequencies from notes.
3755
3dec4024
JH
3756Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
3757
3758 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
3759 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
3760
3761 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
3762 delete_noop_moves): Return indeger.
3763 * flow.c (ndead): New variable.
3764 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
3765 BB argument; update callers.
3766 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
3767 (life_analysis): Do not call purge_all_dead_edges.
3768 (update_life_info): Return number of deleted insns; print statistics.
3769 (update_life_info_in_dirty_blocks): likewise.
3770 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
3771 return number of insns deleted.
3772
3773 * cse.c: Include timevar.h
3774 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
3775 iterate until stabilizes; print statistics; return number of killed
3776 insns.
3777 * Makefile.in: (cse.o): Add timevar.h dependency
3778 * rtl.h (delete_trivially_dead_insns): New.
3779 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
3780 * toplev.c (rest_of_compilation): Update callers.
3781
3782 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
3783 (try_optimize_cfg): Do not update liveness.
3784 (cleanup-cfg): Loop until try_optimize_cfg and dead code
3785 removal stabilizes; use delete_trivially_dead_insns.
3786
3787 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
3788
c7544dd8
ZW
37892002-03-05 Zack Weinberg <zack@codesourcery.com>
3790
3791 * cppmain.c (setup_callbacks): Disable #pragma and #ident
3792 callbacks when processing assembly language.
3793
50b424a9
JDA
37942002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3795
3796 * pa.h (ASM_FILE_END): Define.
3797 * som.h (ASM_FILE_END): Delete.
3798
3799 * pa.c (function_arg): Don't pass floats in general registers in
3800 indirect calls if TARGET_ELF32.
3801
6185f217
RH
38022002-03-05 Richard Henderson <rth@redhat.com>
3803
3804 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
3805
3020a4b2
DS
38062002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
3807
3808 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
3809
65649daa
JJ
38102002-03-05 Jakub Jelinek <jakub@redhat.com>
3811
3812 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
3813 -r command line. Don't hide any symbols if not building
3814 shared libgcc.
3815
5a1a3e5e
JH
3816Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
3817
3818 * cfg.c (dump_flow_info): Warn about profile mismatches.
3819 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
3820 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
3821
170c56da
JJ
38222002-03-05 Jakub Jelinek <jakub@redhat.com>
3823
3824 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
3825 wide volatile memory by parts.
3826
6d051694
JJ
38272002-03-05 Jakub Jelinek <jakub@redhat.com>
3828
3829 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
3830 is NULL.
3831
28bcfd4d
RH
38322002-03-05 Richard Henderson <rth@redhat.com>
3833
5b43fed1 3834 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
28bcfd4d 3835
75227a33
GK
38362002-03-04 Geoffrey Keating <geoffk@redhat.com>
3837
3838 * toplev.c (documented_lang_options): Document more
3839 language-specific options.
3840 * doc/invoke.texi (Warning Options): Correct documentation for
3841 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
3842 * c-decl.c (c_decode_option): Use a table to handle warning options.
3843
4f1aac42
HPN
38442002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
3845
3846 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
3847 parameter to mmix_encode_section_info.
3848 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
3849 relocatably. Always produce ELF, not mmo if linking relocatably.
3850 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
3851 first is non-zero, don't add symbol prefix.
3852 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
3853 prototype accordingly.
3854
12345543
KW
38552002-03-04 Krister Walfridsson <cato@df.lth.se>
3856
3857 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
3858
8e97db8f
JM
38592002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
3860
3861 * configure.in: Increase required makeinfo version to 4.1.
3862 * configure: Regenerate.
3863
06487868
GK
38642002-03-04 Geoffrey Keating <geoffk@redhat.com>
3865
3866 * .cvsignore: Remove *.info* and genrtl*; these files are generated
3867 elsewhere now.
3868
cff42170
JM
38692002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
3870
3871 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
3872 * doc/invoke.texi: Fix @math uses.
3873
974a7f56
JH
3874Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
3875
3876 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
3877 removal
3878
3b7d0e98
AH
38792002-03-03 Aldy Hernandez <aldyh@redhat.com>
3880
5b43fed1
RH
3881 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
3882 (powerpc-*-eabisimaltivec*): Same.
3b7d0e98 3883
5b43fed1 3884 * config/rs6000/t-ppcendian: New.
3b7d0e98 3885
65f2f288
HB
38862002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3887
3888 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
3889 nonimmediate_src_operand and nonimmediate_lsrc_operand to
3890 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
3891
8ce0a8a5
RH
38922002-03-03 Richard Henderson <rth@redhat.com>
3893
3894 * toplev.c (rest_of_decl_compilation): Revert last two changes.
3895
ba31d94e
ZW
38962002-03-03 Zack Weinberg <zack@codesourcery.com>
3897
3898 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
3899 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
3900 tree.c, config/m68k/m68k.c:
3901 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
3902 REAL_ARITHMETIC blocks unconditional. Delete some further
3903 #ifdef blocks predicated on REAL_ARITHMETIC.
3904 * flags.h, toplev.c: Delete remaining references to
3905 flag_pretend_float.
3906
3907 * doc/invoke.texi: Remove documentation of -fpretend-float.
3908 * doc/tm.texi: Describe the various REAL_* macros as provided by
3909 real.h, not by the target configuration files.
3910
3911 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
3912 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
3913 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3914 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
3915 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
3916 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
3917 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
3918 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
3919 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3920 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
3921 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
3922 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3923 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
3924 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
3925 config/xtensa/xtensa.h:
3926 Do not define, undefine, or mention in comments any of
3927 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
3928 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
3929 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
3930 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
3931 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
3932 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
3933 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
3934 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
3935 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
3936
9a571cfd
KG
39372002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3938
e81dd381
KG
3939 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
3940 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
3941 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
3942 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
3943 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
3944 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
3945 Delete.
3946 * defaults.h (BITS_PER_WORD): Define.
ba31d94e 3947 * doc/tm.texi (BITS_PER_WORD): Document default value.
e81dd381 3948
9a571cfd
KG
3949 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
3950 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
3951 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
3952
ca7558fc
KG
39532002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3954
3955 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
3956 lieu of explicit sizeof/sizeof.
3957 * i386.c (override_options, ix86_init_mmx_sse_builtins,
3958 ix86_expand_builtin): Likewise.
3959 * mips.c (mips_add_gc_roots): Likewise.
3960 * mmix.c (mmix_output_condition): Likewise.
3961 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
3962 altivec_init_builtins): Likewise.
3963 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
3964 * cppexp.c (Nsuff, parse_number): Likewise.
3965 * cppinit.c (builtin_array_end): Likewise.
3966 * gcc.c (n_default_compilers, process_command): Likewise.
3967 * genpreds.c (output_predicate_decls): Likewise.
3968 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
3969 * lcm.c (N_ENTITIES): Likewise.
3970 * stor-layout.c (set_sizetype): Likewise.
ba31d94e 3971
41c78c88
RH
39722002-03-03 Richard Henderson <rth@redhat.com>
3973
3974 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
3975 for types or labels.
3976
9e9b71e6
RH
39772002-03-03 Richard Henderson <rth@redhat.com>
3978
3979 * c-decl.c (start_decl): Initialized variables are not common.
3980
c26a6db8
PB
39812002-03-02 Per Bothner <per@bothner.com>
3982
3983 * gcc.c (option_map): Suport new --bootclasspath option.
3984 --CLASSPATH is now just an alias for --classpath.
3985
9e8aab55
RH
39862002-03-02 Richard Henderson <rth@redhat.com>
3987
3988 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
3989 load if "internal" visibility.
3990 * doc/extend.texi: Document visibility meanings.
3991
b3bbd220
RH
39922002-03-02 Richard Henderson <rth@redhat.com>
3993
3994 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
3995 to functions as well.
3996
b14707c3
RH
39972002-03-02 Richard Henderson <rth@redhat.com>
3998
3999 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4000 (handle_visibility_attribute): Don't call assemble_visibility.
4001 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4002 without asmspec. Invoke assemble_alias when needed.
4003 * varasm.c (maybe_assemble_visibility): New.
4004 (assemble_start_function, assemble_variable, assemble_alias): Use it.
4005
b2003250
RH
40062002-03-02 Richard Henderson <rth@redhat.com>
4007
4008 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4009 invoke ENCODE_SECTION_INFO with first call flag.
4010
4011 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4012 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
ba31d94e 4013 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
b2003250
RH
4014 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4015 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4016 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4017 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4018 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4019 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4020 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4021 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4022 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
ba31d94e
ZW
4023 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4024 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
b2003250
RH
4025 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4026 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4027 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
ba31d94e 4028 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
b2003250
RH
4029 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4030 config/sh/sh.h, config/sparc/sparc.h,
4031 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4032 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4033 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4034 FIRST argument. As needed, examine it and do nothing.
4035
ba31d94e 4036 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
b2003250
RH
4037 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4038 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4039
4040 * config/arm/t-pe (pe.o): Add dependencies.
4041
5c60f03d
KG
40422002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4043
4044 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4045 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4046 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4047 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4048 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4049 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4050 * defaults.h (BITS_PER_UNIT): Define.
4051 * doc/tm.texi (BITS_PER_UNIT): Document default value.
4052
86855e8c
KH
40532002-03-02 Kazu Hirata <kazu@hxi.com>
4054
4055 * config/h8300/h8300-protos.h: Add a prototype for
4056 compute_a_shift_length.
4057 * config/h8300/h8300.c (h8300_asm_insn_count): New.
4058 (compute_a_shift_length): Likewise.
4059 (h8300_adjust_insn_length): Do not adjust insn length of shift
4060 insns.
4061 * config/h8300/h8300.md (anonymous shift patterns): Use
4062 compute_a_shift_length.
4063
f6041ed8
RK
4064Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4065
35aa3c1c
RK
4066 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4067 trunc_int_for_mode.
4068
f6041ed8
RK
4069 * emit-rtl.c (offset_address): Call update_temp_slot_address.
4070
27b41650
KG
40712002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4072
4073 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4074 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4075 * flags.h (flag_zero_initialized_in_bss): Declare.
4076 * toplev.c (flag_zero_initialized_in_bss): New flag.
4077 (lang_independent_options): Add flag_zero_initialized_in_bss.
4078 * tree.c (initializer_zerop): New function.
4079 * tree.h (initializer_zerop): Declare.
4080 * varasm.c (assemble_variable): If we can emit bss, put zero
4081 initializers in the bss section.
4082
ca734b39
AM
40832002-03-02 Alan Modra <amodra@bigpond.net.au>
4084
4085 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4086 like more than one symbol per .weak directive.
4087
49b72306
RH
40882002-03-01 Richard Henderson <rth@redhat.com>
4089
4090 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4091 adjust argument_pointer by pretend_args_size.
4092 (ia64_va_start): Adjust va_start address by -pretend_args_size.
4093
fbf0fe41
KH
40942002-03-01 Kazu Hirata <kazu@hxi.com>
4095
4096 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4097
0010687d
JH
4098Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
4099
4100 * toplev.c (rest_of_compilation): Delete dead jumptables before
4101 loop.
4102 * flow.c (delete_dead_jumptables): Make global.
4103 * rtl.h (delete_dead_jumptables): Declare.
4104
9429c84c
DE
41052002-03-01 David Edelsohn <edelsohn@gnu.org>
4106
4107 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4108 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
0c2fdcdf 4109 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9429c84c 4110
f0b6f9a6
KH
41112002-03-01 Kazu Hirata <kazu@hxi.com>
4112
4113 * config/h8300/h8300-protos.h: Fix formatting.
4114 * config/h8300/h8300.c: Likewise.
4115 * config/h8300/h8300.h: Likewise.
4116
bc8db8a1
KH
41172002-03-01 Kazu Hirata <kazu@hxi.com>
4118
4119 * config/h8300/h8300.c (print_operand): Support 16-bit
4120 constant addresses.
4121 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4122
32b069d3
RH
41232002-02-28 Richard Henderson <rth@redhat.com>
4124
4125 * expmed.c (store_bit_field): Prevent generation of CONCATs;
4126 pun complex values as integers; use gen_lowpart instead of
4127 gen_rtx_SUBREG.
4128 (extract_bit_field): Likewise.
4129
79c4e63f
AM
41302002-03-01 Alan Modra <amodra@bigpond.net.au>
4131 David Edelsohn <edelsohn@gnu.org>
4132
4133 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4134 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4135 (SUPPORTS_WEAK): Likewise.
4136 * output.h (add_weak): Add tree param.
4137 * varasm.c (add_weak): Likewise. Save decl.
4138 (struct weak_syms): Add decl field.
4139 (mark_weak_decls): New function.
4140 (init_varasm_once): ggc_add_root mark_weak_decls.
4141 (assemble_start_function): Use ASM_WEAKEN_DECL.
4142 (assemble_variable): Likewise.
4143 (assemble_alias): Likewise.
4144 (declare_weak): Pass decl to add_weak.
4145 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4146 (remove_from_pending_weak_list): Declare and define for
4147 ASM_WEAKEN_DECL.
4148 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4149 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4150 * defaults.h (SUPPORTS_WEAK): Likewise.
4151 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4152 .weak for code sym. Do emit .size for descriptor sym.
4153 (ASM_DECLARE_FUNCTION_SIZE): Define.
4154 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4155 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
4156 .lglobl unless TARGET_XCOFF. Formatting fixes.
4157 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4158 .weak for code sym.
4159 (HANDLE_PRAGMA_WEAK): Remove.
4160 (ASM_WEAKEN_LABEL): Remove.
4161 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4162
6f30f1f1
JM
41632002-03-01 Jason Merrill <jason@redhat.com>
4164
4165 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4166 (TARGET_EXPR_CLEANUP): New macro.
4167
7879b81e
SE
41682002-02-28 Steve Ellcey <sje@cup.hp.com>
4169
4170 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4171 to take ptr_extend into account as third type of extension.
4172 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4173 fields used by SUBREG_PROMOTED_UNSIGNED_P.
4174 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4175 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4176 * calls.c (precompute_arguments): Use new macro.
4177 (expand_call): Ditto.
4178 * combine.c (nonzero_bits): Ditto.
4179 (record_promoted_value): Ditto.
4180 * expr.c (store_expr): Ditto.
4181 (expand_expr): Ditto.
4182 * function.c (assign_parms): Ditto.
4183
42d579d8
AO
41842002-02-28 Alexandre Oliva <aoliva@redhat.com>
4185
4186 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4187 override -shared and -shared-libgcc.
4188
e0054185
DB
41892002-02-28 David O'Brien <obrien@FreeBSD.org>
4190
4191 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4192 of "ultrasparc".
4193 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
4194 to be broken.
4195
abda4f1c
RH
41962002-02-28 Richard Henderson <rth@redhat.com>
4197
4198 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4199 4 cycle latency from MM producers.
4200 (ia64_internal_sched_reorder): Likewise with pipeline flush.
4201
c0f08649
JJ
42022002-02-28 Jakub Jelinek <jakub@redhat.com>
4203
4204 * mklibgcc.in: Don't use GNU make extension.
4205
f79f2651
NB
42062002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4207
4208 * c-parse.in (STATIC): New terminal.
4209 (scspec): New non-terminal. Update productions accordingly.
4210 (program): Remove bogus ifc / end ifc.
4211 (array_declarator): Simplify production using STATIC.
4212
001e3fee
JM
42132002-02-28 Jim Meyering <meyering@lucent.com>
4214
4215 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4216 \a still means TARGET_BELL.
4217
89076bb3
RH
42182002-02-28 Richard Henderson <rth@redhat.com>
4219
4220 * haifa-sched.c (sched_emit_insn): New.
4221 (schedule_block): Use last_scheduled_insn to track last insn.
4222 * sched-int.h (sched_emit_insn): Prototype.
4223 * config/ia64/ia64.c (last_issued): Remove.
4224 (ia64_variable_issue): Don't set it.
4225 (nop_cycles_until): Use sched_emit_insn.
4226
e3aaacf4
AM
42272002-02-28 Andrew MacLeod <amacleod@redhat.com>
4228
4229 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4230 extended constants.
4231
7f473594
KH
42322002-02-28 Kazu Hirata <kazu@hxi.com>
4233
4234 * config/h8300/h8300.c: Fix formatting.
4235 * config/h8300/h8300.h: Likewise.
4236
b96c434c
MM
42372002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
4238
4239 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4240 which may overwrite the high byte of the frame pointer.
4241
9b420a6a
BT
42422002-02-28 Bo Thorsen <bo@suse.de>
4243
4244 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4245 (STARTFILE_SPEC): Add 64 bit files.
4246 (ENDFILE_SPEC): Likewise.
4247
6f30f1f1 42482002-02-28 Jason Merrill <jason@redhat.com>
46cfb101
JM
4249
4250 * c-decl.c (finish_function): Only warn about missing return
4251 statement with -Wreturn-type.
4252
70da1d03
JH
4253Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
4254
4255 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4256
4257 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4258 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4259
38c1593d
JH
4260Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
4261
4262 * basic-block.h (BB_REACHABLE): Renumber.
4263 (BB_DIRTY, BB_NEW): New flags.
4264 (clear_bb_flags): Declare.
4265 (update_life_info_in_dirty_blocks): Declare.
4266 * cfg.c (clear_bb_flags): New function.
4267 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4268 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4269 reorder_insns, emit_insn_after): Mark block as dirty.
4270 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4271 (update_life_info_in_dirty_blocks): New function.
4272 * recog.c (apply_change_group): Dirtify block.
4273
4274 * cse.c (cse_insn): Reorder emitting of jump insn to keep
4275 cfg consistent.
4276 * gcse.c (delete_null_pointer_checks): Likewise.
4277
4278 * toplev.c (dump_file_index): Move cse2 after bp,
4279 add DFI_null
4280 (dump_file_info): Similary.
4281 (rest_of_compilation): Avoid most of CFG rebuilds;
4282 do first if converision after null pointer checks, do cse2
4283 after branch prediction; avoid full liveness rebuild after
4284 initializing subregs.
4285 * invoke.texi (-d options): Document -du, renumber.
4286
4287 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4288 (notice_new_block): Do not set BB_UPDATE_LIFE.
4289 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4290 merge_blocks_move_successor_nojumps, merge_blocks,
4291 try_crossjump_to_edge): Likewise.
4292 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4293 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4294 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4295 (merge_of_block): Do not use life_data_ok.
4296 (find_if_case_1): Do not use SET_UPDATE_LIFE.
4297 (if_convert): Use BB_DIRTY mechanizm to update life.
4298 * lcm.c (optimize_mode_switching): Update
4299 update_life_info_in_dirty_blocks
4300
63e1b1c4
NB
43012002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4302
4303 * Makefile.in (integrate.o): Update.
4304 * c-decl.c (copy_lang_decl): Rename.
4305 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4306 * integrate.c: Include langhooks.h.
4307 (copy_decl_for_inlining): Update to use langhook.
4308 * langhooks-def.h (lhd_do_nothing_t,
4309 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4310 (LANG_HOOKS_INITIALIZER): Update.
4311 * langhooks.c (lhd_do_nothing_t): New.
4312 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4313 * tree.h (copy_lang_decl): Remove.
4314objc:
4315 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4316
f472fa29
AM
43172002-02-27 Andrew MacLeod <amacleod@redhat.com>
4318
ba31d94e 4319 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
f472fa29
AM
4320 POST_DEC, and POST_MODIFY.
4321
273cf2e4
ZW
43222002-02-27 Zack Weinberg <zack@codesourcery.com>
4323
4324 * c-typeck.c (digest_init): Remove unused parameter; all
4325 callers changed.
4326
4e07d762
GK
43272002-02-27 Geoffrey Keating <geoffk@redhat.com>
4328
4329 * expmed.c (expand_shift): Correctly test for low part of a
4330 subreg.
4331
6bc627b3
UW
43322002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
4333
4334 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4335 insn UIDs with insn addresses.
4336
f458d1d5
ZW
43372002-02-27 Zack Weinberg <zack@codesourcery.com>
4338
4339 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4340 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4341 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4342 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4343 gcc.c, toplev.c: Delete code implementing -traditional mode.
4344
4345 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4346 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4347 Document removal of -traditional mode for compilation, and
4348 remove documentation only relevant to that mode.
4349
4350 * config/nextstep.h, config/ptx4.h, config/svr4.h,
4351 config/convex/convex.h, config/d30v/d30v.h,
4352 config/i386/dgux.h, config/i386/osf1elf.h,
4353 config/i386/osfelf.h, config/i386/osfrose.h,
4354 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4355 config/m68k/hp310.h, config/m88k/dgux.h,
4356 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4357 config/m88k/m88k.h, config/m88k/openbsd.h,
4358 config/mips/abi64.h, config/mips/osfrose.h,
4359 config/mips/svr4-5.h, config/mips/svr4-t.h,
4360 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4361 config/stormy16/stormy16.h: Remove all references to
4362 -traditional from target specs. Delete all mention of the
4363 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
4364 delete a couple of commented-out definitions of
4365 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4366 to -traditional.
4367
4368 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4369 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4370
e0b3a8ff
ZW
43712002-02-27 Zack Weinberg <zack@codesourcery.com>
4372
4373 * mklibgcc.in: Don't use \n in a line subject to
4374 interpretation by echo.
4375
5c6a85b7
GS
43762002-02-27 Graham Stott <grahams@redhat.com>
4377
72b05af1
GS
4378 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4379 Constify NAME.
4380
7d104885
GS
4381 * loop.c (prescan_loop): Handle PARALLEL.
4382
8ed805d2
GS
4383 * unroll.c (loop_iterations): Return 0 if the add_val for
4384 a BIV is REG.
4385
fd478a0a
GS
4386 * final.c (output_operand_lossage): Constify PFX_STR.
4387
5c6a85b7
GS
4388 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4389
cd98ad03
JH
4390Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
4391
4392 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4393 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4394
639ae55b
JH
4395Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
4396
4397 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4398
e808ec9c
NB
43992002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
4400
4401 * cpplex.c (_cpp_lex_token): Handle directives in macro
4402 arguments.
4403 * cpplib.c (_cpp_handle_directive): Save and restore state
4404 if parsing macro args when entering a directive.
4405 * cppmacro.c (collect_args): No need to handle directives
4406 in macro arguments.
4407 (enter_macro_context, replace_args): Use the original macro
4408 definition in case it was redefined whilst collecting arguments.
4409doc:
4410 * cpp.texi: Update.
4411
f585a356
DE
44122002-02-26 David Edelsohn <edelsohn@gnu.org>
4413
4414 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4415 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4416 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4417 method on AIX.
4418 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4419 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4420 (load_toc_v4_PIC_2): Same.
4421
44222002-02-26 Alan Modra <amodra@bigpond.net.au>
4423
4424 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4425
d699058e
RH
44262002-02-26 Richard Henderson <rth@redhat.com>
4427
4428 * config/alpha/alpha.md (ashldi_se): Re-enable.
4429
eadccfbb
RH
44302002-02-26 Richard Henderson <rth@redhat.com>
4431
4432 * config/alpha/alpha.c (alpha_encode_section_info): Examine
4433 MODULE_LOCAL_P; improve commentary.
4434
7080ada1
ZW
44352002-02-26 Zack Weinberg <zack@codesourcery.com>
4436
4437 * doc/cpp.texi: Clarify documentation of relationship between
4438 #line and #include.
4439
b42cff6b
KH
44402002-02-26 Kazu Hirata <kazu@hxi.com>
4441
4442 * config/h8300/h8300-protos.h: Update the prototype for
4443 compute_logical_op_length. Add the prototype for
4444 compute_logical_op_cc.
4445 * config/h8300/h8300.c (compute_logical_op_length): Figure out
4446 code from operands.
4447 (compute_logical_op_cc): New.
4448 * config/h8300/h8300.md: Combine all the logical op patterns
4449 in HImode and SImode. Use compute_logical_op_cc.
4450
831c4e87
KC
44512002-02-26 Kelley Cook <kelleycook@comcast.net>
4452
4453 * config/i386/i386.c (print_operand): Don't append ATT-style
4454 length suffixs to x87 opcodes when in Intel mode.
4455
ff88fe10
RS
44562002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
4457
4458 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4459 (init_emit_once): Update calls.
4460 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4461 (init_syntax_once): Prototype.
4462
d4108589
JDA
44632002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
4464
4465 * pa-linux.h (LIB_SPEC): Update definition.
4466 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4467
e013f3c7
RH
44682002-02-26 Richard Henderson <rth@redhat.com>
4469
4470 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4471 if we emitted a stop bit.
4472
9e944a16
JJ
44732002-02-26 Jakub Jelinek <jakub@redhat.com>
4474
4475 * configure.in (libgcc_visibility): Substitute.
4476 * configure: Rebuilt.
4477 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
4478 defined symbols .hidden.
4479
47bd70b5
JJ
44802002-02-26 Jakub Jelinek <jakub@redhat.com>
4481
4482 * attribs.c (c_common_attribute_table): Add visibility.
4483 (handle_visibility_attribute): New function.
4484 * varasm.c (assemble_visibility): New function.
4485 * output.h (assemble_visibility): Add prototype.
4486 * tree.h (MODULE_LOCAL_P): Define.
4487 * crtstuff.c (__dso_handle): Use visibility attribute.
4488 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
4489 for MODULE_LOCAL_P symbols too.
4490 * config/ia64/ia64.c (ia64_encode_section_info): Handle
4491 MODULE_LOCAL_P symbols the same way as local symbols.
4492 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
4493 into .sdata/.sbss by the user.
4494 * doc/extend.texi (Function Attributes): Document visibility
4495 attribute.
4496
6d73371a
JJ
44972002-02-26 Jakub Jelinek <jakub@redhat.com>
4498
4499 PR debug/5770
4500 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
4501 STRING_CST initializer spanning the whole variable without
4502 embedded zeros.
4503 If expand_expr returned MEM, don't use it.
4504
06e224f7
AO
45052002-02-26 Alexandre Oliva <aoliva@redhat.com>
4506
4507 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
4508 generate a die for the lexical block.
4509
40367e2d
KH
45102002-02-26 Kazu Hirata <kazu@hxi.com>
4511
4512 * config/h8300/h8300-protos.h: Add a prototype for
4513 compute_logical_op_length.
4514 * config/h8300/h8300.c (compute_logical_op_length): New.
4515 * config/h8300/h8300.md (anonymous logical patterns): Use
4516 compute_logical_op_length for length.
4517
0e98f924
AH
45182002-02-26 Aldy Hernandez <aldyh@redhat.com>
4519
831c4e87
KC
4520 * dwarf2out.c (modified_type_die): Do not call type_main_variant
4521 for vectors.
4522 (gen_type_die): Same.
0e98f924 4523
831c4e87 4524 * attribs.c (handle_vector_size_attribute): Set debug information.
0e98f924 4525
a50cfd52
DE
45262002-02-26 Daniel Egger <degger@fhm.edu>
4527
831c4e87
KC
4528 * config/rs6000/rs6000.md: Swap define_insn attributes to
4529 fix incorrect generation of merge high instructions instead
4530 of merge low.
a50cfd52 4531
b7997284
AH
45322002-02-26 Aldy Hernandez <aldyh@redhat.com>
4533
831c4e87
KC
4534 * c-typeck.c (really_start_incremental_init): Use
4535 bitsize_zero_node for vectors.
b7997284 4536
376aec5d
AH
45372002-02-26 Aldy Hernandez <aldyh@redhat.com>
4538
831c4e87
KC
4539 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
4540 ("*set_vrsave_internal"): Same.
376aec5d 4541
3b40e71b
RH
45422002-02-25 Richard Henderson <rth@redhat.com>
4543
4544 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
4545 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
4546
232b8f52
JJ
45472002-02-25 Jakub Jelinek <jakub@redhat.com>
4548
4549 PR target/5755
4550 * config/i386/i386.c (ix86_return_pops_args): Only pop
4551 fake structure return argument if it was passed on the stack.
4552
67282790
JM
45532002-02-25 Jason Merrill <jason@redhat.com>
4554
4555 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
4556 RESULT_DECL.
4557
5c181756
AO
45582002-02-25 Alexandre Oliva <aoliva@redhat.com>
4559
4560 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
4561 link with shared_name only.
4562 * doc/invoke.texi (Link Options): Document new behavior.
4563
6786d201
AH
45642002-02-25 Aldy Hernandez <aldyh@redhat.com>
4565
831c4e87 4566 * c-typeck.c (push_init_level): Handle vectors.
6786d201 4567
7d6040e8
AO
45682002-02-25 Alexandre Oliva <aoliva@redhat.com>
4569
4570 * config/sparc/sparc.c (const64_high_operand): Zero-extend
4571 operands of SPARC_SETHI_P.
4572 (input_operand): Likewise.
4573 (sparc_emit_set_const32): Likewise.
4574 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
4575 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
4576 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
4577 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
4578 (movdi_insn_sp64_vis): Likewise.
4579 (movdi split, movdf split): Use SETHI32.
4580 * doc/md.texi: Document SPARC constraints L, M and N.
4581
b188f760
AH
45822002-02-25 Aldy Hernandez <aldyh@redhat.com>
4583
831c4e87
KC
4584 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
4585 ("*set_vrsave_internal"): use mfspr for Darwin.
b188f760 4586
831c4e87
KC
4587 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
4588 gen_get_vrsave_internal.
b188f760 4589
8041889f
RK
4590Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4591
4592 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
4593
a47ed310
NB
45942002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
4595
4596 * cpplex.c (cpp_interpret_charconst): Get signedness or
4597 otherwise of wide character constants correct.
4598 * cppexp.c (lex): Get signedness of wide charconsts correct.
4599
cb8f73be
RK
4600Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4601
4602 * optabs.c (widen_operand): Only call convert_modes for
4603 promoted SUBREG if signedness matches.
4604 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
4605
2450e0b8
NB
46062002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4607
4608 * cpplib.c (glue_header_name): Use local buffer to build up
4609 header name.
4610
70b6aaed
NB
46112002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4612
4613 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
4614
6be580c7
KH
46152002-02-23 Kazu Hirata <kazu@hxi.com>
4616
4617 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
4618 H8/300[HS] separately.
4619 * config/h8300/h8300.md: Remove the early clobber constraint
4620 from bit field patterns.
4621
35dad9f1
KH
46222002-02-23 Kazu Hirata <kazu@hxi.com>
4623
4624 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
4625 register_operand.
4626 (mulhisi3): Likewise.
4627 (umulqisi3): Likewise.
4628 (umulhisi3): Likewise.
4629
ab8e2228
NB
46302002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4631
4632 * cppinit.c (output_deps): Correct test for stdout output.
4633 (init_dependency_output): Cure warning.
4634
ac6f8a15
RK
4635Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4636
4637 * expr.c (store_expr): When converting expression to promoted
4638 equivalent type, allow using SUBREG_REG of TARGET as the target
4639 of the expansion of EXP.
4640 * loop.c (basic_induction_var, case SUBREG): Always look inside.
4641 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
4642 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
4643 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
4644 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
4645
f282ffb3
JM
46462002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
4647
4648 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
4649 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
4650 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
4651
44c5edc0
JJ
46522002-02-23 Jakub Jelinek <jakub@redhat.com>
4653
4654 PR optimization/5747
4655 * loop.c (scan_loop): Update reg info if move_movables created new
4656 pseudos.
4657
f98e43c0
DE
46582002-02-23 David Edelsohn <edelsohn@gnu.org>
4659
4660 * gcc.c (init_gcc_spec): Revert last change.
4661
e72247f4
DE
46622002-02-23 David Edelsohn <edelsohn@gnu.org>
4663
4664 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
4665 gpc_reg_operand constraint.
4666
46672002-02-23 Alan Modra <amodra@bigpond.net.au>
4668
4669 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
4670 Simplify comparison of `low'.
4671 (add_operand): Fix formatting.
4672 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
57deb3a1 4673 (mask_operand): Disallow mask to wrap in 64-bit mode.
e72247f4
DE
4674 (rs6000_stack_info): Remove redundant test setting push_p.
4675 (output_toc): Fix formatting.
4676 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
4677 cc_reg_not_cr0_operand constraint.
4678 (booldi3, boolcdi3 splitters): Same.
4679
a5c30531
AH
46802002-02-23 Aldy Hernandez <aldyh@redhat.com>
4681
831c4e87 4682 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
a5c30531 4683
43710f9f
DE
46842002-02-22 David Edelsohn <edelsohn@gnu.org>
4685
4686 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
4687 gcc invoked with -shared-libgcc.
4688
3256b817
JJ
46892002-02-22 Jakub Jelinek <jakub@redhat.com>
4690
4691 PR c++/5748
4692 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
4693 decl if any of elements was TREE_USED.
4694
9e0625a3
AO
46952002-02-22 Alexandre Oliva <aoliva@redhat.com>
4696
4697 * config/sparc/sol2.h: Don't include sys/mman.h.
4698 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
4699 (arith_4096_operand): Don't throw high bits away.
4700 (const64_operand): Take sign extension of CONST_INTs into account.
4701 (const64_high_operand, sparc_emit_set_const32): Likewise.
4702 (GEN_HIGHINT64): Likewise.
4703 (sparc_emit_set_const64_quick1): Likewise.
4704 (const64_is_2insns): Likewise.
4705 (print_operand): Use trunc_int_for_mode for sign extension.
4706 * config/sparc/sparc.h (SMALL_INT32): Likewise.
4707 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
4708 chars. Assume CONST_INT is already properly sign-extended.
4709 (movdi split): Sign-extend each SImode part.
4710 (andsi3 split): Don't mask high bits off, so that result
4711 remains properly sign-extend.
4712 (iorsi3 split): Likewise.
4713 (xorsi3 split): Likewise.
4714
54fec3d5
RS
47152002-02-22 Richard Sandiford <rsandifo@redhat.com>
4716
4717 * fold-const.c (fold): Fix typo in comments.
4718
667ada9b
DN
47192002-02-21 Diego Novillo <dnovillo@redhat.com>
4720
4721 * Makefile.in (langhooks.o): Update dependencies.
4722
29ac78d5
DN
47232002-02-21 Diego Novillo <dnovillo@redhat.com>
4724
4725 * langhooks.c: Include flags.h.
4726
6aa77e6c
AH
47272002-02-21 Aldy Hernandez <aldyh@redhat.com>
4728
4729 * testsuite/gcc.dg/attr-alwaysinline.c: New.
4730
4731 * c-common.c (c_common_post_options): Set inline trees by
4732 default.
4733
4734 * doc/extend.texi (Function Attributes): Document always_inline
4735 attribute.
4736 Update documentation about inlining when not optimizing.
4737
4738 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
4739
4740 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
4741 unless DECL_ALWAYS_INLINE.
4742
4743 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
4744 unless DECL_ALWAYS_INLINE.
4745 (c_disregard_inline_limits): Disregard if always_inline set.
4746
4747 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
4748 Disregard if always_inline set.
4749 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
4750 unless DECL_ALWAYS_INLINE.
4751
4752 * attribs.c (handle_always_inline_attribute): New.
4753 (c_common_attribute_table): Add always_inline.
4754
4755 * config/rs6000/altivec.h: Add prototypes for builtins
4756 requiring the always_inline attribute.
4757
c410d49e
EC
47582002-02-21 Eric Christopher <echristo@redhat.com>
4759
4760 * expmed.c (store_bit_field): Try to simplify the subreg
4761 before generating a new one when when the mode size of
4762 value is less than maxmode.
4763
e3c8ea67
RH
47642002-02-21 Richard Henderson <rth@redhat.com>
4765
4766 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
4767 than gen_rtx_PLUS to form the sum.
4768 * explow.c (force_reg): Rearrange to not allocate new pseudo
4769 when force_operand returns a register.
4770 * expr.c (expand_assignment): Allow offset_rtx expansion to
4771 return a sum. Do not force addresses into registers.
4772 (expand_expr): Likewise.
4773 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
4774 to canonicalize arithmetic that didn't simpify.
4775 (simplify_plus_minus): New argument force; update
4776 all callers. Don't split CONST unless we can do something with it,
4777 and wouldn't lose the constness of the operands.
4778
4779 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
4780 that we generated earlier.
4781
c1a046e5
TT
47822002-02-21 Tom Tromey <tromey@redhat.com>
4783
4784 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4785 (output_line_info): Use constant `1', with a long explanatory
4786 comment.
4787 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
4788
31fbaad4
R
4789Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
4790
4791 * jump.c (redirect_jump): If old label has no UID, don't try to
4792 delete it.
4793
a7f52356
R
4794Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
4795
4796 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
4797 If input is constant, do shifts at compile time.
4798
924fcc4e
JM
47992002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
4800
4801 * doc/extend.texi: Fix some more overfull hboxes.
4802
e5a20888
JJ
48032002-02-21 Jakub Jelinek <jakub@redhat.com>
4804
4805 PR optimization/4994
4806 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
4807 register moves.
4808
48092002-02-21 Jakub Jelinek <jakub@redhat.com>
22273300
JJ
4810
4811 PR c++/4574
4812 * expr.h (expand_and): Add mode argument.
4813 * expmed.c (expand_and): Add mode argument.
4814 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
4815 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
4816 * except.c (expand_builtin_extract_return_addr): Likewise.
4817 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
4818 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4819 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
4820 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
4821 * config/c4x/c4x.md: Use GEN_INT (x) instead of
4822 gen_rtx (CONST_INT, VOIDmode, x).
4823
7133e992
JJ
48242002-02-21 Jakub Jelinek <jakub@redhat.com>
4825
4826 PR c/4697:
4827 * stmt.c (warn_if_unused_value): Move side effects test once more.
4828
e2ec05a6
TG
48292002-02-20 Torbjorn Granlund <tege@swox.com>
4830
4831 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
831c4e87 4832 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
e2ec05a6 4833
9dd791c8
AO
4834Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
4835
4836 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
4837 SUBREG or ZERO_EXTEND.
4838
7ab56274
R
4839Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
4840
4841 * sh.h (current_function_anonymous_args): Remove.
4842 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
4843 of current_function_varargs and current_function_stdarg is set.
4844 * sh.c (sh_expand_prologue): Check current_function_varargs /
4845 current_function_stdarg / TARGET_SH5 instead of
4846 current_function_anonymous_args.
4847
4848 * sh64.h (TARGET_VERSION): Define.
4849
b1765bde
DE
48502002-02-20 David Edelsohn <edelsohn@gnu.org>
4851
4852 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
4853 VRSAVE_REGNO on TARGET_ALTIVEC.
4854
48552002-02-20 Alan Modra <amodra@bigpond.net.au>
4856
4857 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
4858 bits of SImode const_int.
4859 (includes_rshift_p): Likewise.
4860 (print_operand): Call mask_operand and mask64_operand with correct
c410d49e 4861 mode.
b1765bde
DE
4862 (rs6000_output_function_epilogue): Pad traceback table to word.
4863 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
4864 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
4865 mask64_operand with correct mode.
b1765bde
DE
4866 (FUNCTION_ARG_REGNO_P): Correct parentheses.
4867
149d6f9e
JJ
48682002-02-20 Jakub Jelinek <jakub@redhat.com>
4869
4870 PR debug/4461
4871 * varasm.c (get_pool_constant_mark): New.
4872 * rtl.h (get_pool_constant_mark): Add prototype.
4873 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
4874 be represented if it has not been output.
4875
4161da12
AO
48762002-02-20 Alexandre Oliva <aoliva@redhat.com>
4877
4878 * combine.c (do_SUBST): Sanity check substitutions of
4879 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
4880 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
4881 CONST_INT into its operand.
4882 (known_cond): Likewise, for ZERO_EXTEND.
4883 * simplify-rtx.c (simplify_unary_operation): Fix condition to
4884 allow for simplification of wide modes. Reject CONST_INTs in
4885 ZERO_EXTEND when their actual mode is not given.
4886
3704ef74
AO
48872002-02-20 Alexandre Oliva <aoliva@redhat.com>
4888
4889 * c-decl.c (pushdecl): If no global declaration is found for an
4890 extern declaration in block scope, try a limbo one.
4891
7552da58
JJ
48922002-02-20 Jakub Jelinek <jakub@redhat.com>
4893
4894 PR c++/4401
4895 * c-common.c (pointer_int_sum): Moved from...
4896 * c-typeck.c (pointer_int_sum): ...here.
4897 * c-common.h (pointer_int_sum): Add prototype.
4898
00fae85d
JJ
48992002-02-20 Jakub Jelinek <jakub@redhat.com>
4900
4901 PR c++/5713
4902 * c-decl.c (duplicate_decls): Return 0 if issued error about
4903 redeclaration.
4904
4636c87e
JJ
49052002-02-20 Roger Sayle <roger@eyesopen.com>
4906 Jakub Jelinek <jakub@redhat.com>
4907
4908 PR c/4389
4909 * tree.c (host_integerp): Ensure that the constant integer is
4910 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
4911 when pos is zero or non-zero respectively. Clarify comment.
4912 * c-format.c (check_format_info_recurse): Fix host_integerp
4913 usage; the pos argument should be zero when assigning to a
4914 signed HOST_WIDE_INT.
4915
59bef189
RH
49162002-02-20 Richard Henderson <rth@redhat.com>
4917
4918 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
4919 of the operand, rather than assuming TImode.
4920 (ix86_expand_binop_builtin): Cope with commutative patterns
4921 using nonimmediate_operand for both operands.
4922 (ix86_expand_timode_binop_builtin): Likewise.
4923 (ix86_expand_store_builtin): Validate operand 1.
4924 (ix86_expand_unop1_builtin): Likewise.
4925
9338ffe6 49262002-02-20 Philip Blundell <philb@gnu.org>
c410d49e 4927
9338ffe6
PB
4928 PR 5705
4929 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
4930
f322b423
RH
49312002-02-20 Richard Henderson <rth@redhat.com>
4932
4933 PR c/5615
4934 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
4935
d94084f7
TT
49362002-02-20 Tom Tromey <tromey@redhat.com>
4937
4938 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4939 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4940 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4941 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4942 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
4943 unconditionally.
4944
37fa124a
AM
4945Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
4946
4947 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
4948 for (const_int 0) in X not just INTVAL.
4949
6e5bb5ad
JM
49502002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
4951
4952 * doc/extend.texi: Avoid or reduce overfull hboxes.
4953
420e7dfa
DN
49542002-02-20 Diego Novillo <dnovillo@redhat.com>
4955
4956 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
4957 operations if the field does not start at a mode boundary.
4958
1b7a2af6
JS
49592001-02-20 Joel Sherrill <joel@OARcorp.com>
4960
4961 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
4962 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
4963 Also done for -Acpu and -Amachine.
4964
56cd5b95
NB
49652002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
4966
4967 * cppinit.c (init_dependency_output): Take deps output file
4968 from -o if none given with -MF. Suppress normal output.
c410d49e 4969 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
56cd5b95
NB
4970 * doc/cpp.texi, doc/invoke.texi: Update.
4971
042cdf71
ZW
49722002-02-19 Zack Weinberg <zack@codesourcery.com>
4973
4974 * toplev.c (output_quoted_string): Write unprintable
4975 characters with octal escapes.
4976
c1f11548
DE
49772002-02-19 David Edelsohn <edelsohn@gnu.org>
4978
4979 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
4980 really_call_used[VRSAVE_REGNO] if not Altivec.
4981
49822002-02-19 Alan Modra <amodra@bigpond.net.au>
c410d49e 4983
c1f11548
DE
4984 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
4985 MODE_MASK.
4986 (constant_pool_expr_1): Fix formatting.
4987 (rs6000_legitimize_reload_address): Likewise.
4988
c964d90e
RK
4989Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4990
4991 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
4992 now that we have one.
4993
ae34ac46
ZW
49942002-02-19 Zack Weinberg <zack@codesourcery.com>
4995
4996 * tree.h (struct tree_common): Remove aux. Add unused_0 at
4997 end of first block of bitfields (which was only seven bits);
4998 rename dummy to unused_1; remove comment which is no longer true.
4999
293c28ee
GS
50002002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
5001
5002 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5003
7b8781c8
PB
50042002-02-19 Philip Blundell <pb@nexus.co.uk>
5005
0cb6c58d 5006 PR 5399
7b8781c8
PB
5007 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5008 if generating PIC.
5009
5010 PR 5054
5011 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5012 arm_is_longcall_p rather than inspecting call-type cookie
5013 directly.
5014 (call_value_insn) [TARGET_THUMB]: Likewise.
5015
5c464583
GS
50162002-02-19 Graham Stott <grahams@redhat.com>
5017
5018 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5019
71c061e6
DE
50202002-02-19 David Edelsohn <edelsohn@gnu.org>
5021
5022 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5023 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6d1def5c 5024 (FP_SAVE_INLINE): Delete.
71c061e6
DE
5025
5026 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5027 * config/rs6000/eabi.asm: Remove ABI save restore routines.
5028 * config/rs6000/t-ppccomm: Build crtsavres.o.
5029 * config/rs6000/crtsavres.asm: New file.
5030
3a7731fd
PB
50312002-02-19 Philip Blundell <philb@gnu.org>
5032
5033 * config/arm/arm.c (use_return_insn): Don't reject interrupt
5034 functions.
5035 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5036 (output_return_instruction): Allow interrupt functions to return with
5037 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
5038 (arm_expand_prologue): Subtract 4 before stacking LR in an
5039 interrupt function.
5040
14f583b8
PB
50412002-02-19 Philip Blundell <pb@nexus.co.uk>
5042
5043 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5044 decl, not just FUNCTION_DECL.
5045 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5046 (arm_assemble_integer): Likewise.
5047 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5048 marked local.
c410d49e 5049
4cb7482c
MG
50502002-02-19 matthew green <mrg@eterna.com.au>
5051
5052 * config.gcc (sparc-*-netbsdelf*): Enable target.
5053 (sparc64-*-netbsd*): New target.
5054 * config/sparc/netbsd-elf.h: New file.
5055 * config/sparc/t-netbsd64: New file.
5056
2df3a718
GS
50572002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
5058
5059 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5060
77f6c1eb
RS
50612002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
5062
5063 * doc/invoke.texi: explicitly list the style guidelines that
5064 -Weffc++ checks for.
5065
fd973d56
JH
5066Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
5067
5068 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5069
30518e45
NB
50702002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
5071
5072 PR other/5718
5073 * gcc.c (cpp_unique_options): Treat -o as indicating object file
5074 only if not -E. If -E, pass -o through to the preprocessor.
5075
39ea5704
KH
50762002-02-19 Kazu Hirata <kazu@hxi.com>
5077
5078 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5079 register number with an appropriate macro.
5080
7355dba7
BM
50812002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5082
5083 * doc/rtl.texi (Constants): Close @code tag.
5084
91c8aa9e
AH
50852002-02-19 Aldy Hernandez <aldyh@redhat.com>
5086
5087 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5088 ("mmx_uavgv4hi3"): Same.
5089 ("pmulhrwv4hi3"): Same.
5090
5091 * tree-inline.c (walk_tree): Handle vectors.
5092
5093 * c-common.c (constant_expression_warning): Handle vectors.
5094 (overflow_warning): Same.
5095
5096 * sched-deps.c (sched_analyze_2): Handle vectors.
5097
5098 * rtlanal.c (rtx_unstable_p): Handle vectors.
5099 (rtx_varies_p): Same.
5100 (count_occurrences): Same.
5101 (regs_set_between_p): Same.
5102 (modified_between_p): Same.
5103 (modified_in_p): Same.
5104 (volatile_insn_p): Same.
5105 (volatile_refs_p): Same.
5106 (side_effects_p): Same.
5107 (may_trap_p): Same.
5108 (inequality_comparisons_p): Same.
5109 (replace_regs): Same.
5110 (computed_jump_p_1): Same.
5111
5112 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5113 argument.
5114 (inner_mode_array): New.
5115 (copy_rtx): Handle vectors.
5116 (copy_most_rtx): Same.
5117 (rtx_equal_p): Same.
5118 (get_mode_alignment): Adjust for vectors.
5119
5120 * resource.c (mark_referenced_resources): Handle vectors.
5121 (mark_set_resources): Same.
5122
5123 * reload1.c (eliminate_regs): Handle vectors.
5124 (elimination_effects): Same.
5125 (scan_paradoxical_subregs): Same.
5126
5127 * reload.c (subst_reg_equivs): Handle vectors.
5128
5129 * regrename.c (scan_rtx): Handle vectors.
5130
5131 * regclass.c (reg_scan_mark_refs): Handle vectors.
5132
5133 * recog.c (find_single_use_1): Handle vectors.
5134
5135 * local-alloc.c (equiv_init_varies_p): Handle vectors.
5136 (contains_replace_regs): Same.
5137 (memref_referenced_p): Same.
5138
5139 * integrate.c (copy_rtx_and_substitute): Handle vectors.
5140 (subst_constants): Same.
5141
5142 * genattrtab.c (attr_copy_rtx): Handle vectors.
5143 (encode_units_mask): Same.
5144 (clear_struct_flag): Same.
5145 (count_sub_rtxs): Same.
5146
5147 * gcse.c (want_to_gcse_p): Handle vectors.
5148 (oprs_unchanged_p): Same.
5149 (hash_expr_1): Same.
5150 (oprs_not_set_p): Same.
5151 (expr_killed_p): Same.
5152 (compute_transp): Same.
5153 (store_ops_ok): Same.
5154
5155 * function.c (purge_addressof_1): Do not allow paradoxical subregs
5156 of vectors.
5157 (fixup_var_refs_1): Same.
5158 (instantiate_virtual_regs_1): Same.
5159
5160 * fold-const.c (operand_equal_p): Handle vectors.
5161 (fold): Same.
5162 (rtl_expr_nonnegative_p): Same.
5163
5164 * flow.c (mark_used_regs): Handle vectors.
5165
5166 * df.c (df_uses_record): Handle vectors.
5167
5168 * cselib.c (cselib_subst_to_values): Handle vectors.
5169 (cselib_mem_conflict_p): Same.
5170 (hash_rtx): Same.
5171
5172 * cse.c (canon_reg): Handle vectors.
5173 (fold_rt): Same.
5174 (cse_process_notes): Same.
5175 (count_reg_usage): Same.
5176 (canon_hash): Same.
5177
5178 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5179
5180 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5181
5182 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5183 (gen_rtx): Handle CONST_VECTOR.
5184 (gen_const_vector_0): New.
5185 (copy_rtx_if_shared): CONST_VECTORs can be shared.
5186 (reset_used_flags): Same.
5187 (copy_insn_1): Same.
5188 (initializer_constant_valid_p): Handle VECTOR_CST.
5189
5190 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5191
5192 * doc/rtl.texi (Constants): Document const_vector.
5193 (CONST0_RTX): Update for vectors.
5194 (RTL sharing): Same.
5195
5196 * print-tree.c (print_node): Add case for VECTOR_CST.
5197
5198 * tree.h (TREE_VECTOR_CST_ELTS): New.
5199 (struct tree_vector): New.
5200 (union tree_node): Add vector node.
5201 (build_vector): Add prototype.
5202
5203 * tree.def (VECTOR_CST): New.
5204
5205 * tree.c (build_vector): New.
5206
5207 * expmed.c (make_tree): Handle CONST_VECTOR.
5208
5209 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5210 (CONST_VECTOR_ELT): New.
5211 (CONST_VECTOR_NUNITS): New.
5212
5213 * machmode.h (GET_MODE_INNER): New.
5214 (DEF_MACHMODE): Accept 8th arg.
5215
5216 * machmode.def: Add 8th argument for vector inner mode.
5217 Add inner vector modes for vectors.
5218
5219 * rtl.def (VEC_CONST): Remove.
5220 (CONST_VECTOR): New.
5221
5222 * expr.c (clear_storage): Allow vectors.
5223 (is_zeros_p): Handle VECTOR_CST.
5224
5225 * varasm.c (output_constant_pool): Handle vectors.
5226 (rtx_const): Add veclo and vechi fields.
5227 (kind): Add RTX_VECTOR.
5228 (decode_rtx_const): Add case for vector.
5229
5230 * config/rs6000/rs6000-protos.h: Add zero_constant.
c410d49e 5231
91c8aa9e
AH
5232 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5233 constants. Force easy vector constants into memory.
5234 (easy_vector_constant): New.
5235 (emit_easy_vector_constant): New.
5236 (rs6000_legitimize_reload_address): Do not generate bad reloads on
5237 darwin.
5238
5239 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5240 instruction does.
5241 ("altivec_lvxl"): Same.
5242 (altivec_lvebx): Same.
5243 (altivec_lvehx): Same.
5244 (altivec_lvewx): Same.
5245 ("*movv4si_const0"): New.
5246 ("*movv4sf_const0"): New.
5247 ("*movv8hi_const0"): New.
5248 ("*movv16qi_const0"): New.
5249
d4d6d0ce
KH
52502002-02-18 Kazu Hirata <kazu@hxi.com>
5251
5252 * config/h8300/h8300.c (notice_update_cc): Use
5253 cc_status.value2.
5254
4915d3aa
KH
52552002-02-18 Kazu Hirata <kazu@hxi.com>
5256
5257 * config/h8300/h8300.md (divmod patterns): Change the
5258 constraints for operands[1] to register_operand.
5259
82be00ee
KH
52602002-02-18 Kazu Hirata <kazu@hxi.com>
5261
5262 * config/h8300/h8300-protos.h: Remove the prototype for
5263 p_operand.
5264 * config/h8300/h8300.c (p_operand): Remove.
5265 * config/h8300/h8300.md: Replace p_operand with
5266 const_int_operand.
5267
1768c26f
PB
52682002-02-18 Philip Blundell <pb@nexus.co.uk>
5269
5270 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5271 comment.
5272 (output_return_instruction): Allow use of LDR to unstack
5273 return addresss even for interrupt handlers or when
5274 interworking. If compiling for ARMv5, use interworking-safe
5275 return instructions by default. Remove duplicated code and
5276 lengthy "strcat" sequences.
5277
ccd84f51
FS
52782002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5279
5280 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5281 (LINK_EH_SPEC): Define.
5282 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5283
2c153108
UW
52842002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
5285
5286 * config/s390/s390.c (s390_emit_prologue): Do not set the
5287 frame_related flag for call-clobbered registers.
5288
e95d6b23
JH
5289Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
5290
5291 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5292 (construct_container): Fix handling of SSE operands.
5293 (ix86_expand_builtin): Fix handling of 64bit pointers.
5294 (mmx_maskmovq_rex): New pattern.
5295
c43a12b5
JH
5296Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
5297
5298 * regrename.c (kill_set_value): Handle subregs properly.
5299
aeb85a15
DB
53002002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
5301
5302 * objc/objc-act.c (handle_impent): Remove leading '*'
c410d49e 5303 from objc_class_name.
aeb85a15 5304
a615ca3e
RH
53052002-02-17 Richard Henderson <rth@redhat.com>
5306
5307 * config/alpha/alpha.c (some_small_symbolic_operand,
5308 some_small_symbolic_operand_1, split_small_symbolic_operand,
5309 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5310 Handle small SYMBOL_REFs anywhere, not just inside memories.
5311 * config/alpha/alpha-protos.h: Update.
5312 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5313 * config/alpha/alpha.md (small symbolic operand splitter): Update.
5314
ddb28441
RM
53152002-02-17 Roland McGrath <roland@frob.com>
5316
5317 * config.gcc (powerpc-*-gnu-gnualtivec*,
5318 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5319 * config/rs6000/gnu.h: New file.
5320 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5321 Grok "gnu" in rs6000_abi_name.
5322 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5323 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5324 Grok -mcall-gnu analogous to -mcall-linux et al.
5325 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5326 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5327 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5328
f6f8ada3
JJ
53292002-02-17 Jakub Jelinek <jakub@redhat.com>
5330
5331 PR c/3444:
5332 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5333 shortening.
5334
e16b32fc
PT
53352002-02-17 Philipp Thomas <pthomas@suse.de>
5336
5337 * config/cris/cris.h: Undefine STARTFILE_SPEC and
5338 ENDFILE_SPEC before (re)defining them.
5339
f9477efd
KH
53402002-02-17 Kazu Hirata <kazu@hxi.com>
5341
5342 * config/h8300/h8300.c: Fix formatting.
5343 * config/h8300/h8300.h: Likewise.
5344
404ae494
PT
53452002-02-17 Philipp Thomas <pthomas@suse.de>
5346
5347 * doc/tm.texi: Explain why empty strings should not be
5348 marked for translation.
5349
a52453cc
PT
53502002-02-17 Philipp Thomas <pthomas@suse.de>
5351
5352 * final.c (output_operand_lossage): Changed to accept
5353 printf style arguments. Change calls where necessary.
5354 * output.h (output_operand_lossage): Change declaration
5355 accordingly. Update copyright.
5356 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5357 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5358 Update copyright date where necessary.
c410d49e 5359
a52453cc
PT
5360 * config/i386/i386.c (print_operand): Likewise. Remove use of
5361 sprintf.
5362
5363 * config/cris/cris.c (cris_operand_lossage): Likewise.
5364 Rename parameter so that exgettext recognizes it as
5365 translatable message.
5366 (LOSE_AND_RETURN): Rename parameter to msgid.
5367
1c11abc4
KH
53682002-02-17 Kazu Hirata <kazu@hxi.com>
5369
5370 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5371 hard coded register number with an appropriate macro.
5372 (HARD_REGNO_MODE_OK): Likewise.
5373 (ARG_POINTER_REGNUM): Likewise.
5374 (STATIC_CHAIN_REGNUM): Likewise.
5375 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5376 * config/h8300/h8300.md (define_constants): Define more
5377 register numbers.
5378
a5d17ff3
PT
53792002-02-17 Philipp Thomas <pthomas@suse.de>
5380
5381 * config/i386/i386.h: Don't mark empty strings for translation.
5382
1a7289c4
L
53832002-02-16 H.J. Lu <hjl@gnu.org>
5384
5385 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5386
afb58288
ZW
53872002-02-16 Zack Weinberg <zack@codesourcery.com>
5388
5389 * cppinit.c (merge_include_chains): Check for brack being
5390 NULL before attempting to merge it with qtail.
5391
d2af4dbd
AC
53922002-02-16 Andrew Cagney <ac131313@redhat.com>
5393
5394 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5395 DBX_DEBUG.
5396
2e1ed1e3
JDA
53972002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5398
5399 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5400
604c75b2
JDA
54012002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5402
5403 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5404 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5405 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5406
1a42b072
RK
5407Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5408
7303604f 5409 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1a42b072
RK
5410 now only if !TARGET_FIX.
5411 (*movsi_nt_vms_fix): New pattern.
5412
c2ea1ac6
DR
54132002-02-16 Douglas B Rupp <rupp@gnat.com>
5414
5415 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5416 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5417 (alpha_sa_mask, alpha_sa_size): Reflect above change.
5418 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5419 (alpha_start_function, alpha_expand_epilogue): Likewise.
5420 (unicosmk_gen_dsib): Likewise.
5421
725e58b1
RK
5422Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5423
5424 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5425
13e58269
UW
54262002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
5427
c410d49e 5428 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
13e58269
UW
5429 check_and_change_labels, s390_final_chunkify): Delete.
5430 (s390_split_branches, s390_chunkify_pool): New functions.
5431 (s390_function_prologue): Call them.
c410d49e 5432
13e58269
UW
5433 * config/s390/s390.h (S390_REL_MAX): Delete.
5434 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
5435
c410d49e 5436 * config/s390/s390.md (cjump, icjump, jump): Fix length
13e58269
UW
5437 attribute calculation.
5438
5439
34d1b01d
DE
54402002-02-15 David Edelsohn <edelsohn@gnu.org>
5441
5442 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5443 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5444
be5cc51a
JDA
54452002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5446
5447 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5448 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5449 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5450
ee96ce90
RS
54512002-02-15 Richard Sandiford <rsandifo@redhat.com>
5452
5453 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5454
05fa709d
RS
54552002-02-15 Richard Sandiford <rsandifo@redhat.com>
5456
5457 * reload.c (find_dummy_reload): Check that an output register
5458 is valid for its mode.
5459
4606272b
AO
54602002-02-14 Alexandre Oliva <aoliva@redhat.com>
5461
9a360704
AO
5462 * combine.c (known_cond): After replacing the REG of a SUBREG, try
5463 to simplify it.
5464
4606272b
AO
5465 * function.c (assign_parms): Demote promoted argument passed by
5466 transparent reference.
5467
e62d89a1
JS
54682001-02-14 Joel Sherrill <joel@OARcorp.com>
5469
5470 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5471 -Acpu() and -Amachine() to eliminate warnings.
5472
6c4cf695
UW
54732002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
5474
5475 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5476
037f11ef
KH
54772002-02-14 Kazu Hirata <kazu@hxi.com>
5478
5479 * config/h8300/h8300-protos.h: Update the prototype for
5480 const_costs.
5481 * config/h8300/h8300.c (const_costs): Treat SET as a little
5482 more expensive operation.
5483 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
5484 reference to const_costs.
5485
fdc76b09
HPN
54862002-02-14 Hans-Peter Nilsson <hp@axis.com>
5487
5488 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
5489
d76e6800
JJ
54902002-02-14 Jakub Jelinek <jakub@redhat.com>
5491
5492 PR c/5503:
5493 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
5494 use arguments from newtype.
5495
5ae590d7
EC
54962002-02-13 Eric Christopher <echristo@redhat.com>
5497
5498 * config/mips/mips.c (override_options): Add check for march/mipsX
5499 on the same command line. Fix error message in cpu processing.
5500 Remove architecture and ISA checks.
5501
b8513691
AH
55022002-02-14 Aldy Hernandez <aldyh@redhat.com>
5503
831c4e87 5504 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
b8513691 5505
831c4e87 5506 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
b8513691 5507
78c875e8
AH
55082002-02-14 Aldy Hernandez <aldyh@redhat.com>
5509
831c4e87
KC
5510 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
5511 alternatives.
5512 ("*movv8hi_internal1"): Same.
5513 ("*movv16qi_internal1"): Same.
5514 ("*movv4sf_internal1"): Same.
78c875e8 5515
831c4e87
KC
5516 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
5517 not push_reload for altivec modes.
78c875e8 5518
d76e6800 55192002-02-13 Joel Sherrill <joel@OARcorp.com>
f22b4bc4
JS
5520
5521 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
5522 all RTEMS targets including removal of #includes from config/*/rtems*.h
5523 file and adding them to tm_file setting. Added xm_defines=POSIX to
5524 many targets.
5525 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
5526 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
5527 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
5528 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
5529 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
5530 config/m68k/rtemself.h: Ditto.
5531 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
5532 config/mips/rtems64.h: Ditto.
5533 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
5534 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
5535 Ditto.
5536 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
5537 config/sparc/rtemself.h: Ditto.
5538 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
5539 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
5540 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
5541 more like arm-elf.
5542 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
5543 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
5544 target made more similar to i386-elf.
5545 * config/i386/t-rtems-i386: Added soft float support and multilibs.
5546 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
5547 be similar to config/m68k/t-m68kelf.
5548 * gthr-rtems.h: Encapsulate with extern "C" for C++.
5549
8686336f
JH
5550Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
5551
5552 * regmove.c (kill_value): Handle subregs.
5553
558740bf
JH
5554Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
5555
5556 * i386.md (mul patterns): Allow memory operand to be first;
5557 add expanders where needed; fix constraints.
5558 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
5559 Allow memory operand to be the first.
5560
5561 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
5562 operands.
5563
21117a17
JJ
55642002-02-13 Jakub Jelinek <jakub@redhat.com>
5565
5566 PR c/5681:
5567 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
5568 GET_MODE (x).
5569
ec65b2e3
JJ
55702002-02-13 Jakub Jelinek <jakub@redhat.com>
5571
5572 PR optimization/5547:
5573 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
5574 all valid IA-32 address modes involving non-scaled %ebx and
5575 GOT/GOTOFF as displacement.
5576
ce50cae8
UW
55772002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
5578
5579 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
5580 after emitting ltorg insns.
5581
5582 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
5583 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
5584 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
5585 *abssf2): Fix "op_type" attribute.
5586
09eb789b
DR
55872002-02-13 Douglas B Rupp <rupp@gnat.com>
5588
2dbe67bb
DR
5589 * mkconfig.sh: Avoid using a subshell redirect.
5590 ($output.T): Change to $(output)T.
5591 (ENABLE_NLS): Remove unneeded undef.
5592
ea5b9a1f
DR
5593 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
5594 * config/alpha/x-vms (libsubdir): Define.
5595
3deb00ce
DR
5596 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
5597 register frame procedures. Optimize retrieving context.
5598
09eb789b
DR
5599 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
5600 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
5601 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
5602
1abade85
RK
5603Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5604
5605 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
5606 Make same change as for find_base_value.
5607
c283e63f
KH
56082002-02-13 Kazu Hirata <kazu@hxi.com>
5609
5610 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
5611 of QImode and SImode.
5612
86039100
KH
56132002-02-13 Kazu Hirata <kazu@hxi.com>
5614
5615 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
5616 length computation of movsi.
5617 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
5618
e1429da0
KH
56192002-02-13 Kazu Hirata <kazu@hxi.com>
5620
5621 * config/h8300/h8300.md (subqi3): Tighten the predicate for
5622 operands[2] to register_operand.
5623
aebfea10
JH
5624Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
5625
5626 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
5627
0ec4e2a8
AH
56282002-02-12 Aldy Hernandez <aldyh@redhat.com>
5629
831c4e87
KC
5630 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
5631 for altivec_lvx* and altivec_stvx*.
5632 ("*movv4si_internal"): Add constraint for loading from GPRs.
5633 ("*movv8hi_internal1"): Same.
5634 ("*movv16qi_internal1"): Same.
5635 ("*movv4sf_internal1"): Same.
0ec4e2a8 5636
831c4e87 5637 * config/rs6000/rs6000.c (altivec_register_operand): New.
0ec4e2a8 5638
831c4e87
KC
5639 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5640 altivec_register_operand.
0ec4e2a8 5641
b007569d
HPN
56422002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
5643
5644 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
5645 handle SYMBOL_REF.
5646
e6834654
SS
56472002-02-13 Stan Shebs <shebs@apple.com>
5648
831c4e87
KC
5649 * c-typeck.c (digest_init): Handle vectors.
5650 (really_start_incremental_init): Same.
5651 (pop_init_level): Same.
5652 (process_init_element): Same.
e6834654 5653
831c4e87 5654 * varasm.c (output_constant): Same.
e6834654 5655
831c4e87
KC
5656 * expr.c (clear_storage): Same.
5657 (store_constructor): Same.
e6834654 5658
d9b3eb63
EC
56592002-02-12 Eric Christopher <echristo@redhat.com>
5660
5661 * explow.c (hard_function_value): Add comment explaining
5662 signed/unsigned comparison.
5663
56d44285
JJ
56642002-02-12 Jakub Jelinek <jakub@redhat.com>
5665
5666 * jump.c (never_reached_warning): Add finish argument.
5667 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
5668 real insn after end.
5669 * rtl.h (never_reached_warning): Adjust prototype.
5670 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
5671 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
5672 never_reached_warning.
5673
fc209487
GS
56742002-02-12 Graham Stott <grahams@redhat.com>
5675
5676 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
5677
1e41e866
KH
56782002-02-12 Kazu Hirata <kazu@hxi.com>
5679
5680 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
5681 logical shifts on H8/300.
5682 (shift_alg_si): Improve several shifts on H8/300.
5683 (get_shift_alg): Likewise.
5684
a36a47ad
GS
56852002-02-12 Graham Stott <grahams@redhat.com>
5686
5687 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
5688
0aacc8ed
RK
5689Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5690
5691 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
5692 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
5693
a02ac966
HPN
56942002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
5695
5696 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
5697 non-CONST_INT through default_assemble_integer.
5698 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
5699 <case 8>: Abort for CONST_DOUBLE.
5700
d6e06ddc
JDA
57012002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5702
5703 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
5704 is specified.
5705 * config/pa/pa-linux.h (LIB_SPEC): Delete.
5706 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5707
515342a8
AH
57082002-02-11 Andrew Haley <aph@cambridge.redhat.com>
5709
5710 * config/stormy16/stormy16.md (zero_extendqihi2): New.
5711
cddd8b72
AO
57122002-02-11 Alexandre Oliva <aoliva@redhat.com>
5713
66df7a98
AO
5714 * regrename.c (regrename_optimize): Don't accept a
5715 part-clobbered register if the replaced register is not part
5716 clobbered.
5717
841404cd
AO
5718 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
5719 take padding into account when computing the argument value.
5720
1d1ade42
AO
5721 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
5722
cddd8b72
AO
5723 * combine.c (try_combine): Apply substitutions in
5724 CALL_INSN_FUNCTION_USAGE too.
5725
5c665b88
AH
57262002-02-11 Aldy Hernandez <aldyh@redhat.com>
5727
77f6c1eb
RS
5728 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
5729 __builtin_altivec_abs*.
5730 (bdesc_abs): New.
5c665b88 5731
77f6c1eb
RS
5732 * config/rs6000/rs6000.h (rs6000_builtins): Add
5733 ALTIVEC_BUILTIN_ABS*.
5c665b88 5734
77f6c1eb
RS
5735 * config/rs6000/altivec.h: Use const char for builtins expecting
5736 literals.
5737 (vec_abs): New versions for C and C++.
5738 (vec_abss): Same.
5c665b88 5739
3494f1b4
KH
57402002-02-10 Kazu Hirata <kazu@hxi.com>
5741
5742 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
5743 using Pmode.
5744
72431aef
KH
57452002-02-10 Kazu Hirata <kazu@hxi.com>
5746
5747 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
5748 constant definition from h8300.md.
5749 (FRAME_POINTER_REGNUM): Likewise.
5750 * config/h8300/h8300.md (define_constants): Add FP_REG.
5751
87e4ee91
KH
57522002-02-10 Kazu Hirata <kazu@hxi.com>
5753
5754 * config/h8300/h8300.c (print_operand): Remove redundant code.
5755
9c188705
KH
57562002-02-10 Kazu Hirata <kazu@hxi.com>
5757
5758 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
5759 * config/h8300/h8300.c (byte_reg): Make it static.
5760
fba78abb
RH
57612002-02-10 Richard Henderson <rth@redhat.com>
5762
5763 PR c/5623
5764 * c-typeck.c (incomplete_type_error): Handle flexible array members.
5765
65739e62
RH
57662002-02-10 Richard Henderson <rth@redhat.com>
5767
5768 PR c++/5624
5769 * tree.c (append_random_chars): Don't abort if main_input_filename
5770 does not exist.
5771
247cb9df
HPN
57722002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
5773
5774 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
5775
232bd029
KH
57762002-02-10 Kazu Hirata <kazu@hxi.com>
5777
65739e62 5778 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
232bd029
KH
5779 (pushhi1): Likewise.
5780
276ef573
JDA
57812002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
5782
5783 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
5784 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
5785
617e9ee5
DB
57862002-02-09 David O'Brien <obrien@FreeBSD.org>
5787
5788 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
5789 remove MASK_VIS.
5790 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
5791
6dfa4005
KH
57922002-02-09 Kazu Hirata <kazu@hxi.com>
5793
5794 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
5795 a half of an SImode register on H8/300.
5796
749e7b80
JH
5797Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
5798
5799 * i386.md (movdi_2): Add missing '!'.
5800
ca77d87c
KH
58012002-02-09 Kazu Hirata <kazu@hxi.com>
5802
5803 * config/h8300/h8300.h: Fix formatting. Remove commented-out
5804 definitions.
5805
16c96304
KH
58062002-02-09 Kazu Hirata <kazu@hxi.com>
5807
5808 * config/h8300/h8300.md (length): Correct the distance valid
5809 for the short branch.
5810
a364bc90
KH
58112002-02-09 Kazu Hirata <kazu@hxi.com>
5812
5813 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
5814
e4ec2cac
AO
58152002-02-09 Alexandre Oliva <aoliva@redhat.com>
5816
a138247b
AO
5817 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
5818 registers in SImode.
5819 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
5820 part-clobbered.
5821
2b1fd83f
AO
5822 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
5823 patch.
d9b3eb63 5824
fa5322fa
AO
5825 Contribute sh64-elf.
5826 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
5827 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
5828 (sh_cannot_modify_jumps_p): New function.
5829 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
5830 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
5831 (sh_ms_bitfield_layout_p): New function.
5832 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5833 Zack Weinberg <zack@codesourcery.com>
5834 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
5835 expand_simple_binop instead of expand_binop.
5836 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
5837 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
5838 use of .quad and .uaquad.
5839 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
5840 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
5841 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5842 * config/sh/sh.md (movdi_const, movdi_const_32bit,
5843 movdi_const_16bit): Make sure all CONSTs have modes.
5844 (sym2PIC): Ditto, but by adjusting all callers.
5845 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
5846 if the prologue calls the SHmedia argument decoder or register
5847 saver.
5848 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5849 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
5850 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
5851 (sh_expand_epilogue): Don't emit USE of return target register.
5852 (prepare_move_operands): Legitimize DImode PIC addresses.
5853 (sh_media_register_for_return): Skip tr0, used to initialize the
5854 PIC register.
5855 (sh_expand_prologue): Remove explicit USE of return register.
5856 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
5857 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
5858 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
5859 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
5860 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
5861 EXTRA_CONSTRAINT_T.
5862 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
5863 (MOVI_SHORI_BASE_OPERAND_P): New.
5864 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
5865 (EXTRA_CONSTRAINT_T): Define in terms of them.
5866 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
5867 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
5868 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
5869 alternatives supporting TARGET_REGS.
5870 (UNSPEC_GOTPLT): New constant.
5871 (movdi split): Move incrementing of LABEL_NUSES...
5872 (movdi_const, movdi_const_32bit): Here. Use
5873 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
5874 (movdi_const_16bit): New.
5875 (call, call_value) [flag_pic]: Use GOTPLT.
5876 (call_pop, call_value_pop): New expands.
5877 (call_pop_compact, call_pop_rettramp): New insns.
5878 (call_value_pop_compact, call_value_pop_rettramp): New insns.
5879 (sibcall) [flag_pic]: Use GOT.
5880 (builtint_setjmp_receiver): Remove bogus, unused expand.
5881 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
5882 (*pt, *ptb, ptrel): New insns.
5883 (sym2GOT): Handle DImode GOT.
5884 (sym2GOTPLT, symGOTPLT2reg): New expands.
5885 (sym2PIC): New expand.
5886 (shcompact_return_tramp): Use GOTPLT to return trampoline.
5887 (shcompact_return_tramp_i): Use return register explicitly.
5888 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
5889 disable flag_reorder_blocks.
5890 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
5891 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
5892 clobbers, for clarity.
5893 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
5894 restoring of r0 in macl as MAYBE_DEAD.
5895 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5896 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
5897 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
5898 alter_subreg all over.
5899 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
5900 reload, instead of emitting instructions that would require
5901 reloading.
5902 (casesi_load_media): Add missing modes.
5903 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
5904 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
5905 as used if the argument decoder is called.
5906 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5907 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
5908 Pmode, then extend it to DImode if necessary.
5909 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5910 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
5911 constants in FPU-enabled SHmedia, let them be loaded from memory.
5912 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
5913 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
5914 Adjust whitespace in assembly output templates.
5915 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
5916 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
5917 mode of if_then_else.
5918 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
5919 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
5920 sh.h.
5921 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
5922 Joern Rennecke <amylaar@redhat.com>
5923 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
5924 (SUBTARGET_CPP_PTR_SPEC): New.
5925 (SUBTARGET_CPP_SPEC): Remove.
5926 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5927 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5928 Fix typo in previous checkin.
5929 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
5930 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
5931 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
5932 Alexandre Oliva <aoliva@redhat.com>
5933 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
5934 what single FP register can hold for SHmedia target.
5935 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
5936 Alexandre Oliva <aoliva@redhat.com>
5937 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5938 Do not split into SUBREG.
5939 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
5940 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
5941 and added new functions as specified in SH5 ABI r9.
5942 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
5943 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
5944 8-byte boundary.
5945 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
5946 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
5947 gen_consttable_4 and gen_consttable_8. Emit multiple labels
5948 and consttable_window_ends.
5949 2001-06-03 Graham Stott <grahams@redhat,com>
5950 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
5951 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
5952 * config/sh/sh.c (print_operand): Handle floating-point pair,
5953 vector and matrix registers.
5954 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
5955 vector modes into account.
5956 * config/sh/sh.md (movv2sf): Split move between registers into
5957 movdf.
5958 (movv4sf, movv16sf): Introduce insns that get split only after
5959 reload.
5960 * config/sh/shmedia.h: Fix Copyright dates.
5961 * config/sh/ushmedia.h: Likewise. Move loop counter
5962 declarations into conditionals that uses them.
5963 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
5964 loop boundary.
5965 * config/sh/sshmedia.h: Fix Copyright dates.
5966 (sh_media_PUTCFG): Fix constraints.
5967 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
5968 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
5969 ptrmemfunc_vbit_in_delta for SH5.
5970 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
5971 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
5972 * invoke.texi: Likewise.
5973 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5974 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
5975 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
5976 GCC_pop_shmedia_regs_nofpu): New global symbols.
5977 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
5978 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
5979 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
5980 compact function with nonlocal labels.
5981 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
5982 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
5983 (initial_elimination_offset): Account for their stack space.
5984 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
5985 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
5986 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
5987 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
5988 least one of the operands to be a register.
5989 (movv2sf): Likewise. Renamed to movv2sf_i.
5990 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
5991 prepare_move_operands() before emitting SHmedia insns.
5992 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
5993 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
5994 Don't save nor initialize r12. Don't mis-align the stack.
5995 Pad the code with a nop.
5996 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
5997 stack.
5998 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
5999 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6000 [__SHMEDIA__]: Implement.
6001 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
6002 * config/sh/sh.md: Set latency of `pt' closer to reality.
6003 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6004 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6005 Set move, load and store type attributes.
6006 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6007 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6008 profiling.
6009 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6010 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6011 * config/sh/sh.c (sh_media_register_for_return): New function.
6012 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6013 branch-target register.
6014 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6015 * config/sh/sh.md (return_media_i): Use any call-clobbered
6016 branch-target register.
6017 (return_media): If r18 wasn't copied in the prologue, copy it
6018 here.
6019 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6020 Clear class FP0_REGS.
6021 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6022 from elf.h.
6023 2001-03-08 DJ Delorie <dj@redhat.com>
6024 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6025 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
6026 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6027 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
6028 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6029 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
6030 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6031 return value correctly for call_cookie.
6032 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
6033 * config/sh/crt1.asm (start): Modified so as to call
6034 ___setup_argv_and_call_main.
6035 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
6036 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6037 SHmedia mode.
6038 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
6039 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6040 (STRIP_NAME_ENCODING): Use it.
6041 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
6042 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
6043 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6044 prepare_scc_operands().
6045 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6046 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6047 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
6048 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6049 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
6050 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6051 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6052 used in shcompact_incoming_args.
6053 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6054 change.
6055 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6056 mode.
6057 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6058 Adjust accordingly.
6059 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6060 Simplify. Adjust. Add sanity check.
6061 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6062 FPU_SINGLE_BIT.
6063 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6064 TARGET_SHCOMPACT.
6065 (udivsi3, divsi3): Use them.
6066 (force_mode_for_call): New insn.
6067 (call, call_value, sibcall_value): Emit it before SHcompact
6068 calls.
6069 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
6070 * config/sh/sh.md (call, call_value, sibcall): Make sure the
6071 call cookie is non-NULL before taking its value.
6072 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
6073 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6074 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
6075 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6076 block.
6077 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6078 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6079 temporary for stack adjusts. Use MACL and MACH to pass
6080 arguments to shcompact_incoming_args.
6081 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
6082 clobber r1.
6083 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6084 (nested_trampoline): Load static chain address into r1.
6085 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6086 2001-01-07 Alexandre Oliva <aoliva@redhat.com
6087 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6088 fp_arith_reg_operand().
6089 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
6090 * config/sh/sh.md (casesi): Sign-extend the first two operands,
6091 and use signed compares for them.
6092 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6093 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
6094 ones properly aligned.
6095 (find_barrier): Account for extra alignment needed for 8-byte wide
6096 constants.
6097 (machine_dependent_reorg): Require a label for the second 4-byte
6098 constant after an 8-byte one.
6099 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6100 change.
6101 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
6102 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6103 last_float when switching float modes.
6104 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6105 auto-increment for general-purpose registers.
6106 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6107 result.
6108 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6109 for stack adjust.
6110 * config/sh/sh.c (sh_builtin_saveregs): Support using all
6111 registers for varargs.
6112 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
6113 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6114 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6115 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6116 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6117 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
6118 call_cookie accordingly.
6119 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6120 (SHCOMPACT_BYREF): Likewise.
6121 (SHCOMPACT_FORCE_ON_STACK): New macro.
6122 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6123 (sh_builtin_saveregs): Likewise.
6124 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6125 shcompact_incoming_args): Use new shift values. Support
6126 sequences of consecutive and non-consecutive pushes/pops.
6127 * config/sh/sh.md (return): Don't explicitly use PR_REG.
6128 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6129 * config/sh/sh.h (TEXT_SECTION): Define.
6130 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6131 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
6132 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6133 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6134 return values on FPU-enabled SHmedia.
6135 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6136 FPU-enabled SHmedia.
6137 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6138 value is returned in a non-FP reg and is not returned by
6139 reference.
6140 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6141 jump_ind.
6142 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
6143 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6144 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6145 quad-aligned to be passed by callee-copy reference.
6146 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
6147 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6148 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6149 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
6150 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6151 copying low-numbered FP regs to r7 and r8.
6152 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6153 FP regs to general-purpose regs only if the copy was passed on the
6154 stack.
6155 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6156 copying FP reg to r9.
6157 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6158 copy FP regs to general-purpose regs only in outgoing calls.
6159 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1e4e95d6 6160 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
fa5322fa
AO
6161 HOST_WIDE_INT.
6162 * config/sh/sh.h (struct sh_args): Document all fields.
6163 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6164 passed partially on the stack should not consider making
6165 sibcalls.
6166 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6167 stack_regs only for incoming calls. When passing FP args,
6168 make sure there are FP regs available before modifying
6169 call_cookie.
6170 (SHCOMPACT_BYREF): Pass double args in general-purpose
6171 registers by reference.
6172 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
6173 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6174 attempt to generate sibcalls if the caller got any arguments
6175 by reference.
6176 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6177 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6178 to 8-byte boundaries.
6179 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6180 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6181 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6182 stored in the stack.
6183 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6184 for the offsets to have the ISA bit set.
6185 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
6186 invocation. Use beq instead of bgt to mark end of sequence of
6187 loads.
6188 (shcompact_incoming_args): Fix store of r2. Use beq instead of
6189 bgt to mark end of sequence of stores.
6190 * config/sh/sh.c (arith_operand): Don't check whether
6191 CONST_OK_FOR_J for now.
6192 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6193 instead of long for conversion.
6194 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
6195 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6196 before passing it to fprintf.
6197 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
6198 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6199 Call set_fpscr before reading/writing SR.
6200 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6201 Call set_fpscr.
6202 * config/sh/lib1funcs.asm: Add `.align 2' directives before
6203 SHmedia code.
6204 (FMOVD_WORKS): Define on SH5 with FPU.
6205 (set_fpscr): Define on SH5. Remove separate _fpscr_values
6206 setting.
6207 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6208 _fpscr_values.
6209 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
6210 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6211 address.
6212 (ia_main_table): Ditto.
6213 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
6214 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6215 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6216 the definitions from sh.h.
6217 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6218 TARGET_SH5.
6219 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6220 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6221 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6222 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
6223 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6224 Increment LABEL_NUSES.
d9b3eb63 6225
fa5322fa
AO
6226 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6227 TARGET_SH5.
6228 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6229 defined.
6230 * config/sh/elf.h (SIZE_TYPE): Likewise.
6231 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6232 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6233 shcompact_incoming_args): Load switch table addresses using
6234 datalabel.
6235 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6236 (NO_BUILTIN_SIZE_TYPE): Define.
6237 (SIZE_TYPE): Don't define.
6238 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6239 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6240 definition of __SH5__=32 for -m5-compact-nofpu.
6241 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6242 ADDR_DIFF_VEC.
6243 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
6244 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6245 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
6246 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6247 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6248 (INSN_LENGTH_ALIGNMENT): Likewise.
6249 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6250 * config/sh/sh.md (call, call_value, sibcall): Simplify
6251 copying of non-branch-target register.
6252 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1e4e95d6 6253 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
fa5322fa
AO
6254 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6255 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6256 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6257 floating-point values as structs.
6258 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6259 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6260 general-purpose register.
6261 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6262 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
6263 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6264 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6265 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6266 (ENCODE_SECTION_INFO): Enclose variables and constants in
6267 DATALABEL unspecs.
6268 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6269 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6270 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6271 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6272 only for LABEL_REFs. For SYMBOL_REFs, prepend
6273 SH_DATALABEL_ENCODING to the symbol name.
6274 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6275 convert_mode().
6276 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
6277 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6278 UNSPEC_DATALABEL.
6279 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6280 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6281 (DATALABEL_REF_P): Don't require CONST.
6282 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6283 REL label.
6284 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
6285 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6286 right.
6287 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
6288 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6289 Use shallow_copy_rtx and PUT_MODE to change the mode of
6290 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6291 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6292 on SHmedia using GENERAL_REGs.
6293 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6294 bltu_media_i): Fix reversion of conditions.
6295 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
6296 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6297 * config/sh/sh.c (output_far_jump): Save r13 in macl.
6298 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
6299 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6300 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
6301 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6302 (GCC_nested_trampoline): Likewise.
6303 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6304 * config/sh/sh.c (gen_datalabel_ref): Define.
6305 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6306 (INITIALIZE_TRAMPOLINE): Likewise.
6307 (TRAMPOLINE_ADJUST_ADDRESS): Define.
6308 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6309 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6310 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6311 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6312 (ic_invalidate): Adjust for SH5.
6313 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6314 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6315 _nested_trampoline.
6316 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
6317 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6318 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6319 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
6320 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6321 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6322 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
6323 * config/sh/sh.c (target_reg_operand): Match only target-branch
6324 registers and pseudos that aren't virtual registers.
6325 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6326 Copy operands that don't match target_reg_operand to pseudos.
6327 (call_media, call_value_media, sibcall_media): Use
6328 target_reg_operand instead of target_operand.
6329 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
d9b3eb63 6330 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
fa5322fa
AO
6331 * config/sh/sh.c (target_reg_operand): Match hardware registers
6332 other than branch-target registers.
6333 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6334 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6335 (fpscr_values) [SH5 == 32]: Define.
6336 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6337 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6338 Handle function addresses coming in SUBREGs.
6339 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
6340 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6341 shcompact_return_trampoline): Use datalabel where appropriate.
6342 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
6343 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6344 general-purpose register to copy one branch-target register to
6345 another.
6346 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
6347 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6348 SYMBOL_REFs with VOIDmode.
6349 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6350 bltu_media_i): New insns.
6351 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
6352 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6353 (INIT_CUMULATIVE_ARGS): Likewise.
6354 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
6355 * machmode.def (V16SFmode): New mode.
6356 * c-common.c (type_for_mode): Support V2SF and V16SF.
6357 * tree.c (build_common_tree_nodes_2): Likewise.
6358 * tree.h (tree_index): Likewise.
6359 * calls.c (emit_call_1): Take args_so_far. Adjust all
6360 callers. Introduce CALL_POPS_ARGS.
6361 * tm.texi (CALL_POPS_ARGS): Document.
6362 * config/sh/crt1.asm: Implement in SHmedia mode.
6363 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6364 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6365 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6366 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6367 Implement divsi and udivsi in SHmedia mode. Introduce
6368 SHcompact trampolines.
6369 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6370 only in SHmedia64.
6371 (regno_reg_class): Rewrite.
6372 (fp_reg_names): Remove.
6373 (sh_register_names, sh_additional_register_names): New.
6374 (print_operand): Added `u'. Support SUBREGs in addresses.
6375 Add parentheses around shifted CONSTs.
6376 (output_file_start): Output .mode and .abi directives.
6377 (shiftcosts, addsubcosts, multcosts): Adjust.
6378 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
6379 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
6380 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
6381 bytes, not registers. Take into account the need for the
6382 SHcompact incoming args trampoline. Adjust all callers.
6383 (sh_expand_prologue): Take stack_regs into account. Call
6384 incoming args trampoline. Keep stack aligned as per SH5 ABI.
6385 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
6386 stack aligned as per SH5 ABI.
6387 (sh_builtin_saveregs): Support SH5 ABI.
6388 (sh_build_va_list, sh_va_start): Likewise.
6389 (initial_elimination_offset): Take alignment into account.
6390 Compute location of PR according to the SH5 stack frame.
6391 (arith_reg_operand): Reject branch-target registers.
6392 (shmedia_6bit_operand): New.
6393 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6394 (target_reg_operand): Match DImode only. Accept SUBREGs.
6395 (target_operand): New.
6396 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6397 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
6398 SIBCALL_REGS for SHmedia.
6399 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6400 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6401 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6402 (TARGET_SWITCHES): New SH5 flags.
6403 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
6404 VALID_REGISTER_P to disable unsupported registers.
6405 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6406 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6407 (FUNCTION_ARG_PADDING): Define.
6408 (FASTEST_ALIGNMENT): Adjust.
6409 (SH_REGISTER_NAMES_INITIALIZER): New.
6410 (sh_register_names): Declare.
6411 (DEBUG_REGISTER_NAMES): Define.
6412 (REGISTER_NAMES): Define based on sh_register_names.
6413 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6414 (sh_additional_register_names): Declare.
6415 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6416 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6417 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6418 (REGISTER_NATURAL_MODE): Define.
6419 (FIRST_PSEUDO_REGISTER): Adjust.
6420 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6421 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6422 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6423 (VECTOR_MODE_SUPPORTED_P): Define.
6424 (REG_CLASS_CONTENTS): Adjust.
6425 (SMALL_REGISTER_CLASSES): Adjust.
6426 (REG_ALLOC_ORDER): Adjust.
6427 (INDEX_REG_CLASS): Adjust.
6428 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6429 (CONST_OK_FOR_LETTER_P): Adjust.
6430 (PREFERRED_RELOAD_CLASS): Adjust.
6431 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6432 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6433 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6434 (FIRST_FP_PARM_REG): Adjust.
6435 (CALL_POPS_ARGS): Define.
6436 (FUNCTION_ARG_REGNO_P): Adjust.
6437 (struct sh_args): New fields.
6438 (GET_SH_ARG_CLASS): Adjust.
6439 (INIT_CUMULATIVE_ARGS): Adjust.
6440 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
6441 (FUNCTION_ARG_ADVANCE): Adjust.
6442 (FUNCTION_ARG): Adjust.
6443 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6444 (FUNCTION_ARG_CALLEE_COPIES): Define.
6445 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6446 (STRICT_ARGUMENT_NAMING): Define.
6447 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6448 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6449 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6450 (SETUP_INCOMING_VARARGS): Adjust.
6451 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6452 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6453 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6454 (SUBREG_OK_FOR_INDEX_P): Adjust.
6455 (EXTRA_CONSTRAINT_S): Update.
6456 (EXTRA_CONSTRAINT_T): New.
6457 (EXTRA_CONSTRAINT): Adjust.
6458 (GO_IF_LEGITIMATE_INDEX): Adjust.
6459 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6460 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6461 (MOVE_MAX): Adjust.
6462 (MAX_MOVE_MAX): Define.
6463 (Pmode): Adjust.
6464 (CONST_COSTS): Adjust.
6465 (REGISTER_MOVE_COST): Adjust.
6466 (BRANCH_COST): Adjust.
6467 (TEXT_SECTION_ASM_OP): Adjust.
6468 (DBX_REGISTER_NUMBER): Adjust.
6469 (ASM_OUTPUT_DOUBLE_INT): New.
6470 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6471 (PREDICATE_CODES): Adjust.
6472 (PROMOTE_MODE): Adjust.
6473 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6474 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6475 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6476 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6477 (DR0_REG, DR2_REG, DR4_REG): Renumber.
6478 (TR0_REG, TR1_REG, TR2_REG): New.
6479 (XD0_REG): Renumber.
6480 (UNSPEC_COMPACT_ARGS): New.
6481 (type): Added pt and ptabs.
6482 (length): Default to 4 on SHmedia. Default pt length to 12
1e4e95d6 6483 and 20 on SHmedia32 and SHmedia64, respectively.
fa5322fa
AO
6484 (pt): New function unit.
6485 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
6486 Add whitespace between operands of SHmedia instructions.
6487 (movdicc): Fix.
6488 (adddi3_media, addsi3_media): Adjust constraints.
6489 (subsi3) [SHmedia]: Force operand 1 into a register.
6490 (udivsi3_i1_media, udivsi3_i4_media): New.
6491 (udivsi3): Support SHmedia.
6492 (divsi3_i1_media, divsi3_i4_media): New.
6493 (divsi3): Support SHmedia.
6494 (anddi3, iordi3, xordi3): Adjust constraints.
6495 (zero_extendhidi2, zero_extendqidi2): New.
6496 (extendsidi2, extendhidi2, extendqidi2): New.
6497 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
6498 (pop_e, pop_fpul, pop_4): Likewise.
6499 (movsi_media): Support FP and BT registers.
6500 (movsi_media_nofpu): New. Adjust splits to DImode.
6501 (lduw, ldub): Renamed to zero_extend* above.
6502 (movqi_media): Fix typo.
6503 (movdi_media): Support FP and BT registers.
6504 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
6505 (movdi_const_32bit): New.
6506 (shori_media): Require immediate operand. Use `u' for output.
6507 (movdf_media, movsf_media): Simplified.
6508 (movdf_media_nofpu, movsf_media_nofpu): New.
6509 (movdf, movsf): Adjust
6510 (movv2sf, movv2sf, movv16sf): New.
6511 (beq_media, beq_media_i): Adjust constraints. Don't use
6512 scratch BT register.
6513 (bne_media, bne_media_i): Likewise.
6514 (bgt_media, bgt_media_i): Likewise.
6515 (bge_media, bge_media_i): Likewise.
6516 (bgtu_media, bgtu_media_i): Likewise.
6517 (bgeu_media, bgeu_media_i): Likewise.
6518 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
6519 bunordered): Emit jump insn. Force operands to registers when
6520 needed.
6521 (jump_media, jump): Simplify.
6522 (call_compact, call_compact_rettramp): New.
6523 (call_value_compact, call_value_compact_rettramp): New.
6524 (call_media, call_value_media): Simplify.
6525 (sibcall_compact, sibcall_media): New.
6526 (call, call_value): Adjust for SHmedia and SHcompact.
6527 (sibcall, sibcall_value, untyped_call): Likewise.
6528 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
6529 (indirect_jump): Adjust for SHmedia.
6530 (casesi_jump_media): New.
6531 (nop): Re-enable for SHmedia.
6532 (call_site): Restrict to SH1.
6533 (casesi): Adjust for SHmedia.
6534 (casesi_shift_media, casesi_load_media): New.
6535 (return): Explicitly use PR register. Call return trampoline
6536 on SHcompact.
6537 (return_i): Explicitly use PR register.
6538 (shcompact_return_tramp, shcompact_return_tramp_i): New.
6539 (return_media): Adjust.
6540 (shcompact_incoming_args): New.
6541 (epilogue): Adjust.
6542 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6543 (movstrsi): Disable on SH5.
6544 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
6545 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
6546 (subsf3, subsf3_media): Likewise.
6547 (mulsf3, mulsf3_media, mac_media): Likewise.
6548 (divsf3, divsf3_media): Likewise.
6549 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
6550 (floatsisf2, fux_truncsfsi2): Likewise.
6551 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
6552 constraints.
6553 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
6554 (cmpunsf_media, cmpsf): Likewise.
6555 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
6556 (abssf2, abssf2_media): Likewise.
6557 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
6558 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
6559 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
6560 (floatsidf2, fix_truncdfsi2): Likewise.
6561 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
6562 constraints.
6563 (cmpeqdf_media, cmpgtdf_media): Likewise.
6564 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
6565 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
6566 (absdf2, absdf2_media): Likewise.
6567 (extendsfdf2, extendsfdf2_media): Likewise.
6568 (truncsfdf2, truncsfdf2_media): Likewise.
6569 * config/sh/sh64.h: New file.
6570 * config/sh/t-sh64: New file.
6571 * config/sh/shmedia.h: New file.
6572 * config/sh/ushmedia.h: New file.
6573 * config/sh/sshmedia.h: New file.
6574 * configure.in: Added sh64-*-elf.
6575 * configure: Rebuilt.
6576 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
6577 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
6578 (reg_class_from_letter): Use `b' for TARGET_REGS.
6579 (print_operand): Support `%M', `%m', `AND' and
6580 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
6581 (andcosts): Adjust for SHmedia.
6582 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
6583 Likewise.
6584 (target_reg_operand): New function.
6585 * config/sh/sh-protos.h (target_reg_operand): Declare.
6586 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
6587 FP registers on SH5.
6588 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
6589 on SH4.
6590 (TARGET_REGISTER_P): New macro.
6591 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
6592 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
6593 (EXTRA_CONSTRAINT_S): New macro.
6594 (EXTRA_CONSTRAINT): Adjust.
6595 (FLOAT_TYPE_SIZE): Define to 32.
6596 (Pmode): DImode on SHmedia.
6597 (CONST_COSTS): Adjust for SHmedia literals.
6598 (PREDICATE_CODES): Added target_reg_operand.
6599 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
6600 * config/sh/sh.md: Remove all attrs from SHmedia insns.
6601 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
6602 (cmpdi): Accept SHmedia.
6603 (movdicc_false, movdicc_true): New insns.
6604 (movdicc): New expand.
6605 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
6606 no_new_pseudos.
6607 (addsi3_media): Match `S' constraint.
6608 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
6609 (negdi2): Expand for SHmedia.
6610 (one_cmpldi2): New expand.
6611 (zero_extendsidi2): Change from expand to insn.
6612 (extendsidi2): Add constraints.
6613 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
6614 LD/ST address. Fix SI immediate loading split.
6615 (movhi_media, movqi_media, lduw, ldub): New insns.
6616 (movhi, movqi): Accept SHmedia.
6617 (shori_media, movdi_media): Relax input constraints. Split
6618 symbolic constants.
6619 (movdf_media, movsf_media): New insn. New split to movdi.
6620 (movdf, movsf): Match on SHmedia.
6621 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
6622 bgeu_media): New insns and splits. New insns with `_i' suffix.
6623 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
6624 (bunordered): New expand.
6625 (jump_compact): Renamed from `jump'.
6626 (jump_media): New insn.
6627 (jump): New expand.
6628 (call_media, call_value_media): New insns.
6629 (call, call_value): Adjust.
6630 (indirect_jump_compact): Renamed from `indirect_jump'.
6631 (indirect_jump_media): New insn.
6632 (indirect_jump): New expand.
6633 (untyped_call, return): Accept SHmedia.
6634 (return_media): New insn.
6635 (prologue, epilogue, blockage): Accept SHmedia.
6636 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6637 (sunordered): New expand.
6638 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
6639 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
6640 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
6641 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
6642 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
6643 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
6644 abssf2_media): New insns.
6645 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
6646 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
6647 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
6648 floatdidf2, floatsidf2_media, fix_truncdfdi2,
6649 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
6650 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
6651 absdf2_media): New insns.
6652 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
6653 (extendsfdf2_media, truncdfsf2_media): New insns.
6654 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
6655 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
6656 * config/sh/sh.h (CONST_OK_FOR_J): Document.
6657 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
6658 * config/sh/sh.md (adddi3): New expand.
6659 (adddi3_media, adddi3z_media): New insns.
6660 (adddi3_compact): Renamed from adddi3.
6661 (addsi3_media): Use add.l r63 to add constant zero.
6662 (subdi3): New expand.
6663 (subdi3_media): New insn.
6664 (subdi3_compact): Renamed from subdi3.
6665 (mulsidi3): New expand.
6666 (mulsidi3_media): New insn.
6667 (mulsidi3_compact): Renamed from mulsidi3.
6668 (umulsidi3): New expand.
6669 (umulsidi3_media): New insn.
6670 (umulsidi3_compact): Renamed from umulsidi3.
6671 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
6672 (ashlsi3, ashrsi3, lshrsi3): Use them.
6673 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
6674 (ashldi3, ashrdi3, lshrdi3): Use them.
6675 (zero_extendsidi2): New expand.
6676 (extendsidi2): New insn.
6677 (movsi_media): New insn. Split to movdi to load constants.
6678 (movsi): Enable for shmedia.
6679 (movdi_media): New insn. Use shori_media to load wide constants.
6680 (short_media): New insn.
6681 (movdi): Enable for shmedia.
6682 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
6683 * config/sh/sh.h (CPP_SPEC): Added `m5'.
6684 (SUBTARGET_CPP_SPEC): Added `!m5'.
6685 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
6686 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
6687 to all other SH variants.
6688 (TARGET_DEFAULT): Set to SH1_BIT.
6689 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
6690 (BITS_PER_WORD): Raise to 64 on shmedia.
6691 (MAX_BITS_PER_WORD): Change to 64.
6692 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
6693 (INT_TYPE_SIZE): Keep as 32.
6694 (UNITS_PER_WORD): Raise to 8 on shmedia.
6695 (MIN_UNITS_PER_WORD): Keep as 4.
6696 (POINTER_SIZE): Raise to 64 on shmedia.
6697 (CONST_OK_FOR_J): New macro.
6698 (CONST_OK_FOR_LETTER_P): Use it.
6699 (processor_type): Add PROCESSOR_SH5.
6700 * config/sh/sh.md: Conditionalize all expands, insns and
6701 splits to TARGET_SH1.
6702 (cpu): Added sh5.
6703 (addsi3_compact): Renamed from...
6704 (addsi3): Now an expand.
6705 (addsi3_media, subsi3_media): New insns.
6706 (subsi3): Don't negate constants with SHmedia.
6707
e4ec2cac
AO
6708 * hooks.c: New file.
6709 * hooks.h: New file.
6710 * Makefile.in (HOOKS_H): New.
6711 (TARGET_DEF_H): Added $(HOOKS_H).
6712 (OBJS): Added hooks.o.
6713 (cfgcleanup.o, bb-reorder.o): Added target.h.
6714 (hooks.o): Added dependencies.
6715 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
6716 (TARGET_INITIALIZER): this.
6717 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
6718 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
6719 * bb-reorder.c: Include target.h.
6720 (reorder_basic_blocks): Skip if cannot modify jumps.
6721 * cfgcleanup.c: Include target.h.
6722 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
6723
246a46e0
CD
67242002-02-08 Chris Demetriou <cgd@broadcom.com>
6725
831c4e87
KC
6726 * config/mips/mips.md (casesi_internal, casesi_internal_di):
6727 Protect jump delay slot instructions with .set noreorder and
6728 .set nomacro.
246a46e0
CD
6729
67302002-02-08 Chris Demetriou <cgd@broadcom.com>
6a5ea3f4
CD
6731
6732 * config/mips/mips.md (casesi_internal_di): Calculate
6733 the index into the target offset table correctly.
6734
fdf473ae
RH
67352002-02-08 Richard Henderson <rth@redhat.com>
6736
6737 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
6738 * final.c (output_addr_const): Accept and discard SUBREG.
6739 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
6740 mark them unknown instead.
6741 (simplify_subtraction): Handle RTX_UNKNOWN.
6742 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
6743
c50503ac
DE
67442002-02-08 David Edelsohn <edelsohn@gnu.org>
6745
6746 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
6747
3660d217
RH
67482002-02-08 Richard Henderson <rth@redhat.com>
6749
6750 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
6751
56547299
AJ
67522002-02-08 Andreas Jaeger <aj@suse.de>
6753
6754 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
6755 * config/i386/t-linux64: New file.
6756
1cf537c5
JJ
67572002-02-08 Jakub Jelinek <jakub@redhat.com>
6758
6759 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
6760 * c-parse.in (compstmt): Clear last_expr_type.
6761
5c7f5a5f
RH
67622002-02-07 Richard Henderson <rth@redhat.com>
6763
6764 * loop.c (strength_reduce): Sink final_value when not
6765 eliminating a biv.
6766
b1138bf3
DB
67672002-02-07 David O'Brien <obrien@FreeBSD.org>
6768
6769 * config/sparc/freebsd.h: Fix mismatched spec {.
6770
b6878a45
RH
67712002-02-07 Richard Henderson <rth@redhat.com>
6772
6773 * cfgrtl.c: Include recog.h and insn-config.h.
6774 (keep_with_call_p): Fix general_operand invocation.
6775 * Makefile.in (cfgrtl.o): Update dependencies.
6776
ae19f5ef
KH
67772002-02-07 Kazu Hirata <kazu@hxi.com>
6778
6779 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
6780 comment. Accept HImode only if TARGET_H8300.
6781
b137f9fc
EC
67822002-02-07 Eric Christopher <echristo@redhat.com>
6783
6784 * config/mips/crtn.asm: Cleanup #ifdefs.
6785
67862002-02-07 Eric Christopher <echristo@redhat.com>
6787
6788 * config/mips/crti.asm: Add changes for mips16. mips16 uses
6789 register 7 as RA instead of $31.
6790 * config/mips/crtn.asm: Ditto.
6791 * config/mips/mips.c (mips_move_2words): Add case for
6792 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
6793 (compute_frame_size): Fix typo.
6794 (save_restore_insns): Ditto. Make documentation about using
6795 register $7 as return register more precise.
6796 (mips_expand_epilogue): Fix comment. Add code to work around not
6797 being able to add to the stack pointer directly.
6798 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
6799 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
6800 epilogue.
6801
768070a0
TR
68022002-02-07 Tom Rix <trix@redhat.com>
6803
b137f9fc 6804 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
768070a0
TR
6805 immediates in ldu and stdu DS opcode field.
6806 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
6807 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
6808 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
6809
225909c3
JS
68102002-02-07 Jeff Sturm <jsturm@one-point.com>
6811
6812 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
6813 offset for stack bias.
6814
15fae023
L
68152002-02-07 H.J. Lu <hjl@gnu.org>
6816
6817 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
6818
fde5badd
UW
68192002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
6820
6821 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
6822
162f023b
JH
6823Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
6824
6825 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
6826 * i386.c (x86_order_regs_for_local_alloc): New global function.
6827 * i386.h (REG_ALLOC_ORDER): CLeanup.
6828 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
6829
9b462c42
RH
68302002-02-07 Richard Henderson <rth@redhat.com>
6831
85aa876c 6832 PR optimization/2463
9b462c42
RH
6833 * alias.c (find_base_value): Recall base values for fixed hard regs.
6834 * loop.c (loop_regs_update): Don't use single_set on non-insns.
6835
06e455a9
AO
68362002-02-07 Alexandre Oliva <aoliva@redhat.com>
6837
6838 * config/mips/mips.md (define_delay) [mips16]: Adjust required
6839 length.
6840
edd1967d
RH
68412002-02-06 Richard Henderson <rth@redhat.com>
6842
6843 PR c/5609
6844 * stmt.c (resolve_operand_name_1): Take more care with mixed
6845 named and unnamed operands.
6846
a2cd028f
JJ
68472002-02-06 Janis Johnson <janis187@us.ibm.com>
6848 Jan Hubicka <jh@suse.cz>
6849
6850 * loop.c (remove_constant_addition): Avoid clobbering a shared
6851 CONST expression.
6852
e8487c04
UW
68532002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6854
6855 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
6856 * config/s390/t-linux64: New file.
6857 * config/s390/libgcc-glibc.ver: New file.
6858
58d10f89
UW
68592002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6860
6861 * config/s390/linux64.h: Delete file.
6862 * config/s390/s390x.h: New file.
6863 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
6864 as target header file.
6865 * config/s390/linux.h (TARGET_VERSION): Define depending on
6866 DEFAULT_TARGET_64BIT.
6867 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
6868 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
6869 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
6870 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
6871 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
6872 (EXTRA_SPEC): New define.
6873 * config/s390/s390.h (TARGET_VERSION): Define depending on
6874 DEFAULT_TARGET_64BIT.
6875 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
6876
5ce89b2e
JM
68772002-02-06 Jason Merrill <jason@redhat.com>
6878
6879 * c-decl.c (finish_function): Warn about a non-void function with
6880 no return statement and no abnormal exit.
6881 (current_function_returns_abnormally): New variable.
6882 (start_function): Clear it.
6883 (struct c_language_function): Add returns_abnormally.
6884 (push_c_function_context): Save it.
6885 (pop_c_function_context): Restore it.
6886 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
6887 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
6888 an explicit return type.
6889 * c-tree.h: Declare current_function_returns_abnormally.
6890 (C_FUNCTION_IMPLICIT_INT): New macro.
6891 * c-typeck.c (build_function_call): Set it.
6892 (c_expand_return): Set current_function_returns_value even if the
6893 value is erroneous.
6894
caaf2272
JJ
68952002-02-06 Jakub Jelinek <jakub@redhat.com>
6896
6897 PR c/5420:
6898 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
6899 unsafe for reevaluation.
6900
d5129288
JJ
69012002-02-06 Jakub Jelinek <jakub@redhat.com>
6902
6903 PR c/5482:
6904 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
6905 EXPR_STMT, but COMPOUND_STMT, recurse into it.
6906
7fb75099
RH
69072002-02-06 Richard Henderson <rth@redhat.com>
6908
6909 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
6910 be a general_operand. Dest for function value must be a pseudo.
6911
d3a8b6a6
NC
69122002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6913
6914 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
6915 as SYMBOL_REFs from the constant pool.
6916
3c1299c5
AO
69172002-02-06 Alexandre Oliva <aoliva@redhat.com>
6918
6919 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
6920 passed by invisible reference.
6921
c2c9f6c9
RH
69222002-02-05 Richard Henderson <rth@redhat.com>
6923
6924 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
6925
a824924d
HPN
69262002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
6927
6928 Implement using "base addresses" in insn operands as default.
6929 * config/mmix/mmix.c (mmix_conditional_register_usage): if
6930 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
6931 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
6932 used to read the rtx value.
6933 (mmix_target_asm_function_epilogue): Fix spacing.
6934 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
6935 (mmix_legitimate_address): Ditto.
6936 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
6937 should be loaded with a GETA insn. Don't allocate needless extra
6938 char for nul termination and fix misleading comment.
6939 (mmix_print_operand_address): Handle constants if
6940 TARGET_BASE_ADDRESSES.
6941 (mmix_output_register_setting): Use base addressing if
6942 TARGET_BASE_ADDRESSES and the number of insns is 3.
6943 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
6944 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
6945 to use R as constraint, add LDA to match s.
6946 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
6947 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
6948 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
6949 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
6950 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
6951 order with other fixed registers.
6952 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
6953 other parameter/call-clobbered registers.
6954 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
6955 -mbase-addresses, -mno-base-addresses.
6956 (MMIX Options): Ditto.
6957
73c342b9
JDA
69582002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6959
6960 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
6961
ef238c58
AH
69622002-02-06 Aldy Hernandez <aldyh@redhat.com>
6963
831c4e87 6964 * config/rs6000/altivec.h: Change elem to _S_elem.
ef238c58 6965
ad08e60e
JT
69662002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
6967
6968 * config/netbsd.h (WCHAR_TYPE): Define.
6969 (WCHAR_TYPE_SIZE): Ditto.
6970 (WINT_TYPE): Ditto.
6971 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
6972 (WCHAR_UNSIGNED): Ditto.
6973 (WCHAR_TYPE_SIZE): Ditto.
6974 (WINT_TYPE): Ditto.
6975 * config/arm/netbsd.h: Likewise.
6976 * config/i386/netbsd-elf.h: Likewise.
6977 * config/i386/netbsd.h: Likewise.
6978 * config/m68k/netbsd-elf.h: Likewise.
6979 * config/m68k/netbsd.h: Likewise.
6980 * config/ns32k/netbsd.h: Likewise.
6981 * config/sparc/netbsd.h: Likewise.
6982 * config/vax/netbsd.: Likewise.
6983
f913c102
AO
69842002-02-05 Alexandre Oliva <aoliva@redhat.com>
6985
6986 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
6987 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
6988 (TARGET_INITIALIZER): this.
6989 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
6990 (BITFIELD_NBYTES_LIMITED): Markup fix.
6991 * tree.h (default_ms_bitfield_layout_p): Declare.
6992 (record_layout_info): Added prev_field.
6993 * tree.c (default_ms_bitfield_layout_p): New fn.
6994 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
6995 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
6996 * stor-layout.c: Include target.h.
6997 (start_record_layout): Initialize prev_field.
6998 (place_field): Handle MS bit-field layout, and disregard
6999 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7000 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
7001 * Makefile.in (stor-layout.o): Adjust dependencies.
7002
c13db5d1
JM
70032002-02-05 Jason Merrill <jason@redhat.com>
7004
c13db5d1
JM
7005 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7006
4505024e
AJ
70072002-02-05 Andreas Jaeger <aj@suse.de>
7008
7009 * crtstuff.c: Fix comments.
7010
794ad79d
RH
70112002-02-05 Richard Henderson <rth@redhat.com>
7012
2e279a9b
RH
7013 PR fortran/3393
7014 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7015 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7016
794ad79d
RH
7017 PR fortran/3392
7018 * config/mips/mips.c (function_arg): Handle TImode.
7019 (function_arg_advance): Likewise.
7020
8f909017
AH
70212002-02-05 Aldy Hernandez <aldyh@redhat.com>
7022
c13db5d1
JM
7023 * config/rs6000/altivec.h (vec_step_help): Rename to
7024 __vec_step_help.
8f909017 7025
66daa9e3
AH
70262002-02-05 Aldy Hernandez <aldyh@redhat.com>
7027
c13db5d1 7028 * config/rs6000/altivec.h: Fix typos.
66daa9e3 7029
2696e97b
JT
70302002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
7031
7032 * config/arm/netbsd.h: Correct a comment.
7033
3deb2758
AH
70342002-02-05 Aldy Hernandez <aldyh@redhat.com>
7035
c13db5d1
JM
7036 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7037 building void typed builtins.
3deb2758 7038
c13db5d1
JM
7039 * config/rs6000/altivec.h (vec_ld*): Fix typos.
7040 (vec_step): Implement for C++.
3deb2758 7041
c13db5d1 7042Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2c79137a
RK
7043
7044 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7045
ebbb0a63
RH
70462002-02-04 Richard Henderson <rth@redhat.com>
7047
7048 * combine.c (nonzero_bits): Re-introduce special case for
7049 sp/fp/ap wrt REGNO_POINTER_ALIGN.
7050
ae4b4a02
AH
70512002-02-05 Aldy Hernandez <aldyh@redhat.com>
7052
c13db5d1
JM
7053 * doc/extend.texi: Warn about unsupported usage of altivec
7054 builtins.
ae4b4a02 7055
c13db5d1
JM
7056 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7057 (altivec_predicate_*): New.
ae4b4a02 7058
c13db5d1
JM
7059 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7060 Add C++ version of vec_*() functions.
ae4b4a02 7061
c13db5d1
JM
7062 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7063 (bdesc_2arg): Remove altivec predicates.
7064 (altivec_expand_builtin): Handle predicates.
7065 (altivec_init_builtins): Handle predicates.
7066 (altivec_expand_predicate_builtin): New.
ae4b4a02 7067
f6bcf44c
JDA
70682002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7069
7070 * pa.c (DO_FRAME_NOTES): Move forward.
7071 (store_reg): Revise handling of frame notes.
7072 (load_reg): Likewise.
7073 (set_reg_plus_d): Likewise.
7074 (hppa_expand_prologue): Likewise.
7075 (hppa_expand_epilogue): Likewise.
b137f9fc 7076
703b0080
JDA
70772002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7078
7079 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7080
6f9fdf4d
JJ
70812002-02-04 Jakub Jelinek <jakub@redhat.com>
7082
7083 PR c/4475, c++/3780:
7084 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7085 * c-common.h (SWITCH_TYPE): Define.
7086 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7087 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7088 Rename spareness variable to sparseness.
7089 (expand_end_case_type): Renamed from expand_end_case, use orig_type
7090 if non-NULL instead of TREE_TYPE (orig_index).
7091 * tree.h (expand_end_case_type): Renamed from expand_end_case.
7092 (expand_end_case): Define using expand_end_case_type.
7093 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7094 to expand_end_case_type.
7095 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7096
79109502
JDA
70972002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7098
7099 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7100 (BIGGEST_ALIGNMENT): Change to 128.
7101
e62a5987
JDA
71022002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7103
7104 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7105
219f24a4
JDA
71062002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7107
7108 * pa.md (call_internal_reg_64bit): Remove unused variable.
7109
3cb66fd7
NC
71102002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
7111
7112 * config/arm/arm.h (machine_function): Add uses_anonymous_args
7113 field.
831c4e87 7114 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3cb66fd7 7115 * config/arm/arm.c (current_function_anonymous_args): Delete,
831c4e87
KC
7116 replace uses with cfun->machine->uses_anonymous_args.
7117 (arm_reorg): Do not reset uses_anonymous_args.
3cb66fd7
NC
7118
7119 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7120 any geenral register.
b137f9fc 7121
5d5603e2 71222001-02-04 Bernd Schmidt <bernds@redhat.com>s
24c545ff
BS
7123
7124 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7125 the entry block.
7126
563c12b0
RH
71272002-02-04 Richard Henderson <rth@redhat.com>
7128
7129 * combine.c (force_to_mode): Remove STACK_BIAS code.
7130 (nonzero_bits): Likewise. Replace sp/fp special case with
7131 REGNO_POINTER_ALIGN.
7132
7133 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7134 (HARD_FRAME_POINTER_REGNUM): New.
7135 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7136 (FIXED_REGS, CALL_USED_REGS): Update.
7137 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7138 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7139 (HARD_REGNO_NREGS): Update for SFP.
7140 (STACK_POINTER_OFFSET): Include bias here ...
7141 (FIRST_PARM_OFFSET): ... not here.
7142 (STACK_BIAS): Remove.
7143 (INIT_EXPANDERS): New.
7144 (STARTING_FRAME_OFFSET): Do not include bias.
7145 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7146 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7147 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7148 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7149 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7150 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7151 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7152 (MUST_SAVE_REGISTER): Likewise.
7153 (sparc_flat_function_prologue): Likewise.
7154 (sparc_flat_function_epilogue): Likewise.
7155 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7156 (sparc_init_modes): SFP is GENERAL_REGS.
7157 (sparc_builtin_saveregs): SFP does not have bias applied.
7158
14691f8d
RH
71592002-02-04 Richard Henderson <rth@redhat.com>
7160
7161 * config/alpha/alpha.c (current_function_is_thunk): Don't check
7162 current_function_is_thunk.
7163 (alpha_sa_mask): Distinguish between current_function_is_thunk
7164 called from ASM_OUTPUT_MI_THUNK and not.
7165 (alpha_does_function_need_gp): Thunks always need gp.
7166 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7167 (alpha_output_mi_thunk_osf): New.
7168 * config/alpha/alpha-protos.h: Update.
7169 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7170
af702de8
RS
71712002-02-04 Richard Sandiford <rsandifo@redhat.com>
7172
7173 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7174 function types, not when they're taken away.
7175
5b1cacd8
JL
7176Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
7177
7178 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7179 CODE_LABEL and jump table when replacing a table jump with a
7180 simple jump.
7181
f3e9edff
UW
71822002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7183
7184 * config/s390/s390-protos.h (legitimize_la_operand,
7185 s390_secondary_input_reload_class, s390_plus_operand,
7186 s390_expand_plus_operand): Add prototypes.
7187
7188 config/s390/s390.c (s390_secondary_input_reload_class,
7189 s390_plus_operand, s390_expand_plus_operand): New functions.
7190
7191 (struct s390_address): New member 'pointer'.
7192 (s390_decompose_address): Compute it.
7193 (legitimate_la_operand_p): Use it.
7194 (legitimize_la_operand): New function.
7195 (movti, movdi, movdf splitters): Call it.
7196
7197 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7198 (PREDICATE_CODES): Add s390_plus_operand.
7199
7200 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7201 (la_ccclobber): Allow GENERAL_REGS as output operand.
7202
7203 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7204 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7205 (*la_64, *la_31, reload_indi, reload_insi): ... these.
7206
3c9a08ec
UW
72072002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7208
7209 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7210 register names for regular asm () construct.
7211
ac300a45
JJ
72122002-02-04 Jakub Jelinek <jakub@redhat.com>
7213
7214 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7215 registers.
7216
fa852403
JJ
72172002-02-04 Jakub Jelinek <jakub@redhat.com>
7218
7219 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7220 pat for recog.
7221
fecaac37
HP
72222002-02-04 Hartmut Penner <hpenner@de.ibm.com>
7223
831c4e87
KC
7224 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7225 constant pool to be identical by string address and index.
fecaac37 7226
10c45943
AG
72272002-02-04 Anthony Green <green@redhat.com>
7228
7229 * output.h (SECTION_OVERRIDE): Define.
7230 * varasm.c (named_section): Obey SECTION_OVERRIDE.
7231
69474c3c
JT
72322002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
7233
7234 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7235 by existing arm*-*-netbsd* (a.out) target.
7236 (ns32k-*-netbsdelf*): Likewise.
7237 (sparc-*-netbsdelf*): Likewise.
7238 (vax-*-netbsdelf*): Likewise.
7239
939a46f6 72402002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3b56934f
CF
7241
7242 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7243 headers and libobjc headers.
7244
72452002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
7246
7247 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7248 (_mingw.h): Remove duplicate include.
7249
2fd95d71
JT
72502002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
7251
7252 * config.gcc: Set cpu_type to m68k for 68010, as well.
7253 (m68010-*-netbsdelf*): New...
7254 (m68k*-*-netbsdelf*): ...targets.
7255 * config/m68k/netbsd-elf.h: New file.
7256
0ea6f6a0
KH
72572002-02-02 Kazu Hirata <kazu@hxi.com>
7258
7259 * config/h8300/h8300.c (hand_list): Move inside function_arg.
7260
cbf1b2da
KH
72612002-02-02 Kazu Hirata <kazu@hxi.com>
7262
7263 * config/h8300/h8300.c (h8_push_ops): Move inside
7264 h8300_init_once.
7265 (h8_pop_ops): Likewise.
7266 (h8_move_ops): Likewise.
7267
0869f126
KH
72682002-02-02 Kazu Hirata <kazu@hxi.com>
7269
7270 * config/h8300/h8300.c (os_task): Make it static.
7271 (monitor): Likewise.
7272 (pragma_saveall): Likewise.
7273
90e65b70
AO
72742002-02-02 Alexandre Oliva <aoliva@redhat.com>
7275
7276 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7277 constant is a valid sign-extension for Pmode.
7278
9cbcd983
KH
72792002-02-02 Kazu Hirata <kazu@hxi.com>
7280
7281 * config/h8300/h8300.c: Fix formatting.
7282
7a27efc4
KH
72832002-02-02 Kazu Hirata <kazu@hxi.com>
7284
7285 * config/h8300/h8300.md: Fix formatting.
7286
54175a44
KH
72872002-02-02 Kazu Hirata <kazu@hxi.com>
7288
7289 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7290 predicates of operands[1]. Split the patterns for each
7291 processor variant.
7292
eceb1755
KH
72932002-02-02 Kazu Hirata <kazu@hxi.com>
7294
7295 * config/h8300/h8300.md (xor patterns): Tighten the predicates
7296 of operands[1] to register_operand.
7297
0fef3fd0
NB
72982002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
7299
7300 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7301 * cpphash.c (_cpp_init_hashtable): Similarly.
7302 * cppinit.c (cpp_create_reader): Default the signed_char flag.
7303 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7304 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7305 (cpp_handle_option): Handle the new options.
7306 * cpplex.c (cpp_interpret_charconst): Use new flag.
7307 * cpplib.h (struct cpp_options): New member signed_char.
7308 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7309 (cpp_options): Handle -fsigned-char and -funsigned-char.
7310 (static_specs): Remove signed_char_spec.
7311 (do_spec1): Don't handle %c.
7312 * system.h: Poison SIGNED_CHAR_SPEC.
7313 * tradcif.y (yylex): Use flag_signed_char.
7314 * tradcpp.h (flag_signed_char): New.
7315 * tradcpp.c (flag_signed_char): New.
7316 (main): Handle new command-line options.
7317 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7318config:
7319 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7320 * avr/avr.h: Remove old comments.
7321 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7322 (CC1_SPEC): Pass -fsigned-char if -mic*.
7323 (SIGNED_CHAR_SPEC): Remove.
7324doc:
7325 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7326
0617ed52
EC
73272002-02-01 Eric Christopher <echristo@redhat.com>
7328
7329 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7330 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7331 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7332 (ASM_OUTPUT_REG_POP): Ditto.
7333
dfd48d76
NB
73342002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
7335
7336 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7337 patch.
7338
4a23409e
JJ
73392002-02-02 Jakub Jelinek <jakub@redhat.com>
7340
7341 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7342
d3c52658
JJ
73432002-02-02 Jakub Jelinek <jakub@redhat.com>
7344
7345 PR c/5304:
7346 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7347 unconditionally.
7348
02c5a3bd
JJ
73492002-02-01 Janis Johnson <janis187@us.ibm.com>
7350
7351 * cfganal.c: Include tm_p.h.
7352 (keep_with_call_p): Fix the test that determines if a register holds
7353 the return value of a call.
7354
3968de80
DD
73552002-02-01 DJ Delorie <dj@redhat.com>
7356
7357 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7358 we are given conflicting registers, switch to the other one we
7359 had allocated for us.
7360 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7361 as TImode so we know when the "other" register is available.
7362
1338ea6c
DB
73632002-02-01 David O'Brien <obrien@FreeBSD.org>
7364
7365 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7366 sparc/sparc_bi.h.
7367
f015be23
JJ
73682002-02-01 Janis Johnson <janis187@us.ibm.com>
7369
7370 * cfganal.c (keep_with_call_p): New function.
7371 (flow_call_edges_add): Prevent splitting a block between a call and
7372 a single-set instruction that should be kept in the same block.
7373
63708ffc
CR
73742002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
7375
7376 * doc/install.texi (avr): Update outdated URL.
7377
5ee4950e
AH
73782002-01-30 Andrew Haley <aph@cambridge.redhat.com>
7379
831c4e87
KC
7380 * config/stormy16/stormy16.md (pushqi): New.
7381 (popqi): New.
7382 (pushhi): New.
7383 (pophi): New.
7384 (movhi): Remove stack operands.
7385 (movqi): Likewise.
7386 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7387 nonimmediate_nonstack_operand.
7388 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7389 New.
7390 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7391 New.
5ee4950e 7392
b88c0704
JM
73932002-01-31 Jason Merrill <jason@redhat.com>
7394
7395 * Makefile.in (c-parse.c): Handle .output file.
7396 * objc/Make-lang.in (objc-parse.c): Likewise.
7397
ac282977
AO
73982002-02-01 Alexandre Oliva <aoliva@redhat.com>
7399
7400 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7401 the -me[lb] option is given. Don't output the default flag
7402 twice.
7403
bebc7e8b
ZW
74042002-01-31 Zack Weinberg <zack@codesourcery.com>
7405
7406 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7407 the primary source file; this has not been done yet.
7408 * c-decl.c (c_expand_body): Reset input_filename from
7409 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7410
5809eb5f
KH
74112002-01-31 Kazu Hirata <kazu@hxi.com>
7412
7413 * rtlanal.c (subreg_regno_offset): Do not use
7414 SUBREG_REGNO_OFFSET.
7415 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7416 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7417
8512bbd7
JM
74182002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
7419
7420 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
7421 version rather than GNATS version in --version output.
7422
74cb3cc8
RS
74232002-01-31 Richard Sandiford <rsandifo@redhat.com>
7424
7425 * ifcvt.c (noce_process_if_block): Make a copy of the destination
7426 when copying back from a temporary.
7427
874b5b14
RH
74282002-01-30 Richard Henderson <rth@redhat.com>
7429
7430 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7431 and new_dest are the same.
7432
e803a64b
RH
74332002-01-30 Richard Henderson <rth@redhat.com>
7434
89cf7be5 7435 PR opt/5076
e803a64b
RH
7436 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
7437 * rtl.c (note_insn_name): Update.
7438 * emit-rtl.c (remove_unnecessary_notes): Kill it.
7439 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
7440 to perform loop rotation.
7441 (expand_exit_loop_top_cond): New.
7442 * tree.h (expand_exit_loop_top_cond): Declare it.
7443 * c-semantics.c (genrtl_while_stmt): Use it.
7444 (genrtl_for_stmt): Likewise.
7445
0b51254d
AO
74462002-01-30 Alexandre Oliva <aoliva@redhat.com>
7447
7448 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7449 arguments to 64-bit boundaries on 64-bit ABIs.
7450
71cef493
SE
74512002-01-30 Steve Ellcey <sje@cup.hp.com>
7452
7453 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7454
6169e5fd
JM
74552002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
7456
7457 * c-decl.c (grokdeclarator): Handle type being a typedef for an
7458 invalid type.
7459
86f808dc
DB
74602002-01-30 David O'Brien <obrien@FreeBSD.org>
7461
7462 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7463 * config/sparc/sparc_bi.h: Remove file.
7464 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7465
5748ebeb
RH
74662002-01-30 Richard Henderson <rth@redhat.com>
7467
7468 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7469
20d32cc2
ZW
74702002-01-30 Zack Weinberg <zack@codesourcery.com>
7471
7472 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7473
b88c0704 74742002-01-30 Jason Merrill <jason@redhat.com>
6bb28965
JM
7475
7476 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7477 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
7478 (reg_save): Use DW_CFA_offset_extended_sf instead.
7479
7480 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
7481
37060e78
JJ
74822002-01-29 Jakub Jelinek <jakub@redhat.com>
7483
7484 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
7485 in cselib_lookup.
7486
d18dba68
AH
74872002-01-29 Aldy Hernandez <aldyh@redhat.com>
7488
bebc7e8b
ZW
7489 * rs6000.md ("*call_value_local32"): Remove constraints.
7490 ("*call_value_local64"): Same.
7491 ("*call_value_indirect_nonlocal_aix32"): Same.
7492 ("*call_value_nonlocal_aix32"): Same.
7493 ("*call_value_indirect_nonlocal_aix64"): Same.
7494 ("*call_value_nonlocal_aix64"): Same.
7495 ("*call_value_nonlocal_sysv"): Same.
d18dba68 7496
80a8aac6
RH
74972002-01-29 Richard Henderson <rth@redhat.com>
7498
7499 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
7500
12beba6f
RH
75012002-01-29 Richard Henderson <rth@redhat.com>
7502
7503 * expr.c (force_operand): Ignore flag_pic for detecting pic
7504 address loads.
7505 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
7506 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
7507 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
7508 instead of open-coded loop.
7509 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
7510 be fixed when in use.
7511
2583081e
RH
75122002-01-29 Richard Henderson <rth@redhat.com>
7513
7514 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
7515 * sched-rgn.c (propagate_deps): Update them.
7516 * sched-deps.c (sched_analyze_insn): Update them. Flush the
7517 clobbers list when either gets too long.
7518
3b8d200e
JJ
75192002-01-29 Jakub Jelinek <jakub@redhat.com>
7520
7521 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
7522 and INDEX_REGS the same as GENERAL_REGS.
7523 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7524
2d3115eb
NB
75252002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
7526
bebc7e8b 7527 * tree.c (build_nonstandard_integer_type): Correct prototype.
2d3115eb 7528
ecbe845e
UW
75292002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
7530
bebc7e8b 7531 * config/s390/s390.md (movstrsico, movstrdix_64,
ecbe845e 7532 movstrsix_31): Remove, replace by ...
bebc7e8b 7533 (movstrdi_short, movstrsi_short, movstrdi_long,
ecbe845e
UW
7534 movstrsi_long): ... these. New.
7535 (movstrdi, movstrsi): Adapt.
7536
7537 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
bebc7e8b 7538 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
ecbe845e
UW
7539 Remove unnecessary CC clobber.
7540 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
7541 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
7542
7543 (divmoddi4): Don't partially initialize TImode register.
7544
0b32fca5
GK
75452002-01-29 Geoffrey Keating <geoffk@redhat.com>
7546
7547 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
7548
08ef5437
RH
75492002-01-29 Richard Henderson <rth@redhat.com>
7550
7551 * flow.c (print_rtl_and_abort): Remove.
7552 (print_rtl_and_abort_fcn): Remove.
7553 (verify_local_live_at_start): Use dump_bb instead.
7554 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
7555 (verify_wide_reg_1): Return 2 on mode test failure.
7556
8469e54e
NB
75572002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
7558
7559 PR c/3325, c/3326, c/2511, c/3347
7560 * c-decl.c (enum_decl_context): Remove BITFIELD.
7561 (grokdeclarator): Take bitfield width as an input.
7562 Ensure bitfields are given the correct type. Perform
7563 bitfield width validation with build_bitfield_integer_type
7564 rather than waiting for finish_struct.
7565 (grok_typename, grok_typename_in_parm_context, start_decl,
7566 push_parmdecl, grokfield, start_function): Update calls to
7567 grokdeclarator.
7568 (build_bitfield_integer_type): New function.
7569 (finish_struct): Move bitfield validation to grokdeclarator
bebc7e8b 7570 and build_bitfield_integer_type.
8469e54e
NB
7571 * tree.c (build_nonstandard_integer_type): New function.
7572 * tree.h (build_nonstandard_integer_type): New prototype.
7573objc:
7574 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
7575
ffdeea47
JJ
75762002-01-29 Jakub Jelinek <jakub@redhat.com>
7577
7578 PR other/1502:
7579 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
7580 don't ignore unrecognized -W* options.
7581 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
7582 * cpplib.h (cpp_handle_option): Adjust prototype.
7583 * c-decl.c (c_decode_options): Pass 0 as last argument to
7584 cpp_handle_option.
7585
7586 PR c/2896:
7587 * gcc.c (cpp_unique_options): Split from cpp_options.
7588 (cpp_options): Source cpp_unique_options.
7589 (default_compilers): Use cpp_unique_options instead of cpp_options
7590 when used together with cc1_options.
7591 (static_specs): Add cpp_unique_options.
7592 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
7593 when used together with cc1_options.
7594
1a275226
KH
75952002-01-29 Kazu Hirata <kazu@hxi.com>
7596
7597 * config/h8300/h8300-protos.h: Update the prototype of
7598 output_a_shift.
7599 * config/h8300/h8300.c (output_a_shift): Remove an unused
7600 argument 'insn'. Remove redundant code.
7601 * config/h8300/h8300.md: Adust to the new prototype of
7602 output_a_shift.
7603
a11d9dfc
KH
76042002-01-29 Kazu Hirata <kazu@hxi.com>
7605
7606 * config/h8300/h8300-protos.h: Update the prototypes of
7607 emit_a_rotate and expand_a_rotate.
7608 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
7609 first argument to 'enum rtx_code'.
7610 (expand_a_rotate): Likewise.
7611
871f73e3
KH
76122002-01-28 Kazu Hirata <kazu@hxi.com>
7613
7614 * config/h8300/h8300-protos.h: Update the prototype of
7615 output_simode_bld.
7616 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
7617 'log2'.
7618 * config/h8300/h8300.md: Adjust to the new prototype.
7619
5fc4b751
KH
76202002-01-28 Kazu Hirata <kazu@hxi.com>
7621
7622 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
7623 redundant code.
7624
2d67bd7b
JDA
76252002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7626
7627 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
7628 is a fixed register before returning pic_offset_table_rtx.
7629 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
7630 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
7631
5a852b3e
JM
76322002-01-28 Jason Merrill <jason@redhat.com>
7633
6bb28965 7634 * dwarf2.h: Sync with src version.
5a852b3e 7635
3bca17dd
PK
76362002-01-28 Paul Koning <pkoning@equallogic.com>
7637
7638 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
7639 BT_FN_VOID_PTR_VAR.
7640 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
7641 * doc/extend.texi (__builtin_prefetch): Update documentation:
7642 first argument is now const void ptr.
7643
7dc3f8c0
KH
76442002-01-28 Kazu Hirata <kazu@hxi.com>
7645
7646 * config/h8300/h8300-protos.h: Remove an unused prototype.
7647
e83cb5f0
RZ
76482002-01-28 Roman Zippel <zippel@linux-m68k.org>
7649
7650 * toplev.c (lang_independent_init): Round up identifier size.
7651
5721cd84
RE
76522002-01-28 Richard Earnshaw <rearnsha@arm.com>
7653
7654 * config.gcc: Revert previous change.
7655
d534119e
AP
76562002-01-28 Andris Pavenis <pavenis@latnet.lv>
7657
7658 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
7659
5a721dab
RE
76602002-01-28 Richard Earnshaw <rearnsha@arm.com>
7661
7662 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
7663 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
7664 other non-elf netbsd config frags.
7665 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
7666 collect2 will does that.
7667 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
7668 shared-lib frobbing will work.
7669
da1775d6
KH
76702002-01-28 Kazu Hirata <kazu@hxi.com>
7671
7672 * config/h8300/h8300.h: Fix formatting.
7673 * config/h8300/h8300.md: Likewise.
7674
8f2e963b
LR
76752002-01-28 Loren J. Rittle <ljrittle@acm.org>
7676
7677 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
7678 the old, removed AAA_standards fix.
7679 * fixinc/fixincl.x: Rebuilt.
7680
fdae5767
HPN
76812002-01-28 Hans-Peter Nilsson <hp@axis.com>
7682
7683 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
7684 atexit call in crtbegin, hooked in after call to frame_dummy;
7685 register EH before registering __fini__start.
7686
2a2ecb63
AH
76872002-01-28 Aldy Hernandez <aldyh@redhat.com>
7688
7689 * config/rs6000/altivec.h: Remove spurious semicolons.
7690
8ed43adf
KH
76912002-01-27 Kazu Hirata <kazu@hxi.com>
7692
7693 * config/h8300/h8300.md: Replace dead bit extraction patterns
7694 with ones that work.
7695
917afb0c
RK
7696Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7697
7698 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
7699 if not STRICT_ALIGNMENT.
7700 * rtl.h (MEM_ALIGN): Likewise.
7701
f70a54cb
CR
77022002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
7703
7704 * doc/invoke.texi (-fdump-translation-unit): Revert this
7705 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
7706
d8fd4914
KH
77072002-01-27 Kazu Hirata <kazu@hxi.com>
7708
7709 * config/h8300/h8300.md (define_constants): New.
7710 (anonymous patterns) Use defined constants appropriately.
7711
15e0e275
KH
77122002-01-27 Kazu Hirata <kazu@hxi.com>
7713
7714 * config/h8300/h8300.c (function_arg): Remove redundant code.
7715
37a0f8a5
RH
77162002-01-26 Richard Henderson <rth@redhat.com>
7717
7718 * sched-deps.c (reg_pending_uses_head): New.
7719 (reg_pending_barrier): Rename from reg_pending_sets_all.
7720 (find_insn_list): Don't mark inline.
7721 (find_insn_mem_list): Remove.
7722 (add_dependence_list, add_dependence_list_and_free): New.
7723 (flush_pending_lists): Replace only_write param with separate
7724 for_read and for_write parameters. Update all callers. Use
7725 add_dependence_list_and_free.
7726 (sched_analyze_1): Do not add reg dependencies here; just set
7727 the pending bits. Use add_dependence_list.
7728 (sched_analyze_2): Likewise.
7729 (sched_analyze_insn): Replace schedule_barrier_found with
7730 reg_pending_barrier. Add all dependencies for pending reg
7731 uses, sets, and clobbers.
7732 (sched_analyze): Don't add reg dependencies for calls, just
7733 set pending bits. Use regs_invalidated_by_call. Treat
7734 sched_before_next_call as a normal list, not a fake insn.
7735 (init_deps): No funny init for sched_before_next_call.
7736 (free_deps): Free pending mems lists. Don't zero reg_last.
7737 (init_deps_global): Init reg_pending_uses.
7738 (finish_deps_global): Free it.
7739 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
7740 (find_insn_mem_list): Remove.
7741 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
7742 (propagate_deps): Use them. Zero temp mem lists.
7743
cea3bd3e
RH
77442002-01-26 Richard Henderson <rth@redhat.com>
7745
7746 * Makefile.in (CRTSTUFF_CFLAGS): New.
7747 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
7748 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
7749 crtstuff.c instead of alpha assembly version.
7750 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
7751 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
7752 not FORCE_{INIT,FINI}_SECTION_ALIGN.
7753 (__do_global_dtors_aux): Mark used.
7754 (frame_dummy, __do_global_ctors_aux): Mark used.
7755 (fini_dummy, init_dummy): Remove.
7756
7757 * config/alpha/crtbegin.asm: Remove file.
7758 * config/alpha/crtend.asm: Remove file.
7759 * config/alpha/t-crtbe: Remove file.
7760 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
7761 (LINK_EH_SPEC): New.
7762
7763 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
7764 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
7765 calling constructors.
7766 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
7767
7768 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
7769 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
7770 CRT_END_INIT_DUMMY hack.
7771 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
7772 FORCE_{INIT,FINI}_SECTION_ALIGN.
7773
7774 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
7775 FORCE_{INIT,FINI}_SECTION_ALIGN.
7776
7777 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
7778 invocation sequence.
7779 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
7780
7781 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
7782 (FORCE_CODE_SECTION_ALIGN): New.
7783
60ffa0e5
RH
77842002-01-26 Richard Henderson <rth@redhat.com>
7785
7786 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
7787
61334ebe
RH
77882002-01-26 Richard Henderson <rth@redhat.com>
7789
7790 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
7791 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
7792
1d788fb6
KH
77932002-01-26 Kazu Hirata <kazu@hxi.com>
7794
7795 * config/h8300/h8300.md: Remove bit extraction patterns that
7796 cannot be triggered.
7797 Restrict each bit extraction pattern to a variant on which the
7798 pattern is tested.
7799
87611f88
JM
78002002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
7801
7802 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
7803
cd74ec59
KH
78042002-01-26 Kazu Hirata <kazu@hxi.com>
7805
7806 * config/h8300/h8300.md: Remove bit test patterns that cannot
7807 be triggered.
7808 Restrict each bit test pattern to a variant on which the
7809 pattern is tested.
7810
93051e0f
KG
78112002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7812
7813 * builtins.c (expand_builtin_strncat): Remove redundant check for
7814 INTEGER_CST.
7815
216c995f
DB
78162002-01-25 David O'Brien <obrien@FreeBSD.org>
7817
7818 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
7819 default setting.
7820 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
7821 existing setting.
7822
33c7f925
GK
78232002-01-25 Geoffrey Keating <geoffk@redhat.com>
7824
7825 * dbxout.c (dbxout_init): Use assemble_name rather than just
7826 stripping off the first character.
7827 (dbxout_source_file): Likewise.
7828
6cd444b4
DD
78292002-01-25 DJ Delorie <dj@redhat.com>
7830
7831 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
7832 using rtx_equal_p, not by comparing pointers.
7833
751551d5
SE
78342002-01-25 Steve Ellcey <sje@cup.hp.com>
7835
7836 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
7837 for PIC_OFFSET_TABLE_REGNUM.
7838 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
7839
e564e618
DB
78402002-01-25 David O'Brien <obrien@FreeBSD.org>
7841
7842 * config.gcc (x86_64-*-freebsd*): New target.
7843 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
7844 value.
7845 (i[34567]86-*-freebsd*): Don't include svr4.h.
7846 * config/i386/freebsd64.h: New file.
7847
ff3aaf17
DR
78482002-01-25 Douglas B Rupp <rupp@gnat.com>
7849
4857d29d
DR
7850 * config/alpha/x-vms (version): Make static.
7851
7852 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
7853 in previous checkin.
7854
ff3aaf17
DR
7855 * Makefile.in (install-headers-cp): New target.
7856 * config.gcc (alpha-dec-*vms*): Install headers with
7857 install-headers-cp
7858
48d79c43
JH
7859Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
7860
7861 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
7862 avoid it's copies.
7863
995b5904
RK
7864Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7865
7866 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
7867 of compare_tree_int.
7868 (expand_builtin_strncat): Likewise.
7869 * c-decl.c (finish_struct): Use tree_low_cst.
7870 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
7871 * tree.c (compare_tree_int): Likewise.
7872
75eefe3f
UW
78732002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
7874
7875 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
7876 adjustments even if they are implemented by more than two insns.
7877
5a133afd
JH
7878Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
7879
995b5904 7880 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5a133afd
JH
7881 * df.h (struct ref): Kill B.
7882 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
7883
7884 * basic-block.h (PROP_EQUAL_NOTES): New flag.
7885 * flow.c (propagate_one_insn): Use it.
7886 (mark_used_regs): Handle NIL.
7887
ead39bdf 78882002-01-25 Geoffrey Keating <geoffk@redhat.com>
3d8dd3c0
GK
7889
7890 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
7891 to help folding.
7892
01a2ccd0
DE
78932002-01-25 David Edelsohn <edelsohn@gnu.org>
7894
7895 * rs6000.md (prefetch): Make address V4SI mode so that the address
7896 is restricted to legitimate form for instruction.
7897
fd29f6ea
BW
78982002-01-25 Bob Wilson <bob.wilson@acm.org>
7899
7900 * doc/install.texi (xtensa-*-elf): New target.
7901 (xtensa-*-linux*): New target.
7902 * doc/contrib.texi: Add myself.
7903
55492b32
NC
79042002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
7905
7906 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
7907 purpose register to hold an SImode (or smaller) value.
7908
72c7c913
JJ
79092002-01-25 Jakub Jelinek <jakub@redhat.com>
7910
7911 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
7912 registry only.
7913 * crtstuff.c: Likewise.
7914
c4df4ceb
KH
79152002-01-25 Kazu Hirata <kazu@hxi.com>
7916
7917 * config/h8300/h8300.md (negation patterns): Tighten
7918 predicates to register_operand.
7919
70e531f5
AH
79202002-01-24 Aldy Hernandez <aldyh@redhat.com>
7921
3bca17dd
PK
7922 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
7923 mode, not Pmode.
70e531f5 7924
3bca17dd 7925 * builtins.c (expand_builtin_prefetch): Same.
70e531f5 7926
a4f76ef9
AO
79272002-01-24 Alexandre Oliva <aoliva@redhat.com>
7928
7929 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
7930 modes.
7931
9bf25b09
KH
79322002-01-24 Kazu Hirata <kazu@hxi.com>
7933
7934 * config/h8300/h8300.c (print_operand): Remove support for
7935 operand character 'A'.
7936 * config/h8300/h8300.md (three anonymous patterns): Replace
7937 operand character 'A' with either 'T' or 'S'.
7938
974af6a5
KH
79392002-01-24 Kazu Hirata <kazu@hxi.com>
7940
7941 * config/h8300/h8300.c (print_operand): Remove support for
7942 operand character 'U'.
7943
7a5bb7b8
AP
79442002-01-24 Andris Pavenis <pavenis@latnet.lv>
7945
3bca17dd 7946 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7a5bb7b8 7947
92a4639e
NC
79482002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
7949
7950 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
7951 values to be assigned to the stack pointer.
7952
467cb2da
HP
79532002-01-14 Hartmut Penner <hpenner@de.ibm.com>
7954
bebc7e8b 7955 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
467cb2da
HP
7956 to const_double needs to be done right for big-endian systems.
7957
3b6cb920
JM
79582002-01-24 Jason Merrill <jason@redhat.com>
7959
b08dd119 7960 PR c++/2432
3b6cb920
JM
7961 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
7962 to can_throw_internal.
7963
f3077311
RH
79642002-01-23 Richard Henderson <rth@redhat.com>
7965
7966 * fold-const.c (fold): Change UINT_MAX test to check vs precision
7967 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
7968
e1d71275
AO
79692002-01-24 Alexandre Oliva <aoliva@redhat.com>
7970
7971 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
7972 (symGOT2reg): Use them, then set as GOT value as unchanging.
7973 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
7974 as a temporary, if possible.
7975 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
7976 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
7977
dc271dbe
KH
79782002-01-23 Kazu Hirata <kazu@hxi.com>
7979
7980 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
7981 accept to accept 0x80 as operands[2].
7982
1a9017f9
AO
79832002-01-24 Alexandre Oliva <aoliva@redhat.com>
7984
7985 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
7986
6932f033
RH
79872002-01-23 Richard Henderson <rth@redhat.com>
7988
7989 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
7990
709619d9
AH
79912002-01-23 Aldy Hernandez <aldyh@redhat.com>
7992
3bca17dd
PK
7993 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
7994 (parmlist_or_identifiers_1): Verify that only a parmlist follows
7995 an attribute.
709619d9 7996
3d709fd3
RH
79972002-01-23 Richard Henderson <rth@redhat.com>
7998
7999 * expr.c (move_by_pieces_1): Extend size before negation.
8000
88a446c0
RH
8001 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8002 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8003 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8004 * config/m68k/t-m68kelf: Likewise.
8005
03984308
BW
80062002-01-23 Bob Wilson <bob.wilson@acm.org>
8007
8008 * config/xtensa/elf.h: New file.
8009 * config/xtensa/lib1funcs.asm: New file.
8010 * config/xtensa/lib2funcs.S: New file.
8011 * config/xtensa/linux.h: New file.
8012 * config/xtensa/t-xtensa: New file.
8013 * config/xtensa/xtensa-config.h: New file.
8014 * config/xtensa/xtensa-protos.h: New file.
8015 * config/xtensa/xtensa.c: New file.
8016 * config/xtensa/xtensa.h: New file.
8017 * config/xtensa/xtensa.md: New file.
8018 * config.gcc (xtensa-*-elf*): New target.
8019 (xtensa-*-linux*): New target.
8020 * cse.c (canon_hash): Compare rtx pointers instead of register
8021 numbers. This is required for the Xtensa port.
8022 * integrate.c (copy_insn_list): Handle case where the static
8023 chain is in memory and the memory address has to be copied to
8024 a register.
8025 * doc/invoke.texi (Option Summary): Add Xtensa options.
8026 (Xtensa Options): New node.
8027 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8028
c3d5c3fa
ZW
80292002-01-23 Zack Weinberg <zack@codesourcery.com>
8030
a63bea75
ZW
8031 * diagnostic.c (internal_error): Do ICE suppression only
8032 when ENABLE_CHECKING is not defined.
8033
c3d5c3fa
ZW
8034 * c-typeck.c (require_complete_type): Return error_mark_node
8035 if type is error_mark_node.
8036
1398974c
JJ
80372002-01-23 Janis Johnson <janis187@us.ibm.com>
8038
8039 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8040 -Os and issue a warning.
8041
807633e5
ZW
80422002-01-23 Zack Weinberg <zack@codesourcery.com>
8043
8044 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8045 current (lack of) need for host configuration by hand.
8046
8047 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8048 references. Documentation of some target macros moved from
8049 hostconfig.texi to tm.texi.
8050
cf8002d0
WC
80512002-01-23 Will Cohen <wcohen@redhat.com>
8052
8053 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8054 defined.
8055
d1e76310
KH
80562002-01-23 Kazu Hirata <kazu@hxi.com>
8057
8058 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8059 operand[3].
8060
b2115575
JM
80612002-01-23 Jason Merrill <jason@redhat.com>
8062
f893c16e
JM
8063 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8064
b2115575
JM
8065 * function.c (assign_parms): Don't put args of inline functions
8066 into registers when not optimizing.
8067
6bacc7b0
NC
80682002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
8069
8070 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8071 (prologue_use): New pattern.
8072 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8073 preference to gen_rtx_USE.
8074 (thumb_expand_prologue): Use gen_prologue_use in preference to
8075 gen_rtx_USE.
8076 (thumb_expand_epilogue): Use gen_prologue_use in preference to
8077 gen_rtx_USE.
8078
a415f7bc
HPN
80792002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
8080
8081 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8082
5372b3fb
NB
80832002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
8084
8085 PR c/3504
8086 * doc/extend.texi: Correct documentation of __alignof__.
8087
bd571ffc
ZW
80882002-01-22 Zack Weinberg <zack@codesourcery.com>
8089
8090 * params.h: Rename arguments of DEFPARAM so that it will be
8091 recognized as a translation keyword.
8092
333c8841
AH
80932002-01-22 Aldy Hernandez <aldyh@redhat.com>
8094
bd571ffc
ZW
8095 * extend.texi: Document altivec functions.
8096 Fix N-bit adjectives in X86 builtin documentation.
333c8841 8097
38979c65
AO
80982002-01-22 Alexandre Oliva <aoliva@redhat.com>
8099
8100 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8101 auto_inc_dec values.
8102
7458a9f0
RE
81032002-01-22 Richard Earnshaw <rearnsha@arm.com>
8104
8105 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8106 after backslash.
8107 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8108
129bd0c4
AO
81092002-01-22 Alexandre Oliva <aoliva@redhat.com>
8110
8111 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8112
8b9b74a9
RH
81132002-01-22 Richard Henderson <rth@redhat.com>
8114
8115 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8116 copy_insn not copy_rtx.
8117
d0c9db30
AM
81182002-01-23 Alan Modra <amodra@bigpond.net.au>
8119
8120 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8121 "nonzero" as that might add "1" bits. Ensure "constop" is
8122 properly sign extened.
8123 (force_to_mode): Tweak for sign extended constop.
8124
1e7e480e
RH
81252002-01-22 Richard Henderson <rth@redhat.com>
8126
8127 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8128 for_each_rtx instead of assuming we're already looking at the MEM.
8129 (split_small_symbolic_mem_operand): Likewise.
8130 * config/alpha/alpha.h (PREDICATE_CODES): Update.
8131 * config/alpha/alpha.md (small symbolic memory splitters): Update.
8132
81332002-01-22 Richard Henderson <rth@redhat.com>
2e271932
RH
8134
8135 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8136 sequence number for the literal.
8137 (divmoddi_internal_er): Likewise.
8138
b7f2fb96
CR
81392002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
8140
8141 PR java/4972
8142 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8143 in LIBICONV variable.
8144 * configure: Regenerated.
8145
f66a0046
KW
81462002-01-22 Krister Walfridsson <cato@df.lth.se>
8147
8148 * dependence.c (build_def_use): Remove array_idx.
8149
e3b0efd1
KW
8150 * dwarfout.c (last_filename): Remove.
8151 (output_compile_unit_die): Remove last_filename.
8152
d8086cbb
RS
81532002-01-22 Roger Sayle <roger@eyesopen.com>
8154 Richard Henderson <rth@redhat.com>
8155
8156 PR opt/3640
8157 * fold-const.c (fold): Optimize unsigned comparisons against
8158 UINT_MAX (and similar unsigned constants).
8159
e8d52ba0
JJ
81602002-01-22 Janis Johnson <janis187@us.ibm.com>
8161
d8086cbb 8162 * Makefile.in (loop.o): Depend on OPTABS_H.
1398974c 8163 * loop.c (emit_prefetch_instructions): Check the prefetch operand
d8086cbb 8164 against the predicate.
11303d15 8165
e8d52ba0
JJ
8166 PR target/5379
8167 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8168 for the address operand.
8169
cc7b420e
RH
81702002-01-22 Richard Henderson <rth@redhat.com>
8171
8172 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8173
816e265a
CR
81742002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
8175
8176 PR other/5450
cc7b420e
RH
8177 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8178 preprocessor flags.
816e265a 8179
7c884404
JT
81802002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
8181
8182 * config.gcc (x86_64-*-netbsd*): New target.
8183 * config/i386/netbsd64.h: New file.
8184
2b672c08
AH
81852002-01-22 Aldy Hernandez <aldyh@redhat.com>
8186
d8086cbb 8187 * regrename.c (kill_value): Fix typo.
2b672c08
AH
8188
81892002-01-22 Aldy Hernandez <aldyh@redhat.com>
8190
d8086cbb 8191 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2b672c08 8192
d8086cbb 8193 * config/rs6000/rs6000.h: Same.
2b672c08 8194
d8086cbb
RS
8195 * function.c (instantiate_virtual_regs): Remove
8196 STARTING_FRAME_PHASE.
8197 (assign_stack_local_1): Same.
8198 Calculate frame phase.
2b672c08 8199
4b02997f
NC
82002002-01-22 Nick Clifton <nickc@redhat.com>
8201
8202 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8203 variable declaration to outer scope in order to simplify
8204 future extensions.
8205 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8206 arm_hard_regno_mode_ok.
8207 * config/arm/arm-protos.h: Add a prototype for
8208 arm_hard_regno_mode_ok.
8209 * config/arm/arm.c (soft_df_operand): Remove now redundant
8210 check for DImode values using IP_REGNUM.
8211 (nonimmediate_soft_df_operand): Remove now redundant check for
8212 DImode values using IP_REGNUM.
8213 (arm_hard_regno_mode_ok): New function. New check: make sure
8214 that DImode values are not stored in IP_REGNUM.
c14a3a45
NC
8215
8216 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8217 note with a USE.
8218 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8219
8a827ab2
JM
82202002-01-22 Jason Merrill <jason@redhat.com>
8221
8222 * c-semantics.c (genrtl_compound_stmt): Only check nesting
8223 consistency if this COMPOUND_STMT is scoped.
8224
cf403648
KH
82252002-01-22 Kazu Hirata <kazu@hxi.com>
8226
8227 * predict.c: Fix formatting.
8228 * print-tree.c: Likewise.
8229 * protoize.c: Likewise.
8230 * real.h: Likewise.
8231 * rtl.h: Likewise.
8232 * sbitmap.h: Likewise.
8233 * scan.c: Likewise.
8234 * sched-deps.c: Likewise.
8235 * sched-vis.c: Likewise.
8236 * sdbout.c: Likewise.
8237 * sibcall.c: Likewise.
8238 * ssa.c: Likewise.
8239 * ssa-ccp.c: Likewise.
8240 * ssa-dce.c: Likewise.
8241 * stmt.c: Likewise.
8242 * stor-layout.c: Likewise.
8243 * system.h: Likewise.
8244
aea9695c
RK
8245Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8246
a8765ae7
RK
8247 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8248 if fits in bounds of base type.
8249
aea9695c
RK
8250 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8251 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8252 (add_bound_info, default): If can't find a context, make a
8253 SAVE_EXPR.
8254 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8255
58bf601b
HPN
82562002-01-22 Hans-Peter Nilsson <hp@axis.com>
8257
8258 * c-typeck.c (parser_build_binary_op): If result from
8259 build_binary_op is ERROR_MARK just return error_mark_node without
8260 further processing.
8261
f982f805
JT
82622002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
8263
8264 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8265 Split a.out-specific bits into...
8266 * config/netbsd-aout.h: ...this.
8267 * config/netbsd-elf.h: New file.
8268 * config/alpha/netbsd-elf.h: Remove.
8269 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8270 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
bd571ffc 8271 (STARTFILE_SPEC): Remove redundant definition.
f982f805
JT
8272 (ENDFILE_SPEC): Likewise.
8273 (LINK_SPEC): Likewise.
8274 (CPP_SPEC): Likewise.
8275 (ASM_SPEC): Likewise.
8276 (LIB_SPEC): Likewise.
8277 (SWITCH_TAKES_ARG): Likewise.
8278 (TARGET_MEM_FUNCTIONS): Likewise.
8279 (CPP_PREDEFINES): Redefine.
8280 (ASM_FINAL_SPEC): Remove redefinition.
8281 (ASM_COMMENT_START): Redefine.
8282 (FUNCTION_PROFILER): Define.
8283 (TARGET_VERSION): Redefine.
8284 Comment and formatting cleanup.
8285 * config/i386/netbsd.h: Include <netbsd-aout.h>.
8286 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8287 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8288 big- or little-endian.
8289 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8290 * config.gcc (*-*-netbsd*): Add definitions common to all
8291 NetBSD configs.
8292 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8293 gnu_ld definitions. Add netbsd-elf.h to and remove
8294 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
8295 tmake_file, and don't lose previous tmake_file contents.
8296 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8297 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8298 gnu_ld definitions. Add netbsd-elf.h to tm_file.
8299 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8300 (mipsel-*-netbsd*): Rename this to...
8301 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
8302 mips/little.h to tm_file for mips*el-*.
8303 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8304 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8305 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8306
2e396476
JDA
83072002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
8308
8309 * pa-protos.h (reg_before_reload_operand): New function prototype.
8310 * pa.c (reg_before_reload_operand): New function implementation.
8311 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
8312 contraints to "*m".
8313
3b5708e7
FS
83142002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8315
8316 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8317
85e79f96
JDA
83182002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
8319
8320 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8321 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8322 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8323 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8324 (ENDFILE_SPEC): Undefine.
8325 (STARTFILE_SPEC): Redefine for PA.
8326
38abadee
FS
83272002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8328
8329 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8330
94f1d97c
DJ
83312002-01-21 Daniel Jacobowitz <drow@mvista.com>
8332
8333 * config.gcc: Add entries to supported PowerPC --with-cpu
8334 types.
8335
0333394e
JJ
83362002-01-21 Jakub Jelinek <jakub@redhat.com>
8337
8338 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8339 true for 64-bit mode only SSE registers in 32-bit mode.
8340
e9d1b155
KH
83412002-01-21 Kazu Hirata <kazu@hxi.com>
8342
8343 * unwind-dw2.c: Fix formatting.
8344 * unwind-dw2-fde.c: Likewise.
8345 * unwind-dw2-fde.h: Likewise.
8346 * unwind-pe.h: Likewise.
8347 * varasm.c: Likewise.
8348 * varray.h: Likewise.
8349
07338cf8
HPN
83502002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
8351
8352 Remove workaround for register stack overwrite bug in mmix.
8353 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8354 support for TARGET_REG_STACK_FILL_BUG.
8355 * config/mmix/mmix.h: Remove member has_call_without_parameters.
8356 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8357 Delete.
8358 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8359 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8360 -mno-reg-stack-fill-bug-workaround.
8361 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8362 machine member has_call_without_parameters.
8363 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8364 -mreg-stack-fill-bug-workaround and
8365 -mno-reg-stack-fill-bug-workaround.
8366 (MMIX Options): Ditto.
8367
7192cbf1
KH
83682002-01-21 Kazu Hirata <kazu@hxi.com>
8369
8370 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8371 as appropriate.
8372 Remove redundant code.
8373
d1552d7b
JM
83742002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
8375
8376 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8377 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8378 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8379 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8380 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8381 out target macro definitions and non-target-specific comments
8382 mostly taken from old versions of the manual.
8383
ed168e45
KH
83842002-01-20 Kazu Hirata <kazu@hxi.com>
8385
8386 * config/h8300/h8300.h: Fix comment formatting.
8387 * config/ia64/aix.h: Likewise.
8388 * config/ia64/ia64-protos.h: Likewise.
8389 * config/ia64/ia64.c: Likewise.
8390 * config/ia64/ia64.h: Likewise.
8391 * config/ia64/ia64intrin.h: Likewise.
8392 * config/ia64/linux.h: Likewise.
8393 * config/ia64/unwind-aix.c: Likewise.
8394 * config/ia64/unwind-ia64.c: Likewise.
8395
005e3e05
KH
83962002-01-20 Kazu Hirata <kazu@hxi.com>
8397
8398 * config/h8300/h8300.c: Revise comments about shift code.
8399
64bead4c
KH
84002002-01-20 Kazu Hirata <kazu@hxi.com>
8401
8402 * config/h8300/h8300.c (function_arg): Update a comment.
8403
ed863595
KH
84042002-01-20 Kazu Hirata <kazu@hxi.com>
8405
8406 * config/h8300/h8300.md: Update the comments at the beginning
8407 of the file.
8408
5904dc87
KH
84092002-01-20 Kazu Hirata <kazu@hxi.com>
8410
8411 * config/i370/i370.c: Fix comment formatting.
8412 * config/i370/i370.h: Likewise.
8413 * config/i370/i370.md: Likewise.
8414 * config/i370/linux.h: Likewise.
8415
9702143f
RK
8416Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8417
cbafacd1
RK
8418 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8419
9702143f
RK
8420 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8421 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8422 in incomplete case.
8423
6b6996b8
GS
84242002-01-20 Graham Stott <grahams@redhat.com>
8425
8426 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8427
eab854f6
JDA
84282002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
8429
8430 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8431
5b029315
TR
84322002-01-19 Tom Rix <trix@redhat.com>
8433
8434 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
8435
1d690052
AH
84362002-01-18 Aldy Hernandez <aldyh@redhat.com>
8437
d8086cbb 8438 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
1d690052 8439
d8086cbb
RS
8440 * function.c (assign_stack_local_1): Adjust x_frame_offset with
8441 STARTING_FRAME_PHASE.
8442 (STARTING_FRAME_PHASE): New.
8443 (instantiate_virtual_regs): Check saneness of
8444 STARTING_FRAME_PHASE.
1d690052 8445
d8086cbb 8446 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
1d690052 8447
4dd8c093
AO
84482002-01-19 Alexandre Oliva <aoliva@redhat.com>
8449
8450 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8451
6f2a28d7
CR
84522002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
8453
8454 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8455 be used for bootstrapping GCC 3.0.
8456
8763a465
KH
84572002-01-18 Kazu Hirata <kazu@hxi.com>
8458
8459 * config/h8300/h8300.md: Fix an insn length.
8460
3ef42a0c
KH
84612002-01-18 Kazu Hirata <kazu@hxi.com>
8462
8463 * bitmap.h: Fix comment formatting.
8464 * combine.c: Likewise.
8465 * cppfiles.c: Likewise.
8466 * c-pragma.h: Likewise.
8467 * c-typeck.c: Likewise.
8468 * df.c: Likewise.
8469 * dwarf2out.c: Likewise.
8470 * function.c: Likewise.
8471 * gcc.c: Likewise.
8472 * genattrtab.c: Likewise.
8473 * gthr-win32.h: Likewise.
8474 * haifa-sched.c: Likewise.
8475 * predict.c: Likewise.
8476 * rtlanal.c: Likewise.
8477 * rtl.h: Likewise.
8478 * unwind-dw2-fde.h: Likewise.
8479 * unwind-pe.h: Likewise.
8480 * vmsdbgout.c: Likewise.
8481
dd4dc3cd
RK
8482Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8483
8484 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
8485 if type_required and passed decl.
8486
5fb4cf24
AH
84872002-01-17 Aldy Hernandez <aldyh@redhat.com>
8488
d8086cbb
RS
8489 * config.gcc (cpu_type): Include altivec.h in powerpc
8490 extra_headers.
8491 Same for darwin.
5fb4cf24 8492
d8086cbb 8493 * config/rs6000/altivec.h: New.
5fb4cf24 8494
2705baf5
DE
84952002-01-17 David Edelsohn <edelsohn@gnu.org>
8496
8497 * doc/install.texi (*-ibm-aix*): Update assembler and exception
8498 handling information.
8499 * doc/trouble.texi (Interoperation): Add libstdc++ information
8500 for AIX.
8501 (Misunderstandings): Add template instantiation and static template
8502 member information for AIX.
8503
dbd680e1
JM
85042002-01-17 Jason Merrill <jason@redhat.com>
8505
821adc5e
JM
8506 * dbxout.c (dbxout_type): Support const and volatile.
8507
dbd680e1
JM
8508 * except.c (add_partial_entry): Remove backwards compatibility code.
8509 (end_protect_partials): Likewise.
8510
d0e82870
JJ
85112002-01-17 Jakub Jelinek <jakub@redhat.com>
8512
8513 * config/ia64/ia64.md (prologue_use): New.
8514 * config/ia64/ia64.c (ia64_expand_prologue): Use
8515 gen_prologue_use instead of gen_rtx_USE.
8516 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
8517 as CODE_FOR_pred_rel_mutex.
8518 (ia64_sched_reorder2): Likewise.
8519
f9f45c65
EC
85202002-01-16 Eric Christopher <echristo@redhat.com>
8521
8522 * config/mips/r3900.h: Reformat.
8523 (SUBTARGET_CPP_SIZE_SPEC): Remove.
8524 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8525 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
8526 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
8527 * config/mips/t-elf: Remove mips3 multilib.
8528
c66c8b0e
L
85292002-01-16 H.J. Lu <hjl@gnu.org>
8530
8531 * config/mips/linux.h: Include "mips/abi64.h".
8532
5f083b72
L
85332002-01-16 H.J. Lu <hjl@gnu.org>
8534
8535 * config/mips/t-linux: New.
8536
8537 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
8538
8539 * config/mips/linux.h: Don't include "gofast.h".
8540 (INIT_SUBTARGET_OPTABS): Removed.
8541
af3c90a6
KH
85422002-01-16 Kazu Hirata <kazu@hxi.com>
8543
8544 * config/h8300/h8300-protos.h: Replace emit_a_shift with
8545 output_a_shift.
8546 * config/h8300/h8300.c: Likewise.
8547 * config/h8300/h8300.md: Likewise.
8548
a1bf0a16
KH
85492002-01-16 Kazu Hirata <kazu@hxi.com>
8550
8551 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
8552 spaces after an opcode name.
8553 (pushqi1_h8300hs): Likewise.
8554 (pushhi1_h8300hs): Likewise.
8555
88ab0d1c
KH
85562002-01-16 Kazu Hirata <kazu@hxi.com>
8557
8558 * doc/extend.texi: Replace "option" with "attribute"
8559 appropriately.
8560
51c561e3
JJ
85612002-01-16 Jakub Jelinek <jakub@redhat.com>
8562
8563 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
8564 (and:DI () (const_int -8)).
8565 (split_small_symbolic_mem_operand): Split
8566 (mem (and:DI () (const_int -8)).
8567
b8c1a6b8
JJ
85682002-01-16 Jakub Jelinek <jakub@redhat.com>
8569
8570 PR target/5309:
d8086cbb 8571 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
b8c1a6b8
JJ
8572 same way as TYPE_IMUL.
8573 (ultrasparc_sched_reorder): Likewise.
8574 * config/sparc/sparc.md (type): Add comment to update
8575 ultrasparc_sched_reorder when making changes.
8576
1e4e4df2
KH
85772002-01-16 Kazu Hirata <kazu@hxi.com>
8578
8579 * doc/invoke.texi: Change the dump file name of block
8580 reordering pass from 28.bbro to 29.bbro.
8581 Mention -dk option.
8582
14d920c0
JH
8583Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
8584
8585 * i386.md (minsf splitter): Fix pasto.
8586
2e99323f
NC
85872002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8588
8589 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
8590 to frame pointer initialisation instruction.
8591 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
8592 initialisation instruction.
ab8081c1
NC
8593 (soft_df_operand): Do not accept the IP register.
8594 (nonimmediate_soft_df_operand): Do not accept the IP register.
2e99323f 8595
c4031a04
JJ
85962002-01-16 Jakub Jelinek <jakub@redhat.com>
8597
8598 PR target/5357:
8599 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
8600 MASK_V8 being both set.
8601
44b8152b
UW
86022002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
8603
8604 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
8605 insn for GOT register; add REG_MAYBE_DEAD notes instead.
8606 config/s390/s390.md (call, call_value): Add GOT register to
8607 CALL_INSN_FUNCTION_USAGE where needed.
8608 (call_exp, call_value_exp): New.
8609
1d6e90ac
NC
86102002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8611
8612 * config/arm/arm.c: General formatting tidy up.
8613
86142002-01-16 Graham Stott <grahams@redhat.com>
60e8b9f0
GS
8615
8616 * calls.c (try_to_integrate): Use "(size_t)" intermediate
8617 cast and when casting an integer literal to "rtx" pointer.
8618 (expand_call): Likewise.
8619 * flow.c (try_pre_increment): Likewise.
8620 (find_use_as_address): Likewise.
8621 * integrate.c (expand_iline_function): Likewise.
8622 * regmove.c (try_auto_increment): Likewise.
8623
1d6e90ac 86242002-01-16 Graham Stott <grahams@redhat.com>
7b25b076
GS
8625
8626 * sched-rgn.c (passed): Use sbitmap_free.
8627 (header): Likewise.
8628 (inner): Likewise.
8629 (in_queue): Likewise.
8630 (in_stack): Likewise.
8631
31fce3c4
EC
86322002-01-15 Eric Christopher <echristo@redhat.com>
8633
8634 * flow.c (propagate_one_insn): Change to use fatal_insn.
8635
c99d986a
KH
86362002-01-15 Kazu Hirata <kazu@hxi.com>
8637
8638 * expmed.c (extract_fixed_bit_field): Remove unused code.
8639 * system.h: Poison SLOW_ZERO_EXTEND.
8640 * doc/tm.texi: Remove.
8641 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
8642 * config/arm/arm.h: Likewise.
8643 * config/avr/avr.h: Likewise.
8644 * config/clipper/clipper.h: Likewise.
8645 * config/convex/convex.h: Likewise.
8646 * config/d30v/d30v.h: Likewise.
8647 * config/dsp16xx/dsp16xx.h: Likewise.
8648 * config/elxsi/elxsi.h: Likewise.
8649 * config/fr30/fr30.h: Likewise.
8650 * config/h8300/h8300.h: Likewise.
8651 * config/i370/i370.h: Likewise.
8652 * config/i386/i386.h: Likewise.
8653 * config/m68k/m68k.h: Likewise.
8654 * config/mips/mips.h: Likewise.
8655 * config/ns32k/ns32k.h: Likewise.
8656 * config/pdp11/pdp11.h: Likewise.
8657 * config/pj/pj.h: Likewise.
8658 * config/s390/s390.h: Likewise.
8659 * config/sh/sh.h: Likewise.
8660 * config/stormy16/stormy16.h: Likewise.
8661 * config/v850/v850.h: Likewise.
8662 * config/vax/vax.h: Likewise.
8663 * config/we32k/we32k.h: Likewise.
8664
acfab996
AH
86652002-01-15 Aldy Hernandez <aldyh@redhat.com>
8666
d8086cbb
RS
8667 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
8668 (altivec_lvsl): Change constraint to b.
8669 (altivec_lvsr): Same.
8670 (altivec_lvebx): Same.
8671 (altivec_lvehx): Same.
8672 (altivec_lvewx): Same.
8673 (altivec_lvxl): Same.
8674 (altivec_lvx): Same.
8675 (altivec_stvx): Add parallel.
8676 (altivec_stvxl): Same.
8677 (altivec_stvehx): Same.
8678 (altivec_stvebx): Same.
8679 (altivec_stvebx): Same.
acfab996 8680
5e505bc9
AH
86812002-01-15 Aldy Hernandez <aldyh@redhat.com>
8682
d8086cbb 8683 * config.gcc: Change altivec.h to altivec-defs.h.
5e505bc9 8684
d8086cbb 8685 * config/rs6000/altivec.h: Delete.
5e505bc9 8686
d8086cbb 8687 * config/rs6000/altivec-defs.h: Add.
5e505bc9 8688
5c41fdfb
JDA
86892002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8690
8691 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
8692 and UMOD modes.
8693
8694 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
8695 less than or equal to eight bytes.
8696
8697 * vax.md (andsi3): Remove constraints and change SET destination
8698 operand type to nonimmediate_operand.
8699 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
8700 when it is a CONST_INT.
8701
de097a2d
JM
87022002-01-15 Jason Merrill <jason@redhat.com>
8703
8704 * c-common.def (FILE_STMT): New code.
8705 * c-common.c (statement_code_p): It's a statement.
8706 * c-common.h (stmt_tree_s): Add x_last_filename.
8707 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
8708 (last_expr_filename): New macro.
8709 * c-semantics.c (begin_stmt_tree): Initialize it.
8710 (add_stmt): If the filename changed, also insert a
8711 FILE_STMT.
8712 (expand_stmt): Handle seeing one.
8713
4a913dd6
EC
87142002-01-15 Eric Christopher <echristo@redhat.com>
8715
8716 * flow.c (propagate_one_insn): Add error message and print out
8717 insn for debugging.
8718
006946e4
JM
87192002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8720
8721 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
8722 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
8723 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
8724 TRAMPOLINE_ALIGNMENT.
8725 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
8726 to be in bits.
8727 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
8728 PCC_BITFIELD_TYPE_MATTERS.
8729 * config/interix.h (STDC_VALUE): Remove. Use
8730 STDC_0_IN_SYSTEM_HEADERS.
8731 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
8732 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
8733 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
8734
751a1458
CR
87352002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
8736
8737 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
8738 not work on this platform currently.
8739
57771fe8
JM
87402002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
8741
8742 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
8743 readonly_warning in _().
8744
0e83ceb1 87452002-01-15 Douglas B Rupp <rupp@gnat.com>
9a52433e 8746
0e83ceb1 8747 * gcc.c (delete_if_ordinary): Backout previous change.
9a52433e 8748
8e2e89f7
KH
87492002-01-15 Kazu Hirata <kazu@hxi.com>
8750
0e83ceb1
DR
8751 * config/h8300/h8300.c (print_operand): Remove support for
8752 unused operand characters.
8753
8e2e89f7
KH
8754 * read-rtl.c: Fix formatting.
8755 * real.c: Likewise.
8756 * recog.c: Likewise.
8757 * regclass.c: Likewise.
8758 * regmove.c: Likewise.
8759 * reg-stack.c: Likewise.
8760 * reload1.c: Likewise.
8761 * rtlanal.c: Likewise.
8762
b531087a
KH
87632002-01-15 Kazu Hirata <kazu@hxi.com>
8764
8765 * config/i386/i386.c: Fix formatting.
8766
7c94ce7f
JJ
87672002-01-15 Jakub Jelinek <jakub@redhat.com>
8768
8769 * c-typeck.c (process_init_element): Don't save_expr
8770 COMPOUND_LITERAL_EXPR if just its initializer will be used.
8771
6041bf2f
DE
87722002-01-15 David Edelsohn <edelsohn@gnu.org>
8773
8774 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
8775 emit optional traceback table if optimize_size or TARGET_ELF.
8776 * config/rs6000/rs6000.md (prefetch): New.
8777
8559c8c0
AJ
87782002-01-15 Andreas Jaeger <aj@suse.de>
8779
8780 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
8781
70f122f2
KH
87822002-01-15 Kazu Hirata <kazu@hxi.com>
8783
8784 * mips-tfile.c: Fix formatting.
8785
6a7b4ca6
JH
8786Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
8787
8788 * unroll.c (final_reg_note_copy): Fix previous commit.
8789
e7afe229
KH
87902002-01-14 Kazu Hirata <kazu@hxi.com>
8791
8792 * config/h8300/h8300-protos.h: Remove the prototype for
8793 eq_operator.
8794 * config/h8300/h8300.c (eq_operator): Remove.
8795
7d378549
RH
87962002-01-14 Richard Henderson <rth@redhat.com>
8797
8798 * config/i386/i386.md (prefetch): Tidy.
8799 (prefetch_3dnow): Fix locality operand.
8800
ab093b81
RH
88012002-01-14 Richard Henderson <rth@redhat.com>
8802
8803 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
8804 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
8805
d300f51f
HPN
88062002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
8807
8808 * reload1.c (reload_combine): Pass reg_sum replacement through
8809 copy_rtx in loop performing multiple changes.
8810
655dd289
JJ
88112002-01-14 Jakub Jelinek <jakub@redhat.com>
8812
8813 * except.c (remove_unreachable_regions): New.
8814 (free_eh_status): Clear exception_handler_labels.
8815 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
8816 (find_exception_handler_labels): Don't add the same label more than
8817 once.
8818 (remove_exception_handler_label): Don't die if
8819 find_exception_handler_labels hasn't been called for the current
8820 function yet.
8821
1fba46a7
JH
8822Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
8823
8824 * toplev.c (rest_of_compilation): Rebuild jump labels after
8825 gcse.
8826
0975678f
JM
88272002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
8828
8829 * doc/extend.texi: Move documentation of X86 built-in functions
8830 here.
8831 * doc/invoke.texi: From here.
8832 * doc/sourcebuild.texi: Document location of documentation for
8833 machine built-in functions.
8834
969815c7
CF
88352002-01-13 Christopher Faylor <cgf@redhat.com>
8836
8837 * cppfiles.c (TEST_THRESHOLD): New macro.
8838 (SHOULD_MMAP): Ditto.
8839 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
8840 be used.
8841
494c950b
JH
8842Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
8843
8844 * unroll.c (final_reg_note_copy): Properly handle
8845 REG_LABEL
8846 (unroll_loops): Fix LOOP_CONDITION heuristics.
8847
69a0611f
GK
88482002-01-14 Geoffrey Keating <geoffk@redhat.com>
8849
8850 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
8851 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
8852
b90e45ae
JH
8853Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
8854
8855 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
8856 threaded loop.
8857
8377288b
TR
88582002-01-14 Tom Rix <trix@redhat.com>
8859
8860 * config/rs6000/rs6000.md: Fix typo with sradi.
8861
9f37ccb1
UW
88622002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
8863
8864 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
8865 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
8866 (clrstrdi, clrstrsi): Adapt callers.
8867
8868 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
8869
8559c8c0 8870 (movti splitter): Never use register 0 as base register.
9f37ccb1 8871
6c2d03d0
HP
88722002-01-14 Hartmut Penner <hpenner@de.ibm.com>
8873
8559c8c0
AJ
8874 * combine.c (simplify_shift_const): Always generate new rtx
8875 for shift expression instead of reusing given expression.
6c2d03d0 8876
d3e98208
RK
8877Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8878
8879 * config/alpha/alpha.c (alpha_expand_mov): Don't call
8880 alpha_legitimize_address unless mode is Pmode.
8881
9f339dde
GK
88822002-01-13 Geoffrey Keating <geoffk@redhat.com>
8883
8884 * doc/md.texi (Modifiers): Document the '*' constraint for the
8885 user.
8886
8887 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
8888 * doc/extend.texi (Function Attributes): 'interrupt' is valid
8889 for xstormy16 too.
8890
02a10130
RH
88912002-01-13 Richard Henderson <rth@redhat.com>
8892
8893 * reload.c (find_reloads): Use a hard reg destination as reload reg
8894 for an input reload of the source.
8895
61d47787
GP
88962002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8897
8898 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
8899 more generic.
8900
f0df8029
DR
8901Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
8902
8903 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8904 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8905
d2a37256
DR
8906 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
8907
a9e8a5ee
RK
8908Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8909
8910 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
8911
bc06712d
TR
89122002-01-12 Tom Rix <trix@redhat.com>
8913
8559c8c0 8914 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
bc06712d
TR
8915 TARGET_POWERPC64.
8916
7cbe9bb7
RH
89172002-01-12 Richard Henderson <rth@redhat.com>
8918
38b29e64
RH
8919 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
8920
58605ba0
RH
8921 * doc/invoke.texi: Update Alpha options.
8922
7cbe9bb7
RH
8923 * doc/invoke.texi: Update i386 built-in function lists.
8924
9d560860
JH
8925Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
8926
8927 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
8928 referencing outside.
8929
bb93b973
RK
8930Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8931
8932 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
8933 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
8934 offsets, and change line folding.
8935 * optabs.c (expand_binop): Remove warnings.
8936 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8559c8c0 8937
f9f6b7df
GS
89382002-01-12 Graham Stott <grahams@redhat.com>
8939
8940 * attribs.c (handle_deprecated_attribute): constify WHAT.
8941 * diagnostic.c (warn_deprecated_use): Add braces, fixes
8942 dangling else warning and constify WHAT.
8943 * except.h (struct function, struct inline_remap): Move
8944 struct tag forward defs before all prototypes.
8945 (duplicate_eh_regions): Whitespace.
8946
4a692617
NC
89472002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
8948
8949 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8950 MODE_BASE_REG_CLASS.
8951 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
8952
e37af218
RH
89532002-01-12 Richard Henderson <rth@redhat.com>
8954
8955 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
8956 (ix86_expand_vector_move): New.
8957 (bdesc_2arg): Remove andps, andnps, orps, xorps.
8958 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
8959 Remove old prefetch builtins. Special case the logicals removed above.
8960 (ix86_expand_builtin): Likewise.
8961 (safe_vector_operand): Use V4SFmode, not TImode.
8962 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
8963 (ix86_expand_timode_binop_builtin): New.
8964 * config/i386/i386-protos.h: Update.
8965 * config/i386/i386.h (enum ix86_builtins): Update.
8966 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
8967 Use ix86_expand_vector_move in vector move expanders.
8968 (movti_internal, movti_rex64): Add xorps alternative.
8969 (sse_clrv4sf): Rename and adjust from sse_clrti.
8970 (prefetch): Don't work so hard.
8971 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
8972 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
8973 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
8974
6f1a6c5b
RH
89752002-01-11 Richard Henderson <rth@redhat.com>
8976
8977 * config/i386/mmintrin.h: New file.
8978 * config/i386/xmmintrin.h: New file.
8979 * config.gcc (i?86-*-*): Add extra_headers.
8980 * simplify-rtx.c (simplify_unary_operation): Handle saturating
8981 truncation codes.
8982 (simplify_binary_operation): Handle saturating arithmetic codes.
8983 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
8984 not the lowpart subreg.
8985 (ix86_expand_builtin): Return a TImode dummy register instead of 0
8986 on error.
8987 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
8988
cdb574d3
MH
89892002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8990
8991 * conflict.c (conflict_graph_compute): Free regsets when finished.
8992 * ssa.c (compute_coalesced_reg_partition): Likewise.
8559c8c0 8993
cf11ac55
HB
89942002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8995
8996 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
8997 every where we allocate a register.
8998
76ac938b
MH
89992002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9000
9001 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9002 * lcm.c (compute_earliest, compute_farthest): Likewise.
9003
a84b4898
JJ
90042002-01-11 Janis Johnson <janis187@us.ibm.com>
9005
9006 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9007
aaef1c12
JJ
90082002-01-11 Janis Johnson <janis187@us.ibm.com>
9009
9010 * doc/rtl.texi (Insns): Fix 2 typos.
9011
5d22c1a5
JM
90122002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
9013
9014 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
9015 options. Use @table @gcctabopt for MMIX options. Add index
9016 entries for MMIX options. Start new paragraph with first
9017 heading of the machine-dependent options.
9018
3e92902c
CR
90192002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
9020
9021 PR other/5299
9022 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9023 * combine.c (force_to_mode): Same.
9024 * reload1.c (clear_reload_reg_in_use): Same.
9025
96ae8197
NC
90262002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
9027
9028 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9029 and 'subtargets'.
9030
9b780582
AJ
90312002-01-11 Andreas Jaeger <aj@suse.de>,
9032 Brad Lucier <lucier@math.purdue.edu>
9033
9034 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9035 mcpu.
9036
12300dad
DR
9037Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
9038
9039 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9040 Protect with IN_LIBGCC.
9041 (LINK_EH_SPEC): Add required trailing space.
9042
27511a9a
NP
9043Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
9044
9b780582 9045 * c-tree.h: Move function declarations so that they are listed
27511a9a
NP
9046 under the filename which contains them.
9047 (check_identifier, finish_decl_top_level,
9048 lookup_name_current_level_global, shadow_record_fields): Remove.
9049
4daeab16
AJ
90502002-01-11 Andreas Jaeger <aj@suse.de>
9051
9052 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9053 march.
9054
40571d67
RH
90552002-01-10 Richard Henderson <rth@redhat.com>
9056
9057 * config/alpha/alpha.c (print_operand): Add 'J'.
9058 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9059 new operand with the sequence number for the lituse. When splitting
9060 the insns, use gen_movdi_er_high_g and generate a sequence number.
9061 (gen_movdi_er_high_g): Print the sequence number if non-zero.
9062
6525c0e7
AH
90632002-01-10 Aldy Hernandez <aldyh@redhat.com>
9064
d8086cbb
RS
9065 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9066 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9067 stvxl.
9068 (altivec_expand_builtin): Same.
9069 (altivec_expand_stv_builtin): New.
9070
9071 * config/rs6000/rs6000.h (rs6000_builtins): Same.
9072
9073 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9074 ("altivec_lvehx"): New.
9075 ("altivec_lvewx"): New.
9076 ("altivec_lvxl"): New.
9077 ("altivec_lvx"): New.
9078 ("altivec_stvx"): New.
9079 ("altivec_stvebx"): New.
9080 ("altivec_stvehx"): New.
9081 ("altivec_stvewx"): New.
9082 ("altivec_stvxl"): New.
6525c0e7 9083
cda94cbb
RH
90842002-01-10 Richard Henderson <rth@redhat.com>
9085
9086 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9087 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
9088 care not to delete instructions twice.
9089
df2c9a44
ZW
90902002-01-10 Zack Weinberg <zack@codesourcery.com>
9091
9092 * toplev.c: Don't declare environ (it's not used anywhere).
9093 * configure.in: Don't check for declaration of environ.
9094 * config/i386/xm-mingw32.h: Don't #define environ.
9095 * config.in, configure: Regenerate.
9096
5dd8a9b1
ZW
90972002-01-10 Zack Weinberg <zack@codesourcery.com>
9098
9099 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9100 * configure: Regenerate.
9101
9102 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9103 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9104 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9105 alpha/xm-vms.h.
9106 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9107 LIMITS_H_TEST here, not in m68k/x-next.
9108 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9109 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9110
9111 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9112 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9113 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
9114
9115 * config/i386/x-djgpp: Renamed i386/t-djgpp.
9116 * config/m88k/x-dolph: Renamed m88k/t-dolph.
9117 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9118 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
9119 replacement of quadlib.asm with quadlib.c.
9120
9121 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9122 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9123 config/rs6000/xm-beos.h: Delete file.
9124
9125 * config.gcc: Update to match above changes.
9126
d10dd44c
KH
91272002-01-10 Kazu Hirata <kazu@hxi.com>
9128
9129 * config/h8300/h8300.h: Fix comment typos.
9130 * config/h8300/h8300.md: Likewise.
9131 * config/h8300/lib1funcs.asm: Likewise.
9132
04894c5a
DJ
91332002-01-10 Dale Johannesen <dalej@apple.com>
9134
9135 PR optimization/5269
9136 * unroll.c (precondition_loop_p): Make *increment be the correct
9137 sign when n_iterations known, to avoid confusing caller.
9138
adc9fe67
KH
91392002-01-10 Kazu Hirata <kazu@hxi.com>
9140
9141 * doc/extend.texi (deprecated): Fix a typo.
9142
b446e5a2
JH
9143Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
9144
9145 * basic-block.h (update_br_prob_note): Declare.
9146 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9147 (try_forward_edges): Care negative frequencies and update note.
9148 (outgoing_edges_match): Tweek conditional merging heuristics.
9149 (try_crossjump_to_edge): use update_br_prob_note.
9150 * cfglayout.c (fixup_reorder_chain): Likewise.
9151 * cfrtl.c (update_br_prob_note): New.
9152 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9153
9154 * i386.c (ix86_decompose_address): Return -1 if address contains
9155 shift.
9156 (legitimate_address_p): Require ix86_decompose_address to return 1.
9157
9158 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9159 (cprop_insn): Likewise.
9160
a01da83b
KH
91612002-01-10 Kazu Hirata <kazu@hxi.com>
9162
9163 * toplev.c: Fix formatting.
9164 * tree.c: Likewise.
9165 * tree-dump.c: Likewise.
9166 * unroll.c: Likewise.
9167 * unwind-dw2.c: Likewise.
9168 * unwind-dw2-fde.c: Likewise.
9169 * unwind-dw2-fde-glibc.c: Likewise.
9170 * unwind-sjlj.c: Likewise.
9171
9f85bca7
JM
91722002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
9173
9174 * doc/invoke.texi: Document PDP-11 options.
9175
f48f56b1
KH
91762002-01-10 Kazu Hirata <kazu@hxi.com>
9177
9178 * config/h8300/h8300.h: Fix formatting.
9179
ead39bdf 91802002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
9181
9182 Add __attribute__ ((deprecated)).
9183 * extend.texi: Document __attribute__ ((deprecated)).
9184 * invoke.texi: Document -Wno-deprecated-declarations.
9185 * testsuite/g++.dg/other/deprecated.C: New C++ test.
9186 * testsuite/gcc.dg/deprecated.c: New C test.
9187 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9188 (c_common_attribute_table): Add "deprecated" entry.
9189 (handle_deprecated_attribute): New function.
9190 * c-decl.c (deprecated_states): New enum.
9191 deprecated_state: State of "deprecated" handling.
9192 (start_decl): Set deprecated_state based on attributes.
9193 (grokdeclarator): Test for deprecated uses, propagate attribute.
9194 * c-typeck.c (build_component_ref): Test for deprecated fields.
9195 (build_external_ref): Test for deprecated primaries.
9196 * diagnostic.c (warn_deprecated_use) New function to issue
9197 warnings about __attribute__ ((depricated)) references.
9198 * flags.h (warn_deprecated_decl): Extern declared for
9199 -W[no-]deprecated-declarations option.
9200 * print-tree.c (print_node): Show deprecated flag status.
9201 * toplev.c (warn_deprecated_decl): Defined.
9202 (W_options): Added "deprecated-declaration".
9203 * toplev.h (warn_deprecated_use): Extern declared.
9204 * tree.h (struct tree_common): Define deprecated_flag.
9205 (TREE_DEPRECATED): New macro to access flag.
9206 * cp/call.c (build_call): Test for deprecated calls.
9207 * cp/class.c (add_implicitly_declared_members): Set global
9208 flag to tell grokdeclarator to not issue deprecated warnings.
9209 * cp/cp-tree.h: Add extern for adding_implicit_members.
9210 * cp/decl.c (deprecated_states): New enum.
9211 (start_decl): Set deprecated_state based on attributes.
9212 (grokdeclarator): Test for deprecated uses, propagate attribute.
9213 * cp/lex.c (do_identifier): Test for deprecated primaries.
9214 * cp/typeck.c (build_component_ref): Test for deprecated fields.
9215
ead39bdf 92162002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
9217
9218 Fix to assign attributes to inline member functions.
9219 * cp/decl.c (start_method): Handle attrlist.
9220
47073a38
KH
92212002-01-10 Kazu Hirata <kazu@hxi.com>
9222
9223 * combine.c (expand_field_assignment): Use subreg_lsb().
9224
d288e53d
DE
92252002-01-10 David Edelsohn <edelsohn@gnu.org>
9226
9227 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9228 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9229 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9230 Recurse for any operand of AND as long as constant is non-zero.
9231
08a02ffa
KH
92322002-01-10 Kazu Hirata <kazu@hxi.com>
9233
9234 * config/h8300/h8300.md: Remove constraints from expanders.
9235
c203e7fe
KH
92362002-01-10 Kazu Hirata <kazu@hxi.com>
9237
9238 * varasm.c: Fix formatting.
9239 * varray.c: Likewise.
9240 * vmsdbgout.c: Likewise.
9241 * xcoffout.c: Likewise.
9242
bcb3bc6d
JH
9243Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
9244
9245 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
cda94cbb 9246 update edge probabilities to match.
bcb3bc6d 9247
0a553c7e
JM
92482002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
9249
9250 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9251 dependencies.
9252 * doc/languages.texi, doc/sourcebuild.texi: New files.
9253 * doc/configfiles.texi: Make a subsubsection. Update.
9254 * doc/configterms.texi: Add @node. Remove warning that this isn't
9255 instructions for building GCC.
9256 * doc/makefile.texi: Make a subsection.
9257 * doc/gccint.texi: Update.
9258
adc7fcb8
JH
9259Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
9260
9261 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9262
5a4dd0b3
NP
9263Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
9264
9265 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9266
3987b9db
JH
9267Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
9268
9269 * optabs.c (expand_fix): Look for wider integer modes first.
9270
9271 * i386.md (mov?f): Avoid the fake const double trick for medium
9272 memory model.
9273 (min?f*/max?f*): Prohibit memory operands for i387 variant.
9274 (fop_df_4): Disable for SSE compilation.
9275
ceb15948 92762002-01-10 Graham Stott <grahams@redhat.com>
117f9d28
GS
9277
9278 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
cda94cbb 9279 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
117f9d28 9280
e1623399
RH
92812002-01-10 Richard Henderson <rth@redhat.com>
9282
9283 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9284
c4abb293
RH
92852002-01-10 Richard Henderson <rth@redhat.com>
9286
9287 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9288 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
9289
d2604ae9
KH
92902002-01-10 Kazu Hirata <kazu@hxi.com>
9291
9292 * combine.c (can_combine_p): Fix a comment typo.
9293
766c7ad1
ZW
92942002-01-09 Zack Weinberg <zack@codesourcery.com>
9295
9296 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9297 empty list correctly. Change loop index $t to $f for
9298 consistency with rest of Makefile.
9299
95385cbb
AH
93002002-01-08 Aldy Hernandez <aldyh@redhat.com>
9301
9302 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9303 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9304
9305 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9306 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9307 (altivec_init_builtins): Same.
9308 (altivec_expand_unop_builtin): Return NULL_RTX on error.
9309 (altivec_expand_binop_builtin): Same.
9310 (altivec_expand_ternop_builtin): Same.
9311 (bdesc_dst): New.
9312
9313 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9314 ("altivec_vctuxs"): Fix typo.
9315 ("altivec_vnmsubfp"): Same.
9316 ("altivec_dssall"): New.
9317 ("altivec_mfvscr"): New.
9318 ("altivec_dss"): New.
9319 ("altivec_lvsl"): New.
9320 ("altivec_lvsr"): New.
9321 ("altivec_dstt"): New.
9322 ("altivec_dstst"): New.
9323 ("altivec_dststt"): New.
9324 ("altivec_dst"): New.
9325
9326 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9327 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9328
e4ac76b4
RH
93292002-01-09 Richard Henderson <rth@redhat.com>
9330
9331 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9332
c893e4a4
HPN
93332002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
9334
9335 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9336 function.
9337 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9338 prototype.
7387c700 9339 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
c893e4a4 9340
f4f4d0f8
KH
93412002-01-09 Kazu Hirata <kazu@hxi.com>
9342
9343 * read-rtl.c: Fix formatting.
9344 * real.c: Likewise.
9345 * regclass.c: Likewise.
9346 * regrename.c: Likewise.
9347 * reg-stack.c: Likewise.
9348 * reload1.c: Likewise.
9349 * reload.c: Likewise.
9350 * rtl.c: Likewise.
9351
cc863bea
KH
93522002-01-09 Kazu Hirata <kazu@hxi.com>
9353
9354 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9355 to extract items in the expr_list chain.
9356
7b4dfe3d
RH
93572002-01-09 Richard Henderson <rth@redhat.com>
9358
9359 * config/vax/vax.c (vax_rtx_cost): Never abort.
9360
1d969638
RH
9361 * config/vax/vax.h (REAL_ARITHMETIC): Define.
9362
7d5ab30e
JH
93632002-01-09 Jan Hubicka <jh@suse.cz>
9364
9365 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9366
9503f3d1
RH
93672002-01-09 Richard Henderson <rth@redhat.com>
9368
9369 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9370 Unify code from various alternatives.
9371
42bd17b7
RH
93722002-01-09 Richard Henderson <rth@redhat.com>
9373
9374 * regrename.c (copy_value): Ignore the copy if the source register
9375 is present in the value chain with a narrower mode.
9376
bdca3c33
HB
93772002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9378
cda94cbb
RH
9379 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9380 for the c4x target. Also improve layout.
bdca3c33 9381
c73a5e94
RH
93822002-01-09 Richard Henderson <rth@redhat.com>
9383
9384 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9385 * config/m32r/m32r.md (and ior xor splitters): Swap operands
9386 to match insn patterns.
9387
dd0a18c0
RH
93882002-01-09 Richard Henderson <rth@redhat.com>
9389
9390 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9391 (copyprop_hardreg_forward_1): Likewise.
9392
1fd9ac1e
JDA
93932002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
9394
9395 * pa.md (decrement_and_branch_until_zero): Change predicate for
9396 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9397
5cb265ec
BM
93982002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9399
9400 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9401 gets undefined. For Darwin.
9402
fcd8fa8b
HB
94032002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9404
9405 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9406
bd3ab23a
MH
94072002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9408
9409 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9410
21e16bd6
RH
94112002-01-08 Richard Henderson <rth@redhat.com>
9412
9413 * regrename.c (copy_value): Ignore overlapping copies.
9414
a5376276
RH
94152002-01-08 Richard Henderson <rth@redhat.com>
9416
9417 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9418 as needed to avoid shared structure.
9419
18cf8dda
KH
94202002-01-08 Kazu Hirata <kazu@hxi.com>
9421
9422 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9423 H8/300H and H8/S.
9424
16c484c7
JM
94252002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9426
9427 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9428 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9429 documentation of obsolete macros.
9430 * system.h: Poison these macros.
9431 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9432 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9433 config/c4x/c4x.h, config/clipper/clipper.h,
9434 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
9435 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
9436 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
9437 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
9438 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9439 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9440 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9441 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
9442 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9443 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9444 config/sparc/sparc.h, config/stormy16/stormy16.h,
9445 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9446 definitions and commented out definitions of obsolete macros.
9447 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9448 of MAX_INT_TYPE_SIZE.
9449
14b3e8ef
UW
94502002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9451
9452 * config/s390/s390.c (s390_preferred_reload_class): Never
9453 return ADDR_REGS if it isn't a subset of the given class.
9454 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9455 FP_REGS, but all superclasses as well.
9456
9457 * config/s390/s390.c (s390_function_profiler): Fix thinko.
9458
9459 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9460 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9461 must not be a const_int.
9462
a693284d
RH
94632002-01-08 Richard Henderson <rth@redhat.com>
9464
9465 * Makefile.in (toplev.o): Depend on options.h.
9466 (gcc.o): Depend on specs.h.
9467
b3ca30df
JJ
94682002-01-08 Jakub Jelinek <jakub@redhat.com>
9469
9470 * expr.c (store_expr): Convert VOIDmode constants back to target's
9471 mode.
9472
24dbb440
GP
94732002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9474
9475 * doc/invoke.texi: Markup gcc as @command. Refer to
9476 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9477 of http://gcc.gnu.org/thanks.html.
9478
234e114c
DJ
94792002-01-08 Dale Johannesen <dalej@apple.com>
9480
9481 * config/rs6000/rs6000.md: Add missing int register
9482 target case to movdf_low.
9483
0d24f4d1
ZW
94842002-01-08 Zack Weinberg <zack@codesourcery.com>
9485
9486 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
9487 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
9488 (cppinit.o): Depend on except.h.
9489 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
9490 s-specs): New rules.
9491
9492 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
9493 Don't create specs.h/options.h/gencheck.h here. Remove
9494 unnecessary variable settings from last argument of AC_OUTPUT.
9495 * config.in, configure: Regenerate.
9496 * intl.c: Hardcode package name as "gcc".
9497
9498 * cppinit.c: Include except.h.
9499 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
9500 appropriate.
9501 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
9502 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
9503 (!)USING_SJLJ_EXCEPTIONS.
9504 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
9505
ed722f66
JM
95062002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9507
9508 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
9509 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
9510 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
9511 documentation of obsolete macros.
9512 * system.h: Poison these macros.
9513 * config/d30v/d30v.h, config/ns32k/encore.h,
9514 config/stormy16/stormy16.h: Remove definitions and commented out
9515 definitions of obsolete macros.
9516
31e5e29a
NP
9517Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
9518
9519 * objc/objc-act.c (handle_class_ref): Mark the declaration of
9520 %sobjc_class_ref_%s as used - to prevent unwanted compiler
9521 warnings.
9522
bc1fa59c
UW
95232002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9524
9525 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
9526 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
9527 to insn adjusting stack/frame pointer.
0d24f4d1 9528 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
bc1fa59c
UW
9529 accept operands that cause the insn to be non-splittable.
9530
a8086abf
GS
95312002-01-08 Graham Stott <grahams@redhat.com>
9532
9533 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
9534 (C_TYPE_FIELDS_VOLATILE): Likewise.
9535 (C_TYPE_BEING_DEFINED): Likewise.
9536 (C_IS_RESERVED_WORD): Likewise.
9537 (C_TYPE_VARIABLE_SIZE): Likewise.
9538 (C_DECL_VARIABLE_SIZE): Likewise.
9539 (C_MISSING_PROTOTYPE_WARNED): Likewise.
9540 (C_SET_EXP_ORIGINAL_CODE): Likewise.
9541 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
9542 parenthesis.
9543 (C_DECL_ANTICIPATED): Likewise.
9544 (c_build_type_variant): Add parenthesis.
9545
3f595aa1
JM
95462002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9547
9548 * gcc.c (option_map): Remove --version.
9549 (process_command): Handle -fversion following the GNU Coding
9550 Standards. Partially addresses PR other/704.
9551
5bc5a8f9
GS
95522002-01-08 Graham Stott <grahams@redhat.com>
9553
9554 * combine.c (combine_instructions): Fix typo.
9555
16ec4ebf
GS
95562002-01-08 Graham Stott <grahams@redhat.com>
9557
9558 * debug.h: Use "tree" and "rtx" throughout.
9559
9560 * debug.c: Likewise.
9561
4b69f385
NC
95622002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
9563
9564 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
9565 constant pool, use the pool's version of the symbol instead.
9566
57d1019b
RH
95672002-01-07 Richard Henderson <rth@redhat.com>
9568
9569 * regrename.c (find_oldest_value_reg): Ignore the value chain if
9570 the original register was copied in a mode with a fewer number of
9571 hard registers than the desired mode.
9572 (copyprop_hardreg_forward_1): Likewise.
9573 (debug_value_data): Fix loop test.
9574 * toplev.c (parse_options_and_default_flags): Reenable
9575 -fcprop-registers at -O1.
9576
95772002-01-07 Aldy Hernandez <aldyh@redhat.com>
fa066a23 9578
0d24f4d1
ZW
9579 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
9580 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
fa066a23 9581
0d24f4d1
ZW
9582 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
9583 predicates.
fa066a23 9584
0d24f4d1 9585 * config/rs6000/rs6000.md: Add altivec predicate patterns.
fa066a23 9586
8f949e7e
JDA
95872002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9588
9589 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
9590 (pa_output_function_prologue): Output local label at the beginning of
9591 the prologue when profiling.
9592 (hppa_profile_hook): Use the local label rather than the function label.
9593 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
9594
c62f2db5
AH
95952002-01-07 Aldy Hernandez <aldyh@redhat.com>
9596
0d24f4d1
ZW
9597 * config/rs6000/rs6000.c (print_operand): Remove extra space.
9598 (altivec_expand_unop_builtin): Fix thinko.
9599 (altivec_expand_binop_builtin): Same.
9600 (altivec_expand_ternop_builtin): Same.
9601 (altivec_expand_builtin): Same.
c62f2db5 9602
b5235ba7
RH
96032002-01-07 Richard Henderson <rth@redhat.com>
9604
9605 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
9606
7d8ac293
JM
96072002-01-07 Jason Merrill <jason@redhat.com>
9608
9609 * unwind-dw2.c (execute_cfa_program): Use < again.
9610
571a03b8
JJ
96112002-01-07 Jakub Jelinek <jakub@redhat.com>
9612
9613 * predict.c (combine_predictions_for_insn): Avoid division by zero.
9614
2e951384
JJ
96152002-01-07 Jakub Jelinek <jakub@redhat.com>
9616
9617 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
9618 Don't allow -1 - x -> ~x simplifications in the first pass.
9619
20e26713
AH
96202002-01-07 Aldy Hernandez <aldyh@redhat.com>
9621
0d24f4d1
ZW
9622 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
9623 arguments.
9624 (altivec_expand_binop_builtin): Same.
9625 (altivec_expand_unop_builtin): Same.
9626 (print_operand): Fix typo.
9627 (bdesc_1arg): Add vupk* variants.
20e26713 9628
0d24f4d1 9629 * rs6000.h (rs6000_builtins): Add vupk* enums.
20e26713 9630
0d24f4d1 9631 * rs6000.md: Add altivec_vupk* variants.
20e26713 9632
4dd57c18
JM
96332002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
9634
9635 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
9636 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
9637 and last update dates.
9638
0341c5d2
JJ
96392002-01-07 Janis Johnson <janis187@us.ibm.com>
9640
9641 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
9642
c7f3e0b0
MM
96432002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
9644
9645 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
9646 * config/avr/avr.h (CPP_SPEC): Likewise.
9647 (LINK_SPEC): Likewise.
9648 (CRT_BINUTILS_SPECS): Likewise.
9649 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9650 * doc/invoke.texi (AVR Options): Document them.
9651
6ba4d630
JH
9652Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
9653
9654 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
9655 LABEL_NUSES.
9656
6253d571
GS
96572002-01-07 Graham Stott <grahams@redhat.com>
9658
0d24f4d1
ZW
9659 * config/i386/i386.h: Update copyright date.
9660 (HALF_PIC_PTR): Add parenthesis.
9661 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
9662 (CONSTANT_ALIGNMENT): Add parenthesis.
9663 (DATA_ALIGNMENT): Likewise.
9664 (LOCAL_ALIGNMENT): Likewise.
9665 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
9666 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
9667 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
9668 (HARD_REGNO_NREGS): Add paranethesis.
9669 (VALID_SSE_REG_MODE): Whitespace.
9670 (VALID_MMX_REG_MODE): Whitespace.
9671 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
9672 (ix86_hard_regno_mode_ok): Add parenthesis.
9673 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
9674 (RETURN_IN_MEMORY): Whitespace.
9675 (N_REG_CLASSES): Add parenthesis.
9676 (INTEGER_CLASS_P): Add parenthesis and wrap.
9677 (FLOAT_CLASS_P): Likewise.
9678 (SSE_CLASS_P): Likewise.
9679 (MMX_CLASS_P): Likewise.
9680 (MAYBE_INTEGER_CLASS_P): Likewise.
9681 (MAYBE_FLOAT_CLASS_P): Likewise.
9682 (MAYBE_SSE_CLASS_P): Likewise.
9683 (MAYBE_MMX_CLASS_P): Likewise.
9684 (Q_CLASS_P): Likewise.
9685 (GENERAL_REGNO_P): Uppercase macro parameter.
9686 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
9687 (FP_REGNO_P): Likewise.
9688 (ANY_FP_REGNO_P): Uppercase macro parameter.
9689 (SSE_REGNO_P): Likewise.
9690 (SSE_REGNO): Likewise.
9691 (SSE_REG_P): Likewise.
9692 (SSE_FLOAT_MODE_P): Likewise.
9693 (MMX_REGNO_P): Likewise.
9694 (MMX_REG_P):Likewise.
9695 (STACK_REG_P): Likewise.
9696 (NON_STACK_REG_P): Likewise.
9697 (STACK_TOP_P): Likewise.
9698 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
9699 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
9700 (SECONDARY_MEMORY_NEEDED): Likewise.
9701 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
9702 (MD_ASM_CLOBBERS): Whitespace and wrap.
9703 (MUST_PASS_IN_STACK): Whitespace and wrap.
9704 (RETURN_POPS_ARGS): Add parenthesis.
9705 (INIT_CUMULATIVE_ARGS): Likewise.
9706 (FUNCTION_ARG): Likewise.
9707 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
9708 (SETUP_INCOMING_VARARGS): Likewise.
9709 (BUILD_VA_LIST_TYPE): Add parenthesis.
9710 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
9711 parenthsis.
9712 (EXPAND_BUILTIN_VA_ARG): Likewise.
9713 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
9714 (INITIALIZE_TRAMPOLINE): Add parenthesis.
9715 (INITIAL_ELIMINATION_OFFSET): Likewise.
9716 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
9717 (REGNO_OK_FOR_BASE_P): Likewise.
9718 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
9719 (REGNO_OK_FOR_DIREG_P): Likewise.
9720 (REG_OK_FOR_INDEX_P): Whitespace.
9721 (REG_OK_FOR_BASE_P): Whitespace.
9722 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
9723 parenthesis.
9724 (FIND_BASE_TERM): Fix typo.
9725 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
9726 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
9727 (SYMBOLIC_CONST; Whitespace.
9728 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
9729 (ENCODE_SECTION_INFO): Whitespace.
9730 (FINALIZE_PIC): Remove do { ... } while (0).
9731 (PROMOTE_MODE): Wrap in do { ... } while (0).
9732 (CONST_COSTS): Whitespace.
9733 (RTX_COSTS): Add paramethesis, whitespace and wrap.
9734 (REGISTER_MOVE_COST): Add parenthesis.
9735 (MEMORY_MOVE_COST): Likewise.
9736 (EXTRA_CC_MODES): Whitespace.
9737 (SELECT_CC_MODE): Add parenthesis and whitespace.
9738 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
9739 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
9740 (ASM_OUTPUT_LABEL): Add paramethesis.
9741 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
9742 (ASM_OUTPUT_REG_POP): Likewise.
9743 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
9744 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
d9a5f180 9745
07933f72
GS
9746 * config/i386/i386.c: Update copyright.
9747 (CHECK_STACK_LIMIT): Add parenthesis.
9748 (AT_BP): Uppercase macro parameter.
9749 (x86_64_int_parameter_registers): Constify.
9750 (x86_64_int_return_registers): Likewise.
9751 (ix86_compare_op0): Use rtx.
9752 (construct_container): Constify INTREG parameter.
9753 (function_arg): Use rtx.
9754
0b4d32c9
GS
9755 * diagnostic.h: Update copyright date.
9756 (output_buffer_state): Add parenthesis.
9757 (output_buffer_format_args): Likewise.
9758
6253d571
GS
9759 * combine.c (combine_instructions): Replace XEXP (links, 0)
9760 with link.
9761
68f3f6f1
L
97622002-01-06 H.J. Lu <hjl@gnu.org>
9763
9764 * cfgcleanup.c (thread_jump): Fix 2 typos.
9765
97662002-01-06 Aldy Hernandez <aldyh@redhat.com>
480f7f3a 9767
0d24f4d1 9768 * config.gcc: Add support for --enable-altivec.
480f7f3a 9769
13b8c631
CR
97702002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9771
9772 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
9773
58ad89b1
JJ
97742002-01-06 Jakub Jelinek <jakub@redhat.com>
9775
9776 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
9777 __objc_class_name_*.
9778
e403b4bc
CR
97792002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
9780
9781 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
9782
e41c7831
RH
97832002-01-06 Richard Henderson <rth@redhat.com>
9784
9785 * reorg.c (emit_delay_sequence): Remove death notes, not merely
9786 nop them out. Increment label reference count for REG_LABEL.
9787 (fill_slots_from_thread): Frob label reference count around
9788 delete_related_insns.
9789
3b3b1e32
RH
97902002-01-05 Richard Henderson <rth@redhat.com>
9791
9792 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
9793 jump threading.
9794
c28abdf0
RH
97952002-01-05 Richard Henderson <rth@redhat.com>
9796
9797 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
9798 * integrate.c (output_inline_function): Likewise.
9799 * toplev.c (rest_of_compilation): Do it here instead. Move call
9800 to remove_unnecessary_notes after emitting abstract instance.
9801 Force an emitted nested function to have its parent emited as well.
9802 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
9803 for null.
9804 (rtl_for_decl_location): Do not look at reload data structures
9805 before reload has run.
9806
c4f2c499
KH
98072002-01-05 Kazu Hirata <kazu@hxi.com>
9808
9809 * cse.c: Fix formatting.
9810 * dwarf2asm.c: Likewise.
9811 * dwarf2out.c: Likewise.
9812 * explow.c: Likewise.
9813 * expmed.c: Likewise.
9814 * function.c: Likewise.
9815 * gcov.c: Likewise.
9816 * gencheck.c: Likewise.
9817 * genrecog.c: Likewise.
9818 * ggc-common.c: Likewise.
9819 * ggc-page.c: Likewise.
9820 * global.c: Likewise.
9821
cf0d9408
KH
98222002-01-05 Kazu Hirata <kazu@hxi.com>
9823
9824 * combine.c: Fix formatting.
9825
bedca03a
CR
98262002-01-05 Craig Rodrigues <crodrigu@bbn.com>
9827
9828 PR middle-end/1557
9829 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
9830
0134bf2d
DE
98312002-01-05 David Edelsohn <edelsohn@gnu.org>
9832
9833 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
9834 as 1 for __powerpc64__ as well.
9835
9836 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
9837
9838 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
9839 return it.
9840
9ca88d5a
DB
98412002-01-05 Daniel Berlin <dan@dberlin.org>
9842
9843 * lcm.c: Revert change, due to performance regression it causes on
9844 SPEC because it's slightly more conservative (sigh, I hate
9845 edge-based LCM).
0d24f4d1 9846
1c570418
JH
9847Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
9848
9849 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
9850
d83bb9f7
NB
98512002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
9852
9853 * doc/cppinternals.texi: Update.
9854
3e0f61ac
HPN
98552002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
9856
9857 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
9858 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
9859 negatives.
9860 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
9861 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
9862 kludge for pre-october-14th mmix versions to handle new-found bug
9863 with PUSHJ/PUSHGO and the register stack.
9864 * config/mmix/mmix.h (struct machine_function): Rename member
9865 has_call_value_without_parameters to has_call_without_parameters.
9866 All referers changed.
9867 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
9868 TARGET_MASK_BRANCH_PREDICT): New macros.
9869 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
9870 -mno-reg-stack-fill-bug-workaround.
9871 * config/mmix/mmix.md ("call"): Set struct machine member
9872 has_call_without_parameters.
9873
4deaa2f8
JH
9874Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
9875
9876 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
9877
9f16e871
JH
9878Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
9879
9880 * cfgcleanup.c: Include tm_p.h
9881 (mark_effect): Fix handling of hard register; fix handling of SET
9882
96eb1157
KH
98832002-01-04 Kazu Hirata <kazu@hxi.com>
9884
9885 * config/h8300/h8300.md (anonymous patterns): Check that
9886 operands are registers before using REGNO on them.
9887
48180d68
RM
98882002-01-03 Roland McGrath <roland@frob.com>
9889
9890 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
9891
b0832fe1
JJ
98922002-01-04 Jakub Jelinek <jakub@redhat.com>
9893
9894 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
9895 * c-common.h (genrtl_expr_stmt_value): Likewise.
9896 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
9897 (expand_expr_stmt_value): Add maybe_last argument.
9898 Don't warn about statement with no effect if it is the last statement
9899 in expression statement.
9900 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
9901 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
9902 expand_expr_stmt_value.
9903 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
9904 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
9905 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
9906 as maybe_last to expand_expr_stmt_value.
9907
c1e14513
JL
9908Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
9909
0d24f4d1
ZW
9910 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
9911 be passed in, do not build it.
9912 (c_begin_if_stmt): New function.
9913 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9914 * c-common.h (c_expand_start_cond): Update prototype.
9915 (c_begin_if_stmt): Prototype new function.
9916 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9917 * c-parse.in (if_prefix): Use c_begin_if_stmt,
9918 c_begin_while_stmt and c_finish_while_stmt_cond.
c1e14513 9919
b6ec437a
WC
99202002-01-04 William Cohen <wcohen@redhat.com>
9921
9922 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
9923 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9924 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9925 * config/pa/som.h (ASM_FILE_START): Likewise.
9926
ead39bdf 99272002-01-04 Daniel Berlin <dan@cgsoftware.com>
517b711f
DB
9928
9929 * lcm.c: Include df.h.
9930 Add available_transfer_function prototype.
9931 (compute_available): Rework to use iterative dataflow framework.
9932 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
9933 with bb_info in df.h
9934 (available_transfer_function): New function.
9935
9936 * Makefile.in (lcm.o): add df.h to dependencies.
9937
551cc6fd
RH
99382002-01-04 Richard Henderson <rth@redhat.com>
9939
9940 * config/alpha/alpha.c (some_operand): Accept HIGH.
9941 (input_operand): Likewise; accept simple references to globals.
9942 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
9943 (alpha_const_double_ok_for_letter_p): Likewise.
9944 (alpha_extra_constraint): Likewise.
9945 (alpha_preferred_reload_class): Likewise. Do not force
9946 symbolic constants to memory.
9947 (alpha_legitimate_address_p): Accept simple references
9948 to small_symbolic_operand.
9949 (alpha_legitimize_address): New arg scratch. Be prepared to be
9950 called when no_new_pseudos. Emit simple symbolic references.
9951 Split integers into low, high, and rest.
9952 (alpha_expand_mov): Use alpha_legitimize_address.
9953 (some_small_symbolic_mem_operand): New.
9954 (split_small_symbolic_mem_operand): New.
9955 * config/alpha/alpha-protos.h: Update.
9956 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
9957 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
9958 (EXTRA_CONSTRAINT): Likewise.
9959 (PREFERRED_RELOAD_CLASS): Likewise.
9960 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
9961 (PREDICATE_CODES): Update.
9962 * config/alpha/alpha.md: New post-reload splitters to convert
9963 simplfied symbolic operands to the form that references $29.
9964 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
9965 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
9966
1eaea054
RH
99672002-01-03 Richard Henderson <rth@redhat.com>
9968
9969 * local-alloc.c (function_invariant_p): Update commentary.
9970
c4cc12b7
L
99712002-01-04 H.J. Lu <hjl@gnu.org>
9972
9973 * toplev.c (rest_of_compilation): Fix a typo when calling
9974 cleanup_cfg.
9975
173bf5be
KH
99762002-01-03 Kazu Hirata <kazu@hxi.com>
9977
9978 * c-common.c: Fix formatting.
9979 * diagnostic.c: Likewise.
9980 * doloop.c: Likewise.
9981 * dwarf2out.c: Likewise.
9982
187462ac
KH
99832002-01-03 Kazu Hirata <kazu@hxi.com>
9984
9985 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
9986 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
9987
5d8ebbd8
NB
99882002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
9989
9990 * cpperror.c: Update comments and copyright.
9991 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
9992 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
9993
518c1311
JDA
99942002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9995
9996 * collect2.c (main): Use strcmp when testing for "-shared".
9997
d15a58c0
NB
99982002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
9999
10000 * cppmacro.c: Don't include intl.h. Update comments.
10001 (new_number_token): Allocate enough buffer for 64-bit unsigned
10002 integers; update prototype.
10003 * cppmain.c: Update comments.
10004
70f4f91c
WC
100052002-01-03 William Cohen <wcohen@redhat.com>
10006
10007 * function.h (struct function): Add profile.
10008 (current_function_profile): New.
10009 doc/extend.texi: Update documentation.
10010 * final.c (final_start_function): Use current_function_profile
10011 instead of profile_flag.
10012 (profile_after_prologue): Likewise.
10013 * function.c (expand_function_start): Likewise.
10014 (expand_function_start): Likewise.
c4cc12b7 10015 * config/alpha/alpha.c (direct_call_operand):
70f4f91c
WC
10016 (alpha_does_function_need_gp): Likewise.
10017 (alpha_expand_prologue): Likewise.
10018 * config/arm/arm.c (arm_expand_prologue): Likewise.
10019 thumb_expand_prologue: Likewise.
10020 * config/d30v/d30v.c (d30v_stack_info): Likewise.
10021 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10022 (fr30_expand_prologue): Likewise.
10023 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10024 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10025 * config/i386/i386.h (FINALIZE_PIC): Likewise.
10026 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10027 * config/i960/i960.c (i960_output_function_prologue): Likewise.
10028 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10029 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10030 (m32r_expand_prologue): Likewise.
10031 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10032 (m88k_expand_prologue): Likewise.
10033 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10034 * config/mips/mips.c (compute_frame_size): Likewise.
10035 (mips_expand_prologue): Likewise.
10036 (mips_can_use_return_insn): Likewise.
10037 * config/pa/elf.h (ASM_FILE_START): Likewise.
10038 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10039 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10040 * config/pa/som.h (ASM_FILE_START): Likewise.
10041 * config/romp/romp.c (romp_using_r14): Likewise.
10042 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10043 (rs6000_stack_info): Likewise.
10044 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2fd17409 10045 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
70f4f91c
WC
10046 * config/v850/v850.c (compute_register_save_size): Likewise.
10047
cb1ac742
JJ
100482002-01-03 Jakub Jelinek <jakub@redhat.com>
10049
10050 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10051 gen_lowpart_common fails, use gen_lowpart_SUBREG.
10052
61d951df 100532002-01-03 Turly O'Connor <turly@apple.com>
cb1ac742 10054
61d951df
TC
10055 * darwin.c (machopic_output_possible_stub_label): Don't generate
10056 stub routines for pseudo-stubs which we've just defined.
10057
505ddab6
KH
100582002-01-03 Kazu Hirata <kazu@hxi.com>
10059
10060 * builtins.c: Fix formatting.
10061 * c-typeck.c: Likewise.
10062 * combine.c: Likewise.
10063 * expr.c: Likewise.
10064 * loop.c: Likewise.
10065
b7e30d8a
AS
100662002-01-03 Andreas Schwab <schwab@suse.de>
10067
10068 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10069 and return true if _cpp_push_next_buffer pushed a new include
10070 file.
10071 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10072 _cpp_pop_file_buffer did not push a new file.
10073 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10074
ff81832f
EC
100752002-01-02 Eric Christopher <echristo@redhat.com>
10076
10077 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10078 FIND_REG_INC_NOTE call. Update copyright.
10079 * loop.c (canonicalize_condition): Ditto.
10080 * reorg.c (delete_scheduled_jump): Ditto.
10081
8e42ace1
KH
100822002-01-03 Kazu Hirata <kazu@hxi.com>
10083
10084 * gcse.c: Fix formatting.
10085
fb2bf631
GS
100862002-01-03 Graham Stott <grahams@redhat.com>
10087
10088 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10089 forward defs for struct tags rtx_def, union_tree, rtvec_def
6253d571 10090 also output corresponding typedefs for rtx, tree, and rtvec.
fb2bf631
GS
10091
10092 * system.h: Move forward defs for struct tags rtx_def, union_tree,
10093 rtvec_def along with corresponding typedefs for rtx, tree, and
6253d571 10094 rtvec to config.h, hconfig.h, tconfig.h.
fb2bf631
GS
10095
100962002-01-03 Graham Stott <grahams@redhat.com>
b9daac31
GS
10097
10098 * tree.h: Update copyright date.
10099 (IS_EXPR_CODE_CLASS): Add parenthesis.
10100 (TREE_SET_CODE): Add whitespace.
10101 (TREE_CHECK): Add parenthesis.
10102 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10103 (CST_OR_CONSTRUCTOR_CHECK):
10104 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10105 (TREE_SYMBOL_REFERENCED): Whitespace.
10106 (INT_CST_LT): Likewise.
10107 (INT_CST_LT_UNSIGNED): Likewise.
10108 (tree_real_cst): Unwrap comment.
10109 (tree_string): Likewise.
10110 (tree_complex): Likewise.
10111 (IDENTIFIER_POINTER): correct cast.
10112 (SAVE_EXPR_CONTEXT): Whitespace.
10113 (EXPR_WFL_FILENAME_NODE): Likewise.
10114 (EXPR_WFL_FILENAME): Remove parenthesis.
10115 (DECL_ORIGIN): Add parenthesis.
10116 (DECL_FROM_INLINE): Use NULL_TREE.
10117 (build_int_2): Whitespace.
10118 (build_type_variant): Add parenthesis.
10119
10120 * gcc/jcf-parse.c: Update copyright date.
10121 (yyparse): Constify resource_filename.
10122
f52eda29
GS
101232002-01-03 Graham Stott <grahams@redhat.com>
10124
10125 * rtl.h: Update copyright date.
10126 (RTL_CHECK1): Wrap long line.
10127 (RTL_CHECK2): Likewise.
10128 (RTL_CHECKC1): Wrap long line and whitespace.
10129 (RTL_CHECKC2): Likewise.
10130 (XWINT): Whitespace.
10131 (XINT): Likewise.
10132 (XSTR): Likewise.
10133 (XEXP): Likewise.
10134 (XVEC): Likewise.
10135 (XMODE): Likewise.
10136 (XBITMAP): Likewise.
10137 (XTREE): Likewise.
10138 (XBBDEF): Likewise.
10139 (XTMPL): Likewise.
10140 (X0WINT): Likewise.
10141 (X0INT):Likewise.
10142 (X0UINT): Likewise.
10143 (X0STR): Likewise.
10144 (X0EXP): Likewise.
10145 (X0VEC): Likewise.
10146 (X0MODE): Likewise.
10147 (X0BITMAP): Likewise.
10148 (X0TREE): Likewise.
10149 (X0BBDEF): Likewise.
10150 (X0ADVFLAGS): Likewise.
10151 (X0CSELIB): Likewise.
10152 (X0MEMATTR): Likewise.
10153 (XCWINT): Likewise.
10154 (XCINT): Likewise.
10155 (XCUINT): Likewise.
10156 (XCSTR): Likewise.
10157 (XCEXP): Likewise.
10158 (XCVEC): Likewise.
10159 (XCMODE): Likewise.
10160 (XCBITMAP): Likewise.
10161 (XCTREE): Likewise.
10162 (XCBBDEF): Likewise.
10163 (XCADVFLAGS): Likewise.
10164 (XCCSELIB): Likewise.
10165 (XC2EXP): Likewise.
10166 (INSN_UID): Likewise.
10167 (PREV_INSN): Likewise.
10168 (PATTERN): Likewise.
10169 (INSN_CODE): Likewise.
10170 (PUT_REG_NOTE_KIND): Likewise.
10171 (CODE_LABEL_NUMBER): Likewise.
10172 (NOTE_SOURCE_FILE): Likewise.
10173 (NOTE_BLOCK): Likewise.
10174 (NOTE_EH_HANDLER): Likewise.
10175 (NOTE_RANGE_INFO): Likewise.
10176 (NOTE_LIVE_INFO): Likewise.
10177 (NOTE_BASIC_BLOCK): Likewise.
10178 (NOTE_EXPECTED_VALUE): Likewise.
10179 (NOTE_LINE_NUMBER): Likewise.
10180 (LABEL_NAME): Likewise.
10181 (LABEL_NUSES): Likewise.
10182 (LABEL_ALTERNATE_NAME): Likewise.
10183 (ADDRESSOF_DECL): Likewise.
10184 (JUMP_LABEL): Likewise.
10185 (LABEL_NEXTREF): Likewise.
10186 (REGNO): Likewise.
10187 (ORIGINAL_REGNO: Likewise.
10188 (HARD_REGISTER_NUM_P): Add parenthesis.
10189 (SUBREG_REG): Whitespace.
10190 (SUBREG_BYTE): Likewise.
10191 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10192 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10193 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10194 (ASM_OPERANDS_INPUT_VEC): Likewise.
10195 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10196 (ASM_OPERANDS_INPUT): Likewise.
10197 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10198 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10199 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10200 (ASM_OPERANDS_INPUT_MODE): Likewise.
10201 (ASM_OPERANDS_SOURCE_FILE): Likewise.
10202 (ASM_OPERANDS_SOURCE_LINE): Likewise.
10203 (MEM_SET_IN_STRUCT_P): Minor reformat.
10204 (TRAP_CONDITION): Whitespace.
10205 (TRAP_CODE): Likewise.
10206 (COND_EXEC_TEST): Likewise.
10207 (COND_EXEC_CODE): Likewise.
10208 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10209 (PHI_NODE_P): Add parenthesis.
10210 (plus_constant): Whitespace and add parenthesis.
10211
e03f5d43
KH
102122002-01-03 Kazu Hirata <kazu@hxi.com>
10213
10214 * config/avr/avr.c: Fix comment typos.
10215 * config/c4x/c4x.md: Likewise.
10216 * config/dsp16xx/dsp16xx.h: Likewise.
10217 * config/dsp16xx/dsp16xx.md: Likewise.
10218 * config/i386/i386.md: Likewise.
10219 * config/ia64/ia64.c: Likewise.
10220 * config/m32r/m32r.h: Likewise.
10221 * config/m68hc11/m68hc11.md: Likewise.
10222 * config/mmix/mmix.c: Likewise.
10223 * config/mn10200/mn10200.c: Likewise.
10224 * config/romp/romp.c: Likewise.
10225 * config/sh/sh.c: Likewise.
10226 * config/stormy16/stormy16.c: Likewise.
10227 * config/stormy16/stormy16.h: Likewise.
10228 * config/stormy16/stormy16.md: Likewise.
10229
97e300e9
GS
102302002-01-03 Graham Stott <grahams@redhat.com>
10231
10232 * loop.h: Update copyright date.
0d24f4d1
ZW
10233 (LOOP_MOVABLES): Fix typo.
10234 (LOOP_REGS): Likewise.
10235 (LOOP_IVS): Likewise.
ff81832f 10236
745b26b3
GS
102372002-01-03 Graham Stott <grahams@redhat.com>
10238
10239 * cppinit.c: Update copyright date.
10240 Don't include output.h
10241 * Makefile.in: Update copyright date.
10242 Update dependency.
10243
0a379b7a
CR
102442002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
10245
10246 PR c/5226
10247 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10248 (-pthread) Add to RS/6000 options.
10249
a8154559
KH
102502002-01-02 Kazu Hirata <kazu@hxi.com>
10251
10252 * except.c: Fix comment typos.
10253 * loop.c: Likewise.
10254 * varasm.c: Likewise.
10255 * doc/tm.texi: Fix a typo.
10256
e6ecc89b
JJ
102572002-01-02 Jakub Jelinek <jakub@redhat.com>
10258
10259 * c-typeck.c (output_init_element): Allow initializing static storage
10260 duration objects with compound literals.
10261
d1094b40
RH
102622002-01-02 Richard Henderson <rth@redhat.com>
10263
10264 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10265 after abusing it.
10266
0c5d8c82
KG
102672002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10268
5e65297b
KG
10269 * gcc.c (default_compilers): Const-ify.
10270 * mips-tdump.c (stab_names): Likewise.
10271 * mips-tfile.c (map_coff_types, map_coff_storage,
10272 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10273 pseudo_ops_t, pseudo_ops): Likewise.
10274 * protoize.c (default_include): Likewise
10275
0c5d8c82
KG
10276 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10277 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10278 Add array size in declaration.
10279 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10280 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10281 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10282 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10283 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10284 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10285 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10286 emtens, make_nan): Const-ify.
10287 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10288 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10289
817e13c4
JM
102902002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
10291
10292 * config.gcc (ia64-*-*): Set extra_headers.
10293 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
10294 * config/alpha/t-osf: Remove.
10295 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10296
98095e2b
DE
102972002-01-02 David Edelsohn <edelsohn@gnu.org>
10298
10299 * config/rs6000/t-aix43: Revert previous change.
10300
a4200657
JM
103012002-01-02 Jason Merrill <jason@redhat.com>
10302
10303 * c-decl.c (c_expand_body): Call outlining_inline_function when
10304 emitting an inline function out of line.
10305
54ba1f0d
RH
103062002-01-02 Richard Henderson <rth@redhat.com>
10307
10308 * dwarf2out.c (limbo_die_node): Add created_for member.
10309 (new_die): New argument created_for. Update all callers.
10310 (mark_limbo_die_list): New.
10311 (dwarf2out_init): Register limbo_die_list as a root.
10312 (dwarf2out_finish): Force insert limbo dies into their function
10313 context.
10314
323728aa
NS
103152002-01-02 Nathan Sidwell <nathan@codesourcery.com>
10316
10317 PR c++/5089
10318 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10319
aefc5826
KH
103202002-01-02 Kazu Hirata <kazu@hxi.com>
10321
10322 * config/h8300/fixunssfsi.c: Update copyright.
10323 Fix comment typos.
10324 Fix formatting.
10325 * config/h8300/h8300.c: Update copyright.
10326 Eliminate warnings.
10327
b1c9bc51
KH
103282002-01-02 Kazu Hirata <kazu@hxi.com>
10329
10330 * config/romp/romp.c: Fix comment formatting.
10331 * config/romp/romp.h: Likewise.
10332 * config/romp/romp.md: Likewise.
10333 * config/s390/s390.c: Likewise.
10334 * config/stormy16/stormy16.c: Likewise.
10335 * config/stormy16/stormy16.h: Likewise.
10336
1574ef13
AO
103372002-01-02 Alexandre Oliva <aoliva@redhat.com>
10338
10339 * c-common.h (genrtl_expr_stmt_value): Declare.
10340 * c-semantics.c (genrtl_goto_stmt): Redirect to...
10341 (genrtl_goto_stmt_value): ... this new function. Pass new
10342 argument down to expand_expr_stmt_value, taking
10343 TREE_ADDRESSABLE into account.
10344 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10345 STMT_EXPR as addressable, i.e., one whose result we want.
10346 * expr.c (expand_expr): Don't save expression statement value
10347 of labeled_blocks or loop_exprs.
10348 * stmt.c (expand_expr_stmt): Redirect to...
10349 (expand_expr_stmt_value): ... this new function. Use new
10350 argument to tell whether to save expression value.
10351 (expand_end_stmt_expr): Reset last_expr_type and
10352 last_expr_value if we don't have either.
10353 * tree-inline.c (declare_return_variable): Mark its use
10354 statement as addressable.
10355 * tree.h: Document new use of TREE_ADDRESSABLE.
10356 (expand_expr_stmt_value): Declare.
10357
252b88f7
TR
103582002-01-01 Tom Rix <trix@redhat.com>
10359
10360 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10361 rs6000_emit_allocate_stack.
10362
29f7a208
JM
103632002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
10364
10365 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10366 ${srcdir}/ginclude/ to every entry in extra_headers.
10367 * configure: Regenerate.
10368 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10369 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10370 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10371 * ginclude/proto.h: Rename to config/convex/proto.h.
10372
2cc2d4bb
RK
10373Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10374
10375 * attribs.c (handle_vector_size_attribute): Use host_integerp
10376 and tree_int_cst; remove warnings.
10377 * caller-save.c (insert_restore): Add cast to get rid of warning.
10378 (insert_save): Likewise.
10379 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10380 * regmove.c (find_matches): Add temporary var to kill a warning.
10381
f01c9bcd
DR
103822002-01-01 Douglas B Rupp <rupp@gnat.com>
10383
16b61764
DR
10384 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10385 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10386 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10387 (vms-dwarf2eh.o): Add Makefile rule.
10388 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10389 * config/alpha/vms-dwarf2eh.asm: New file.
10390
f01c9bcd
DR
10391 * gcc.c (delete_if_ordinary): Delete all versions.
10392
91312b81
HPN
103932002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
10394
10395 * config/mmix/mmix.md: Update FIXME to not mention
10396 define_constants.
10397 (MMIX_rJ_REGNUM): New define_constants constant.
10398 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10399 "*movdicc_real"): Adjust contraints formatting.
10400 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10401 for branch prediction.
10402 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10403 output template.
10404 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10405 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10406 number. Delete related FIXMEs.
10407 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10408 from number to MMIX_rJ_REGNUM.
10409 (TARGET_MASK_BRANCH_PREDICT): New.
10410 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10411 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
10412 value. Add -mbranch-predict and -mno-branch-predict.
10413 (TARGET_VERSION): Drop date.
10414 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10415 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10416 for finding out global symbols.
10417 (mmix_asm_output_labelref): Revert condition for global symbol.
10418 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10419 (mmix_print_operand_punct_valid_p): A '+' is valid.
10420
619acae7 10421See ChangeLog.6 for earlier changes.
This page took 1.376297 seconds and 5 git commands to generate.