All of lore.kernel.org
 help / color / mirror / Atom feed
* Use of GCC plugin instead ISO C
@ 2018-02-18  8:06 Progyan Bhattacharya
  2018-02-18 16:47 ` Randy Dunlap
  0 siblings, 1 reply; 9+ messages in thread
From: Progyan Bhattacharya @ 2018-02-18  8:06 UTC (permalink / raw)
  To: Josh Poimboeuf; +Cc: linux-kernel

Hi Again,

According to last time talked, you said me to avoid "-Werror=pedantic"
flag to build the GNU specific plugins instead of Standard ISO C. I
changed my default compiler flags and tried to rebuild. But I am still
getting the same error messages at:

	CC /***/Linux/tools/objtool/arch/x86/decode.o

All of them were arising due to same "-pedantic" flag being enabled.
1. Range expression in Case statements were not allowed.
2. Use of braced-group were not allowed in MACRO definition.
3. Pointer arithmetic with void pointer was not allowed.

I took a look on related Makefiles, but found none with "-pedantic" or
"-Werror=pedantic" flag.

Flags I found being used in compilation so far,

tools/objtool/Makefile:
	-Wall -Werror -Wno-switch-default -Wno-switch-enum -Wno-packed
tools/scripts/Makefile.include:
	-Wbad-function-cast -Wdeclaration-after-statement -Wformat-
security -Wformat-y2k -Winit-self -Wmissing-declarations -Wmissing-
prototypes -Wnested-externs -Wno-system-headers -Wold-style-definition
-Wpacked -Wredundant-decls -Wshadow -Wstrict-prototypes -Wswitch-
default -Wswitch-enum -Wundef -Wwrite-strings -Wformat

Compiler I am using:
	gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)

Thanks in advance.
-- 
Regards,
Progyan Bhattacharya
(http://codeprogyan.me)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-03-07 17:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-18  8:06 Use of GCC plugin instead ISO C Progyan Bhattacharya
2018-02-18 16:47 ` Randy Dunlap
2018-02-22 14:37   ` Progyan Bhattacharya
2018-03-01  7:50     ` Re[v2]: " Progyan Bhattacharya
2018-03-01 21:42       ` Randy Dunlap
2018-03-06 13:28         ` Progyan Bhattacharya
2018-03-06 17:24           ` Randy Dunlap
2018-03-07  6:01             ` Progyan Bhattacharya
2018-03-07 17:36               ` Randy Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.