Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
cb5f2074
Commit
cb5f2074
authored
Nov 04, 2009
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert untested varasm.c change
From-SVN: r153923
parent
be998fb7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
23 deletions
+2
-23
gcc/ChangeLog
+0
-7
gcc/testsuite/ChangeLog
+0
-5
gcc/testsuite/g++.dg/init/static-init2.C
+0
-3
gcc/varasm.c
+2
-8
No files found.
gcc/ChangeLog
View file @
cb5f2074
2009
-
11
-
04
Jason
Merrill
<
jason
@
redhat
.
com
>
PR
c
++/
36912
*
varasm
.
c
(
initializer_constant_valid_p
):
A
PLUS_EXPR
or
MINUS_EXPR
of
REAL_TYPE
is
not
a
valid
constant
initializer
.
(
output_constant
):
Avoid
crash
after
error
.
2009
-
11
-
04
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
2009
-
11
-
04
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
PR
target
/
10127
PR
target
/
10127
gcc/testsuite/ChangeLog
View file @
cb5f2074
2009-11-04 Jason Merrill <jason@redhat.com>
2009-11-04 Jason Merrill <jason@redhat.com>
PR c++/36912
* g++.dg/init/static-init2.C: New.
2009-11-04 Jason Merrill <jason@redhat.com>
PR c++/39413
PR c++/39413
* g++.dg/template/overload11.C: New.
* g++.dg/template/overload11.C: New.
* g++.dg/template/nested3.C: Adjust.
* g++.dg/template/nested3.C: Adjust.
...
...
gcc/testsuite/g++.dg/init/static-init2.C
deleted
100644 → 0
View file @
be998fb7
// PR c++/36912
// { dg-options -frounding-math }
const
double
c
=
.
1
,
d
=
c
+
1
;
gcc/varasm.c
View file @
cb5f2074
...
@@ -4322,10 +4322,6 @@ initializer_constant_valid_p (tree value, tree endtype)
...
@@ -4322,10 +4322,6 @@ initializer_constant_valid_p (tree value, tree endtype)
case
POINTER_PLUS_EXPR
:
case
POINTER_PLUS_EXPR
:
case
PLUS_EXPR
:
case
PLUS_EXPR
:
/* Any valid floating-point constants will have been folded by now;
with -frounding-math we hit this with addition of two constants. */
if
(
TREE_CODE
(
endtype
)
==
REAL_TYPE
)
return
NULL_TREE
;
if
(
!
INTEGRAL_TYPE_P
(
endtype
)
if
(
!
INTEGRAL_TYPE_P
(
endtype
)
||
TYPE_PRECISION
(
endtype
)
||
TYPE_PRECISION
(
endtype
)
>=
int_or_pointer_precision
(
TREE_TYPE
(
value
)))
>=
int_or_pointer_precision
(
TREE_TYPE
(
value
)))
...
@@ -4349,8 +4345,6 @@ initializer_constant_valid_p (tree value, tree endtype)
...
@@ -4349,8 +4345,6 @@ initializer_constant_valid_p (tree value, tree endtype)
break
;
break
;
case
MINUS_EXPR
:
case
MINUS_EXPR
:
if
(
TREE_CODE
(
endtype
)
==
REAL_TYPE
)
return
NULL_TREE
;
if
(
!
INTEGRAL_TYPE_P
(
endtype
)
if
(
!
INTEGRAL_TYPE_P
(
endtype
)
||
TYPE_PRECISION
(
endtype
)
||
TYPE_PRECISION
(
endtype
)
>=
int_or_pointer_precision
(
TREE_TYPE
(
value
)))
>=
int_or_pointer_precision
(
TREE_TYPE
(
value
)))
...
@@ -4566,8 +4560,8 @@ output_constant (tree exp, unsigned HOST_WIDE_INT size, unsigned int align)
...
@@ -4566,8 +4560,8 @@ output_constant (tree exp, unsigned HOST_WIDE_INT size, unsigned int align)
case
REAL_TYPE
:
case
REAL_TYPE
:
if
(
TREE_CODE
(
exp
)
!=
REAL_CST
)
if
(
TREE_CODE
(
exp
)
!=
REAL_CST
)
error
(
"initializer for floating value is not a floating constant"
);
error
(
"initializer for floating value is not a floating constant"
);
else
assemble_real
(
TREE_REAL_CST
(
exp
),
TYPE_MODE
(
TREE_TYPE
(
exp
)),
align
);
assemble_real
(
TREE_REAL_CST
(
exp
),
TYPE_MODE
(
TREE_TYPE
(
exp
)),
align
);
break
;
break
;
case
COMPLEX_TYPE
:
case
COMPLEX_TYPE
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment