Skip to content

Commit

Permalink
OpenSUSE gcc fails at '-fno-tree-loop-vectorize'
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Dec 25, 2017
1 parent f687463 commit cd17708
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ all: $(BIN) $(PLAYER)
$(SRC): nnn.h

$(BIN): $(SRC)
$(CC) -O3 -fno-tree-loop-vectorize $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
$(CC) -O2 $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
strip $@

debug: $(SRC)
Expand Down
4 changes: 3 additions & 1 deletion nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1182,10 +1182,12 @@ parsebmstr(char *bms)
static char *
get_bm_loc(char *key, char *buf)
{
int r;

if (!key || !key[0])
return NULL;

for (int r = 0; bookmark[r].key && r < BM_MAX; ++r) {
for (r = 0; bookmark[r].key && r < BM_MAX; ++r) {
if (xstrcmp(bookmark[r].key, key) == 0) {
if (bookmark[r].loc[0] == '~') {
char *home = getenv("HOME");
Expand Down
20 changes: 10 additions & 10 deletions packagecore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ packages:
deps:
- ncurses
- readline
opensuse42.3:
builddeps:
- make
- gcc
- pkg-config
- ncurses-devel
- readline-devel
deps:
- ncurses
- readline
# opensuse42.3:
# builddeps:
# - make
# - gcc
# - pkg-config
# - ncurses-devel
# - readline-devel
# deps:
# - ncurses
# - readline
ubuntu16.04:
builddeps:
- make
Expand Down

0 comments on commit cd17708

Please sign in to comment.