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
a859517f
Commit
a859517f
authored
Dec 03, 2012
by
Marek Polacek
Committed by
Marek Polacek
Dec 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PR c/55570.
From-SVN: r194083
parent
ea3c6c07
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
2 deletions
+17
-2
gcc/c-family/ChangeLog
+6
-0
gcc/c-family/c-common.c
+2
-2
gcc/testsuite/ChangeLog
+5
-0
gcc/testsuite/gcc.dg/pr55570.c
+4
-0
No files found.
gcc/c-family/ChangeLog
View file @
a859517f
2012
-
12
-
03
Marek
Polacek
<
polacek
@redhat
.
com
>
PR
c
/
55570
*
c
-
common
.
c
(
check_user_alignment
)
:
Swap
order
of
tests
,
check
TREE_CODE
first
.
2012
-
11
-
29
Ed
Smith
-
Rowland
<
3
dw4rd
@verizon
.
net
>
PR
c
++/
52654
...
...
gcc/c-family/c-common.c
View file @
a859517f
...
...
@@ -7261,8 +7261,8 @@ check_user_alignment (const_tree align, bool allow_zero)
{
int
i
;
if
(
!
INTEGRAL_TYPE_P
(
TREE_TYPE
(
align
))
||
TREE_CODE
(
align
)
!=
INTEGER_CST
)
if
(
TREE_CODE
(
align
)
!=
INTEGER_CST
||
!
INTEGRAL_TYPE_P
(
TREE_TYPE
(
align
))
)
{
error
(
"requested alignment is not an integer constant"
);
return
-
1
;
...
...
gcc/testsuite/ChangeLog
View file @
a859517f
2012-12-03 Marek Polacek <polacek@redhat.com>
PR c/55570
* gcc.dg/pr55570.c: New test.
2012-12-03 Jakub Jelinek <jakub@redhat.com>
* lib/asan-dg.exp (asan_get_gtest_test_list,
...
...
gcc/testsuite/gcc.dg/pr55570.c
0 → 100644
View file @
a859517f
/* PR c/55570 */
/* { dg-do compile } */
char
array
[
16
]
__attribute__
((
aligned
(
SOME_NOT_DEFINED_MACRO
)));
/* { dg-error "requested alignment is not an integer constant" } */
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