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
34709a5a
Commit
34709a5a
authored
Mar 29, 2011
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge up to 171704
From-SVN: r171707
parent
633c9126
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletions
+20
-1
gcc/config/rs6000/rs6000-c.c
+4
-1
gcc/testsuite/gcc.dg/torture/va-arg-25.c
+2
-0
gcc/testsuite/gcc.target/powerpc/pr48226.c
+14
-0
No files found.
gcc/config/rs6000/rs6000-c.c
View file @
34709a5a
...
...
@@ -182,7 +182,10 @@ rs6000_macro_to_expand (cpp_reader *pfile, const cpp_token *tok)
expand_this
=
C_CPP_HASHNODE
(
__vector_keyword
);
expand_bool_pixel
=
__bool_keyword
;
}
else
if
(
ident
)
/* The boost libraries have code with Iterator::vector vector in it. If
we allow the normal handling, this module will be called recursively,
and the vector will be skipped.; */
else
if
(
ident
&&
(
ident
!=
C_CPP_HASHNODE
(
__vector_keyword
)))
{
enum
rid
rid_code
=
(
enum
rid
)(
ident
->
rid_code
);
if
(
ident
->
type
==
NT_MACRO
)
...
...
gcc/testsuite/gcc.dg/torture/va-arg-25.c
View file @
34709a5a
...
...
@@ -3,6 +3,8 @@
/* { dg-do run } */
/* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */
/* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */
/* { dg-options "-mabi=altivec -maltivec" { target { powerpc-*-* powerpc64-*-* } } } */
/* { dg-require-effective-target vmx_hw { target { powerpc-*-* powerpc64--*-* } } } */
#include <stdarg.h>
#include <stdlib.h>
...
...
gcc/testsuite/gcc.target/powerpc/pr48226.c
0 → 100644
View file @
34709a5a
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O3 -mcpu=power7" } */
/* The bug shows up if you compile with -maltivec or -mcpu=power7, due to one
of the vector's being eliminated due to rs6000_macro_to_expand being called
recursively. */
struct
vector
{
float
v
[
4
];
};
struct
vector
vector
=
{
1
.
0
,
2
.
0
,
3
.
0
,
4
.
0
};
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