[testsuite] new test case for ICE on sh target
Nitin Shah
NitinS2@KPITCummins.com
Wed Oct 20 13:14:00 GMT 2004
Hi,
I would like to add following test case in dejagnu testsuite.
Following program was giving ICE with
"sh-elf-gcc m2e -g sh-ice.c" and "sh-coff-gcc m2e -g sh-ice.c" command line, when function is called from ISR.
SH toolchain was built by using gcc 3.3.
=============================================================================
testsuite/Changelog
2004-10-19 Nitin Shah <nitins2@kpitcummins.com>
* gcc.dg/sh-ice.c : New test source file
===========================START of sh-ice.c=================================
--- /dev/null 2002-08-31 05:01:37.000000000 +0530
+++ gcc/gcc/testsuite/gcc.dg/sh-ice.c 2004-10-19 12:22:45.000000000 +0530
@@ -0,0 +1,7 @@
+/* { dg-do compile { target sh-*-*} } */
+/* { dg-options "-g" } */
+/* ICE with m2e and -g option when function is called from ISR */
+void f(void) __attribute__((interrupt_handler));
+void g(void) { }
+void f(void) { g(); }
+
===========================End of sh-ice.c===================================
Regards,
Nitin Shah,
KPIT Cummins InfoSystems Ltd.
Pune, India
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users.
Visit http://www.kpitgnutools.com for details.
Latest versions of KPIT GNU tools were released on October 1, 2004.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Gcc-patches
mailing list