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
77c42d45
Commit
77c42d45
authored
May 04, 2018
by
Pekka Jääskeläinen
Committed by
Pekka Jääskeläinen
May 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIGFE] allow controlling strict aliasing from cmd line
From-SVN: r259948
parent
1c725133
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
gcc/brig/ChangeLog
+5
-0
gcc/brig/brig-lang.c
+9
-3
No files found.
gcc/brig/ChangeLog
View file @
77c42d45
2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
* brig/brig-lang.c: Allow controlling strict aliasing from
cmd line.
2018-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
* brig/brigfrontend/brig-code-entry-handler.cc: The modulo in
* brig/brigfrontend/brig-code-entry-handler.cc: The modulo in
ID computation should not be needed.
ID computation should not be needed.
...
...
gcc/brig/brig-lang.c
View file @
77c42d45
...
@@ -167,9 +167,15 @@ brig_langhook_post_options (const char **pfilename ATTRIBUTE_UNUSED)
...
@@ -167,9 +167,15 @@ brig_langhook_post_options (const char **pfilename ATTRIBUTE_UNUSED)
if
(
flag_excess_precision_cmdline
==
EXCESS_PRECISION_DEFAULT
)
if
(
flag_excess_precision_cmdline
==
EXCESS_PRECISION_DEFAULT
)
flag_excess_precision_cmdline
=
EXCESS_PRECISION_STANDARD
;
flag_excess_precision_cmdline
=
EXCESS_PRECISION_STANDARD
;
/* gccbrig casts pointers around like crazy, TBAA produces
/* gccbrig casts pointers around like crazy, TBAA might produce broken
broken code if not force disabling it. */
code if not disabling it by default. Some PRM conformance tests such
flag_strict_aliasing
=
0
;
as prm/core/memory/ordinary/ld/ld_u16 fail currently with strict
aliasing (to fix). It can be enabled from the command line for cases
that are known not to break the C style aliasing requirements. */
if
(
!
global_options_set
.
x_flag_strict_aliasing
)
flag_strict_aliasing
=
0
;
else
flag_strict_aliasing
=
global_options
.
x_flag_strict_aliasing
;
/* Returning false means that the backend should be used. */
/* Returning false means that the backend should be used. */
return
false
;
return
false
;
...
...
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