This is an archive of the discontinued LLVM Phabricator instance.

Add a makefile check for misbehaving -Wcomment
ClosedPublic

Authored by filcab on Oct 23 2014, 3:49 PM.

Details

Reviewers
echristo
Summary

gcc's (4.7 at least) -Wcomment warns on line-comment -> backslash ->
newline -> line-comment, while clang doesn't.
If gcc behaves that way, silence -Wcomment.
cmake already has this.

Diff Detail

Event Timeline

filcab updated this revision to Diff 15356.Oct 23 2014, 3:49 PM
filcab retitled this revision from to Add a makefile check for misbehaving -Wcomment.
filcab updated this object.
filcab edited the test plan for this revision. (Show Details)
filcab added a reviewer: echristo.
filcab added a subscriber: Unknown Object (MLST).

Eric, is that huge added block a problem? I'm not sure why autoconf changed what it had.

My env is:

$ ./autoconf/AutoRegen.sh

### NOTE: ############################################################
### If you get *any* warnings from autoconf below you MUST fix the
### scripts in the m4 directory because there are future forward
### compatibility or platform support issues at risk. Please do NOT
### commit any configure script that was generated with warnings
### present. You should get just three 'Regenerating..' lines.
######################################################################

Regenerating aclocal.m4 with aclocal 1.9.6
Regenerating configure with autoconf 2.60
Regenerating config.h.in with autoheader 2.60
configure
19786

I'm not sure why this changed to the huge block @ line 19892

echristo accepted this revision.Nov 4 2014, 4:30 PM
echristo edited edge metadata.

I'm not seeing the changes you're seeing when I regenerate. I'm seeing a couple of random line changes later, but not that part.

The patch itself looks fine so I'm going to go ahead and commit it on your behalf with a regenerated configure.

This revision is now accepted and ready to land.Nov 4 2014, 4:30 PM
filcab closed this revision.Jan 16 2015, 9:10 AM