public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/25448]  New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend
@ 2005-12-16 17:11 berndtrog at yahoo dot com
  2005-12-16 17:13 ` [Bug target/25448] " berndtrog at yahoo dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: berndtrog at yahoo dot com @ 2005-12-16 17:11 UTC (permalink / raw)
  To: gcc-bugs

Hello,

when compiling this code:

   procedure My_int;
   pragma Machine_Attribute (My_int, "signal");
   pragma Export (C, My_int, "__vector_1");
   procedure My_int is begin null; end;

with avr-gcc-4.x I get this warning:

demo_ada.adb:9: warning: `demo_ada__my_int' appears to be a misspelled
signal handler

I do not get this warning with gcc-3.4.x.

IMO, this is caused by the misspelled-signames patch
from Theodore A. Roth:

avr.c:
[...]
{
 const char *func_name = IDENTIFIER_POINTER (DECL_NAME (*node));
 const char *attr = IDENTIFIER_POINTER (name);

 /* If the function has the 'signal' or 'interrupt' attribute, test to
    make sure that the name of the function is "__vector_NN" so as to
    catch when the user misspells the interrupt vector name.  */

 if (strncmp (attr, "interrupt", strlen ("interrupt")) == 0)
   {
   if (strncmp (func_name, "__vector", strlen ("__vector")) != 0)
     {
      warning (0, "%qs appears to be a misspelled interrupt handler",
               func_name);
[...]

Ted's patch is a bit too C specific, because it assumes that the source
code function name is equal the symbol name. 
(__vector_1 = __vector_1)

In Ada, the source code function name (demo_ada__my_int) for interrupts is
translated to__vector_xx with the "Pragma Export (..)" statement.
Its not possible to define "__vector_1" as a source code function name.


-- 
           Summary: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR
                    backend
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: berndtrog at yahoo dot com
GCC target triplet: avr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25448] [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend
  2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
@ 2005-12-16 17:13 ` berndtrog at yahoo dot com
  2005-12-25  1:20 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: berndtrog at yahoo dot com @ 2005-12-16 17:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from berndtrog at yahoo dot com  2005-12-16 17:13 -------
Created an attachment (id=10516)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10516&action=view)
proposed patch

patch to replace DECL_NAME by DECL_ASSEMBLER_NAME


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25448] [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend
  2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
  2005-12-16 17:13 ` [Bug target/25448] " berndtrog at yahoo dot com
@ 2005-12-25  1:20 ` pinskia at gcc dot gnu dot org
  2006-01-08 16:22 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-25  1:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-12-25 01:20 -------
Confirmed, it also can be reproduced with normal C and using asm on the
function to change what the assembly name is.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2005-12-25 01:20:03
               date|                            |
   Target Milestone|---                         |4.0.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25448] [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend
  2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
  2005-12-16 17:13 ` [Bug target/25448] " berndtrog at yahoo dot com
  2005-12-25  1:20 ` pinskia at gcc dot gnu dot org
@ 2006-01-08 16:22 ` pinskia at gcc dot gnu dot org
  2006-03-11  3:22 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-08 16:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25448] [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend
  2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
                   ` (2 preceding siblings ...)
  2006-01-08 16:22 ` pinskia at gcc dot gnu dot org
@ 2006-03-11  3:22 ` mmitchel at gcc dot gnu dot org
  2007-02-03 16:09 ` [Bug target/25448] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-03-11  3:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.3                       |4.0.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25448] [4.0/4.1/4.2/4.3 Regression] Unfounded warnings from the AVR backend
  2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
                   ` (3 preceding siblings ...)
  2006-03-11  3:22 ` mmitchel at gcc dot gnu dot org
@ 2007-02-03 16:09 ` gdr at gcc dot gnu dot org
  2007-02-03 17:27 ` jsm28 at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 16:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from gdr at gcc dot gnu dot org  2007-02-03 16:09 -------
Won't fix in GCC-4.0.x.  Adjusting milestone.


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.4                       |---


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25448] [4.0/4.1/4.2/4.3 Regression] Unfounded warnings from the AVR backend
  2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
                   ` (4 preceding siblings ...)
  2007-02-03 16:09 ` [Bug target/25448] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
@ 2007-02-03 17:27 ` jsm28 at gcc dot gnu dot org
  2007-02-14  9:37 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2007-02-03 17:27 UTC (permalink / raw)
  To: gcc-bugs



-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25448] [4.0/4.1/4.2/4.3 Regression] Unfounded warnings from the AVR backend
  2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
                   ` (5 preceding siblings ...)
  2007-02-03 17:27 ` jsm28 at gcc dot gnu dot org
@ 2007-02-14  9:37 ` mmitchel at gcc dot gnu dot org
  2007-04-05 15:44 ` aesok at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14  9:37 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.2                       |4.1.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25448] [4.0/4.1/4.2/4.3 Regression] Unfounded warnings from the AVR backend
  2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
                   ` (6 preceding siblings ...)
  2007-02-14  9:37 ` mmitchel at gcc dot gnu dot org
@ 2007-04-05 15:44 ` aesok at gcc dot gnu dot org
  2007-04-05 15:50 ` aesok at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: aesok at gcc dot gnu dot org @ 2007-04-05 15:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from aesok at gcc dot gnu dot org  2007-04-05 16:43 -------
Subject: Bug 25448

Author: aesok
Date: Thu Apr  5 16:43:35 2007
New Revision: 123519

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123519
Log:
        PR target/25448
        * config/avr/avr.c (avr_handle_fndecl_attribute): Use the 
        DECL_ASSEMBLER_NAME, not the DECL_NAME.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/avr/avr.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25448] [4.0/4.1/4.2/4.3 Regression] Unfounded warnings from the AVR backend
  2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
                   ` (7 preceding siblings ...)
  2007-04-05 15:44 ` aesok at gcc dot gnu dot org
@ 2007-04-05 15:50 ` aesok at gcc dot gnu dot org
  2007-04-05 15:57 ` aesok at gcc dot gnu dot org
  2007-04-05 16:00 ` aesok at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: aesok at gcc dot gnu dot org @ 2007-04-05 15:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from aesok at gcc dot gnu dot org  2007-04-05 16:50 -------
Subject: Bug 25448

Author: aesok
Date: Thu Apr  5 16:50:27 2007
New Revision: 123520

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123520
Log:
        PR target/25448
        * config/avr/avr.c (avr_handle_fndecl_attribute): Use the 
        DECL_ASSEMBLER_NAME, not the DECL_NAME.

Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/config/avr/avr.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25448] [4.0/4.1/4.2/4.3 Regression] Unfounded warnings from the AVR backend
  2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
                   ` (8 preceding siblings ...)
  2007-04-05 15:50 ` aesok at gcc dot gnu dot org
