Bug 127026
Summary: | gcc generates bad code in Ada programs when checking the valid attribute | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jean Francois Martinez <jfm512> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 2 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 3.4.2-6.fc3 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-01-03 18:07:02 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Jean Francois Martinez
2004-06-30 19:34:43 UTC
Created attachment 101544 [details]
Program who checks the Valid attribute on a floating variable
Notice that the variable is from a type who is a limited range (0.0 to 86400.0)
If it were a mere float (ie one whose range is determined by the hardware) then
the optimizer would simply remove the check.
As told this program raises an exception (wrongly) if it compiled with -O or
-O2
and doesn't when compiled withoput optimization
This is fixed in GCC 3.4.2 as shipped in FC3. |