From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 375 invoked by alias); 4 Jun 2009 10:19:11 -0000 Received: (qmail 366 invoked by uid 22791); 4 Jun 2009 10:19:11 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mp.nii.ac.jp (HELO mp.nii.ac.jp) (136.187.17.6) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Jun 2009 10:19:03 +0000 Received: from p5144-ipngn901marunouchi.tokyo.ocn.ne.jp (EHLO _114.158.148.144_) ([114.158.148.144]) by mp.nii.ac.jp (MOS 3.8.7a FastPath queued) with ESMTP id ASH50498 (AUTH vijay@nii.ac.jp); Thu, 04 Jun 2009 19:19:00 +0900 (JST) Message-ID: <4A279F91.9010003@nii.ac.jp> Date: Thu, 04 Jun 2009 10:19:00 -0000 From: Vijay Holimath Reply-To: vijay@nii.ac.jp User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Enquiry Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00021.txt.bz2 I am getting error messages for ep register ( __attribute__ ((interrupt_handler)) when I compile following sample program: void swnmi() __attribute__ ((interrupt_handler)); void swnmi() { ... .. } main() { .. .. } main.o (.text+0xea): In function 'swnmi': undefined reference to '__ep' main.o (.text+0xee): In function 'swnmi': undefined reference to '__ep' collect2: Id returned 1 exit status I added CPPFLAGS += -mprolog-function -mno-long-calls in makefile but error remains the same. I think I need to add some patches? If I have to, could anybody tell which one? Thanks, -Vijay