Commit 2b1b6bf9 by Richard Kenner

emit-rtl.c (change_address): Don't abort if invalid address while reload is in progress.

	* emit-rtl.c (change_address): Don't abort if invalid address while
	reload is in progress.

From-SVN: r43765
parent 98aff0b5
Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* emit-rtl.c (change_address): Don't abort if invalid address while
reload is in progress.
2001-07-04 Daniel Berlin <dan@cgsoftware.com> 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
* c-lex.c (cb_file_change): Pass line number to * c-lex.c (cb_file_change): Pass line number to
...@@ -14,14 +19,16 @@ ...@@ -14,14 +19,16 @@
* toplev.h (debug_start_source_file): Add line number to * toplev.h (debug_start_source_file): Add line number to
parameters. parameters.
* dwarf2out.h (dwarf2out_start_source_file): Add line number to parameters. * dwarf2out.h (dwarf2out_start_source_file): Add line number to
parameters.
* dwarf2out.c (dwarf2out_start_source_file): Add line number to * dwarf2out.c (dwarf2out_start_source_file): Add line number to
parameters. parameters.
Output debug_macinfo data for starting file if requested. Output debug_macinfo data for starting file if requested.
(dwarf2out_end_source_file): Output debug_macinfo data for ending (dwarf2out_end_source_file): Output debug_macinfo data for ending
file if requested. file if requested.
(dwarf2out_define): Output debug_macinfo data for defining a macro if requested. (dwarf2out_define): Output debug_macinfo data for defining a macro
if requested.
(dwarf2out_undef): Output debug_macinfo data for undefining a (dwarf2out_undef): Output debug_macinfo data for undefining a
macro if requested. macro if requested.
(DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name. (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
......
...@@ -1584,9 +1584,13 @@ change_address (memref, mode, addr) ...@@ -1584,9 +1584,13 @@ change_address (memref, mode, addr)
if (addr == 0) if (addr == 0)
addr = XEXP (memref, 0); addr = XEXP (memref, 0);
/* If reload is in progress or has completed, ADDR must be valid. /* If reload is in progress, don't check for validity of the address since we
Otherwise, we can call memory_address to make it valid. */ assume the caller knows what they are doing. If reload has completed, the
if (reload_completed || reload_in_progress) address must be valid. Otherwise, we call memory_address to make it
valid. */
if (reload_in_progress)
;
else if (reload_completed)
{ {
if (! memory_address_p (mode, addr)) if (! memory_address_p (mode, addr))
abort (); abort ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment