aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert2016-11-25 21:24:28 -0800
committerPaul Eggert2016-11-25 21:25:55 -0800
commitd2d4b0746500265eddfa3c618bd6670aaa5eee90 (patch)
tree874863a0e41ab5863d33ad715dfbba5558520f4a /lib-src
parentacb5589fcd981650225e9fb2e949e3681db551c1 (diff)
downloademacs-d2d4b0746500265eddfa3c618bd6670aaa5eee90.tar.gz
emacs-d2d4b0746500265eddfa3c618bd6670aaa5eee90.zip
Port build to gcc -fcheck-pointer-bounds
This does not let Emacs run, just build. * lib-src/etags.c (main): * lib-src/profile.c (main): Use return, not exit. * src/bytecode.c (BYTE_CODE_THREADED) [__CHKP__]: Do not define, as -fcheck-pointer-bounds is incompatible with taking addresses of labels. * src/menu.c (Fx_popup_dialog): Use eassume, not eassert, to pacify gcc -fcheck-pointer-bounds -Wnull-dereference.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c4
-rw-r--r--lib-src/profile.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index e5d76d4c591..6a722e0641c 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1330,7 +1330,7 @@ main (int argc, char **argv)
1330 pfatal (tagfile); 1330 pfatal (tagfile);
1331 } 1331 }
1332 1332
1333 exit (EXIT_SUCCESS); 1333 return EXIT_SUCCESS;
1334 } 1334 }
1335 1335
1336 /* From here on, we are in (CTAGS && !cxref_style) */ 1336 /* From here on, we are in (CTAGS && !cxref_style) */
@@ -1383,7 +1383,7 @@ main (int argc, char **argv)
1383 z = stpcpy (z, tagfile); 1383 z = stpcpy (z, tagfile);
1384 *z++ = ' '; 1384 *z++ = ' ';
1385 strcpy (z, tagfile); 1385 strcpy (z, tagfile);
1386 exit (system (cmd)); 1386 return system (cmd);
1387 } 1387 }
1388 return EXIT_SUCCESS; 1388 return EXIT_SUCCESS;
1389} 1389}
diff --git a/lib-src/profile.c b/lib-src/profile.c
index edd36cafd37..cfee5b8608f 100644
--- a/lib-src/profile.c
+++ b/lib-src/profile.c
@@ -85,13 +85,13 @@ main (void)
85 puts (get_time ()); 85 puts (get_time ());
86 break; 86 break;
87 case 'q': 87 case 'q':
88 exit (EXIT_SUCCESS); 88 return EXIT_SUCCESS;
89 } 89 }
90 /* Anything remaining on the line is ignored. */ 90 /* Anything remaining on the line is ignored. */
91 while (c != '\n' && c != EOF) 91 while (c != '\n' && c != EOF)
92 c = getchar (); 92 c = getchar ();
93 } 93 }
94 exit (EXIT_FAILURE); 94 return EXIT_FAILURE;
95} 95}
96 96
97 97