Does syncing iphone to a new computer erases notes linked to the gmail account? I have an iPhone with a bunch of items in the notes app I don't want to loose.
The notes are linked to a gmail account.
I want to switch iTunes library for that iPhone. Going from a PC to a mac.
iTunes wants to do an "erase and sync". Will that erase my notes as well? Or just the music?
The erase and sync function is only for items synced from the previous computer in regards to media.
Outlook would have been the only application on a PC that would sync your notes.
So if you haven't used outlook on your PC, then you should be fine to erase and sync. 
Also, if they are through your gmail account this will be unaffected even if they are erased, because by signing into the gmail account it will sync the notes over the air which is separate from any syncing with a computer.
Best wishes!