[Bug c/19727] New: i386 regparm attribute mismatch does not generate warning

bcrl at kvack dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 31 18:41:00 GMT 2005


A "gcc -Wall -c test.c" of the following compiles cleanly while it should
generate an error as incorrect code will be produced for function calls to foo()
via bar().

int foo(void) __attribute__((regparm(3)));
int (*bar)(void) __attribute__((regparm(0))) = foo;

-- 
           Summary: i386 regparm attribute mismatch does not generate
                    warning
           Product: gcc
           Version: 3.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bcrl at kvack dot org
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list