summaryrefslogtreecommitdiff
path: root/src/cmd/gc/mparith2.c
Commit message (Collapse)AuthorAgeFilesLines
* cmd/gc: avoid confusing error message "ovf in mpaddxx"Jan Ziak2014-04-091-1/+9
| | | | | | | | | Fixes issue 6889 LGTM=rsc R=gri, rsc CC=golang-codereviews https://codereview.appspot.com/85080044
* build: remove various uses of C undefined behaviorRuss Cox2013-09-091-5/+5
| | | | | | | | | | | | | | | | | | If you thought gcc -ansi -pedantic was pedantic, just wait until you meet clang -fsanitize=undefined. I think this addresses all the reported "errors", but we'll need another run to be sure. all.bash still passes. Update issue 5764 Dave, can you please try again? R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/13334049
* cmd/gc: error on constant shift overflows.R?my Oudompheng2012-02-161-9/+17
| | | | | | | | Fixes issue 3019. R=golang-dev, rsc CC=golang-dev, remy http://codereview.appspot.com/5674044
* gc: make constant arith errors a little more friendlyRuss Cox2012-02-111-19/+30
| | | | | | | | Fixes issue 2804. R=ken2 CC=golang-dev http://codereview.appspot.com/5652067
* gc: fix build on Plan 9Lucio De Re2011-08-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gc/bits.c . improved format with associated cast; gc/closure.c gc/dcl.c gc/range.c gc/reflect.c gc/sinit.c . dropped unnecessary assignments; gc/gen.c . dropped unnecessary assignment; . added static qualifier to local function definition; gc/go.h . added varargck pragmas; gc/lex.c . used {} instead of ; in if statement to suppress warning; . replaced exit(0) with exits(0); . added compilation conditions for SIGBUS/SIGSEGV; . dropped unnecessary assignment; gc/mparith2.c . dropped four unnecessary assignments/initialisations; gc/obj.c . added type cast to local pointer; gc/pgen.c . added cast and related print format; gc/subr.c . replaced exit(1) with exits("error"); . replaced unlink() with remove(); . renamed local cistrmp() as ucistrmp() to remove conflict with Plan 9 function by the same name; gc/swt.c . added braces instead of ; as empty statment; gc/typecheck.c . added static qualifier to local function definition; . dropped unnecessary assignments; gc/walk.c . dropped unnecessary assignments; . added static qualifier to local function definitions; R=rsc CC=golang-dev http://codereview.appspot.com/4964046 Committer: Russ Cox <rsc@golang.org>
* gc: shuffle #includesRuss Cox2011-08-251-0/+2
| | | | | | | | | | | | | | | | | | #include "go.h" (or "gg.h") becomes #include <u.h> #include <libc.h> #include "go.h" so that go.y can #include <stdio.h> after <u.h> but before "go.h". This is necessary on Plan 9. R=ken2 CC=golang-dev http://codereview.appspot.com/4971041
* gc: index bounds tests and fixesRuss Cox2010-08-031-1/+1
| | | | | | | | | move constant index checking to front end x[2:1] is a compile-time error now too R=ken2 CC=golang-dev http://codereview.appspot.com/1848056
* 1. got 29 (Mpscale) more bits of precisionKen Thompson2010-07-171-1/+5
| | | | | | | | | | | | | out of floating constant multiply 2. added rounding code to "const fix=float" to allow up to 29 (Mpscale) bits of slop and still get an exact fixed constant. fixes issue 931 R=rsc CC=golang-dev http://codereview.appspot.com/1692055
* gc: no more ...Russ Cox2010-06-141-1/+1
| | | | | | | | various cleanup, deleting unused code R=ken2 CC=golang-dev http://codereview.appspot.com/1663041
* bug in const float divideKen Thompson2010-02-051-2/+15
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/204042
* signs on div and modKen Thompson2009-05-051-1/+13
| | | | | | R=r OCL=28319 CL=28319
* warn -> yyerror in mparith.Russ Cox2009-03-121-17/+17
| | | | | | | | close two more bugs. R=ken OCL=26226 CL=26226
* make 6g constants behave as ken proposes. (i hope.)Russ Cox2009-03-121-0/+1
| | | | | | | | | | various bug fixes and tests involving constants. test/const1.go is the major new test case. R=ken OCL=26216 CL=26224
* added bitclear operators &^ and &^=Ken Thompson2009-03-111-0/+34
| | | | | | R=r OCL=26152 CL=26152
* multi precision floating pointKen Thompson2008-12-011-28/+97
| | | | | | R=r OCL=20185 CL=20185
* fix the easy parts of bug120Russ Cox2008-11-171-0/+11
| | | | | | | R=r,ken DELTA=66 (52 added, 3 deleted, 11 changed) OCL=19386 CL=19389
* shift bugsKen Thompson2008-10-291-2/+2
| | | | | | R=r OCL=18095 CL=18095
* bug 113Ken Thompson2008-10-291-10/+11
| | | | | | R=r OCL=18077 CL=18077
* change *a1++; to plain a1++Russ Cox2008-10-041-2/+2
| | | | | | | R=ken DELTA=2 (0 added, 0 deleted, 2 changed) OCL=16489 CL=16489
* silence gcc warningsRuss Cox2008-10-031-1/+1
| | | | | | R=ken OCL=16449 CL=16466
* shift operations to new specKen Thompson2008-08-281-3/+12
| | | | | | R=r OCL=14641 CL=14641
* adding and deleting filesKen Thompson2008-08-091-0/+529
R=r DELTA=1685 (920 added, 765 deleted, 0 changed) OCL=14030 CL=14030