Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(237)

Delta Between Two Patch Sets: src/cmd/gc/subr.c

Issue 4527098: code review 4527098: gc: enable building under clang/2.9 (Closed)
Left Patch Set: diff -r 2f0e2512948c https://go.googlecode.com/hg/ Created 14 years, 5 months ago
Right Patch Set: diff -r 2f0e2512948c https://go.googlecode.com/hg/ Created 14 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include "go.h" 5 #include "go.h"
6 #include "md5.h" 6 #include "md5.h"
7 #include "y.tab.h" 7 #include "y.tab.h"
8 #include "opnames.h" 8 #include "opnames.h"
9 #include "yerr.h" 9 #include "yerr.h"
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 nerr = 0; 98 nerr = 0;
99 } 99 }
100 100
101 static void 101 static void
102 hcrash(void) 102 hcrash(void)
103 { 103 {
104 if(debug['h']) { 104 if(debug['h']) {
105 flusherrors(); 105 flusherrors();
106 if(outfile) 106 if(outfile)
107 unlink(outfile); 107 unlink(outfile);
108 » » __builtin_trap(); 108 » » abort();
109 } 109 }
110 } 110 }
111 111
112 void 112 void
113 yyerrorl(int line, char *fmt, ...) 113 yyerrorl(int line, char *fmt, ...)
114 { 114 {
115 va_list arg; 115 va_list arg;
116 116
117 va_start(arg, fmt); 117 va_start(arg, fmt);
118 adderr(line, fmt, arg); 118 adderr(line, fmt, arg);
(...skipping 3614 matching lines...) Expand 10 before | Expand all | Expand 10 after
3733 Strlit* 3733 Strlit*
3734 strlit(char *s) 3734 strlit(char *s)
3735 { 3735 {
3736 Strlit *t; 3736 Strlit *t;
3737 ········ 3737 ········
3738 t = mal(sizeof *t + strlen(s)); 3738 t = mal(sizeof *t + strlen(s));
3739 strcpy(t->s, s); 3739 strcpy(t->s, s);
3740 t->len = strlen(s); 3740 t->len = strlen(s);
3741 return t; 3741 return t;
3742 } 3742 }
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b