]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s390: Fix generation of s390-gen-builtins.h
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Wed, 15 Nov 2023 13:42:22 +0000 (14:42 +0100)
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Wed, 15 Nov 2023 13:42:22 +0000 (14:42 +0100)
By default the preprocessed output includes linemarkers.  This leads to
an error if -pedantic is used as e.g. during bootstrap:

s390-gen-builtins.h:1:3: error: style of line directive is a GCC extension [-Werror]

Fixed by omitting linemarkers while generating s390-gen-builtins.h.

gcc/ChangeLog:

* config/s390/t-s390: Generate s390-gen-builtins.h without
linemarkers.

gcc/config/s390/t-s390

index 4ab9718f6e2734c63e02127fd9a5f9734f0b8ed3..2e884c367de069d7f00ba7db903eb3c0e3349323 100644 (file)
@@ -33,4 +33,4 @@ s390-d.o: $(srcdir)/config/s390/s390-d.cc
        $(POSTCOMPILE)
 
 s390-gen-builtins.h: $(srcdir)/config/s390/s390-builtins.h
-       $(COMPILER) -E $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< > $@
+       $(COMPILER) -E -P $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< > $@