@ 2007-04-05 15:57 ` aesok at gcc dot gnu dot org
  2007-04-05 16:00 ` aesok at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: aesok at gcc dot gnu dot org @ 2007-04-05 15:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from aesok at gcc dot gnu dot org  2007-04-05 16:56 -------
Subject: Bug 25448

Author: aesok
Date: Thu Apr  5 16:56:43 2007
New Revision: 123521

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123521
Log:
        PR target/25448
        * config/avr/avr.c (avr_handle_fndecl_attribute): Use the 
        DECL_ASSEMBLER_NAME, not the DECL_NAME.


Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/config/avr/avr.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug target/25448] [4.0/4.1/4.2/4.3 Regression] Unfounded warnings from the AVR backend
  2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
                   ` (9 preceding siblings ...)
  2007-04-05 15:57 ` aesok at gcc dot gnu dot org
@ 2007-04-05 16:00 ` aesok at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: aesok at gcc dot gnu dot org @ 2007-04-05 16:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from aesok at gcc dot gnu dot org  2007-04-05 16:59 -------
Fixsed in 4.1.3, 4.2 and 4.3.


-- 

aesok at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25448


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-04-05 16:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-16 17:11 [Bug target/25448] New: [4.0/4.1/4.2 Regression] Unfounded warnings from the AVR backend berndtrog at yahoo dot com
2005-12-16 17:13 ` [Bug target/25448] " berndtrog at yahoo dot com
2005-12-25  1:20 ` pinskia at gcc dot gnu dot org
2006-01-08 16:22 ` pinskia at gcc dot gnu dot org
2006-03-11  3:22 ` mmitchel at gcc dot gnu dot org
2007-02-03 16:09 ` [Bug target/25448] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
2007-02-03 17:27 ` jsm28 at gcc dot gnu dot org
2007-02-14  9:37 ` mmitchel at gcc dot gnu dot org
2007-04-05 15:44 ` aesok at gcc dot gnu dot org
2007-04-05 15:50 ` aesok at gcc dot gnu dot org
2007-04-05 15:57 ` aesok at gcc dot gnu dot org
2007-04-05 16:00 ` aesok at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).