Bug 21421 - [3.4/4.0/4.1 Regression] Accepts writting to const via asm
Summary: [3.4/4.0/4.1 Regression] Accepts writting to const via asm
Status: RESOLVED DUPLICATE of bug 21419
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.2
Assignee: Not yet assigned to anyone
URL:
Keywords: accepts-invalid, diagnostic
Depends on:
Blocks:
 
Reported: 2005-05-06 14:52 UTC by Andrew Pinski
Modified: 2005-09-25 12:41 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work: 2.95.3
Known to fail: 3.4.0 3.0.4 3.3.3 4.0.0 4.1.0
Last reconfirmed: 2005-09-10 02:56:27


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2005-05-06 14:52:18 UTC
Just like PR 21420 but this is for C++ and is a regression from 2.95.3 and not from 3.3.3.
static inline void sigaddset(const int set, int i)
{
        __asm__("" : "=r"(set) );
}
Comment 1 Andrew Pinski 2005-05-09 20:50:17 UTC
This has been failing since at least 2000-12-31.
Comment 2 Andrew Pinski 2005-07-22 21:12:46 UTC
Moving to 4.0.2 pre Mark.
Comment 3 Paolo Bonzini 2005-09-25 12:41:41 UTC
Again, the patch for PR21419 fixes this.

*** This bug has been marked as a duplicate of 21419 ***