Hi,

there has been a ICE on solaris 9 and 10 when dumping ASM_INPUT objects
without valid source loation at print-rtl.c.

print_rtx did not check for this, and tried to print NULL with printf format %s.
This happens to be handled by glibc's printf to print "(null)" but not on 
solaris.

Attached is my proposed patch for this: Firstly attaching the source location to
ASM_INPUT objects, that should not hurt, and secondly check for
UNKNOWN_LOCATION in print-rtl.c for ASM_INPUT and ASM_OPERANDS.

Boot-Strapped and Regression-tested on X86_64-linux-gnu.


Thanks
Bernd.                                    
2014-02-06  Bernd Edlinger  <bernd.edlin...@hotmail.de>

        PR middle-end/60080
        * cfgexpand.c (expand_asm_operands): Attach source location to
        ASM_INPUT rtx objects.
        * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.

Attachment: patch-pr60080.diff
Description: Binary data

Reply via email to